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 d7bd784d
authored
May 20, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.7.9' of
http://192.168.3.233:8090/saas_plus/dj-car-life-sy…
…stem into SAAS+V5.7.9
2 parents
20453ec8
e181efd7
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1070 additions
and
1001 deletions
src/views/goods/components/selectGoodsDialog.vue
src/views/goods/purchaseOnShelves/components/detail.vue
src/views/goods/purchaseOnShelves/components/groundingForm.vue
src/views/goods/purchaseOnShelves/editGrounding.vue
src/views/goods/purchaseOnShelves/groundingDetail.vue
src/views/goods/purchaseOnShelves/index.vue
src/views/goods/shelfProduct/components/shelfProductConfirm/index.vue
src/views/purchase/components/AllocateDialog.vue
src/views/purchase/components/CheckDialog.vue
src/views/purchase/components/EditOrderDialog.vue
src/views/purchase/components/orderDetailDialog.vue
src/views/purchase/components/rejectDialog.vue
src/views/purchase/factoryPurchaseAndDelivery.vue
src/views/purchase/purchaseAndDelivery.vue
src/views/goods/components/selectGoodsDialog.vue
View file @
d7bd784
<
template
>
<
template
>
<d2-dialog
:append-to-body=
"appendToBody"
<d2-dialog
:append-to-body=
"appendToBody"
btn-ok-label=
"确定"
class=
"selectGoods"
:is-visible
.
sync=
"selectGoodsVisible"
btn-ok-label=
"确定"
:title=
"title"
width=
"70%"
@
closeDialog=
"handleSelectGoodsClose"
@
confirmDialog=
"handleSelectGoodsConfirm"
>
class=
"selectGoods"
<d2-search
ref=
"showSearch"
class=
"show-search"
:form-data=
"showFormData"
label-width=
"100px"
:is-visible
.
sync=
"selectGoodsVisible"
:search-form=
"searchForm"
>
:title=
"title"
<template
#
commodityCode
>
width=
"70%"
<el-input
v-model
.
trim=
"searchForm.commodityCode"
:clearable=
"true"
:maxlength=
"50"
placeholder=
"请输入产品ID"
@
closeDialog=
"handleSelectGoodsClose"
:style=
"
{ width: '100%' }" @input="event => searchInput(event, 'commodityCode')" />
@
confirmDialog=
"handleSelectGoodsConfirm"
>
</
template
>
<d2-search
ref=
"showSearch"
<
template
#
type
>
class=
"show-search"
<!--
<el-input
v-model
.
trim=
"searchForm.type"
:form-data=
"showFormData"
label-width=
"100px"
:search-form=
"searchForm"
>
<template
#
commodityCode
>
<el-input
v-model
.
trim=
"searchForm.commodityCode"
:clearable=
"true"
:maxlength=
"50"
placeholder=
"请输入产品ID"
:style=
"
{ width: '100%' }"
@input="event => searchInput(event, 'commodityCode')" />
</
template
>
<
template
#
type
>
<!--
<el-input
v-model
.
trim=
"searchForm.type"
:clearable=
"true"
:clearable=
"true"
:maxlength=
"50"
:maxlength=
"50"
placeholder=
"请输入产品编码"
placeholder=
"请输入产品编码"
:style=
"
{ width: '100%' }"
:style=
"
{ width: '100%' }"
@input="event => searchInput(event, 'type')" /> -->
@input="event => searchInput(event, 'type')" /> -->
<el-input
v-model
.
trim=
"searchForm.type"
<el-input
v-model
.
trim=
"searchForm.type"
:style=
"
{ width: '100%' }" placeholder="请输入产品编码" :clearable="true"
:style=
"
{ width: '100%' }"
:maxlength="50" />
placeholder="请输入产品编码"
</
template
>
:clearable="true"
<
template
#
thirdPartyCode
>
:maxlength="50" />
<el-input
v-model
.
trim=
"searchForm.thirdPartyCode"
:clearable=
"true"
:maxlength=
"50"
placeholder=
"请输入供应商编码"
</
template
>
:style=
"
{ width: '100%' }" @input="event => searchInput(event, 'thirdPartyCode')" />
<
template
#
thirdPartyCode
>
</
template
>
<el-input
v-model
.
trim=
"searchForm.thirdPartyCode"
<
template
#
baseGoodsCommodityCode
>
:clearable=
"true"
<el-input
v-model
.
trim=
"searchForm.baseGoodsCommodityCode"
:clearable=
"true"
:maxlength=
"50"
:maxlength=
"50"
placeholder=
"请输入系列ID"
:style=
"
{ width: '100%' }"
placeholder=
"请输入供应商编码"
@input="event => searchInput(event, 'baseGoodsCommodityCode')" />
:style=
"
{ width: '100%' }"
</
template
>
@input="event => searchInput(event, 'thirdPartyCode')" />
<
template
#
goodsCascader
>
</
template
>
<el-cascader
v-model=
"tempGoodsType"
clearable
filterable
:options=
"baseData.productTypeList"
<
template
#
baseGoodsCommodityCode
>
placeholder=
"请选择"
:props=
"
{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }"
<el-input
v-model
.
trim=
"searchForm.baseGoodsCommodityCode"
style="width: 100%;" @change="selectAddAttr($event)">
:clearable=
"true"
</el-cascader>
:maxlength=
"50"
</
template
>
placeholder=
"请输入系列ID"
</d2-search>
:style=
"
{ width: '100%' }"
<div
class=
"up-btns"
>
@input="event => searchInput(event, 'baseGoodsCommodityCode')" />
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
</
template
>
查询
<
template
#
goodsCascader
>
</el-button>
<el-cascader
v-model=
"tempGoodsType"
</div>
clearable
<d2-table
ref=
"groundingIndexTable"
:before-search-fn=
"beforeSearchFn"
:get-list-api=
"getListApi"
:has-num=
"false"
filterable
:search-form=
"searchForm"
:table-params=
"tableParams"
@
setTableFinishFun=
"setTableFinishFun"
>
:options=
"baseData.productTypeList"
<
template
#
select_btn=
"scope"
>
placeholder=
"请选择"
<el-radio
v-model=
"selectedRowId"
:disabled=
"packageSelectIds && packageSelectIds.includes(scope.scope.id)"
:props=
"
{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }"
:label=
"scope.scope.id"
>
style="width: 100%;"
{{
''
}}
@change="selectAddAttr($event)">
</el-radio>
</el-cascader>
</
template
>
</
template
>
</d2-search>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
查询
</el-button>
</div>
<d2-table
ref=
"groundingIndexTable"
:before-search-fn=
"beforeSearchFn"
:get-list-api=
"getListApi"
:has-num=
"false"
:search-form=
"searchForm"
:table-params=
"tableParams"
@
setTableFinishFun=
"setTableFinishFun"
>
<
template
#
select_btn=
"scope"
>
<el-radio
v-model=
"selectedRowId"
:disabled=
"packageSelectIds && packageSelectIds.includes(scope.scope.id)"
:label=
"scope.scope.id"
>
{{
''
}}
</el-radio>
</
template
>
<
template
#
areaName=
"scope"
>
<
template
#
areaName=
"scope"
>
<el-tooltip
v-if=
"Array.isArray(scope.scope.upgradeGoodsAreaList) && scope.scope.upgradeGoodsAreaList.length"
placement=
"top"
>
<el-tooltip
v-if=
"Array.isArray(scope.scope.upgradeGoodsAreaList) && scope.scope.upgradeGoodsAreaList.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.upgradeGoodsAreaList"
:key=
"index"
>
{{
<div
v-for=
"(item, index) in scope.scope.upgradeGoodsAreaList"
:key=
"index"
>
{{
item
.
provinceName
==
'全国'
?
'全国'
:
`${item.provinceName
}
-${item.cityName
}
`
}}
<
/div
>
item
.
provinceName
==
'全国'
?
'全国'
:
`${item.provinceName
}
-${item.cityName
}
`
}}
<
/div
>
<
/div
>
<
/div
>
<
div
>
{{
scope
.
scope
.
upgradeGoodsAreaList
|
formatArea
}}
<
/div
>
<
div
>
{{
scope
.
scope
.
upgradeGoodsAreaList
|
formatArea
}}
<
/div
>
<
/el-tooltip
>
<
/el-tooltip
>
<
div
v
-
else
>-<
/div
>
<
div
v
-
else
>-<
/div
>
<
/template
>
<
/template
>
<
template
#
carName
=
"scope"
>
<
template
#
carName
=
"scope"
>
<
el
-
tooltip
v
-
if
=
"scope.scope.carTypeConfigList && scope.scope.carTypeConfigList.length"
placement
=
"top"
>
<
el
-
tooltip
v
-
if
=
"scope.scope.carTypeConfigList && scope.scope.carTypeConfigList.length"
placement
=
"top"
>
<
template
#
content
>
<
template
#
content
>
<
div
class
=
"car-type-list"
>
<
div
class
=
"car-type-list"
>
<
div
v
-
for
=
"(item, index) in scope.scope.carTypeConfigList"
:
key
=
"index"
>
<
div
v
-
for
=
"(item, index) in scope.scope.carTypeConfigList"
:
key
=
"index"
>
{{
item
.
seriesName
}}
{{
item
.
seriesName
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
div
>
{{
scope
.
scope
.
carTypeConfigList
|
formatCar
}}
<
/div
>
<
div
>
{{
scope
.
scope
.
carTypeConfigList
|
formatCar
}}
<
/div
>
<
/el-tooltip
>
<
/el-tooltip
>
<
div
v
-
else
>
<
div
v
-
else
>
-
-
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
/d2-table
>
<
/d2-table
>
<
/d2-dialog
>
<
/d2-dialog
>
<
/template
>
<
/template
>
<
script
>
<
script
>
...
@@ -162,6 +128,10 @@ export default {
...
@@ -162,6 +128,10 @@ export default {
merchantIdList
:
{
merchantIdList
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
}
,
isShelves
:
{
type
:
Boolean
,
default
:
false
,
}
}
}
,
}
,
data
()
{
data
()
{
...
@@ -222,9 +192,11 @@ export default {
...
@@ -222,9 +192,11 @@ export default {
specificationData
:
""
,
specificationData
:
""
,
type
:
""
,
type
:
""
,
thirdPartyCode
:
""
,
thirdPartyCode
:
""
,
thirdPartyName
:
""
,
carTypeSearch
:
""
,
carTypeSearch
:
""
,
goodsName
:
""
,
goodsName
:
""
,
baseGoodsCommodityCode
:
""
,
baseGoodsCommodityCode
:
""
,
}
,
}
,
tempGoodsType
:
[],
tempGoodsType
:
[],
baseData
:
{
baseData
:
{
...
@@ -250,6 +222,13 @@ export default {
...
@@ -250,6 +222,13 @@ export default {
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
upgradeGoodsName
||
"-"
;
return
cellValue
.
upgradeGoodsName
||
"-"
;
}
,
}
,
}
,
{
label
:
"产品编码"
,
prop
:
"type"
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
type
||
"-"
;
}
,
}
,
{
}
,
{
label
:
"产品ID"
,
label
:
"产品ID"
,
prop
:
"commodityCode"
,
prop
:
"commodityCode"
,
...
@@ -264,19 +243,6 @@ export default {
...
@@ -264,19 +243,6 @@ export default {
return
this
.
filterSpecsStr
(
cellValue
);
return
this
.
filterSpecsStr
(
cellValue
);
}
,
}
,
}
,
{
}
,
{
label
:
"产品编码"
,
prop
:
"type"
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
type
||
"-"
;
}
,
}
,
{
label
:
"供应商编码"
,
prop
:
"thirdPartyCode"
,
width
:
100
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
?.
thirdPartyCode
||
"-"
;
}
,
}
,
{
label
:
"运营成本/元"
,
label
:
"运营成本/元"
,
prop
:
"operationCost"
,
prop
:
"operationCost"
,
width
:
150
width
:
150
...
@@ -322,12 +288,51 @@ export default {
...
@@ -322,12 +288,51 @@ export default {
}
,
}
,
mounted
()
{
mounted
()
{
this
.
selectedRowId
=
this
.
upgradeGoodsId
;
this
.
selectedRowId
=
this
.
upgradeGoodsId
;
this
.
updateTableData
()
// 获取全部类目 屏蔽服务商自建类目
// 获取全部类目 屏蔽服务商自建类目
getAllCategory
({
categoryTypeList
:
this
.
selfBuildGoodsType
,
pageSize
:
9999
,
currentPage
:
1
}
).
then
((
res
)
=>
{
getAllCategory
({
categoryTypeList
:
this
.
selfBuildGoodsType
,
pageSize
:
9999
,
currentPage
:
1
}
).
then
((
res
)
=>
{
this
.
baseData
.
productTypeList
=
res
?.
list
||
[];
this
.
baseData
.
productTypeList
=
res
?.
list
||
[];
}
);
}
);
}
,
}
,
methods
:
{
methods
:
{
updateTableData
(
data
)
{
if
(
this
.
isShelves
)
{
this
.
showFormData
.
push
({
label
:
"供应商名称"
,
name
:
"thirdPartyName"
,
type
:
"input"
,
maxlength
:
50
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
,
}
);
const
typeIndex
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
prop
===
'type'
);
if
(
typeIndex
>
-
1
)
{
this
.
tableParams
.
tableColumns
.
splice
(
typeIndex
+
1
,
0
,
{
label
:
"供应商名称"
,
prop
:
"thirdPartyName"
,
width
:
100
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
?.
thirdPartyName
||
"-"
;
}
,
}
);
}
const
specIndex
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
prop
===
'specificationData'
);
if
(
specIndex
>
-
1
)
{
this
.
tableParams
.
tableColumns
.
splice
(
specIndex
+
1
,
0
,
{
label
:
"供应商编码"
,
prop
:
"thirdPartyCode"
,
width
:
100
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
?.
thirdPartyCode
||
"-"
;
}
,
}
);
}
}
}
,
searchInput
(
e
,
key
)
{
searchInput
(
e
,
key
)
{
if
(
!
/^
[
a-z0-9
]
*$/i
.
test
(
e
))
{
if
(
!
/^
[
a-z0-9
]
*$/i
.
test
(
e
))
{
this
.
searchForm
[
key
]
=
e
.
replace
(
/
[^
a-z0-9
]
/gi
,
""
);
this
.
searchForm
[
key
]
=
e
.
replace
(
/
[^
a-z0-9
]
/gi
,
""
);
...
@@ -384,7 +389,9 @@ export default {
...
@@ -384,7 +389,9 @@ export default {
thirdPartyCode
:
""
,
thirdPartyCode
:
""
,
carTypeSearch
:
""
,
carTypeSearch
:
""
,
goodsName
:
""
,
goodsName
:
""
,
thirdPartyName
:
''
,
baseGoodsCommodityCode
:
""
,
baseGoodsCommodityCode
:
""
,
}
;
}
;
this
.
tempGoodsType
=
[];
this
.
tempGoodsType
=
[];
// 重新查询
// 重新查询
...
...
src/views/goods/purchaseOnShelves/components/detail.vue
View file @
d7bd784
...
@@ -30,8 +30,7 @@
...
@@ -30,8 +30,7 @@
v
-
if
=
"
(
equitySceneType
.
includes
(
formData
[
item
.
key
])
||
extendedPosiType
.
includes
(
formData
[
item
.
key
]))
&&
!
baseConfig
.
supplierCode
.
includes
(
`${formData.supplierCode
}
`
)
">
v
-
if
=
"
(
equitySceneType
.
includes
(
formData
[
item
.
key
])
||
extendedPosiType
.
includes
(
formData
[
item
.
key
]))
&&
!
baseConfig
.
supplierCode
.
includes
(
`${formData.supplierCode
}
`
)
">
<div class="
label
">嘀加成本元/件:</div>
<div class="
label
">嘀加成本元/件:</div>
<div class="
value
">
<div class="
value
">
<ellipsis-popover
<ellipsis-popover :content="
priceFilter
(
formData
.
upgradeGoods
[
'djCost'
])
||
''
"></ellipsis-popover>
:content="
priceFilter
(
formData
.
upgradeGoods
[
'djCost'
])
||
''
"></ellipsis-popover>
</div>
</div>
</div>
</div>
<!-- 商品分类 1太阳膜 -->
<!-- 商品分类 1太阳膜 -->
...
@@ -58,8 +57,7 @@
...
@@ -58,8 +57,7 @@
<
div
class
=
"item"
v
-
if
=
"membraneTypeList.includes(formData[item.key])"
>
<
div
class
=
"item"
v
-
if
=
"membraneTypeList.includes(formData[item.key])"
>
<
div
class
=
"label"
>
质保年限
/
年:
<
/div
>
<
div
class
=
"label"
>
质保年限
/
年:
<
/div
>
<
div
class
=
"value"
>
<
div
class
=
"value"
>
<
ellipsis
-
popover
<
ellipsis
-
popover
:
content
=
"
`${formData.upgradeGoods['warrantyPeriod']
}
年`
||
''
"></ellipsis-popover>
:
content
=
"
`${formData.upgradeGoods['warrantyPeriod']
}
年`
||
''
"></ellipsis-popover>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -104,10 +102,9 @@
...
@@ -104,10 +102,9 @@
<
div
v
-
else
>
<
div
v
-
else
>
<
el
-
form
-
item
:
prop
=
"item.name"
<
el
-
form
-
item
:
prop
=
"item.name"
:
label
=
"item.label ? (item.unit ? (membraneTypeList.includes(formData['goodsType']) ? item.label + `(元)/车` : (item.label + '(元)/件')) : item.label) + ':' : ''"
:
label
=
"item.label ? (item.unit ? (membraneTypeList.includes(formData['goodsType']) ? item.label + `(元)/车` : (item.label + '(元)/件')) : item.label) + ':' : ''"
:
id
=
"item.name"
:
label
-
width
=
"item.label ? '180px' : '0px'"
class
=
"dis-in-block"
:
id
=
"item.name"
:
label
-
width
=
"item.label ? '180px' : '0px'"
class
=
"dis-in-block"
style
=
"margin-bottom: 0"
>
style
=
"margin-bottom: 0"
>
<
div
>
<
div
>
<
span
>
{{
item
.
unit
?
priceFilter
(
formData
[
item
.
name
])
:
formData
[
item
.
name
]
}}
<
/span
>
<
span
>
{{
item
.
unit
?
priceFilter
(
formData
[
item
.
name
])
:
formData
[
item
.
name
]
||
'-'
}}
<
/span
>
<
span
v
-
if
=
"item.name == 'minSellPrice'"
>
{{
formData
[
'validMinSellPrice'
]
==
'Y'
?
'(校验最低价)'
:
<
span
v
-
if
=
"item.name == 'minSellPrice'"
>
{{
formData
[
'validMinSellPrice'
]
==
'Y'
?
'(校验最低价)'
:
'(不校验最低价)'
}}
<
/span
>
'(不校验最低价)'
}}
<
/span
>
<
/div
>
<
/div
>
...
...
src/views/goods/purchaseOnShelves/components/groundingForm.vue
View file @
d7bd784
...
@@ -11,17 +11,16 @@
...
@@ -11,17 +11,16 @@
<div
v-for=
"(item, index) in i.formBlock"
:key=
"index"
>
<div
v-for=
"(item, index) in i.formBlock"
:key=
"index"
>
<!-- 单选 -->
<!-- 单选 -->
<!-- 太阳膜类商品 上架部位 -->
<!-- 太阳膜类商品 上架部位 -->
<div
v-if=
"
<div
v-if=
"item.type === 'radio' &&
item.type === 'radio' &&
formData['goodsType'] == 1 &&
formData['goodsType'] == 1 &&
!item.index
!item.index
"
>
"
>
<el-form-item
:prop=
"item.name"
:label=
"item.label ? item.label + ':' : ''"
:id=
"item.name"
<el-form-item
:prop=
"item.name"
:label=
"item.label ? item.label + ':' : ''"
:id=
"item.name"
:label-width=
"item.label ? '180px' : '0px'"
class=
"dis-in-block"
:label-width=
"item.label ? '180px' : '0px'"
class=
"dis-in-block"
:style=
"
{ 'margin-bottom': !item.type ? '0px' : '22px' }">
:style=
"
{ 'margin-bottom': !item.type ? '0px' : '22px' }">
<el-radio-group
v-model=
"formData[item.name]"
>
<el-radio-group
v-model=
"formData[item.name]"
>
<el-radio
v-for=
"(subItem, subIndex) in item.radioGroupList"
:key=
"subIndex"
<el-radio
v-for=
"(subItem, subIndex) in item.radioGroupList"
:key=
"subIndex"
:label=
"subItem.confId"
>
{{
:label=
"subItem.confId"
>
{{
subItem
.
confName
}}
</el-radio>
subItem
.
confName
}}
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -32,29 +31,28 @@
...
@@ -32,29 +31,28 @@
<div
class=
"label"
>
<div
class=
"label"
>
{{
{{
subItem
.
unit
subItem
.
unit
?
membraneTypeList
.
includes
(
formData
[
item
.
key
])
?
membraneTypeList
.
includes
(
formData
[
item
.
key
])
?
subItem
.
label
+
?
subItem
.
label
+
`(元)/${subItem.value == "purchasePrice" ? "卷" : "卷"
`(元)/${subItem.value == "purchasePrice" ? "卷" : "卷"
}
`
}
`
:
subItem
.
label
+
"(元)/件"
:
subItem
.
label
+
"(元)/件"
:
subItem
.
label
:
subItem
.
label
}}
:
}}
:
<
/div
>
<
/div
>
<
div
class
=
"value"
>
<
div
class
=
"value"
>
<
ellipsis
-
popover
:
content
=
"subItem.unit
<
ellipsis
-
popover
:
content
=
"subItem.unit
? priceFilter(formData.upgradeGoods[subItem.value])
? priceFilter(formData.upgradeGoods[subItem.value])
: formData.upgradeGoods[subItem.value] || ''
: formData.upgradeGoods[subItem.value] || ''
"
><
/ellipsis-popover
>
"
><
/ellipsis-popover
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<!--
权益
/
延保非第三方展示
-->
<!--
权益
/
延保非第三方展示
-->
<
div
class
=
"item"
v
-
if
=
"
<
div
class
=
"item"
v
-
if
=
"
(
equitySceneType
.
includes
(
formData
[
item
.
key
])
||
(
equitySceneType
.
includes
(
formData
[
item
.
key
])
||
extendedPosiType
.
includes
(
formData
[
item
.
key
]))
&&
extendedPosiType
.
includes
(
formData
[
item
.
key
]))
&&
!
baseConfig
.
supplierCode
.
includes
(
!
baseConfig
.
supplierCode
.
includes
(
`${formData.supplierCode
}
`
`${formData.supplierCode
}
`
)
)
">
">
<div class="
label
">嘀加成本元/件:</div>
<div class="
label
">嘀加成本元/件:</div>
<div class="
value
">
<div class="
value
">
<ellipsis-popover :content="
priceFilter
(
formData
.
upgradeGoods
[
'djCost'
])
||
'-'
<ellipsis-popover :content="
priceFilter
(
formData
.
upgradeGoods
[
'djCost'
])
||
'-'
...
@@ -69,12 +67,11 @@
...
@@ -69,12 +67,11 @@
</div>
</div>
</div>
</div>
<!-- 商品分类 权益类(供应方为非第三方) -->
<!-- 商品分类 权益类(供应方为非第三方) -->
<div class="
item
" v-if="
<div class="
item
" v-if="
equitySceneType
.
includes
(
formData
[
item
.
key
])
&&
equitySceneType
.
includes
(
formData
[
item
.
key
])
&&
!
baseConfig
.
supplierCode
.
includes
(
!
baseConfig
.
supplierCode
.
includes
(
`${formData.supplierCode
}
`
`${formData.supplierCode
}
`
)
)
">
">
<div class="
label
">服务项目:</div>
<div class="
label
">服务项目:</div>
<div class="
value
">
<div class="
value
">
<ellipsis-popover :content="
formData
.
upgradeGoods
[
'serviceItemNames'
]
||
''
"></ellipsis-popover>
<ellipsis-popover :content="
formData
.
upgradeGoods
[
'serviceItemNames'
]
||
''
"></ellipsis-popover>
...
@@ -86,8 +83,8 @@
...
@@ -86,8 +83,8 @@
<div class="
value
"
>
<div class="
value
"
>
{{
{{
formData
.
upgradeGoods
[
"entityCardFlag"
]
==
"Y"
formData
.
upgradeGoods
[
"entityCardFlag"
]
==
"Y"
?
"是"
?
"是"
:
"否"
:
"否"
}}
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -102,11 +99,10 @@
...
@@ -102,11 +99,10 @@
</div>
</div>
</div>
</div>
<!-- 下拉框/输入框 -->
<!-- 下拉框/输入框 -->
<div v-if="
<div v-if="
item
.
type
===
'input'
||
item
.
type
===
'input'
||
item
.
type
===
'select'
||
item
.
type
===
'select'
||
item
.
type
===
'searchSelect'
item
.
type
===
'searchSelect'
">
">
<el-form-item :prop="
item
.
name
" :label="
item
.
label
<el-form-item :prop="
item
.
name
" :label="
item
.
label
?
(
item
.
unit
?
(
item
.
unit
?
membraneTypeList
.
includes
(
formData
[
'goodsType'
])
?
membraneTypeList
.
includes
(
formData
[
'goodsType'
])
...
@@ -128,8 +124,8 @@
...
@@ -128,8 +124,8 @@
</template>
</template>
<!-- 选择框 -->
<!-- 选择框 -->
<el-select v-else-if="
item
.
type
===
'select'
" v-model="
formData
[
item
.
name
]
" :clearable="
item
.
isClear
"
<el-select v-else-if="
item
.
type
===
'select'
" v-model="
formData
[
item
.
name
]
" :clearable="
item
.
isClear
"
:ref="
'selectRefs_'
+
item
.
name
" :placeholder="
'请选择'
+
item
.
label
"
:ref="
'selectRefs_'
+
item
.
name
" :placeholder="
'请选择'
+
item
.
label
"
@change="
selectAddAttr
(
$event
,
item
)
"
@change="
selectAddAttr
(
$event
,
item
)
"
:style="
{
width
:
item
.
width
||
formItemWidth
}
" filterable>
:style="
{
width
:
item
.
width
||
formItemWidth
}
" filterable>
<el-option v-for="
subItem
in
item
.
optionList
" :key="
subItem
[
item
.
optionId
]
"
<el-option v-for="
subItem
in
item
.
optionList
" :key="
subItem
[
item
.
optionId
]
"
:label="
subItem
[
item
.
optionLabel
]
" :value="
subItem
[
item
.
optionId
]
" />
:label="
subItem
[
item
.
optionLabel
]
" :value="
subItem
[
item
.
optionId
]
" />
</el-select>
</el-select>
...
@@ -145,7 +141,7 @@
...
@@ -145,7 +141,7 @@
<
/el-option
>
<
/el-option
>
<
/el-select> --
>
<
/el-select> --
>
<
el
-
button
v
-
else
-
if
=
"item.type === 'searchSelect'"
icon
=
"el-icon-plus"
<
el
-
button
v
-
else
-
if
=
"item.type === 'searchSelect'"
icon
=
"el-icon-plus"
@
click
=
"handleSelectGoods"
>
选择
商
品
<
/el-button
>
@
click
=
"handleSelectGoods"
>
选择
产
品
<
/el-button
>
<
/el-form-item
>
<
/el-form-item
>
<
/div
>
<
/div
>
<!--
财务规则校验
-->
<!--
财务规则校验
-->
...
@@ -195,8 +191,7 @@
...
@@ -195,8 +191,7 @@
:
:
<
/span
>
<
/span
>
<
el
-
checkbox
-
group
v
-
model
=
"formData[item.name]"
>
<
el
-
checkbox
-
group
v
-
model
=
"formData[item.name]"
>
<
el
-
checkbox
v
-
for
=
"(subItem, subIndex) in item.checkGroupList"
:
key
=
"subIndex"
<
el
-
checkbox
v
-
for
=
"(subItem, subIndex) in item.checkGroupList"
:
key
=
"subIndex"
:
label
=
"subItem.confId"
>
:
label
=
"subItem.confId"
>
{{
subItem
.
confName
}}
{{
subItem
.
confName
}}
<
/el-checkbox
>
<
/el-checkbox
>
<
/el-checkbox-group
>
<
/el-checkbox-group
>
...
@@ -328,7 +323,7 @@
...
@@ -328,7 +323,7 @@
:
initial
-
index
=
"initialIndex"
/>
:
initial
-
index
=
"initialIndex"
/>
<
select
-
goods
-
dialog
v
-
if
=
"selectGoodsVisible"
:
select
-
goods
-
visible
=
"selectGoodsVisible"
<
select
-
goods
-
dialog
v
-
if
=
"selectGoodsVisible"
:
select
-
goods
-
visible
=
"selectGoodsVisible"
@
handleSelectGoodsConfirm
=
"handleSelectGoodsConfirm"
@
handleSelectGoodsClose
=
"handleSelectGoodsClose"
@
handleSelectGoodsConfirm
=
"handleSelectGoodsConfirm"
@
handleSelectGoodsClose
=
"handleSelectGoodsClose"
:
upgrade
-
goods
-
id
=
"formData.upgradeGoodsId"
><
/select-goods-dialog
>
:
upgrade
-
goods
-
id
=
"formData.upgradeGoodsId"
:
is
-
shelves
=
"true"
><
/select-goods-dialog
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -387,6 +382,14 @@ export default {
...
@@ -387,6 +382,14 @@ export default {
}
}
}
}
],
],
goodsAlias
:
[
{
required
:
true
,
message
:
"请输入产品别名"
,
trigger
:
"blur"
}
,
{
validator
:
(
rule
,
value
,
callback
)
=>
{
value
.
length
>
30
?
callback
(
new
Error
(
"产品别名不能超过30个字符"
))
:
callback
()
}
}
],
// minSellPrice: [
// minSellPrice: [
//
{
required
:
true
,
message
:
"请输入最低售价"
,
trigger
:
"blur"
}
,
//
{
required
:
true
,
message
:
"请输入最低售价"
,
trigger
:
"blur"
}
,
//
{
//
{
...
...
src/views/goods/purchaseOnShelves/editGrounding.vue
View file @
d7bd784
...
@@ -29,10 +29,10 @@ export default {
...
@@ -29,10 +29,10 @@ export default {
addOrEdit
:
'add'
,
addOrEdit
:
'add'
,
proFormRef
:
'pro'
,
proFormRef
:
'pro'
,
editForm
:
[{
editForm
:
[{
title
:
'
商
品信息'
,
title
:
'
产
品信息'
,
formBlock
:
[{
formBlock
:
[{
name
:
'upgradeGoodsId'
,
name
:
'upgradeGoodsId'
,
label
:
'上架
商
品'
,
label
:
'上架
产
品'
,
isRequired
:
true
,
isRequired
:
true
,
type
:
'searchSelect'
,
type
:
'searchSelect'
,
optionList
:
[],
optionList
:
[],
...
@@ -86,9 +86,21 @@ export default {
...
@@ -86,9 +86,21 @@ export default {
},
{
},
{
label
:
'产品ID'
,
label
:
'产品ID'
,
value
:
'upgradeCommodityCode'
value
:
'upgradeCommodityCode'
},
{
label
:
'供应商名称'
,
value
:
'thirdPartyName'
}]
}]
},
},
{
{
name
:
'purchaseGoodsName'
,
label
:
'产品别名'
,
type
:
'input'
,
width
:
'432px'
,
value
:
"purchaseGoodsName"
,
handleInput
:
true
},
{
name
:
'purchasePrice'
,
name
:
'purchasePrice'
,
label
:
'采购价'
,
label
:
'采购价'
,
type
:
'input'
,
type
:
'input'
,
...
@@ -159,7 +171,9 @@ export default {
...
@@ -159,7 +171,9 @@ export default {
voucherList
:
[],
voucherList
:
[],
// validMinSellPriceFlag: true,
// validMinSellPriceFlag: true,
// validMinSellPrice: 'Y',
// validMinSellPrice: 'Y',
suitCarType
:
1
suitCarType
:
1
,
goodsAlias
:
''
,
purchaseGoodsName
:
''
},
},
secondGoodsList
:
[],
secondGoodsList
:
[],
goodsNameKeyword
:
''
,
goodsNameKeyword
:
''
,
...
@@ -343,6 +357,7 @@ export default {
...
@@ -343,6 +357,7 @@ export default {
confirmEvent
(
params
,
num
)
{
confirmEvent
(
params
,
num
)
{
const
obj
=
{
// 商品信息
const
obj
=
{
// 商品信息
position
:
''
,
position
:
''
,
purchaseGoodsName
:
''
,
goodsAlias
:
''
,
goodsAlias
:
''
,
warrantyType
:
''
,
warrantyType
:
''
,
productType
:
[],
productType
:
[],
...
...
src/views/goods/purchaseOnShelves/groundingDetail.vue
View file @
d7bd784
...
@@ -44,10 +44,10 @@ export default {
...
@@ -44,10 +44,10 @@ export default {
financeCheckFlagStr
:
[{
required
:
true
}]
financeCheckFlagStr
:
[{
required
:
true
}]
},
},
editForm
:
[{
editForm
:
[{
title
:
'
商
品信息'
,
title
:
'
产
品信息'
,
formBlock
:
[{
formBlock
:
[{
name
:
'goodsName'
,
name
:
'goodsName'
,
label
:
'上架
商
品'
,
label
:
'上架
产
品'
,
type
:
'incidBox'
,
type
:
'incidBox'
,
key
:
'goodsType'
,
key
:
'goodsType'
,
detailInfo
:
[{
detailInfo
:
[{
...
@@ -91,9 +91,19 @@ export default {
...
@@ -91,9 +91,19 @@ export default {
},
{
},
{
label
:
'产品ID'
,
label
:
'产品ID'
,
value
:
'upgradeCommodityCode'
value
:
'upgradeCommodityCode'
},
{
label
:
'供应商名称'
,
value
:
'thirdPartyName'
}]
}]
},
},
{
{
name
:
'purchaseGoodsName'
,
label
:
'产品别名'
,
width
:
'432px'
,
handleInput
:
true
},
{
name
:
'purchasePrice'
,
name
:
'purchasePrice'
,
label
:
'采购价'
,
label
:
'采购价'
,
type
:
'input'
,
type
:
'input'
,
...
...
src/views/goods/purchaseOnShelves/index.vue
View file @
d7bd784
...
@@ -117,11 +117,8 @@
...
@@ -117,11 +117,8 @@
:selected-scene=
"batchCopySelectScene"
@
handleBatchCopyConfirm=
"handleBatchCopyConfirm"
:selected-scene=
"batchCopySelectScene"
@
handleBatchCopyConfirm=
"handleBatchCopyConfirm"
@
handleBatchCopyClose=
"handleBatchCopyClose"
>
@
handleBatchCopyClose=
"handleBatchCopyClose"
>
</batch-copy-dialog>
</batch-copy-dialog>
<d2-file-import-dialog
:is-visible=
"fileVisible"
<d2-file-import-dialog
:is-visible=
"fileVisible"
title=
"上传文件"
@
closeDialog=
"handleBatchImport"
title=
"上传文件"
@
confirmDialog=
"handleConfirmImport"
@
downloadTemplate=
"exportTemplate"
/>
@
closeDialog=
"handleBatchImport"
@
confirmDialog=
"handleConfirmImport"
@
downloadTemplate=
"exportTemplate"
/>
</d2-container>
</d2-container>
</template>
</template>
<
script
>
<
script
>
...
@@ -158,7 +155,9 @@ export default {
...
@@ -158,7 +155,9 @@ export default {
status
:
''
,
status
:
''
,
yqMerchantId
:
''
,
yqMerchantId
:
''
,
goodsSource
:
0
,
goodsSource
:
0
,
financeCheckFlag
:
''
financeCheckFlag
:
''
,
thirdPartyName
:
''
,
thirdPartyCode
:
''
},
},
tempGoodsType
:
[],
tempGoodsType
:
[],
getListApi
:
getGroundingManageList
,
getListApi
:
getGroundingManageList
,
...
@@ -250,6 +249,12 @@ export default {
...
@@ -250,6 +249,12 @@ export default {
isClear
:
true
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
keyFn
:
this
.
keyDowmGetList
},
{
},
{
label
:
'供应商名称'
,
name
:
'thirdPartyName'
,
type
:
'input'
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
},
{
label
:
'供应商编码'
,
label
:
'供应商编码'
,
name
:
'thirdPartyCode'
,
name
:
'thirdPartyCode'
,
type
:
'input'
,
type
:
'input'
,
...
@@ -326,13 +331,19 @@ export default {
...
@@ -326,13 +331,19 @@ export default {
// return cellValue.upgradeGoods.type || '-'
// return cellValue.upgradeGoods.type || '-'
// }
// }
},
{
},
{
label
:
'供应商名称'
,
prop
:
'thirdPartyName'
,
width
:
100
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
?.
thirdPartyName
||
'-'
}
},
{
label
:
'供应商编码'
,
label
:
'供应商编码'
,
prop
:
'thirdPartyCode'
,
prop
:
'thirdPartyCode'
,
parentProp
:
'upgradeGoods'
,
width
:
100
,
width
:
100
,
//
formatter: (cellValue) => {
formatter
:
(
cellValue
)
=>
{
// return cellValue?.upgradeGoods
?.thirdPartyCode || '-'
return
cellValue
?.
thirdPartyCode
||
'-'
//
}
}
},
{
},
{
label
:
'上架商户'
,
label
:
'上架商户'
,
name
:
''
,
name
:
''
,
...
...
src/views/goods/shelfProduct/components/shelfProductConfirm/index.vue
View file @
d7bd784
...
@@ -307,7 +307,10 @@ export default {
...
@@ -307,7 +307,10 @@ export default {
if
(
index
===
-
1
)
{
if
(
index
===
-
1
)
{
return
;
return
;
}
}
this
.
$set
(
this
.
tabs
.
list
,
index
,
newRow
);
this
.
$set
(
this
.
tabs
.
list
,
index
,
{
...
newRow
,
productName
:
getProductPackagesName
(
newRow
.
productType
,
newRow
),
});
}
}
this
.
$refs
.
remoteSelectRef
.
forceUpdate
();
this
.
$refs
.
remoteSelectRef
.
forceUpdate
();
...
...
src/views/purchase/components/AllocateDialog.vue
View file @
d7bd784
<
template
>
<
template
>
<div>
<div>
<baseDialog
:is-show
.
sync=
"dialogShow"
:config=
"dialogConfig.setting"
:dialog-config=
"dialogConfig.config"
@
closeDialog=
"handleDetailClose(false)"
>
<baseDialog
:is-show
.
sync=
"dialogShow"
:config=
"dialogConfig.setting"
:dialog-config=
"dialogConfig.config"
@
closeDialog=
"handleDetailClose(false)"
>
<div
class=
"edit-order-dialog"
v-if=
"dialogShow"
>
<div
class=
"edit-order-dialog"
v-if=
"dialogShow"
>
<div
class=
"table-class"
>
<div
class=
"table-class"
>
<d2-table
ref=
"purchaseOrderDetailTable"
:table-params=
"tableParams"
:has-page=
"hasPage"
@
refreshTable=
"refreshTable"
:table-data=
"tableList"
:table-total=
"detailInfo.tableTotal"
>
<d2-table
ref=
"purchaseOrderDetailTable"
:table-params=
"tableParams"
:has-page=
"hasPage"
@
refreshTable=
"refreshTable"
:table-data=
"tableList"
:table-total=
"detailInfo.tableTotal"
>
<div
slot=
"nowPurNum"
slot-scope=
"scope"
style=
"margin: 0 8px;"
>
<div
slot=
"nowPurNum"
slot-scope=
"scope"
style=
"margin: 0 8px;"
>
<el-select
v-model=
"nowPurNumList[scope.index]"
placeholder=
"请选择"
clearable
>
<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
v-for=
"item in staffList"
:key=
"item.uuid"
:label=
"item.staffName"
:value=
"item.uuid"
>
...
@@ -33,12 +35,17 @@
...
@@ -33,12 +35,17 @@
<
/div
>
<
/div
>
<
div
class
=
"footer"
>
<
div
class
=
"footer"
>
<
el
-
button
@
click
=
"handleDetailClose(false)"
>
取消
<
/el-button
>
<
el
-
button
@
click
=
"handleDetailClose(false)"
>
取消
<
/el-button
>
<
el
-
button
@
click
=
"submit"
type
=
"primary"
v
-
preventReClick
:
loading
=
"$store.state.d2admin.loading.value"
>
确定
<
/el-button
>
<
el
-
button
@
click
=
"submit"
type
=
"primary"
v
-
preventReClick
:
loading
=
"$store.state.d2admin.loading.value"
>
确定
<
/el-button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/baseDialog
>
<
/baseDialog
>
<
card
-
dialog
v
-
if
=
"cardVisible"
:
card
-
visible
=
"cardVisible"
:
order
-
info
=
"orderInfo"
:
selected
-
list
=
"selectedCardList"
@
handleClose
=
"handleCardDialog"
@
handleConfirm
=
"handleCardConfirm"
><
/card-dialog
>
<
card
-
dialog
v
-
if
=
"cardVisible"
:
card
-
visible
=
"cardVisible"
:
order
-
info
=
"orderInfo"
:
selected
-
list
=
"selectedCardList"
<
glsk
-
form
-
dialog
v
-
if
=
"batchVisible"
:
selectVisible
=
"batchVisible"
:
dialogConfig
=
"batchDialogConfig"
label
-
width
=
"200px"
:
formRules
=
"batchRules"
:
editData
=
"batchForm"
:
editFormData
=
"batchEditFormData"
:
baseData
=
"
{
staffList
:
staffList
}
" @handleClose="
batchDialogVisible
" @handleConfirm="
handleBatchConfirm
"
><
/glsk-form-dialog
>
@
handleClose
=
"handleCardDialog"
@
handleConfirm
=
"handleCardConfirm"
><
/card-dialog
>
<
glsk
-
form
-
dialog
v
-
if
=
"batchVisible"
:
selectVisible
=
"batchVisible"
:
dialogConfig
=
"batchDialogConfig"
label
-
width
=
"200px"
:
formRules
=
"batchRules"
:
editData
=
"batchForm"
:
editFormData
=
"batchEditFormData"
:
baseData
=
"
{
staffList
:
staffList
}
" @handleClose="
batchDialogVisible
"
@handleConfirm="
handleBatchConfirm
"
><
/glsk-form-dialog
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -131,6 +138,11 @@ export default {
...
@@ -131,6 +138,11 @@ export default {
prop
:
'upgradeGoodsName'
prop
:
'upgradeGoodsName'
}
,
}
,
{
{
label
:
"供应商名称"
,
prop
:
'thirdPartyName'
,
width
:
100
,
}
,
{
label
:
'产品编码'
,
label
:
'产品编码'
,
prop
:
'type'
prop
:
'type'
...
@@ -140,11 +152,20 @@ export default {
...
@@ -140,11 +152,20 @@ export default {
prop
:
'specificationData'
prop
:
'specificationData'
}
,
}
,
{
{
label
:
'供应商编码'
,
prop
:
'thirdPartyCode'
,
width
:
100
}
,
{
label
:
'适用车型'
,
label
:
'适用车型'
,
addHtml
:
'carName'
,
addHtml
:
'carName'
,
width
:
200
width
:
200
}
,
}
,
{
{
label
:
"产品别名"
,
prop
:
"purchaseGoodsName"
,
}
,
{
label
:
'系列'
,
label
:
'系列'
,
prop
:
'goodsName'
prop
:
'goodsName'
}
,
}
,
...
@@ -347,7 +368,7 @@ export default {
...
@@ -347,7 +368,7 @@ export default {
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
;
}
}
...
...
src/views/purchase/components/CheckDialog.vue
View file @
d7bd784
<!-- 审核 -->
<!-- 审核 -->
<
template
>
<
template
>
<baseDialog
:dialog-config=
"dialogConfig"
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
class=
"accountDailog"
@
handleClick=
"handleAddConfirm"
>
:is-show
.
sync=
"visible"
<div
class=
"reject-dialog"
>
class=
"accountDailog"
<div
class=
"edit-page edit-tmpl"
>
@
handleClick=
"handleAddConfirm"
>
<div
class=
"title"
>
<div
class=
"reject-dialog"
>
产品信息
<div
class=
"edit-page edit-tmpl"
>
</div>
<div
class=
"title"
>
<div
class=
"content-box"
>
产品信息
<d2-table
ref=
"purchaseOrderDetailTable"
:table-params=
"tableParams"
:table-data=
"detailInfo.tableData"
</div>
:layout=
"layout"
:table-total=
"detailInfo.tableTotal"
@
refreshTable=
"refreshTable"
>
<div
class=
"content-box"
>
<template
#
upgradeGoodsName=
"scope"
>
<d2-table
ref=
"purchaseOrderDetailTable"
<div>
:table-params=
"tableParams"
<img
v-if=
"scope.scope.refundStatus == 'Y'"
class=
"return"
src=
"@/assets/retrun.png"
:table-data=
"detailInfo.tableData"
alt=
""
/>
:layout=
"layout"
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
:table-total=
"detailInfo.tableTotal"
</div>
@
refreshTable=
"refreshTable"
>
</
template
>
<template
#
upgradeGoodsName=
"scope"
>
<
template
#
filmRollNo=
"scope"
>
<div>
<div
v-if=
"scope.scope.filmRollList
<img
v-if=
"scope.scope.refundStatus == 'Y'"
&& scope.scope.filmRollList.length == 1
class=
"return"
"
>
src=
"@/assets/retrun.png"
{{
scope
.
scope
.
filmRollList
[
0
]
}}
alt=
""
/>
</div>
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
<div
v-else-if=
"scope.scope.filmRollList
</div>
&& scope.scope.filmRollList.length > 1
</
template
>
"
>
<
template
#
filmRollNo=
"scope"
>
<el-popover
placement=
"top"
width=
"200"
trigger=
"hover"
>
<div
v-if=
"
<div
class=
"film-roll-box"
>
scope.scope.filmRollList
<div
class=
"title"
>
&& scope.scope.filmRollList.length == 1
膜卷号
"
>
</div>
{{
scope
.
scope
.
filmRollList
[
0
]
}}
<div
v-for=
"(subItem, subIndex) in scope.scope.filmRollList"
:key=
"subIndex"
</div>
class=
"merchant-item"
>
<div
v-else-if=
"
{{
subItem
}}
scope.scope.filmRollList
</div>
&& scope.scope.filmRollList.length > 1
</div>
"
>
<template
#
reference
>
<el-popover
placement=
"top"
<div>
width=
"200"
<!--
<img
style=
"width: 14px;height: 13px;"
src=
"./images/merchant_icon.png"
>
-->
trigger=
"hover"
>
<span
style=
"color: #2a58ad"
>
<div
class=
"film-roll-box"
>
(…
{{
scope
.
scope
.
filmRollList
.
length
}}
)
<div
class=
"title"
>
</span>
膜卷号
</div>
</div>
</
template
>
<div
v-for=
"(subItem, subIndex) in scope.scope.filmRollList"
</el-popover>
:key=
"subIndex"
</div>
class=
"merchant-item"
>
<div
v-else
>
{{
subItem
}}
<span
style=
"
</div>
</div>
<template
#
reference
>
<div>
<!--
<img
style=
"width: 14px;height: 13px;"
src=
"./images/merchant_icon.png"
>
-->
<span
style=
"color: #2a58ad"
>
(…
{{
scope
.
scope
.
filmRollList
.
length
}}
)
</span>
</div>
</
template
>
</el-popover>
</div>
<div
v-else
>
<span
style=
"
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
white-space: nowrap;
"
>
"
>
{{ "-" }}
{{ "-" }}
</span>
</span>
</div>
</div>
</template>
</template>
<
template
#
carName=
"scope"
>
<
template
#
carName=
"scope"
>
<el-tooltip
v-if=
"
<el-tooltip
v-if=
"scope.scope.suitCarTypeList
scope.scope.suitCarTypeList
&& scope.scope.suitCarTypeList.length
&& scope.scope.suitCarTypeList.length
"
placement=
"top"
>
"
<template
#
content
>
placement=
"top"
>
<div
class=
"car-type-list"
>
<template
#
content
>
<div
v-for=
"(item, index) in scope.scope.suitCarTypeList"
:key=
"index"
>
<div
class=
"car-type-list"
>
{{
<div
v-for=
"(item, index) in scope.scope.suitCarTypeList"
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
:key=
"index"
>
}}
{{
<
/div
>
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
<
/div
>
}}
<
/template
>
<
/div
>
<
div
>
{{
scope
.
scope
.
suitCarTypeList
|
formatCar
}}
<
/div
>
<
/div
>
<
/el-tooltip
>
<
/template
>
<
div
v
-
else
>
<
div
>
{{
scope
.
scope
.
suitCarTypeList
|
formatCar
}}
<
/div
>
-
<
/el-tooltip
>
<
/div
>
<
div
v
-
else
>
<
/template
>
-
<
template
#
actionSlot
=
"scope"
>
<
/div
>
<
el
-
button
type
=
"text"
@
click
=
"handleInventoryDetail(scope.scope)"
>
<
/template
>
库存明细
<
template
#
actionSlot
=
"scope"
>
<
/el-button
>
<
el
-
button
type
=
"text"
<
/template
>
@
click
=
"handleInventoryDetail(scope.scope)"
>
<
/d2-table
>
库存明细
<
/div
>
<
/el-button
>
<
/div
>
<
/template
>
<
glsx
-
combi
-
form
ref
=
"editFormRef"
class
=
"edit-form-container"
label
-
width
=
"150px"
default
-
width
=
"350px"
<
/d2-table
>
:
form
-
ref
=
"editChildRef"
:
form
-
obj
=
"infoForm"
:
form
-
data
=
"editFormData"
:
form
-
rules
=
"formRules"
>
<
/div
>
<
/glsx-combi-form
>
<
/div
>
<
span
:
style
=
"
{
'margin-left'
:
'150px'
}"
>
{{
txtObj
[
fromPage
]
}}
<
/span
>
<
glsx
-
combi
-
form
ref
=
"editFormRef"
class
=
"edit-form-container"
label
-
width
=
"150px"
default
-
width
=
"350px"
:
form
-
ref
=
"editChildRef"
:
form
-
obj
=
"infoForm"
:
form
-
data
=
"editFormData"
:
form
-
rules
=
"formRules"
>
<
/glsx-combi-form
>
<
span
:
style
=
"
{
'margin-left'
:
'150px'
}"
>
{{
txtObj
[
fromPage
]
}}
<
/span
>
<
ExamineRecord
:
list
=
"originalAuditDetaiList"
style
=
"margin-top:20px;"
/>
<
ExamineRecord
:
list
=
"originalAuditDetaiList"
style
=
"margin-top:20px;"
/>
<
/div
>
<
/div
>
<
StockDetailDialog
v
-
if
=
"stockDetailDialogVisible"
<
StockDetailDialog
v
-
if
=
"stockDetailDialogVisible"
:
visible
.
sync
=
"stockDetailDialogVisible"
:
visible
.
sync
=
"stockDetailDialogVisible"
:
record
-
info
=
"stockDetailInfo"
/>
:
record
-
info
=
"stockDetailInfo"
/>
<
/baseDialog
>
<
/baseDialog
>
<
/template
>
<
/template
>
<
script
>
<
script
>
...
@@ -217,6 +192,11 @@ export default {
...
@@ -217,6 +192,11 @@ export default {
prop
:
"upgradeGoodsName"
,
prop
:
"upgradeGoodsName"
,
}
,
}
,
{
{
label
:
"供应商名称"
,
prop
:
'thirdPartyName'
,
width
:
100
,
}
,
{
label
:
"产品编码"
,
label
:
"产品编码"
,
prop
:
"type"
,
prop
:
"type"
,
}
,
}
,
...
@@ -224,6 +204,12 @@ export default {
...
@@ -224,6 +204,12 @@ export default {
label
:
"规格"
,
label
:
"规格"
,
prop
:
"specificationData"
,
prop
:
"specificationData"
,
}
,
}
,
{
label
:
'供应商编码'
,
prop
:
'thirdPartyCode'
,
width
:
100
}
,
{
{
label
:
"采购数量"
,
label
:
"采购数量"
,
prop
:
"goodsNumber"
,
prop
:
"goodsNumber"
,
...
@@ -245,10 +231,9 @@ export default {
...
@@ -245,10 +231,9 @@ export default {
const
condition
=
baseConfig
.
membraneTypeList
.
includes
(
const
condition
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
,
cellValue
.
goodsType
,
)
)
?
`${
?
`${cellValue.conversionValue
cellValue.conversionValue
? cellValue.goodsNumber * cellValue.conversionValue
? cellValue.goodsNumber * cellValue.conversionValue
: "-"
: "-"
}
米`
}
米`
:
`${cellValue.goodsNumber
}
件`
;
:
`${cellValue.goodsNumber
}
件`
;
return
this
.
paramsObj
.
purchaseType
==
1
return
this
.
paramsObj
.
purchaseType
==
1
...
@@ -257,6 +242,10 @@ export default {
...
@@ -257,6 +242,10 @@ export default {
}
,
}
,
}
,
}
,
{
{
label
:
"产品别名"
,
prop
:
"purchaseGoodsName"
,
}
,
{
label
:
"已发货数量"
,
label
:
"已发货数量"
,
prop
:
"purchaseNumber"
,
prop
:
"purchaseNumber"
,
width
:
110
,
width
:
110
,
...
@@ -348,7 +337,7 @@ export default {
...
@@ -348,7 +337,7 @@ export default {
hasAll
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
this
[
formName
][
index
].
optionLabel
]
!==
"全部"
]
!==
"全部"
)
{
)
{
const
temp
=
{
}
;
const
temp
=
{
}
;
...
@@ -371,7 +360,7 @@ export default {
...
@@ -371,7 +360,7 @@ export default {
hasAll
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
this
[
formName
][
index
].
optionLabel
]
!==
"全部"
]
!==
"全部"
)
{
)
{
const
temp
=
{
}
;
const
temp
=
{
}
;
...
@@ -470,6 +459,7 @@ export default {
...
@@ -470,6 +459,7 @@ export default {
color
:
#
999999
;
color
:
#
999999
;
}
}
}
}
.
edit
-
page
.
edit
-
tmpl
{
.
edit
-
page
.
edit
-
tmpl
{
background
:
#
ffffff
;
background
:
#
ffffff
;
...
@@ -483,10 +473,12 @@ export default {
...
@@ -483,10 +473,12 @@ export default {
color
:
#
333333
;
color
:
#
333333
;
}
}
}
}
.
content
-
box
{
.
content
-
box
{
padding
:
0
20
px
20
px
;
padding
:
0
20
px
20
px
;
background
:
#
ffffff
;
background
:
#
ffffff
;
}
}
.
car
-
type
-
list
{
.
car
-
type
-
list
{
max
-
height
:
300
px
;
max
-
height
:
300
px
;
overflow
-
y
:
scroll
;
overflow
-
y
:
scroll
;
...
@@ -498,6 +490,7 @@ export default {
...
@@ -498,6 +490,7 @@ export default {
margin
-
right
:
2
px
;
margin
-
right
:
2
px
;
vertical
-
align
:
middle
;
vertical
-
align
:
middle
;
}
}
.
edit
-
form
-
container
{
.
edit
-
form
-
container
{
::
v
-
deep
.
el
-
textarea
{
::
v
-
deep
.
el
-
textarea
{
width
:
432
px
!
important
;
width
:
432
px
!
important
;
...
...
src/views/purchase/components/EditOrderDialog.vue
View file @
d7bd784
<
template
>
<
template
>
<div>
<div>
<baseDialog
:is-show
.
sync=
"dialogShow"
:config=
"dialogConfig.setting"
:dialog-config=
"dialogConfig.config"
@
closeDialog=
"handleDetailClose(false)"
>
<baseDialog
:is-show
.
sync=
"dialogShow"
:config=
"dialogConfig.setting"
:dialog-config=
"dialogConfig.config"
@
closeDialog=
"handleDetailClose(false)"
>
<div
class=
"edit-order-dialog"
v-if=
"dialogShow"
>
<div
class=
"edit-order-dialog"
v-if=
"dialogShow"
>
<div
class=
"addressTitle"
>
<div
class=
"addressTitle"
>
<img
src=
"../images/addressIcon.webp"
alt=
""
class=
"icon"
/>
<img
src=
"../images/addressIcon.webp"
alt=
""
class=
"icon"
/>
...
@@ -23,18 +24,19 @@
...
@@ -23,18 +24,19 @@
{{
detailInfo
.
purchaseOrderRemark
}}
</span></span>
{{
detailInfo
.
purchaseOrderRemark
}}
</span></span>
</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"
:table-params=
"tableParams"
:has-page=
"hasPage"
:table-data=
"tableList"
>
<div
slot=
"nowPurNum"
slot-scope=
"scope"
style=
"margin: 0 8px;"
>
<div
slot=
"nowPurNum"
slot-scope=
"scope"
style=
"margin: 0 8px;"
>
<!-- 未退货才可以 -->
<!-- 未退货才可以 -->
<div
v-if=
"
<div
v-if=
"(tableList[scope.index].purchaseNumber == 0 ||
(tableList[scope.index].purchaseNumber == 0 ||
tableList[scope.index].purchaseNumber !=
tableList[scope.index].purchaseNumber !=
tableList[scope.index].goodsNumber) && scope.scope.refundStatus != 'Y'
tableList[scope.index].goodsNumber) && scope.scope.refundStatus != 'Y'
"
>
"
>
<!-- 判断是否当前账户发货 -->
<!-- 判断是否当前账户发货 -->
<el-input
v-if=
"
<el-input
v-if=
"(isEmptyEdit &&
(isEmptyEdit &&
!tableList[scope.index].shipperUuid) || tableList[scope.index].shipperUuid == userInfo.detail.uuid"
!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>
:class=
"
{ 'border-red': !nowPurNumList[scope.index]
&&
isSubmit }" placeholder="请输入"
v-model="nowPurNumList[scope.index]" @input="(e) => handleInput(e, scope)">
</el-input>
<!--
<div
v-if=
"detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid"
>
{{
detailInfo
.
tableData
[
scope
.
index
].
shipper
}}
</div>
-->
<!--
<div
v-if=
"detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid"
>
{{
detailInfo
.
tableData
[
scope
.
index
].
shipper
}}
</div>
-->
<div
v-else
>
<div
v-else
>
已分配:
{{
tableList
[
scope
.
index
].
shipper
}}
已分配:
{{
tableList
[
scope
.
index
].
shipper
}}
...
@@ -43,13 +45,14 @@
...
@@ -43,13 +45,14 @@
<div
v-else
>
<div
v-else
>
{{
{{
tableList
[
scope
.
index
].
shipperUuid
tableList
[
scope
.
index
].
shipperUuid
?
"已分配:"
+
tableList
[
scope
.
index
].
shipper
?
"已分配:"
+
tableList
[
scope
.
index
].
shipper
:
"--"
:
"--"
}}
}}
</div>
</div>
</div>
</div>
<div
slot=
"cardNum"
slot-scope=
"scope"
style=
"margin: 0 8px;"
>
<div
slot=
"cardNum"
slot-scope=
"scope"
style=
"margin: 0 8px;"
>
<div
v-if=
"tableList[scope.index].entityCardFlag != 'Y' || (tableList[scope.index].shipperUuid && tableList[scope.index].shipperUuid != userInfo.detail.uuid)"
>
<div
v-if=
"tableList[scope.index].entityCardFlag != 'Y' || (tableList[scope.index].shipperUuid && tableList[scope.index].shipperUuid != userInfo.detail.uuid)"
>
-
-
</div>
</div>
<div
v-else-if=
"tableList[scope.index].purchaseNumber != tableList[scope.index].goodsNumber"
>
<div
v-else-if=
"tableList[scope.index].purchaseNumber != tableList[scope.index].goodsNumber"
>
...
@@ -83,10 +86,12 @@
...
@@ -83,10 +86,12 @@
<
div
class
=
"form-content"
>
<
div
class
=
"form-content"
>
<
el
-
form
label
-
width
=
"100px"
:
rules
=
"dialogRules"
:
model
=
"dialogData"
ref
=
"delivery-dialog-form"
>
<
el
-
form
label
-
width
=
"100px"
:
rules
=
"dialogRules"
:
model
=
"dialogData"
ref
=
"delivery-dialog-form"
>
<
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
placeholder
=
"请输入承运物流公司"
maxlength
=
"20"
v
-
model
.
trim
=
"dialogData.deliveryCompany"
class
=
"dis-in-block"
/>
<
/el-form-item
>
<
/el-form-item
>
<
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
maxlength
=
"50"
placeholder
=
"请输入承运物流单号"
v
-
model
.
trim
=
"dialogData.deliveryNumber"
class
=
"dis-in-block"
@
input
=
"deliveryNumberInput"
/>
<
/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
class
=
"dis-in-block"
v
-
model
=
"dialogData.deliveryDate"
type
=
"datetime"
placeholder
=
"选择日期时间"
>
...
@@ -108,11 +113,15 @@
...
@@ -108,11 +113,15 @@
:
value
=
"item.id"
:
value
=
"item.id"
/>
/>
<
/el-select> --
>
<
/el-select> --
>
<
el
-
select
class
=
"dis-in-block"
v
-
model
=
"dialogData.shippingWarehouseId"
clearable
placeholder
=
"请选择发货仓库"
@
change
=
"selectChange($event)"
@
blur
=
"selectBlur"
@
focus
=
"selectFocus"
filterable
>
<
el
-
select
class
=
"dis-in-block"
v
-
model
=
"dialogData.shippingWarehouseId"
clearable
placeholder
=
"请选择发货仓库"
<
el
-
option
v
-
for
=
"(item, index) in shippingWarehouseList"
:
key
=
"item.id"
:
label
=
"item.name"
:
value
=
"item.id"
>
@
change
=
"selectChange($event)"
@
blur
=
"selectBlur"
@
focus
=
"selectFocus"
filterable
>
<
el
-
option
v
-
for
=
"(item, index) in shippingWarehouseList"
:
key
=
"item.id"
:
label
=
"item.name"
:
value
=
"item.id"
>
<!--
发货仓库
-->
<!--
发货仓库
-->
<
div
class
=
"flex-option"
>
<
div
class
=
"flex-option"
>
<
el
-
input
v
-
show
=
"editOptionIndex == index"
:
maxlength
=
"10"
class
=
"add-option-input"
:
autofocus
=
"true"
@
click
.
stop
.
native
=
"editOptionFocus"
v
-
model
.
trim
=
"editOptionValue"
size
=
"small"
placeholder
=
"请输入"
/>
<
el
-
input
v
-
show
=
"editOptionIndex == index"
:
maxlength
=
"10"
class
=
"add-option-input"
:
autofocus
=
"true"
@
click
.
stop
.
native
=
"editOptionFocus"
v
-
model
.
trim
=
"editOptionValue"
size
=
"small"
placeholder
=
"请输入"
/>
<
span
v
-
show
=
"editOptionIndex == -1 || editOptionIndex != index
<
span
v
-
show
=
"editOptionIndex == -1 || editOptionIndex != index
"
class
=
"add-option-input"
>
{{
item
.
name
}}
<
/span
>
"
class
=
"add-option-input"
>
{{
item
.
name
}}
<
/span
>
<
div
>
<
div
>
...
@@ -122,15 +131,18 @@
...
@@ -122,15 +131,18 @@
<
i
v
-
show
=
"shippingWarehouseList.length > 1 &&
<
i
v
-
show
=
"shippingWarehouseList.length > 1 &&
editOptionIndex == index
editOptionIndex == index
"
class
=
"el-icon-check option_icon add_icon"
@
click
.
stop
=
"editOptionConfirm(item.id)"
/>
"
class
=
"el-icon-check option_icon add_icon"
@
click
.
stop
=
"editOptionConfirm(item.id)"
/>
<
i
v
-
if
=
"shippingWarehouseList.length > 1"
class
=
"el-icon-close del_icon"
@
click
.
stop
=
"delOption(item.id)"
/>
<
i
v
-
if
=
"shippingWarehouseList.length > 1"
class
=
"el-icon-close del_icon"
@
click
.
stop
=
"delOption(item.id)"
/>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/el-option
>
<
/el-option
>
<
div
class
=
"add-option"
>
<
div
class
=
"add-option"
>
<
div
v
-
if
=
"showOptionInput"
class
=
"flex-option"
>
<
div
v
-
if
=
"showOptionInput"
class
=
"flex-option"
>
<
el
-
input
class
=
"add-option-input"
:
maxlength
=
"10"
v
-
model
.
trim
=
"addOptionValue"
size
=
"small"
placeholder
=
"请输入"
@
blur
=
"clearValidateHandle"
id
=
"add-option-input"
/>
<
el
-
input
class
=
"add-option-input"
:
maxlength
=
"10"
v
-
model
.
trim
=
"addOptionValue"
size
=
"small"
placeholder
=
"请输入"
@
blur
=
"clearValidateHandle"
id
=
"add-option-input"
/>
<
div
>
<
div
>
<
i
v
-
if
=
"addOptionValue"
class
=
"el-icon-check option_icon add_icon"
@
click
.
stop
=
"addOptionConfirm()"
/>
<
i
v
-
if
=
"addOptionValue"
class
=
"el-icon-check option_icon add_icon"
@
click
.
stop
=
"addOptionConfirm()"
/>
<
i
class
=
"el-icon-close option_icon del_icon"
@
click
.
stop
=
"delOption(undefined)"
/>
<
i
class
=
"el-icon-close option_icon del_icon"
@
click
.
stop
=
"delOption(undefined)"
/>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -152,11 +164,13 @@
...
@@ -152,11 +164,13 @@
<
div
class
=
"footer"
>
<
div
class
=
"footer"
>
<
el
-
button
@
click
=
"handleDetailClose(false)"
>
取消
<
/el-button
>
<
el
-
button
@
click
=
"handleDetailClose(false)"
>
取消
<
/el-button
>
<
el
-
button
@
click
=
"submit"
type
=
"primary"
v
-
preventReClick
:
loading
=
"$store.state.d2admin.loading.value"
>
确定
<
/el-button
>
<
el
-
button
@
click
=
"submit"
type
=
"primary"
v
-
preventReClick
:
loading
=
"$store.state.d2admin.loading.value"
>
确定
<
/el-button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/baseDialog
>
<
/baseDialog
>
<
card
-
dialog
v
-
if
=
"cardVisible"
:
card
-
visible
=
"cardVisible"
:
order
-
info
=
"orderInfo"
:
card
-
max
-
num
=
"cardMaxNum"
:
selected
-
list
=
"selectedCardList"
@
handleClose
=
"handleCardDialog"
@
handleConfirm
=
"handleCardConfirm"
><
/card-dialog
>
<
card
-
dialog
v
-
if
=
"cardVisible"
:
card
-
visible
=
"cardVisible"
:
order
-
info
=
"orderInfo"
:
card
-
max
-
num
=
"cardMaxNum"
:
selected
-
list
=
"selectedCardList"
@
handleClose
=
"handleCardDialog"
@
handleConfirm
=
"handleCardConfirm"
><
/card-dialog
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -254,6 +268,11 @@ export default {
...
@@ -254,6 +268,11 @@ export default {
prop
:
'upgradeGoodsName'
prop
:
'upgradeGoodsName'
}
,
}
,
{
{
label
:
"供应商名称"
,
prop
:
'thirdPartyName'
,
width
:
100
,
}
,
{
label
:
"产品编码"
,
label
:
"产品编码"
,
prop
:
"type"
prop
:
"type"
}
,
}
,
...
@@ -261,6 +280,11 @@ export default {
...
@@ -261,6 +280,11 @@ export default {
label
:
"规格"
,
label
:
"规格"
,
prop
:
"specificationData"
prop
:
"specificationData"
}
,
}
,
{
label
:
'供应商编码'
,
prop
:
'thirdPartyCode'
,
width
:
100
}
,
{
{
label
:
'适用车型'
,
label
:
'适用车型'
,
...
@@ -309,6 +333,10 @@ export default {
...
@@ -309,6 +333,10 @@ export default {
width
:
150
width
:
150
}
,
}
,
{
{
label
:
"产品别名"
,
prop
:
"purchaseGoodsName"
,
}
,
{
label
:
"已发货数量"
,
label
:
"已发货数量"
,
prop
:
"purchaseNumber"
,
prop
:
"purchaseNumber"
,
width
:
120
,
width
:
120
,
...
@@ -661,7 +689,7 @@ export default {
...
@@ -661,7 +689,7 @@ export default {
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
;
}
}
...
...
src/views/purchase/components/orderDetailDialog.vue
View file @
d7bd784
<
template
>
<
template
>
<baseDialog
:is-show
.
sync=
"dialogShow"
<baseDialog
:is-show
.
sync=
"dialogShow"
:config=
"dialogConfig.setting"
:dialog-config=
"dialogConfig.config"
:config=
"dialogConfig.setting"
@
closeDialog=
"handleDetailClose"
>
:dialog-config=
"dialogConfig.config"
<div
v-if=
"dialogShow"
class=
"detail-content"
>
@
closeDialog=
"handleDetailClose"
>
<div
class=
"addressTitle"
>
<div
v-if=
"dialogShow"
class=
"detail-content"
>
<img
src=
"../images/addressIcon.webp"
alt=
""
class=
"icon"
/>
<div
class=
"addressTitle"
>
<span
class=
"title"
>
{{
paramsObj
.
merchantName
}}
</span>
<img
src=
"../images/addressIcon.webp"
</div>
alt=
""
<div
class=
"address-info"
>
class=
"icon"
/>
<span
class=
"name"
>
<span
class=
"title"
>
{{
paramsObj
.
merchantName
}}
</span>
收货人:
<span
class=
"label"
>
</div>
{{
<div
class=
"address-info"
>
detailInfo
.
contactName
<span
class=
"name"
>
}}
收货人:
<span
class=
"label"
>
</span>
{{
</span>
detailInfo
.
contactName
<span
class=
"phone"
>
}}
收货人电话:
<span
class=
"label"
>
</span>
{{
</span>
detailInfo
.
contactPhone
<span
class=
"phone"
>
}}
收货人电话:
<span
class=
"label"
>
</span>
{{
</span>
detailInfo
.
contactPhone
<span
class=
"address"
>
}}
收货地址:
<span
class=
"label"
>
</span>
{{
</span>
detailInfo
.
contactAddress
<span
class=
"address"
>
}}
收货地址:
<span
class=
"label"
>
</span>
{{
</span>
detailInfo
.
contactAddress
</div>
}}
<div
v-if=
"detailInfo.purchaseOrderRemark"
class=
"address-info"
>
</span>
<span
class=
"address"
>
</span>
备注:
<span
class=
"label"
>
</div>
{{
<div
v-if=
"detailInfo.purchaseOrderRemark"
class=
"address-info"
>
detailInfo
.
purchaseOrderRemark
<span
class=
"address"
>
}}
备注:
<span
class=
"label"
>
</span>
{{
</span>
detailInfo
.
purchaseOrderRemark
</div>
}}
<div
v-if=
"detailInfo.terminateDeliveryInstruction"
class=
"address-info"
>
</span>
<span
class=
"address"
>
</span>
结束发货说明:
<span
class=
"label"
>
</div>
{{
<div
v-if=
"detailInfo.terminateDeliveryInstruction"
detailInfo
.
terminateDeliveryInstruction
class=
"address-info"
>
}}
<span
class=
"address"
>
</span>
结束发货说明:
<span
class=
"label"
>
</span>
{{
</div>
detailInfo
.
terminateDeliveryInstruction
<div
class=
"table-class"
>
}}
<d2-table
ref=
"purchaseOrderDetailTable"
:table-params=
"tableParams"
:table-data=
"detailInfo.tableData"
</span>
:table-total=
"detailInfo.tableTotal"
@
refreshTable=
"refreshTable"
>
</span>
<template
#
upgradeGoodsName=
"scope"
>
</div>
<div>
<div
class=
"table-class"
>
<img
v-if=
"scope.scope.refundStatus == 'Y'"
class=
"return"
src=
"@/assets/retrun.png"
alt=
""
/>
<d2-table
ref=
"purchaseOrderDetailTable"
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
:table-params=
"tableParams"
</div>
:table-data=
"detailInfo.tableData"
</
template
>
:table-total=
"detailInfo.tableTotal"
<
template
#
uploadFileUrls=
"scope"
>
@
refreshTable=
"refreshTable"
>
<div
v-if=
"scope.scope.uploadFileUrls"
>
<template
#
upgradeGoodsName=
"scope"
>
<el-image
fit=
"fill"
:preview-src-list=
"scope.scope.uploadFileUrls.split(',')
<div>
"
:src=
"scope.scope.uploadFileUrls.split(',')[0]"
style=
"width: 36px; height: 36px"
>
<img
v-if=
"scope.scope.refundStatus == 'Y'"
</el-image>
class=
"return"
</div>
src=
"@/assets/retrun.png"
<div
v-else
>
alt=
""
/>
-
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
</div>
</div>
</
template
>
</
template
>
<
template
#
filmRollNo=
"scope"
>
<
template
#
uploadFileUrls=
"scope"
>
<div
v-if=
"scope.scope.filmRollList
<div
v-if=
"scope.scope.uploadFileUrls"
>
&& scope.scope.filmRollList.length == 1
<el-image
fit=
"fill"
"
>
:preview-src-list=
"
{{
scope
.
scope
.
filmRollList
[
0
]
}}
scope.scope.uploadFileUrls.split(',')
</div>
"
<div
v-else-if=
"scope.scope.filmRollList
:src=
"scope.scope.uploadFileUrls.split(',')[0]"
&& scope.scope.filmRollList.length > 1
style=
"width: 36px; height: 36px"
>
"
>
</el-image>
<el-popover
placement=
"top"
width=
"200"
trigger=
"hover"
>
</div>
<div
class=
"film-roll-box"
>
<div
v-else
>
<div
class=
"title"
>
-
膜卷号
</div>
</div>
</
template
>
<div
v-for=
"(subItem, subIndex) in scope
<
template
#
filmRollNo=
"scope"
>
.scope.filmRollList"
:key=
"subIndex"
class=
"merchant-item"
>
<div
v-if=
"
{{
subItem
}}
scope.scope.filmRollList
</div>
&& scope.scope.filmRollList.length == 1
</div>
"
>
<template
#
reference
>
{{
scope
.
scope
.
filmRollList
[
0
]
}}
<div>
</div>
<!--
<img
style=
"width: 14px;height: 13px;"
src=
"./images/merchant_icon.png"
>
-->
<div
v-else-if=
"
<span
style=
"color: #2a58ad"
>
scope.scope.filmRollList
(…
{{
&& scope.scope.filmRollList.length > 1
scope
.
scope
.
filmRollList
.
length
"
>
}}
)
<el-popover
placement=
"top"
</span>
width=
"200"
</div>
trigger=
"hover"
>
</
template
>
<div
class=
"film-roll-box"
>
</el-popover>
<div
class=
"title"
>
</div>
膜卷号
<div
v-else
>
</div>
<span
style=
"
<div
v-for=
"(subItem, subIndex) in scope
.scope.filmRollList"
:key=
"subIndex"
class=
"merchant-item"
>
{{
subItem
}}
</div>
</div>
<template
#
reference
>
<div>
<!--
<img
style=
"width: 14px;height: 13px;"
src=
"./images/merchant_icon.png"
>
-->
<span
style=
"color: #2a58ad"
>
(…
{{
scope
.
scope
.
filmRollList
.
length
}}
)
</span>
</div>
</
template
>
</el-popover>
</div>
<div
v-else
>
<span
style=
"
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
white-space: nowrap;
"
>
"
>
{{ "-" }}
{{ "-" }}
</span>
</span>
</div>
</div>
</template>
</template>
<
template
#
carName=
"scope"
>
<
template
#
carName=
"scope"
>
<el-tooltip
v-if=
"
<el-tooltip
v-if=
"scope.scope.suitCarTypeList
scope.scope.suitCarTypeList
&& scope.scope.suitCarTypeList.length
&& scope.scope.suitCarTypeList.length
"
placement=
"top"
>
"
<template
#
content
>
placement=
"top"
>
<div
class=
"car-type-list"
>
<template
#
content
>
<div
v-for=
"(item, index) in scope.scope
<div
class=
"car-type-list"
>
.suitCarTypeList"
:key=
"index"
>
<div
v-for=
"(item, index) in scope.scope
{{
.suitCarTypeList"
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
:key=
"index"
>
}}
{{
<
/div
>
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
<
/div
>
}}
<
/template
>
<
/div
>
<
div
>
<
/div
>
{{
scope
.
scope
.
suitCarTypeList
|
formatCar
}}
<
/template
>
<
/div
>
<
div
>
<
/el-tooltip
>
{{
scope
.
scope
.
suitCarTypeList
|
formatCar
}}
<
div
v
-
else
>
<
/div
>
-
<
/el-tooltip
>
<
/div
>
<
div
v
-
else
>
<
/template
>
-
<
/d2-table
>
<
/div
>
<
/div
>
<
/template
>
<
ExamineRecord
v
-
if
=
"detailInfo.auditDetaiList && !paramsObj.factoryType"
:
use
-
expand
=
"false"
<
/d2-table
>
:
list
=
"detailInfo.auditDetaiList"
style
=
"margin-top:20px;"
/>
<
/div
>
<
ExamineRecord
v
-
if
=
"detailInfo.auditDetaiList && !paramsObj.factoryType"
:
use
-
expand
=
"false"
:
list
=
"detailInfo.auditDetaiList"
style
=
"margin-top:20px;"
/>
<
/div
>
<
/div
>
<
/baseDialog
>
<
/baseDialog
>
<
/template
>
<
/template
>
<
script
>
<
script
>
...
@@ -224,6 +198,11 @@ export default {
...
@@ -224,6 +198,11 @@ export default {
prop
:
"upgradeGoodsName"
,
prop
:
"upgradeGoodsName"
,
}
,
}
,
{
{
label
:
"供应商名称"
,
prop
:
'thirdPartyName'
,
width
:
100
,
}
,
{
label
:
"产品编码"
,
label
:
"产品编码"
,
prop
:
"type"
,
prop
:
"type"
,
}
,
}
,
...
@@ -232,11 +211,20 @@ export default {
...
@@ -232,11 +211,20 @@ export default {
prop
:
"specificationData"
,
prop
:
"specificationData"
,
}
,
}
,
{
{
label
:
'供应商编码'
,
prop
:
'thirdPartyCode'
,
width
:
100
,
}
,
{
label
:
"适用车型"
,
label
:
"适用车型"
,
addHtml
:
"carName"
,
addHtml
:
"carName"
,
width
:
200
,
width
:
200
,
}
,
}
,
{
{
label
:
"产品别名"
,
prop
:
"purchaseGoodsName"
,
}
,
{
label
:
"系列"
,
label
:
"系列"
,
prop
:
"goodsName"
,
prop
:
"goodsName"
,
}
,
}
,
...
@@ -268,11 +256,10 @@ export default {
...
@@ -268,11 +256,10 @@ export default {
= baseConfig.membraneTypeList.includes(
= baseConfig.membraneTypeList.includes(
cellValue.goodsType,
cellValue.goodsType,
)
)
? `
$
{
? `
$
{
cellValue
.
conversionValue
cellValue
.
conversionValue
?
cellValue
.
goodsNumber
?
cellValue
.
goodsNumber
*
cellValue
.
conversionValue
*
cellValue
.
conversionValue
:
"-"
:
"-"
}米
`
}米
`
: `
$
{
cellValue
.
goodsNumber
}件
`;
: `
$
{
cellValue
.
goodsNumber
}件
`;
return this.paramsObj.purchaseType == 1
return this.paramsObj.purchaseType == 1
...
@@ -391,9 +378,9 @@ export default {
...
@@ -391,9 +378,9 @@ export default {
_auditDetaiList = _auditDetaiList.map((item) => {
_auditDetaiList = _auditDetaiList.map((item) => {
item.reviewedDateFormat = item.reviewedDate
item.reviewedDateFormat = item.reviewedDate
? Util.dateFormate(
? Util.dateFormate(
item.reviewedDate,
item.reviewedDate,
"YYYY-MM-DD HH:mm:ss",
"YYYY-MM-DD HH:mm:ss",
)
)
: "";
: "";
return item;
return item;
}
);
}
);
...
@@ -448,7 +435,7 @@ export default {
...
@@ -448,7 +435,7 @@ export default {
font-size: 14px;
font-size: 14px;
color: #666666;
color: #666666;
>
span {
>span {
margin-right: 20px;
margin-right: 20px;
margin-bottom: 10px;
margin-bottom: 10px;
}
}
...
...
src/views/purchase/components/rejectDialog.vue
View file @
d7bd784
<!-- 驳回 -->
<!-- 驳回 -->
<
template
>
<
template
>
<baseDialog
:dialog-config=
"dialogConfig"
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
class=
"accountDailog"
@
handleClick=
"handleAddConfirm"
>
:is-show
.
sync=
"visible"
<div
class=
"reject-dialog"
>
class=
"accountDailog"
<div
class=
"edit-page edit-tmpl"
>
@
handleClick=
"handleAddConfirm"
>
<div
class=
"title"
>
<div
class=
"reject-dialog"
>
产品信息
<div
class=
"edit-page edit-tmpl"
>
</div>
<div
class=
"title"
>
<div
class=
"content-box"
>
产品信息
<d2-table
ref=
"purchaseOrderDetailTable"
:table-params=
"tableParams"
:table-data=
"detailInfo.tableData"
</div>
:layout=
"layout"
:table-total=
"detailInfo.tableTotal"
@
refreshTable=
"refreshTable"
>
<div
class=
"content-box"
>
<template
#
upgradeGoodsName=
"scope"
>
<d2-table
ref=
"purchaseOrderDetailTable"
<div>
:table-params=
"tableParams"
<img
v-if=
"scope.scope.refundStatus == 'Y'"
class=
"return"
src=
"@/assets/retrun.png"
:table-data=
"detailInfo.tableData"
alt=
""
/>
:layout=
"layout"
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
:table-total=
"detailInfo.tableTotal"
</div>
@
refreshTable=
"refreshTable"
>
</
template
>
<template
#
upgradeGoodsName=
"scope"
>
<
template
#
filmRollNo=
"scope"
>
<div>
<div
v-if=
"scope.scope.filmRollList
<img
v-if=
"scope.scope.refundStatus == 'Y'"
&& scope.scope.filmRollList.length == 1
class=
"return"
"
>
src=
"@/assets/retrun.png"
{{
scope
.
scope
.
filmRollList
[
0
]
}}
alt=
""
/>
</div>
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
<div
v-else-if=
"scope.scope.filmRollList
</div>
&& scope.scope.filmRollList.length > 1
</
template
>
"
>
<
template
#
filmRollNo=
"scope"
>
<el-popover
placement=
"top"
width=
"200"
trigger=
"hover"
>
<div
v-if=
"
<div
class=
"film-roll-box"
>
scope.scope.filmRollList
<div
class=
"title"
>
&& scope.scope.filmRollList.length == 1
膜卷号
"
>
</div>
{{
scope
.
scope
.
filmRollList
[
0
]
}}
<div
v-for=
"(subItem, subIndex) in scope.scope.filmRollList"
:key=
"subIndex"
</div>
class=
"merchant-item"
>
<div
v-else-if=
"
{{
subItem
}}
scope.scope.filmRollList
</div>
&& scope.scope.filmRollList.length > 1
</div>
"
>
<template
#
reference
>
<el-popover
placement=
"top"
<div>
width=
"200"
<span
style=
"color: #2a58ad"
>
trigger=
"hover"
>
(…
{{
scope
.
scope
.
filmRollList
.
length
}}
)
<div
class=
"film-roll-box"
>
</span>
<div
class=
"title"
>
</div>
膜卷号
</
template
>
</div>
</el-popover>
<div
v-for=
"(subItem, subIndex) in scope.scope.filmRollList"
</div>
:key=
"subIndex"
<div
v-else
>
class=
"merchant-item"
>
<span
style=
" overflow: hidden;text-overflow: ellipsis; white-space: nowrap;"
>
{{
subItem
}}
{{ "-" }}
</div>
</span>
</div>
</div>
<template
#
reference
>
</template>
<div>
<
template
#
carName=
"scope"
>
<span
style=
"color: #2a58ad"
>
<el-tooltip
v-if=
"scope.scope.suitCarTypeList
(…
{{
scope
.
scope
.
filmRollList
.
length
}}
)
&& scope.scope.suitCarTypeList.length
</span>
"
placement=
"top"
>
</div>
<template
#
content
>
</
template
>
<div
class=
"car-type-list"
>
</el-popover>
<div
v-for=
"(item, index) in scope.scope.suitCarTypeList"
:key=
"index"
>
</div>
{{
<div
v-else
>
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
<span
style=
" overflow: hidden;text-overflow: ellipsis; white-space: nowrap;"
>
}}
{{ "-" }}
<
/div
>
</span>
<
/div
>
</div>
<
/template
>
</template>
<
div
>
{{
scope
.
scope
.
suitCarTypeList
|
formatCar
}}
<
/div
>
<
template
#
carName=
"scope"
>
<
/el-tooltip
>
<el-tooltip
v-if=
"
<
div
v
-
else
>
scope.scope.suitCarTypeList
-
&& scope.scope.suitCarTypeList.length
<
/div
>
"
<
/template
>
placement=
"top"
>
<
template
#
actionSlot
=
"scope"
>
<template
#
content
>
<
el
-
button
type
=
"text"
@
click
=
"handleInventoryDetail(scope.scope)"
>
<div
class=
"car-type-list"
>
库存明细
<div
v-for=
"(item, index) in scope.scope.suitCarTypeList"
<
/el-button
>
:key=
"index"
>
<
/template
>
{{
<
/d2-table
>
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
<
/div
>
}}
<
/div
>
<
/div
>
<
el
-
form
ref
=
"refundForm"
label
-
width
=
"150px"
:
model
=
"infoForm"
:
rules
=
"formRules"
>
<
/div
>
<
el
-
form
-
item
label
=
"驳回节点:"
prop
=
"rejectNode"
>
<
/template
>
<
el
-
select
v
-
model
=
"infoForm.rejectNode"
placeholder
=
"请选择驳回节点"
style
=
"width: 450px"
>
<
div
>
{{
scope
.
scope
.
suitCarTypeList
|
formatCar
}}
<
/div
>
<
el
-
option
v
-
for
=
"item in baseData.rejectNodeOptions"
:
key
=
"item.id"
:
label
=
"item.label"
<
/el-tooltip
>
:
value
=
"item.id"
/>
<
div
v
-
else
>
<
/el-select
>
-
<
/el-form-item
>
<
/div
>
<
el
-
form
-
item
label
=
"驳回原因:"
prop
=
"rejectCause"
>
<
/template
>
<
el
-
input
v
-
model
=
"infoForm.rejectCause"
type
=
"textarea"
:
row
=
"4"
show
-
word
-
limit
placeholder
=
"请输入驳回原因"
<
template
#
actionSlot
=
"scope"
>
maxlength
=
"200"
class
=
"reject-input"
/>
<
el
-
button
type
=
"text"
<
/el-form-item
>
@
click
=
"handleInventoryDetail(scope.scope)"
>
<
/el-form
>
库存明细
<
ExamineRecord
:
list
=
"originalAuditDetaiList"
style
=
"margin-top:20px;"
/>
<
/el-button
>
<
/template
>
<
/d2-table
>
<
/div
>
<
/div
>
<
el
-
form
ref
=
"refundForm"
label
-
width
=
"150px"
:
model
=
"infoForm"
:
rules
=
"formRules"
>
<
el
-
form
-
item
label
=
"驳回节点:"
prop
=
"rejectNode"
>
<
el
-
select
v
-
model
=
"infoForm.rejectNode"
placeholder
=
"请选择驳回节点"
style
=
"width: 450px"
>
<
el
-
option
v
-
for
=
"item in baseData.rejectNodeOptions"
:
key
=
"item.id"
:
label
=
"item.label"
:
value
=
"item.id"
/>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"驳回原因:"
prop
=
"rejectCause"
>
<
el
-
input
v
-
model
=
"infoForm.rejectCause"
type
=
"textarea"
:
row
=
"4"
show
-
word
-
limit
placeholder
=
"请输入驳回原因"
maxlength
=
"200"
class
=
"reject-input"
/>
<
/el-form-item
>
<
/el-form
>
<
ExamineRecord
:
list
=
"originalAuditDetaiList"
style
=
"margin-top:20px;"
/>
<
/div
>
<
/div
>
<
StockDetailDialog
v
-
if
=
"stockDetailDialogVisible"
<
StockDetailDialog
v
-
if
=
"stockDetailDialogVisible"
:
visible
.
sync
=
"stockDetailDialogVisible"
:
visible
.
sync
=
"stockDetailDialogVisible"
:
record
-
info
=
"stockDetailInfo"
/>
:
record
-
info
=
"stockDetailInfo"
/>
<
/baseDialog
>
<
/baseDialog
>
<
/template
>
<
/template
>
<
script
>
<
script
>
...
@@ -216,6 +185,11 @@ export default {
...
@@ -216,6 +185,11 @@ export default {
prop
:
"upgradeGoodsName"
,
prop
:
"upgradeGoodsName"
,
}
,
}
,
{
{
label
:
"供应商名称"
,
prop
:
'thirdPartyName'
,
width
:
100
,
}
,
{
label
:
"产品编码"
,
label
:
"产品编码"
,
prop
:
"type"
,
prop
:
"type"
,
}
,
}
,
...
@@ -224,6 +198,11 @@ export default {
...
@@ -224,6 +198,11 @@ export default {
prop
:
"specificationData"
,
prop
:
"specificationData"
,
}
,
}
,
{
{
label
:
'供应商编码'
,
prop
:
'thirdPartyCode'
,
width
:
100
}
,
{
label
:
"采购数量"
,
label
:
"采购数量"
,
prop
:
"goodsNumber"
,
prop
:
"goodsNumber"
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
...
@@ -244,10 +223,9 @@ export default {
...
@@ -244,10 +223,9 @@ export default {
const
condition
=
baseConfig
.
membraneTypeList
.
includes
(
const
condition
=
baseConfig
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
,
cellValue
.
goodsType
,
)
)
?
`${
?
`${cellValue.conversionValue
cellValue.conversionValue
? cellValue.goodsNumber * cellValue.conversionValue
? cellValue.goodsNumber * cellValue.conversionValue
: "-"
: "-"
}
米`
}
米`
:
`${cellValue.goodsNumber
}
件`
;
:
`${cellValue.goodsNumber
}
件`
;
return
this
.
paramsObj
.
purchaseType
==
1
return
this
.
paramsObj
.
purchaseType
==
1
...
@@ -256,6 +234,10 @@ export default {
...
@@ -256,6 +234,10 @@ export default {
}
,
}
,
}
,
}
,
{
{
label
:
"产品别名"
,
prop
:
"purchaseGoodsName"
,
}
,
{
label
:
"已发货数量"
,
label
:
"已发货数量"
,
prop
:
"purchaseNumber"
,
prop
:
"purchaseNumber"
,
width
:
110
,
width
:
110
,
...
@@ -410,6 +392,7 @@ export default {
...
@@ -410,6 +392,7 @@ export default {
.
tips
{
.
tips
{
color
:
#
999999
;
color
:
#
999999
;
}
}
.
edit
-
page
.
edit
-
tmpl
{
.
edit
-
page
.
edit
-
tmpl
{
background
:
#
ffffff
;
background
:
#
ffffff
;
...
@@ -423,10 +406,12 @@ export default {
...
@@ -423,10 +406,12 @@ export default {
color
:
#
333333
;
color
:
#
333333
;
}
}
}
}
.
content
-
box
{
.
content
-
box
{
padding
:
0
20
px
20
px
;
padding
:
0
20
px
20
px
;
background
:
#
ffffff
;
background
:
#
ffffff
;
}
}
.
car
-
type
-
list
{
.
car
-
type
-
list
{
max
-
height
:
300
px
;
max
-
height
:
300
px
;
overflow
-
y
:
scroll
;
overflow
-
y
:
scroll
;
...
...
src/views/purchase/factoryPurchaseAndDelivery.vue
View file @
d7bd784
<!-- 仓库/工厂发货 -->
<!-- 仓库/工厂发货 -->
<
template
>
<
template
>
<d2-container
class=
"container"
>
<d2-container
class=
"container"
>
<template
#
header
>
<template
#
header
>
<div
class=
"header"
>
<div
class=
"header"
>
<d2-search
ref=
"showSearch"
<d2-search
ref=
"showSearch"
:labelWidth=
"labelWidth"
class=
"show-search"
:form-data=
"showFormData"
class=
"show-search"
:search-form=
"searchForm"
>
:form-data=
"showFormData"
</d2-search>
:search-form=
"searchForm"
>
<div
class=
"up-btns"
>
</d2-search>
<el-button
:id=
"tableParams.btnId"
handle
size=
"small"
type=
"primary"
>
<div
class=
"up-btns"
>
查询
<el-button
:id=
"tableParams.btnId"
</el-button>
handle
<el-button
size=
"small"
@
click=
"handleReset"
>
size=
"small"
重置
type=
"primary"
>
</el-button>
查询
</div>
</el-button>
</div>
<el-button
size=
"small"
@
click=
"handleReset"
>
</
template
>
重置
<div
class=
"d2-container-content"
>
</el-button>
<d2-table-header>
</div>
<span
style=
"margin-right: 10px"
>
</div>
<auth-button
category=
"Button"
:show-btn-ids=
"['9090703']"
/>
</
template
>
</span>
<div
class=
"d2-container-content"
>
<span>
<d2-table-header>
<auth-button
category=
"Button"
:show-btn-ids=
"['9090704']"
/>
<span
style=
"margin-right: 10px"
>
</span>
<auth-button
category=
"Button"
:show-btn-ids=
"['9090703']"
/>
</d2-table-header>
</span>
<d2-table
ref=
"purchaseAndDeliveryTable"
:before-search-fn=
"beforeSearchFn"
:get-list-api=
"getListApi"
<span>
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
@
searchChange=
"searchChange"
<auth-button
category=
"Button"
:show-btn-ids=
"['9090704']"
/>
@
selectionTable=
"handleSelectionTable"
@
setTableFinishFun=
"setTableFinishFun"
>
</span>
<
template
#
upgradeGoodsName=
"scope"
>
</d2-table-header>
<div>
<d2-table
ref=
"purchaseAndDeliveryTable"
<img
v-if=
"scope.scope.refundStatus == 'Y'"
alt=
""
class=
"return"
src=
"@/assets/retrun.png"
>
:before-search-fn=
"beforeSearchFn"
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
:get-list-api=
"getListApi"
</div>
:search-form=
"tableSearchForm"
</
template
>
:table-params=
"tableParams"
<
template
#
suitCarTypeList=
"scope"
>
@
searchChange=
"searchChange"
<div>
@
selectionTable=
"handleSelectionTable"
<el-tooltip
v-if=
"scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
effect=
"dark"
@
setTableFinishFun=
"setTableFinishFun"
>
placement=
"top"
>
<
template
#
upgradeGoodsName=
"scope"
>
<template
#
content
>
<div>
<div
class=
"car-type-list"
>
<img
v-if=
"scope.scope.refundStatus == 'Y'"
<div>
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
)
}}
</div>
alt=
""
</div>
class=
"return"
</
template
>
src=
"@/assets/retrun.png"
>
<span
class=
"one-line-ellipsis"
>
{{ scope.columnsObj.formatter(scope.scope) }}
</span>
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
</el-tooltip>
</div>
<div
v-else
>
</
template
>
-
<
template
#
suitCarTypeList=
"scope"
>
</div>
<div>
</div>
<el-tooltip
v-if=
"scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
</template>
effect=
"dark"
<
template
#
auth-button=
"scope"
>
placement=
"top"
>
<div>
<template
#
content
>
<!-- 查看 -->
<div
class=
"car-type-list"
>
<span
v-if=
"scope.scope.deliveryStatus != 1"
style=
"margin-right: 10px;"
>
<div>
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
)
}}
</div>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090701']"
/>
</div>
</span>
</
template
>
<!-- 确认发货 -->
<span
class=
"one-line-ellipsis"
>
{{ scope.columnsObj.formatter(scope.scope) }}
</span>
<!-- style="margin-right: 10px;" -->
</el-tooltip>
<span
<div
v-else
>
v-if=
"scope.scope.refundStatus != 'Y' && (scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3)"
-
style=
"margin-right: 10px;"
>
</div>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090702']"
/>
</div>
</span>
</template>
<!--
<el-button
:data=
"scope.scope"
type=
"text"
@
click=
"handleDelivery(scope.scope)"
>
发货
</el-button>
-->
<
template
#
auth-button=
"scope"
>
<!-- 发货 -->
<div>
<!--
<span
v-show=
"scope.scope.status == 2"
style=
"margin-right: 10px;"
>
-->
<!-- 查看 -->
<!--
<span
style=
"margin-right: 10px;"
>
<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"
<FactoryDeliveryDetailDialog
v-if=
"detailVisible"
:record-info=
"detailInfo"
:visible
.
sync=
"detailVisible"
>
:record-info=
"detailInfo"
</FactoryDeliveryDetailDialog>
:visible
.
sync=
"detailVisible"
>
<EditOrderDialog
v-if=
"editVisible"
page=
"factory"
:params-obj=
"dialogData"
:table-list=
"editTableList"
</FactoryDeliveryDetailDialog>
:visible
.
sync=
"editVisible"
@
editClose=
"editClose"
>
<EditOrderDialog
v-if=
"editVisible"
</EditOrderDialog>
page=
"factory"
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting" -->
:params-obj=
"dialogData"
<baseDialog
:dialog-config=
"rejectConfig.config"
:is-show
.
sync=
"rejectVisible"
@
handleClick=
"handleRejectConfirm"
>
:table-list=
"editTableList"
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
: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"
<el-form
ref=
"delivery-dialog-form"
label-width=
"150px"
:model=
"rejectData"
:rules=
"rejectRules"
>
label-width=
"150px"
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
:model=
"rejectData"
<el-input
v-model
.
trim=
"rejectData.rejectCause"
class=
"dis-in-block reject-input"
maxlength=
"50"
:rules=
"rejectRules"
>
placeholder=
"请输入驳回原因"
:rows=
"3"
show-word-limit
type=
"textarea"
/>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
</el-form-item>
<el-input
v-model
.
trim=
"rejectData.rejectCause"
</el-form>
class=
"dis-in-block reject-input"
</div>
maxlength=
"50"
<!-- <div class="footer">
placeholder=
"请输入驳回原因"
:rows=
"3"
show-word-limit
type=
"textarea"
/>
</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
>
...
@@ -149,6 +121,7 @@ export default {
...
@@ -149,6 +121,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
labelWidth
:
'100px'
,
editVisible
:
false
,
editVisible
:
false
,
editTableList
:
[],
editTableList
:
[],
reg
:
{
reg
:
{
...
@@ -251,6 +224,19 @@ export default {
...
@@ -251,6 +224,19 @@ export default {
type
:
"datePicker"
,
type
:
"datePicker"
,
isClear
:
true
,
isClear
:
true
,
},
},
{
label
:
'供应商名称'
,
name
:
'thirdPartyName'
,
type
:
'input'
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
},
{
label
:
'供应商编码'
,
name
:
'thirdPartyCode'
,
type
:
'input'
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
}
],
],
selectedList
:
[],
selectedList
:
[],
getListApi
:
warehousedeliverPage
,
getListApi
:
warehousedeliverPage
,
...
@@ -268,6 +254,11 @@ export default {
...
@@ -268,6 +254,11 @@ export default {
prop
:
"upgradeGoodsName"
,
prop
:
"upgradeGoodsName"
,
},
},
{
{
label
:
'供应商名称'
,
prop
:
'thirdPartyName'
,
width
:
100
},
{
label
:
"产品编码"
,
label
:
"产品编码"
,
prop
:
"type"
,
prop
:
"type"
,
},
},
...
@@ -285,6 +276,11 @@ export default {
...
@@ -285,6 +276,11 @@ export default {
},
},
},
},
{
{
label
:
'供应商编码'
,
prop
:
'thirdPartyCode'
,
width
:
100
},
{
label
:
"系列"
,
label
:
"系列"
,
prop
:
"goodsName"
,
prop
:
"goodsName"
,
},
},
...
@@ -312,6 +308,10 @@ export default {
...
@@ -312,6 +308,10 @@ export default {
prop
:
"purchaseNumber"
,
prop
:
"purchaseNumber"
,
},
},
{
{
label
:
"产品别名"
,
prop
:
"purchaseGoodsName"
,
},
{
label
:
"订单编号"
,
label
:
"订单编号"
,
prop
:
"orderCode"
,
prop
:
"orderCode"
,
},
},
...
@@ -483,10 +483,10 @@ export default {
...
@@ -483,10 +483,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
();
...
@@ -698,6 +698,7 @@ export default {
...
@@ -698,6 +698,7 @@ export default {
max-height
:
320px
;
max-height
:
320px
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
}
}
.return
{
.return
{
width
:
15px
;
width
:
15px
;
height
:
14px
;
height
:
14px
;
...
...
src/views/purchase/purchaseAndDelivery.vue
View file @
d7bd784
<!-- 采购发货 -->
<!-- 采购发货 -->
<
template
>
<
template
>
<d2-container
class=
"container"
>
<d2-container
class=
"container"
>
<template
#
header
>
<template
#
header
>
<div
class=
"header"
>
<div
class=
"header"
>
<d2-search
ref=
"showSearch"
<d2-search
ref=
"showSearch"
:labelWidth=
"labelWidth"
class=
"show-search"
:form-data=
"showFormData"
class=
"show-search"
:search-form=
"searchForm"
>
:form-data=
"showFormData"
</d2-search>
:search-form=
"searchForm"
>
<div
class=
"up-btns"
>
</d2-search>
<el-button
:id=
"tableParams.btnId"
handle
size=
"small"
type=
"primary"
>
<div
class=
"up-btns"
>
查询
<el-button
:id=
"tableParams.btnId"
</el-button>
handle
<el-button
size=
"small"
@
click=
"handleReset"
>
size=
"small"
重置
type=
"primary"
>
</el-button>
查询
</div>
</el-button>
</div>
<el-button
size=
"small"
@
click=
"handleReset"
>
</
template
>
重置
<div
class=
"d2-container-content"
>
</el-button>
<d2-table-header>
</div>
</div>
</
template
>
<div
class=
"d2-container-content"
>
<d2-table-header>
<span
style=
"margin-right: 10px"
>
<span
style=
"margin-right: 10px"
>
<auth-button
category=
"Button"
:show-btn-ids=
"['9090407']"
/>
<auth-button
category=
"Button"
:show-btn-ids=
"['9090407']"
/>
</span>
</span>
<span
style=
"margin-right: 10px"
>
<span
style=
"margin-right: 10px"
>
<auth-button
category=
"Button"
:show-btn-ids=
"['9090408']"
/>
<auth-button
category=
"Button"
:show-btn-ids=
"['9090408']"
/>
</span>
</span>
<span>
<span>
<auth-button
category=
"Button"
:show-btn-ids=
"['9090405']"
/>
<auth-button
category=
"Button"
:show-btn-ids=
"['9090405']"
/>
</span>
</span>
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"purchaseAndDeliveryTable"
<d2-table
ref=
"purchaseAndDeliveryTable"
:before-search-fn=
"beforeSearchFn"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
@
current-change=
"handleCurrentChange"
:get-list-api=
"getListApi"
@
searchChange=
"searchChange"
@
selectionTable=
"handleSelectionTable"
@
setTableFinishFun=
"setTableFinishFun"
>
:search-form=
"tableSearchForm"
<
template
#
uploadFileUrls=
"scope"
>
:table-params=
"tableParams"
<div
v-if=
"scope.scope.uploadFileUrls"
>
@
current-change=
"handleCurrentChange"
<el-image
fit=
"fill"
:preview-src-list=
"scope.scope.uploadFileUrls.split(',')"
@
searchChange=
"searchChange"
:src=
"scope.scope.uploadFileUrls.split(',')[0]"
style=
"width: 36px; height: 36px;"
>
@
selectionTable=
"handleSelectionTable"
</el-image>
@
setTableFinishFun=
"setTableFinishFun"
>
</div>
<
template
#
uploadFileUrls=
"scope"
>
<div
v-else
>
<div
v-if=
"scope.scope.uploadFileUrls"
>
-
<el-image
fit=
"fill"
</div>
:preview-src-list=
"scope.scope.uploadFileUrls.split(',')"
</
template
>
:src=
"scope.scope.uploadFileUrls.split(',')[0]"
<
template
#
upgradeGoodsName=
"scope"
>
style=
"width: 36px; height: 36px;"
>
<div>
</el-image>
<img
v-if=
"scope.scope.refundStatus == 'Y'"
alt=
""
class=
"return"
src=
"@/assets/retrun.png"
>
</div>
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
<div
v-else
>
</div>
-
</
template
>
</div>
<
template
#
suitCarTypeList=
"scope"
>
</
template
>
<div>
<
template
#
upgradeGoodsName=
"scope"
>
<el-tooltip
v-if=
"scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
effect=
"dark"
<div>
placement=
"top"
>
<img
v-if=
"scope.scope.refundStatus == 'Y'"
<template
#
content
>
alt=
""
<div
class=
"car-type-list"
>
class=
"return"
<div>
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
)
}}
</div>
src=
"@/assets/retrun.png"
>
</div>
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
</
template
>
</div>
<span
class=
"one-line-ellipsis"
>
{{ scope.columnsObj.formatter(scope.scope) }}
</span>
</
template
>
</el-tooltip>
<
template
#
suitCarTypeList=
"scope"
>
<div
v-else
>
<div>
-
<el-tooltip
v-if=
"scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
</div>
effect=
"dark"
</div>
placement=
"top"
>
</template>
<template
#
content
>
<
template
#
remark=
"scope"
>
<div
class=
"car-type-list"
>
<div>
<div>
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
)
}}
</div>
<el-tooltip
v-if=
"scope.scope.purchaseOrderGoodsRemark"
</div>
:content=
"scope.scope.purchaseOrderGoodsRemark"
effect=
"dark"
placement=
"top"
>
</
template
>
<span
class=
"one-line-ellipsis"
>
{{
scope
.
scope
.
purchaseOrderGoodsRemark
}}
</span>
<span
class=
"one-line-ellipsis"
>
{{ scope.columnsObj.formatter(scope.scope) }}
</span>
</el-tooltip>
</el-tooltip>
<div
v-else
>
<div
v-else
>
-
-
</div>
</div>
</div>
</div>
</
template
>
</template>
<
template
#
auth-button=
"scope"
>
<
template
#
remark=
"scope"
>
<div
width=
"400"
>
<div>
<!-- 查看 -->
<el-tooltip
v-if=
"scope.scope.purchaseOrderGoodsRemark"
<span
style=
"margin-right: 10px"
>
:content=
"scope.scope.purchaseOrderGoodsRemark"
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090401']"
/>
effect=
"dark"
</span>
placement=
"top"
>
<!-- 确认发货 -->
<span
class=
"one-line-ellipsis"
>
{{
scope
.
scope
.
purchaseOrderGoodsRemark
}}
</span>
<span
</el-tooltip>
v-if=
"scope.scope.refundStatus != 'Y' && (scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3) && scope.scope.distributionStatus == 0"
<div
v-else
>
style=
"margin-right: 10px"
>
-
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090402']"
/>
</div>
</span>
</div>
<!-- 分配 -->
</
template
>
<span
v-if=
"scope.scope.deliveryStatus == 1"
style=
"margin-right: 10px"
>
<
template
#
auth-button=
"scope"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090404']"
/>
<div
width=
"400"
>
</span>
<!-- 查看 -->
<!-- 驳回 -->
<span
style=
"margin-right: 10px"
>
<span
v-if=
"scope.scope.purchaseOrderDeliveryStatus == 1"
style=
"margin-right: 10px"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090401']"
/>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090403']"
/>
</span>
</span>
<!-- 确认发货 -->
<!-- 结束 -->
<span
v-if=
"scope.scope.refundStatus != 'Y' && (scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3) && scope.scope.distributionStatus == 0"
style=
"margin-right: 10px"
>
<span
v-if=
"scope.scope.purchaseOrderDeliveryStatus == 3"
style=
"margin-right: 10px"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090402']"
/>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090406']"
/>
</span>
</span>
<!-- 分配 -->
</div>
<span
v-if=
"scope.scope.deliveryStatus == 1"
style=
"margin-right: 10px"
>
</
template
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090404']"
/>
</d2-table>
</span>
</div>
<!-- 驳回 -->
<OrderDeatilDialog
v-if=
"detailVisible"
:params-obj=
"paramsObj"
:visible
.
sync=
"detailVisible"
:is-delivery=
"true"
>
<span
v-if=
"scope.scope.purchaseOrderDeliveryStatus == 1"
style=
"margin-right: 10px"
>
</OrderDeatilDialog>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090403']"
/>
<EditOrderDialog
v-if=
"editVisible"
:is-empty-edit=
"true"
:params-obj=
"dialogData"
:table-list=
"editTableList"
</span>
:visible
.
sync=
"editVisible"
@
editClose=
"editClose"
>
<!-- 结束 -->
</EditOrderDialog>
<span
v-if=
"scope.scope.purchaseOrderDeliveryStatus == 3"
style=
"margin-right: 10px"
>
<AllocateDialog
v-if=
"allocateVisible"
:table-list=
"allocateTableList"
:visible
.
sync=
"allocateVisible"
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090406']"
/>
@
editClose=
"allocateClose"
>
</span>
</AllocateDialog>
</div>
<baseDialog
:dialog-config=
"rejectConfig.config"
:is-show
.
sync=
"rejectVisible"
@
handleClick=
"handleRejectConfirm"
>
</
template
>
<div
class=
"reject-dialog"
style=
"margin: 0;"
>
</d2-table>
<div
class=
"edit-page edit-tmpl"
>
</div>
<div
class=
"title"
>
<OrderDeatilDialog
v-if=
"detailVisible"
产品信息
:params-obj=
"paramsObj"
</div>
:visible
.
sync=
"detailVisible"
>
<div
class=
"content-box"
>
</OrderDeatilDialog>
<d2-table
ref=
"purchaseOrderDetailTable"
:layout=
"layout"
:table-data=
"detailInfo.tableData"
<EditOrderDialog
v-if=
"editVisible"
:table-params=
"rejectTableParams"
:table-total=
"detailInfo.tableTotal"
:is-empty-edit=
"true"
@
refreshTable=
"rejectRefreshTable"
>
:params-obj=
"dialogData"
<
template
#
upgradeGoodsName=
"scope"
>
:table-list=
"editTableList"
<div>
:visible
.
sync=
"editVisible"
<img
v-if=
"scope.scope.refundStatus == 'Y'"
alt=
""
class=
"return"
@
editClose=
"editClose"
>
src=
"@/assets/retrun.png"
>
</EditOrderDialog>
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
<AllocateDialog
v-if=
"allocateVisible"
</div>
:table-list=
"allocateTableList"
</
template
>
:visible
.
sync=
"allocateVisible"
<
template
#
filmRollNo=
"scope"
>
@
editClose=
"allocateClose"
>
<div
v-if=
"scope.scope.filmRollList && scope.scope.filmRollList.length == 1"
>
</AllocateDialog>
{{
scope
.
scope
.
filmRollList
[
0
]
}}
<baseDialog
:dialog-config=
"rejectConfig.config"
</div>
:is-show
.
sync=
"rejectVisible"
<div
v-else-if=
"scope.scope.filmRollList && scope.scope.filmRollList.length > 1"
>
@
handleClick=
"handleRejectConfirm"
>
<el-popover
placement=
"top"
trigger=
"hover"
width=
"200"
>
<div
class=
"reject-dialog"
style=
"margin: 0;"
>
<div
class=
"film-roll-box"
>
<div
class=
"edit-page edit-tmpl"
>
<div
class=
"title"
>
<div
class=
"title"
>
膜卷号
产品信息
</div>
</div>
<div
v-for=
"(subItem, subIndex) in scope.scope.filmRollList"
:key=
"subIndex"
<div
class=
"content-box"
>
class=
"merchant-item"
>
<d2-table
ref=
"purchaseOrderDetailTable"
{{
subItem
}}
:layout=
"layout"
</div>
:table-data=
"detailInfo.tableData"
</div>
:table-params=
"rejectTableParams"
<template
#
reference
>
:table-total=
"detailInfo.tableTotal"
<div>
@
refreshTable=
"rejectRefreshTable"
>
<span
style=
"color: #2A58AD;"
>
(…
{{
scope
.
scope
.
filmRollList
.
length
<
template
#
upgradeGoodsName=
"scope"
>
}}
)
</span>
<div>
</div>
<img
v-if=
"scope.scope.refundStatus == 'Y'"
</
template
>
alt=
""
</el-popover>
class=
"return"
</div>
src=
"@/assets/retrun.png"
>
<div
v-else
>
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
<span
style=
"overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"
>
{{ '-'
</div>
}}
</span>
</
template
>
</div>
<
template
#
filmRollNo=
"scope"
>
</template>
<div
v-if=
"scope.scope.filmRollList && scope.scope.filmRollList.length == 1"
>
<
template
#
carName=
"scope"
>
{{
scope
.
scope
.
filmRollList
[
0
]
}}
<el-tooltip
v-if=
"scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
</div>
placement=
"top"
>
<div
v-else-if=
"scope.scope.filmRollList && scope.scope.filmRollList.length > 1"
>
<template
#
content
>
<el-popover
placement=
"top"
<div
class=
"car-type-list"
>
trigger=
"hover"
<div
v-for=
"(item, index) in scope.scope.suitCarTypeList"
:key=
"index"
>
width=
"200"
>
{{
<div
class=
"film-roll-box"
>
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
<div
class=
"title"
>
}}
膜卷号
<
/div
>
</div>
<
/div
>
<div
v-for=
"(subItem, subIndex) in scope.scope.filmRollList"
<
/template
>
:key=
"subIndex"
<
div
>
{{
scope
.
scope
.
suitCarTypeList
|
formatCar
}}
<
/div
>
class=
"merchant-item"
>
<
/el-tooltip
>
{{
subItem
}}
<
div
v
-
else
>
</div>
-
</div>
<
/div
>
<template
#
reference
>
<
/template
>
<div>
<
/d2-table
>
<span
style=
"color: #2A58AD;"
>
(…
{{
scope
.
scope
.
filmRollList
.
length
}}
)
</span>
<
/div
>
</div>
<
/div
>
</
template
>
<
el
-
form
ref
=
"delivery-dialog-form"
label
-
width
=
"150px"
:
model
=
"rejectData"
:
rules
=
"rejectRules"
>
</el-popover>
<
el
-
form
-
item
label
=
"驳回节点:"
prop
=
"rejectNode"
>
</div>
<
el
-
select
v
-
model
=
"rejectData.rejectNode"
placeholder
=
"请选择驳回节点"
style
=
"width: 450px"
>
<div
v-else
>
<
el
-
option
v
-
for
=
"item in baseData.rejectNodeOptions"
:
key
=
"item.id"
:
label
=
"item.label"
<span
style=
"overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"
>
{{ '-' }}
</span>
:
value
=
"item.id"
/>
</div>
<
/el-select
>
</template>
<
/el-form-item
>
<
template
#
carName=
"scope"
>
<
el
-
form
-
item
label
=
"驳回原因:"
prop
=
"rejectCause"
>
<el-tooltip
v-if=
"scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
placement=
"top"
>
<
el
-
input
v
-
model
.
trim
=
"rejectData.rejectCause"
class
=
"dis-in-block reject-input"
maxlength
=
"200"
<template
#
content
>
placeholder
=
"请输入驳回原因"
:
rows
=
"4"
show
-
word
-
limit
type
=
"textarea"
/>
<div
class=
"car-type-list"
>
<
/el-form-item
>
<div
v-for=
"(item, index) in scope.scope.suitCarTypeList"
:key=
"index"
>
<
/el-form
>
{{
<
p
style
=
"margin-left: 150px; color: #999999;"
>
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
}}
说明:驳回后,整个采购订单进行驳回,无法再重新进行发货操作。
<
/div
>
<
/p
>
<
/div
>
<
ExamineRecord
:
list
=
"originalAuditDetaiList"
style
=
"margin-top:20px;"
/>
<
/template
>
<
div
>
{{
scope
.
scope
.
suitCarTypeList
|
formatCar
}}
<
/div
>
<
/el-tooltip
>
<
div
v
-
else
>
-
<
/div
>
<
/template
>
<
/d2-table
>
<
/div
>
<
/div
>
<
el
-
form
ref
=
"delivery-dialog-form"
label
-
width
=
"150px"
:
model
=
"rejectData"
:
rules
=
"rejectRules"
>
<
el
-
form
-
item
label
=
"驳回节点:"
prop
=
"rejectNode"
>
<
el
-
select
v
-
model
=
"rejectData.rejectNode"
placeholder
=
"请选择驳回节点"
style
=
"width: 450px"
>
<
el
-
option
v
-
for
=
"item in baseData.rejectNodeOptions"
:
key
=
"item.id"
:
label
=
"item.label"
:
value
=
"item.id"
/>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"驳回原因:"
prop
=
"rejectCause"
>
<
el
-
input
v
-
model
.
trim
=
"rejectData.rejectCause"
class
=
"dis-in-block reject-input"
maxlength
=
"200"
placeholder
=
"请输入驳回原因"
:
rows
=
"4"
show
-
word
-
limit
type
=
"textarea"
/>
<
/el-form-item
>
<
/el-form
>
<
p
style
=
"margin-left: 150px; color: #999999;"
>
说明:驳回后,整个采购订单进行驳回,无法再重新进行发货操作。
<
/p
>
<
ExamineRecord
:
list
=
"originalAuditDetaiList"
style
=
"margin-top:20px;"
/>
<
/div
>
<
/div
>
<!--
<
div
class
=
"footer"
>
<!--
<
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
>
<
baseDialog
:
dialog
-
config
=
"endConfig.config"
<
baseDialog
:
dialog
-
config
=
"endConfig.config"
:
is
-
show
.
sync
=
"endVisible"
@
handleClick
=
"handleEndConfirm"
>
:
is
-
show
.
sync
=
"endVisible"
<!--
<
d2
-
dialog
v
-
if
=
"rejectVisible"
:
is
-
visible
=
"rejectVisible"
title
=
"驳回提2"
@
confirmDialog
=
"handleRejectConfirm"
@
handleClick
=
"handleEndConfirm"
>
<!--
<
d2
-
dialog
v
-
if
=
"rejectVisible"
:
is
-
visible
=
"rejectVisible"
title
=
"驳回提2"
@
confirmDialog
=
"handleRejectConfirm"
@
closeDialog
=
"handleRejectClose"
>
-->
@
closeDialog
=
"handleRejectClose"
>
-->
<
div
class
=
"reject-dialog end-dialog"
>
<
div
class
=
"reject-dialog end-dialog"
>
<
el
-
form
ref
=
"end-dialog-form"
<
el
-
form
ref
=
"end-dialog-form"
label
-
width
=
"150px"
:
model
=
"terminateDelivery"
>
label
-
width
=
"150px"
<
el
-
form
-
item
label
=
"备注:"
prop
=
"rejectCause"
>
:
model
=
"terminateDelivery"
>
<
el
-
input
v
-
model
.
trim
=
"terminateDelivery.terminateDeliveryInstruction"
<
el
-
form
-
item
label
=
"备注:"
prop
=
"rejectCause"
>
class
=
"dis-in-block reject-input"
maxlength
=
"200"
placeholder
=
"请输入备注信息"
:
rows
=
"3"
<
el
-
input
v
-
model
.
trim
=
"terminateDelivery.terminateDeliveryInstruction"
show
-
word
-
limit
type
=
"textarea"
/>
class
=
"dis-in-block reject-input"
<
/el-form-item
>
maxlength
=
"200"
<
/el-form
>
placeholder
=
"请输入备注信息"
<
p
style
=
"margin-left: 150px; color: #999999;"
>
:
rows
=
"3"
说明:结束发货后,整个采购订单发货完结,无法再重新进行发货操作。
show
-
word
-
limit
<
/p
>
type
=
"textarea"
/>
<
/div
>
<
/el-form-item
>
<!--
<
div
class
=
"footer"
>
<
/el-form
>
<
p
style
=
"margin-left: 150px; color: #999999;"
>
说明:结束发货后,整个采购订单发货完结,无法再重新进行发货操作。
<
/p
>
<
/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
>
...
@@ -314,6 +263,7 @@ export default {
...
@@ -314,6 +263,7 @@ export default {
}
,
}
,
data
()
{
data
()
{
return
{
return
{
labelWidth
:
'100px'
,
picOptions
:
{
picOptions
:
{
width
:
"138px"
,
width
:
"138px"
,
height
:
"54px"
,
height
:
"54px"
,
...
@@ -404,6 +354,11 @@ export default {
...
@@ -404,6 +354,11 @@ export default {
prop
:
"upgradeGoodsName"
,
prop
:
"upgradeGoodsName"
,
}
,
}
,
{
{
label
:
"供应商名称"
,
prop
:
'thirdPartyName'
,
width
:
100
,
}
,
{
label
:
"产品编码"
,
label
:
"产品编码"
,
prop
:
"type"
,
prop
:
"type"
,
}
,
}
,
...
@@ -412,6 +367,14 @@ export default {
...
@@ -412,6 +367,14 @@ export default {
prop
:
"specificationData"
,
prop
:
"specificationData"
,
}
,
}
,
{
{
label
:
'供应商编码'
,
prop
:
'thirdPartyCode'
,
width
:
100
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
?.
upgradeGoods
?.
thirdPartyCode
||
'-'
}
}
,
{
label
:
"采购数量"
,
label
:
"采购数量"
,
prop
:
"goodsNumber"
,
prop
:
"goodsNumber"
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
...
@@ -436,6 +399,10 @@ export default {
...
@@ -436,6 +399,10 @@ export default {
}
,
}
,
}
,
}
,
{
{
label
:
"产品别名"
,
prop
:
"purchaseGoodsName"
,
}
,
{
label
:
"单价"
,
label
:
"单价"
,
prop
:
"upgradePurchasePrice"
,
prop
:
"upgradePurchasePrice"
,
formatter
:
(
row
)
=>
{
formatter
:
(
row
)
=>
{
...
@@ -487,6 +454,8 @@ export default {
...
@@ -487,6 +454,8 @@ export default {
shipper
:
""
,
shipper
:
""
,
deliveryDateStr
:
""
,
deliveryDateStr
:
""
,
signStatusList
:
[],
signStatusList
:
[],
thirdPartyName
:
""
,
thirdPartyCode
:
""
,
}
,
}
,
tableSearchForm
:
{
}
,
tableSearchForm
:
{
}
,
tableData
:
[],
tableData
:
[],
...
@@ -607,6 +576,19 @@ export default {
...
@@ -607,6 +576,19 @@ export default {
optionLabel
:
"confName"
,
optionLabel
:
"confName"
,
optionsName
:
"signStatusType"
,
optionsName
:
"signStatusType"
,
}
,
}
,
{
label
:
'供应商名称'
,
name
:
'thirdPartyName'
,
type
:
'input'
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
}
,
{
label
:
'供应商编码'
,
name
:
'thirdPartyCode'
,
type
:
'input'
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
}
],
],
selectedList
:
[],
selectedList
:
[],
getListApi
:
getPurchaseOrderShipmentList
,
getListApi
:
getPurchaseOrderShipmentList
,
...
@@ -624,6 +606,14 @@ export default {
...
@@ -624,6 +606,14 @@ export default {
prop
:
"upgradeGoodsName"
,
prop
:
"upgradeGoodsName"
,
}
,
}
,
{
{
label
:
'供应商名称'
,
prop
:
'thirdPartyName'
,
width
:
100
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
?.
upgradeGoods
?.
thirdPartyName
||
'-'
}
}
,
{
label
:
"产品编码"
,
label
:
"产品编码"
,
prop
:
"type"
,
prop
:
"type"
,
}
,
}
,
...
@@ -641,6 +631,14 @@ export default {
...
@@ -641,6 +631,14 @@ export default {
}
,
}
,
}
,
}
,
{
{
label
:
'供应商编码'
,
prop
:
'thirdPartyCode'
,
width
:
100
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
?.
upgradeGoods
?.
thirdPartyCode
||
'-'
}
}
,
{
label
:
"系列"
,
label
:
"系列"
,
prop
:
"goodsName"
,
prop
:
"goodsName"
,
}
,
}
,
...
@@ -684,6 +682,10 @@ export default {
...
@@ -684,6 +682,10 @@ export default {
}
,
}
,
}
,
}
,
{
{
label
:
"产品别名"
,
prop
:
"aliasName"
,
}
,
{
label
:
"订单编号"
,
label
:
"订单编号"
,
prop
:
"orderCode"
,
prop
:
"orderCode"
,
}
,
}
,
...
@@ -820,9 +822,9 @@ export default {
...
@@ -820,9 +822,9 @@ export default {
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
reviewedDate
return
cellValue
.
reviewedDate
?
Util
.
dateFormate
(
?
Util
.
dateFormate
(
cellValue
.
reviewedDate
,
cellValue
.
reviewedDate
,
"YYYY-MM-DD HH:mm:ss"
,
"YYYY-MM-DD HH:mm:ss"
,
)
)
:
"--"
;
:
"--"
;
}
,
}
,
}
,
}
,
...
@@ -1259,7 +1261,7 @@ export default {
...
@@ -1259,7 +1261,7 @@ export default {
id: this.terminateDelivery.id,
id: this.terminateDelivery.id,
orderCode: this.terminateDelivery.orderCode,
orderCode: this.terminateDelivery.orderCode,
terminateDeliveryInstruction:
terminateDeliveryInstruction:
this.terminateDelivery.terminateDeliveryInstruction,
this.terminateDelivery.terminateDeliveryInstruction,
}
).then((res) => {
}
).then((res) => {
this.notice.okTips();
this.notice.okTips();
// this.handleEndClose()
// this.handleEndClose()
...
@@ -1315,6 +1317,7 @@ export default {
...
@@ -1315,6 +1317,7 @@ export default {
color: #999999;
color: #999999;
}
}
}
}
.reject-dialog.end-dialog {
.reject-dialog.end-dialog {
::v-deep .el-textarea .el-input__count {
::v-deep .el-textarea .el-input__count {
right: 70px;
right: 70px;
...
@@ -1323,6 +1326,7 @@ export default {
...
@@ -1323,6 +1326,7 @@ export default {
color: #999999;
color: #999999;
}
}
}
}
.edit-page.edit-tmpl {
.edit-page.edit-tmpl {
background: #ffffff;
background: #ffffff;
...
@@ -1336,10 +1340,12 @@ export default {
...
@@ -1336,10 +1340,12 @@ export default {
color: #333333;
color: #333333;
}
}
}
}
.car-type-list {
.car-type-list {
max-height: 320px;
max-height: 320px;
overflow-y: scroll;
overflow-y: scroll;
}
}
.return {
.return {
width: 15px;
width: 15px;
height: 14px;
height: 14px;
...
@@ -1351,9 +1357,11 @@ export default {
...
@@ -1351,9 +1357,11 @@ export default {
display: flex;
display: flex;
justify-content: flex-end;
justify-content: flex-end;
}
}
.uploadFileUrl-preview {
.uploadFileUrl-preview {
width: 138px;
width: 138px;
height: 54px;
height: 54px;
::v-deep .photo-activity {
::v-deep .photo-activity {
width: 100%;
width: 100%;
height: 100%;
height: 100%;
...
...
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