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
bfe01737
Commit
bfe01737
authored
May 20, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
d384c43d
9d2dda59
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
110 deletions
+60
-110
warehouse.js
src/api/ecw/warehouse.js
+7
-1
splitOrder.vue
...views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
+9
-72
edit.vue
src/views/ecw/offer/edit.vue
+1
-0
splitApply.vue
src/views/ecw/order/splitApply.vue
+29
-23
weightDeal.vue
src/views/ecw/order/weightDeal.vue
+4
-4
edit.vue
src/views/ecw/productPrice/edit.vue
+10
-10
No files found.
src/api/ecw/warehouse.js
View file @
bfe01737
...
...
@@ -134,4 +134,10 @@ export function serviceConfig(data) {
})
}
// 数量是否必填
export
function
quantityRequired
(
lineId
)
{
return
request
({
url
:
'
/ecw/warehouse/quantity/required/
'
+
lineId
,
method
:
'
get
'
})
}
src/views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
View file @
bfe01737
...
...
@@ -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>
...
...
@@ -271,10 +271,11 @@
<
script
>
import
{
getSplitList
,
quantitycheck
,
//
quantitycheck,
createSplitItem
,
deleteSplitItem
,
}
from
"
@/api/ecw/orderHandle
"
;
import
{
quantityRequired
}
from
"
@/api/ecw/warehouse
"
;
import
{
getTradeCityList
}
from
"
@/api/ecw/region
"
;
import
WorkFlow
from
"
@/components/WorkFlow
"
;
import
{
getOrder
,
splitItemUpdate
}
from
"
@/api/ecw/order
"
;
...
...
@@ -405,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
??
[];
...
...
@@ -545,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
))
...
...
@@ -559,65 +553,8 @@ 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
quantitycheck
({
seaFreightVolume
:
item
.
seaFreightVolume
,
clearanceFreightVolume
:
item
.
clearanceFreightVolume
,
}).
then
((
res
)
=>
{
await
quantityRequired
(
this
.
orderData
.
lineId
).
then
((
res
)
=>
{
if
(
res
.
data
)
{
this
.
isQuantity
=
true
;
this
.
shopRules
.
putQuantity
=
[
...
...
src/views/ecw/offer/edit.vue
View file @
bfe01737
...
...
@@ -1045,6 +1045,7 @@ export default {
this
.
routerList
=
[]
this
.
$nextTick
(()
=>
{
console
.
log
(
'
清理表单校验和路线
'
)
this
.
addProduct
()
this
.
$refs
.
form
.
clearValidate
()
})
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
新增成功
"
));
...
...
src/views/ecw/order/splitApply.vue
View file @
bfe01737
...
...
@@ -96,7 +96,8 @@
</el-row>
<el-row
v-if=
"scope.row.warehouseInInfoVO"
>
<span>
{{
$t
(
'
品牌
'
)
}}
:
<dict-tag
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"scope.row.feeType"
/>
<template
v-if=
"scope.row.brandName"
>
{{
scope
.
row
.
brandName
}}
</
template
>
<dict-tag
v-else
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"scope.row.feeType"
/>
</span>
<span
style=
"margin-left: 10px;"
>
{{$t('箱数')}}:{{!scope.row.warehouseInInfoVO?0:scope.row.warehouseInInfoVO.cartonsNum}}
</span>
<span
style=
"margin-left: 10px;"
>
{{$t('体积')}}:{{!scope.row.warehouseInInfoVO?0:scope.row.warehouseInInfoVO.volume}}m³
</span>
...
...
@@ -137,8 +138,8 @@
<div>
<el-button
v-if=
"index==0"
disabled
type=
"primary"
@
click=
"addShop(index)"
>
{{$t('放入')}}
</el-button>
<el-button
v-if=
"index!=0"
type=
"primary"
@
click=
"addShop(index)"
>
{{$t('放入')}}
</el-button>
<
el-button
v-if=
"index==0"
disabled
type=
"primary"
plain
@
click=
"deleteSplit(item.id)"
>
{{$t('删除')}}
</el-button
>
<el-button
v-if=
"index!=0
"
type=
"primary"
plain
@
click=
"deleteSplit(item.id)"
>
{{$t('删除')}}
</el-button>
<
!--<el-button v-if="index==0" disabled type="primary" plain @click="deleteSplit(item.id)">{{$t('删除')}}</el-button>--
>
<el-button
:disabled=
"index < splitData.length - 1
"
type=
"primary"
plain
@
click=
"deleteSplit(item.id)"
>
{{$t('删除')}}
</el-button>
</div>
</div>
<el-table
v-if=
"item.orderSplitItemBackVOList"
border
:data=
"item.orderSplitItemBackVOList"
>
...
...
@@ -151,7 +152,8 @@
<el-table-column
:label=
"$t('英文名')"
align=
"center"
prop=
"prodTitleEn"
/>
<el-table-column
:label=
"$t('品牌')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"scope.row.brandType"
/>
<template
v-if=
"scope.row.brandName"
>
{{
scope
.
row
.
brandName
}}
</
template
>
<dict-tag
v-else
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"scope.row.feeType"
/>
</template>
</el-table-column>
<el-table-column
:label=
"$t('入仓体积')"
align=
"center"
>
...
...
@@ -310,10 +312,9 @@ import {
createSplitItem
,
deleteSplitItem
,
deleteSplit
,
quantitycheck
,
deleteAllSplit
}
from
"
@/api/ecw/orderHandle
"
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
{
getWarehouseList
,
quantityRequired
}
from
'
@/api/ecw/warehouse
'
import
{
getChannelList
}
from
'
@/api/ecw/channel
'
import
WorkFlow
from
'
@/components/WorkFlow
'
import
{
getOrder
,
splitItemUpdate
}
from
'
@/api/ecw/order
'
...
...
@@ -378,17 +379,22 @@ export default {
if
(
this
.
$route
.
query
.
orderId
)
{
this
.
queryParams
.
orderId
=
this
.
$route
.
query
.
orderId
}
await
this
.
getList
()
this
.
getOrder
()
Promise
.
all
([
this
.
getList
(),
this
.
getOrder
()]).
then
(
res
=>
{
console
.
log
(
"
拆单数据
"
,
this
.
splitData
,
this
.
splitData
.
length
)
if
(
this
.
splitData
.
length
){
this
.
$confirm
(
this
.
$t
(
'
已有拆单数据,是否要重置?
'
)).
then
(
res
=>
{
if
(
this
.
orderData
.
inWarehouseState
!=
207
&&
this
.
splitData
.
length
){
// 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("重置成功")
})
})*/
}
})
},
watch
:
{
//监听table这个对象
...
...
@@ -467,7 +473,7 @@ export default {
},
getOrder
(){
this
.
loading
=
true
;
getOrder
(
this
.
queryParams
.
orderId
).
then
(
response
=>
{
return
getOrder
(
this
.
queryParams
.
orderId
).
then
(
response
=>
{
this
.
orderData
=
response
.
data
this
.
query
.
destWarehouseId
=
response
.
data
.
logisticsInfoDto
.
startWarehouseId
this
.
loading
=
false
...
...
@@ -612,15 +618,15 @@ export default {
this
.
shopForm
.
prodTitleEn
=
list
[
0
].
prodTitleEn
this
.
shopForm
.
prodTitleZh
=
list
[
0
].
prodTitleZh
var
orderItemData
=
this
.
orderData
.
orderItemVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
shopForm
.
orderItemId
)
var
params
=
{
/*
var params = {
'seaFreightVolume':orderItemData.seaFreightVolume,
'clearanceFreightVolume':orderItemData.clearanceFreightVolume
}
console
.
log
(
orderItemData
)
this
.
numcheck
(
params
)
console.log(orderItemData)
*/
this
.
numcheck
()
},
numcheck
(
params
){
quantity
check
(
params
).
then
(
res
=>
{
numcheck
(){
quantity
Required
(
this
.
orderData
.
lineId
).
then
(
res
=>
{
this
.
quantityshow
=
res
.
data
})
},
...
...
src/views/ecw/order/weightDeal.vue
View file @
bfe01737
...
...
@@ -88,22 +88,22 @@
</el-table-column>
<el-table-column
:label=
"$t('重货方数')"
v-if=
"type=='order_heavy_cargo_exception'"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
w
eVolume
||
0
}}
CBM
</span>
<span>
{{
scope
.
row
.
charg
eVolume
||
0
}}
CBM
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('泡货方数')"
v-if=
"type!='order_heavy_cargo_exception'"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
w
eVolume
||
0
}}
CBM
</span>
<span>
{{
scope
.
row
.
charg
eVolume
||
0
}}
CBM
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('重货重量')"
v-if=
"type=='order_heavy_cargo_exception'"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
voWeight
||
0
}}
KG
</span>
<span>
{{
scope
.
row
.
chargeWeight
||
0
}}
KG
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('泡货重量')"
v-if=
"type!='order_heavy_cargo_exception'"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
vweight
||
0
}}
KG
</span>
<span>
{{
scope
.
row
.
chargeWeight
||
0
}}
KG
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('最后操作时间')"
scope=
"handlerTime"
/>
...
...
src/views/ecw/productPrice/edit.vue
View file @
bfe01737
...
...
@@ -735,7 +735,7 @@ export default {
this
.
form
.
priceStepList
.
forEach
(
item
=>
{
let
notEmptyFields
=
[
'
startNum
'
,
'
endNum
'
,
'
weightUnit
'
]
notEmptyFields
.
forEach
(
field
=>
{
if
(
item
[
field
].
toString
().
trim
()
==
''
){
if
(
!
item
[
field
]
||
item
[
field
].
toString
().
trim
()
==
''
){
stepPriceEmpty
=
true
}
}
)
...
...
@@ -744,7 +744,7 @@ export default {
}
}
)
if
(
stepPriceEmpty
){
return
this
.
$message
.
error
(
this
.
$t
(
'
阶梯价格设置不能留空
'
))
return
this
.
$message
.
error
(
this
.
$t
(
'
阶梯
和
价格设置不能留空
'
))
}
}
...
...
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