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
7484b2e7
Commit
7484b2e7
authored
May 19, 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
6ed51a40
b63f7a0b
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
219 additions
and
73 deletions
+219
-73
orderHandle.js
src/api/ecw/orderHandle.js
+9
-1
warehouse.js
src/api/ecw/warehouse.js
+7
-1
request.js
src/utils/request.js
+1
-0
splitOrder.vue
...views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
+3
-5
startPacking.vue
...ews/ecw/box/shippingSea/nodePage/cabinet/startPacking.vue
+11
-6
supplementOrder.vue
.../ecw/box/shippingSea/nodePage/cabinet/supplementOrder.vue
+83
-5
preinstall.vue
src/views/ecw/box/shippingSea/nodePage/preinstall.vue
+11
-6
index.vue
src/views/ecw/box/shippingSea/nodePage/tally/index.vue
+11
-6
edit.vue
src/views/ecw/offer/edit.vue
+27
-14
splitApply.vue
src/views/ecw/order/splitApply.vue
+44
-18
Warehouse.vue
src/views/ecw/order/warehousing/components/Warehouse.vue
+2
-1
edit.vue
src/views/ecw/productPrice/edit.vue
+10
-10
No files found.
src/api/ecw/orderHandle.js
View file @
7484b2e7
...
...
@@ -59,7 +59,6 @@ export function deleteSplit(id) {
})
}
//取消申请拆单
export
function
cancelApply
(
data
)
{
return
request
({
url
:
'
/order/split/cancel-apply
'
,
...
...
@@ -137,3 +136,12 @@ export function quantitycheck(query) {
params
:
query
})
}
// 重置拆单
export
function
deleteAllSplit
(
orderId
)
{
return
request
({
url
:
'
/order/split/delete/all
'
,
method
:
'
delete
'
,
params
:
{
orderId
}
})
}
src/api/ecw/warehouse.js
View file @
7484b2e7
...
...
@@ -134,4 +134,10 @@ export function serviceConfig(data) {
})
}
// 数量是否必填
export
function
quantityRequired
(
lineId
)
{
return
request
({
url
:
'
/ecw/warehouse/quantity/required/
'
+
lineId
,
method
:
'
get
'
})
}
src/utils/request.js
View file @
7484b2e7
...
...
@@ -87,6 +87,7 @@ service.interceptors.response.use(res => {
return
Promise
.
reject
(
'
无效的会话,或者会话已过期,请重新登录。
'
)
}
else
if
(
code
===
500
)
{
Message
({
dangerouslyUseHTMLString
:
true
,
message
:
msg
,
type
:
'
error
'
})
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
View file @
7484b2e7
...
...
@@ -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
"
;
...
...
@@ -614,10 +615,7 @@ export default {
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/box/shippingSea/nodePage/cabinet/startPacking.vue
View file @
7484b2e7
...
...
@@ -538,7 +538,10 @@ export default {
}).
catch
((
res
)
=>
{
if
(
res
.
code
===
666
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
),
this
.
$t
(
"
提示
"
),
{
type
:
"
warning
"
,
dangerouslyUseHTMLString
:
true
,
distinguishCancelAndClose
:
true
,
confirmButtonText
:
'
确定移出
'
,
cancelButtonText
:
'
仅移出当前订单
'
})
.
then
((
_
)
=>
{
remove
({
...
params
,
deleteType
:
2
}).
then
((
res
)
=>
{
...
...
@@ -547,12 +550,14 @@ export default {
});
});
})
.
catch
((
_
)
=>
{
remove
({
...
params
,
deleteType
:
1
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getLoadSecGoodsList
();
.
catch
(
action
=>
{
if
(
action
==
'
cancel
'
){
remove
({
...
params
,
deleteType
:
1
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getLoadSecGoodsList
();
});
});
}
);
}
});
}
});
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/supplementOrder.vue
View file @
7484b2e7
...
...
@@ -246,6 +246,31 @@ export default {
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getSecGoods
();
});
}).
catch
((
res
)
=>
{
if
(
res
.
code
===
666
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
),
this
.
$t
(
"
提示
"
),
{
dangerouslyUseHTMLString
:
true
,
distinguishCancelAndClose
:
true
,
confirmButtonText
:
'
确定移出
'
,
cancelButtonText
:
'
仅移出当前订单
'
})
.
then
((
_
)
=>
{
remove
({
...
params
,
deleteType
:
2
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getSecGoods
();
});
});
})
.
catch
(
action
=>
{
if
(
action
==
'
cancel
'
){
remove
({
...
params
,
deleteType
:
1
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getSecGoods
();
});
});
}
});
}
});
},
/** 预装 */
...
...
@@ -262,11 +287,64 @@ export default {
}
else
{
params
.
orderItemIdList
=
[
item
.
orderItemId
];
}
createGoods
(
params
).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
});
});
createGoods
(
params
)
.
then
((
res
)
=>
{
const
{
data
}
=
res
;
if
(
data
.
relationMsg
)
{
const
msg
=
data
.
relationMsg
.
replaceAll
(
"
,
"
,
"
,
"
);
this
.
$confirm
(
msg
,
this
.
$t
(
"
提示
"
),
{
type
:
"
warning
"
,
})
.
then
((
_
)
=>
{
loadRelationOrder
(
data
).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
});
});
})
.
catch
((
_
)
=>
{
this
.
queryAllData
();
});
}
else
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
});
}
})
.
catch
((
res
)
=>
{
if
(
res
.
code
===
555
)
{
const
msg
=
res
.
msg
&&
res
.
msg
.
replaceAll
(
"
,
"
,
"
,
"
);
this
.
$confirm
(
msg
,
this
.
$t
(
"
提示
"
),
{
type
:
"
warning
"
,
})
.
then
((
_
)
=>
{
createGoods
({
...
params
,
relationStatus
:
1
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
});
});
})
.
catch
((
_
)
=>
{
this
.
queryAllData
();
});
}
if
(
res
.
code
===
566
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起预装?
'
),
this
.
$t
(
"
提示
"
),
{
type
:
"
warning
"
,
})
.
then
((
_
)
=>
{
createGoods
({
...
params
,
relationStatus
:
2
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
});
});
})
.
catch
((
_
)
=>
{
this
.
queryAllData
();
});
}
});
},
/* 增加部分 */
addPart
()
{
...
...
src/views/ecw/box/shippingSea/nodePage/preinstall.vue
View file @
7484b2e7
...
...
@@ -747,7 +747,10 @@ export default {
}
).
catch
((
res
)
=>
{
if
(
res
.
code
===
666
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
),
this
.
$t
(
"
提示
"
),
{
type
:
"
warning
"
,
dangerouslyUseHTMLString
:
true
,
distinguishCancelAndClose
:
true
,
confirmButtonText
:
'
确定移出
'
,
cancelButtonText
:
'
仅移出当前订单
'
}
)
.
then
((
_
)
=>
{
deleteGoods
({
...
param
,
deleteType
:
2
}
).
then
((
res
)
=>
{
...
...
@@ -756,12 +759,14 @@ export default {
}
);
}
);
}
)
.
catch
((
_
)
=>
{
deleteGoods
({
...
param
,
deleteType
:
1
}
).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
.
catch
(
action
=>
{
if
(
action
==
'
cancel
'
){
deleteGoods
({
...
param
,
deleteType
:
1
}
).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
}
);
}
);
}
);
}
}
);
}
}
);
...
...
src/views/ecw/box/shippingSea/nodePage/tally/index.vue
View file @
7484b2e7
...
...
@@ -251,7 +251,10 @@ export default {
}).
catch
((
res
)
=>
{
if
(
res
.
code
===
666
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
),
this
.
$t
(
"
提示
"
),
{
type
:
"
warning
"
,
dangerouslyUseHTMLString
:
true
,
distinguishCancelAndClose
:
true
,
confirmButtonText
:
'
确定移出
'
,
cancelButtonText
:
'
仅移出当前订单
'
})
.
then
((
_
)
=>
{
tallyRemove
({
...
param
,
deleteType
:
2
}).
then
((
res
)
=>
{
...
...
@@ -260,12 +263,14 @@ export default {
});
});
})
.
catch
((
_
)
=>
{
tallyRemove
({
...
param
,
deleteType
:
1
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getList
();
.
catch
(
action
=>
{
if
(
action
==
'
cancel
'
){
tallyRemove
({
...
param
,
deleteType
:
1
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getList
();
});
});
}
);
}
});
}
});
...
...
src/views/ecw/offer/edit.vue
View file @
7484b2e7
...
...
@@ -520,6 +520,16 @@ import QuickCreateCustomer from '@/components/QuickCreateCustomer'
import
{
getCustomerContactsSelect
}
from
'
@/api/ecw/customerContacts
'
import
Decimal
from
'
decimal.js
'
window
.
Decimal
=
Decimal
const
createDefaultForm
=
()
=>
{
return
{
sendstatus
:
0
,
type
:
[],
control
:
false
,
isCargoControl
:
false
,
prodCreateReqVOList
:[],
transportVO
:
{}
}
}
export
default
{
name
:
"
EcwOfferEdit
"
,
components
:
{
...
...
@@ -542,16 +552,9 @@ export default {
// couponList: [],
fee
:
{},
// 费用
// 表单参数
form
:
{
sendstatus
:
0
,
type
:
[],
control
:
false
,
isCargoControl
:
false
,
prodCreateReqVOList
:[],
transportVO
:
{}
},
form
:
{...
createDefaultForm
()},
// 表单校验
labelStyle
:
'
width:120px
'
,
productNames
:
{},
// 品名id和名称对应关系
couponAvailableGroupDtoList
:
[],
// 可用优惠
...
...
@@ -771,7 +774,7 @@ export default {
currencyId
:
this
.
form
.
otherFeeCurrencyId
,
amount
:
Decimal
(
this
.
form
.
otherFee
)
}
// 如果保价费跟其他费用是同一种货币(都是美元)
if
(
!
withInsuranceFee
&&
this
.
fee
&&
this
.
fee
.
insuranceFee
&&
this
.
form
.
otherFeeCurrencyId
==
1
){
fee
.
amount
=
fee
.
amount
.
plus
(
this
.
fee
.
insuranceFee
)
...
...
@@ -780,7 +783,7 @@ export default {
arr
.
push
(
fee
)
}
return
arr
},
...
...
@@ -823,7 +826,7 @@ export default {
}))
}
this
.
getOpenedRouterList
()
// 更换运输方式之后,之前选择的路线会失效,需要重新选择
if
(
oldTransportId
&&
oldTransportId
!=
transportId
&&
transportId
!=
this
.
selectedRouter
?.
transportType
){
console
.
log
(
'
重置路线
'
,
oldTransportId
,
transportId
,
this
.
selectedRouter
?.
transportType
)
...
...
@@ -840,13 +843,13 @@ export default {
this
.
$set
(
this
.
form
,
'
departureId
'
,
router
.
startCityId
)
this
.
$set
(
this
.
form
,
'
objectiveId
'
,
router
.
destCityId
)
}
this
.
$nextTick
(()
=>
{
this
.
calculationPrice
(
'
form.lineId
'
)
})
},
'
form.transportVO.packageTypeArr
'
(
val
){
this
.
$set
(
this
.
form
.
transportVO
,
'
packageType
'
,
val
.
join
(
'
,
'
))
this
.
$set
(
this
.
form
.
transportVO
,
'
packageType
'
,
(
val
||
[])
.
join
(
'
,
'
))
},
// 选择的路线变化后,需要判断是否开通了对应的服务,如果没开通需要取消对应的服务选择
selectedRouter
(
val
){
...
...
@@ -982,6 +985,8 @@ export default {
if
(
this
.
form
.
channelId
){
params
.
channelId
=
this
.
form
.
channelId
}
// 如果没有任何条件,不请求接口
if
(
!
params
.
startCityId
&&
!
params
.
destCityId
&&
!
params
.
transportType
&&
!
params
.
channelId
)
return
false
getOpenedRouterList
(
params
).
then
(
res
=>
this
.
routerList
=
res
.
data
)
},
// 计算体积
...
...
@@ -1035,6 +1040,14 @@ export default {
})
// 添加的提交
createOffer
(
data
).
then
(
response
=>
{
// 重置表单内容
this
.
$set
(
this
,
'
form
'
,
{...
createDefaultForm
()})
this
.
routerList
=
[]
this
.
$nextTick
(()
=>
{
console
.
log
(
'
清理表单校验和路线
'
)
this
.
addProduct
()
this
.
$refs
.
form
.
clearValidate
()
})
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
新增成功
"
));
this
.
$redirect
(
'
index
'
)
});
...
...
src/views/ecw/order/splitApply.vue
View file @
7484b2e7
...
...
@@ -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"
>
...
...
@@ -242,7 +244,7 @@
</el-select>
</el-form-item>
<el-form-item
:label2=
"$t('剩余箱数')"
v-if=
"mainOrderItem.orderItemId"
>
剩余箱数
{{ shopForm.sum || 0 }}
<!--,可放入箱数:{{ mainOrderItem.num - 1 }}-->
{{$t('剩余箱数')}}
{{ shopForm.sum || 0 }}
<!--,可放入箱数:{{ mainOrderItem.num - 1 }}-->
</el-form-item>
<el-form-item
:label=
"$t('放入箱数')"
>
<el-input-number
v-model=
"shopForm.num"
@
change=
"numChange"
controls-position=
"right"
:min=
"1"
:max=
"mainOrderItem.num"
></el-input-number>
...
...
@@ -302,8 +304,17 @@
<
script
>
import
{
getDictData
,
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
getSplitList
,
splitApply
,
createSplit
,
cancelApply
,
createSplitItem
,
deleteSplitItem
,
deleteSplit
,
quantitycheck
}
from
"
@/api/ecw/orderHandle
"
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
{
getSplitList
,
splitApply
,
createSplit
,
cancelApply
,
createSplitItem
,
deleteSplitItem
,
deleteSplit
,
deleteAllSplit
}
from
"
@/api/ecw/orderHandle
"
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
'
...
...
@@ -359,7 +370,7 @@ export default {
quantitySum
:
0
};
},
created
()
{
async
created
()
{
this
.
getChannel
()
getWarehouseList
().
then
(
res
=>
{
this
.
tradeCityList
=
res
.
data
...
...
@@ -368,8 +379,18 @@ export default {
if
(
this
.
$route
.
query
.
orderId
)
{
this
.
queryParams
.
orderId
=
this
.
$route
.
query
.
orderId
}
this
.
getList
()
this
.
getOrder
()
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
=>
{
return
deleteAllSplit
(
this
.
queryParams
.
orderId
)
}).
then
(
res
=>
{
this
.
getList
()
this
.
$message
.
success
(
"
重置成功
"
)
})
}
})
},
watch
:
{
//监听table这个对象
...
...
@@ -448,7 +469,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
...
...
@@ -459,7 +480,7 @@ export default {
getList
()
{
this
.
loading
=
true
;
// 执行查询
getSplitList
(
this
.
queryParams
).
then
(
response
=>
{
return
getSplitList
(
this
.
queryParams
).
then
(
response
=>
{
this
.
splitData
=
response
.
data
.
orderSplitBackVOList
this
.
orderApprovalBackVO
=
response
.
data
...
...
@@ -540,8 +561,13 @@ export default {
// 挂在到window测试
window
.
orderData
=
this
.
orderData
this
.
orderData
.
orderItemVOList
.
forEach
(
item
=>
{
// 未入仓的不检查
if
(
!
item
.
warehouseInInfoVO
){
return
}
// 没拆单的不检查
if
(
!
item
.
splitSum
){
prods
.
push
(
this
.
$l
(
item
,
'
prodTitle
'
))
//
prods.push(this.$l(item, 'prodTitle'))
return
}
if
(
item
.
splitSum
.
volume
.
toNumber
()
!=
item
.
warehouseInInfoVO
.
volume
||
item
.
splitSum
.
weight
.
toNumber
()
!=
item
.
warehouseInInfoVO
.
weight
){
...
...
@@ -588,15 +614,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/warehousing/components/Warehouse.vue
View file @
7484b2e7
...
...
@@ -943,9 +943,10 @@ export default {
const
form
=
val
===
1
?
this
.
form1
:
this
.
form
const
formLength
=
form
.
table
.
length
let
orderLocationBackVOList
=
[]
/* // 不默认使用上一条记录的储位 https://zentao.test.jdshangmen.com/bug-view-3344.html
if (formLength > 0) {
orderLocationBackVOList = JSON.parse(JSON.stringify(form.table[formLength - 1].orderLocationBackVOList))
}
}
*/
form
.
table
.
push
({
"
boxGauge1
"
:
this
.
isJiyun
?
0
:
''
,
"
boxGauge2
"
:
this
.
isJiyun
?
0
:
''
,
...
...
src/views/ecw/productPrice/edit.vue
View file @
7484b2e7
...
...
@@ -152,7 +152,7 @@
<
/el-form-item
>
<
/template
>
<
/template>
<
/template
>
<!--
特需
-->
<
template
v
-
if
=
"
form.priceType==1
"
>
<
el
-
form
-
item
...
...
@@ -192,7 +192,7 @@
<
selector
disabled
v
-
model
=
"
special.clearanceVolumeUnit
"
:
options
=
"
unitList
"
:
label
-
field
=
"
$l(null, 'title')
"
value
-
field
=
"
id
"
defaultable2
class
=
"
w-100
"
/>
<
/el-form-item
>
<
/template
>
<
el
-
form
-
item
:
label
=
"
$t('价格有效期')
"
>
<
el
-
date
-
picker
v
-
model
=
"
form.validateStartDate
"
value
-
format
=
"
yyyy-MM-dd HH:mm:ss
"
><
/el-date-picker
>
...
...
@@ -253,7 +253,7 @@
<
div
>
{{
$t
(
'
预付
'
)
}}
:
<
dict
-
tag
:
type
=
"
DICT_TYPE.ECW_PAY_ADVANCE
"
:
value
=
"
row.detail.needPay
"
/><
/div
>
<
div
>
{{
$t
(
'
单价模式
'
)
}}
:
<
dict
-
tag
:
type
=
"
DICT_TYPE.ECW_PRICE_TYPE
"
:
value
=
"
row.detail.priceType
"
/><
/div
>
<
div
v
-
if
=
"
row.detail.minWeight
"
>
{{
$t
(
'
最小起计量
'
)
}}
:
{{
row
.
detail
.
minWeight
}}
{{
unitMap
[
row
.
detail
.
minWeightUnit
]
}}
<
/div
>
<!--
--
阶梯定价
-->
<
template
v
-
if
=
"
row.detail.stepPrice == 1
"
>
<
template
v
-
for
=
"
(item, index) in row.detail.priceStepList
"
>
...
...
@@ -292,7 +292,7 @@
全包价:
{{
row
.
detail
.
allPrice
}}
{{
currencyMap
[
row
.
detail
.
allPriceUnit
]
}}
/
{{
unitMap
[
row
.
detail
.
allVolumeUnit
]
}}
<
/div
>
<
template
v
-
for
=
"
(item, index) in row.detail.specialList
"
>
<
template
v
-
if
=
"
row.detail.priceType != 1
"
>
<
div
:
key
=
"
item.specialDictType + '_freight'
"
>
...
...
@@ -384,7 +384,7 @@ export default {
}
)
return
map
}
}
,
watch
:
{
showLogsDialog
(
showLogsDialog
){
...
...
@@ -587,7 +587,7 @@ export default {
warehouseLineDO
:
{...
res
.
data
[
0
]
}
}
)]
}
)
}
}
...
...
@@ -630,9 +630,9 @@ export default {
"
transportVolumeUnit
"
:
null
,
}
)
}
}
)
}
,
methods
:
{
// 同步全部单位
...
...
@@ -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