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 {
orderInfo: {},
keyword: '',
orderBasicInfoList: [
{ label: '商品名称', value: 'goodsName' },
{ label: '商品编码', value: 'productCode' },
{ label: '产品名称', value: 'goodsName' },
{ label: '产品编码', value: 'productCode' },
{ label: '规格', value: 'specificationData' },
{
label: '调拨数量',
......
......@@ -23,8 +23,8 @@
<!-- 订单基本信息 -->
<div class="info-section">
<div class="title">
商品信息
<span class="title-tip">点击商品名称可查看商品全部信息</span>
产品信息
<span class="title-tip">点击产品名称可查看商品全部信息</span>
</div>
<StickyTable :columns="tableColumns" :data="allocateOrderInfo.stockAllocateDetailList" :height="allocateOrderInfo.stockAllocateDetailList.length > 5 ? '216px' : 'auto'">
<template #goodsName="{ row }">
......@@ -93,8 +93,8 @@ export default {
approveVisible: false,
rejectVisible: false,
tableColumns: [
{ label: '商品名称', prop: 'goodsName', width: '120px' },
{ label: '商品编码', prop: 'productCode', width: '100px' },
{ label: '产品名称', prop: 'goodsName', width: '120px' },
{ label: '产品编码', prop: 'productCode', width: '100px' },
{ label: '规格', prop: 'specificationData', width: '90px' },
{
label: '调拨数量',
......
......@@ -24,10 +24,10 @@ export default {
hideBtn: true,
editFormData: [
{
label: '商品名称',
label: '产品名称',
prop: 'upgradeGoodsName'
},
{ label: '商品编码', prop: 'type', width: '100px' },
{ label: '产品编码', prop: 'type', width: '100px' },
{ label: '规格', prop: 'specificationData', width: '90px' },
{
label: '采购数量',
......
......@@ -62,10 +62,10 @@ export default {
keyword: '',
orderBasicInfoList: [
{
label: '商品名称',
label: '产品名称',
value: 'upgradeGoodsName'
},
{ label: '商品编码', value: 'type' },
{ label: '产品编码', value: 'type' },
{ label: '规格', value: 'specificationData' },
{
label: '采购数量',
......
......@@ -23,8 +23,8 @@
<!-- 订单基本信息 -->
<div class="info-section">
<div class="title">
商品信息
<span class="title-tip">点击商品名称可查看商品全部信息</span>
产品信息
<span class="title-tip">点击产品名称可查看商品全部信息</span>
</div>
<sticky-table
:columns="tableColumns"
......@@ -89,14 +89,14 @@ export default {
rejectVisible: false,
detailVisible: false,
tableColumns: [
{ label: '商品名称', prop: 'upgradeGoodsName', width: '120px' },
{ label: '商品编码', prop: 'type', width: '100px' },
{ label: '产品名称', prop: 'upgradeGoodsName', width: '120px' },
{ label: '产品编码', prop: 'type', width: '100px' },
{ label: '规格', prop: 'specificationData', width: '90px' },
{
label: '采购数量',
prop: 'goodsNumber',
width: '100px',
formatter: (row) => {
formatter: row => {
const unit = row.conversionValue ? '卷' : '件'
return (row.goodsNumber || 0) + unit
}
......@@ -105,7 +105,7 @@ export default {
label: '库存总量',
prop: 'inventoryTotal',
width: '100px',
formatter: (row) => {
formatter: row => {
const total = (row.goodsNumber || 0) * (row.conversionValue || 1)
// 如果conversionValue为空,应该怎么算?题目说"库存数量 = goodsNumber * conversionValue 就是库存总量",但如果conversionValue为空,通常意味着是1或者就是goodsNumber。题目后半句说"如果conversionValue为空,单位就是件",暗示这种情况下库存总量可能就是goodsNumber。 这里假设 conversionValue 为空时按 1 计算,或者直接取 goodsNumber。
// 根据题目: "库存数量 = goodsNumber * conversionValue 就是库存总量。单位,如果conversionValue 为空,单位就是件,如果conversionValue 不为空,单位就是米。"
......@@ -120,21 +120,27 @@ export default {
}
},
{
label: '已发货数量', prop: 'purchaseNumber', width: '100px',
formatter: (row) => {
label: '已发货数量',
prop: 'purchaseNumber',
width: '100px',
formatter: row => {
const unit = row.conversionValue ? '卷' : '件'
return (row.purchaseNumber || 0) + unit
}
},
{
label: '单价', prop: 'upgradePurchasePrice', width: '90px',
formatter: (row) => {
label: '单价',
prop: 'upgradePurchasePrice',
width: '90px',
formatter: row => {
return '¥' + row.upgradePurchasePrice
}
},
{
label: '总价', prop: 'goodsTotalPrice', width: '90px',
formatter: (row) => {
label: '总价',
prop: 'goodsTotalPrice',
width: '90px',
formatter: row => {
return '¥' + row.goodsTotalPrice
}
},
......@@ -168,11 +174,11 @@ export default {
label: '当前审核节点',
value: '商务审核',
formatter: cellValue => {
const keys = {
1:'运营审核',
8:'商务审核',
10:'总监审核',
2:'经理审核'
const keys = {
1: '运营审核',
8: '商务审核',
10: '总监审核',
2: '经理审核'
}
return keys[cellValue.status] || '--'
}
......@@ -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=4&name=glsadmin 采购发货审核
created() {
this.purchaseOrderDetailData()
},
computed: {
......@@ -280,34 +285,38 @@ export default {
(deliveryStatus === 1 && staffType == 4 && status == 5)
)
},
showRejectBtn(){
const purchaseOrderInfo = this.purchaseOrderInfo;
showRejectBtn() {
const purchaseOrderInfo = this.purchaseOrderInfo
const staffType = this.staffType
// 运营审核
return (purchaseOrderInfo.status === 1 && staffType == 2) ||
// 经理审核
(purchaseOrderInfo.status === 2 && staffType == 6) ||
// 商务审核
(purchaseOrderInfo.status === 8 && staffType == 3) ||
// 总监审核
(purchaseOrderInfo.status === 10 && staffType == 5) ||
// 采购发货
(purchaseOrderInfo.deliveryStatus === 1 && staffType == 4 && purchaseOrderInfo.status == 5)
return (
(purchaseOrderInfo.status === 1 && staffType == 2) ||
// 经理审核
(purchaseOrderInfo.status === 2 && staffType == 6) ||
// 商务审核
(purchaseOrderInfo.status === 8 && staffType == 3) ||
// 总监审核
(purchaseOrderInfo.status === 10 && staffType == 5) ||
// 采购发货
(purchaseOrderInfo.deliveryStatus === 1 && staffType == 4 && purchaseOrderInfo.status == 5)
)
},
showApproveBtn(){
const purchaseOrderInfo = this.purchaseOrderInfo;
showApproveBtn() {
const purchaseOrderInfo = this.purchaseOrderInfo
const staffType = this.staffType
// 运营审核
return (purchaseOrderInfo.status === 1 && staffType == 2) ||
// 经理审核
(purchaseOrderInfo.status === 2 && staffType == 6) ||
// 商务审核
(purchaseOrderInfo.status === 8 && staffType == 3) ||
// 总监审核
(purchaseOrderInfo.status === 10 && staffType == 5)
},
return (
(purchaseOrderInfo.status === 1 && staffType == 2) ||
// 经理审核
(purchaseOrderInfo.status === 2 && staffType == 6) ||
// 商务审核
(purchaseOrderInfo.status === 8 && staffType == 3) ||
// 总监审核
(purchaseOrderInfo.status === 10 && staffType == 5)
)
}
},
mounted() { },
mounted() {},
methods: {
handleApproveCancel() {
this.approveVisible = false
......@@ -355,7 +364,7 @@ export default {
path: '/purchase/detail',
query: {
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!