diff --git a/src/views/productplan/workbench/order.vue b/src/views/productplan/workbench/order.vue index da56a98..5de4ec7 100644 --- a/src/views/productplan/workbench/order.vue +++ b/src/views/productplan/workbench/order.vue @@ -90,16 +90,7 @@
{{ parseTime(scope.row[item]) }}
{{ parseTime(scope.row[item]) }}
{{ fieldTrans(scope.row[item]) }}
+ :class="[colorData[scope.row[item]], 'bg-div']"> {{ fieldTrans(scope.row[item]) }}
{{ orderTypeTrans(scope.row[item]) }}
{{ scope.row[item] }} @@ -297,16 +288,9 @@ @@ -422,6 +406,18 @@ export default { detailsHeaders: [], detailsTimeHeaders: [], detailsLoading: true, + colorData:{ +        10:'not-plan-bg', +        20:'has-plan-bg', +        24:'has-lock-bg', +        26:'has-issued-bg', +        39:'interrupt-bg', +        40:'in-production-bg', +        80:'has-complete-bg', +        90:'has-shipment-bg', +        95:'freeze-bg', +        98:'has-cancel-bg', +      } } }, created() { diff --git a/src/views/quality/component/shipmentList.vue b/src/views/quality/component/shipmentList.vue index dfdab1f..30fde34 100644 --- a/src/views/quality/component/shipmentList.vue +++ b/src/views/quality/component/shipmentList.vue @@ -18,15 +18,18 @@ border height="100%" > - - - - - - - - + + + + + + + + @@ -45,8 +48,27 @@ export default { tableData: [], loading: false, dataObj: {}, + orderStatusArray: [], + colorData:{ +        10:'not-plan-bg', +        20:'has-plan-bg', +        24:'has-lock-bg', +        26:'has-issued-bg', +        39:'interrupt-bg', +        40:'in-production-bg', +        80:'has-complete-bg', +        90:'has-shipment-bg', +        95:'freeze-bg', +        98:'has-cancel-bg', +      } } }, + created() { + // 订单生产状态 + this.getStanderOne({ statid: 'shipStatus' }).then(res => { + this.orderStatusArray = res.data + }) + }, methods: { getInfo(orderId) { getShiporderDetail(orderId).then(({code, data}) => { @@ -55,6 +77,18 @@ export default { } }) }, + // 订单状态字段转换 + fieldTrans(value) { + if (this.orderStatusArray.length > 0) { + let fieldValue = '' + this.orderStatusArray.forEach(el => { + if (value === Number(el['stdeftab-stdeftyp'])) { + fieldValue = el['stdeftab-bez'] + } + }) + return fieldValue + } + }, }, watch: { shipOrderId: { @@ -70,6 +104,10 @@ export default {