Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsMin
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
2b2914ab
authored
Mar 24, 2022
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
83d41d4f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
26 deletions
pages/goods/tally.vue
pages/goods/tallyDetail.vue
pages/goods/tallyExectionDetail.vue
pages/goods/tallyQuestion.vue
util/api.js
pages/goods/tally.vue
View file @
2b2914ab
...
...
@@ -5,7 +5,7 @@
<view
class=
"search-input row bothSide verCenter"
>
<text
class=
"iconfont icon-a-riqi11"
></text>
<input
type=
"text"
@
input=
"inputChange()"
placeholder=
"请手动输入入仓号或扫描"
class=
"uni-input"
v-model=
"number"
placeholder-style=
"color:#6e767a"
/>
<text
class=
"scan iconfont icon-juxing6"
></text>
<text
class=
"scan iconfont icon-juxing6"
@
click=
"scanChange()"
></text>
</view>
</view>
</view>
...
...
@@ -50,7 +50,7 @@
</template>
<
template
v-else-if=
"currentIndex === 1"
>
<view
class=
"list"
v-if=
"unusualCheckInList.length > 0 || !is_complete"
>
<navigator
class=
"box row bothSide verCenter"
:url=
"'/pages/goods/tallyExectionDetail?
ask_customer_problem_list_id=' + item.ask_customer_problem_list_id
"
hover-class=
"none"
v-for=
"(item, index) in unusualCheckInList"
:key=
"index"
>
<navigator
class=
"box row bothSide verCenter"
:url=
"'/pages/goods/tallyExectionDetail?
number=' + item.erp_order_sn
"
hover-class=
"none"
v-for=
"(item, index) in unusualCheckInList"
:key=
"index"
>
<view
class=
"bill-number row rowCenter verCenter"
:class=
"numberType[index] ? 'color1' : 'color2'"
>
{{
item
.
erp_order_sn
}}
</view>
<view>
<text
class=
"t1"
>
客户:
{{
item
.
supplier_name
}}
</text>
...
...
@@ -62,7 +62,7 @@
</view>
<view
class=
"text"
>
<text
class=
"p1"
>
备注:
</text>
<text
class=
"p2"
>
{{
item
.
unusual
_remark
}}
</text>
<text
class=
"p2"
>
{{
item
.
sort_goods
_remark
}}
</text>
</view>
</view>
<template
v-if=
"item.is_goods_check === 1"
>
...
...
@@ -105,7 +105,7 @@ export default {
if
(
this
.
currentIndex
===
0
)
{
this
.
getData
();
}
else
if
(
this
.
currentIndex
===
1
)
{
this
.
getUnusual
CheckIn
List
();
this
.
getUnusual
SortGoods
List
();
}
},
methods
:
{
...
...
@@ -114,14 +114,14 @@ export default {
if
(
index
===
0
)
{
this
.
getData
();
}
else
if
(
index
===
1
)
{
this
.
getUnusual
CheckIn
List
();
this
.
getUnusual
SortGoods
List
();
}
},
inputChange
()
{
if
(
this
.
currentIndex
===
0
)
{
this
.
getData
();
}
else
if
(
this
.
currentIndex
===
1
)
{
this
.
getUnusual
CheckIn
List
();
this
.
getUnusual
SortGoods
List
();
}
},
getData
()
{
...
...
@@ -138,8 +138,8 @@ export default {
}
});
},
getUnusual
CheckIn
List
()
{
this
.
request
(
API
.
getUnusual
CheckIn
List
,
'POST'
,
{
page
:
this
.
page
,
number
:
this
.
number
},
true
).
then
(
res
=>
{
getUnusual
SortGoods
List
()
{
this
.
request
(
API
.
getUnusual
SortGoods
List
,
'POST'
,
{
page
:
this
.
page
,
number
:
this
.
number
},
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
is_complete
=
true
;
this
.
unusualCheckInList
=
res
.
data
;
...
...
@@ -148,7 +148,7 @@ export default {
//判断A单 B单
if
(
res
.
data
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
if
(
res
.
data
[
i
].
erp_order_sn
.
indexOf
(
'B'
))
{
if
(
res
.
data
[
i
].
number
.
indexOf
(
'B'
))
{
this
.
numberType
.
push
(
true
);
}
else
{
this
.
numberType
.
push
(
false
);
...
...
@@ -162,6 +162,28 @@ export default {
});
}
});
},
scanChange
()
{
uni
.
scanCode
({
success
:
function
(
res
)
{
console
.
log
(
res
);
if
(
res
.
errMsg
==
'scanCode:ok'
)
{
this
.
number
=
res
.
result
;
if
(
this
.
currentIndex
===
0
)
{
this
.
getData
();
}
else
if
(
this
.
currentIndex
===
1
)
{
this
.
getUnusualSortGoodsList
();
}
}
},
fail
:
function
(
res
)
{
console
.
log
(
res
);
uni
.
showToast
({
title
:
'扫码失败'
,
icon
:
'error'
});
}
});
}
}
};
...
...
pages/goods/tallyDetail.vue
View file @
2b2914ab
...
...
@@ -13,8 +13,8 @@
</view>
<view
class=
"pp row verCenter"
>
<text
class=
"t1"
>
入仓号:
</text>
<text
class=
"t2"
style=
"width: auto;"
>
--
</text>
<text
class=
"type row rowCenter verCenter"
>
商检
</text>
<text
class=
"t2"
style=
"width: auto;"
>
{{
goodsArrangeData
.
number
}}
</text>
<text
class=
"type row rowCenter verCenter"
v-if=
"goodsArrangeData.isInspOrg"
>
商检
</text>
</view>
<view
class=
"pp row verCenter"
v-if=
"flag"
>
<text
class=
"t1"
>
订单时间:
</text>
...
...
@@ -86,7 +86,7 @@
<image
src=
"http://img.ichunt.com/images/ichunt/minProgram/scmMinProgram/wms/202203/08/d034765db26eb07075b2965dc96b8b35.png"
mode=
"aspectFill"
class=
"pic"
></image>
</view>
</view>
<navigator
class=
"btn-submit row rowCenter verCenter"
url=
"/pages/goods/tallyQuestion
"
hover-class=
"none"
>
<navigator
class=
"btn-submit row rowCenter verCenter"
:url=
"'/pages/goods/tallyQuestion?number='+goodsArrangeData.number
"
hover-class=
"none"
>
<text
class=
"t1"
>
理货异常?
</text>
<text
class=
"t2"
>
去提交
</text>
</navigator>
...
...
@@ -184,7 +184,7 @@ export default {
},
form
:
{
sort_goods_remark
:
''
,
//理货备注
number
:
'
B50413
'
,
//入仓号
number
:
''
,
//入仓号
sort_goods_num
:
''
,
//理货数量
gross_weight
:
''
,
//毛重
sort_goods_unit
:
'件'
,
//理货单位
...
...
@@ -229,7 +229,7 @@ export default {
});
},
getData
()
{
this
.
request
(
API
.
getGoodsArrangeData
,
'POST'
,
{
page
:
this
.
page
,
number
:
''
},
true
).
then
(
res
=>
{
this
.
request
(
API
.
getGoodsArrangeData
,
'POST'
,
{
page
:
this
.
page
,
number
:
this
.
form
.
number
},
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
goodsArrangeData
=
res
.
data
[
0
];
this
.
form
.
entrys
=
res
.
data
[
0
];
...
...
@@ -377,6 +377,13 @@ export default {
});
},
print
()
{
if
(
!
this
.
device_name
)
{
uni
.
showToast
({
icon
:
'error'
,
title
:
'请连接蓝牙设备'
});
return
false
;
}
this
.
request
(
API
.
printLabel
,
'POST'
,
this
.
printForm
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
printLabelData
=
res
.
data
;
...
...
pages/goods/tallyExectionDetail.vue
View file @
2b2914ab
...
...
@@ -170,14 +170,20 @@ import { API } from '@/util/api.js';
export
default
{
data
()
{
return
{};
return
{
number
:
''
,
customerDetail
:
{}
};
},
onLoad
(
options
)
{
this
.
number
=
options
.
number
;
},
onShow
()
{
this
.
getData
();
},
methods
:
{
getData
()
{
this
.
request
(
API
.
get
CheckInList
,
'POST'
,
{
}).
then
(
res
=>
{
this
.
request
(
API
.
get
AskCustomerDetail
,
'GET'
,
{
erp_order_sn
:
this
.
number
}).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
}
else
{
uni
.
showToast
({
...
...
pages/goods/tallyQuestion.vue
View file @
2b2914ab
...
...
@@ -13,8 +13,8 @@
</view>
<view
class=
"pp row verCenter"
>
<text
class=
"t1"
>
入仓号:
</text>
<text
class=
"t2"
style=
"width: auto;"
>
A123456
</text>
<text
class=
"type row rowCenter verCenter"
>
商检
</text>
<text
class=
"t2"
style=
"width: auto;"
>
{{
goodsArrangeData
.
number
}}
</text>
<text
class=
"type row rowCenter verCenter"
v-if=
"goodsArrangeData.isInspOrg"
>
商检
</text>
</view>
<view
class=
"pp row verCenter"
v-if=
"flag"
>
<text
class=
"t1"
>
订单时间:
</text>
...
...
@@ -22,19 +22,19 @@
</view>
<view
class=
"pp row verCenter"
v-if=
"flag"
>
<text
class=
"t1"
>
订单客户:
</text>
<text
class=
"t2"
>
富开香港有限公司
</text>
<text
class=
"t2"
>
{{
goodsArrangeData
.
customer
}}
</text>
</view>
<view
class=
"pp row verCenter"
v-if=
"flag"
>
<text
class=
"t1"
>
供应商:
</text>
<text
class=
"t2"
>
SAMSUNG SDI CO., LTD
</text>
<text
class=
"t2"
>
{{
goodsArrangeData
.
supplier
}}
</text>
</view>
<view
class=
"pp row verCenter"
>
<text
class=
"t1"
>
登记数量:
</text>
<text
class=
"t2"
>
1箱
</text>
<text
class=
"t2"
>
{{
goodsArrangeData
.
num
}}
</text>
</view>
<view
class=
"pp row"
>
<text
class=
"t1"
>
采购备注:
</text>
<text
class=
"t2"
>
INV-9500148113这张里有个是光辉的,理货的人员记得看备注,多大200字符长度
</text>
<text
class=
"t2"
>
{{
goodsArrangeData
.
remark
}}
</text>
</view>
</view>
<view
class=
"question-box"
>
...
...
@@ -105,7 +105,7 @@ export default {
text
:[
''
],
//记录数组文字
typeList
:
[],
//问题类型列表
questionTypeIndex
:
[
0
],
//问题类型索引
erp_order_sn
:
'
B50413
'
,
//form入仓号
erp_order_sn
:
''
,
//form入仓号
ask_customer_remark
:
''
,
//form仓库问客备注
entrys
:
{},
//form 金蝶数据,
index
:
0
,
//记录form当前操作索引
...
...
@@ -120,7 +120,7 @@ export default {
};
},
onLoad
(
options
)
{
this
.
erp_order_sn
=
options
.
number
||
'
B50413
'
;
//获取参数入仓号
this
.
erp_order_sn
=
options
.
number
||
''
;
//获取参数入仓号
},
onShow
()
{
if
(
this
.
noexebshowFalg
)
{
...
...
@@ -132,7 +132,7 @@ export default {
* 获取基础数据
*/
getData
()
{
this
.
request
(
API
.
getGoodsArrangeData
,
'POST'
,
{
page
:
this
.
page
,
number
:
''
},
true
).
then
(
res
=>
{
this
.
request
(
API
.
getGoodsArrangeData
,
'POST'
,
{
page
:
this
.
page
,
number
:
this
.
erp_order_sn
},
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
goodsArrangeData
=
res
.
data
[
0
];
//理货列表数据
this
.
entrys
=
res
.
data
[
0
];
//form 金蝶数据,
...
...
util/api.js
View file @
2b2914ab
...
...
@@ -80,7 +80,16 @@ const API = {
/**
* 获取理货异常问题对应的数据数组
*/
getExceptionData
:
API_BASE
+
'/supplywechatwms/getExceptionData'
getExceptionData
:
API_BASE
+
'/supplywechatwms/getExceptionData'
,
/**
* 获取理货异常列表
*/
getUnusualSortGoodsList
:
API_BASE
+
'/supplywechatwms/getUnusualSortGoodsList'
,
/**
* 获取理货问客详情
*/
getAskCustomerDetail
:
API_BASE
+
'/supplywechatwms/getAskCustomerDetail'
}
...
...
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