Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
2b3c625e
Commit
2b3c625e
authored
May 22, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
into release
parents
922a70f8
e2716eb8
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
76 deletions
+34
-76
boxSea.js
src/api/ecw/boxSea.js
+3
-2
splitOrder.vue
...views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
+6
-67
startPacking.vue
...ews/ecw/box/shippingSea/nodePage/cabinet/startPacking.vue
+1
-1
supplementOrder.vue
.../ecw/box/shippingSea/nodePage/cabinet/supplementOrder.vue
+8
-1
preinstall.vue
src/views/ecw/box/shippingSea/nodePage/preinstall.vue
+9
-2
index.vue
src/views/ecw/box/shippingSea/nodePage/tally/index.vue
+1
-1
splitApply.vue
src/views/ecw/order/splitApply.vue
+6
-2
No files found.
src/api/ecw/boxSea.js
View file @
2b3c625e
...
...
@@ -506,10 +506,11 @@ export function boxGoodsDetail(data) {
* @param {*} id
* @return {*}
*/
export
function
deleteSection
(
id
)
{
export
function
deleteSection
(
params
)
{
return
request
({
url
:
"
/ecw/box-preload-goods/deleteSection
?id=
"
+
id
,
url
:
"
/ecw/box-preload-goods/deleteSection
"
,
method
:
"
delete
"
,
params
});
}
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
View file @
2b3c625e
...
...
@@ -226,7 +226,7 @@
</el-col>-->
</el-row>
<el-form-item
:label=
"$t('放入箱数')+':'"
>
{{shopForm.num||0}}
<el-input-number
v-model=
"shopForm.num"
controls-position=
"right"
:min=
"0"
:max=
"+shopForm.leftNum"
@
change=
"calcAverg"
></el-input-number>
</el-form-item>
...
...
@@ -406,14 +406,6 @@ export default {
});
return
_total
;
},
/*totalSplitQty() {
let _total = 0;
const { orderSplitItemBackVOList = [] } = this.splitData;
orderSplitItemBackVOList.forEach((v) => {
_total = Decimal.add(_total, Number(v.quantity)).toNumber();
});
return _total;
},*/
/* 打开拆单 */
getSplit
()
{
this
.
orderItems
=
this
.
currRow
.
goodsList
??
[];
...
...
@@ -546,11 +538,12 @@ export default {
leftNum
=
Math
.
min
(
leftNum
,
this
.
mainOrderItem
.
num
)
// 放入箱数
this
.
$set
(
this
.
shopForm
,
'
num
'
,
leftNum
)
this
.
calcAverg
()
},
// 按比例计算体积重量的默认值
calcAverg
(){
// 装箱比例
const
rate
=
leftN
um
/
this
.
mainOrderItem
.
num
const
rate
=
this
.
shopForm
.
n
um
/
this
.
mainOrderItem
.
num
// 放入个数,剩余个数是算不出来的,因为不知道已装数量,所以放入数量只能按照总数的比例计算
this
.
$set
(
this
.
shopForm
,
'
quantity
'
,
Math
.
ceil
(
this
.
mainOrderItem
.
quantity
*
rate
||
0
*
rate
))
...
...
@@ -560,60 +553,6 @@ export default {
this
.
$set
(
this
.
shopForm
,
'
weight
'
,
(
this
.
mainOrderItem
.
weight
*
rate
).
toFixed
(
2
))
this
.
$set
(
this
.
shopForm
,
'
chargeWeight
'
,
(
this
.
mainOrderItem
.
chargeWeight
*
rate
).
toFixed
(
2
))
},
/*async changeProdTitleZh() {
const item = this.setShopForm("zhId");
this.shopForm.enId = item.id;
this.shopForm = { ...this.shopForm };
await this.getSelectData(item);
},
async changeProdTitleEn() {
const item = this.setShopForm("enId");
this.shopForm.zhId = item.id;
this.shopForm = { ...this.shopForm };
await this.getSelectData(item);
},
setShopForm(key) {
let list = [];
list = this.orderItems.filter((item) => item.id == this.shopForm[key]);
const data = list[0];
const itemNum = data.num ?? 0;
const itemQty = data.quantity ?? 0;
// 获取拆单项的总num
const total = this.totalSplitNum();
// 订单的剩余
const orderNum = this.currRow.num - this.currRow.installNum;
// 剩余可装
const remainNum = Decimal.sub(orderNum, total).toNumber();
this.shopForm.num = 0;
this.shopForm.putNum = 0;
// 剩余可装大于等于订单项剩余,显示订单剩余
if (remainNum >= itemNum) {
this.shopForm.num = remainNum;
this.shopForm.putNum = itemNum;
}
// 订单剩余小于订单项剩余,显示订单项剩余
if (remainNum < itemNum) {
this.shopForm.num = this.shopForm.putNum = remainNum;
}
const totalQty = this.totalSplitQty();
this.shopForm.quantity = 0;
if (totalQty >= itemQty) {
this.shopForm.quantity = totalQty;
}
if (totalQty < itemQty) {
this.shopForm.quantity = itemQty;
}
this.shopForm.orderItemId = data.orderItemId;
this.shopForm.putQuantity = Decimal.div(
this.shopForm.quantity,
this.shopForm.num
).toFixed(0);
return data;
},*/
async
getSelectData
(
item
)
{
await
quantityRequired
(
this
.
orderData
.
lineId
).
then
((
res
)
=>
{
if
(
res
.
data
)
{
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/startPacking.vue
View file @
2b3c625e
...
...
@@ -537,7 +537,7 @@ export default {
});
}).
catch
((
res
)
=>
{
if
(
res
.
code
===
666
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
)
,
this
.
$t
(
"
提示
"
),
{
this
.
$confirm
(
"
<div style='max-height:500px;overflow:auto'>
"
+
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
)
+
"
</div>
"
,
this
.
$t
(
"
提示
"
),
{
dangerouslyUseHTMLString
:
true
,
distinguishCancelAndClose
:
true
,
confirmButtonText
:
'
确定移出
'
,
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/supplementOrder.vue
View file @
2b3c625e
...
...
@@ -293,6 +293,7 @@ export default {
if
(
data
.
relationMsg
)
{
const
msg
=
data
.
relationMsg
.
replaceAll
(
"
,
"
,
"
,
"
);
this
.
$confirm
(
msg
,
this
.
$t
(
"
提示
"
),
{
dangerouslyUseHTMLString
:
true
,
type
:
"
warning
"
,
})
.
then
((
_
)
=>
{
...
...
@@ -315,6 +316,7 @@ export default {
if
(
res
.
code
===
555
)
{
const
msg
=
res
.
msg
&&
res
.
msg
.
replaceAll
(
"
,
"
,
"
,
"
);
this
.
$confirm
(
msg
,
this
.
$t
(
"
提示
"
),
{
dangerouslyUseHTMLString
:
true
,
type
:
"
warning
"
,
})
.
then
((
_
)
=>
{
...
...
@@ -331,6 +333,7 @@ export default {
if
(
res
.
code
===
566
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起预装?
'
),
this
.
$t
(
"
提示
"
),
{
dangerouslyUseHTMLString
:
true
,
type
:
"
warning
"
,
})
.
then
((
_
)
=>
{
...
...
@@ -367,7 +370,11 @@ export default {
}
)
.
then
((
_
)
=>
{
deleteSection
(
this
.
partData
.
id
).
then
((
res
)
=>
{
let
params
=
{
id
:
this
.
partData
.
id
,
deleteType
:
2
};
deleteSection
(
params
).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
partData
=
{};
this
.
getSecGoods
();
...
...
src/views/ecw/box/shippingSea/nodePage/preinstall.vue
View file @
2b3c625e
...
...
@@ -631,7 +631,11 @@ export default {
}
)
.
then
((
_
)
=>
{
deleteSection
(
part
.
id
).
then
((
res
)
=>
{
let
params
=
{
id
:
part
.
id
,
deleteType
:
2
}
;
deleteSection
(
params
).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
}
);
...
...
@@ -657,6 +661,7 @@ export default {
if
(
data
.
relationMsg
)
{
const
msg
=
data
.
relationMsg
.
replaceAll
(
"
,
"
,
"
,
"
);
this
.
$confirm
(
msg
,
this
.
$t
(
"
提示
"
),
{
dangerouslyUseHTMLString
:
true
,
type
:
"
warning
"
,
}
)
.
then
((
_
)
=>
{
...
...
@@ -679,6 +684,7 @@ export default {
if
(
res
.
code
===
555
)
{
const
msg
=
res
.
msg
&&
res
.
msg
.
replaceAll
(
"
,
"
,
"
,
"
);
this
.
$confirm
(
msg
,
this
.
$t
(
"
提示
"
),
{
dangerouslyUseHTMLString
:
true
,
type
:
"
warning
"
,
}
)
.
then
((
_
)
=>
{
...
...
@@ -695,6 +701,7 @@ export default {
if
(
res
.
code
===
566
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起预装?
'
),
this
.
$t
(
"
提示
"
),
{
dangerouslyUseHTMLString
:
true
,
type
:
"
warning
"
,
}
)
.
then
((
_
)
=>
{
...
...
@@ -746,7 +753,7 @@ export default {
}
);
}
).
catch
((
res
)
=>
{
if
(
res
.
code
===
666
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
)
,
this
.
$t
(
"
提示
"
),
{
this
.
$confirm
(
"
<div style='max-height:500px;overflow:auto'>
"
+
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
)
+
"
</div>
"
,
this
.
$t
(
"
提示
"
),
{
dangerouslyUseHTMLString
:
true
,
distinguishCancelAndClose
:
true
,
confirmButtonText
:
'
确定移出
'
,
...
...
src/views/ecw/box/shippingSea/nodePage/tally/index.vue
View file @
2b3c625e
...
...
@@ -250,7 +250,7 @@ export default {
});
}).
catch
((
res
)
=>
{
if
(
res
.
code
===
666
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
)
,
this
.
$t
(
"
提示
"
),
{
this
.
$confirm
(
"
<div style='max-height:500px;overflow:auto'>
"
+
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
)
+
"
</div>
"
,
this
.
$t
(
"
提示
"
),
{
dangerouslyUseHTMLString
:
true
,
distinguishCancelAndClose
:
true
,
confirmButtonText
:
'
确定移出
'
,
...
...
src/views/ecw/order/splitApply.vue
View file @
2b3c625e
...
...
@@ -382,12 +382,16 @@ export default {
Promise
.
all
([
this
.
getList
(),
this
.
getOrder
()]).
then
(
res
=>
{
console
.
log
(
"
拆单数据
"
,
this
.
splitData
,
this
.
splitData
.
length
)
if
(
this
.
orderData
.
inWarehouseState
!=
207
&&
this
.
splitData
.
length
){
this
.
$confirm
(
this
.
$t
(
'
已有拆单数据,是否要重置?
'
)).
then
(
res
=>
{
// 2023-05-20确认不需要询问,直接重置
deleteAllSplit
(
this
.
queryParams
.
orderId
).
then
(
res
=>
{
this
.
getList
()
})
/*this.$confirm(this.$t('已有拆单数据,是否要重置?')).then(res => {
return deleteAllSplit(this.queryParams.orderId)
}).then(res => {
this.getList()
this.$message.success("重置成功")
})
})
*/
}
})
...
...
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