Commit 8f7d8e8d by 前端

Merge branch 'SAAS+V5.8.0' into 'master'

上线合并

See merge request !20
2 parents 8b1afffa 5570773d
...@@ -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: '调拨数量',
......
...@@ -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: '调拨数量',
......
...@@ -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: '采购数量',
......
...@@ -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: '采购数量',
......
...@@ -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
} }
}, },
...@@ -168,11 +174,11 @@ export default { ...@@ -168,11 +174,11 @@ export default {
label: '当前审核节点', label: '当前审核节点',
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,34 +285,38 @@ export default { ...@@ -280,34 +285,38 @@ 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) ||
(purchaseOrderInfo.status === 8 && staffType == 3) || // 商务审核
// 总监审核 (purchaseOrderInfo.status === 8 && staffType == 3) ||
(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
} }
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!