diff --git a/src/api/quality/processTraceability.js b/src/api/quality/processTraceability.js index 5faac726..dc43b420 100644 --- a/src/api/quality/processTraceability.js +++ b/src/api/quality/processTraceability.js @@ -27,7 +27,7 @@ export function getWorkOrderList(query) { export function getCoreProduct(id) { return request({ - url: '/base/core-product/get?id=' + id, + url: '/base/core-product-material/get?id=' + id, method: 'get' }) } diff --git a/src/views/devConfig/quality/qualityInspectionBoxBtn/dialogForm.vue b/src/views/devConfig/quality/qualityInspectionBoxBtn/dialogForm.vue index 6253c041..cdd143fe 100644 --- a/src/views/devConfig/quality/qualityInspectionBoxBtn/dialogForm.vue +++ b/src/views/devConfig/quality/qualityInspectionBoxBtn/dialogForm.vue @@ -13,60 +13,6 @@ v-loading="formLoading"> - - - - - - - - - - - - - - - - - - - + + + + + + placeholder="请输入按钮值" /> - + + @change="handleInspectionDetChange"> { - // this.formLoading = false; - // this.$emit('update', { - // ...this.dataForm, - // code, - // }); - // }); + if (this.dataForm.productionLineId) { + this.getWorksectionList(this.dataForm.productionLineId); + } }, watch: { 'dataForm.productionId': { @@ -279,11 +234,18 @@ export default { this.dataForm.sectionId = null; this.$emit('update', this.dataForm); }, - async getCode(url) { const response = await this.$axios(url); return response.data; }, + handleInspectionDetChange(id) { + this.inspectionDetList.forEach((item) => { + if (item.value == id) { + this.dataForm.inspectionDetContent = item.label; + } + }); + this.$emit('update', this.dataForm); + } }, }; diff --git a/src/views/devConfig/quality/qualityInspectionBoxBtn/index.vue b/src/views/devConfig/quality/qualityInspectionBoxBtn/index.vue index 8387c7fa..bc54f307 100644 --- a/src/views/devConfig/quality/qualityInspectionBoxBtn/index.vue +++ b/src/views/devConfig/quality/qualityInspectionBoxBtn/index.vue @@ -40,7 +40,7 @@ @close="cancel" @cancel="cancel" @confirm="submitForm"> - + @@ -65,78 +65,6 @@ export default { components: { DialogForm }, data() { return { - rows: [ - [ - { - select: true, - label: '产线', - url: '/base/production-line/listAll', - prop: 'productionId', - rules: [ - { required: true, message: '产线不能为空', trigger: 'blur' }, - ], - bind: { - filterable: true, - }, - }, - { - select: true, - label: '工段', - url: '/base/workshop-section/listAll', - prop: 'sectionId', - rules: [ - { required: true, message: '工段不能为空', trigger: 'blur' }, - ], - bind: { - filterable: true, - }, - }, - ], - [ - { - input: true, - label: '按钮盒识别码', - prop: 'buttonId', - rules: [ - { - type: 'number', - message: '请输入整数', - trigger: 'blur', - transform: (val) => - Number.isInteger(Number(val)) && Number(val), - }, - ], - }, - { input: true, label: '按钮盒模式', prop: 'model' }, - ], - [ - { - input: true, - label: '按钮值', - prop: 'keyValue', - rules: [ - { - type: 'number', - message: '请输入100以内的整数', - trigger: 'blur', - transform: (val) => - Number(val) <= 100 && Number.isInteger(+val) && Number(val), - }, - ], - bind: { type: 'number', min: 0, max: 100 }, - }, - { - select: true, - label: '检测内容', - url: '/base/quality-inspection-det/listAll', - prop: 'inspectionDetId', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], - bind: { - filterable: true, - }, - }, - ], - ], searchBarFormConfig: [ { type: 'input', @@ -230,6 +158,7 @@ export default { id: null, buttonId: null, inspectionDetId: null, + inspectionDetContent: null, productionLineId: null, sectionId: null, model: null, @@ -256,12 +185,13 @@ export default { this.form = { id: null, buttonId: null, + inspectionDetId: null, inspectionDetContent: null, - productionId: null, + productionLineId: null, sectionId: null, model: null, keyValue: null, - }; + }, this.resetForm('form'); }, /** 新增按钮操作 */ diff --git a/src/views/order/base/orderManage/components/addWorkOrder.vue b/src/views/order/base/orderManage/components/addWorkOrder.vue deleted file mode 100644 index 45f2a62e..00000000 --- a/src/views/order/base/orderManage/components/addWorkOrder.vue +++ /dev/null @@ -1,304 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/order/base/orderManage/components/orderAdd.vue b/src/views/order/base/orderManage/components/orderAdd.vue deleted file mode 100644 index df871a9e..00000000 --- a/src/views/order/base/orderManage/components/orderAdd.vue +++ /dev/null @@ -1,293 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/order/base/orderManage/index.vue b/src/views/order/base/orderManage/index.vue deleted file mode 100644 index ed5d0547..00000000 --- a/src/views/order/base/orderManage/index.vue +++ /dev/null @@ -1,470 +0,0 @@ - - diff --git a/src/views/order/base/orderManage/orderDetailData.vue b/src/views/order/base/orderManage/orderDetailData.vue deleted file mode 100644 index 80764f7e..00000000 --- a/src/views/order/base/orderManage/orderDetailData.vue +++ /dev/null @@ -1,343 +0,0 @@ - - - diff --git a/src/views/order/monitoring/components/monitoringRingCharts.vue b/src/views/order/monitoring/components/monitoringRingCharts.vue deleted file mode 100644 index 54a55a19..00000000 --- a/src/views/order/monitoring/components/monitoringRingCharts.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/order/monitoring/orderCompletionMonitoring/index.vue b/src/views/order/monitoring/orderCompletionMonitoring/index.vue deleted file mode 100644 index b2a469cd..00000000 --- a/src/views/order/monitoring/orderCompletionMonitoring/index.vue +++ /dev/null @@ -1,371 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/quality/monitoring/processTraceability/index.vue b/src/views/quality/monitoring/processTraceability/index.vue index f1b4c287..e12382d5 100644 --- a/src/views/quality/monitoring/processTraceability/index.vue +++ b/src/views/quality/monitoring/processTraceability/index.vue @@ -172,6 +172,7 @@ export default { query: { id: val.data.processFlowId, orderId: val.data.id, + lineId: val.data.lineId, name: val.data.name, specifications: res.data.specifications, productName: val.data.planProductName, diff --git a/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessBomList.vue b/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessBomList.vue index c1da0893..224b9a81 100644 --- a/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessBomList.vue +++ b/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessBomList.vue @@ -8,9 +8,6 @@ diff --git a/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessInfo.vue b/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessInfo.vue index 6fc7073c..2d40f6f7 100644 --- a/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessInfo.vue +++ b/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessInfo.vue @@ -71,7 +71,9 @@ export default { }, mounted() { this.getInfo() - console.log(this.$route.query) + }, + activated() { + this.getInfo() }, computed: {}, methods: { diff --git a/src/views/quality/qualityInspectionRecord/index.vue b/src/views/quality/qualityInspectionRecord/index.vue index 604a80de..a7ca41d7 100644 --- a/src/views/quality/qualityInspectionRecord/index.vue +++ b/src/views/quality/qualityInspectionRecord/index.vue @@ -85,7 +85,7 @@ export default { }, { type: 'datePicker', - label: '时间段', + label: '检测时间', dateType: 'daterange', // datetimerange // format: 'yyyy-MM-dd HH:mm:ss', format: 'yyyy-MM-dd', @@ -182,7 +182,7 @@ export default { checkPerson: undefined, workOrderId: undefined, checkTime: undefined, - source: undefined, + source: 1, workOrderId: undefined, remark: undefined, }, @@ -257,7 +257,7 @@ export default { sectionId: undefined, checkPerson: undefined, checkTime: undefined, - source: undefined, + source: 1, workOrderId: undefined, remark: undefined, productionLineId: undefined, diff --git a/src/views/quality/qualityScrapLog/add-or-updata.vue b/src/views/quality/qualityScrapLog/add-or-updata.vue index edf4696b..e56492fa 100644 --- a/src/views/quality/qualityScrapLog/add-or-updata.vue +++ b/src/views/quality/qualityScrapLog/add-or-updata.vue @@ -133,8 +133,6 @@ import { getDetList, getLineList, } from '@/api/base/qualityScrapLog'; -// import { getList } from '@/api/base/qualityScrapType'; -import moment from 'moment'; export default { data() { return { @@ -166,16 +164,14 @@ export default { }, dataRule: { workOrderId: [ - { required: true, message: '工单号不能为空', trigger: 'change' }, + { required: true, message: '工单名称不能为空', trigger: 'change' }, ], num: [{ required: true, message: '数量不能为空', trigger: 'blur' }], detId: [ { required: true, message: '报废原因不能为空', trigger: 'change' }, ], - logTime: [ - { required: true, message: '报废时间不能为空', trigger: 'change' }, - ], + logTime: [{ required: true, message: '报废时间不能为空', trigger: 'change' }], }, showDetail: false, }; @@ -193,10 +189,9 @@ export default { console.log(res); this.dataForm = res.data; this.dataForm.logTime = res.data.logTime || null; - console.log('=================='); }); } else { - this.dataForm.logTime = moment().format('yyyy-MM-DD hh:mm:ss'); + this.dataForm.logTime = Date.now(); } }, // 表单提交