Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-purchase
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4f63dee4
authored
May 27, 2026
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'hotfix_V5.7.9' into 'SAAS+V5.8.1'
上线合并 See merge request
!38
2 parents
f5bf4dab
21551c55
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
131 additions
and
130 deletions
src/views/purchaseOrder/components/goodsDetailCom.vue
src/views/purchaseOrder/components/orderDetailDialog.vue
src/views/purchaseOrder/components/orderReturnDialog.vue
src/views/purchaseOrder/components/shoppingCartCom.vue
src/views/purchaseOrder/components/goodsDetailCom.vue
View file @
4f63dee
<
template
>
<div>
<GLDialog
destroy-on-close=
"true"
:visible
.
sync=
"dialogShow"
:hasFooter=
"false"
mode=
"big"
bigTitle=
"产品详情"
:close-on-click-modal=
"false"
@
onOk=
"handleSubmit"
@
onCancel=
"handleDetailClose"
>
<GLDialog
destroy-on-close=
"true"
:visible
.
sync=
"dialogShow"
:hasFooter=
"false"
mode=
"big"
bigTitle=
"产品详情"
:close-on-click-modal=
"false"
@
onOk=
"handleSubmit"
@
onCancel=
"handleDetailClose"
>
<div
class=
"detail-content"
>
<!-- 商品详情 -->
<div
class=
"goodsInfoCom"
>
...
...
@@ -20,34 +19,29 @@
<span
class=
"num"
>
{{
goodsInfo
.
purchaseOrderCount
||
0
}}
笔
</span>
</span>
</div>
<div
class=
"productCode"
v-if=
"goodsInfo.upgradeGoodsList && goodsInfo.upgradeGoodsList.length > 0"
>
产品编码:
{{
goodsInfo
.
upgradeGoodsList
[
selectIndex
].
type
}}
</div>
<div
class=
"productCode"
v-if=
"goodsInfo.upgradeGoodsList && goodsInfo.upgradeGoodsList.length > 0"
>
产品编码:
{{
goodsInfo
.
upgradeGoodsList
[
selectIndex
].
type
}}
</div>
<!--选择商品规格 v-if="!isSkuArguments"-->
<!--选择商品规格
多规格
v-if="!isSkuArguments"-->
<div
class=
"content fix-header fix-bottom"
v-if=
"goodsInfo.specificationType == 2"
>
<div
class=
"mask"
>
<div
class=
"mask-content"
>
<div
class=
"spec-items"
>
<div
class=
"spec-menu-item js-spec-menu skuCon"
v-for=
"(item, index) in goodsTypeList"
:key=
"item.id"
>
<div
class=
"spec-menu-item js-spec-menu skuCon"
v-for=
"(item, index) in goodsTypeList"
:key=
"item.id"
>
<div
class=
"spec-note label"
>
{{
item
.
name
}}
:
</div>
<div
class=
"spec-choices"
>
<span
v-for=
"(el, i) in item.propertyList"
:key=
"el.id"
class=
"spec-nor skuItem one-line-ellipsis pointer"
:class=
"
{ active: el.selected, disabled: el.disabled }"
@click="handleClickSpecs1(item.id, el.id, el, index, i)">
{{
el
.
name
}}
</span>
<span
v-for=
"(el, i) in item.propertyList"
:key=
"el.id"
class=
"spec-nor skuItem one-line-ellipsis pointer"
:class=
"
{ active: el.selected, disabled: el.disabled }" @click="handleClickSpecs1(item.id, el.id, el, index, i)">
{{
el
.
name
}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 单规格 -->
<div
class=
"skuCon"
v-if=
"goodsInfo.specificationType == 1"
>
<div
class=
"label"
>
规格:
</div>
<div
class=
"itemCon"
>
<div
class=
"skuItem one-line-ellipsis pointer"
:class=
"
{ active: index === selectIndex }"
v-for="(item, index) in goodsInfo.upgradeGoodsList" :key="index" @click="singleClick(item, index)">
{{
item
.
upgradeGoodsName
}}
<div
class=
"skuItem one-line-ellipsis pointer"
:class=
"
{ active: index === selectIndex }" v-for="(item, index) in goodsInfo.upgradeGoodsList" :key="index" @click="singleClick(item, index)">
{{
item
.
purchaseGoodsName
||
item
.
thirdPartyName
||
item
.
upgradeGoodsName
}}
</div>
</div>
</div>
...
...
@@ -64,12 +58,8 @@
<
div
class
=
"munCom"
v
-
if
=
"upgradeGoodsInfo.suitCarType == 2"
>
<
div
class
=
"label"
>
适用车型:
<
/div
>
<
div
class
=
"munItem car-select"
>
<
el
-
select
ref
=
"choose"
:
clearable
=
"false"
width
=
'300'
collapse
-
tags
multiple
@
focus
=
"handleCarDialog"
value
-
key
=
"carTypeId"
v
-
model
=
"goodsInfo.suitCarTypeList"
style
=
"margin-left: 20px;width: 300px;"
placeholder
=
"请选择"
>
<
el
-
option
v
-
for
=
"(children) in goodsInfo.suitCarTypeList"
:
key
=
"children.carTypeId"
:
label
=
"children.carTypeName"
:
value
=
"children"
>
<
/el-option
>
<
el
-
select
ref
=
"choose"
:
clearable
=
"false"
width
=
"300"
collapse
-
tags
multiple
@
focus
=
"handleCarDialog"
value
-
key
=
"carTypeId"
v
-
model
=
"goodsInfo.suitCarTypeList"
style
=
"margin-left: 20px;width: 300px;"
placeholder
=
"请选择"
>
<
el
-
option
v
-
for
=
"children in goodsInfo.suitCarTypeList"
:
key
=
"children.carTypeId"
:
label
=
"children.carTypeName"
:
value
=
"children"
><
/el-option
>
<
/el-select
>
<
/div
>
<
/div
>
...
...
@@ -93,11 +83,8 @@
<
/div
>
<
/div
>
<
/GLDialog
>
<
carBandDialog
v
-
if
=
"relateStoreVisible"
:
upgradeGoodsInfo
=
"goodsInfo"
@
handleRelateStoreConfirm
=
"handleConfirm"
:
relateStoreVisible
.
sync
=
"relateStoreVisible"
:
goodsInfo
=
"goodsInfo"
>
<
/carBandDialog
>
<
carBandDialog
v
-
if
=
"relateStoreVisible"
:
upgradeGoodsInfo
=
"goodsInfo"
@
handleRelateStoreConfirm
=
"handleConfirm"
:
relateStoreVisible
.
sync
=
"relateStoreVisible"
:
goodsInfo
=
"goodsInfo"
><
/carBandDialog
>
<
/div
>
<
/template
>
<
script
>
...
...
@@ -537,12 +524,12 @@ let goodType = [
]
}
]
import
carBandDialog
from
'./carBandDialog'
;
import
carBandDialog
from
'./carBandDialog'
import
{
membraneTypeList
}
from
'@/utils/constants.js'
export
default
{
name
:
'GoodsDetailCom'
,
components
:
{
carBandDialog
,
carBandDialog
}
,
props
:
{
visible
:
{
...
...
@@ -551,7 +538,7 @@ export default {
}
,
selectItemInfo
:
{
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{
}
}
,
goodsId
:
{
type
:
[
String
,
Number
]
...
...
@@ -562,22 +549,28 @@ export default {
data
()
{
return
{
options
:
[{
value
:
'选项1'
,
label
:
'黄金糕'
}
,
{
value
:
'选项2'
,
label
:
'双皮奶'
}
,
{
value
:
'选项3'
,
label
:
'蚵仔煎'
}
,
{
value
:
'选项4'
,
label
:
'龙须面'
}
,
{
value
:
'选项5'
,
label
:
'北京烤鸭'
}
],
options
:
[
{
value
:
'选项1'
,
label
:
'黄金糕'
}
,
{
value
:
'选项2'
,
label
:
'双皮奶'
}
,
{
value
:
'选项3'
,
label
:
'蚵仔煎'
}
,
{
value
:
'选项4'
,
label
:
'龙须面'
}
,
{
value
:
'选项5'
,
label
:
'北京烤鸭'
}
],
relateStoreVisible
:
false
,
// maskVisible: true,
isSkuArguments
:
true
,
...
...
@@ -591,7 +584,7 @@ export default {
selectItemList
:
[],
membraneTypeList
,
goodsInfo
:
{
suitCarTypeList
:
[]
,
suitCarTypeList
:
[]
}
,
selectIndex
:
0
,
handleItemInfo
:
{
...
...
@@ -929,7 +922,7 @@ export default {
}
,
''
)
if
(
flag
)
{
return
this
.
$message
({
message
:
'请选择规格'
,
message
:
'请选择规格'
,
type
:
'error'
,
customClass
:
'msgHierarchy'
}
)
...
...
@@ -942,7 +935,7 @@ export default {
params
=
{
goodsNumber
:
this
.
handleItemInfo
.
goodsNumber
,
upgradeGoodsId
:
item
.
upgradeGoodsId
,
suitCarTypeList
:
this
.
goodsInfo
.
suitCarTypeList
,
suitCarTypeList
:
this
.
goodsInfo
.
suitCarTypeList
}
}
}
)
...
...
@@ -953,11 +946,11 @@ export default {
params
=
{
goodsNumber
:
this
.
handleItemInfo
.
goodsNumber
,
upgradeGoodsId
:
this
.
handleItemInfo
.
upgradeGoodsId
,
suitCarTypeList
:
this
.
goodsInfo
.
suitCarTypeList
,
suitCarTypeList
:
this
.
goodsInfo
.
suitCarTypeList
}
if
(
!
params
.
upgradeGoodsId
)
{
this
.
$message
({
message
:
'商品不存在'
,
message
:
'商品不存在'
,
type
:
'error'
,
customClass
:
'msgHierarchy'
}
)
...
...
@@ -967,7 +960,7 @@ export default {
// 如果是专用商品 但没有选适配车型
if
(
this
.
upgradeGoodsInfo
.
suitCarType
==
2
&&
!
this
.
goodsInfo
.
suitCarTypeList
?.
length
)
{
return
this
.
$message
({
message
:
'请完善商品适用车型'
,
message
:
'请完善商品适用车型'
,
type
:
'error'
,
customClass
:
'msgHierarchy'
}
)
...
...
@@ -977,7 +970,7 @@ export default {
this
.
$apis
.
purchaseShopping
.
shoppingCarAdd
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'res'
)
this
.
$message
({
message
:
'加入购物车成功'
,
message
:
'加入购物车成功'
,
type
:
'success'
,
customClass
:
'msgHierarchy'
}
)
...
...
src/views/purchaseOrder/components/orderDetailDialog.vue
View file @
4f63dee
...
...
@@ -117,10 +117,16 @@ export default {
line
:
1
}
,
{
label
:
'供应商名称'
,
prop
:
'thirdPartyName'
,
width
:
110
}
,
{
label
:
'产品编码'
,
prop
:
'type'
,
width
:
100
}
,
{
label
:
'规格'
,
prop
:
'specificationData'
,
...
...
@@ -139,6 +145,11 @@ export default {
line
:
1
}
,
{
label
:
'产品别名'
,
prop
:
'purchaseGoodsName'
,
width
:
100
}
,
{
label
:
'所属分类'
,
prop
:
'goodsTypeName'
,
width
:
150
...
...
src/views/purchaseOrder/components/orderReturnDialog.vue
View file @
4f63dee
<
template
>
<GLDialog
v-if=
"dialogShow"
bigTitle=
"退货"
mode=
"big"
:visible
.
sync=
"dialogShow"
:close-on-click-modal=
"false"
@
onOk=
"handleConfirm"
@
onCancel=
"dialogShow = false"
:hasFooter=
"true"
>
<GLDialog
v-if=
"dialogShow"
bigTitle=
"退货"
mode=
"big"
:visible
.
sync=
"dialogShow"
:close-on-click-modal=
"false"
@
onOk=
"handleConfirm"
@
onCancel=
"dialogShow = false"
:hasFooter=
"true"
>
<div
class=
"detail-content"
v-if=
"dialogShow"
>
<div
class=
"addressTitle"
>
<img
src=
"@/images/addressIcon.webp"
alt=
""
class=
"icon"
/>
...
...
@@ -17,8 +16,7 @@
</span>
<span
class=
"address"
>
收货地址:
<span
class=
"label"
>
{{
detailInfo
.
provinceName
}}{{
detailInfo
.
cityName
}}{{
detailInfo
.
areaName
}}{{
detailInfo
.
contactAddress
}}
</span>
<span
class=
"label"
>
{{
detailInfo
.
provinceName
}}{{
detailInfo
.
cityName
}}{{
detailInfo
.
areaName
}}{{
detailInfo
.
contactAddress
}}
</span>
</span>
<span
class=
"address"
v-if=
"detailInfo.purchaseOrderRemark"
>
备注:
...
...
@@ -31,24 +29,21 @@
</div>
<div
class=
"table-class"
>
<!-- :pageConf="pageConf" -->
<GLTable
ref=
"purchaseOrderDetailTable"
:tableParams=
"tableParams"
@
refreshTable=
"refreshTable"
:tableData=
"detailInfo.tableData"
:tableTotal=
"detailInfo.tableTotal"
>
<GLTable
ref=
"purchaseOrderDetailTable"
:tableParams=
"tableParams"
@
refreshTable=
"refreshTable"
:tableData=
"detailInfo.tableData"
:tableTotal=
"detailInfo.tableTotal"
>
<template
slot=
"film"
slot-scope=
"scope"
>
<el-tooltip
v-if=
"scope.scope.filmRollList && scope.scope.filmRollList.length > 1"
placement=
"top"
effect=
"light"
>
<el-tooltip
v-if=
"scope.scope.filmRollList && scope.scope.filmRollList.length > 1"
placement=
"top"
effect=
"light"
>
<div
class=
"film-txt"
>
(...
{{
scope
.
scope
.
filmRollList
.
length
}}
)
</div>
<div
slot=
"content"
>
<div
class=
"tool-title"
>
膜卷号
</div>
<div
v-for=
"(item, index) in scope.scope.filmRollList"
:key=
"index"
>
{{
item
}}
</div>
</div>
</el-tooltip>
<div
v-else-if=
"scope.scope.filmRollList && scope.scope.filmRollList.length == 1"
>
{{
scope
.
scope
.
filmRollList
[
0
]
}}
</div>
<div
v-else-if=
"scope.scope.filmRollList && scope.scope.filmRollList.length == 1"
>
{{
scope
.
scope
.
filmRollList
[
0
]
}}
</div>
<div
v-else
>
--
</div>
</
template
>
<
template
slot=
"upgradeGoodsName"
slot-scope=
"scope"
>
<div>
<img
v-if=
"scope.scope.refundStatus == 'Y'"
class=
"return"
src=
"@/assets/retrun.png"
alt=
""
>
<img
v-if=
"scope.scope.refundStatus == 'Y'"
class=
"return"
src=
"@/assets/retrun.png"
alt=
""
/
>
<span>
{{
scope
.
scope
.
upgradeGoodsName
}}
</span>
</div>
</
template
>
...
...
@@ -71,7 +66,7 @@ export default {
},
paramsObj
:
{
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{}
}
},
computed
:
{
...
...
@@ -106,6 +101,11 @@ export default {
line
:
1
},
{
label
:
'供应商名称'
,
prop
:
'thirdPartyName'
,
width
:
110
},
{
label
:
'产品编码'
,
prop
:
'type'
,
width
:
100
...
...
@@ -122,6 +122,11 @@ export default {
line
:
1
},
{
label
:
'产品别名'
,
prop
:
'purchaseGoodsName'
,
width
:
100
},
{
label
:
'所属分类'
,
prop
:
'goodsTypeName'
,
width
:
150
...
...
@@ -179,28 +184,31 @@ export default {
let
selectedData
=
this
.
$refs
.
purchaseOrderDetailTable
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
||
[]
// selectedData = selectedData.filter(item => item.refundStatus == 'N')
if
(
selectedData
.
some
(
item
=>
item
.
refundStatus
==
'Y'
))
{
return
this
.
$message
.
error
(
'商品已退货,请确认后重新操作'
)
;
return
this
.
$message
.
error
(
'商品已退货,请确认后重新操作'
)
}
if
(
!
selectedData
.
length
)
{
return
this
.
$message
.
error
(
'请勾选需退货的商品'
)
;
return
this
.
$message
.
error
(
'请勾选需退货的商品'
)
}
let
params
=
{
orderCode
:
this
.
paramsObj
.
orderCode
,
purchaseOrderGoodsIdList
:
selectedData
.
map
(
item
=>
item
.
id
)
}
console
.
log
(
selectedData
,
'selectedData'
)
this
.
$apis
.
purchaseShopping
.
purchaseOrderGoodsRefund
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
0
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
dialogShow
=
false
this
.
$emit
(
'handleConfirm'
)
}
else
{
this
.
$message
.
error
(
res
.
message
)
}
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
this
.
$apis
.
purchaseShopping
.
purchaseOrderGoodsRefund
(
params
)
.
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
0
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
dialogShow
=
false
this
.
$emit
(
'handleConfirm'
)
}
else
{
this
.
$message
.
error
(
res
.
message
)
}
})
.
catch
(
err
=>
{
console
.
log
(
err
)
})
// this.dialogShow = false
},
dynamicParams
()
{
...
...
@@ -216,7 +224,7 @@ export default {
formatter
:
cellValue
=>
{
return
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
purchaseNumber
}
卷`
:
`
${
cellValue
.
purchaseNumber
}
件`
}
}
,
}
// {
// label: '已入库数量',
// prop: 'inputNumber',
...
...
@@ -303,7 +311,7 @@ export default {
font-size
:
14px
;
color
:
#666666
;
>span
{
>
span
{
margin-right
:
20px
;
margin-bottom
:
10px
;
}
...
...
src/views/purchaseOrder/components/shoppingCartCom.vue
View file @
4f63dee
...
...
@@ -7,8 +7,7 @@
<el-drawer
class=
"shoppingCartDrawerCon"
title=
"购物车"
:visible
.
sync=
"drawer"
size=
"500px"
:direction=
"direction"
>
<div
class=
"headerCon"
v-if=
"goodsList.length"
>
<div
class=
"left"
>
<el-checkbox
:indeterminate=
"isIndeterminate"
@
change=
"handleAllCheckChange(isAllCheck)"
v-model=
"isAllCheck"
>
全选
</el-checkbox>
<el-checkbox
:indeterminate=
"isIndeterminate"
@
change=
"handleAllCheckChange(isAllCheck)"
v-model=
"isAllCheck"
>
全选
</el-checkbox>
<!--
<input
type=
"checkbox"
class=
"pointer"
/>
全选 -->
...
...
@@ -24,17 +23,14 @@
</div>
<div
class=
"goodsTypeCon"
v-for=
"(item, index) in goodsList"
:key=
"index"
>
<div
class=
"itemHeader"
>
<el-checkbox
:indeterminate=
"item.isIndeterminate"
class=
"checkoutBox pointer"
@
change=
"handleGoodsTypeCheckChange(item.goodsTypeCheckout, item)"
v-model=
"item.goodsTypeCheckout"
>
{{
item
.
goodsTypeName
}}
</el-checkbox>
<el-checkbox
:indeterminate=
"item.isIndeterminate"
class=
"checkoutBox pointer"
@
change=
"handleGoodsTypeCheckChange(item.goodsTypeCheckout, item)"
v-model=
"item.goodsTypeCheckout"
>
{{
item
.
goodsTypeName
}}
</el-checkbox>
<!--
<input
type=
"checkbox"
class=
"checkoutBox pointer"
@
change=
"handleGoodsTypeCheckChange(item.goodsTypeCheckout, item)"
v-model=
"item.goodsTypeCheckout"
/>
-->
</div>
<div
class=
"shopgGoodsCon"
v-for=
"(goodsItem, goodsIndex) in item.upgradeGoodsList"
:key=
"goodsIndex"
>
<el-checkbox
class=
"pointer typeCheckoutBox"
@
change=
"handleGoodsCheckChange(goodsItem.selectedFlag, goodsItem)"
v-model=
"goodsItem.selectedFlag"
/>
<el-checkbox
class=
"pointer typeCheckoutBox"
@
change=
"handleGoodsCheckChange(goodsItem.selectedFlag, goodsItem)"
v-model=
"goodsItem.selectedFlag"
/>
<!--
<input
type=
"checkbox"
class=
"pointer typeCheckoutBox"
@
change=
"handleGoodsCheckChange(goodsItem.selectedFlag,goodsItem)"
...
...
@@ -47,24 +43,17 @@
<div
class=
"name one-line-ellipsis"
>
{{
goodsItem
.
upgradeGoodsName
}}
</div>
<div
class=
"price"
>
<!-- v-if="goodsItem.specificationType == 2" .replace(';~;', '/')-->
<span
class=
"label"
v-if=
"goodsItem.specificationType == 2"
>
{{
goodsItem
.
formatSpecificationData
}}
</span>
<span
class=
"label"
v-if=
"goodsItem.specificationType == 2"
>
{{
goodsItem
.
formatSpecificationData
}}
</span>
¥
{{
goodsItem
.
purchasePrice
}}
</div>
<div
class=
"num"
>
<el-input-number
v-model=
"goodsItem.goodsNumber"
@
change=
"handleGoodsNumChange($event, goodsItem.id, goodsItem.upgradeGoodsId, goodsItem.suitCarTypeList || [])"
:min=
"1"
class=
"numInput"
size=
"mini"
:max=
"9999"
></el-input-number>
<el-input-number
v-model=
"goodsItem.goodsNumber"
@
change=
"handleGoodsNumChange($event, goodsItem.id, goodsItem.upgradeGoodsId, goodsItem.suitCarTypeList || [])"
:min=
"1"
class=
"numInput"
size=
"mini"
:max=
"9999"
></el-input-number>
{{
membraneTypeList
.
includes
(
goodsItem
.
goodsType
)
?
`卷(1卷=${goodsItem.convertedValue || 30
}
米)`
:
'件'
}}
<
/div
>
<
div
class
=
"munCom"
v
-
if
=
"goodsItem.suitCarTypeList && goodsItem.suitCarTypeList.length"
>
<
div
class
=
"munItem"
>
<
el
-
select
@
remove
-
tag
=
"handleTagDelete(goodsItem)"
:
ref
=
"'choose' + goodsItem.id"
collapse
-
tags
name
=
"munComInput"
size
=
"mini"
multiple
@
focus
=
"handleCarDialog(goodsItem)"
value
-
key
=
"carTypeId"
v
-
model
=
"goodsItem.suitCarTypeList"
style
=
"margin-top: 10px;width: 240px;"
placeholder
=
"请选择"
>
<
el
-
option
v
-
for
=
"(children) in goodsItem.suitCarTypeList"
:
key
=
"children.carTypeId"
:
label
=
"children.carTypeName"
:
value
=
"children"
>
<
/el-option
>
<
el
-
select
@
remove
-
tag
=
"handleTagDelete(goodsItem)"
:
ref
=
"'choose' + goodsItem.id"
collapse
-
tags
name
=
"munComInput"
size
=
"mini"
multiple
@
focus
=
"handleCarDialog(goodsItem)"
value
-
key
=
"carTypeId"
v
-
model
=
"goodsItem.suitCarTypeList"
style
=
"margin-top: 10px;width: 240px;"
placeholder
=
"请选择"
>
<
el
-
option
v
-
for
=
"children in goodsItem.suitCarTypeList"
:
key
=
"children.carTypeId"
:
label
=
"children.carTypeName"
:
value
=
"children"
><
/el-option
>
<
/el-select
>
<
/div
>
<
/div
>
...
...
@@ -80,9 +69,7 @@
<
el
-
button
class
=
"submitBtn"
@
click
=
"validateGoodsNumber"
type
=
"primary"
>
结算
<
/el-button
>
<
/div
>
<
/el-drawer
>
<
GLDialog
class
=
"addressDialog"
mode
=
"big"
bigTitle
=
"结算确认"
okText
=
"确认结算"
cancelText
=
"取消结算"
:
visible
.
sync
=
"dialogShow"
:
close
-
on
-
click
-
modal
=
"false"
@
onOk
=
"handleSubmit"
@
onCancel
=
"dialogShow = false"
>
<
GLDialog
class
=
"addressDialog"
mode
=
"big"
bigTitle
=
"结算确认"
okText
=
"确认结算"
cancelText
=
"取消结算"
:
visible
.
sync
=
"dialogShow"
:
close
-
on
-
click
-
modal
=
"false"
@
onOk
=
"handleSubmit"
@
onCancel
=
"dialogShow = false"
>
<
div
class
=
"addressTitle"
>
<
img
src
=
"@/images/addressIcon.webp"
alt
=
""
class
=
"icon"
/>
<
span
class
=
"title"
>
{{
addressInfo
.
yqMerchantName
}}
<
/span
>
...
...
@@ -125,8 +112,7 @@
<
/div> --
>
<
div
class
=
"tableTips"
>
采购明细
<
/div
>
<
div
class
=
"table-class"
>
<
GLTable
ref
=
"purchaseOrderDetailTable"
:
tableParams
=
"tableParams"
@
refreshTable
=
"refreshTable"
:
tableData
=
"selectList"
:
hasPage
=
"false"
>
<
GLTable
ref
=
"purchaseOrderDetailTable"
:
tableParams
=
"tableParams"
@
refreshTable
=
"refreshTable"
:
tableData
=
"selectList"
:
hasPage
=
"false"
>
<
template
slot
=
"upgradeGoodsName"
slot
-
scope
=
"scope"
>
<
div
>
<!--
<
img
v
-
if
=
"scope.scope.refundStatus == 'Y'"
class
=
"retrun"
src
=
"@/assets/retrun.png"
alt
=
""
>
-->
...
...
@@ -136,8 +122,7 @@
<
template
slot
=
"film"
slot
-
scope
=
"scope"
>
<
el
-
tooltip
v
-
if
=
"scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
placement
=
"top"
>
<
div
slot
=
"content"
class
=
"car-type-list"
>
<
div
v
-
for
=
"(item, index) in scope.scope.suitCarTypeList"
:
key
=
"index"
>
{{
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
}}
<
/div
>
<
div
v
-
for
=
"(item, index) in scope.scope.suitCarTypeList"
:
key
=
"index"
>
{{
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
}}
<
/div
>
<
/div
>
<
div
>
{{
scope
.
scope
.
suitCarTypeList
|
formatCar
}}
<
/div
>
<
/el-tooltip
>
...
...
@@ -156,39 +141,38 @@
<
div
class
=
"item-remark orderInfoCom"
>
<
div
class
=
"label"
>
备注
:
<
/div
>
<
div
class
=
"item-content"
>
<
el
-
input
show
-
word
-
limit
type
=
"textarea"
maxlength
=
"200"
:
rows
=
"3"
placeholder
=
"备注说明"
v
-
model
=
"remarks"
><
/el-input
>
<
el
-
input
show
-
word
-
limit
type
=
"textarea"
maxlength
=
"200"
:
rows
=
"3"
placeholder
=
"备注说明"
v
-
model
=
"remarks"
><
/el-input
>
<
/div
>
<
/div
>
<!--
<
/div> --
>
<
/GLDialog
>
<
carBandDialog
v
-
if
=
"relateStoreVisible"
@
handleRelateStoreConfirm
=
"handleConfirm"
:
relateStoreVisible
.
sync
=
"relateStoreVisible"
:
upgradeGoodsInfo
=
"goodsInfo"
>
<
/carBandDialog
>
<
carBandDialog
v
-
if
=
"relateStoreVisible"
@
handleRelateStoreConfirm
=
"handleConfirm"
:
relateStoreVisible
.
sync
=
"relateStoreVisible"
:
upgradeGoodsInfo
=
"goodsInfo"
><
/carBandDialog
>
<
/div
>
<
/template
>
<
script
>
import
carBandDialog
from
'./carBandDialog'
;
import
carBandDialog
from
'./carBandDialog'
import
{
limitPrice
}
from
'@/common/format'
import
{
membraneTypeList
}
from
'@/utils/constants.js'
export
default
{
name
:
'ShoppingCartCom'
,
components
:
{
carBandDialog
,
carBandDialog
}
,
props
:
{
addressInfo
:
{
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{
}
}
}
,
filters
:
{
formatCar
(
list
)
{
console
.
log
(
list
,
'list'
)
let
str
=
list
.
map
(
item
=>
{
return
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
}
).
join
(
','
)
let
str
=
list
.
map
(
item
=>
{
return
`${item.brandName
}
-${item.childName
}
-${item.seriesName
}
-${item.carTypeName
}
`
}
)
.
join
(
','
)
return
str
.
length
>
15
?
str
.
substring
(
0
,
15
)
+
'...'
:
str
}
}
,
...
...
@@ -211,8 +195,13 @@ export default {
width
:
100
}
,
{
label
:
'供应商名称'
,
prop
:
'thirdPartyName'
,
width
:
120
}
,
{
label
:
'规格'
,
prop
:
'formatSpecificationData'
,
prop
:
'formatSpecificationData'
// width: 100
}
,
{
...
...
@@ -226,12 +215,12 @@ export default {
width
:
150
,
line
:
1
}
,
//
{
// label: '系列
',
// prop: 'g
oodsName',
//
width: 100,
//
line: 1
//
}
,
{
label
:
'产品别名
'
,
prop
:
'purchaseG
oodsName'
,
width
:
100
,
line
:
1
}
,
{
label
:
'所属分类'
,
prop
:
'goodsTypeName'
,
...
...
@@ -265,8 +254,8 @@ export default {
label: '备注',
addHtml: 'remark',
width: 120
// width:
}
,
// width:
}
]
}
,
goodsInfo: {
}
,
...
...
@@ -310,7 +299,6 @@ export default {
}
}
,
computed: {
goodsSelectStatus() {
return this.goodsList.reduce((list, item) => {
item.upgradeGoodsList.forEach(goodsItem => {
...
...
@@ -381,6 +369,7 @@ export default {
}
// 判断 是否有选中的商品
const selectList = this.goodsSelectStatus.reduce((list, item) => {
console.log(item, 8888)
if (item.selectedFlag === 'Y') {
list.push({
// upgradeGoodsId: item.upgradeGoodsId,
...
...
@@ -389,7 +378,10 @@ export default {
type: item.upgradeGoods.type,
goodsNumber: item.goodsNumber,
remark: ''
remark: '',
purchaseGoodsName: item.upgradeGoods.purchaseGoodsName,
thirdPartyName: item.upgradeGoods.thirdPartyName,
upgradeGoodsName: item.upgradeGoods.upgradeGoodsName
}
)
}
return list
...
...
@@ -488,7 +480,7 @@ export default {
upgradeGoods: cur.upgradeGoods,
goodsInfo: cur.goodsInfo,
purchaseGoodsInfo: cur.purchaseGoodsInfo,
upgradeGoodsName: cur.upgradeGoods.upgradeGoodsName,
upgradeGoodsName: cur.upgradeGoods.
specificationType == 1 ? cur.upgradeGoods.purchaseGoodsName || cur.upgradeGoods.thirdPartyName || cur.upgradeGoods.upgradeGoodsName : cur.upgradeGoods.
upgradeGoodsName,
specificationType: cur.upgradeGoods.specificationType,
formatSpecificationData: cur.upgradeGoods.formatSpecificationData ? cur.upgradeGoods.formatSpecificationData.replaceAll(';~;', '/') : '',
upgradeGoodsId: cur.upgradeGoodsId,
...
...
@@ -867,8 +859,6 @@ li {
span {
margin-bottom: 20px;
}
}
.info {
...
...
@@ -919,7 +909,6 @@ li {
}
.editIcon {
width: 16px;
height: 16px;
vertical-align: -3px;
...
...
@@ -956,7 +945,7 @@ li {
font-size: 14px;
color: #666666;
>span {
>
span {
margin-right: 20px;
margin-bottom: 10px;
}
...
...
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