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
2bdbf0b1
authored
Jan 29, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
供应链wms-理货确认-产地拆分多选
parent
1f6030f0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
13 deletions
assets/css/font.css
pages/tallyGoods/confirm.vue
pages/tallyGoods/originSplit.vue
static/iconfont.ttf
assets/css/font.css
View file @
2bdbf0b1
...
@@ -11,6 +11,14 @@
...
@@ -11,6 +11,14 @@
-moz-osx-font-smoothing
:
grayscale
;
-moz-osx-font-smoothing
:
grayscale
;
}
}
.icon-jianshao
:before
{
content
:
"\e8c5"
;
}
.icon-xinzeng-
:before
{
content
:
"\e678"
;
}
.icon-a-10cangkucangchu3
:before
{
.icon-a-10cangkucangchu3
:before
{
content
:
"\e7a0"
;
content
:
"\e7a0"
;
}
}
...
...
pages/tallyGoods/confirm.vue
View file @
2bdbf0b1
...
@@ -42,13 +42,19 @@
...
@@ -42,13 +42,19 @@
<text
class=
"text-prompt"
>
KG
</text>
<text
class=
"text-prompt"
>
KG
</text>
</view>
</view>
</view>
</view>
<navigator
class=
"box row bothSide verCenter"
:url=
"'/pages/tallyGoods/originSplit?erp_order_sn=' + form.erp_order_sn"
hover-class=
"none"
>
<view
style=
"border-bottom: 1px solid #e6edf0;"
>
<text
class=
"label"
>
产地拆分(选填)
</text>
<navigator
class=
"box row bothSide verCenter"
:url=
"'/pages/tallyGoods/originSplit?erp_order_sn=' + form.erp_order_sn+'&originIndex='+index"
hover-class=
"none"
v-for=
"(item,index) in form.detail_json"
:key=
"index"
>
<view
class=
"row verCenter"
>
<text
class=
"label"
>
产地拆分
{{
index
+
1
}}
(选填)
</text>
<text
class=
"iconfont icon-xinzeng-"
style=
"color: #197adb;font-size: 44rpx;"
@
click
.
stop=
"add"
v-if=
"index === form.detail_json.length - 1"
></text>
<text
class=
"iconfont icon-jianshao"
style=
"color: #197adb;font-size: 46rpx;"
@
click
.
stop=
"reduce(index)"
v-if=
"index != 0"
></text>
</view>
<view
class=
"input-wrap-width row bothSide verCenter"
>
<view
class=
"input-wrap-width row bothSide verCenter"
>
<text
class=
"text"
>
{{
form
.
detail_json
.
length
>
0
?
'已拆分'
+
form
.
detail_json
.
length
:
'请选择'
}}
</text>
<text
class=
"text"
>
{{
form
.
detail_json
[
index
].
length
>
0
?
'已拆分'
+
form
.
detail_json
[
index
]
.
length
:
'请选择'
}}
</text>
<text
class=
"iconfont icon-sanjiaoxing2"
></text>
<text
class=
"iconfont icon-sanjiaoxing2"
></text>
</view>
</view>
</navigator>
</navigator>
</view>
<navigator
class=
"box row bothSide verCenter"
:url=
"'/pages/tallyGoods/manualMerge?erp_order_sn=' + form.erp_order_sn + '&fix_erp_order_sn=' + form.fix_erp_order_sn"
hover-class=
"none"
>
<navigator
class=
"box row bothSide verCenter"
:url=
"'/pages/tallyGoods/manualMerge?erp_order_sn=' + form.erp_order_sn + '&fix_erp_order_sn=' + form.fix_erp_order_sn"
hover-class=
"none"
>
<text
class=
"label"
>
手动合箱(选填)
</text>
<text
class=
"label"
>
手动合箱(选填)
</text>
<view
class=
"input-wrap-width row verCenter"
>
<view
class=
"input-wrap-width row verCenter"
>
...
@@ -132,14 +138,19 @@
...
@@ -132,14 +138,19 @@
maxNum
:
4
,
//最大上传图片数量
maxNum
:
4
,
//最大上传图片数量
disabled
:
false
,
disabled
:
false
,
switchFlag
:
false
,
switchFlag
:
false
,
paramsOrigin
:
[
[]
],
//产地拆分数据存储
form
:
{
form
:
{
erp_order_sn
:
''
,
//入仓号
erp_order_sn
:
'
B51590
'
,
//入仓号
customs_clearance_price
:
0
,
//清关费
customs_clearance_price
:
0
,
//清关费
box_num
:
'0'
,
//箱子
box_num
:
'0'
,
//箱子
board_num
:
'0'
,
//板子
board_num
:
'0'
,
//板子
gross_weight
:
''
,
//合计毛重
gross_weight
:
''
,
//合计毛重
pic_json
:
[],
//商检图片
pic_json
:
[],
//商检图片
detail_json
:
[],
//产地拆分数据
detail_json
:
[
[]
],
//产地拆分数据
fix_erp_order_sn
:
''
,
//手动合箱
fix_erp_order_sn
:
''
,
//手动合箱
pur_pic
:
''
//采购单上传
pur_pic
:
''
//采购单上传
}
}
...
@@ -170,9 +181,11 @@
...
@@ -170,9 +181,11 @@
//更新产地拆分国家的数据
//更新产地拆分国家的数据
uni
.
$on
(
'updateOriginData'
,
data
=>
{
uni
.
$on
(
'updateOriginData'
,
data
=>
{
if
(
data
)
{
if
(
data
)
{
this
.
form
.
detail_json
=
data
.
detail_json
;
let
originIndex
=
Number
(
data
.
originIndex
);
//转成数字
this
.
$set
(
this
.
form
.
detail_json
,
originIndex
,
data
.
detail_json
);
this
.
$set
(
this
.
paramsOrigin
,
originIndex
,
data
);
uni
.
removeStorageSync
(
'paramsOrigin'
);
uni
.
removeStorageSync
(
'paramsOrigin'
);
uni
.
setStorageSync
(
'paramsOrigin'
,
data
);
uni
.
setStorageSync
(
'paramsOrigin'
,
this
.
paramsOrigin
);
}
}
});
});
},
},
...
@@ -210,6 +223,20 @@
...
@@ -210,6 +223,20 @@
},
800
);
},
800
);
},
},
/**
/**
* 产地拆分-新增
*/
add
()
{
this
.
form
.
detail_json
.
push
([]);
this
.
paramsOrigin
.
push
([]);
},
/**
* 产地拆分-减去
*/
reduce
(
index
)
{
this
.
form
.
detail_json
.
splice
(
index
,
1
);
this
.
paramsOrigin
.
splice
(
index
,
1
);
},
/**
* 检测入仓号是否理货
* 检测入仓号是否理货
*/
*/
checkErpOrderSnIsTally
()
{
checkErpOrderSnIsTally
()
{
...
@@ -456,6 +483,10 @@
...
@@ -456,6 +483,10 @@
this
.
currentIndex
=
index
;
this
.
currentIndex
=
index
;
this
.
form
.
customs_clearance_price
=
index
;
this
.
form
.
customs_clearance_price
=
index
;
},
},
checkEntryID
(
detail_json
)
{
const
firstEntryID
=
detail_json
[
0
][
0
].
entryID
;
return
detail_json
.
every
(
item
=>
item
[
0
].
entryID
===
firstEntryID
);
},
/**
/**
* @param {Object} type 1提交并打印
* @param {Object} type 1提交并打印
* 提交
* 提交
...
@@ -518,6 +549,17 @@
...
@@ -518,6 +549,17 @@
}
}
}
}
const
entryIDs
=
this
.
form
.
detail_json
.
map
(
array
=>
(
array
.
length
>
0
?
array
[
0
].
entryID
:
null
));
let
result
=
new
Set
(
entryIDs
).
size
<
entryIDs
.
length
;
if
(
result
)
{
uni
.
showModal
({
content
:
'产地拆分所选型号有重复,请检查'
,
showCancel
:
false
});
return
false
;
}
this
.
request
(
API
.
submitTallyGoods
,
'POST'
,
this
.
form
,
true
).
then
(
res
=>
{
this
.
request
(
API
.
submitTallyGoods
,
'POST'
,
this
.
form
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
if
(
res
.
err_code
===
0
)
{
uni
.
showModal
({
uni
.
showModal
({
...
...
pages/tallyGoods/originSplit.vue
View file @
2bdbf0b1
...
@@ -87,12 +87,13 @@
...
@@ -87,12 +87,13 @@
</template>
</template>
<
script
>
<
script
>
import
{
API
}
from
'@/util/api.js'
;
import
{
API
}
from
'@/util/api.js'
;
import
{
createArray
}
from
'@/util/util.js'
;
import
{
createArray
}
from
'@/util/util.js'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
originIndex
:
0
,
//默认第一个
curr
:
-
1
,
//当前打开的是哪个产地
curr
:
-
1
,
//当前打开的是哪个产地
erp_order_sn
:
''
,
erp_order_sn
:
''
,
goods_index
:
-
1
,
goods_index
:
-
1
,
...
@@ -110,11 +111,13 @@ export default {
...
@@ -110,11 +111,13 @@ export default {
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
erp_order_sn
=
options
.
erp_order_sn
||
''
;
this
.
erp_order_sn
=
options
.
erp_order_sn
||
''
;
this
.
originIndex
=
options
.
originIndex
;
// 从本地缓存中获取数据
// 从本地缓存中获取数据
const
dataFromSourcePage
=
uni
.
getStorageSync
(
'paramsOrigin'
);
const
dataFromSourcePage
=
uni
.
getStorageSync
(
'paramsOrigin'
);
// 使用Object.assign()将dataFromSourcePage的属性合并到data中
// 使用Object.assign()将dataFromSourcePage的属性合并到data中
Object
.
assign
(
this
.
$data
,
dataFromSourcePage
);
Object
.
assign
(
this
.
$data
,
dataFromSourcePage
[
this
.
originIndex
]
);
},
},
onShow
()
{
onShow
()
{
this
.
getData
();
this
.
getData
();
...
@@ -290,9 +293,9 @@ export default {
...
@@ -290,9 +293,9 @@ export default {
});
});
}
}
}
}
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
@import
'../../assets/css/tallyGoods/originSplit.scss'
;
@import
'../../assets/css/tallyGoods/originSplit.scss'
;
</
style
>
</
style
>
\ No newline at end of file
static/iconfont.ttf
View file @
2bdbf0b1
No preview for this file type
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