Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6e4e04d9
authored
Sep 08, 2026
by
陈婉清
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/586/cwq' into 'SAAS+V5.8.6'
Feature/586/cwq See merge request
!987
2 parents
00ff56e6
0761d186
Pipeline
#263
for
6e4e04d9
failed
in 0 seconds
Changes
12
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
2059 additions
and
1691 deletions
src/views/purchase/components/AllocateDialog.vue
src/views/purchase/components/EditOrderDialog.vue
src/views/purchase/components/deliveryDetailDialog.vue
src/views/purchase/components/factoryDeliveryDetailDialog.vue
src/views/purchase/factoryPurchaseAndDelivery.vue
src/views/purchase/purchaseAndDelivery.vue
src/views/stockManage/inventoryTransactionRecords/index.vue
src/views/stockManage/outbound/outboundList.vue
src/views/stockManage/transferShipment/components/rejectDialog.vue
src/views/stockManage/transferShipment/components/shipmentDialog.vue
src/views/stockManage/transferShipment/index.vue
src/views/stockManage/warehousing/warehousingList.vue
src/views/purchase/components/AllocateDialog.vue
View file @
6e4e04d
<
template
>
<
template
>
<div>
<div>
<baseDialog
:is-show
.
sync=
"dialogShow"
:config=
"dialogConfig.setting"
:dialog-config=
"dialogConfig.config"
<baseDialog
:config=
"dialogConfig.setting"
@
closeDialog=
"handleDetailClose(false)"
>
:dialog-config=
"dialogConfig.config"
<div
class=
"edit-order-dialog"
v-if=
"dialogShow"
>
:is-show
.
sync=
"dialogShow"
@
closeDialog=
"handleDetailClose(false)"
>
<div
v-if=
"dialogShow"
class=
"edit-order-dialog"
>
<div
class=
"table-class"
>
<div
class=
"table-class"
>
<d2-table
ref=
"purchaseOrderDetailTable"
:table-params=
"tableParams"
:has-page=
"hasPage"
<d2-table
ref=
"purchaseOrderDetailTable"
@
refreshTable=
"refreshTable"
:table-data=
"tableList"
:table-total=
"detailInfo.tableTotal"
>
:has-page=
"hasPage"
<div
slot=
"nowPurNum"
slot-scope=
"scope"
style=
"margin: 0 8px;"
>
:table-data=
"tableList"
<el-select
v-model=
"nowPurNumList[scope.index]"
placeholder=
"请选择"
clearable
>
:table-params=
"tableParams"
<el-option
v-for=
"item in staffList"
:key=
"item.uuid"
:label=
"item.staffName"
:value=
"item.uuid"
>
:table-total=
"detailInfo.tableTotal"
@
refreshTable=
"refreshTable"
>
<div
slot=
"nowPurNum"
slot-scope=
"scope"
style=
"margin: 0 8px;"
>
<el-select
v-model=
"nowPurNumList[scope.index]"
placeholder=
"请选择"
clearable
>
<el-option
v-for=
"item in staffList"
:key=
"item.uuid"
:label=
"item.staffName"
:value=
"item.uuid"
>
</el-option>
</el-option>
</el-select>
</el-select>
</div>
</div>
<template
slot=
"upgradeGoodsName"
slot-scope=
"scope"
>
<template
slot=
"upgradeGoodsName"
slot-scope=
"scope"
>
<div>
<div>
<img
v-if=
"scope.scope.refundStatus == 'Y'"
class=
"return"
src=
"@/assets/retrun.png"
alt=
""
>
<img
v-if=
"scope.scope.refundStatus == 'Y'"
alt=
""
class=
"return"
src=
"@/assets/retrun.png"
>
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
</div>
</div>
</
template
>
</
template
>
...
@@ -22,380 +38,412 @@
...
@@ -22,380 +38,412 @@
<el-tooltip
v-if=
"scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
placement=
"top"
>
<el-tooltip
v-if=
"scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
placement=
"top"
>
<div
slot=
"content"
class=
"car-type-list"
>
<div
slot=
"content"
class=
"car-type-list"
>
<div
v-for=
"(item, index) in scope.scope.suitCarTypeList"
:key=
"index"
>
<div
v-for=
"(item, index) in scope.scope.suitCarTypeList"
:key=
"index"
>
{{
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
}}
<
/div
>
{{
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
}}
<
/div
>
<
/div
>
<
/div
>
<
div
>
{{
scope
.
scope
.
suitCarTypeList
|
formatCar
}}
<
/div
>
<
div
>
{{
scope
.
scope
.
suitCarTypeList
|
formatCar
}}
<
/div
>
<
/el-tooltip
>
<
/el-tooltip
>
<
div
v
-
else
>-<
/div
>
<
div
v
-
else
>
-
<
/div
>
<
/template
>
<
/template
>
<
div
slot
=
"deliveryRemark"
slot
-
scope
=
"scope"
style
=
"margin: 0 8px;"
>
<
div
slot
=
"deliveryRemark"
<
el
-
input
v
-
model
=
"scope.scope.deliveryRemark"
maxlength
=
"50"
placeholder
=
"请输入"
><
/el-input
>
slot
-
scope
=
"scope"
style
=
"margin: 0 8px;"
>
<
el
-
input
v
-
model
=
"scope.scope.deliveryRemark"
maxlength
=
"50"
placeholder
=
"请输入"
>
<
/el-input
>
<
/div
>
<
/div
>
<
/d2-table
>
<
/d2-table
>
<
/div
>
<
/div
>
<
div
class
=
"footer"
>
<
div
class
=
"footer"
>
<
el
-
button
@
click
=
"handleDetailClose(false)"
>
取消
<
/el-button
>
<
el
-
button
@
click
=
"handleDetailClose(false)"
>
<
el
-
button
@
click
=
"submit"
type
=
"primary"
v
-
preventReClick
取消
:
loading
=
"$store.state.d2admin.loading.value"
>
确定
<
/el-button
>
<
/el-button
>
<
el
-
button
v
-
preventReClick
type
=
"primary"
:
loading
=
"$store.state.d2admin.loading.value"
@
click
=
"submit"
>
确定
<
/el-button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/baseDialog
>
<
/baseDialog
>
<
card
-
dialog
v
-
if
=
"cardVisible"
:
card
-
visible
=
"cardVisible"
:
order
-
info
=
"orderInfo"
:
selected
-
list
=
"selectedCardList"
<
CardDialog
v
-
if
=
"cardVisible"
@
handleClose
=
"handleCardDialog"
@
handleConfirm
=
"handleCardConfirm"
><
/card-dialog
>
:
card
-
visible
=
"cardVisible"
<
glsk
-
form
-
dialog
v
-
if
=
"batchVisible"
:
selectVisible
=
"batchVisible"
:
dialogConfig
=
"batchDialogConfig"
:
order
-
info
=
"orderInfo"
label
-
width
=
"200px"
:
formRules
=
"batchRules"
:
editData
=
"batchForm"
:
editFormData
=
"batchEditFormData"
:
selected
-
list
=
"selectedCardList"
:
baseData
=
"
{
staffList
:
staffList
}
" @handleClose="
batchDialogVisible
"
@
handleClose
=
"handleCardDialog"
@handleConfirm="
handleBatchConfirm
"
><
/glsk-form-dialog
>
@
handleConfirm
=
"handleCardConfirm"
>
<
/CardDialog
>
<
glsk
-
form
-
dialog
v
-
if
=
"batchVisible"
label
-
width
=
"200px"
:
base
-
data
=
"
{
staffList
}
"
:dialog-config="
batchDialogConfig
"
:edit-data="
batchForm
"
:edit-form-data="
batchEditFormData
"
:form-rules="
batchRules
"
:select-visible="
batchVisible
"
@handleClose="
batchDialogVisible
"
@handleConfirm="
handleBatchConfirm
"
>
<
/glsk-form-dialog
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
getShipperList
,
saveshipper
}
from
'@/api/purchaseShopping.js'
import
{
getShipperList
,
saveshipper
}
from
"@/api/purchaseShopping.js"
;
import
{
baseConfig
}
from
'@/main'
import
{
baseConfig
}
from
"@/main"
;
import
CardDialog
from
'./CardDialog'
import
CardDialog
from
"./CardDialog"
;
export
default
{
export
default
{
name
:
'AllocateDialog'
,
name
:
"AllocateDialog"
,
prop
s
:
{
component
s
:
{
visible
:
{
CardDialog
,
type
:
Boolean
,
}
,
default
:
false
filters
:
{
}
,
formatCar
(
list
)
{
tableList
:
{
let
str
=
list
.
map
((
item
)
=>
{
type
:
Array
,
return
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
;
default
:
()
=>
[]
}
).
join
(
","
);
}
return
str
.
length
>
15
?
str
.
substring
(
0
,
15
)
+
"..."
:
str
;
// paramsObj:
{
}
,
// type: Object
,
}
,
// default: () =>
{
}
props
:
{
//
}
visible
:
{
}
,
type
:
Boolean
,
components
:
{
default
:
false
,
CardDialog
}
,
}
,
tableList
:
{
computed
:
{
type
:
Array
,
dialogShow
:
{
default
:
()
=>
[],
get
()
{
}
,
if
(
this
.
visible
)
{
// paramsObj:
{
return
this
.
visible
// type: Object,
}
// default: () =>
{
}
return
this
.
visible
//
}
}
,
}
,
set
(
val
)
{
data
(
)
{
this
.
$emit
(
'update:visible'
,
val
)
return
{
}
dialogConfig
:
{
}
setting
:
{
}
,
showClose
:
true
,
data
()
{
appendToBody
:
true
,
return
{
btnList
:
[
dialogConfig
:
{
],
setting
:
{
}
,
showClose
:
true
,
config
:
{
appendToBody
:
true
,
title
:
"发货分配"
,
btnList
:
[
width
:
"1300px"
,
]
}
,
}
,
}
,
config
:
{
// 发货分配弹窗
title
:
'发货分配'
,
batchDialogConfig
:
{
width
:
'1300px'
title
:
"批量设置发货方"
,
}
okText
:
"确定"
,
}
,
}
,
// 发货分配弹窗
batchVisible
:
false
,
batchDialogConfig
:
{
batchForm
:
{
title
:
'批量设置发货方'
,
consignor
:
""
,
okText
:
'确定'
}
,
}
,
batchRules
:
{
batchVisible
:
false
,
consignor
:
[{
required
:
true
,
message
:
"请选择发货方"
,
trigger
:
"change"
}
]
,
batchForm
:
{
}
,
consignor
:
''
batchEditFormData
:
[{
}
,
name
:
"consignor"
,
batchRules
:
{
label
:
"发货方"
,
consignor
:
[{
required
:
true
,
message
:
'请选择发货方'
,
trigger
:
'change'
}
]
type
:
"select"
,
}
,
optionId
:
"uuid"
,
batchEditFormData
:
[{
optionLabel
:
"staffName"
,
name
:
'consignor'
,
optionsName
:
"staffList"
,
label
:
'发货方'
,
}
]
,
type
:
'select'
,
isSubmit
:
false
,
optionId
:
'uuid'
,
dialogData
:
{
}
,
optionLabel
:
'staffName'
,
deliveryCardList
:
[]
,
optionsName
:
'staffList'
oldPurNumList
:
[],
}
],
nowPurNumList
:
[
],
isSubmit
:
false
,
// 发货卡号
dialogData
:
{
}
,
cardVisible
:
false
,
deliveryCardList
:
[]
,
orderInfo
:
{
}
,
oldPurNumList
:
[]
,
hasPage
:
false
,
nowPurNumList
:
[],
tableParams
:
{
// 发货卡号
btnId
:
new
Date
().
getTime
()
+
Number
.
parseInt
(
Math
.
random
()
*
1000
),
cardVisible
:
false
,
listName
:
"list"
,
orderInfo
:
{
}
,
tableColumns
:
[
hasPage
:
false
,
{
tableParams
:
{
label
:
"产品名称"
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
)
,
addHtml
:
"upgradeGoodsName"
,
listName
:
'list'
,
prop
:
"upgradeGoodsName"
,
tableColumns
:
[
}
,
{
{
label
:
'产品名称'
,
label
:
"产品ID"
,
addHtml
:
'upgradeGoodsName'
,
prop
:
"upgradeGoodsCommodityCode"
,
prop
:
'upgradeGoodsName'
width
:
100
,
}
,
}
,
{
{
label
:
"供应商名称"
,
label
:
"供应商名称"
,
prop
:
'thirdPartyName'
,
prop
:
"thirdPartyName"
,
width
:
100
,
width
:
100
,
}
,
}
,
{
{
label
:
'产品编码'
,
label
:
"产品编码"
,
prop
:
'type'
prop
:
"type"
,
}
,
}
,
{
{
label
:
'规格'
,
label
:
"规格"
,
prop
:
'specificationData'
prop
:
"specificationData"
,
}
,
}
,
{
{
label
:
'供应商编码'
,
label
:
"供应商编码"
,
prop
:
'thirdPartyCode'
,
prop
:
"thirdPartyCode"
,
width
:
100
width
:
100
,
}
,
}
,
{
{
label
:
'适用车型'
,
label
:
"适用车型"
,
addHtml
:
'carName'
,
addHtml
:
"carName"
,
width
:
200
width
:
200
,
}
,
}
,
{
{
label
:
"产品别名"
,
label
:
"产品别名"
,
prop
:
"purchaseGoodsName"
,
prop
:
"purchaseGoodsName"
,
}
,
}
,
{
{
label
:
'系列'
,
label
:
"系列"
,
prop
:
'goodsName'
prop
:
"goodsName"
,
}
,
}
,
{
{
label
:
'所属分类'
,
label
:
"所属分类"
,
prop
:
'goodsTypeName'
prop
:
"goodsTypeName"
,
}
,
}
,
{
{
label
:
'采购数量'
,
label
:
"采购数量"
,
prop
:
'goodsNumber'
,
prop
:
"goodsNumber"
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`${cellValue.goodsNumber
}
卷`
:
`${cellValue.goodsNumber
}
件`
return
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`${cellValue.goodsNumber
}
卷`
:
`${cellValue.goodsNumber
}
件`
;
}
}
,
}
,
}
,
{
{
label
:
'库存总量'
,
label
:
"库存总量"
,
prop
:
''
,
prop
:
""
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'
}
米`
:
`${cellValue.goodsNumber
}
件`
return
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : "-"
}
米`
:
`${cellValue.goodsNumber
}
件`
;
}
}
,
}
,
}
,
{
{
label
:
'采购总价/元'
,
label
:
"采购总价/元"
,
prop
:
'goodsTotalPrice'
,
prop
:
"goodsTotalPrice"
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
"¥"
+
cellValue
.
goodsTotalPrice
return
"¥"
+
cellValue
.
goodsTotalPrice
;
}
}
,
}
,
}
,
{
{
label
:
'备注'
,
label
:
"备注"
,
prop
:
'purchaseOrderGoodsRemark'
,
prop
:
"purchaseOrderGoodsRemark"
,
width
:
150
width
:
150
,
}
,
}
,
{
{
label
:
'已发货数量'
,
label
:
"已发货数量"
,
prop
:
'purchaseNumber'
,
prop
:
"purchaseNumber"
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`${cellValue.purchaseNumber || 0
}
卷`
:
`${cellValue.purchaseNumber || 0
}
件`
return
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`${cellValue.purchaseNumber || 0
}
卷`
:
`${cellValue.purchaseNumber || 0
}
件`
;
}
}
,
}
,
}
,
{
{
label
:
'发货方'
,
label
:
"发货方"
,
prop
:
''
,
prop
:
""
,
width
:
150
,
width
:
150
,
addHtml
:
'nowPurNum'
,
addHtml
:
"nowPurNum"
,
headerImgObj
:
{
headerImgObj
:
{
imgUrl
:
'icon-edit2.png'
,
imgUrl
:
"icon-edit2.png"
,
fn
:
()
=>
{
fn
:
()
=>
{
this
.
batchDialogVisible
()
this
.
batchDialogVisible
();
}
}
,
}
}
,
}
,
}
,
{
{
label
:
'发货备注'
,
label
:
"发货备注"
,
prop
:
'deliveryRemark'
,
prop
:
"deliveryRemark"
,
addHtml
:
'deliveryRemark'
,
addHtml
:
"deliveryRemark"
,
width
:
150
width
:
150
,
}
}
,
]
],
}
,
}
,
staffList
:
[],
staffList
:
[],
detailInfo
:
{
}
detailInfo
:
{
}
,
}
}
;
}
,
}
,
filters
:
{
computed
:
{
formatCar
(
list
)
{
dialogShow
:
{
let
str
=
list
.
map
(
item
=>
{
get
()
{
return
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
if
(
this
.
visible
)
{
}
).
join
(
','
)
return
this
.
visible
;
return
str
.
length
>
15
?
str
.
substring
(
0
,
15
)
+
'...'
:
str
}
}
return
this
.
visible
;
}
,
}
,
mounted
()
{
set
(
val
)
{
console
.
log
(
this
.
tableList
,
'tableList'
)
this
.
$emit
(
"update:visible"
,
val
);
this
.
getStaffList
()
}
,
}
,
}
,
methods
:
{
}
,
batchDialogVisible
()
{
mounted
()
{
this
.
batchVisible
=
!
this
.
batchVisible
console
.
log
(
this
.
tableList
,
"tableList"
);
this
.
batchForm
.
consignor
=
''
this
.
getStaffList
();
}
,
}
,
methods
:
{
batchDialogVisible
()
{
this
.
batchVisible
=
!
this
.
batchVisible
;
this
.
batchForm
.
consignor
=
""
;
}
,
handleBatchConfirm
()
{
handleBatchConfirm
()
{
this
.
tableList
.
forEach
((
item
,
idx
)
=>
{
this
.
tableList
.
forEach
((
item
,
idx
)
=>
{
this
.
nowPurNumList
[
idx
]
=
this
.
batchForm
.
consignor
this
.
nowPurNumList
[
idx
]
=
this
.
batchForm
.
consignor
;
}
)
}
);
// this.nowPurNumList.forEach((item, idx) =>
{
// this.nowPurNumList.forEach((item, idx) =>
{
// this.nowPurNumList[idx] = this.batchForm.consignor
// this.nowPurNumList[idx] = this.batchForm.consignor
//
}
)
//
}
)
this
.
batchDialogVisible
()
this
.
batchDialogVisible
();
}
,
}
,
getStaffList
()
{
getStaffList
()
{
getShipperList
({
}
).
then
(
res
=>
{
getShipperList
({
}
).
then
((
res
)
=>
{
this
.
staffList
=
res
this
.
staffList
=
res
;
this
.
tableList
.
forEach
((
item
,
idx
)
=>
{
this
.
tableList
.
forEach
((
item
,
idx
)
=>
{
if
(
item
.
shipper
)
{
if
(
item
.
shipper
)
{
this
.
nowPurNumList
[
idx
]
=
{
}
this
.
nowPurNumList
[
idx
]
=
{
}
;
this
.
nowPurNumList
[
idx
]
=
this
.
staffList
.
find
(
k
=>
k
.
staffName
==
item
.
shipper
)?.
uuid
||
''
this
.
nowPurNumList
[
idx
]
=
this
.
staffList
.
find
(
k
=>
k
.
staffName
==
item
.
shipper
)?.
uuid
||
""
;
}
}
}
)
}
);
// this.getDetail(
{
currentPage
:
1
,
pageSize
:
999
}
)
// this.getDetail(
{
currentPage
:
1
,
pageSize
:
999
}
)
}
)
}
);
}
,
}
,
handleDetailClose
(
isRefresh
=
false
)
{
handleDetailClose
(
isRefresh
=
false
)
{
this
.
$emit
(
'editClose'
,
isRefresh
)
this
.
$emit
(
"editClose"
,
isRefresh
);
}
,
}
,
refreshTable
(
pageObj
)
{
refreshTable
(
pageObj
)
{
this
.
getDetail
(
pageObj
)
this
.
getDetail
(
pageObj
);
}
,
}
,
getDetail
(
pageObj
)
{
getDetail
(
pageObj
)
{
// if (!this.paramsObj?.orderCode)
{
// if (!this.paramsObj?.orderCode)
{
// return true
// return true
//
}
//
}
this
.
nowPurNumList
=
[]
this
.
nowPurNumList
=
[];
// purchaseOrderDetail(
{
orderCode
:
this
.
paramsObj
.
orderCode
,
pageSize
:
pageObj
.
pageSize
,
currentPage
:
pageObj
.
currentPage
}
).
then
(
res
=>
{
// purchaseOrderDetail(
{
orderCode
:
this
.
paramsObj
.
orderCode
,
pageSize
:
pageObj
.
pageSize
,
currentPage
:
pageObj
.
currentPage
}
).
then
(
res
=>
{
// this.detailInfo = res
// this.detailInfo = res
// this.detailInfo.tableData = res.pagination.list
// this.detailInfo.tableData = res.pagination.list
// this.detailInfo.tableTotal = res.pagination.total
// this.detailInfo.tableTotal = res.pagination.total
// this.detailInfo.tableData.forEach((item, idx) =>
{
// this.detailInfo.tableData.forEach((item, idx) =>
{
// if (item.shipper)
{
// if (item.shipper)
{
// this.nowPurNumList[idx] =
{
}
// this.nowPurNumList[idx] =
{
}
// this.nowPurNumList[idx] = this.staffList.find(k => k.staffName == item.shipper)?.uuid || ''
// this.nowPurNumList[idx] = this.staffList.find(k => k.staffName == item.shipper)?.uuid || ''
//
}
//
}
//
}
)
//
}
)
//
}
)
//
}
)
}
,
}
,
submit
()
{
submit
()
{
this
.
isSubmit
=
true
this
.
isSubmit
=
true
;
// 验证本次发货数量
// 验证本次发货数量
// if (this.nowPurNumList.every(item => item == 0 || !item))
{
// if (this.nowPurNumList.every(item => item == 0 || !item))
{
// this.notice.errorTips('发货方不能全为空')
// this.notice.errorTips('发货方不能全为空')
// return true
// return true
//
}
//
}
var
params
=
{
let
params
=
{
purchaseOrderGoodsList
:
[]
purchaseOrderGoodsList
:
[],
}
}
;
this
.
tableList
.
forEach
((
item
,
idx
)
=>
{
this
.
tableList
.
forEach
((
item
,
idx
)
=>
{
// if (this.nowPurNumList[idx])
{
// if (this.nowPurNumList[idx])
{
params
.
purchaseOrderGoodsList
.
push
({
params
.
purchaseOrderGoodsList
.
push
({
id
:
item
.
id
,
id
:
item
.
id
,
shipperUuid
:
this
.
nowPurNumList
[
idx
]
||
''
,
shipperUuid
:
this
.
nowPurNumList
[
idx
]
||
""
,
shipper
:
this
.
staffList
.
find
(
k
=>
k
.
uuid
==
this
.
nowPurNumList
[
idx
])?.
staffName
||
''
,
shipper
:
this
.
staffList
.
find
(
k
=>
k
.
uuid
==
this
.
nowPurNumList
[
idx
])?.
staffName
||
""
,
deliveryRemark
:
item
.
deliveryRemark
||
''
deliveryRemark
:
item
.
deliveryRemark
||
""
,
}
)
}
);
//
}
//
}
}
)
}
);
console
.
log
(
params
,
'params---'
)
console
.
log
(
params
,
"params---"
);
saveshipper
(
params
).
then
(
res
=>
{
saveshipper
(
params
).
then
((
res
)
=>
{
this
.
handleDetailClose
(
true
)
this
.
handleDetailClose
(
true
);
this
.
notice
.
okTips
()
this
.
notice
.
okTips
();
}
).
catch
(()
=>
{
}
).
catch
(()
=>
{
}
)
}
);
}
}
,
}
}
,
}
}
;
<
/script
>
<
/script
>
<
style
lang
=
"scss"
scoped
>
<
style
lang
=
"scss"
scoped
>
.
car
-
type
-
list
{
.
car
-
type
-
list
{
max
-
height
:
300
px
;
max
-
height
:
300
px
;
overflow
-
y
:
scroll
;
overflow
-
y
:
scroll
;
}
}
.
addressTitle
{
.
addressTitle
{
display
:
flex
;
display
:
flex
;
align
-
items
:
center
;
align
-
items
:
center
;
.
title
{
.
title
{
font
-
family
:
PingFangSC
-
Medium
;
font
-
family
:
PingFangSC
-
Medium
;
font
-
weight
:
600
;
font
-
weight
:
600
;
font
-
size
:
16
px
;
font
-
size
:
16
px
;
color
:
#
333333
;
color
:
#
333333
;
}
}
.
icon
{
.
icon
{
width
:
28
px
;
width
:
28
px
;
height
:
28
px
;
height
:
28
px
;
margin
-
right
:
8
px
;
margin
-
right
:
8
px
;
}
}
}
}
.
return
{
.
return
{
width
:
15
px
;
width
:
15
px
;
height
:
14
px
;
height
:
14
px
;
margin
-
right
:
2
px
;
margin
-
right
:
2
px
;
vertical
-
align
:
middle
;
vertical
-
align
:
middle
;
}
}
.
address
-
info
{
.
address
-
info
{
display
:
flex
;
display
:
flex
;
box
-
sizing
:
border
-
box
;
box
-
sizing
:
border
-
box
;
align
-
items
:
center
;
align
-
items
:
center
;
justify
-
content
:
space
-
between
;
justify
-
content
:
space
-
between
;
flex
-
wrap
:
wrap
;
flex
-
wrap
:
wrap
;
width
:
100
%
;
width
:
100
%
;
// height: 36px;
// height: 36px;
// padding: 0 20px;
// padding: 0 20px;
margin
-
top
:
10
px
;
margin
-
top
:
10
px
;
font
-
size
:
14
px
;
font
-
size
:
14
px
;
color
:
#
666666
;
color
:
#
666666
;
>
span
{
>
span
{
margin
-
right
:
20
px
;
margin
-
right
:
20
px
;
margin
-
bottom
:
10
px
;
margin
-
bottom
:
10
px
;
}
}
.
label
{
.
label
{
color
:
#
333333
;
color
:
#
333333
;
}
}
.
address
{
.
address
{
min
-
width
:
500
px
;
min
-
width
:
500
px
;
}
}
}
}
.
form
-
content
{
.
form
-
content
{
margin
-
top
:
16
px
;
margin
-
top
:
16
px
;
.
dis
-
in
-
block
{
.
dis
-
in
-
block
{
width
:
432
px
;
width
:
432
px
;
}
}
}
}
.
footer
{
.
footer
{
display
:
flex
;
display
:
flex
;
justify
-
content
:
flex
-
end
;
justify
-
content
:
flex
-
end
;
}
}
.
edit
-
order
-
dialog
.
el
-
input
--
medium
.
border
-
red
.
el
-
input__inner
{
.
edit
-
order
-
dialog
.
el
-
input
--
medium
.
border
-
red
.
el
-
input__inner
{
border
:
1
px
solid
#
eb4e4e
;
border
:
1
px
solid
#
eb4e4e
;
}
}
<
/style
>
<
/style
>
src/views/purchase/components/EditOrderDialog.vue
View file @
6e4e04d
...
@@ -350,6 +350,11 @@ export default {
...
@@ -350,6 +350,11 @@ export default {
prop
:
"upgradeGoodsName"
,
prop
:
"upgradeGoodsName"
,
}
,
}
,
{
{
label
:
"产品ID"
,
prop
:
"upgradeGoodsCommodityCode"
,
width
:
100
,
}
,
{
label
:
"供应商名称"
,
label
:
"供应商名称"
,
prop
:
"thirdPartyName"
,
prop
:
"thirdPartyName"
,
width
:
100
,
width
:
100
,
...
@@ -683,8 +688,9 @@ export default {
...
@@ -683,8 +688,9 @@ export default {
"goodsType"
,
"goodsType"
,
"goodsTypeName"
,
"goodsTypeName"
,
];
];
if
(
this
.
page
==
"factory"
)
if
(
this
.
page
==
"factory"
)
{
delete
params
.
shippingWarehouseId
;
delete
params
.
shippingWarehouseId
;
}
for
(
let
idx
=
0
;
idx
<
this
.
tableList
.
length
;
idx
++
)
{
for
(
let
idx
=
0
;
idx
<
this
.
tableList
.
length
;
idx
++
)
{
const
item
=
this
.
tableList
[
idx
];
const
item
=
this
.
tableList
[
idx
];
if
(
this
.
nowPurNumList
[
idx
]
&&
this
.
nowPurNumList
[
idx
]
!=
0
)
{
if
(
this
.
nowPurNumList
[
idx
]
&&
this
.
nowPurNumList
[
idx
]
!=
0
)
{
...
...
src/views/purchase/components/deliveryDetailDialog.vue
View file @
6e4e04d
<!-- 发货单详情弹窗 -->
<!-- 发货单详情弹窗 -->
<
template
>
<
template
>
<div>
<div>
<d2-dialog
title=
"详细信息"
:is-visible=
"detailVisible"
class=
"stockMonthDailog"
width=
"1400px"
:no-cancel=
"true"
<d2-dialog
btn-ok-label=
"关闭"
btn-ok-label=
"关闭"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
class=
"stockMonthDailog"
title=
"详细信息"
width=
"1400px"
:is-visible=
"detailVisible"
:no-cancel=
"true"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<div
class=
"detail-info"
>
<div
class=
"detail-info"
>
<div>
<div>
发货单号:
发货单号:
...
@@ -25,9 +31,13 @@
...
@@ -25,9 +31,13 @@
<div
class=
"detail-info m-b-33"
style=
"justify-content: flex-start; align-items: flex-start;"
>
<div
class=
"detail-info m-b-33"
style=
"justify-content: flex-start; align-items: flex-start;"
>
签收凭证:
签收凭证:
<div
v-if=
"detailInfo.uploadFileUrl"
>
<div
v-if=
"detailInfo.uploadFileUrl"
>
<el-image
v-for=
"(url, index) in detailInfo.uploadFileUrl.split(',')"
:key=
"index"
:src=
"url"
<el-image
v-for=
"(url, index) in detailInfo.uploadFileUrl.split(',')"
:preview-src-list=
"detailInfo.uploadFileUrl.split(',')"
:key=
"index"
style=
"width: 36px; height: 36px; margin-right: 8px; cursor: pointer;"
class=
"sign-image"
fit=
"cover"
/>
class=
"sign-image"
fit=
"cover"
style=
"width: 36px; height: 36px; margin-right: 8px; cursor: pointer;"
:preview-src-list=
"detailInfo.uploadFileUrl.split(',')"
:src=
"url"
/>
</div>
</div>
<div
v-else
>
<div
v-else
>
-
-
...
@@ -41,10 +51,16 @@
...
@@ -41,10 +51,16 @@
<span>
{{
item
.
upgradeGoodsName
}}
{{
item
.
specificationData
}}
</span>
<span>
{{
item
.
upgradeGoodsName
}}
{{
item
.
specificationData
}}
</span>
</div>
</div>
<div>
<div>
产品ID:
<span>
{{
item
.
upgradeCommodityCode
}}
</span>
</div>
<div>
发货数量:
发货数量:
<span>
{{
item
.
purchaseNumber
+
(
membraneTypeList
.
includes
(
item
.
goodsType
)
?
'卷'
:
'件'
)
}}
</span>
<span>
{{
item
.
purchaseNumber
+
(
membraneTypeList
.
includes
(
item
.
goodsType
)
?
'卷'
:
'件'
)
}}
</span>
<el-button
v-if=
"item.deliveryCardList && item.deliveryCardList.length > 0"
type=
"text"
class=
"lookNumber"
<el-button
v-if=
"item.deliveryCardList && item.deliveryCardList.length > 0"
@
click=
"lookNumber(item.deliveryCardList)"
>
class=
"lookNumber"
type=
"text"
@
click=
"lookNumber(item.deliveryCardList)"
>
查看卡号
查看卡号
</el-button>
</el-button>
</div>
</div>
...
@@ -53,19 +69,26 @@
...
@@ -53,19 +69,26 @@
<span>
{{
item
.
stockNum
+
(
membraneTypeList
.
includes
(
item
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
<span>
{{
item
.
stockNum
+
(
membraneTypeList
.
includes
(
item
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
</div>
</div>
</div>
</div>
<d2-table
v-if=
"item.deliveryCardList === null || item.deliveryCardList.length == 0"
ref=
"recordTable"
<d2-table
v-if=
"item.deliveryCardList === null || item.deliveryCardList.length == 0"
:table-data=
"item.goodsWarehousingList"
:table-params=
"tableParams"
:has-page=
"false"
>
ref=
"recordTable"
:has-page=
"false"
:table-data=
"item.goodsWarehousingList"
:table-params=
"tableParams"
>
<template
#
filmRollNo=
"scope"
>
<template
#
filmRollNo=
"scope"
>
<div
v-if=
"scope.scope.filmRollList && scope.scope.filmRollList.length == 1"
>
<div
v-if=
"scope.scope.filmRollList && scope.scope.filmRollList.length == 1"
>
{{
scope
.
scope
.
filmRollList
[
0
]
}}
{{
scope
.
scope
.
filmRollList
[
0
]
}}
</div>
</div>
<div
v-else-if=
"scope.scope.filmRollList && scope.scope.filmRollList.length > 1"
>
<div
v-else-if=
"scope.scope.filmRollList && scope.scope.filmRollList.length > 1"
>
<el-popover
placement=
"top"
width=
"200"
trigger=
"hover"
>
<el-popover
placement=
"top"
trigger=
"hover"
width=
"200"
>
<div
class=
"film-roll-box"
>
<div
class=
"film-roll-box"
>
<div
class=
"title"
>
<div
class=
"title"
>
膜卷号
膜卷号
</div>
</div>
<div
v-for=
"(subItem, subIndex) in scope.scope.filmRollList"
:key=
"subIndex"
class=
"merchant-item"
>
<div
v-for=
"(subItem, subIndex) in scope.scope.filmRollList"
:key=
"subIndex"
class=
"merchant-item"
>
{{
subItem
}}
{{
subItem
}}
</div>
</div>
</div>
</div>
...
@@ -87,10 +110,18 @@
...
@@ -87,10 +110,18 @@
</div>
</div>
</template>
</template>
</d2-dialog>
</d2-dialog>
<d2-dialog
title=
"查看发货卡号"
:is-visible=
"innerVisible"
width=
"500px"
:no-cancel=
"true"
btn-ok-label=
"关闭"
<d2-dialog
btn-ok-label=
"关闭"
@
closeDialog=
"innerVisible = false"
@
confirmDialog=
"innerVisible = false"
>
title=
"查看发货卡号"
<d2-table
ref=
"recordTable"
class=
"deliveryCardCon"
:table-data=
"tableDataCardList"
:table-params=
"innerParams"
width=
"500px"
:has-page=
"false"
>
:is-visible=
"innerVisible"
:no-cancel=
"true"
@
closeDialog=
"innerVisible = false"
@
confirmDialog=
"innerVisible = false"
>
<d2-table
ref=
"recordTable"
class=
"deliveryCardCon"
:has-page=
"false"
:table-data=
"tableDataCardList"
:table-params=
"innerParams"
>
</d2-table>
</d2-table>
</d2-dialog>
</d2-dialog>
</div>
</div>
...
@@ -103,184 +134,184 @@ import { deepClone, Util } from "@/common/util";
...
@@ -103,184 +134,184 @@ import { deepClone, Util } from "@/common/util";
import
{
baseConfig
}
from
"@/main"
;
import
{
baseConfig
}
from
"@/main"
;
export
default
{
export
default
{
name
:
"DeliveryDetailDialog"
,
name
:
"DeliveryDetailDialog"
,
props
:
{
props
:
{
detailVisible
:
{
detailVisible
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
,
},
},
recordInfo
:
{
recordInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
},
default
:
()
=>
{
},
},
},
},
},
data
()
{
data
()
{
return
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
membraneTypeList
:
baseConfig
.
membraneTypeList
,
membraneTypeList
:
baseConfig
.
membraneTypeList
,
detailInfo
:
{},
detailInfo
:
{},
searchFormSearch
:
{},
searchFormSearch
:
{},
// tableData: [],
// tableData: [],
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
Number
.
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
Number
.
parseInt
(
Math
.
random
()
*
1000
),
listName
:
"list"
,
listName
:
"list"
,
// singleSelectUniqueKey: 'id',
// singleSelectUniqueKey: 'id',
tableOption
:
false
,
tableOption
:
false
,
tableColumns
:
[{
tableColumns
:
[{
label
:
"入库数量"
,
label
:
"入库数量"
,
prop
:
"increaseStockNum"
,
prop
:
"increaseStockNum"
,
// width: '200px'
// width: '200px'
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
(
cellValue
.
increaseStockNum
||
cellValue
.
increaseStockNum
==
0
)
?
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
Number
.
parseFloat
(
cellValue
.
increaseStockNum
/
cellValue
.
alternateUnits
).
toFixed
(
2
)
:
Number
.
parseFloat
(
cellValue
.
increaseStockNum
).
toFixed
(
2
))
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
"卷"
:
"件"
)
:
"-"
;
return
(
cellValue
.
increaseStockNum
||
cellValue
.
increaseStockNum
==
0
)
?
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
Number
.
parseFloat
(
cellValue
.
increaseStockNum
/
cellValue
.
alternateUnits
).
toFixed
(
2
)
:
Number
.
parseFloat
(
cellValue
.
increaseStockNum
).
toFixed
(
2
))
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
"卷"
:
"件"
)
:
"-"
;
},
},
},
{
},
{
label
:
"膜卷号"
,
label
:
"膜卷号"
,
name
:
""
,
name
:
""
,
type
:
"slot"
,
type
:
"slot"
,
addHtml
:
"filmRollNo"
,
addHtml
:
"filmRollNo"
,
},
{
},
{
label
:
"入库仓库"
,
label
:
"入库仓库"
,
prop
:
"yqMerchantName"
,
prop
:
"yqMerchantName"
,
// width: '150px'
// width: '150px'
},
{
},
{
label
:
"入库门店"
,
label
:
"入库门店"
,
prop
:
"merchantName"
,
prop
:
"merchantName"
,
// width: '200px'
// width: '200px'
}],
}],
},
},
baseData
:
{
baseData
:
{
},
},
merchantDialogVisible
:
false
,
merchantDialogVisible
:
false
,
tableDataCardList
:
[],
tableDataCardList
:
[],
innerVisible
:
false
,
innerVisible
:
false
,
innerParams
:
{
innerParams
:
{
tableOption
:
false
,
tableOption
:
false
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
"卡号"
,
label
:
"卡号"
,
prop
:
"cardNum"
,
prop
:
"cardNum"
,
// width:630
// width:630
},
},
],
],
},
},
};
};
},
},
computed
:
{
computed
:
{
},
},
mounted
()
{
mounted
()
{
this
.
getDetail
();
this
.
getDetail
();
},
},
methods
:
{
methods
:
{
...
mapActions
({
...
mapActions
({
get
:
"d2admin/base/get"
,
get
:
"d2admin/base/get"
,
close
:
"d2admin/page/close"
,
close
:
"d2admin/page/close"
,
}),
}),
lookNumber
(
data
)
{
lookNumber
(
data
)
{
this
.
innerVisible
=
true
;
this
.
innerVisible
=
true
;
this
.
tableDataCardList
=
data
.
map
((
item
)
=>
{
this
.
tableDataCardList
=
data
.
map
((
item
)
=>
{
return
{
cardNum
:
item
};
return
{
cardNum
:
item
};
});
});
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
)
=>
{
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
);
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
);
resolve
();
resolve
();
});
});
},
},
getDetail
()
{
getDetail
()
{
let
params
=
{
id
:
deepClone
(
this
.
recordInfo
.
id
)
};
let
params
=
{
id
:
deepClone
(
this
.
recordInfo
.
id
)
};
purchaseOrderDeliveryDetail
(
params
).
then
((
res
)
=>
{
purchaseOrderDeliveryDetail
(
params
).
then
((
res
)
=>
{
this
.
detailInfo
=
res
;
this
.
detailInfo
=
res
;
if
(
this
.
detailInfo
.
deliveryDate
)
{
if
(
this
.
detailInfo
.
deliveryDate
)
{
this
.
detailInfo
.
deliveryDate
=
Util
.
dateFormate
(
this
.
detailInfo
.
deliveryDate
,
"YYYY-MM-DD HH:mm"
);
this
.
detailInfo
.
deliveryDate
=
Util
.
dateFormate
(
this
.
detailInfo
.
deliveryDate
,
"YYYY-MM-DD HH:mm"
);
}
}
const
_deliveryDetailList
=
this
.
detailInfo
.
deliveryDetailList
;
const
_deliveryDetailList
=
this
.
detailInfo
.
deliveryDetailList
;
if
(
_deliveryDetailList
&&
_deliveryDetailList
.
length
>
0
)
{
if
(
_deliveryDetailList
&&
_deliveryDetailList
.
length
>
0
)
{
_deliveryDetailList
.
forEach
((
info
)
=>
{
_deliveryDetailList
.
forEach
((
info
)
=>
{
const
_goodsWarehousingList
=
info
.
goodsWarehousingList
;
const
_goodsWarehousingList
=
info
.
goodsWarehousingList
;
if
(
_goodsWarehousingList
&&
_goodsWarehousingList
.
length
>
0
)
{
if
(
_goodsWarehousingList
&&
_goodsWarehousingList
.
length
>
0
)
{
_goodsWarehousingList
.
forEach
((
item
)
=>
{
_goodsWarehousingList
.
forEach
((
item
)
=>
{
item
.
goodsType
=
info
.
goodsType
;
item
.
goodsType
=
info
.
goodsType
;
// 换算单位
// 换算单位
item
.
alternateUnits
=
info
?.
stockNum
/
info
?.
purchaseNumber
;
item
.
alternateUnits
=
info
?.
stockNum
/
info
?.
purchaseNumber
;
});
});
}
}
});
});
}
}
});
});
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
"dialogClose"
);
this
.
$emit
(
"dialogClose"
);
},
},
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.detail-info
{
.detail-info
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
color
:
#666666
ff
;
color
:
#666666
ff
;
font-size
:
14px
;
font-size
:
14px
;
margin-bottom
:
16px
;
margin-bottom
:
16px
;
span
{
span
{
color
:
#333333
ff
;
color
:
#333333
ff
;
}
}
.add-btn
{
.add-btn
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#5850ff
;
color
:
#5850ff
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
}
}
.film-roll-box
{
.film-roll-box
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#666666
;
color
:
#666666
;
.title
{
.title
{
font-weight
:
500
;
font-weight
:
500
;
color
:
#3a3a3a
;
color
:
#3a3a3a
;
margin-bottom
:
8px
;
margin-bottom
:
8px
;
}
}
}
}
.deliveryCardCon
{
.deliveryCardCon
{
max-height
:
60vh
;
max-height
:
60vh
;
overflow
:
auto
;
overflow
:
auto
;
}
}
.lookNumber
{
.lookNumber
{
//
font-size
:
14px
;
//
font-size
:
14px
;
//
color
:
;
//
color
:
;
//
color
:
#5850ff
!important
;
//
color
:
#5850ff
!important
;
cursor
:
pointer
;
cursor
:
pointer
;
margin-left
:
8px
;
margin-left
:
8px
;
}
}
.table-wrap
{
.table-wrap
{
border
:
1px
solid
#e5e5e5
;
border
:
1px
solid
#e5e5e5
;
padding
:
16px
;
padding
:
16px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin-top
:
16px
;
margin-top
:
16px
;
//
/deep/
.el-form-item__error
{
//
/deep/
.el-form-item__error
{
//
padding-top
:
2px
;
//
padding-top
:
2px
;
//
z-index
:
9999999
;
//
z-index
:
9999999
;
//
position
:
static
;
//
position
:
static
;
//
}
//
}
}
}
.m-b-33
{
.m-b-33
{
margin-bottom
:
33px
;
margin-bottom
:
33px
;
}
}
</
style
>
</
style
>
src/views/purchase/components/factoryDeliveryDetailDialog.vue
View file @
6e4e04d
<!-- 发货单详情弹窗 -->
<!-- 发货单详情弹窗 -->
<
template
>
<
template
>
<div>
<div>
<baseDialog
title=
"详细信息"
:is-show
.
sync=
"detailVisible"
:config=
"dialogConfig.setting"
<baseDialog
btn-ok-label=
"关闭"
:dialog-config=
"dialogConfig.config"
width=
"1050px"
:no-cancel=
"true"
btn-ok-label=
"关闭"
@
closeDialog=
"handleClose"
title=
"详细信息"
@
confirmDialog=
"handleClose"
>
width=
"1050px"
:config=
"dialogConfig.setting"
:dialog-config=
"dialogConfig.config"
:is-show
.
sync=
"detailVisible"
:no-cancel=
"true"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<div
class=
"stockMonthDailog"
>
<div
class=
"stockMonthDailog"
>
<div
class=
"addressTitle"
>
<div
class=
"addressTitle"
>
<img
src=
"../images/addressIcon.webp"
alt=
""
class=
"icon"
>
<img
alt=
""
class=
"icon"
src=
"../images/addressIcon.webp"
>
<span
class=
"title"
>
{{
recordInfo
.
merchantName
}}
</span>
<span
class=
"title"
>
{{
recordInfo
.
merchantName
}}
</span>
</div>
</div>
<div
class=
"address-info"
v-if=
"detailInfo[0]
"
>
<div
v-if=
"detailInfo[0]"
class=
"address-info
"
>
<span
class=
"name"
>
收货人:
<span
class=
"label"
>
{{
detailInfo
[
0
].
contactName
}}
</span></span>
<span
class=
"name"
>
收货人:
<span
class=
"label"
>
{{
detailInfo
[
0
].
contactName
}}
</span></span>
<span
class=
"phone"
>
电话:
<span
class=
"label"
>
{{
detailInfo
[
0
].
contactPhone
}}
</span></span>
<span
class=
"phone"
>
电话:
<span
class=
"label"
>
{{
detailInfo
[
0
].
contactPhone
}}
</span></span>
<span
class=
"address"
>
收货地址:
<span
class=
"label"
>
{{
detailInfo
[
0
].
contactAddress
}}
</span></span>
<span
class=
"address"
>
收货地址:
<span
class=
"label"
>
{{
detailInfo
[
0
].
contactAddress
}}
</span></span>
...
@@ -20,30 +28,50 @@
...
@@ -20,30 +28,50 @@
<div
v-for=
"(itemList, index) in detailInfo"
:key=
"index"
>
<div
v-for=
"(itemList, index) in detailInfo"
:key=
"index"
>
<div
class=
"detail-info"
>
<div
class=
"detail-info"
>
<div
class=
"detail-item"
>
<div
class=
"detail-item"
>
<div
class=
"detail-label"
>
发货单号:
</div>
<div
class=
"detail-label"
>
发货单号:
</div>
<span>
{{
itemList
.
deliveryNumber
}}
</span>
<span>
{{
itemList
.
deliveryNumber
}}
</span>
</div>
</div>
<div
class=
"detail-item"
>
<div
class=
"detail-item"
>
<div
class=
"detail-label"
>
承运公司:
</div>
<div
class=
"detail-label"
>
承运公司:
</div>
<span>
{{
itemList
.
deliveryCompany
}}
</span>
<span>
{{
itemList
.
deliveryCompany
}}
</span>
</div>
</div>
<div
style=
"display: flex;"
>
<div
style=
"display: flex;"
>
<div
class=
"detail-label"
>
发货时间:
</div>
<div
class=
"detail-label"
>
发货时间:
</div>
<span>
{{
itemList
.
deliveryDate
}}
</span>
<span>
{{
itemList
.
deliveryDate
}}
</span>
</div>
</div>
<div>
<div>
<el-button
style=
"padding: 0;"
v-if=
"itemList.putStatus == 0"
type=
"text"
<el-button
v-if=
"itemList.putStatus == 0"
@
click=
"handleEdit(itemList)"
>
编辑
</el-button>
style=
"padding: 0;"
<el-button
style=
"padding: 0;"
type=
"text"
@
click=
"handleSign(itemList)"
>
发货签收单
</el-button>
type=
"text"
@
click=
"handleEdit(itemList)"
>
编辑
</el-button>
<el-button
style=
"padding: 0;"
type=
"text"
@
click=
"handleSign(itemList)"
>
发货签收单
</el-button>
</div>
</div>
</div>
</div>
<d2-table
ref=
"recordTable"
:table-data=
"itemList.deliveryDetailList"
:table-params=
"tableParams"
<d2-table
ref=
"recordTable"
:has-page=
"false"
>
:has-page=
"false"
:table-data=
"itemList.deliveryDetailList"
:table-params=
"tableParams"
>
<span
slot=
"deliveryCard"
slot-scope=
"scope"
>
<span
slot=
"deliveryCard"
slot-scope=
"scope"
>
<template
v-if=
"scope.scope.deliveryCardList && scope.scope.deliveryCardList.length > 1"
>
<template
v-if=
"scope.scope.deliveryCardList && scope.scope.deliveryCardList.length > 1"
>
<!--
{{
scope
.
scope
.
deliveryCardList
.
length
||
0
}}
-->
<!--
{{
scope
.
scope
.
deliveryCardList
.
length
||
0
}}
-->
<span>
+
{{
scope
.
scope
.
deliveryCardList
.
length
}}
</span>
<span>
+
{{
scope
.
scope
.
deliveryCardList
.
length
}}
</span>
<el-button
mini
type=
"text"
@
click=
"handleDeliveryCard(scope.scope.deliveryCardList)"
>
查看
</el-button>
<el-button
type=
"text"
mini
@
click=
"handleDeliveryCard(scope.scope.deliveryCardList)"
>
查看
</el-button>
</
template
>
</
template
>
<
template
v-else-if=
"scope.scope.deliveryCardList && scope.scope.deliveryCardList.length == 1"
>
<
template
v-else-if=
"scope.scope.deliveryCardList && scope.scope.deliveryCardList.length == 1"
>
<!--
{{
scope
.
scope
.
deliveryCardList
.
length
||
0
}}
-->
<!--
{{
scope
.
scope
.
deliveryCardList
.
length
||
0
}}
-->
...
@@ -56,363 +84,386 @@
...
@@ -56,363 +84,386 @@
</div>
</div>
</div>
</div>
</baseDialog>
</baseDialog>
<baseDialog
title=
"查看发货卡号"
:config=
"carDialogConfig.setting"
:dialog-config=
"carDialogConfig.config"
<baseDialog
btn-ok-label=
"关闭"
:is-show
.
sync=
"handleDeliveryCardVisible"
width=
"500px"
:no-cancel=
"true"
btn-ok-label=
"关闭"
title=
"查看发货卡号"
@
closeDialog=
"handleDeliveryCardVisible = false"
@
confirmDialog=
"handleDeliveryCardVisible = false"
>
width=
"500px"
<d2-table
class=
"deliveryCardCon"
ref=
"recordTable"
:table-data=
"deliveryCardList"
:table-params=
"innerParams"
:config=
"carDialogConfig.setting"
:has-page=
"false"
>
:dialog-config=
"carDialogConfig.config"
:is-show
.
sync=
"handleDeliveryCardVisible"
:no-cancel=
"true"
@
closeDialog=
"handleDeliveryCardVisible = false"
@
confirmDialog=
"handleDeliveryCardVisible = false"
>
<d2-table
ref=
"recordTable"
class=
"deliveryCardCon"
:has-page=
"false"
:table-data=
"deliveryCardList"
:table-params=
"innerParams"
>
</d2-table>
</d2-table>
</baseDialog>
</baseDialog>
<!-- 编辑 -->
<!-- 编辑 -->
<glsk-form-dialog
v-if=
"editVisible"
:selectVisible=
"editVisible"
:dialogConfig=
"editDialogConfig"
label-width=
"104px"
<glsk-form-dialog
v-if=
"editVisible"
dialog-width=
"520px"
:formRules=
"editRules"
:editData=
"editData"
:editFormData=
"editFormData"
:base-data=
"baseData"
dialog-width=
"520px"
@
handleClose=
"editVisible = false"
@
handleConfirm=
"handleEditConfirm"
></glsk-form-dialog>
label-width=
"104px"
:base-data=
"baseData"
:dialog-config=
"editDialogConfig"
:edit-data=
"editData"
:edit-form-data=
"editFormData"
:form-rules=
"editRules"
:select-visible=
"editVisible"
@
handleClose=
"editVisible = false"
@
handleConfirm=
"handleEditConfirm"
>
</glsk-form-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
mapActions
,
mapState
}
from
"vuex"
;
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
deliveryPdf
,
factoryUpdate
,
factoryView
}
from
"@/api/purchaseShopping.js"
;
import
{
factoryView
,
factoryUpdate
,
deliveryPdf
}
from
'@/api/purchaseShopping.js'
import
{
deepClone
,
Util
}
from
"@/common/util"
;
import
{
baseConfig
}
from
'@/main'
import
{
baseConfig
}
from
"@/main"
;
export
default
{
export
default
{
name
:
'FactoryDeliveryDetailDialog'
,
name
:
"FactoryDeliveryDetailDialog"
,
props
:
{
props
:
{
visible
:
{
visible
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
,
},
},
recordInfo
:
{
recordInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{
},
}
},
},
},
data
()
{
data
()
{
return
{
return
{
dialogConfig
:
{
dialogConfig
:
{
setting
:
{
setting
:
{
showClose
:
true
,
showClose
:
true
,
appendToBody
:
false
,
appendToBody
:
false
,
btnList
:
[
btnList
:
[
]
],
},
},
config
:
{
config
:
{
title
:
'详细信息'
,
title
:
"详细信息"
,
width
:
'1050px'
width
:
"1050px"
,
}
},
},
},
carDialogConfig
:
{
carDialogConfig
:
{
setting
:
{
setting
:
{
showClose
:
true
,
showClose
:
true
,
appendToBody
:
false
,
appendToBody
:
false
,
btnList
:
[
btnList
:
[
]
],
},
},
config
:
{
config
:
{
title
:
'查看发货卡号'
,
title
:
"查看发货卡号"
,
width
:
'500px'
width
:
"500px"
,
}
},
},
},
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
membraneTypeList
:
baseConfig
.
membraneTypeList
,
membraneTypeList
:
baseConfig
.
membraneTypeList
,
detailInfo
:
''
,
detailInfo
:
""
,
searchFormSearch
:
{},
searchFormSearch
:
{},
tableData
:
[],
tableData
:
[],
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
Number
.
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
listName
:
"list"
,
tableOption
:
false
,
tableOption
:
false
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'产品名称'
,
label
:
"产品名称"
,
prop
:
'upgradeGoodsName'
prop
:
"upgradeGoodsName"
,
},
},
{
{
label
:
"供应商名称"
,
label
:
"产品ID"
,
prop
:
'thirdPartyName'
,
prop
:
"upgradeCommodityCode"
,
width
:
100
,
width
:
100
,
},
},
{
{
label
:
'产品编码'
,
label
:
"供应商名称"
,
prop
:
'type'
prop
:
"thirdPartyName"
,
},
width
:
100
,
{
},
label
:
'规格'
,
{
prop
:
'specificationData'
label
:
"产品编码"
,
},
prop
:
"type"
,
{
},
label
:
'供应商编码'
,
{
prop
:
'thirdPartyCode'
,
label
:
"规格"
,
width
:
100
prop
:
"specificationData"
,
},
},
{
{
label
:
"产品别名"
,
label
:
"供应商编码"
,
prop
:
"purchaseGoodsName"
,
prop
:
"thirdPartyCode"
,
},
width
:
100
,
{
},
label
:
'发货数量'
,
{
prop
:
'purchaseNumber'
,
label
:
"产品别名"
,
formatter
:
cellValue
=>
{
prop
:
"purchaseGoodsName"
,
return
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
purchaseNumber
}
卷`
:
`
${
cellValue
.
purchaseNumber
}
件`
},
}
{
},
label
:
"发货数量"
,
{
prop
:
"purchaseNumber"
,
label
:
'备注'
,
formatter
:
(
cellValue
)
=>
{
prop
:
''
,
return
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
purchaseNumber
}
卷`
:
`
${
cellValue
.
purchaseNumber
}
件`
;
formatter
:
cellValue
=>
{
},
return
((
cellValue
.
deliveryRemark
||
''
)
+
(
cellValue
.
purchaseOrderRemark
||
''
))
||
'-'
},
}
{
},
label
:
"备注"
,
{
prop
:
""
,
label
:
'发货卡号'
,
formatter
:
(
cellValue
)
=>
{
prop
:
'deliveryCardList'
,
return
((
cellValue
.
deliveryRemark
||
""
)
+
(
cellValue
.
purchaseOrderRemark
||
""
))
||
"-"
;
addHtml
:
'deliveryCard'
},
}
},
]
{
},
label
:
"发货卡号"
,
innerParams
:
{
prop
:
"deliveryCardList"
,
tableOption
:
false
,
addHtml
:
"deliveryCard"
,
tableColumns
:
[
},
{
],
label
:
'卡号'
,
},
prop
:
'cardNum'
innerParams
:
{
}
tableOption
:
false
,
]
tableColumns
:
[
},
{
handleDeliveryCardVisible
:
false
,
label
:
"卡号"
,
deliveryCardList
:
[],
prop
:
"cardNum"
,
// 编辑
},
editVisible
:
false
,
],
editData
:
{
},
id
:
''
,
handleDeliveryCardVisible
:
false
,
deliveryNumber
:
''
,
deliveryCardList
:
[],
deliveryCompany
:
''
// 编辑
},
editVisible
:
false
,
editFormData
:
[{
editData
:
{
name
:
'deliveryNumber'
,
id
:
""
,
label
:
'承运单号'
,
deliveryNumber
:
""
,
type
:
'input'
,
deliveryCompany
:
""
,
inputType
:
'textarea'
,
},
rows
:
3
,
editFormData
:
[{
maxlength
:
'50'
,
name
:
"deliveryNumber"
,
isClear
:
true
label
:
"承运单号"
,
},
{
type
:
"input"
,
name
:
'deliveryCompany'
,
inputType
:
"textarea"
,
label
:
'承运公司'
,
rows
:
3
,
type
:
'input'
,
maxlength
:
"50"
,
maxlength
:
'20'
,
isClear
:
true
,
isClear
:
true
},
{
}],
name
:
"deliveryCompany"
,
editRules
:
{
label
:
"承运公司"
,
deliveryNumber
:
[{
required
:
true
,
message
:
'请输入承运单号'
,
trigger
:
'change'
}],
type
:
"input"
,
deliveryCompany
:
[{
required
:
true
,
message
:
'请输入承运公司'
,
trigger
:
'change'
}]
maxlength
:
"20"
,
},
isClear
:
true
,
editDialogConfig
:
{
}],
title
:
'编辑'
editRules
:
{
}
deliveryNumber
:
[{
required
:
true
,
message
:
"请输入承运单号"
,
trigger
:
"change"
}],
}
deliveryCompany
:
[{
required
:
true
,
message
:
"请输入承运公司"
,
trigger
:
"change"
}],
},
},
computed
:
{
editDialogConfig
:
{
detailVisible
:
{
title
:
"编辑"
,
get
()
{
},
return
this
.
visible
};
},
},
set
(
val
)
{
computed
:
{
this
.
$emit
(
'update:visible'
,
val
)
detailVisible
:
{
}
get
()
{
}
return
this
.
visible
;
},
},
mounted
()
{
set
(
val
)
{
this
.
getDetail
()
this
.
$emit
(
"update:visible"
,
val
);
},
},
},
},
mounted
()
{
this
.
getDetail
();
},
methods
:
{
methods
:
{
...
mapActions
({
...
mapActions
({
get
:
'd2admin/base/get'
,
get
:
"d2admin/base/get"
,
close
:
'd2admin/page/close'
close
:
"d2admin/page/close"
,
}),
}),
handleDeliveryCard
(
list
)
{
handleDeliveryCard
(
list
)
{
this
.
handleDeliveryCardVisible
=
true
this
.
handleDeliveryCardVisible
=
true
;
this
.
deliveryCardList
=
list
.
map
(
item
=>
{
this
.
deliveryCardList
=
list
.
map
((
item
)
=>
{
return
{
cardNum
:
item
}
return
{
cardNum
:
item
};
})
});
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
((
resolve
)
=>
{
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
);
resolve
()
resolve
();
})
});
},
},
getDetail
()
{
getDetail
()
{
var
params
=
{
id
:
deepClone
(
this
.
recordInfo
.
id
),
currentPage
:
1
,
pageSize
:
1000
}
let
params
=
{
id
:
deepClone
(
this
.
recordInfo
.
id
),
currentPage
:
1
,
pageSize
:
1000
};
factoryView
(
params
).
then
(
res
=>
{
factoryView
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
,
'res'
)
console
.
log
(
res
,
"res"
);
this
.
detailInfo
=
res
.
list
this
.
detailInfo
=
res
.
list
;
this
.
detailInfo
.
forEach
(
item
=>
{
this
.
detailInfo
.
forEach
((
item
)
=>
{
if
(
item
.
deliveryDate
)
{
if
(
item
.
deliveryDate
)
{
item
.
deliveryDate
=
Util
.
dateFormate
(
item
.
deliveryDate
,
'YYYY-MM-DD HH:mm:ss'
)
item
.
deliveryDate
=
Util
.
dateFormate
(
item
.
deliveryDate
,
"YYYY-MM-DD HH:mm:ss"
);
}
}
const
_deliveryDetailList
=
item
.
deliveryDetailList
const
_deliveryDetailList
=
item
.
deliveryDetailList
;
console
.
log
(
_deliveryDetailList
,
'_deliveryDetailList'
)
console
.
log
(
_deliveryDetailList
,
"_deliveryDetailList"
);
if
(
_deliveryDetailList
&&
_deliveryDetailList
.
length
>
0
)
{
if
(
_deliveryDetailList
&&
_deliveryDetailList
.
length
>
0
)
{
_deliveryDetailList
.
forEach
(
info
=>
{
_deliveryDetailList
.
forEach
((
info
)
=>
{
const
_goodsWarehousingList
=
info
.
goodsWarehousingList
const
_goodsWarehousingList
=
info
.
goodsWarehousingList
;
if
(
_goodsWarehousingList
&&
_goodsWarehousingList
.
length
>
0
)
{
if
(
_goodsWarehousingList
&&
_goodsWarehousingList
.
length
>
0
)
{
_goodsWarehousingList
.
forEach
(
item
=>
{
_goodsWarehousingList
.
forEach
((
item
)
=>
{
item
.
goodsType
=
info
.
goodsType
item
.
goodsType
=
info
.
goodsType
;
})
});
}
}
})
});
}
}
// item.deliveryDetailList.forEach(info => {
// item.deliveryDetailList.forEach(info => {
// info.goodsWarehousingList.forEach(item => {
// info.goodsWarehousingList.forEach(item => {
// item.goodsType = info.goodsType
// item.goodsType = info.goodsType
// })
// })
// })
// })
})
});
})
});
},
},
// 编辑
// 编辑
editDialogVisible
()
{
editDialogVisible
()
{
this
.
editVisible
=
!
this
.
editVisible
this
.
editVisible
=
!
this
.
editVisible
;
},
},
handleEdit
(
targetItem
)
{
handleEdit
(
targetItem
)
{
this
.
editData
=
{
this
.
editData
=
{
id
:
targetItem
.
id
,
id
:
targetItem
.
id
,
deliveryNumber
:
targetItem
.
deliveryNumber
,
deliveryNumber
:
targetItem
.
deliveryNumber
,
deliveryCompany
:
targetItem
.
deliveryCompany
deliveryCompany
:
targetItem
.
deliveryCompany
,
}
};
this
.
editDialogVisible
()
this
.
editDialogVisible
();
},
},
handleEditConfirm
()
{
handleEditConfirm
()
{
this
.
loading
=
true
this
.
loading
=
true
;
factoryUpdate
(
this
.
editData
).
then
((
res
)
=>
{
factoryUpdate
(
this
.
editData
).
then
((
res
)
=>
{
this
.
notice
.
okTips
()
this
.
notice
.
okTips
();
this
.
editDialogVisible
()
this
.
editDialogVisible
();
this
.
getDetail
()
this
.
getDetail
();
// this.handleReset()
// this.handleReset()
}).
finally
(()
=>
{
}).
finally
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
;
})
});
},
},
handleSign
(
row
)
{
handleSign
(
row
)
{
const
params
=
{
const
params
=
{
id
:
row
.
id
id
:
row
.
id
,
}
};
deliveryPdf
(
params
).
then
((
res
)
=>
{
deliveryPdf
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
);
this
.
$open
(
res
)
this
.
$open
(
res
);
})
});
},
},
handleClose
()
{
handleClose
()
{
// this.$emit('dialogClose')
// this.$emit('dialogClose')
this
.
detailVisible
=
false
this
.
detailVisible
=
false
;
}
},
}
}
},
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.stockMonthDailog
{
.stockMonthDailog
{
//
::v-deep.el-dialog
{
//
::v-deep.el-dialog
{
max-height
:
60vh
;
max-height
:
60vh
;
overflow
:
auto
;
overflow
:
auto
;
//
}
//
}
}
}
.deliveryCardCon
{
.deliveryCardCon
{
max-height
:
60vh
;
max-height
:
60vh
;
overflow
:
auto
;
overflow
:
auto
;
}
}
.address-info
{
.address-info
{
display
:
flex
;
display
:
flex
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
align-items
:
center
;
align-items
:
center
;
//
justify-content
:
space-between
;
//
justify-content
:
space-between
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
width
:
100%
;
width
:
100%
;
//
height
:
36px
;
//
height
:
36px
;
//
padding
:
0
20px
;
//
padding
:
0
20px
;
margin-top
:
10px
;
margin-top
:
10px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#666666
;
color
:
#666666
;
>
span
{
>
span
{
margin-right
:
20px
;
margin-right
:
20px
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
.label
{
.label
{
color
:
#333333
;
color
:
#333333
;
}
}
.address
{
.address
{
//
min-width
:
500px
;
//
min-width
:
500px
;
}
}
}
}
.detail-info
{
.detail-info
{
display
:
flex
;
display
:
flex
;
align-items
:
flex-start
;
align-items
:
flex-start
;
justify-content
:
space-between
;
justify-content
:
space-between
;
color
:
#666666
ff
;
color
:
#666666
ff
;
font-size
:
14px
;
font-size
:
14px
;
margin-top
:
16px
;
margin-top
:
16px
;
.detail-item
{
.detail-item
{
display
:
flex
;
display
:
flex
;
width
:
319px
;
width
:
319px
;
}
}
.detail-label
{
.detail-label
{
width
:
70px
;
width
:
70px
;
flex-shrink
:
0
;
flex-shrink
:
0
;
}
}
span
{
span
{
color
:
#333333
ff
;
color
:
#333333
ff
;
}
}
.add-btn
{
.add-btn
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#5850ff
;
color
:
#5850ff
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
}
}
.orderCode
{
.orderCode
{
margin-top
:
0
;
margin-top
:
0
;
}
}
.table-wrap
{
.table-wrap
{
border
:
1px
solid
#e5e5e5
;
border
:
1px
solid
#e5e5e5
;
padding
:
16px
;
padding
:
16px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin-top
:
16px
;
margin-top
:
16px
;
}
}
.addressTitle
{
.addressTitle
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.title
{
.title
{
font-family
:
PingFangSC-Medium
;
font-family
:
PingFangSC-Medium
;
font-weight
:
600
;
font-weight
:
600
;
font-size
:
16px
;
font-size
:
16px
;
color
:
#333333
;
color
:
#333333
;
}
}
.icon
{
.icon
{
width
:
28px
;
width
:
28px
;
height
:
28px
;
height
:
28px
;
margin-right
:
8px
;
margin-right
:
8px
;
}
}
}
}
</
style
>
</
style
>
src/views/purchase/factoryPurchaseAndDelivery.vue
View file @
6e4e04d
<!-- 仓库/工厂发货 -->
<!-- 仓库/工厂发货 -->
<
template
>
<
template
>
<d2-container
class=
"container"
>
<d2-container
class=
"container"
>
<template
#
header
>
<template
#
header
>
<div
class=
"header"
>
<div
class=
"header"
>
<d2-search
ref=
"showSearch"
:labelWidth=
"labelWidth"
class=
"show-search"
:form-data=
"showFormData"
<d2-search
ref=
"showSearch"
:search-form=
"searchForm"
>
class=
"show-search"
</d2-search>
:form-data=
"showFormData"
<div
class=
"up-btns"
>
:label-width=
"labelWidth"
<el-button
:id=
"tableParams.btnId"
handle
size=
"small"
type=
"primary"
>
:search-form=
"searchForm"
>
查询
</d2-search>
</el-button>
<div
class=
"up-btns"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
<el-button
:id=
"tableParams.btnId"
重置
size=
"small"
</el-button>
type=
"primary"
</div>
handle
>
</div>
查询
</
template
>
</el-button>
<div
class=
"d2-container-content"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
<d2-table-header>
重置
<span
style=
"margin-right: 10px"
>
</el-button>
<auth-button
category=
"Button"
:show-btn-ids=
"['9090703']"
/>
</div>
</span>
</div>
<span>
</
template
>
<auth-button
category=
"Button"
:show-btn-ids=
"['9090704']"
/>
<div
class=
"d2-container-content"
>
</span>
<d2-table-header>
</d2-table-header>
<span
style=
"margin-right: 10px"
>
<d2-table
ref=
"purchaseAndDeliveryTable"
:before-search-fn=
"beforeSearchFn"
:get-list-api=
"getListApi"
<auth-button
category=
"Button"
:show-btn-ids=
"['9090703']"
/>
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
@
searchChange=
"searchChange"
</span>
@
selectionTable=
"handleSelectionTable"
@
setTableFinishFun=
"setTableFinishFun"
>
<span>
<
template
#
upgradeGoodsName=
"scope"
>
<auth-button
category=
"Button"
:show-btn-ids=
"['9090704']"
/>
<div>
</span>
<img
v-if=
"scope.scope.refundStatus == 'Y'"
alt=
""
class=
"return"
src=
"@/assets/retrun.png"
>
</d2-table-header>
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
<d2-table
ref=
"purchaseAndDeliveryTable"
</div>
:before-search-fn=
"beforeSearchFn"
</
template
>
:get-list-api=
"getListApi"
<
template
#
suitCarTypeList=
"scope"
>
:search-form=
"tableSearchForm"
<div>
:table-params=
"tableParams"
<el-tooltip
v-if=
"scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
effect=
"dark"
@
searchChange=
"searchChange"
placement=
"top"
>
@
selectionTable=
"handleSelectionTable"
<template
#
content
>
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"car-type-list"
>
<
template
#
upgradeGoodsName=
"scope"
>
<div>
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
)
}}
</div>
<div>
</div>
<img
v-if=
"scope.scope.refundStatus == 'Y'"
</
template
>
alt=
""
<span
class=
"one-line-ellipsis"
>
{{ scope.columnsObj.formatter(scope.scope) }}
</span>
class=
"return"
</el-tooltip>
src=
"@/assets/retrun.png"
>
<div
v-else
>
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
-
</div>
</div>
</
template
>
</div>
<
template
#
suitCarTypeList=
"scope"
>
</template>
<div>
<
template
#
auth-button=
"scope"
>
<el-tooltip
v-if=
"scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
<div>
effect=
"dark"
<!-- 查看 -->
placement=
"top"
>
<span
v-if=
"scope.scope.deliveryStatus != 1"
style=
"margin-right: 10px;"
>
<template
#
content
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090701']"
/>
<div
class=
"car-type-list"
>
</span>
<div>
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
)
}}
</div>
<!-- 确认发货 -->
</div>
<!-- style="margin-right: 10px;" -->
</
template
>
<span
<span
class=
"one-line-ellipsis"
>
{{ scope.columnsObj.formatter(scope.scope) }}
</span>
v-if=
"scope.scope.refundStatus != 'Y' && (scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3)"
</el-tooltip>
style=
"margin-right: 10px;"
>
<div
v-else
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090702']"
/>
-
</span>
</div>
<!--
<el-button
:data=
"scope.scope"
type=
"text"
@
click=
"handleDelivery(scope.scope)"
>
发货
</el-button>
-->
</div>
<!-- 发货 -->
</template>
<!--
<span
v-show=
"scope.scope.status == 2"
style=
"margin-right: 10px;"
>
-->
<
template
#
auth-button=
"scope"
>
<!--
<span
style=
"margin-right: 10px;"
>
<div>
<!-- 查看 -->
<span
v-if=
"scope.scope.deliveryStatus != 1"
style=
"margin-right: 10px;"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090701']"
/>
</span>
<!-- 确认发货 -->
<!-- style="margin-right: 10px;" -->
<span
v-if=
"scope.scope.refundStatus != 'Y' && (scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3)"
style=
"margin-right: 10px;"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090702']"
/>
</span>
<!--
<el-button
:data=
"scope.scope"
type=
"text"
@
click=
"handleDelivery(scope.scope)"
>
发货
</el-button>
-->
<!-- 发货 -->
<!--
<span
v-show=
"scope.scope.status == 2"
style=
"margin-right: 10px;"
>
-->
<!--
<span
style=
"margin-right: 10px;"
>
<el-button
:data=
"scope.scope"
type=
"text"
@
click=
"hadleAllocat(scope.scope)"
>
分配
</el-button>
<el-button
:data=
"scope.scope"
type=
"text"
@
click=
"hadleAllocat(scope.scope)"
>
分配
</el-button>
</span>
-->
</span>
-->
<!-- 驳回 -->
<!-- 驳回 -->
<!--
<span
v-show=
"scope.scope.deliveryStatus == 1 && scope.scope.status != 4"
>
<!--
<span
v-show=
"scope.scope.deliveryStatus == 1 && scope.scope.status != 4"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090403']"
/>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090403']"
/>
</span>
-->
</span>
-->
</div>
</div>
</
template
>
</
template
>
</d2-table>
</d2-table>
</div>
</div>
<FactoryDeliveryDetailDialog
v-if=
"detailVisible"
:record-info=
"detailInfo"
:visible
.
sync=
"detailVisible"
>
<FactoryDeliveryDetailDialog
v-if=
"detailVisible"
</FactoryDeliveryDetailDialog>
:record-info=
"detailInfo"
<EditOrderDialog
v-if=
"editVisible"
page=
"factory"
:params-obj=
"dialogData"
:table-list=
"editTableList"
:visible
.
sync=
"detailVisible"
>
:visible
.
sync=
"editVisible"
@
editClose=
"editClose"
>
</FactoryDeliveryDetailDialog>
</EditOrderDialog>
<EditOrderDialog
v-if=
"editVisible"
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting" -->
page=
"factory"
<baseDialog
:dialog-config=
"rejectConfig.config"
:is-show
.
sync=
"rejectVisible"
@
handleClick=
"handleRejectConfirm"
>
:params-obj=
"dialogData"
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
:table-list=
"editTableList"
:visible
.
sync=
"editVisible"
@
editClose=
"editClose"
>
</EditOrderDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting" -->
<baseDialog
:dialog-config=
"rejectConfig.config"
:is-show
.
sync=
"rejectVisible"
@
handleClick=
"handleRejectConfirm"
>
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> -->
@closeDialog="handleRejectClose"> -->
<div
class=
"reject-dialog"
>
<div
class=
"reject-dialog"
>
<el-form
ref=
"delivery-dialog-form"
label-width=
"150px"
:model=
"rejectData"
:rules=
"rejectRules"
>
<el-form
ref=
"delivery-dialog-form"
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
label-width=
"150px"
<el-input
v-model
.
trim=
"rejectData.rejectCause"
class=
"dis-in-block reject-input"
maxlength=
"50"
:model=
"rejectData"
placeholder=
"请输入驳回原因"
:rows=
"3"
show-word-limit
type=
"textarea"
/>
:rules=
"rejectRules"
>
</el-form-item>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
</el-form>
<el-input
v-model
.
trim=
"rejectData.rejectCause"
</div>
class=
"dis-in-block reject-input"
<!-- <div class="footer">
maxlength=
"50"
placeholder=
"请输入驳回原因"
type=
"textarea"
show-word-limit
:rows=
"3"
/>
</el-form-item>
</el-form>
</div>
<!-- <div class="footer">
<el-button @click="handleRejectClose">取消</el-button>
<el-button @click="handleRejectClose">取消</el-button>
<el-button @click="handleRejectConfirm" type="primary" v-preventReClick
<el-button @click="handleRejectConfirm" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确认</el-button>
:loading="$store.state.d2admin.loading.value">确认</el-button>
</div> -->
</div> -->
<!-- </d2-dialog> -->
<!-- </d2-dialog> -->
</baseDialog>
</baseDialog>
</d2-container>
</d2-container>
</template>
</template>
<
script
>
<
script
>
...
@@ -121,7 +151,7 @@ export default {
...
@@ -121,7 +151,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
labelWidth
:
'100px'
,
labelWidth
:
"100px"
,
editVisible
:
false
,
editVisible
:
false
,
editTableList
:
[],
editTableList
:
[],
reg
:
{
reg
:
{
...
@@ -154,6 +184,7 @@ export default {
...
@@ -154,6 +184,7 @@ export default {
merchantName
:
""
,
merchantName
:
""
,
deliveryStatus
:
""
,
deliveryStatus
:
""
,
sendOutMerchantName
:
""
,
sendOutMerchantName
:
""
,
commodityCode
:
""
,
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
tableData
:
[],
tableData
:
[],
...
@@ -225,18 +256,26 @@ export default {
...
@@ -225,18 +256,26 @@ export default {
isClear
:
true
,
isClear
:
true
,
},
},
{
{
label
:
'供应商名称'
,
label
:
"供应商名称"
,
name
:
'thirdPartyName'
,
name
:
"thirdPartyName"
,
type
:
'input'
,
type
:
"input"
,
isClear
:
true
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
keyFn
:
this
.
keyDowmGetList
,
},
{
},
label
:
'供应商编码'
,
{
name
:
'thirdPartyCode'
,
label
:
"供应商编码"
,
type
:
'input'
,
name
:
"thirdPartyCode"
,
type
:
"input"
,
isClear
:
true
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
keyFn
:
this
.
keyDowmGetList
,
}
},
{
label
:
"产品ID"
,
name
:
"commodityCode"
,
type
:
"input"
,
isClear
:
true
,
maxlength
:
20
,
},
],
],
selectedList
:
[],
selectedList
:
[],
getListApi
:
warehousedeliverPage
,
getListApi
:
warehousedeliverPage
,
...
@@ -254,9 +293,14 @@ export default {
...
@@ -254,9 +293,14 @@ export default {
prop
:
"upgradeGoodsName"
,
prop
:
"upgradeGoodsName"
,
},
},
{
{
label
:
'供应商名称'
,
label
:
"产品ID"
,
prop
:
'thirdPartyName'
,
prop
:
"upgradeGoodsCommodityCode"
,
width
:
100
width
:
100
,
},
{
label
:
"供应商名称"
,
prop
:
"thirdPartyName"
,
width
:
100
,
},
},
{
{
label
:
"产品编码"
,
label
:
"产品编码"
,
...
@@ -276,9 +320,9 @@ export default {
...
@@ -276,9 +320,9 @@ export default {
},
},
},
},
{
{
label
:
'供应商编码'
,
label
:
"供应商编码"
,
prop
:
'thirdPartyCode'
,
prop
:
"thirdPartyCode"
,
width
:
100
width
:
100
,
},
},
{
{
label
:
"系列"
,
label
:
"系列"
,
...
@@ -483,10 +527,10 @@ export default {
...
@@ -483,10 +527,10 @@ export default {
)
{
)
{
this
.
tableSearchForm
.
reviewedStartDateStr
this
.
tableSearchForm
.
reviewedStartDateStr
=
Util
.
dateFormate
(
this
.
tableSearchForm
.
reviewedDate
[
0
],
"YYYY-MM-DD"
)
=
Util
.
dateFormate
(
this
.
tableSearchForm
.
reviewedDate
[
0
],
"YYYY-MM-DD"
)
+
" 00:00:00"
;
+
" 00:00:00"
;
this
.
tableSearchForm
.
reviewedEndDateStr
this
.
tableSearchForm
.
reviewedEndDateStr
=
Util
.
dateFormate
(
this
.
tableSearchForm
.
reviewedDate
[
1
],
"YYYY-MM-DD"
)
=
Util
.
dateFormate
(
this
.
tableSearchForm
.
reviewedDate
[
1
],
"YYYY-MM-DD"
)
+
" 23:59:59"
;
+
" 23:59:59"
;
}
}
delete
this
.
tableSearchForm
.
reviewedDate
;
delete
this
.
tableSearchForm
.
reviewedDate
;
resolve
();
resolve
();
...
...
src/views/purchase/purchaseAndDelivery.vue
View file @
6e4e04d
...
@@ -416,6 +416,11 @@ export default {
...
@@ -416,6 +416,11 @@ export default {
prop
:
"upgradeGoodsName"
,
prop
:
"upgradeGoodsName"
,
}
,
}
,
{
{
label
:
"产品ID"
,
prop
:
"upgradeGoodsCommodityCode"
,
width
:
100
,
}
,
{
label
:
"供应商名称"
,
label
:
"供应商名称"
,
prop
:
"thirdPartyName"
,
prop
:
"thirdPartyName"
,
width
:
100
,
width
:
100
,
...
@@ -518,6 +523,7 @@ export default {
...
@@ -518,6 +523,7 @@ export default {
signStatusList
:
[],
signStatusList
:
[],
thirdPartyName
:
""
,
thirdPartyName
:
""
,
thirdPartyCode
:
""
,
thirdPartyCode
:
""
,
commodityCode
:
""
,
}
,
}
,
tableSearchForm
:
{
}
,
tableSearchForm
:
{
}
,
tableData
:
[],
tableData
:
[],
...
@@ -652,6 +658,13 @@ export default {
...
@@ -652,6 +658,13 @@ export default {
isClear
:
true
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
,
keyFn
:
this
.
keyDowmGetList
,
}
,
}
,
{
label
:
"产品ID"
,
name
:
"commodityCode"
,
type
:
"input"
,
isClear
:
true
,
maxlength
:
20
,
}
,
],
],
selectedList
:
[],
selectedList
:
[],
getListApi
:
getPurchaseOrderShipmentList
,
getListApi
:
getPurchaseOrderShipmentList
,
...
@@ -669,6 +682,11 @@ export default {
...
@@ -669,6 +682,11 @@ export default {
prop
:
"upgradeGoodsName"
,
prop
:
"upgradeGoodsName"
,
}
,
}
,
{
{
label
:
"产品ID"
,
prop
:
"upgradeGoodsCommodityCode"
,
width
:
100
,
}
,
{
label
:
"供应商名称"
,
label
:
"供应商名称"
,
prop
:
"thirdPartyName"
,
prop
:
"thirdPartyName"
,
width
:
100
,
width
:
100
,
...
...
src/views/stockManage/inventoryTransactionRecords/index.vue
View file @
6e4e04d
...
@@ -128,6 +128,13 @@ export default {
...
@@ -128,6 +128,13 @@ export default {
optionLabel
:
"confValue"
,
optionLabel
:
"confValue"
,
optionsName
:
"inventoryTypeList"
,
optionsName
:
"inventoryTypeList"
,
},
},
{
label
:
"产品ID"
,
name
:
"commodityCode"
,
type
:
"input"
,
isClear
:
true
,
maxlength
:
20
,
},
],
],
getListApi
:
getInventoryTransactionRecordsPage
,
getListApi
:
getInventoryTransactionRecordsPage
,
// 表格参数
// 表格参数
...
@@ -145,6 +152,11 @@ export default {
...
@@ -145,6 +152,11 @@ export default {
prop
:
"upgradeGoodsName"
,
prop
:
"upgradeGoodsName"
,
},
},
{
{
label
:
"产品ID"
,
prop
:
"commodityCode"
,
width
:
100
,
},
{
label
:
"产品编码"
,
label
:
"产品编码"
,
prop
:
"productCode"
,
prop
:
"productCode"
,
},
},
...
...
src/views/stockManage/outbound/outboundList.vue
View file @
6e4e04d
...
@@ -208,6 +208,12 @@ export default {
...
@@ -208,6 +208,12 @@ export default {
optionId
:
"confId"
,
optionId
:
"confId"
,
optionLabel
:
"confValue"
,
optionLabel
:
"confValue"
,
optionsName
:
"inventoryTypeList"
,
optionsName
:
"inventoryTypeList"
,
},
{
label
:
"产品ID"
,
name
:
"commodityCode"
,
type
:
"input"
,
isClear
:
true
,
maxlength
:
20
,
}],
}],
getListApi
:
getMerchantGoodsStockReduceRecord
,
getListApi
:
getMerchantGoodsStockReduceRecord
,
tableParams
:
{
tableParams
:
{
...
@@ -226,6 +232,10 @@ export default {
...
@@ -226,6 +232,10 @@ export default {
prop
:
"upgradeGoodsName"
,
prop
:
"upgradeGoodsName"
,
width
:
"160px"
,
width
:
"160px"
,
},
{
},
{
label
:
"产品ID"
,
prop
:
"commodityCode"
,
width
:
100
,
},
{
label
:
"规格"
,
label
:
"规格"
,
prop
:
"specificationData"
,
prop
:
"specificationData"
,
width
:
"160px"
,
width
:
"160px"
,
...
...
src/views/stockManage/transferShipment/components/rejectDialog.vue
View file @
6e4e04d
<
template
>
<
template
>
<div>
<div>
<baseDialog
:is-show
.
sync=
"dialogShow"
:dialog-config=
"rejectConfig.config"
@
handleClick=
"handleRejectConfirm"
@
closeDialog=
"handleRejectClose"
>
<baseDialog
:dialog-config=
"rejectConfig.config"
<div
class=
"reject-dialog"
style=
"margin: 0;"
v-if=
"dialogShow"
>
:is-show
.
sync=
"dialogShow"
@
closeDialog=
"handleRejectClose"
@
handleClick=
"handleRejectConfirm"
>
<div
v-if=
"dialogShow"
class=
"reject-dialog"
style=
"margin: 0;"
>
<div
class=
"address-info"
>
<div
class=
"address-info"
>
<div
class=
"info-item"
v-for=
"(item, index) in infoList"
:key=
"index"
:class=
"
{ 'remark-item': item.isRemark }">
<div
v-for=
"(item, index) in infoList"
:key=
"index"
class=
"info-item"
:class=
"
{ 'remark-item': item.isRemark }">
<span
class=
"label-name"
>
{{
item
.
label
}}
:
</span>
<span
class=
"label-name"
>
{{
item
.
label
}}
:
</span>
<
ellipsis-t
ooltip
class=
"label-value"
:content=
"detailInfo[item.prop]"
/>
<
EllipsisT
ooltip
class=
"label-value"
:content=
"detailInfo[item.prop]"
/>
</div>
</div>
</div>
</div>
<div
class=
"reject-page edit-tmpl"
>
<div
class=
"reject-page edit-tmpl"
>
<div
class=
"title"
>
商品信息
</div>
<div
class=
"title"
>
商品信息
</div>
<div
class=
"content-box"
>
<div
class=
"content-box"
>
<d2-table
ref=
"purchaseOrderDetailTable"
:table-params=
"rejectTableParams"
:table-data=
"goodsList"
@
refreshTable=
"refreshTable"
:table-total=
"tableTotal"
>
<d2-table
ref=
"purchaseOrderDetailTable"
:table-data=
"goodsList"
:table-params=
"rejectTableParams"
:table-total=
"tableTotal"
@
refreshTable=
"refreshTable"
>
</d2-table>
</d2-table>
</div>
</div>
</div>
</div>
<el-form
:rules=
"rejectRules"
:model=
"formData"
label-width=
"150px"
ref=
"delivery-dialog-form"
>
<el-form
ref=
"delivery-dialog-form"
label-width=
"150px"
:model=
"formData"
:rules=
"rejectRules"
>
<el-form-item
label=
"驳回节点:"
prop=
"rejectNode"
>
<el-form-item
label=
"驳回节点:"
prop=
"rejectNode"
>
<el-select
v-model=
"formData.rejectNode"
placeholder=
"请选择驳回节点"
style=
"width: 450px"
>
<el-select
v-model=
"formData.rejectNode"
<el-option
v-for=
"item in rejectNodeOptions"
:key=
"item.id"
:label=
"item.label"
:value=
"item.id"
/>
placeholder=
"请选择驳回节点"
style=
"width: 450px"
>
<el-option
v-for=
"item in rejectNodeOptions"
:key=
"item.id"
:label=
"item.label"
:value=
"item.id"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
maxlength=
"200"
style=
"width: 450px;"
:rows=
"4"
show-word-limit
v-model
.
trim=
"formData.rejectCause"
class=
"dis-in-block reject-input"
/>
<el-input
v-model
.
trim=
"formData.rejectCause"
class=
"dis-in-block reject-input"
maxlength=
"200"
placeholder=
"请输入驳回原因"
style=
"width: 450px;"
type=
"textarea"
show-word-limit
:rows=
"4"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<p
style=
"margin-left: 150px; color: #999999;"
>
<p
style=
"margin-left: 150px; color: #999999;"
>
说明:驳回后,整个调拨订单进行驳回,无法再重新进行发货操作。
说明:驳回后,整个调拨订单进行驳回,无法再重新进行发货操作。
</p>
</p>
<div
class=
"examine-record"
>
<div
class=
"examine-record"
>
<div
class=
"title"
>
审核记录
</div>
<div
class=
"title"
>
审核记录
</div>
<div
class=
"log-box"
>
<div
class=
"log-box"
>
<div
class=
"record-div"
v-if=
"detailInfo.auditDetaiList && detailInfo.auditDetaiList.length"
>
<div
v-if=
"detailInfo.auditDetaiList && detailInfo.auditDetaiList.length"
class=
"record-div"
>
<div
class=
"record-div-d"
v-for=
"(item, index) in detailInfo.auditDetaiList"
:key=
"index"
>
<div
v-for=
"(item, index) in detailInfo.auditDetaiList"
:key=
"index"
class=
"record-div-d"
>
<!--
<span
class=
"dot"
></span>
-->
<!--
<span
class=
"dot"
></span>
-->
<div
class=
"span-txt-one"
>
{{
item
.
status
?
$$
(
statusForShow
,
[
item
.
status
],
'text'
)
:
''
}}
</div>
<div
class=
"span-txt-one"
>
{{
item
.
status
?
$$
(
statusForShow
,
[
item
.
status
],
'text'
)
:
''
}}
</div>
<div
class=
"span-txt-two"
style=
"font-weight: 500;"
>
<div
class=
"span-txt-two"
style=
"font-weight: 500;"
>
<!-- :class="item.status ? examineStatusClass[item.status] : ''" -->
<!-- :class="item.status ? examineStatusClass[item.status] : ''" -->
<span>
<span>
{{
item
.
status
?
$$
(
statusForShow
,
[
item
.
status
],
'status'
)
:
''
}}
</span>
{{
item
.
status
?
$$
(
statusForShow
,
[
item
.
status
],
'status'
)
:
''
}}
</span>
<!--
<span
v-if=
"item.rejectedStatus"
>
<!--
<span
v-if=
"item.rejectedStatus"
>
<span
style=
"display: inline-block; margin: 0 8px;"
>
至
</span>
<span
style=
"display: inline-block; margin: 0 8px;"
>
至
</span>
<span>
{{
item
.
rejectedStatus
?
$$
(
rejectedForShow
,
[
item
.
rejectedStatus
],
'rejectedStatus'
)
:
''
}}
</span>
<span>
{{
item
.
rejectedStatus
?
$$
(
rejectedForShow
,
[
item
.
rejectedStatus
],
'rejectedStatus'
)
:
''
}}
</span>
</span>
-->
</span>
-->
</div>
</div>
<div
class=
"span-txt-two reviewer ellipsis"
>
审核人:
<div
class=
"span-txt-two reviewer ellipsis"
>
<el-tooltip
class=
"item"
popper-class=
"remark-popper-class"
effect=
"dark"
:content=
"item.reviewedBy"
placement=
"bottom"
>
审核人:
<el-tooltip
class=
"item"
effect=
"dark"
placement=
"bottom"
popper-class=
"remark-popper-class"
:content=
"item.reviewedBy"
>
<span>
{{
item
.
reviewedBy
}}
</span>
<span>
{{
item
.
reviewedBy
}}
</span>
</el-tooltip>
</el-tooltip>
</div>
</div>
<div
class=
"span-txt-two"
>
审核时间:
{{
item
.
reviewedDateFormat
}}
</div>
<div
class=
"span-txt-two"
>
<div
v-if=
"item.remark"
class=
"span-txt-two"
>
备注:
审核时间:
{{
item
.
reviewedDateFormat
}}
<el-tooltip
class=
"item"
popper-class=
"remark-popper-class"
effect=
"dark"
:content=
"item.remark"
placement=
"bottom"
>
</div>
<span>
{{
item
.
remark
?
(
item
.
remark
.
length
>
5
?
(
item
.
remark
.
slice
(
0
,
5
)
+
'...'
)
:
item
.
remark
)
:
''
}}
</span>
<div
v-if=
"item.remark"
class=
"span-txt-two"
>
备注:
<el-tooltip
class=
"item"
effect=
"dark"
placement=
"bottom"
popper-class=
"remark-popper-class"
:content=
"item.remark"
>
<span>
{{
item
.
remark
?
(
item
.
remark
.
length
>
5
?
(
`${item.remark.slice(0, 5)
}
...`
)
:
item
.
remark
)
:
''
}}
<
/span
>
<
/el-tooltip
>
<
/el-tooltip
>
<
/div
>
<
/div
>
<div
class=
"span-txt-two"
v-if=
"[4, 6, 7, 9].includes(item.status)"
>
驳回原因:
<
div
v
-
if
=
"[4, 6, 7, 9].includes(item.status)"
class
=
"span-txt-two"
>
<el-tooltip
class=
"item"
popper-class=
"remark-popper-class"
effect=
"dark"
:content=
"item.rejectCause"
placement=
"bottom"
>
驳回原因:
<span>
{{
item
.
rejectCause
?
(
item
.
rejectCause
.
length
>
5
?
(
item
.
rejectCause
.
slice
(
0
,
5
)
+
'...'
)
:
item
.
rejectCause
)
:
''
}}
</span>
<
el
-
tooltip
class
=
"item"
effect
=
"dark"
placement
=
"bottom"
popper
-
class
=
"remark-popper-class"
:
content
=
"item.rejectCause"
>
<
span
>
{{
item
.
rejectCause
?
(
item
.
rejectCause
.
length
>
5
?
(
`${item.rejectCause.slice(0, 5)
}
...`
)
:
item
.
rejectCause
)
:
''
}}
<
/span
>
<
/el-tooltip
>
<
/el-tooltip
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<div
class=
"emptyCom"
v-else
>
<
div
v
-
else
class
=
"emptyCom"
>
<img
:src=
"emptyImgUrl"
class=
"emptyImg"
alt=
""
>
<
img
alt
=
""
class
=
"emptyImg"
:
src
=
"emptyImgUrl"
>
<
span
class
=
"tips"
>
暂无数据
<
/span
>
<
span
class
=
"tips"
>
暂无数据
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -72,352 +127,360 @@
...
@@ -72,352 +127,360 @@
<
/baseDialog
>
<
/baseDialog
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
getTransferGoodsInfo
,
getTransferAuitInfo
,
deliveryReject
}
from
'@/api/stockManage'
import
{
deliveryReject
,
getTransferAuitInfo
,
getTransferGoodsInfo
}
from
"@/api/stockManage"
;
import
{
deepClone
,
Util
}
from
'@/common/util'
import
{
deepClone
,
Util
}
from
"@/common/util"
;
import
{
baseConfig
}
from
"@/main"
import
{
baseConfig
}
from
"@/main"
;
import
EllipsisTooltip
from
'../../components/EllipsisTooltip.vue'
import
EllipsisTooltip
from
"../../components/EllipsisTooltip.vue"
;
export
default
{
export
default
{
name
:
"RejectDialog"
,
name
:
"RejectDialog"
,
props
:
{
components
:
{
visible
:
{
EllipsisTooltip
,
type
:
Boolean
,
}
,
default
:
false
props
:
{
},
visible
:
{
rejectData
:
{
type
:
Boolean
,
type
:
Object
default
:
false
,
}
}
,
},
rejectData
:
{
components
:
{
type
:
Object
,
EllipsisTooltip
}
,
},
}
,
data
()
{
data
()
{
return
{
return
{
hasPage
:
false
,
hasPage
:
false
,
emptyImgUrl
:
require
(
"@/assets/empty-5.png"
),
emptyImgUrl
:
require
(
"@/assets/empty-5.png"
),
layout
:
'total,sizes,prev,pager,next,jumper'
,
layout
:
"total,sizes,prev,pager,next,jumper"
,
rejectNodeOptions
:
[
rejectNodeOptions
:
[
{
{
id
:
1
,
id
:
1
,
label
:
"调拨商户"
label
:
"调拨商户"
,
},
}
,
{
{
id
:
2
,
id
:
2
,
label
:
"运营审核"
label
:
"运营审核"
,
},
}
,
{
{
id
:
3
,
id
:
3
,
label
:
"商务审核"
label
:
"商务审核"
,
}
}
,
],
],
rejectConfig
:
{
rejectConfig
:
{
setting
:
{
setting
:
{
showClose
:
true
,
showClose
:
true
,
appendToBody
:
false
,
appendToBody
:
false
,
btnList
:
[
btnList
:
[
]
],
},
}
,
config
:
{
config
:
{
title
:
"驳回"
,
title
:
"驳回"
,
width
:
"1080px"
width
:
"1080px"
,
}
}
,
},
}
,
examineStatusClass
:
{
examineStatusClass
:
{
2
:
'greenSp'
,
2
:
"greenSp"
,
4
:
'redSp'
,
4
:
"redSp"
,
5
:
'greenSp'
,
5
:
"greenSp"
,
6
:
'redSp'
,
6
:
"redSp"
,
7
:
'redSp'
,
7
:
"redSp"
,
8
:
'greenSp'
,
8
:
"greenSp"
,
9
:
'redSp'
9
:
"redSp"
,
},
}
,
statusForShow
:
{
statusForShow
:
{
2
:
{
text
:
'运营审核'
,
status
:
'通过'
},
2
:
{
text
:
"运营审核"
,
status
:
"通过"
}
,
4
:
{
text
:
'运营审核'
,
status
:
'驳回'
},
4
:
{
text
:
"运营审核"
,
status
:
"驳回"
}
,
5
:
{
text
:
'商务审核'
,
status
:
'通过'
},
5
:
{
text
:
"商务审核"
,
status
:
"通过"
}
,
6
:
{
text
:
'商务审核'
,
status
:
'驳回'
},
6
:
{
text
:
"商务审核"
,
status
:
"驳回"
}
,
7
:
{
text
:
'调拨驳回'
,
status
:
'驳回'
},
7
:
{
text
:
"调拨驳回"
,
status
:
"驳回"
}
,
8
:
{
text
:
'总监审核'
,
status
:
'通过'
},
8
:
{
text
:
"总监审核"
,
status
:
"通过"
}
,
9
:
{
text
:
'总监驳回'
,
status
:
'驳回'
}
9
:
{
text
:
"总监驳回"
,
status
:
"驳回"
}
,
},
}
,
rejectedForShow
:
{
rejectedForShow
:
{
1
:
{
rejectedStatus
:
'调拨商户'
},
1
:
{
rejectedStatus
:
"调拨商户"
}
,
2
:
{
rejectedStatus
:
'运营审核'
},
2
:
{
rejectedStatus
:
"运营审核"
}
,
3
:
{
rejectedStatus
:
'商务审核'
}
3
:
{
rejectedStatus
:
"商务审核"
}
,
},
}
,
rejectTableParams
:
{
rejectTableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
Number
.
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
listName
:
"list"
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'产品名称'
,
label
:
"产品名称"
,
prop
:
'goodsName'
prop
:
"goodsName"
,
},
}
,
{
{
label
:
'产品编码'
,
label
:
"产品ID"
,
prop
:
'productCode'
prop
:
"upgradeGoodsCommodityCode"
,
},
width
:
100
,
{
}
,
label
:
'规格'
,
{
prop
:
'specificationData'
label
:
"产品编码"
,
},
prop
:
"productCode"
,
{
}
,
label
:
'系列'
,
{
prop
:
'sourceMaterialName'
label
:
"规格"
,
},
prop
:
"specificationData"
,
{
}
,
label
:
'所属分类'
,
{
prop
:
'goodsTypeName'
label
:
"系列"
,
},
prop
:
"sourceMaterialName"
,
{
}
,
label
:
'调拨数量'
,
{
prop
:
'allocateNumber'
,
label
:
"所属分类"
,
formatter
:
(
cellValue
)
=>
{
prop
:
"goodsTypeName"
,
const
qty
=
cellValue
.
allocateNumber
??
'-'
}
,
const
unit
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
{
return
qty
===
'-'
?
'-'
:
`
${
qty
}${
unit
}
`
label
:
"调拨数量"
,
}
prop
:
"allocateNumber"
,
},
formatter
:
(
cellValue
)
=>
{
{
const
qty
=
cellValue
.
allocateNumber
??
"-"
;
label
:
'调入门店库存'
,
const
unit
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
"米"
:
"件"
;
prop
:
'inStockQty'
,
return
qty
===
"-"
?
"-"
:
`${qty
}
${unit
}
`
;
formatter
:
(
cellValue
)
=>
{
}
,
const
qty
=
cellValue
.
inStockQty
??
'-'
}
,
const
unit
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
{
return
qty
===
'-'
?
'-'
:
`
${
qty
}${
unit
}
`
label
:
"调入门店库存"
,
}
prop
:
"inStockQty"
,
},
formatter
:
(
cellValue
)
=>
{
{
const
qty
=
cellValue
.
inStockQty
??
"-"
;
label
:
'调出门店库存'
,
const
unit
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
"米"
:
"件"
;
prop
:
'outStockQty'
,
return
qty
===
"-"
?
"-"
:
`${qty
}
${unit
}
`
;
formatter
:
(
cellValue
)
=>
{
}
,
const
qty
=
cellValue
.
outStockQty
??
'-'
}
,
const
unit
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
{
return
qty
===
'-'
?
'-'
:
`
${
qty
}${
unit
}
`
label
:
"调出门店库存"
,
}
prop
:
"outStockQty"
,
},
formatter
:
(
cellValue
)
=>
{
{
const
qty
=
cellValue
.
outStockQty
??
"-"
;
label
:
'膜卷号'
,
const
unit
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
"米"
:
"件"
;
prop
:
'filmRollNo'
return
qty
===
"-"
?
"-"
:
`${qty
}
${unit
}
`
;
}
}
,
]
}
,
},
{
infoList
:
[
label
:
"膜卷号"
,
{
label
:
'调出仓库'
,
prop
:
'callOutYqMerchantName'
},
prop
:
"filmRollNo"
,
{
label
:
'调出门店'
,
prop
:
'callOutMerchantName'
},
}
,
{
label
:
'调入仓库'
,
prop
:
'callInYqMerchantName'
},
],
{
label
:
'调入门店'
,
prop
:
'callInMerchantName'
},
}
,
{
label
:
'备注'
,
prop
:
'remark'
,
isRemark
:
true
}
infoList
:
[
],
{
label
:
"调出仓库"
,
prop
:
"callOutYqMerchantName"
}
,
rejectRules
:
{
{
label
:
"调出门店"
,
prop
:
"callOutMerchantName"
}
,
rejectNode
:
[
{
label
:
"调入仓库"
,
prop
:
"callInYqMerchantName"
}
,
{
required
:
true
,
message
:
"请选择驳回节点"
,
trigger
:
"change"
}
{
label
:
"调入门店"
,
prop
:
"callInMerchantName"
}
,
],
{
label
:
"备注"
,
prop
:
"remark"
,
isRemark
:
true
}
,
rejectCause
:
[
],
{
required
:
true
,
message
:
"请输入驳回原因"
,
trigger
:
"blur"
}
rejectRules
:
{
]
rejectNode
:
[
},
{
required
:
true
,
message
:
"请选择驳回节点"
,
trigger
:
"change"
}
,
formData
:
{},
],
goodsList
:
[],
rejectCause
:
[
tableTotal
:
0
,
{
required
:
true
,
message
:
"请输入驳回原因"
,
trigger
:
"blur"
}
,
detailInfo
:
{},
],
auditDetaiList
:
[],
}
,
}
formData
:
{
}
,
},
goodsList
:
[],
computed
:
{
tableTotal
:
0
,
dialogShow
:
{
detailInfo
:
{
}
,
get
()
{
auditDetaiList
:
[],
if
(
this
.
visible
)
{
}
;
this
.
getGoodsDetail
({
currentPage
:
1
,
pageSize
:
10
})
}
,
this
.
getInfoDetail
()
computed
:
{
}
dialogShow
:
{
return
this
.
visible
get
()
{
},
if
(
this
.
visible
)
{
set
(
val
)
{
this
.
getGoodsDetail
({
currentPage
:
1
,
pageSize
:
10
}
);
this
.
$emit
(
'update:visible'
,
val
)
this
.
getInfoDetail
();
}
}
}
return
this
.
visible
;
},
}
,
mounted
()
{
set
(
val
)
{
},
this
.
$emit
(
"update:visible"
,
val
);
methods
:
{
}
,
refreshTable
(
pageObj
)
{
}
,
this
.
getGoodsDetail
(
pageObj
)
}
,
},
mounted
()
{
getGoodsDetail
(
pageObj
)
{
}
,
getTransferGoodsInfo
({
allocateCode
:
this
.
rejectData
.
allocateCode
,
pageSize
:
pageObj
.
pageSize
,
currentPage
:
pageObj
.
currentPage
}).
then
(
res
=>
{
methods
:
{
this
.
goodsList
=
res
.
list
||
[]
refreshTable
(
pageObj
)
{
this
.
tableTotal
=
res
.
total
this
.
getGoodsDetail
(
pageObj
);
})
}
,
},
getGoodsDetail
(
pageObj
)
{
getInfoDetail
()
{
getTransferGoodsInfo
({
allocateCode
:
this
.
rejectData
.
allocateCode
,
pageSize
:
pageObj
.
pageSize
,
currentPage
:
pageObj
.
currentPage
}
).
then
((
res
)
=>
{
getTransferAuitInfo
({
allocateCode
:
this
.
rejectData
.
allocateCode
}).
then
(
res
=>
{
this
.
goodsList
=
res
.
list
||
[];
res
?.
auditDetaiList
?.
forEach
(
item
=>
{
this
.
tableTotal
=
res
.
total
;
item
.
reviewedDateFormat
=
item
.
reviewedDate
}
);
?
Util
.
dateFormate
(
item
.
reviewedDate
,
'YYYY-MM-DD HH:mm:ss'
)
}
,
:
""
getInfoDetail
()
{
})
getTransferAuitInfo
({
allocateCode
:
this
.
rejectData
.
allocateCode
}
).
then
((
res
)
=>
{
this
.
detailInfo
=
res
res
?.
auditDetaiList
?.
forEach
((
item
)
=>
{
})
item
.
reviewedDateFormat
=
item
.
reviewedDate
},
?
Util
.
dateFormate
(
item
.
reviewedDate
,
"YYYY-MM-DD HH:mm:ss"
)
handleRejectClose
(
isRefresh
=
false
)
{
:
""
;
this
.
$emit
(
"rejectClose"
,
isRefresh
)
}
);
},
this
.
detailInfo
=
res
;
handleRejectConfirm
()
{
}
);
this
.
$refs
[
"delivery-dialog-form"
].
validate
((
valid
)
=>
{
}
,
if
(
valid
)
{
handleRejectClose
(
isRefresh
=
false
)
{
deliveryReject
({
allocateCode
:
this
.
rejectData
.
allocateCode
,
rejectNode
:
this
.
formData
.
rejectNode
,
rejectCause
:
this
.
formData
.
rejectCause
})
this
.
$emit
(
"rejectClose"
,
isRefresh
);
.
then
((
res
)
=>
{
}
,
this
.
handleRejectClose
(
true
)
handleRejectConfirm
()
{
this
.
notice
.
okTips
(
'驳回成功'
)
this
.
$refs
[
"delivery-dialog-form"
].
validate
((
valid
)
=>
{
})
if
(
valid
)
{
.
catch
(()
=>
{
deliveryReject
({
allocateCode
:
this
.
rejectData
.
allocateCode
,
rejectNode
:
this
.
formData
.
rejectNode
,
rejectCause
:
this
.
formData
.
rejectCause
}
)
this
.
handleRejectClose
()
.
then
((
res
)
=>
{
})
this
.
handleRejectClose
(
true
);
}
this
.
notice
.
okTips
(
"驳回成功"
);
})
}
)
},
.
catch
(()
=>
{
}
this
.
handleRejectClose
();
}
}
);
}
}
);
}
,
}
,
}
;
<
/script
>
<
/script
>
<
style
lang
=
"scss"
scoped
>
<
style
lang
=
"scss"
scoped
>
.
address
-
info
{
.
address
-
info
{
display
:
flex
;
display
:
flex
;
box-sizing
:
border-box
;
box
-
sizing
:
border
-
box
;
flex-wrap
:
wrap
;
flex
-
wrap
:
wrap
;
width
:
100%
;
width
:
100
%
;
padding
:
0
20px
;
padding
:
0
20
px
;
margin-top
:
10px
;
margin
-
top
:
10
px
;
font-size
:
14px
;
font
-
size
:
14
px
;
color
:
#666666
;
color
:
#
666666
;
.info-item
{
.
info
-
item
{
width
:
33.33%
;
width
:
33.33
%
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align
-
items
:
center
;
margin-bottom
:
10px
;
margin
-
bottom
:
10
px
;
padding-right
:
15px
;
padding
-
right
:
15
px
;
box-sizing
:
border-box
;
box
-
sizing
:
border
-
box
;
.label-name
{
.
label
-
name
{
white-space
:
nowrap
;
white
-
space
:
nowrap
;
min-width
:
fit-content
;
min
-
width
:
fit
-
content
;
}
}
.label-value
{
.
label
-
value
{
flex
:
1
;
flex
:
1
;
color
:
#333333
;
color
:
#
333333
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text
-
overflow
:
ellipsis
;
white-space
:
nowrap
;
white
-
space
:
nowrap
;
display
:
block
;
display
:
block
;
}
}
&
.remark-item
{
&
.
remark
-
item
{
flex-grow
:
1
;
flex
-
grow
:
1
;
width
:
33.33%
;
width
:
33.33
%
;
}
}
}
}
}
}
.
reject
-
page
{
.
reject
-
page
{
margin-bottom
:
20px
;
margin
-
bottom
:
20
px
;
.title
{
.
title
{
margin
:
16px
0
;
margin
:
16
px
0
;
height
:
22px
;
height
:
22
px
;
font-family
:
PingFangSC-Medium
;
font
-
family
:
PingFangSC
-
Medium
;
font-weight
:
600
;
font
-
weight
:
600
;
font-size
:
16px
;
font
-
size
:
16
px
;
color
:
#333333
;
color
:
#
333333
;
padding-bottom
:
10px
;
padding
-
bottom
:
10
px
;
border-bottom
:
1px
solid
#e5e5e5
;
border
-
bottom
:
1
px
solid
#
e5e5e5
;
}
}
}
}
.
examine
-
record
{
.
examine
-
record
{
min-height
:
157px
;
min
-
height
:
157
px
;
margin-top
:
23px
;
margin
-
top
:
23
px
;
.log-box
{
.
log
-
box
{
margin-top
:
20px
;
margin
-
top
:
20
px
;
border-radius
:
4px
;
border
-
radius
:
4
px
;
background
:
#FAFAFA
;
background
:
#
fafafa
;
padding
:
16px
;
padding
:
16
px
;
}
}
.title
{
.
title
{
margin
:
16px
0
;
margin
:
16
px
0
;
height
:
22px
;
height
:
22
px
;
font-family
:
PingFangSC-Medium
;
font
-
family
:
PingFangSC
-
Medium
;
font-weight
:
600
;
font
-
weight
:
600
;
font-size
:
16px
;
font
-
size
:
16
px
;
color
:
#333333
;
color
:
#
333333
;
padding-bottom
:
10px
;
padding
-
bottom
:
10
px
;
border-bottom
:
1px
solid
#e5e5e5
;
border
-
bottom
:
1
px
solid
#
e5e5e5
;
}
}
.dot
{
.
dot
{
width
:
6px
;
width
:
6
px
;
height
:
6px
;
height
:
6
px
;
background
:
#185efe
;
background
:
#
185
efe
;
border-radius
:
6px
;
border
-
radius
:
6
px
;
display
:
inline-block
;
display
:
inline
-
block
;
}
}
.record-div
{
.
record
-
div
{
font-family
:
PingFangSC-Regular
;
font
-
family
:
PingFangSC
-
Regular
;
font-weight
:
400
;
font
-
weight
:
400
;
font-size
:
14px
;
font
-
size
:
14
px
;
color
:
#666666
;
color
:
#
666666
;
letter-spacing
:
0
;
letter
-
spacing
:
0
;
.record-div-d
{
.
record
-
div
-
d
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align
-
items
:
center
;
margin-bottom
:
10px
;
margin
-
bottom
:
10
px
;
&:last-child
{
&
:
last
-
child
{
margin-bottom
:
0
;
margin
-
bottom
:
0
;
}
}
}
}
.span-txt-one
{
.
span
-
txt
-
one
{
height
:
21px
;
height
:
21
px
;
font-weight
:
500
;
font
-
weight
:
500
;
color
:
#333333
;
color
:
#
333333
;
}
}
.reviewer
{
.
reviewer
{
width
:
140px
;
width
:
140
px
;
&.ellipsis
{
&
.
ellipsis
{
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text
-
overflow
:
ellipsis
;
white-space
:
nowrap
;
white
-
space
:
nowrap
;
}
}
}
}
.span-txt-two
{
.
span
-
txt
-
two
{
margin-left
:
40px
;
margin
-
left
:
40
px
;
}
}
.greenSp
{
.
greenSp
{
color
:
#4aca74
;
color
:
#
4
aca74
;
}
}
.redSp
{
.
redSp
{
color
:
#eb4e4e
;
color
:
#
eb4e4e
;
}
}
}
}
.emptyCom
{
.
emptyCom
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex
-
direction
:
column
;
flex-wrap
:
wrap
;
flex
-
wrap
:
wrap
;
justify-content
:
center
;
justify
-
content
:
center
;
align-items
:
center
;
align
-
items
:
center
;
.emptyImg
{
.
emptyImg
{
width
:
64px
;
width
:
64
px
;
}
}
.tips
{
.
tips
{
font-size
:
14px
;
font
-
size
:
14
px
;
color
:
#999999
;
color
:
#
999999
;
margin
:
20px
0
;
margin
:
20
px
0
;
}
}
}
}
}
}
<
/style
>
<
/style
>
src/views/stockManage/transferShipment/components/shipmentDialog.vue
View file @
6e4e04d
<
template
>
<
template
>
<div>
<div>
<baseDialog
:is-show
.
sync=
"dialogShow"
:dialog-config=
"dialogConfig.config"
@
handleClick=
"submit"
@
closeDialog=
"handleShipmentClose(false)"
>
<baseDialog
:dialog-config=
"dialogConfig.config"
<div
class=
"edit-order-dialog"
v-if=
"dialogShow"
>
:is-show
.
sync=
"dialogShow"
@
closeDialog=
"handleShipmentClose(false)"
@
handleClick=
"submit"
>
<div
v-if=
"dialogShow"
class=
"edit-order-dialog"
>
<div
class=
"address-info"
>
<div
class=
"address-info"
>
<div
class=
"info-item"
v-for=
"(item, index) in infoList"
:key=
"index"
:class=
"
{ 'remark-item': item.isRemark }">
<div
v-for=
"(item, index) in infoList"
:key=
"index"
class=
"info-item"
:class=
"
{ 'remark-item': item.isRemark }">
<span
class=
"label-name"
>
{{
item
.
label
}}
:
</span>
<span
class=
"label-name"
>
{{
item
.
label
}}
:
</span>
<
ellipsis-t
ooltip
class=
"label-value"
:content=
"paramsObj[item.prop]"
/>
<
EllipsisT
ooltip
class=
"label-value"
:content=
"paramsObj[item.prop]"
/>
</div>
</div>
</div>
</div>
<div
class=
"table-class"
>
<div
class=
"table-class"
>
<d2-table
ref=
"purchaseOrderDetailTable"
:table-params=
"tableParams"
:has-page=
"hasPage"
:table-data=
"tableList"
>
<d2-table
ref=
"purchaseOrderDetailTable"
<div
slot=
"nowPurNum"
slot-scope=
"scope"
style=
"margin: 0 8px;"
>
:has-page=
"hasPage"
:table-data=
"tableList"
:table-params=
"tableParams"
>
<div
slot=
"nowPurNum"
slot-scope=
"scope"
style=
"margin: 0 8px;"
>
<div>
<div>
<el-input
v-if=
"
<el-input
v-if=
"
(!tableList[scope.index].shipperUuid) || tableList[scope.index].shipperUuid == userInfo.detail.uuid"
:class=
"
{ 'border-red': !nowPurNumList[scope.index]
&&
isSubmit }" placeholder="请输入" v-model="nowPurNumList[scope.index]" @input="(e) => handleInput(e, scope)">
</el-input>
(!tableList[scope.index].shipperUuid) || tableList[scope.index].shipperUuid == userInfo.detail.uuid"
v-model=
"nowPurNumList[scope.index]"
placeholder=
"请输入"
:class=
"
{ 'border-red': !nowPurNumList[scope.index]
&&
isSubmit }"
@input="(e) => handleInput(e, scope)">
</el-input>
</div>
</div>
</div>
</div>
</d2-table>
</d2-table>
</div>
</div>
<div
class=
"form-content"
>
<div
class=
"form-content"
>
<el-form
label-width=
"100px"
:rules=
"dialogRules"
:model=
"dialogData"
ref=
"delivery-dialog-form"
>
<el-form
ref=
"delivery-dialog-form"
label-width=
"100px"
:model=
"dialogData"
:rules=
"dialogRules"
>
<el-form-item
label=
"承运单号:"
prop=
"deliveryNumber"
>
<el-form-item
label=
"承运单号:"
prop=
"deliveryNumber"
>
<el-input
maxlength=
"50"
placeholder=
"请输入承运物流单号"
v-model
.
trim=
"dialogData.deliveryNumber"
class=
"dis-in-block"
@
input=
"deliveryNumberInput"
/>
<el-input
v-model
.
trim=
"dialogData.deliveryNumber"
class=
"dis-in-block"
maxlength=
"50"
placeholder=
"请输入承运物流单号"
@
input=
"deliveryNumberInput"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"承运公司:"
prop=
"deliveryCompany"
>
<el-form-item
label=
"承运公司:"
prop=
"deliveryCompany"
>
<el-input
placeholder=
"请输入承运物流公司"
maxlength=
"20"
v-model
.
trim=
"dialogData.deliveryCompany"
class=
"dis-in-block"
/>
<el-input
v-model
.
trim=
"dialogData.deliveryCompany"
class=
"dis-in-block"
maxlength=
"20"
placeholder=
"请输入承运物流公司"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"发货时间:"
prop=
"deliveryDate"
>
<el-form-item
label=
"发货时间:"
prop=
"deliveryDate"
>
<el-date-picker
class=
"dis-in-block"
v-model=
"dialogData.deliveryDate"
type=
"datetime"
placeholder=
"请选择发货时间"
>
<el-date-picker
v-model=
"dialogData.deliveryDate"
class=
"dis-in-block"
placeholder=
"请选择发货时间"
type=
"datetime"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -39,355 +68,361 @@
...
@@ -39,355 +68,361 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
batchDelicery
}
from
"@/api/stockManage.js"
import
_
from
"lodash"
;
import
{
baseConfig
}
from
"@/main"
import
{
batchDelicery
}
from
"@/api/stockManage.js"
;
import
{
limitPrice
}
from
"@/common/format"
import
{
limitPrice
}
from
"@/common/format"
;
import
{
Util
}
from
"@/common/util"
import
{
Util
}
from
"@/common/util"
;
import
EllipsisTooltip
from
'../../components/EllipsisTooltip.vue'
import
{
baseConfig
}
from
"@/main"
;
import
_
from
"lodash"
import
EllipsisTooltip
from
"../../components/EllipsisTooltip.vue"
;
export
default
{
export
default
{
name
:
"shipmentDialog"
,
name
:
"shipmentDialog"
,
props
:
{
components
:
{
page
:
{
EllipsisTooltip
,
type
:
String
,
},
default
:
"purchase"
filters
:
{
},
formatCar
(
list
)
{
visible
:
{
// console.log(list, 'list')
type
:
Boolean
,
let
str
=
list
.
map
((
item
)
=>
{
default
:
false
return
`
${
item
.
brandName
}
-
${
item
.
childName
}
-
${
item
.
seriesName
}
-
${
item
.
carTypeName
}
`
;
},
}).
join
(
","
);
paramsObj
:
{
return
str
.
length
>
15
?
str
.
substring
(
0
,
15
)
+
"..."
:
str
;
type
:
Object
,
},
default
:
()
=>
{
}
},
},
props
:
{
tableList
:
{
page
:
{
type
:
Array
,
type
:
String
,
default
:
()
=>
{
}
default
:
"purchase"
,
}
},
},
visible
:
{
components
:
{
type
:
Boolean
,
EllipsisTooltip
default
:
false
,
},
},
computed
:
{
paramsObj
:
{
dialogShow
:
{
type
:
Object
,
get
()
{
default
:
()
=>
{
},
return
this
.
visible
},
},
tableList
:
{
set
(
val
)
{
type
:
Array
,
this
.
$emit
(
"update:visible"
,
val
)
default
:
()
=>
{
},
}
},
}
},
},
data
()
{
data
()
{
return
{
return
{
showOptionInput
:
false
,
showOptionInput
:
false
,
addOptionValue
:
""
,
addOptionValue
:
""
,
editOptionIndex
:
-
1
,
editOptionIndex
:
-
1
,
editOptionValue
:
""
,
editOptionValue
:
""
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
dialogConfig
:
{
dialogConfig
:
{
setting
:
{
setting
:
{
showClose
:
true
,
showClose
:
true
,
appendToBody
:
false
,
appendToBody
:
false
,
btnList
:
[
btnList
:
[
],
]
},
},
config
:
{
config
:
{
title
:
"发货"
,
title
:
"发货"
,
width
:
"1300px"
,
width
:
"1300px"
},
}
},
},
isSubmit
:
false
,
isSubmit
:
false
,
dialogData
:
{},
dialogData
:
{},
deliveryCardList
:
[],
deliveryCardList
:
[],
oldPurNumList
:
[],
oldPurNumList
:
[],
nowPurNumList
:
[],
nowPurNumList
:
[],
orderInfo
:
{},
orderInfo
:
{},
hasPage
:
false
,
hasPage
:
false
,
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
Number
.
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
"list"
,
listName
:
"list"
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
"产品名称"
,
label
:
"产品名称"
,
prop
:
"goodsName"
,
prop
:
'goodsName'
},
},
{
{
label
:
"产品ID"
,
label
:
"产品编码"
,
prop
:
"commodityCode"
,
prop
:
"productCode"
width
:
100
,
},
},
{
{
label
:
"规格"
,
label
:
"产品编码"
,
prop
:
"specificationData"
prop
:
"productCode"
,
},
},
{
{
label
:
"系列"
,
label
:
"规格"
,
prop
:
"sourceMaterialName"
prop
:
"specificationData"
,
},
},
{
{
label
:
"所属分类"
,
label
:
"系列"
,
prop
:
"goodsTypeName"
prop
:
"sourceMaterialName"
,
},
},
{
{
label
:
"调拨数量"
,
label
:
"所属分类"
,
prop
:
"allocateNumber"
,
prop
:
"goodsTypeName"
,
formatter
:
(
cellValue
)
=>
{
},
const
qty
=
cellValue
.
allocateNumber
??
'-'
{
const
unit
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
label
:
"调拨数量"
,
return
qty
===
'-'
?
'-'
:
`
${
qty
}${
unit
}
`
prop
:
"allocateNumber"
,
}
formatter
:
(
cellValue
)
=>
{
},
const
qty
=
cellValue
.
allocateNumber
??
"-"
;
{
const
unit
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
"米"
:
"件"
;
label
:
"发货数量"
,
return
qty
===
"-"
?
"-"
:
`
${
qty
}${
unit
}
`
;
prop
:
""
,
},
width
:
124
,
},
addHtml
:
"nowPurNum"
{
},
label
:
"发货数量"
,
{
prop
:
""
,
label
:
'调入门店库存'
,
width
:
124
,
prop
:
'inStockQty'
,
addHtml
:
"nowPurNum"
,
formatter
:
(
cellValue
)
=>
{
},
const
qty
=
cellValue
.
inStockQty
??
'-'
{
const
unit
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
label
:
"调入门店库存"
,
return
qty
===
'-'
?
'-'
:
`
${
qty
}${
unit
}
`
prop
:
"inStockQty"
,
}
formatter
:
(
cellValue
)
=>
{
},
const
qty
=
cellValue
.
inStockQty
??
"-"
;
{
const
unit
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
"米"
:
"件"
;
label
:
'调出门店库存'
,
return
qty
===
"-"
?
"-"
:
`
${
qty
}${
unit
}
`
;
prop
:
'outStockQty'
,
},
formatter
:
(
cellValue
)
=>
{
},
const
qty
=
cellValue
.
outStockQty
??
'-'
{
const
unit
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
label
:
"调出门店库存"
,
return
qty
===
'-'
?
'-'
:
`
${
qty
}${
unit
}
`
prop
:
"outStockQty"
,
}
formatter
:
(
cellValue
)
=>
{
},
const
qty
=
cellValue
.
outStockQty
??
"-"
;
{
const
unit
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
"米"
:
"件"
;
label
:
'膜卷号'
,
return
qty
===
"-"
?
"-"
:
`
${
qty
}${
unit
}
`
;
prop
:
'filmRollNo'
},
}
},
]
{
},
label
:
"膜卷号"
,
dialogRules
:
{
prop
:
"filmRollNo"
,
deliveryCompany
:
[
},
{
required
:
true
,
message
:
"请输入承运公司"
,
trigger
:
"blur"
}
],
],
},
deliveryNumber
:
[
dialogRules
:
{
{
required
:
true
,
message
:
"请输入承运单号"
,
trigger
:
"blur"
}
deliveryCompany
:
[
],
{
required
:
true
,
message
:
"请输入承运公司"
,
trigger
:
"blur"
},
deliveryDate
:
[
],
{
required
:
true
,
message
:
"请选择发货时间"
,
trigger
:
"blur"
}
deliveryNumber
:
[
]
{
required
:
true
,
message
:
"请输入承运单号"
,
trigger
:
"blur"
},
},
],
shippingWarehouseList
:
[],
deliveryDate
:
[
infoList
:
[
{
required
:
true
,
message
:
"请选择发货时间"
,
trigger
:
"blur"
},
{
label
:
'调出仓库'
,
prop
:
'callOutYqMerchantName'
},
],
{
label
:
'调出门店'
,
prop
:
'callOutMerchantName'
},
},
{
label
:
'调入仓库'
,
prop
:
'callInYqMerchantName'
},
shippingWarehouseList
:
[],
{
label
:
'调入门店'
,
prop
:
'callInMerchantName'
},
infoList
:
[
{
label
:
'备注'
,
prop
:
'remark'
,
isRemark
:
true
}
{
label
:
"调出仓库"
,
prop
:
"callOutYqMerchantName"
},
],
{
label
:
"调出门店"
,
prop
:
"callOutMerchantName"
},
}
{
label
:
"调入仓库"
,
prop
:
"callInYqMerchantName"
},
},
{
label
:
"调入门店"
,
prop
:
"callInMerchantName"
},
filters
:
{
{
label
:
"备注"
,
prop
:
"remark"
,
isRemark
:
true
},
formatCar
(
list
)
{
],
// console.log(list, 'list')
};
let
str
=
list
.
map
(
item
=>
{
},
return
`
${
item
.
brandName
}
-
${
item
.
childName
}
-
${
item
.
seriesName
}
-
${
item
.
carTypeName
}
`
computed
:
{
}).
join
(
','
)
dialogShow
:
{
return
str
.
length
>
15
?
str
.
substring
(
0
,
15
)
+
'...'
:
str
get
()
{
}
return
this
.
visible
;
},
},
mounted
()
{
set
(
val
)
{
// 初始化发货数量输入数据列表
this
.
$emit
(
"update:visible"
,
val
);
this
.
nowPurNumList
=
this
.
tableList
?.
map
(()
=>
''
)
},
},
},
methods
:
{
},
handleShipmentClose
(
isRefresh
=
false
)
{
mounted
()
{
this
.
$emit
(
"shipmentClose"
,
isRefresh
)
// 初始化发货数量输入数据列表
},
this
.
nowPurNumList
=
this
.
tableList
?.
map
(()
=>
""
);
deliveryNumberInput
(
event
,
index
)
{
},
this
.
$set
(
methods
:
{
this
.
dialogData
,
handleShipmentClose
(
isRefresh
=
false
)
{
"deliveryNumber"
,
this
.
$emit
(
"shipmentClose"
,
isRefresh
);
event
.
replace
(
/
[^
a-zA-Z0-9
]
/g
,
""
)
},
)
deliveryNumberInput
(
event
,
index
)
{
},
this
.
$set
(
this
.
dialogData
,
"deliveryNumber"
,
event
.
replace
(
/
[^
a-z0-9
]
/gi
,
""
),
);
},
handleInput
(
val
,
scope
)
{
handleInput
(
val
,
scope
)
{
const
_row
=
scope
.
scope
const
_row
=
scope
.
scope
;
const
_index
=
scope
.
index
const
_index
=
scope
.
index
;
const
_oldVal
=
this
.
oldPurNumList
[
_index
]
||
0
const
_oldVal
=
this
.
oldPurNumList
[
_index
]
||
0
;
const
_maxVal
=
_row
.
allocateNumber
-
_row
.
deliveryNumber
const
_maxVal
=
_row
.
allocateNumber
-
_row
.
deliveryNumber
;
this
.
nowPurNumList
[
_index
]
=
this
.
nowPurNumList
[
_index
]
limitPrice
(
val
,
_oldVal
,
9999
,
0
,
0
,
_maxVal
)
||
(
val
?
_maxVal
:
""
)
=
limitPrice
(
val
,
_oldVal
,
9999
,
0
,
0
,
_maxVal
)
||
(
val
?
_maxVal
:
""
);
this
.
oldPurNumList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
nowPurNumList
))
this
.
oldPurNumList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
nowPurNumList
));
},
},
submit
()
{
submit
()
{
this
.
isSubmit
=
true
this
.
isSubmit
=
true
;
this
.
$refs
[
"delivery-dialog-form"
].
validate
((
valid
)
=>
{
this
.
$refs
[
"delivery-dialog-form"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
// 验证本次发货数量
// 验证本次发货数量
if
(
this
.
nowPurNumList
.
some
((
item
)
=>
!
item
||
item
<=
0
))
{
if
(
this
.
nowPurNumList
.
some
(
item
=>
!
item
||
item
<=
0
))
{
this
.
notice
.
errorTips
(
"发货数量必须全部填写且不能为0"
)
this
.
notice
.
errorTips
(
"发货数量必须全部填写且不能为0"
);
return
true
return
true
;
}
}
var
params
=
{
let
params
=
{
...
this
.
dialogData
,
...
this
.
dialogData
,
deliveryDate
:
Util
.
dateFormate
(
deliveryDate
:
Util
.
dateFormate
(
this
.
dialogData
.
deliveryDate
,
this
.
dialogData
.
deliveryDate
,
"YYYY-MM-DD HH:mm:ss"
"YYYY-MM-DD HH:mm:ss"
,
),
),
orderCode
:
this
.
paramsObj
.
allocateCode
,
orderCode
:
this
.
paramsObj
.
allocateCode
,
deliveryDetailList
:
[]
deliveryDetailList
:
[],
}
};
for
(
let
idx
=
0
;
idx
<
this
.
tableList
.
length
;
idx
++
)
{
for
(
let
idx
=
0
;
idx
<
this
.
tableList
.
length
;
idx
++
)
{
const
item
=
this
.
tableList
[
idx
]
const
item
=
this
.
tableList
[
idx
];
if
(
this
.
nowPurNumList
[
idx
]
&&
this
.
nowPurNumList
[
idx
]
!=
0
)
{
if
(
this
.
nowPurNumList
[
idx
]
&&
this
.
nowPurNumList
[
idx
]
!=
0
)
{
params
.
deliveryDetailList
.
push
({
params
.
deliveryDetailList
.
push
({
id
:
item
.
detailId
,
id
:
item
.
detailId
,
purchaseNumber
:
this
.
nowPurNumList
[
idx
],
purchaseNumber
:
this
.
nowPurNumList
[
idx
],
})
});
}
}
}
}
batchDelicery
(
params
)
batchDelicery
(
params
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
handleShipmentClose
(
true
)
this
.
handleShipmentClose
(
true
);
this
.
notice
.
okTips
()
this
.
notice
.
okTips
();
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
handleShipmentClose
(
false
)
this
.
handleShipmentClose
(
false
);
})
});
}
}
})
});
}
},
}
},
}
}
;
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.car-type-list
{
.car-type-list
{
max-height
:
300px
;
max-height
:
300px
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
}
}
.return
{
.return
{
width
:
15px
;
width
:
15px
;
height
:
14px
;
height
:
14px
;
margin-right
:
2px
;
margin-right
:
2px
;
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
.addressTitle
{
.addressTitle
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.title
{
.title
{
font-family
:
PingFangSC-Medium
;
font-family
:
PingFangSC-Medium
;
font-weight
:
600
;
font-weight
:
600
;
font-size
:
16px
;
font-size
:
16px
;
color
:
#333333
;
color
:
#333333
;
margin-right
:
20px
;
margin-right
:
20px
;
}
}
.icon
{
.icon
{
width
:
28px
;
width
:
28px
;
height
:
28px
;
height
:
28px
;
margin-right
:
8px
;
margin-right
:
8px
;
}
}
}
}
.address-info
{
.address-info
{
display
:
flex
;
display
:
flex
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
width
:
100%
;
width
:
100%
;
padding
:
0
20px
;
padding
:
0
20px
;
margin-top
:
10px
;
margin-top
:
10px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#666666
;
color
:
#666666
;
.info-item
{
.info-item
{
width
:
33.33%
;
width
:
33.33%
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
padding-right
:
15px
;
padding-right
:
15px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
.label-name
{
.label-name
{
white-space
:
nowrap
;
white-space
:
nowrap
;
min-width
:
fit-content
;
min-width
:
fit-content
;
}
}
.label-value
{
.label-value
{
flex
:
1
;
flex
:
1
;
color
:
#333333
;
color
:
#333333
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
white-space
:
nowrap
;
display
:
block
;
display
:
block
;
}
}
&
.remark-item
{
&
.remark-item
{
flex-grow
:
1
;
flex-grow
:
1
;
width
:
33.33%
;
width
:
33.33%
;
}
}
}
}
}
}
.form-content
{
.form-content
{
margin-top
:
16px
;
margin-top
:
16px
;
.dis-in-block
{
.dis-in-block
{
width
:
432px
;
width
:
432px
;
}
}
}
}
.footer
{
.footer
{
display
:
flex
;
display
:
flex
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
}
}
.edit-order-dialog
.el-input--medium.border-red
.el-input__inner
{
.edit-order-dialog
.el-input--medium.border-red
.el-input__inner
{
border
:
1px
solid
#eb4e4e
;
border
:
1px
solid
#eb4e4e
;
}
}
.flex-option
{
.flex-option
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
width
:
100%
;
width
:
100%
;
}
}
.add-option
{
.add-option
{
padding
:
0
20px
;
padding
:
0
20px
;
display
:
flex
;
display
:
flex
;
flex-flow
:
column
;
flex-flow
:
column
;
align-items
:
flex-start
;
align-items
:
flex-start
;
}
}
.add-option-input
{
.add-option-input
{
width
:
285px
!important
;
width
:
285px
!important
;
display
:
inline-block
;
display
:
inline-block
;
}
}
.add-option-input
.el-input__inner
{
.add-option-input
.el-input__inner
{
border
:
none
;
border
:
none
;
padding
:
0
;
padding
:
0
;
}
}
.option_icon
{
.option_icon
{
font-size
:
14px
;
font-size
:
14px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.del_icon
{
.del_icon
{
margin-left
:
15px
;
margin-left
:
15px
;
color
:
#eb4e4e
;
color
:
#eb4e4e
;
}
}
.add_icon
{
.add_icon
{
color
:
#3fcf77
;
color
:
#3fcf77
;
}
}
</
style
>
</
style
>
src/views/stockManage/transferShipment/index.vue
View file @
6e4e04d
<!-- 调拨发货 -->
<!-- 调拨发货 -->
<
template
>
<
template
>
<d2-container
class=
"container"
>
<d2-container
class=
"container"
>
<template
#
header
>
<template
#
header
>
<div
class=
"header"
>
<div
class=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:form-data=
"showFormData"
:search-form=
"searchForm"
>
<d2-search
ref=
"showSearch"
</d2-search>
class=
"show-search"
<div
class=
"up-btns"
>
:form-data=
"showFormData"
<el-button
:id=
"tableParams.btnId"
handle
size=
"small"
type=
"primary"
>
:search-form=
"searchForm"
>
查询
</d2-search>
</el-button>
<div
class=
"up-btns"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
<el-button
:id=
"tableParams.btnId"
重置
size=
"small"
</el-button>
type=
"primary"
</div>
handle
>
</div>
查询
</
template
>
</el-button>
<div
class=
"d2-container-content"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
<d2-table-header>
重置
<span>
</el-button>
<!-- 导出暂时不做 -->
</div>
<!-- <span style="margin-right: 10px">
</div>
</
template
>
<div
class=
"d2-container-content"
>
<d2-table-header>
<span>
<!-- 导出暂时不做 -->
<!-- <span style="margin-right: 10px">
<auth-button category="Button" :show-btn-ids="['9081101']" />
<auth-button category="Button" :show-btn-ids="['9081101']" />
</span> -->
</span> -->
<auth-button
category=
"Button"
:show-btn-ids=
"['9081102']"
/>
<auth-button
category=
"Button"
:show-btn-ids=
"['9081102']"
/>
</span>
</span>
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"transferShipmentTable"
:before-search-fn=
"beforeSearchFn"
:get-list-api=
"getListApi"
<d2-table
ref=
"transferShipmentTable"
:search-form=
"tableSearchForm"
:selectable-fn=
"selectableFn"
:table-data=
"tableData"
:before-search-fn=
"beforeSearchFn"
:table-params=
"tableParams"
@
selectionTable=
"handleSelectionChange"
>
:get-list-api=
"getListApi"
<
template
#
receiver=
"scope"
>
:search-form=
"tableSearchForm"
<div
v-if=
"scope.scope.receiver"
>
:selectable-fn=
"selectableFn"
<el-popover
v-if=
"scope.scope.receiver.length > 12"
effect=
"dark"
placement=
"top"
trigger=
"hover"
:table-data=
"tableData"
width=
"300"
>
:table-params=
"tableParams"
<div
class=
"merchant-name-box"
>
@
selectionTable=
"handleSelectionChange"
>
{{
spanFilter
(
scope
.
scope
.
receiver
)
}}
<
template
#
receiver=
"scope"
>
</div>
<div
v-if=
"scope.scope.receiver"
>
<template
#
reference
>
<el-popover
v-if=
"scope.scope.receiver.length > 12"
<div>
effect=
"dark"
{{
spanFilter
(
scope
.
scope
.
receiver
,
12
)
}}
placement=
"top"
</div>
trigger=
"hover"
</
template
>
width=
"300"
>
</el-popover>
<div
class=
"merchant-name-box"
>
<div
v-else
>
{{
spanFilter
(
scope
.
scope
.
receiver
)
}}
{{ scope.scope.receiver }}
</div>
</div>
<template
#
reference
>
</div>
<div>
<span
v-else
>
-
</span>
{{
spanFilter
(
scope
.
scope
.
receiver
,
12
)
}}
</template>
</div>
<
template
#
address=
"scope"
>
</
template
>
<div
v-if=
"scope.scope.address"
>
</el-popover>
<el-popover
v-if=
"scope.scope.address.length > 12"
effect=
"dark"
placement=
"top"
trigger=
"hover"
<div
v-else
>
width=
"300"
>
{{ scope.scope.receiver }}
<div
class=
"merchant-name-box"
>
</div>
{{
spanFilter
(
scope
.
scope
.
address
)
}}
</div>
</div>
<span
v-else
>
-
</span>
<template
#
reference
>
</template>
<div>
<
template
#
address=
"scope"
>
{{
spanFilter
(
scope
.
scope
.
address
,
12
)
}}
<div
v-if=
"scope.scope.address"
>
</div>
<el-popover
v-if=
"scope.scope.address.length > 12"
</
template
>
effect=
"dark"
</el-popover>
placement=
"top"
<div
v-else
>
trigger=
"hover"
{{ scope.scope.address }}
width=
"300"
>
</div>
<div
class=
"merchant-name-box"
>
</div>
{{
spanFilter
(
scope
.
scope
.
address
)
}}
<span
v-else
>
-
</span>
</div>
</template>
<template
#
reference
>
<
template
#
auth-button=
"scope"
>
<div>
<div>
{{
spanFilter
(
scope
.
scope
.
address
,
12
)
}}
<span
style=
"margin-right: 10px"
>
</div>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9081103']"
/>
</
template
>
</span>
</el-popover>
<span
v-if=
"scope.scope.deliveryStatus != 2 && scope.scope.billStatus != 7"
<div
v-else
>
style=
"margin-right: 10px"
>
{{ scope.scope.address }}
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9081104']"
/>
</div>
</span>
</div>
<auth-button
v-if=
"scope.scope.billStatus != 7 && scope.scope.deliveryStatus == 1"
<span
v-else
>
-
</span>
:data=
"scope.scope"
:show-btn-ids=
"['9081105']"
/>
</template>
</div>
<
template
#
auth-button=
"scope"
>
</
template
>
<div>
</d2-table>
<span
style=
"margin-right: 10px"
>
</div>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9081103']"
/>
<ShipmentDialog
v-if=
"shipmentVisible"
:params-obj=
"shipmentDialogData"
:table-list=
"shipmentTableList"
</span>
:visible
.
sync=
"shipmentVisible"
@
shipmentClose=
"shipmentDialogClose"
>
<span
v-if=
"scope.scope.deliveryStatus != 2 && scope.scope.billStatus != 7"
</ShipmentDialog>
style=
"margin-right: 10px"
>
<RejectDialog
v-if=
"rejectVisible"
:reject-data=
"rejectData"
:visible
.
sync=
"rejectVisible"
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9081104']"
/>
@
rejectClose=
"handleRejectClose"
>
</span>
</RejectDialog>
<auth-button
v-if=
"scope.scope.billStatus != 7 && scope.scope.deliveryStatus == 1"
<TransferDetailDialog
v-if=
"transferDetailVisible"
:params-obj=
"transferObj"
:visible
.
sync=
"transferDetailVisible"
>
:data=
"scope.scope"
</TransferDetailDialog>
:show-btn-ids=
"['9081105']"
/>
</d2-container>
</div>
</
template
>
</d2-table>
</div>
<ShipmentDialog
v-if=
"shipmentVisible"
:params-obj=
"shipmentDialogData"
:table-list=
"shipmentTableList"
:visible
.
sync=
"shipmentVisible"
@
shipmentClose=
"shipmentDialogClose"
>
</ShipmentDialog>
<RejectDialog
v-if=
"rejectVisible"
:reject-data=
"rejectData"
:visible
.
sync=
"rejectVisible"
@
rejectClose=
"handleRejectClose"
>
</RejectDialog>
<TransferDetailDialog
v-if=
"transferDetailVisible"
:params-obj=
"transferObj"
:visible
.
sync=
"transferDetailVisible"
>
</TransferDetailDialog>
</d2-container>
</template>
</template>
<
script
>
<
script
>
...
@@ -117,6 +142,7 @@ export default {
...
@@ -117,6 +142,7 @@ export default {
goodsName
:
""
,
goodsName
:
""
,
productCode
:
""
,
productCode
:
""
,
callOutName
:
""
,
callOutName
:
""
,
commodityCode
:
""
,
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
tableData
:
[],
tableData
:
[],
...
@@ -166,13 +192,20 @@ export default {
...
@@ -166,13 +192,20 @@ export default {
type
:
"input"
,
type
:
"input"
,
isClear
:
true
,
isClear
:
true
,
},
},
{
label
:
"产品ID"
,
name
:
"commodityCode"
,
type
:
"input"
,
isClear
:
true
,
maxlength
:
20
,
},
],
],
getListApi
:
getTransferShipmentList
,
getListApi
:
getTransferShipmentList
,
// 表格参数
// 表格参数
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
Number
.
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
Number
.
parseInt
(
Math
.
random
()
*
1000
),
listName
:
"list"
,
listName
:
"list"
,
mutiSelectUniqueKey
:
"
i
d"
,
mutiSelectUniqueKey
:
"
detailI
d"
,
mutiSelectName
:
"list"
,
mutiSelectName
:
"list"
,
tableOption
:
{
tableOption
:
{
width
:
"140"
,
width
:
"140"
,
...
@@ -193,6 +226,11 @@ export default {
...
@@ -193,6 +226,11 @@ export default {
prop
:
"goodsName"
,
prop
:
"goodsName"
,
},
},
{
{
label
:
"产品ID"
,
prop
:
"commodityCode"
,
width
:
100
,
},
{
label
:
"产品编码"
,
label
:
"产品编码"
,
prop
:
"productCode"
,
prop
:
"productCode"
,
},
},
...
@@ -422,8 +460,9 @@ export default {
...
@@ -422,8 +460,9 @@ export default {
},
},
shipmentDialogClose
(
obj
)
{
shipmentDialogClose
(
obj
)
{
this
.
shipmentVisible
=
false
;
this
.
shipmentVisible
=
false
;
if
(
obj
)
if
(
obj
)
{
this
.
$refs
.
transferShipmentTable
.
refreshTable
(
true
);
this
.
$refs
.
transferShipmentTable
.
refreshTable
(
true
);
}
},
},
// 查看详情
// 查看详情
handleDetail
(
row
)
{
handleDetail
(
row
)
{
...
@@ -454,8 +493,9 @@ export default {
...
@@ -454,8 +493,9 @@ export default {
},
},
handleRejectClose
(
obj
)
{
handleRejectClose
(
obj
)
{
this
.
rejectVisible
=
false
;
this
.
rejectVisible
=
false
;
if
(
obj
)
if
(
obj
)
{
this
.
$refs
.
transferShipmentTable
.
refreshTable
(
true
);
this
.
$refs
.
transferShipmentTable
.
refreshTable
(
true
);
}
},
},
},
},
};
};
...
...
src/views/stockManage/warehousing/warehousingList.vue
View file @
6e4e04d
...
@@ -12,9 +12,9 @@
...
@@ -12,9 +12,9 @@
:search-form=
"searchForm"
>
:search-form=
"searchForm"
>
<template
#
filmRollNo
>
<template
#
filmRollNo
>
<el-input
v-model
.
trim=
"searchForm.filmRollNo"
<el-input
v-model
.
trim=
"searchForm.filmRollNo"
placeholder=
"请输入膜卷号"
:clearable=
"true"
:clearable=
"true"
:maxlength=
"50"
:maxlength=
"50"
placeholder=
"请输入膜卷号"
:style=
"
{ width: '100%' }"
:style=
"
{ width: '100%' }"
@input="filmRollNoInput" />
@input="filmRollNoInput" />
</
template
>
</
template
>
...
@@ -179,6 +179,12 @@ export default {
...
@@ -179,6 +179,12 @@ export default {
},
{
},
{
label
:
"膜卷号"
,
label
:
"膜卷号"
,
addHtml
:
"filmRollNo"
,
addHtml
:
"filmRollNo"
,
},
{
label
:
"产品ID"
,
name
:
"commodityCode"
,
type
:
"input"
,
isClear
:
true
,
maxlength
:
20
,
}],
}],
getListApi
:
getGoodsWarehousingList
,
getListApi
:
getGoodsWarehousingList
,
tableParams
:
{
tableParams
:
{
...
@@ -197,6 +203,10 @@ export default {
...
@@ -197,6 +203,10 @@ export default {
prop
:
"upgradeGoodsName"
,
prop
:
"upgradeGoodsName"
,
width
:
"160px"
,
width
:
"160px"
,
},
{
},
{
label
:
"产品ID"
,
prop
:
"commodityCode"
,
width
:
100
,
},
{
label
:
"规格"
,
label
:
"规格"
,
prop
:
"specificationData"
,
prop
:
"specificationData"
,
width
:
"160px"
,
width
:
"160px"
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment