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