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 e80b18d5
authored
Sep 11, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug修复
1 parent
a7e72bc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
25 deletions
src/views/purchaseOrder/components/shoppingCartCom.vue
src/views/purchaseOrder/components/shoppingCartCom.vue
View file @
e80b18d
...
...
@@ -80,8 +80,8 @@
<
el
-
button
class
=
"submitBtn"
@
click
=
"validateGoodsNumber"
type
=
"primary"
>
结算
<
/el-button
>
<
/div
>
<
/el-drawer
>
<
GLDialog
class
=
"addressDialog"
mode
=
"big"
bigTitle
=
"结算确认"
okText
=
"确
定结算"
:
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"
/>
...
...
@@ -204,11 +204,11 @@ export default {
// width: 120,
line
:
1
}
,
//
{
//
label: '商品编码',
//
prop: 'type',
//
width: 100
//
}
,
{
label
:
'商品编码'
,
prop
:
'type'
,
width
:
100
}
,
{
label
:
'规格'
,
prop
:
'formatSpecificationData'
,
...
...
@@ -219,6 +219,12 @@ export default {
addHtml
:
'film'
,
width
:
200
}
,
{
label
:
'系列'
,
prop
:
'goodsName'
,
width
:
150
,
line
:
1
}
,
//
{
// label: '系列',
// prop: 'goodsName',
...
...
@@ -228,38 +234,36 @@ export default {
{
label
:
'所属分类'
,
prop
:
'goodsTypeName'
,
// width: 15
0
width
:
9
0
}
,
{
label
:
'采购数量'
,
prop
:
'goodsNumber'
,
width
:
90
}
,
{
label
:
'库存总量'
,
prop
:
'goodsTypeName'
,
formatter
:
cellValue
=>
{
let
unit
=
cellValue
.
goodsInfo
.
goodsType
==
1
?
'米'
:
'件'
// let condition = list.includes(cellValue[attr]) ? `$
{
cellValue
.
conversionValue
?
cellValue
.
goodsNumber
*
cellValue
.
conversionValue
:
'-'
}米
` : `
$
{
cellValue
.
goodsNumber
}件
`
let condition = (cellValue.goodsInfo.convertedValue ? cellValue.goodsNumber * cellValue.goodsInfo.convertedValue : cellValue.goodsNumber) + unit
return condition
}
,
width: 100
}
,
//
{
// label: '库存总量',
// prop: 'goodsTypeName',
// formatter: cellValue =>
{
// // 商品来源 1-商城采购 2-自采入库
// let list = this.paramsObj.purchaseType == 1 ? membraneTypeList : goodsTypeList
// let attr = this.paramsObj.purchaseType == 1 ? 'goodsType' : 'goodsTypeName'
// let unit = list.includes(cellValue[attr]) ? '米' : '件'
// // let condition = list.includes(cellValue[attr]) ? `$
{
cellValue
.
conversionValue
?
cellValue
.
goodsNumber
*
cellValue
.
conversionValue
:
'-'
}米
` : `
$
{
cellValue
.
goodsNumber
}件
`
// let condition = (cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : cellValue.goodsNumber) + unit
// return condition
//
}
,
// width: 100
//
}
,
{
label: '采购
价
',
label: '采购
总价/元
',
prop: 'goodsTotalPrice',
formatter: cellValue => {
return '¥' +
cellValue.purchasePrice
return '¥' +
(cellValue.goodsNumber * cellValue.purchaseGoodsInfo.purchasePrice)
}
,
width: 120
}
,
{
label: '备注',
addHtml: 'remark',
width: 120
// width:
}
,
]
...
...
@@ -309,12 +313,15 @@ export default {
goodsSelectStatus() {
return this.goodsList.reduce((list, item) => {
item.upgradeGoodsList.forEach(goodsItem => {
console.log(item, goodsItem, 'gods')
list.push({
...item,
...goodsItem,
id: goodsItem.id,
upgradeGoodsId: goodsItem.upgradeGoodsId,
selectedFlag: goodsItem.selectedFlag ? 'Y' : 'N',
goodsName: goodsItem.goodsInfo.goodsName,
type: goodsItem.upgradeGoods.type,
goodsNumber: goodsItem.goodsNumber
}
)
}
)
...
...
@@ -378,6 +385,8 @@ export default {
// upgradeGoodsId: item.upgradeGoodsId,
...item,
id: item.id,
type: item.upgradeGoods.type,
goodsNumber: item.goodsNumber,
remark: ''
}
)
...
...
@@ -475,6 +484,9 @@ export default {
this.goodsList = result.map(item => {
const upgradeGoodsList = item.list.reduce((total, cur, index) => {
total.push({
upgradeGoods: cur.upgradeGoods,
goodsInfo: cur.goodsInfo,
purchaseGoodsInfo: cur.purchaseGoodsInfo,
upgradeGoodsName: cur.upgradeGoods.upgradeGoodsName,
specificationType: cur.upgradeGoods.specificationType,
formatSpecificationData: cur.upgradeGoods.formatSpecificationData ? cur.upgradeGoods.formatSpecificationData.replaceAll(';~;', '/') : '',
...
...
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