Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
Warehouse
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
894f2d5f
authored
May 07, 2020
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
3e24ddbc
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
56 deletions
app.json
pages/cardBoard/cardBoard.js
pages/login/login.js
pages/mountingPlate/mountingPlate.js
pages/receivinggoods/receivinggoods.js
pages/receivinggoods/receivinggoods.wxml
pages/startPage/startPage.js
app.json
View file @
894f2d5f
{
"pages"
:
[
"pages/
receivinggoods/receivinggoods
"
,
"pages/
startPage/startPage
"
,
"pages/home/home"
,
"pages/cardBoard/cardBoard"
,
"pages/receivinggoods/receivinggoods"
,
"pages/scanDelivery/scanDelivery"
,
"pages/cardBoard/cardBoard"
,
"pages/mountingPlate/mountingPlate"
,
"pages/picking/picking"
,
...
...
@@ -20,7 +24,6 @@
"pages/startPage/startPage"
,
"pages/changeWarehouse/changeWarehouse"
,
"pages/login/login"
,
"pages/systemSettings/systemSettings"
,
...
...
pages/cardBoard/cardBoard.js
View file @
894f2d5f
...
...
@@ -118,6 +118,7 @@ Page({
content
:
'箱号不存在'
,
showCancel
:
false
});
return
}
arr
.
push
({
...
...
@@ -160,15 +161,15 @@ Page({
}
getData
(
apis
.
pallet_box_list
,
'post'
,
{
"pallet_sn"
:
me
.
data
.
numText
},
function
(
res
)
{
if
(
res
.
errcode
===
0
)
{
let
data
=
res
.
data
;
let
data
=
res
.
data
||
[]
;
let
listArr
=
[];
let
palletObj
=
null
;
if
(
!
data
.
data
){
if
(
!
data
||!
data
.
length
){
listArr
=
[];
palletObj
=
null
}
else
{
let
data
=
res
.
data
.
data
;
if
(
data
.
status
==
2
){
let
data
=
res
.
data
[
0
]
;
if
(
data
.
pallet_
status
==
2
){
wx
.
showModal
({
title
:
'提示'
,
content
:
'卡板为上架状态,不可装卡板'
,
...
...
@@ -176,8 +177,7 @@ Page({
});
return
}
else
{
listArr
=
data
.
box_list
||
[];
listArr
listArr
=
res
.
data
||
[];
palletObj
=
{
pallet_sn
:
data
.
pallet_sn
,
pallet_id
:
data
.
pallet_id
,
...
...
@@ -205,7 +205,7 @@ Page({
console
.
log
(
tableData
)
let
newData
=
[];
if
(
me
.
data
.
palletObj
){
obj
[
'pallet_
id
'
]
=
me
.
data
.
palletObj
.
pallet_id
obj
[
'pallet_
sn
'
]
=
me
.
data
.
palletObj
.
pallet_id
}
for
(
let
i
=
0
;
i
<
tableData
.
length
;
i
++
){
let
item
=
tableData
[
i
];
...
...
pages/login/login.js
View file @
894f2d5f
...
...
@@ -51,7 +51,7 @@ Page({
if
(
res
.
errcode
===
0
)
{
wx
.
setStorageSync
(
"access_token"
,
res
.
access_token
);
wx
.
re
directTo
({
wx
.
re
Launch
({
url
:
'/pages/home/home'
});
}
else
{
...
...
pages/mountingPlate/mountingPlate.js
View file @
894f2d5f
...
...
@@ -118,6 +118,7 @@ Page({
content
:
'箱号不存在'
,
showCancel
:
false
});
return
}
arr
.
push
({
...
...
@@ -177,7 +178,6 @@ Page({
return
}
else
{
listArr
=
data
.
box_list
||
[];
listArr
palletObj
=
{
pallet_sn
:
data
.
pallet_sn
,
pallet_id
:
data
.
pallet_id
,
...
...
pages/receivinggoods/receivinggoods.js
View file @
894f2d5f
...
...
@@ -12,6 +12,7 @@ Page({
* 页面的初始数据
*/
data
:
{
commandData
:[
"中国"
,
"中国台湾"
,
"马来西亚"
,
"日本"
,
"菲律宾"
,
"泰国"
,
"墨西哥"
,
"美国"
,
"韩国"
,
"以色列"
,
"德国"
,
"越南"
,
"印度尼西亚"
,
"新加坡"
,
"捷克"
,
"印度"
,
"哥斯达黎加"
,
"萨尔瓦多"
,
"法国"
,
"摩洛哥"
,
"英国"
,
"匈牙利"
,
"瑞士"
,
"爱尔兰"
],
chooseOrder
:
null
,
//单个入仓号的数据
maskList
:[],
//弹窗的数据填充(选择入仓号)
isShowMask
:
false
,
//是否展示弹窗(入仓表格)
...
...
@@ -550,6 +551,7 @@ onUnload:function(){
let
{
value
}
=
e
.
detail
//获取弹窗数据(入仓)
let
me
=
this
;
me
.
clearFun
()
getData
(
apis
.
get_in_store_warehousing_sn
,
'post'
,
{
"warehousing_sn"
:
value
},
function
(
res
)
{
if
(
res
.
errcode
===
0
)
{
let
data
=
res
.
data
;
...
...
@@ -867,8 +869,27 @@ onUnload:function(){
me
.
getReceivingList
(
1
);
if
(
me
.
data
.
formData
.
wldy
==
1
){
console
.
log
(
'打印数据'
)
// me.initBlue(1,data)
console
.
log
(
'打印物料标签'
)
let
formData
=
me
.
data
.
formData
;
let
data
=
"! 0 200 200 400 1 \n"
+
"B QR 200 0 M 2 2 10 \n"
+
"MA,QR code :"
+
formData
.
xh
+
","
+
formData
.
pp
+
","
+
formData
.
sl
+
","
+
formData
.
cd
+
","
+
(
formData
.
dc
||
'--'
)
+
","
+
(
formData
.
pc
||
'--'
)
+
"\n"
+
"ENDQR \n"
+
"TTEXT 55 1 380 0 型号 \n"
+
"TEXT 55 1 380 40 品牌 \n"
+
"TEXT 55 1 380 80 数量 \n"
+
"TEXT 55 1 380 120 产地 \n"
+
"TEXT 55 1 380 160 DC \n"
+
"TEXT 55 1 380 200 批次 \n"
+
"TEXT 55 1 480 0 "
+
formData
.
xh
+
" \n"
+
"TEXT 55 1 480 40 "
+
formData
.
pp
+
" \n"
+
"TEXT 55 1 480 80 "
+
formData
.
sl
+
" \n"
+
"TEXT 55 1 480 120 "
+
formData
.
cd
+
" \n"
+
"TEXT 55 1 480 160 "
+
(
formData
.
dc
||
'--'
)
+
" \n"
+
"TEXT 55 1 480 200 "
+
(
formData
.
pc
||
'--'
)
+
" \n"
+
"FORM \n"
+
"PRINT"
;
me
.
initBlue
(
1
,
data
)
}
}
else
{
wx
.
showToast
({
...
...
@@ -1155,29 +1176,6 @@ onUnload:function(){
})
},
saveSaleTask
:
function
(
e
){
let
str
=
"! 0 200 200 400 1 \n"
+
"B QR 200 0 M 2 2 10 \n"
+
"MA,QR code :'1','2','3','4'\n"
+
"ENDQR\n"
+
"TEXT 55 1 380 20 卡板号: \n"
+
"TEXT 55 1 380 60 内含箱数: \n"
+
"TEXT 55 1 380 100 净重: \n"
+
"TEXT 55 1 480 20 卡板号 \n"
+
"TEXT 55 1 480 60 内含箱数 \n"
+
"TEXT 55 1 480 100 净重 \n"
+
"FORM \n"
+
"PRINT\n"
+
"! 0 200 200 400 1 \n"
+
"B QR 200 0 M 2 2 10 \n"
+
"MA,QR code :'1','2','3','4'\n"
+
"ENDQR\n"
+
"TEXT 55 1 380 20 卡板号: \n"
+
"TEXT 55 1 380 60 内含箱数: \n"
+
"TEXT 55 1 380 100 净重: \n"
+
"TEXT 55 1 480 20 卡板号 \n"
+
"TEXT 55 1 480 60 内含箱数 \n"
+
"TEXT 55 1 480 100 净重 \n"
+
"FORM \n"
+
"PRINT"
;
//type为1表示生成上架任务 type为2表示装箱
let
{
type
}
=
e
.
currentTarget
.
dataset
;
let
me
=
this
;
...
...
@@ -1237,9 +1235,12 @@ onUnload:function(){
icon
:
'none'
,
duration
:
2000
});
me
.
getList1
();
me
.
getReceivingList
(
1
);
me
.
getReceivingList
(
2
)
if
(
type
==
2
){
console
.
log
(
'打印
数据
'
)
me
.
initBlue
(
type
,
data
)
console
.
log
(
'打印
箱标签
'
)
//
me.initBlue(type,data)
}
}
else
{
wx
.
showToast
({
...
...
pages/receivinggoods/receivinggoods.wxml
View file @
894f2d5f
...
...
@@ -126,11 +126,11 @@
<text class="box-icon {{xiangIndex == 1 ?'checked':'' }}"></text>
<text>装新箱</text>
</view>
<view class="Iflex checkBox aic" catchtap="changeXiangIndex"
data-index="2">
<view class="Iflex checkBox aic" catchtap="changeXiangIndex" data-index="2">
<text class="box-icon {{xiangIndex == 2 ?'checked':'' }}"></text>
<text>合箱</text>
</view>
<input class="input input-border"
value="{{orderNum}}" bindinput="formOrderNumInput"></input>
<input class="input input-border" value="{{orderNum}}" bindinput="formOrderNumInput"></input>
</view>
<view class="bottom-table-view Bflex">
...
...
@@ -158,7 +158,7 @@
<view class="td-2 td borderBox Iflex jcc aic"><text>{{item.goods_name}}</text></view>
<view class="td-3 td borderBox Iflex jcc aic"><text>{{item.brand_name}}</text></view>
<view class="td-4 td borderBox Iflex jcc aic"><text>{{item.number}}</text></view>
<view class="td-5 td borderBox Iflex jcc aic" catchtap="deleteReceiving"
data-id="{{item.receiving_id}} "><text class="underline-text">清除</text></view>
<view class="td-5 td borderBox Iflex jcc aic" catchtap="deleteReceiving" data-id="{{item.receiving_id}} "><text class="underline-text">清除</text></view>
</view>
</block>
...
...
@@ -246,12 +246,7 @@
<text class="text">常用</text>
</view>
<view class="often-items clr">
<text class="fl">中国</text>
<text class="fl">中国台湾</text>
<text class="fl">中国</text>
<text class="fl">中国台湾</text>
<text class="fl">中国</text>
<text class="fl">中国台湾</text>
<text class="fl" wx:for="{{commandData}}" wx:key="index" data-country="{{item}}" catchtap="chooseCountry">{{item}}</text>
</view>
</view>
<view class="address-items" wx:if="{{countryList.length}}">
...
...
pages/startPage/startPage.js
View file @
894f2d5f
...
...
@@ -14,20 +14,20 @@ Page({
onLoad
:
function
(
options
)
{
if
(
this
.
data
.
token
)
{
//登入
// wx.reLaunch({
// url: '/pages/home/home'
// });
wx
.
navigateTo
({
wx
.
reLaunch
({
url
:
'/pages/home/home'
});
// wx.navigateTo({
// url: '/pages/home/home'
// });
}
else
{
//未登入
// wx.reLaunch({
// url: '/pages/login/login'
// });
wx
.
navigateTo
({
wx
.
reLaunch
({
url
:
'/pages/login/login'
});
// wx.navigateTo({
// url: '/pages/login/login'
// });
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment