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
a70a22c0
Commit
a70a22c0
authored
Jul 05, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/release' into release
parents
08ba7d4f
0abd6edf
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
260 additions
and
82 deletions
+260
-82
index.vue
src/components/ProductSelector/index.vue
+3
-1
Navbar.vue
src/layout/components/Navbar.vue
+7
-3
request.js
src/utils/request.js
+1
-1
detail.vue
src/views/bpm/processInstance/detail.vue
+1
-1
splitOrder.vue
...views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
+36
-18
preinstall.vue
src/views/ecw/box/shippingSea/nodePage/preinstall.vue
+15
-5
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+64
-5
BoxSplitDetail.vue
src/views/ecw/order/components/BoxSplitDetail.vue
+4
-1
SplitDetail.vue
src/views/ecw/order/components/SplitDetail.vue
+19
-11
PutIn.vue
src/views/ecw/order/splitApply/components/PutIn.vue
+39
-13
WarehouseRecord.vue
...views/ecw/order/splitApply/components/WarehouseRecord.vue
+11
-2
index.vue
src/views/ecw/order/splitApply/index.vue
+60
-21
No files found.
src/components/ProductSelector/index.vue
View file @
a70a22c0
...
...
@@ -79,8 +79,10 @@ export default {
if
(
index
<
0
){
getProduct
(
this
.
value
).
then
(
res
=>
{
this
.
list
.
unshift
(
res
.
data
)
this
.
$nextTick
(()
=>
{
this
.
index
=
0
})
})
}
else
this
.
index
=
index
},
onFocus
(){
...
...
src/layout/components/Navbar.vue
View file @
a70a22c0
...
...
@@ -94,10 +94,14 @@ export default {
}
},
created
()
{
this
.
updateMessage
()
// 未避免频繁内存溢出,减少请求记录感染,开发的时候不轮询消息
if
(
process
.
env
.
NODE_ENV
!=
'
development
'
){
setInterval
(()
=>
{
this
.
updateMessage
()
},
10000
)
}
this
.
updateMessage
()
},
components
:
{
Breadcrumb
,
...
...
src/utils/request.js
View file @
a70a22c0
...
...
@@ -16,7 +16,7 @@ const service = axios.create({
// axios中请求配置有baseURL选项,表示请求URL公共部分
baseURL
:
(
localStorage
.
VUE_APP_BASE_API
||
process
.
env
.
VUE_APP_BASE_API
)
+
'
/admin-api/
'
,
// 此处的 /admin-api/ 地址,原因是后端的基础路径为 /admin-api/
// 超时
timeout
:
10000
timeout
:
1000
*
3
0
})
// request拦截器
service
.
interceptors
.
request
.
use
(
config
=>
{
...
...
src/views/bpm/processInstance/detail.vue
View file @
a70a22c0
...
...
@@ -282,7 +282,7 @@ export default {
id
:
this
.
processInstance
.
businessKey
,
},
// 退场拆单,跟出货装柜拆单一样
customs_exit_par
t_split
:
{
exi
t_split
:
{
component
:
"
BoxSplitDetail
"
,
id
:
this
.
processInstance
.
businessKey
,
},
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
View file @
a70a22c0
...
...
@@ -179,7 +179,7 @@
<el-button
type=
"text"
@
click=
"showWarehouse(scope.row)"
>
{{
scope
.
row
.
num
}}
</el-button>
</
template
>
</el-table-column>
<el-table-column
:label=
"
`${$t('数量')}($t('个')`
"
align=
"center"
>
<el-table-column
:label=
"
$t('数量(个)')
"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
quantity
}}
</span>
</
template
>
...
...
@@ -214,12 +214,12 @@
<el-form
ref=
"shopForm"
:model=
"shopForm"
:rules=
"shopRules"
label-width=
"150px"
inline
>
<el-form-item
:label=
"$t('中文品名')+':'"
prop=
"orderItemId"
>
<el-select
v-model=
"shopForm.orderItemId"
:placeholder=
"$t('请选择中文品名')"
>
<el-option
v-for=
"item in orderItems"
:label=
"item.prodTitleZh"
:value=
"item.orderItemId"
:key=
"item.id"
:disabled=
"itemDisabled(item)"
></el-option>
<el-option
v-for=
"item in orderItems"
:label=
"item.prodTitleZh"
:value=
"item.orderItemId"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('英文品名')+':'"
prop=
"orderItemId"
>
<el-select
v-model=
"shopForm.orderItemId"
:placeholder=
"$t('请选择英文品名')"
>
<el-option
v-for=
"item in orderItems"
:label=
"item.prodTitleEn"
:value=
"item.orderItemId"
:key=
"item.id"
:disabled=
"itemDisabled(item)"
></el-option>
<el-option
v-for=
"item in orderItems"
:label=
"item.prodTitleEn"
:value=
"item.orderItemId"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
...
...
@@ -281,7 +281,11 @@
<el-table-column
:label=
"$t('快递单号')"
prop=
"expressNo"
></el-table-column>
<el-table-column
:label=
"$t('储位')"
prop=
"orderLocationBackVOList"
>
<
template
v-slot=
"{ row, column, $index }"
>
{{
row
.
orderLocationList
}}
<warehouse-area-select
v-model=
"row.orderLocationBackVOList"
readonly
:warehouse-id=
"currentWarehouseId"
></warehouse-area-select>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('操作')"
>
...
...
@@ -483,6 +487,10 @@ export default {
getOrderWarehouseIn
(
this
.
queryParams
.
orderId
).
then
(
res
=>
{
this
.
warehouseInList
=
res
.
data
})
this
.
$nextTick
(()
=>
{
window
.
$vm
=
this
})
},
watch
:
{
//监听table这个对象
...
...
@@ -503,6 +511,16 @@ export default {
});
},
},
// 切换放入品名
'
shopForm.orderItemId
'
(){
// 默认取以前放入的品名
this
.
shopForm
.
specsRecordVOList
=
[]
let
specsRecordVOList
=
this
.
splitData
.
orderSplitItemBackVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
shopForm
.
orderItemId
)?.
specsRecordVOList
||
[]
specsRecordVOList
.
forEach
(
item
=>
{
const
[
boxGauge1
,
boxGauge2
,
boxGauge3
]
=
item
.
boxGauge
.
split
(
'
*
'
)
this
.
shopForm
.
specsRecordVOList
.
push
({...
item
,
boxGauge1
,
boxGauge2
,
boxGauge3
})
})
}
},
computed
:
{
isAudit
()
{
...
...
@@ -599,14 +617,6 @@ export default {
getWarehouseInspecsRecordVOList
(){
return
warehouseInId
=>
{
let
specsRecordVOList
=
[]
// 这里是拆单已放入的
this
.
splitData
.
orderSplitItemBackVOList
.
forEach
(
splitItem
=>
{
splitItem
.
specsRecordVOList
.
forEach
(
specs
=>
{
if
(
specs
.
warehouseInId
===
warehouseInId
){
specsRecordVOList
.
push
(
specs
)
}
})
})
// 这里是正在操作放入,但是还没确定提交的
this
.
shopForm
.
specsRecordVOList
.
forEach
(
item
=>
{
if
(
item
.
warehouseInId
==
warehouseInId
)
specsRecordVOList
.
push
(
item
)
...
...
@@ -627,7 +637,14 @@ export default {
// 获取入仓记录的剩余数据
getWarehouseLeftData
(){
return
(
warehouseRecord
,
field
)
=>
{
let
total
=
new
Decimal
(
warehouseRecord
[
field
==
'
num
'
?
'
cartonsNum
'
:
field
]
||
0
)
let
warehouseField
=
field
if
(
field
===
'
num
'
){
warehouseField
=
'
cartonsNum
'
}
if
(
field
===
'
quantity
'
){
warehouseField
=
'
quantityAll
'
}
let
total
=
new
Decimal
(
warehouseRecord
[
warehouseField
]
||
0
)
this
.
getWarehouseInspecsRecordVOList
(
warehouseRecord
.
id
).
forEach
(
item
=>
{
total
=
total
.
minus
(
new
Decimal
(
item
[
field
]
||
0
))
})
...
...
@@ -641,9 +658,9 @@ export default {
// 剩余可拆箱数
leftSplitNum
(){
let
num
=
this
.
maxNum
-
this
.
putin
.
num
this
.
splitData
.
orderSplitItemBackVOList
.
forEach
(
item
=>
{
/*
this.splitData.orderSplitItemBackVOList.forEach(item =>{
num -= item.num
})
})
*/
return
num
}
},
...
...
@@ -685,13 +702,13 @@ export default {
this
.
mainOrder
=
data
.
find
(
item
=>
item
.
isMaster
)
});
},
itemDisabled
(
data
)
{
/*
itemDisabled(data) {
const { orderSplitItemBackVOList = [] } = this.splitData;
const isExist = orderSplitItemBackVOList.find(
(item) => item.orderItemId === data.orderItemId
);
return isExist ? true : false;
},
},
*/
/* 查询拆单项 */
querySplitGoods
()
{
getSplitList
({
...
...
@@ -910,7 +927,7 @@ export default {
if
(
!
locationArr
||
!
locationArr
.
length
)
return
''
let
arr
=
[]
locationArr
.
forEach
(
item
=>
{
arr
.
push
(
`
${
item
.
areaName
}${
item
.
locationName
||
''
}
`
)
arr
.
push
(
`
${
item
.
areaName
||
''
}${
item
.
locationName
||
''
}
`
)
})
return
Array
.
from
(
new
Set
(
arr
)).
join
(
"
,
"
)
},
...
...
@@ -935,6 +952,7 @@ export default {
const
rate
=
this
.
putin
.
num
/
orderItem
.
warehouseInInfoVO
.
cartonsNum
this
.
$set
(
this
.
shopForm
,
'
chargeVolume
'
,
(
orderItem
.
chargeVolume
*
rate
).
toFixed
(
2
))
this
.
$set
(
this
.
shopForm
,
'
chargeWeight
'
,
(
orderItem
.
chargeWeight
*
rate
).
toFixed
(
2
))
this
.
$set
(
this
.
shopForm
,
'
worth
'
,
(
orderItem
.
worth
*
rate
).
toFixed
(
2
))
},
// 清空放入记录
clearAll
(){
...
...
src/views/ecw/box/shippingSea/nodePage/preinstall.vue
View file @
a70a22c0
...
...
@@ -563,14 +563,24 @@ export default {
const
{
columns
,
data
}
=
param
;
const
sums
=
[];
columns
.
forEach
((
column
,
index
)
=>
{
if
(
column
.
property
===
"
brand
Type
"
)
{
if
(
column
.
property
===
"
fee
Type
"
)
{
sums
[
index
]
=
this
.
$t
(
"
合计
"
);
return
;
}
if
(
column
.
property
===
"
num
"
)
{
sums
[
index
]
=
new
Decimal
(
this
.
calcSum
(
column
.
property
,
data
)
).
toNumber
();
if
(
column
.
property
===
"
warehouseInInfoVO.cartonsNum
"
)
{
var
num
=
0
let
values
=
data
?.
map
((
item
)
=>
Number
(
item
.
warehouseInInfoVO
.
cartonsNum
))
??
[];
if
(
!
values
.
every
((
value
)
=>
isNaN
(
value
)))
{
num
=
values
.
reduce
((
prev
,
curr
)
=>
{
const
value
=
Number
(
curr
);
if
(
!
isNaN
(
value
))
{
return
prev
+
curr
;
}
else
{
return
prev
;
}
}
,
0
);
}
sums
[
index
]
=
num
}
if
(
column
.
property
===
"
volumeWeight
"
)
{
let
volume
=
this
.
calcSum
(
"
volume
"
,
data
);
...
...
src/views/ecw/financial/creatCollection.vue
View file @
a70a22c0
...
...
@@ -320,7 +320,7 @@
style
=
"
margin-bottom: 0
"
:
prop
=
"
`receiptAccountList.${scope.$index
}
.platformAccountId`
"
>
<
el
-
select
<!--
<
el
-
select
v
-
model
=
"
scope.row.platformAccountId
"
:
placeholder
=
"
$t('请选择收款账户')
"
@
change
=
"
(platformAccountId)=>changePlatformAccountId(platformAccountId,scope.$index)
"
...
...
@@ -331,6 +331,21 @@
:
label
=
"
item.baAccountName + '(' + item.baAccountNum + ')'
"
:
value
=
"
item.id
"
/>
<
/el-select> --
>
<
el
-
select
filterable
clear
v
-
model
=
"
scope.row.platformAccountId
"
:
placeholder
=
"
$t('请选择收款账户')
"
@
change
=
"
(platformAccountId)=>changePlatformAccountId(platformAccountId,scope.$index)
"
v
-
el
-
select
-
loadmore
=
"
loadmore
"
:
loading
=
"
codeLoading
"
>
<
el
-
option
v
-
for
=
"
(item, i) in bankData
"
:
key
=
"
'opt-code' + i
"
:
label
=
"
item.baAccountName + '(' + item.baAccountNum + ')'
"
:
value
=
"
item.id
"
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
/template
>
...
...
@@ -743,7 +758,14 @@ export default {
warehouseList
:[],
selectedUsers
:[],
dialogVisible
:
false
,
isUpdate
:
false
isUpdate
:
false
,
codeLoading
:
false
,
codePage
:
{
pageNo
:
1
,
pageSize
:
100
}
,
pages
:
1
}
;
}
,
activated
(){
...
...
@@ -759,6 +781,22 @@ export default {
this
.
removeData
()
}
}
,
directives
:
{
'
el-select-loadmore
'
:
{
bind
(
el
,
binding
)
{
const
SELECTWRAP_DOM
=
el
.
querySelector
(
'
.el-select-dropdown .el-select-dropdown__wrap
'
)
SELECTWRAP_DOM
.
addEventListener
(
'
scroll
'
,
function
()
{
const
condition
=
this
.
scrollHeight
-
this
.
scrollTop
<=
this
.
clientHeight
if
(
condition
)
{
binding
.
value
()
}
}
)
}
}
}
,
async
created
()
{
getUserProfile
().
then
(
res
=>
{
this
.
discountForm
.
author
=
res
.
data
.
username
...
...
@@ -802,9 +840,7 @@ export default {
listSimpleUsers
().
then
((
res
)
=>
(
that
.
creatorData
=
res
.
data
));
getChannelList
().
then
((
res
)
=>
(
that
.
channelList
=
res
.
data
));
getTradeCityList
().
then
((
res
)
=>
(
that
.
tradeCityList
=
res
.
data
));
getBankAccountPage
(
that
.
params
).
then
(
(
res
)
=>
(
that
.
bankData
=
res
.
data
.
list
)
);
this
.
getCodeList
()
listSimpleDepts
().
then
((
res
)
=>
{
res
.
data
.
forEach
((
item
)
=>
{
if
(
item
.
parentId
==
0
)
{
...
...
@@ -856,6 +892,29 @@ export default {
}
}
,
methods
:
{
// 懒加载
loadmore
()
{
this
.
codePage
.
pageNo
++
// 大于页码不请求了
console
.
log
(
111
)
if
(
this
.
codePage
.
pageNo
>
this
.
pages
)
{
return
}
this
.
getCodeList
()
}
,
getCodeList
(
flag
)
{
if
(
flag
)
{
this
.
bankData
=
[]
this
.
codeLoading
=
true
}
setTimeout
(()
=>
{
getBankAccountPage
(
this
.
codePage
).
then
(
res
=>
{
this
.
codeLoading
=
false
this
.
bankData
=
this
.
bankData
.
concat
(
res
.
data
.
list
)
this
.
pages
=
(
res
.
data
.
total
/
this
.
codePage
.
pageSize
)
+
1
}
)
}
,
200
)
}
,
getReceivableData
(){
getReceiptInfoByIds
({
id
:
this
.
id
}
).
then
(
res
=>
{
if
(
res
.
data
.
rateValidateDate
)
res
.
data
.
rateValidateDate
=
dayjs
(
res
.
data
.
rateValidateDate
).
format
(
'
YYYY-MM-DD HH:mm:ss
'
)
...
...
src/views/ecw/order/components/BoxSplitDetail.vue
View file @
a70a22c0
...
...
@@ -66,9 +66,12 @@
<el-table-column
:label=
"$t('数量')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
quantity
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('货值')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
worth
}}{{
$t
(
'
元
'
)
}}
</
template
>
</el-table-column>
</el-table>
</template>
<warehouse-record
v-if=
"currentWarehouseRecord"
:list=
"currentWarehouseRecord"
append-to-body
></warehouse-record>
<warehouse-record
v-if=
"currentWarehouseRecord"
:list=
"currentWarehouseRecord"
append-to-body
@
close=
"currentWarehouseRecord=null"
></warehouse-record>
</div>
</template>
<
script
>
...
...
src/views/ecw/order/components/SplitDetail.vue
View file @
a70a22c0
...
...
@@ -66,12 +66,15 @@
<el-table-column
:label=
"$t('数量')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
quantity
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('货值')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
worth
}}{{
$t
(
'
元
'
)
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('备注')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
remark
}}
</
template
>
</el-table-column>
</el-table>
</template>
<warehouse-record
v-if=
"currentWarehouseRecord"
:list=
"currentWarehouseRecord"
append-to-body
></warehouse-record>
<warehouse-record
v-if=
"currentWarehouseRecord"
:list=
"currentWarehouseRecord"
append-to-body
@
close=
"currentWarehouseRecord=null"
></warehouse-record>
</div>
</template>
<
script
>
...
...
@@ -89,7 +92,7 @@ export default {
detail
:
null
,
order
:
null
,
channel
:
null
,
orderSplitBackVOList
:
[],
//
orderSplitBackVOList: [],
// 查看入仓记录的条目
currentWarehouseRecord
:
null
}
...
...
@@ -99,7 +102,7 @@ export default {
this
.
getData
()
},
detail
(){
this
.
getSplit
()
//
this.getSplit()
this
.
getOrder
()
},
order
(){
...
...
@@ -108,6 +111,11 @@ export default {
}
}
},
computed
:{
orderSplitBackVOList
(){
return
this
.
detail
?
this
.
detail
.
orderSplitBackVOList
:
[]
}
},
created
(){
if
(
this
.
id
){
this
.
getData
()
...
...
@@ -119,12 +127,12 @@ export default {
this
.
detail
=
JSON
.
parse
(
res
.
data
.
details
)
})
},
getSplit
(){
/*
getSplit(){
getSplitList({orderId: this.detail.orderId, lang: this.$i18n.locale.toLowerCase().indexOf('zh') > -1 ? 0 : 1 }).then(res => {
console.log('getSplitList', res)
this.orderSplitBackVOList = res.data.orderSplitBackVOList
})
},
},
*/
getOrder
(){
getOrder
(
this
.
detail
.
orderId
).
then
(
res
=>
{
this
.
order
=
res
.
data
...
...
src/views/ecw/order/splitApply/components/PutIn.vue
View file @
a70a22c0
...
...
@@ -126,7 +126,7 @@
<el-form-item
label-width=
"0"
:prop=
"`list.$
{$index}.volume`"
:rules="{required: true, message: $t('不能为空'), trigger: 'blur'}">
<el-input-number
controls-position=
"right"
:min=
"0"
:max=
"warehouseRecord.volume"
class=
"w-100 tight"
v-model=
"row.volume"
/>
<el-input-number
controls-position=
"right"
:min=
"0
.01
"
:max=
"warehouseRecord.volume"
class=
"w-100 tight"
v-model=
"row.volume"
/>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -150,7 +150,7 @@
<el-form-item
label-width=
"0"
:prop=
"`list.$
{$index}.weight`"
:rules="{required: true, message: $t('不能为空'), trigger: 'blur'}">
<el-input-number
controls-position=
"right"
:min=
"0"
:max=
"warehouseRecord.weight"
class=
"w-75 tight"
v-model=
"row.weight"
/>
<el-input-number
controls-position=
"right"
:min=
"0
.01
"
:max=
"warehouseRecord.weight"
class=
"w-75 tight"
v-model=
"row.weight"
/>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -230,7 +230,7 @@ export default {
// 数量是否必须
quantityshow
:
Boolean
,
// 最大可拆箱数,装柜拆单用
maxNum
:
Number
maxNum
:
Number
,
},
data
(){
return
{
...
...
@@ -242,7 +242,7 @@ export default {
}
},
computed
:{
// 计算总拆出数据
// 计算
当前添加的多条入仓记录
总拆出数据
splitTotal
(){
return
field
=>
{
let
total
=
new
Decimal
(
0
)
...
...
@@ -252,6 +252,18 @@ export default {
return
total
.
toNumber
()
}
},
// 计算此入仓记录全部拆出的数量,包含其他拆单订单的
totalSplitSum
(){
return
field
=>
{
let
total
=
new
Decimal
(
0
)
if
(
this
.
warehouseRecord
.
specsRecordVOList
&&
this
.
warehouseRecord
.
specsRecordVOList
.
length
){
this
.
warehouseRecord
.
specsRecordVOList
.
forEach
(
item
=>
{
total
=
total
.
plus
(
new
Decimal
(
item
[
field
]
||
0
))
})
}
return
total
.
plus
(
new
Decimal
(
this
.
splitTotal
(
'
num
'
))).
toNumber
()
}
},
// 剩余数据
leftData
(){
return
(
field
,
containNew
=
false
)
=>
{
...
...
@@ -289,20 +301,34 @@ export default {
methods
:{
// 添加一行
addRow
(){
let
{
specificationType
,
boxGauge1
,
boxGauge2
,
boxGauge3
,
volume
,
weight
,
expressNo
}
=
this
.
warehouseRecord
let
{
specificationType
,
boxGauge1
,
boxGauge2
,
boxGauge3
,
expressNo
,
unit
}
=
this
.
warehouseRecord
let
num
=
Math
.
min
(
this
.
leftData
(
'
num
'
,
true
),
this
.
maxSplitNum
)
let
orderLocationList
=
this
.
warehouseRecord
.
orderLocationBackVOList
if
(
this
.
form
.
list
.
length
){
orderLocationList
=
this
.
form
.
list
[
this
.
form
.
list
.
length
-
1
].
orderLocationList
}
// 根据入仓记录添加一行
let
row
=
{
warehouseInId
:
this
.
warehouseRecord
.
id
,
specificationType
,
boxGauge1
,
boxGauge2
,
boxGauge3
,
expressNo
,
volume
:
0
,
// this.leftData('volume', true),
weight
:
0
,
//this.leftData('weight', true),
specificationType
,
boxGauge1
,
boxGauge2
,
boxGauge3
,
expressNo
,
unit
,
volume
:
0
,
weight
:
0
,
num
:
num
,
quantity
:
0
,
//this.leftData('quantity', true),
orderLocationList
:
this
.
warehouseRecord
.
orderLocationBackVOList
quantity
:
0
,
orderLocationList
}
// 如果拆完了则剩下的全部放入,否则按照比例计算
this
.
$nextTick
(()
=>
{
if
(
this
.
leftData
(
'
num
'
,
true
)
<=
0
)
{
row
.
volume
=
this
.
leftData
(
'
volume
'
,
true
)
row
.
weight
=
this
.
leftData
(
'
weight
'
,
true
)
row
.
quantity
=
this
.
leftData
(
'
quantity
'
,
true
)
}
else
{
// 按照比例计算重量体积和数量
this
.
calc
(
row
)
}
})
this
.
form
.
list
.
push
(
row
)
},
// 删除一行,可选参数index表上行号,参数不是数字则删除最后一行
...
...
@@ -365,7 +391,7 @@ export default {
return
this
.
$message
.
error
(
"
全拆拆出体积必须等于原入仓体积
"
)
}
if
(
this
.
splitTotal
(
'
weight
'
)
!==
this
.
warehouseRecord
.
weight
){
return
this
.
$message
.
error
(
"
全拆拆出
体积
必须等于原入仓体积
"
)
return
this
.
$message
.
error
(
"
全拆拆出
重量
必须等于原入仓体积
"
)
}
}
this
.
$emit
(
'
submit
'
,
this
.
form
.
list
)
...
...
src/views/ecw/order/splitApply/components/WarehouseRecord.vue
View file @
a70a22c0
...
...
@@ -31,14 +31,19 @@
</el-table-column>
<el-table-column
:label=
"$t('体积') + '(m³)'"
prop=
"volume"
/>
<el-table-column
:label=
"$t('重量') + '(kg)'"
prop=
"weight"
/>
<el-table-column
:label=
"$t('数量(个)')"
prop=
"quantity
All
"
/>
<el-table-column
:label=
"$t('数量(个)')"
prop=
"quantity"
/>
<!--<el-table-column :label="$t('入仓快递单号')" prop="expressNo" />-->
<!--<el-table-column :label="$t('首次入仓时间')" prop="inTime" >
<template slot-scope="{row}">{{row.inTime|parseTime}}</template>
</el-table-column>-->
<el-table-column
:label=
"$t('储位')"
prop=
"orderLocationBackVOList"
>
<
template
slot-scope=
"{row}"
>
{{
getLocationName
(
row
.
orderLocationBackVOList
)
}}
<!--
{{
getLocationName
(
row
.
orderLocationList
)
}}
-->
<warehouse-area-select
v-model=
"row.orderLocationList"
readonly
:warehouse-id=
"warehouseId"
></warehouse-area-select>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -46,13 +51,17 @@
</template>
<
script
>
import
WarehouseAreaSelect
from
"
@/components/WarehouseAreaSelect/index.vue
"
;
export
default
{
name
:
"
WarehouseRecord
"
,
components
:
{
WarehouseAreaSelect
},
props
:{
list
:{
type
:
Array
,
default
:
[]
},
warehouseId
:
Number
,
appendToBody
:
Boolean
},
data
(){
...
...
src/views/ecw/order/splitApply/index.vue
View file @
a70a22c0
...
...
@@ -108,6 +108,7 @@
<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>
<span
style=
"margin-left: 10px;"
>
{{$t('重量')}}:{{!scope.row.warehouseInInfoVO?0:scope.row.warehouseInInfoVO.weight}}kg
</span>
<span
style=
"margin-left: 10px;"
>
{{$t('数量(个)')}}:{{!scope.row.warehouseInInfoVO?0:scope.row.warehouseInInfoVO.quantityAll}}
</span>
</el-row>
<el-row
v-if=
"!scope.row.warehouseInInfoVO"
>
<span>
{{$t('暂时没有入仓信息')}}
</span>
...
...
@@ -163,9 +164,7 @@
<el-table-column
:label=
"$t('入仓体积')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.volume"
@
change=
"updateField(scope.row, 'volume')"
size=
"mini"
disabled
>
<span
slot=
"append"
>
m³
</span>
</el-input>
{{
scope
.
row
.
volume
}}
m³
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('收费体积')"
align=
"center"
>
...
...
@@ -177,9 +176,7 @@
</el-table-column>
<el-table-column
:label=
"$t('入仓重量')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.weight"
@
change=
"updateField(scope.row, 'weight')"
size=
"mini"
disabled
>
<span
slot=
"append"
>
kg
</span>
</el-input>
{{
scope
.
row
.
weight
}}
kg
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('收费重量')"
align=
"center"
>
...
...
@@ -196,11 +193,14 @@
</el-input>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('箱数')"
align=
"center"
>
<el-table-column
:label=
"$t('箱数')"
align=
"center"
prop=
"num"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"showWarehouse(scope.row)"
>
{{
scope
.
row
.
num
}}
</el-button>
<el-button
type=
"text"
@
click=
"currentWarehouseRecord=scope.row.specsRecordVOList"
>
{{
scope
.
row
.
num
}}
</el-button>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('数量(个)')"
align=
"center"
prop=
"quantity"
></el-table-column>
<el-table-column
:label=
"$t('操作')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"removeShop(scope.row.id)"
>
{{
$t
(
'
移出
'
)
}}
</el-button>
...
...
@@ -445,7 +445,11 @@
</span>
</el-dialog>
<warehouse-record
v-if=
"currentWarehouseRecord"
:list=
"currentWarehouseRecord"
@
close=
"currentWarehouseRecord=null"
></warehouse-record>
<warehouse-record
v-if=
"currentWarehouseRecord"
:list=
"currentWarehouseRecord"
:warehouseId=
"currentWarehouseId"
@
close=
"currentWarehouseRecord=null"
></warehouse-record>
<put-in
v-if=
"currentPutIn"
:warehouse-record=
"currentPutIn"
...
...
@@ -533,7 +537,7 @@ export default {
page
:
1
,
rows
:
20
},
splitItemIndex
:
0
,
//
splitItemIndex:0,
quantitySum
:
0
,
// 当前查看的入仓记录
currentWarehouseRecord
:
null
,
...
...
@@ -593,7 +597,16 @@ export default {
},
// 切换品名需要重置已放入的记录
'
shopForm.orderItemId
'
(){
// 默认取以前放入的品名
let
split
=
this
.
splitData
.
find
(
item
=>
item
.
id
==
this
.
splitData
[
this
.
splitIndex
].
id
)
this
.
shopForm
.
specsRecordVOList
=
[]
if
(
split
)
{
let
specsRecordVOList
=
split
.
orderSplitItemBackVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
shopForm
.
orderItemId
)?.
specsRecordVOList
||
[]
specsRecordVOList
.
forEach
(
item
=>
{
const
[
boxGauge1
,
boxGauge2
,
boxGauge3
]
=
item
.
boxGauge
.
split
(
'
*
'
)
this
.
shopForm
.
specsRecordVOList
.
push
({...
item
,
boxGauge1
,
boxGauge2
,
boxGauge3
})
})
}
}
},
computed
:{
...
...
@@ -610,8 +623,8 @@ export default {
},
// 主单数据,也就是拆分剩余的数据,可用来限制拆单放入的最大值
mainOrderItem
(){
if
(
!
this
.
orderItem
.
orderItemId
||
!
this
.
splitData
.
length
||
!
this
.
splitData
[
0
].
orderSplitItemBackVOList
)
return
{}
return
this
.
splitData
[
0
].
orderSplitItemBackVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
orderItem
.
orderItemId
)
||
{}
if
(
!
this
.
shopForm
.
orderItemId
)
return
{}
return
this
.
orderData
.
orderItemVOList
.
find
(
item
=>
item
.
orderItemId
===
this
.
shopForm
.
orderItemId
)
},
// 剩余可拆数据,父订单的入仓数据 - 全部拆单的品名数据
leftData
(){
...
...
@@ -630,6 +643,11 @@ export default {
this
.
splitData
.
forEach
(
split
=>
{
split
.
orderSplitItemBackVOList
.
forEach
(
splitItem
=>
{
// 正在拆的要排除,不然会重复计算
if
(
splitItem
.
orderItemId
==
this
.
shopForm
.
orderItemId
&&
split
.
id
==
this
.
splitData
[
this
.
splitIndex
].
id
){
return
}
// 每个品名的入仓记录挨个累减其他数据
if
(
splitItem
.
orderItemId
==
this
.
shopForm
.
orderItemId
){
// 每个品名都要累减收费数据
...
...
@@ -714,9 +732,13 @@ export default {
return
warehouseInId
=>
{
let
specsRecordVOList
=
[]
// 这里是全部已放入的
this
.
splitData
.
forEach
(
split
=>
{
this
.
splitData
.
forEach
(
(
split
,
splitIndex
)
=>
{
split
.
orderSplitItemBackVOList
.
forEach
(
splitItem
=>
{
splitItem
.
specsRecordVOList
.
forEach
(
specs
=>
{
// 当前正在拆的品名不包含,因为后面shopForm.specsRecordVOList会包含
if
(
splitIndex
==
this
.
splitIndex
&&
splitItem
.
orderItemId
==
this
.
shopForm
.
orderItemId
){
return
}
splitItem
.
specsRecordVOList
&&
splitItem
.
specsRecordVOList
.
forEach
(
specs
=>
{
if
(
specs
.
warehouseInId
===
warehouseInId
){
specsRecordVOList
.
push
(
specs
)
}
...
...
@@ -865,7 +887,7 @@ export default {
})
},
addShop
(
index
){
this
.
splitI
temI
ndex
=
index
this
.
splitIndex
=
index
this
.
shopOpen
=
true
// 重置表单数据
this
.
shopForm
=
{
specsRecordVOList
:[]}
...
...
@@ -968,15 +990,32 @@ export default {
var
params
=
{
num
:
this
.
putin
.
num
,
orderItemId
:
this
.
shopForm
.
orderItemId
,
orderSplitId
:
this
.
splitData
[
this
.
splitI
temI
ndex
].
id
,
orderSplitId
:
this
.
splitData
[
this
.
splitIndex
].
id
,
remark
:
this
.
shopForm
.
remark
,
volume
:
this
.
putin
.
volume
,
chargeVolume
:
this
.
putin
.
chargeVolume
,
chargeVolume
:
this
.
shopForm
.
chargeVolume
,
weight
:
this
.
putin
.
weight
,
chargeWeight
:
this
.
putin
.
chargeWeight
,
chargeWeight
:
this
.
shopForm
.
chargeWeight
,
worth
:
this
.
shopForm
.
worth
||
0
,
specsRecordVOList
:
this
.
shopForm
.
specsRecordVOList
}
// 体积重量不能为0
const
fields
=
{
'
volume
'
:
this
.
$t
(
'
体积
'
),
'
weight
'
:
this
.
$t
(
'
重量
'
),
'
chargeVolume
'
:
this
.
$t
(
'
收费体积
'
),
'
chargeWeight
'
:
this
.
$t
(
'
收费重量
'
),
}
let
errFields
=
[]
Object
.
keys
(
fields
).
forEach
(
field
=>
{
if
(
params
[
field
]
<
0.01
){
errFields
.
push
(
fields
[
field
])
}
})
if
(
errFields
.
length
){
return
this
.
$message
.
error
(
this
.
$t
(
"
{field}最少为0.01
"
,
{
field
:
errFields
.
join
(
"
,
"
)}))
}
/*if(this.quantityshow){
params.quantity = this.shopForm.quantity
}*/
...
...
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