Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
wx-notification
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 8f7d8e8d
authored
May 19, 2026
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.8.0' into 'master'
上线合并 See merge request
!20
2 parents
8b1afffa
5570773d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
36 deletions
src/views/cannibalize/detail.vue
src/views/cannibalize/index.vue
src/views/purchase/components/detailComp.vue
src/views/purchase/detail.vue
src/views/purchase/index.vue
src/views/cannibalize/detail.vue
View file @
8f7d8e8
...
@@ -62,8 +62,8 @@ export default {
...
@@ -62,8 +62,8 @@ export default {
orderInfo
:
{},
orderInfo
:
{},
keyword
:
''
,
keyword
:
''
,
orderBasicInfoList
:
[
orderBasicInfoList
:
[
{
label
:
'
商
品名称'
,
value
:
'goodsName'
},
{
label
:
'
产
品名称'
,
value
:
'goodsName'
},
{
label
:
'
商
品编码'
,
value
:
'productCode'
},
{
label
:
'
产
品编码'
,
value
:
'productCode'
},
{
label
:
'规格'
,
value
:
'specificationData'
},
{
label
:
'规格'
,
value
:
'specificationData'
},
{
{
label
:
'调拨数量'
,
label
:
'调拨数量'
,
...
...
src/views/cannibalize/index.vue
View file @
8f7d8e8
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
<!-- 订单基本信息 -->
<!-- 订单基本信息 -->
<div
class=
"info-section"
>
<div
class=
"info-section"
>
<div
class=
"title"
>
<div
class=
"title"
>
商
品信息
产
品信息
<span
class=
"title-tip"
>
点击
商
品名称可查看商品全部信息
</span>
<span
class=
"title-tip"
>
点击
产
品名称可查看商品全部信息
</span>
</div>
</div>
<StickyTable
:columns=
"tableColumns"
:data=
"allocateOrderInfo.stockAllocateDetailList"
:height=
"allocateOrderInfo.stockAllocateDetailList.length > 5 ? '216px' : 'auto'"
>
<StickyTable
:columns=
"tableColumns"
:data=
"allocateOrderInfo.stockAllocateDetailList"
:height=
"allocateOrderInfo.stockAllocateDetailList.length > 5 ? '216px' : 'auto'"
>
<template
#
goodsName=
"
{ row }">
<template
#
goodsName=
"
{ row }">
...
@@ -93,8 +93,8 @@ export default {
...
@@ -93,8 +93,8 @@ export default {
approveVisible
:
false
,
approveVisible
:
false
,
rejectVisible
:
false
,
rejectVisible
:
false
,
tableColumns
:
[
tableColumns
:
[
{
label
:
'
商
品名称'
,
prop
:
'goodsName'
,
width
:
'120px'
},
{
label
:
'
产
品名称'
,
prop
:
'goodsName'
,
width
:
'120px'
},
{
label
:
'
商
品编码'
,
prop
:
'productCode'
,
width
:
'100px'
},
{
label
:
'
产
品编码'
,
prop
:
'productCode'
,
width
:
'100px'
},
{
label
:
'规格'
,
prop
:
'specificationData'
,
width
:
'90px'
},
{
label
:
'规格'
,
prop
:
'specificationData'
,
width
:
'90px'
},
{
{
label
:
'调拨数量'
,
label
:
'调拨数量'
,
...
...
src/views/purchase/components/detailComp.vue
View file @
8f7d8e8
...
@@ -24,10 +24,10 @@ export default {
...
@@ -24,10 +24,10 @@ export default {
hideBtn
:
true
,
hideBtn
:
true
,
editFormData
:
[
editFormData
:
[
{
{
label
:
'
商
品名称'
,
label
:
'
产
品名称'
,
prop
:
'upgradeGoodsName'
prop
:
'upgradeGoodsName'
},
},
{
label
:
'
商
品编码'
,
prop
:
'type'
,
width
:
'100px'
},
{
label
:
'
产
品编码'
,
prop
:
'type'
,
width
:
'100px'
},
{
label
:
'规格'
,
prop
:
'specificationData'
,
width
:
'90px'
},
{
label
:
'规格'
,
prop
:
'specificationData'
,
width
:
'90px'
},
{
{
label
:
'采购数量'
,
label
:
'采购数量'
,
...
...
src/views/purchase/detail.vue
View file @
8f7d8e8
...
@@ -62,10 +62,10 @@ export default {
...
@@ -62,10 +62,10 @@ export default {
keyword
:
''
,
keyword
:
''
,
orderBasicInfoList
:
[
orderBasicInfoList
:
[
{
{
label
:
'
商
品名称'
,
label
:
'
产
品名称'
,
value
:
'upgradeGoodsName'
value
:
'upgradeGoodsName'
},
},
{
label
:
'
商
品编码'
,
value
:
'type'
},
{
label
:
'
产
品编码'
,
value
:
'type'
},
{
label
:
'规格'
,
value
:
'specificationData'
},
{
label
:
'规格'
,
value
:
'specificationData'
},
{
{
label
:
'采购数量'
,
label
:
'采购数量'
,
...
...
src/views/purchase/index.vue
View file @
8f7d8e8
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
<!-- 订单基本信息 -->
<!-- 订单基本信息 -->
<div
class=
"info-section"
>
<div
class=
"info-section"
>
<div
class=
"title"
>
<div
class=
"title"
>
商
品信息
产
品信息
<span
class=
"title-tip"
>
点击
商
品名称可查看商品全部信息
</span>
<span
class=
"title-tip"
>
点击
产
品名称可查看商品全部信息
</span>
</div>
</div>
<sticky-table
<sticky-table
:columns=
"tableColumns"
:columns=
"tableColumns"
...
@@ -89,14 +89,14 @@ export default {
...
@@ -89,14 +89,14 @@ export default {
rejectVisible
:
false
,
rejectVisible
:
false
,
detailVisible
:
false
,
detailVisible
:
false
,
tableColumns
:
[
tableColumns
:
[
{
label
:
'
商
品名称'
,
prop
:
'upgradeGoodsName'
,
width
:
'120px'
},
{
label
:
'
产
品名称'
,
prop
:
'upgradeGoodsName'
,
width
:
'120px'
},
{
label
:
'
商
品编码'
,
prop
:
'type'
,
width
:
'100px'
},
{
label
:
'
产
品编码'
,
prop
:
'type'
,
width
:
'100px'
},
{
label
:
'规格'
,
prop
:
'specificationData'
,
width
:
'90px'
},
{
label
:
'规格'
,
prop
:
'specificationData'
,
width
:
'90px'
},
{
{
label
:
'采购数量'
,
label
:
'采购数量'
,
prop
:
'goodsNumber'
,
prop
:
'goodsNumber'
,
width
:
'100px'
,
width
:
'100px'
,
formatter
:
(
row
)
=>
{
formatter
:
row
=>
{
const
unit
=
row
.
conversionValue
?
'卷'
:
'件'
const
unit
=
row
.
conversionValue
?
'卷'
:
'件'
return
(
row
.
goodsNumber
||
0
)
+
unit
return
(
row
.
goodsNumber
||
0
)
+
unit
}
}
...
@@ -105,7 +105,7 @@ export default {
...
@@ -105,7 +105,7 @@ export default {
label
:
'库存总量'
,
label
:
'库存总量'
,
prop
:
'inventoryTotal'
,
prop
:
'inventoryTotal'
,
width
:
'100px'
,
width
:
'100px'
,
formatter
:
(
row
)
=>
{
formatter
:
row
=>
{
const
total
=
(
row
.
goodsNumber
||
0
)
*
(
row
.
conversionValue
||
1
)
const
total
=
(
row
.
goodsNumber
||
0
)
*
(
row
.
conversionValue
||
1
)
// 如果conversionValue为空,应该怎么算?题目说"库存数量 = goodsNumber * conversionValue 就是库存总量",但如果conversionValue为空,通常意味着是1或者就是goodsNumber。题目后半句说"如果conversionValue为空,单位就是件",暗示这种情况下库存总量可能就是goodsNumber。 这里假设 conversionValue 为空时按 1 计算,或者直接取 goodsNumber。
// 如果conversionValue为空,应该怎么算?题目说"库存数量 = goodsNumber * conversionValue 就是库存总量",但如果conversionValue为空,通常意味着是1或者就是goodsNumber。题目后半句说"如果conversionValue为空,单位就是件",暗示这种情况下库存总量可能就是goodsNumber。 这里假设 conversionValue 为空时按 1 计算,或者直接取 goodsNumber。
// 根据题目: "库存数量 = goodsNumber * conversionValue 就是库存总量。单位,如果conversionValue 为空,单位就是件,如果conversionValue 不为空,单位就是米。"
// 根据题目: "库存数量 = goodsNumber * conversionValue 就是库存总量。单位,如果conversionValue 为空,单位就是件,如果conversionValue 不为空,单位就是米。"
...
@@ -120,21 +120,27 @@ export default {
...
@@ -120,21 +120,27 @@ export default {
}
}
},
},
{
{
label
:
'已发货数量'
,
prop
:
'purchaseNumber'
,
width
:
'100px'
,
label
:
'已发货数量'
,
formatter
:
(
row
)
=>
{
prop
:
'purchaseNumber'
,
width
:
'100px'
,
formatter
:
row
=>
{
const
unit
=
row
.
conversionValue
?
'卷'
:
'件'
const
unit
=
row
.
conversionValue
?
'卷'
:
'件'
return
(
row
.
purchaseNumber
||
0
)
+
unit
return
(
row
.
purchaseNumber
||
0
)
+
unit
}
}
},
},
{
{
label
:
'单价'
,
prop
:
'upgradePurchasePrice'
,
width
:
'90px'
,
label
:
'单价'
,
formatter
:
(
row
)
=>
{
prop
:
'upgradePurchasePrice'
,
width
:
'90px'
,
formatter
:
row
=>
{
return
'¥'
+
row
.
upgradePurchasePrice
return
'¥'
+
row
.
upgradePurchasePrice
}
}
},
},
{
{
label
:
'总价'
,
prop
:
'goodsTotalPrice'
,
width
:
'90px'
,
label
:
'总价'
,
formatter
:
(
row
)
=>
{
prop
:
'goodsTotalPrice'
,
width
:
'90px'
,
formatter
:
row
=>
{
return
'¥'
+
row
.
goodsTotalPrice
return
'¥'
+
row
.
goodsTotalPrice
}
}
},
},
...
@@ -169,10 +175,10 @@ export default {
...
@@ -169,10 +175,10 @@ export default {
value
:
'商务审核'
,
value
:
'商务审核'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
const
keys
=
{
const
keys
=
{
1
:
'运营审核'
,
1
:
'运营审核'
,
8
:
'商务审核'
,
8
:
'商务审核'
,
10
:
'总监审核'
,
10
:
'总监审核'
,
2
:
'经理审核'
2
:
'经理审核'
}
}
return
keys
[
cellValue
.
status
]
||
'--'
return
keys
[
cellValue
.
status
]
||
'--'
}
}
...
@@ -265,7 +271,6 @@ export default {
...
@@ -265,7 +271,6 @@ export default {
// 第二步:http://192.168.2.111:9527/dj-scrm-wx-work-main-test/#/purchase?orderCode=CG202407158682&staffType=3&name=glsadmin 商务审核
// 第二步:http://192.168.2.111:9527/dj-scrm-wx-work-main-test/#/purchase?orderCode=CG202407158682&staffType=3&name=glsadmin 商务审核
// 第二步: http://192.168.2.111:9527/dj-scrm-wx-work-main-test/#/purchase?orderCode=CG202407158682&staffType=4&name=glsadmin 采购发货审核
// 第二步: http://192.168.2.111:9527/dj-scrm-wx-work-main-test/#/purchase?orderCode=CG202407158682&staffType=4&name=glsadmin 采购发货审核
created
()
{
created
()
{
this
.
purchaseOrderDetailData
()
this
.
purchaseOrderDetailData
()
},
},
computed
:
{
computed
:
{
...
@@ -280,11 +285,12 @@ export default {
...
@@ -280,11 +285,12 @@ export default {
(
deliveryStatus
===
1
&&
staffType
==
4
&&
status
==
5
)
(
deliveryStatus
===
1
&&
staffType
==
4
&&
status
==
5
)
)
)
},
},
showRejectBtn
(){
showRejectBtn
()
{
const
purchaseOrderInfo
=
this
.
purchaseOrderInfo
;
const
purchaseOrderInfo
=
this
.
purchaseOrderInfo
const
staffType
=
this
.
staffType
const
staffType
=
this
.
staffType
// 运营审核
// 运营审核
return
(
purchaseOrderInfo
.
status
===
1
&&
staffType
==
2
)
||
return
(
(
purchaseOrderInfo
.
status
===
1
&&
staffType
==
2
)
||
// 经理审核
// 经理审核
(
purchaseOrderInfo
.
status
===
2
&&
staffType
==
6
)
||
(
purchaseOrderInfo
.
status
===
2
&&
staffType
==
6
)
||
// 商务审核
// 商务审核
...
@@ -293,21 +299,24 @@ export default {
...
@@ -293,21 +299,24 @@ export default {
(
purchaseOrderInfo
.
status
===
10
&&
staffType
==
5
)
||
(
purchaseOrderInfo
.
status
===
10
&&
staffType
==
5
)
||
// 采购发货
// 采购发货
(
purchaseOrderInfo
.
deliveryStatus
===
1
&&
staffType
==
4
&&
purchaseOrderInfo
.
status
==
5
)
(
purchaseOrderInfo
.
deliveryStatus
===
1
&&
staffType
==
4
&&
purchaseOrderInfo
.
status
==
5
)
)
},
},
showApproveBtn
(){
showApproveBtn
()
{
const
purchaseOrderInfo
=
this
.
purchaseOrderInfo
;
const
purchaseOrderInfo
=
this
.
purchaseOrderInfo
const
staffType
=
this
.
staffType
const
staffType
=
this
.
staffType
// 运营审核
// 运营审核
return
(
purchaseOrderInfo
.
status
===
1
&&
staffType
==
2
)
||
return
(
(
purchaseOrderInfo
.
status
===
1
&&
staffType
==
2
)
||
// 经理审核
// 经理审核
(
purchaseOrderInfo
.
status
===
2
&&
staffType
==
6
)
||
(
purchaseOrderInfo
.
status
===
2
&&
staffType
==
6
)
||
// 商务审核
// 商务审核
(
purchaseOrderInfo
.
status
===
8
&&
staffType
==
3
)
||
(
purchaseOrderInfo
.
status
===
8
&&
staffType
==
3
)
||
// 总监审核
// 总监审核
(
purchaseOrderInfo
.
status
===
10
&&
staffType
==
5
)
(
purchaseOrderInfo
.
status
===
10
&&
staffType
==
5
)
)
}
},
},
},
mounted
()
{},
mounted
()
{
},
methods
:
{
methods
:
{
handleApproveCancel
()
{
handleApproveCancel
()
{
this
.
approveVisible
=
false
this
.
approveVisible
=
false
...
@@ -355,7 +364,7 @@ export default {
...
@@ -355,7 +364,7 @@ export default {
path
:
'/purchase/detail'
,
path
:
'/purchase/detail'
,
query
:
{
query
:
{
id
:
row
.
id
,
id
:
row
.
id
,
staffType
:
this
.
staffType
staffType
:
this
.
staffType
}
}
})
})
},
},
...
...
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