diff --git a/src/views/order/base/orderManage/components/addWorkOrder.vue b/src/views/order/base/orderManage/components/addWorkOrder.vue index 9fa71500..dbf8d213 100644 --- a/src/views/order/base/orderManage/components/addWorkOrder.vue +++ b/src/views/order/base/orderManage/components/addWorkOrder.vue @@ -92,8 +92,8 @@ - 产品基础 - 工艺扩展 + 产品基础BOM + 工艺扩展BOM diff --git a/src/views/order/base/orderManage/components/orderAdd.vue b/src/views/order/base/orderManage/components/orderAdd.vue index daf4c18b..63cc03cd 100644 --- a/src/views/order/base/orderManage/components/orderAdd.vue +++ b/src/views/order/base/orderManage/components/orderAdd.vue @@ -24,7 +24,7 @@ {{ item.name }} {{ item.specifications }} @@ -41,7 +41,7 @@ - + - + - + - + - - 产品基础 - 工艺扩展 + + 产品基础BOM + 工艺扩展BOM @@ -240,6 +240,20 @@ export default { } } }, + // 工艺变更 + materialMethodChange(val) { + if (val === 2 && !this.form.processFlowId) { + this.form.materialMethod = 1 + this.$modal.msgError("请先选择关联工艺"); + } + }, + // 工艺变更 + processFlowIdChange(val) { + console.log(val) + if (!val) { + this.form.materialMethod = 1 + } + }, submitForm() { this.$refs['orderAddForm'].validate((valid) => { if (valid) { diff --git a/src/views/order/base/orderManage/index.vue b/src/views/order/base/orderManage/index.vue index ec44b927..a30a4344 100644 --- a/src/views/order/base/orderManage/index.vue +++ b/src/views/order/base/orderManage/index.vue @@ -194,12 +194,22 @@ export default { type: 'add', btnName: '新增工单', showParam: { - type: '&', + type: '|', data: [ { type: 'equal', name: 'status', value: 1 + }, + { + type: 'equal', + name: 'status', + value: 2 + }, + { + type: 'equal', + name: 'status', + value: 3 } ] } @@ -210,12 +220,22 @@ export default { type: 'bind', btnName: '绑定工单', showParam: { - type: '&', + type: '|', data: [ { type: 'equal', name: 'status', value: 1 + }, + { + type: 'equal', + name: 'status', + value: 2 + }, + { + type: 'equal', + name: 'status', + value: 3 } ] } @@ -224,14 +244,19 @@ export default { this.$auth.hasPermi('base:order-manage:bindWorkOrder') ? { type: 'complete', - btnName: '完成工单', + btnName: '完成订单', showParam: { - type: '&', + type: '|', data: [ { type: 'equal', name: 'status', value: 2 + }, + { + type: 'equal', + name: 'status', + value: 3 } ] }