From b039bc4a965f74de891fe0488f013cd67540f769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=93=E8=B1=86=E8=B1=86?= <3346088772@qq.comcd> Date: Mon, 11 Dec 2023 17:36:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/qcindexSelect/single.vue | 2 +- src/main.js | 8 ++++++++ .../machineTool/abnormalAlarm.vue | 2 +- .../machineTool/historicalAnomalyAlarm.vue | 2 +- src/views/components/personnelSelection.vue | 20 +++++++++---------- src/views/management/codeprogram.vue | 2 +- src/views/management/document.vue | 2 +- src/views/management/documentType.vue | 2 +- src/views/mes/cal/team/index.vue | 5 ++++- src/views/mes/dv/checkplan/index.vue | 2 +- src/views/mes/dv/machinery/index.vue | 6 ++++-- src/views/mes/dv/repair/index.vue | 5 ++++- src/views/mes/dv/subject/index.vue | 2 +- src/views/mes/md/bom/index.vue | 2 +- src/views/mes/md/client/index.vue | 7 +++++-- src/views/mes/md/mditem/index.vue | 5 ++++- src/views/mes/md/vendor/index.vue | 7 +++++-- src/views/mes/md/workshop/index.vue | 7 +++++-- src/views/mes/md/workstation/index.vue | 7 +++++-- src/views/mes/pro/process/index.vue | 7 +++++-- src/views/mes/pro/proroute/index.vue | 7 +++++-- src/views/mes/pro/proroute/routeprocess.vue | 8 +++++--- src/views/mes/pro/schedule/index.vue | 7 +++++-- src/views/mes/pro/workorder/index.vue | 7 +++++-- src/views/mes/qc/ipqc/index.vue | 7 +++++-- src/views/mes/qc/iqc/iqc.vue | 7 +++++-- src/views/mes/qc/oqc/index.vue | 7 +++++-- src/views/mes/qc/pendinginspect/index.vue | 2 +- src/views/mes/qc/pendinginspect/iqc.vue | 2 +- src/views/mes/qc/pendinginspect/oqc.vue | 4 ++-- src/views/mes/qc/pendinginspect/pqc.vue | 2 +- src/views/mes/qc/qcindex/index.vue | 7 +++++-- src/views/mes/qc/qctemplate/index.vue | 7 +++++-- src/views/mes/tm/tool/index.vue | 7 +++++-- src/views/mes/tm/tooltype/index.vue | 7 +++++-- src/views/mes/wm/area/index.vue | 7 +++++-- src/views/mes/wm/issue/index.vue | 7 +++++-- src/views/mes/wm/itemrecpt/index.vue | 7 +++++-- src/views/mes/wm/location/index.vue | 7 +++++-- src/views/mes/wm/outsourceissue/index.vue | 7 +++++-- src/views/mes/wm/outsourcerecpt/index.vue | 7 +++++-- src/views/mes/wm/package/index.vue | 7 +++++-- src/views/mes/wm/productrecpt/index.vue | 7 +++++-- src/views/mes/wm/productsalse/index.vue | 7 +++++-- src/views/mes/wm/rtissue/index.vue | 7 +++++-- src/views/mes/wm/rtsalse/index.vue | 7 +++++-- src/views/mes/wm/rtvendor/index.vue | 5 ++++- src/views/mes/wm/transfer/index.vue | 7 +++++-- src/views/mes/wm/warehouse/index.vue | 7 +++++-- 49 files changed, 196 insertions(+), 90 deletions(-) diff --git a/src/components/qcindexSelect/single.vue b/src/components/qcindexSelect/single.vue index 091dfcd..b369c95 100644 --- a/src/components/qcindexSelect/single.vue +++ b/src/components/qcindexSelect/single.vue @@ -130,7 +130,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ diff --git a/src/main.js b/src/main.js index 3cd0b44..2695c64 100644 --- a/src/main.js +++ b/src/main.js @@ -40,6 +40,14 @@ import DictData from '@/components/DictData' import webSite from '@/config/website' Vue.prototype.website = webSite +import ElementUI from 'element-ui' +import 'element-ui/lib/theme-chalk/index.css' // 默认主题 + +//全局修改默认配置,点击空白处不能关闭弹窗 +ElementUI.Dialog.props.closeOnClickModal.default = false +console.log(ElementUI.Dialog) +Vue.use(ElementUI) + // 全局方法挂载 Vue.prototype.getDicts = getDicts Vue.prototype.getConfigKey = getConfigKey diff --git a/src/views/abnormalityAlarm/machineTool/abnormalAlarm.vue b/src/views/abnormalityAlarm/machineTool/abnormalAlarm.vue index 97a4e37..4d5c4fb 100644 --- a/src/views/abnormalityAlarm/machineTool/abnormalAlarm.vue +++ b/src/views/abnormalityAlarm/machineTool/abnormalAlarm.vue @@ -396,7 +396,7 @@ export default { status: "", top: 0, }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ diff --git a/src/views/abnormalityAlarm/machineTool/historicalAnomalyAlarm.vue b/src/views/abnormalityAlarm/machineTool/historicalAnomalyAlarm.vue index 17f6cb4..0d53ab4 100644 --- a/src/views/abnormalityAlarm/machineTool/historicalAnomalyAlarm.vue +++ b/src/views/abnormalityAlarm/machineTool/historicalAnomalyAlarm.vue @@ -322,7 +322,7 @@ export default { status: "", top: 0, }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ diff --git a/src/views/components/personnelSelection.vue b/src/views/components/personnelSelection.vue index b04ffd3..decaa32 100644 --- a/src/views/components/personnelSelection.vue +++ b/src/views/components/personnelSelection.vue @@ -238,7 +238,7 @@ export default { // // 选中的人员 // nowList: [], // 最终选中传给父组件的人员 - selectList: this.inputValue, + selectList: [], // isshow=1,是单选,2是多选 isshow: 2, // 遮罩层 @@ -275,14 +275,14 @@ export default { this.$nextTick(() => {}); }, mounted() { - // this.$nextTick(() => { - // this.inputValue.forEach((item) => { - // this.selectList.push(item); - // }); - // if (this.show) { - // this.isshow = this.show; - // } - // }); + this.$nextTick(() => { + this.inputValue.forEach((item) => { + this.selectList.push(item); + }); + // if (this.show) { + // this.isshow = this.show; + // } + }); }, computed: { user() { @@ -394,7 +394,6 @@ export default { } } } - this.$emit("getSelectList", this.selectList); }, //表格全选事件 @@ -417,7 +416,6 @@ export default { this.selectList.splice(this.selectList.indexOf(item), 1); }); } - this.submit(); }, submit() { diff --git a/src/views/management/codeprogram.vue b/src/views/management/codeprogram.vue index c6e5296..2e223db 100644 --- a/src/views/management/codeprogram.vue +++ b/src/views/management/codeprogram.vue @@ -411,7 +411,7 @@ export default { machineryIds: "", machineryTypeName: "", }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ diff --git a/src/views/management/document.vue b/src/views/management/document.vue index 899bdbc..df2068f 100644 --- a/src/views/management/document.vue +++ b/src/views/management/document.vue @@ -461,7 +461,7 @@ export default { url: null, originalName: null, }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ diff --git a/src/views/management/documentType.vue b/src/views/management/documentType.vue index c50ffe2..c3af1d1 100644 --- a/src/views/management/documentType.vue +++ b/src/views/management/documentType.vue @@ -296,7 +296,7 @@ export default { active: 0, remark: null, }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ diff --git a/src/views/mes/cal/team/index.vue b/src/views/mes/cal/team/index.vue index 53de664..3ac67cf 100644 --- a/src/views/mes/cal/team/index.vue +++ b/src/views/mes/cal/team/index.vue @@ -191,7 +191,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -294,6 +294,9 @@ export default { this.open = true; this.title = "添加班组"; this.optType = "add"; + genCode('CAL_TEAM_CODE').then(response =>{ + this.form.teamCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/dv/checkplan/index.vue b/src/views/mes/dv/checkplan/index.vue index a0fb0d3..9313cb0 100644 --- a/src/views/mes/dv/checkplan/index.vue +++ b/src/views/mes/dv/checkplan/index.vue @@ -386,7 +386,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ diff --git a/src/views/mes/dv/machinery/index.vue b/src/views/mes/dv/machinery/index.vue index 4c9b2be..72b128e 100644 --- a/src/views/mes/dv/machinery/index.vue +++ b/src/views/mes/dv/machinery/index.vue @@ -719,7 +719,7 @@ export default { updateTime: null, idList: "", }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -764,11 +764,13 @@ export default { this.optType = "add"; this.open = true; this.title = "新增设备"; + genCode("MACHINERY_CODE").then((response) => { + this.form.machineryCode = response; + }); }, saveInvolvedUserId() { this.addInvolvedUserIdVisible = false; - // this.$emit("getSelectList", this.selectList); }, diff --git a/src/views/mes/dv/repair/index.vue b/src/views/mes/dv/repair/index.vue index cbe6e5e..1bc75f6 100644 --- a/src/views/mes/dv/repair/index.vue +++ b/src/views/mes/dv/repair/index.vue @@ -294,7 +294,7 @@ export default { components: {Repairline,MachinerySelectSingle}, data() { return { - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -427,6 +427,9 @@ export default { this.reset(); this.open = true; this.title = "添加设备维修单"; + genCode('REPAIR_CODE').then(response =>{ + this.form.repairCode = response; + }); }, /** 修改按钮操作 */ handleUpdate(row) { diff --git a/src/views/mes/dv/subject/index.vue b/src/views/mes/dv/subject/index.vue index c216165..4851fe9 100644 --- a/src/views/mes/dv/subject/index.vue +++ b/src/views/mes/dv/subject/index.vue @@ -281,7 +281,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ diff --git a/src/views/mes/md/bom/index.vue b/src/views/mes/md/bom/index.vue index 400b4a5..01aaadd 100644 --- a/src/views/mes/md/bom/index.vue +++ b/src/views/mes/md/bom/index.vue @@ -464,7 +464,7 @@ export default { maxStock: 0, remark: undefined }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ diff --git a/src/views/mes/md/client/index.vue b/src/views/mes/md/client/index.vue index bf00ab1..878c8ff 100644 --- a/src/views/mes/md/client/index.vue +++ b/src/views/mes/md/client/index.vue @@ -353,7 +353,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -485,7 +485,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -510,6 +510,9 @@ export default { this.open = true; this.title = "添加客户"; this.optType = "add"; + genCode('CLIENT_CODE').then(response =>{ + this.form.clientCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/md/mditem/index.vue b/src/views/mes/md/mditem/index.vue index 3866b9c..b5ea4b4 100644 --- a/src/views/mes/md/mditem/index.vue +++ b/src/views/mes/md/mditem/index.vue @@ -531,7 +531,7 @@ export default { optType: undefined, remark: undefined }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -572,6 +572,9 @@ export default { this.optType = "add"; this.open = true; this.title = "新增物料/产品"; + genCode('ITEM_CODE').then(response =>{ + this.form.itemCode = response; + }); }, /** 修改按钮操作 */ handleUpdate(row) { diff --git a/src/views/mes/md/vendor/index.vue b/src/views/mes/md/vendor/index.vue index 4fafb6f..f608dce 100644 --- a/src/views/mes/md/vendor/index.vue +++ b/src/views/mes/md/vendor/index.vue @@ -346,7 +346,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -459,7 +459,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -484,6 +484,9 @@ export default { this.open = true; this.title = "添加供应商"; this.optType = "add"; + genCode('VENDOR_CODE').then(response =>{ + this.form.vendorCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/md/workshop/index.vue b/src/views/mes/md/workshop/index.vue index 15d2f4f..7ece110 100644 --- a/src/views/mes/md/workshop/index.vue +++ b/src/views/mes/md/workshop/index.vue @@ -188,7 +188,7 @@ export default { dicts: ['sys_yes_no'], data() { return { - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -271,7 +271,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -296,6 +296,9 @@ export default { this.open = true; this.title = "添加车间"; this.optType = "add"; + genCode('WORKSHOP_CODE').then(response =>{ + this.form.workshopCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/md/workstation/index.vue b/src/views/mes/md/workstation/index.vue index f94c6d7..49cff28 100644 --- a/src/views/mes/md/workstation/index.vue +++ b/src/views/mes/md/workstation/index.vue @@ -301,7 +301,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, warehouseInfo:[], warehouseOptions:[], @@ -454,7 +454,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -497,6 +497,9 @@ export default { this.open = true; this.title = "添加工作站"; this.optType = "add"; + genCode('WORKSTATION_CODE').then(response =>{ + this.form.workstationCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/pro/process/index.vue b/src/views/mes/pro/process/index.vue index ecc9649..9525a6d 100644 --- a/src/views/mes/pro/process/index.vue +++ b/src/views/mes/pro/process/index.vue @@ -202,7 +202,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -278,7 +278,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -303,6 +303,9 @@ export default { this.open = true; this.title = "添加生产工序"; this.optType = "add"; + genCode('PROCESS_CODE').then(response =>{ + this.form.processCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/pro/proroute/index.vue b/src/views/mes/pro/proroute/index.vue index bc08c9a..d884c48 100644 --- a/src/views/mes/pro/proroute/index.vue +++ b/src/views/mes/pro/proroute/index.vue @@ -210,7 +210,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -287,7 +287,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -312,6 +312,9 @@ export default { this.open = true; this.title = "添加工艺路线"; this.optType = "add"; + genCode('ROUTE_CODE').then(response =>{ + this.form.routeCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/pro/proroute/routeprocess.vue b/src/views/mes/pro/proroute/routeprocess.vue index 41ecf43..e74c185 100644 --- a/src/views/mes/pro/proroute/routeprocess.vue +++ b/src/views/mes/pro/proroute/routeprocess.vue @@ -119,10 +119,10 @@
- S-to-S:当前工序开始生产,下一道工序才可开始生产
- F-to-F:当前工序结束生产,下一道工序才可结束生产
+ F-to-S:当前工序结束生产,下一道工序才可开始生产
S-to-F:当前工序开始生产,下一道工序才可结束生产
- F-to-S:当前工序结束生产,下一道工序才可开始生产 + F-to-F:当前工序结束生产,下一道工序才可结束生产
+ S-to-S:当前工序开始生产,下一道工序才可开始生产
{ + this.form.workorderCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/pro/workorder/index.vue b/src/views/mes/pro/workorder/index.vue index 8155114..4f15332 100644 --- a/src/views/mes/pro/workorder/index.vue +++ b/src/views/mes/pro/workorder/index.vue @@ -431,7 +431,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -581,7 +581,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -627,6 +627,9 @@ export default { this.open = true; this.title = "添加生产工单"; this.optType="add"; + genCode('WORKORDER_CODE').then(response =>{ + this.form.workorderCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/qc/ipqc/index.vue b/src/views/mes/qc/ipqc/index.vue index 760115b..20cc643 100644 --- a/src/views/mes/qc/ipqc/index.vue +++ b/src/views/mes/qc/ipqc/index.vue @@ -394,7 +394,7 @@ export default { dicts: ['mes_ipqc_type','mes_qc_result','mes_order_status'], data() { return { - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -544,7 +544,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -569,6 +569,9 @@ export default { this.open = true; this.title = "添加过程检验单"; this.optType = "add"; + genCode('IPQC_CODE').then(response =>{ + this.form.ipqcCode = response; + }); }, /** 修改按钮操作 */ handleUpdate(row) { diff --git a/src/views/mes/qc/iqc/iqc.vue b/src/views/mes/qc/iqc/iqc.vue index 338cfd1..00a49e8 100644 --- a/src/views/mes/qc/iqc/iqc.vue +++ b/src/views/mes/qc/iqc/iqc.vue @@ -413,7 +413,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, acceptImg: require('@/assets/images/accept.png'), rejectImg: require('@/assets/images/reject.png'), @@ -563,7 +563,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -588,6 +588,9 @@ export default { this.open = true; this.title = "添加来料检验单"; this.optType = 'add'; + genCode('QC_IQC_CODE').then(response =>{ + this.form.iqcCode = response; + }); }, //查看明细 handleView(row){ diff --git a/src/views/mes/qc/oqc/index.vue b/src/views/mes/qc/oqc/index.vue index cafb3f1..f6e11d8 100644 --- a/src/views/mes/qc/oqc/index.vue +++ b/src/views/mes/qc/oqc/index.vue @@ -388,7 +388,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -531,7 +531,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -567,6 +567,9 @@ export default { this.open = true; this.title = "添加出货检验单"; this.optType = "add"; + genCode('OQC_CODE').then(response =>{ + this.form.oqcCode = response; + }); }, /** 修改按钮操作 */ handleUpdate(row) { diff --git a/src/views/mes/qc/pendinginspect/index.vue b/src/views/mes/qc/pendinginspect/index.vue index b363fee..de37a37 100644 --- a/src/views/mes/qc/pendinginspect/index.vue +++ b/src/views/mes/qc/pendinginspect/index.vue @@ -95,7 +95,7 @@ data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, diff --git a/src/views/mes/qc/pendinginspect/iqc.vue b/src/views/mes/qc/pendinginspect/iqc.vue index 9dc9b36..4673d6b 100644 --- a/src/views/mes/qc/pendinginspect/iqc.vue +++ b/src/views/mes/qc/pendinginspect/iqc.vue @@ -286,7 +286,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 提交按钮 */ diff --git a/src/views/mes/qc/pendinginspect/oqc.vue b/src/views/mes/qc/pendinginspect/oqc.vue index 4b0203d..7937771 100644 --- a/src/views/mes/qc/pendinginspect/oqc.vue +++ b/src/views/mes/qc/pendinginspect/oqc.vue @@ -196,7 +196,7 @@ export default { data(){ return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 表单参数 form: {}, @@ -277,7 +277,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 提交按钮 */ diff --git a/src/views/mes/qc/pendinginspect/pqc.vue b/src/views/mes/qc/pendinginspect/pqc.vue index aa96f6d..81c50a1 100644 --- a/src/views/mes/qc/pendinginspect/pqc.vue +++ b/src/views/mes/qc/pendinginspect/pqc.vue @@ -320,7 +320,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 提交按钮 */ diff --git a/src/views/mes/qc/qcindex/index.vue b/src/views/mes/qc/qcindex/index.vue index b0db0d3..26e68f8 100644 --- a/src/views/mes/qc/qcindex/index.vue +++ b/src/views/mes/qc/qcindex/index.vue @@ -186,7 +186,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -267,7 +267,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -292,6 +292,9 @@ export default { this.open = true; this.title = "添加检测项"; this.optType = "add"; + genCode('QC_INDEX_CODE').then(response =>{ + this.form.indexCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/qc/qctemplate/index.vue b/src/views/mes/qc/qctemplate/index.vue index 2345e29..dd0faf7 100644 --- a/src/views/mes/qc/qctemplate/index.vue +++ b/src/views/mes/qc/qctemplate/index.vue @@ -225,7 +225,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -305,7 +305,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -330,6 +330,9 @@ export default { this.open = true; this.title = "添加检测模板"; this.optType = "add"; + genCode('QC_TEMPLATE_CODE').then(response =>{ + this.form.templateCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/tm/tool/index.vue b/src/views/mes/tm/tool/index.vue index d0a8354..ff75532 100644 --- a/src/views/mes/tm/tool/index.vue +++ b/src/views/mes/tm/tool/index.vue @@ -313,7 +313,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -415,7 +415,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, onToolTypeChanged(){ @@ -460,6 +460,9 @@ export default { this.open = true; this.title = "添加工装夹具清单"; this.optType = "add"; + genCode('TOOL_CODE').then(response =>{ + this.form.toolCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/tm/tooltype/index.vue b/src/views/mes/tm/tooltype/index.vue index f13b923..7026e19 100644 --- a/src/views/mes/tm/tooltype/index.vue +++ b/src/views/mes/tm/tooltype/index.vue @@ -223,7 +223,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -302,7 +302,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -327,6 +327,9 @@ export default { this.open = true; this.title = "添加工装夹具类型"; this.optType = "add"; + genCode('TOOL_TYPE_CODE').then(response =>{ + this.form.toolTypeCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/wm/area/index.vue b/src/views/mes/wm/area/index.vue index 39a6282..f2176e7 100644 --- a/src/views/mes/wm/area/index.vue +++ b/src/views/mes/wm/area/index.vue @@ -253,7 +253,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, locationId: undefined, // 遮罩层 @@ -345,7 +345,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -370,6 +370,9 @@ export default { this.open = true; this.title = "添加库位"; this.optType = "add"; + genCode('AREA_CODE').then(response =>{ + this.form.areaCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/wm/issue/index.vue b/src/views/mes/wm/issue/index.vue index 9c4e229..2b60e92 100644 --- a/src/views/mes/wm/issue/index.vue +++ b/src/views/mes/wm/issue/index.vue @@ -272,7 +272,7 @@ export default { components: {Issueline,WorkstationSelect,WorkorderSelect}, data() { return { - autoGenFlag:false, + autoGenFlag:true, optType: undefined, warehouseInfo:[], warehouseOptions:[], @@ -420,7 +420,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -445,6 +445,9 @@ export default { this.open = true; this.title = "添加生产领料单"; this.optType = "add"; + genCode('ISSUE_CODE').then(response =>{ + this.form.issueCode = response; + }); }, /** 修改按钮操作 */ handleUpdate(row) { diff --git a/src/views/mes/wm/itemrecpt/index.vue b/src/views/mes/wm/itemrecpt/index.vue index 2a9663c..ab8fe83 100644 --- a/src/views/mes/wm/itemrecpt/index.vue +++ b/src/views/mes/wm/itemrecpt/index.vue @@ -266,7 +266,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, warehouseInfo:[], warehouseOptions:[], @@ -407,7 +407,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -433,6 +433,9 @@ export default { this.open = true; this.title = "添加物料入库单"; this.optType = "add"; + genCode('ITEMRECPT_CODE').then(response =>{ + this.form.recptCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/wm/location/index.vue b/src/views/mes/wm/location/index.vue index 14e45d0..b60a4fa 100644 --- a/src/views/mes/wm/location/index.vue +++ b/src/views/mes/wm/location/index.vue @@ -157,7 +157,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, warehouseId: undefined, // 遮罩层 @@ -242,7 +242,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -267,6 +267,9 @@ export default { this.open = true; this.title = "添加库区设置"; this.optType = "add"; + genCode('LOCATION_CODE').then(response =>{ + this.form.locationCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/wm/outsourceissue/index.vue b/src/views/mes/wm/outsourceissue/index.vue index 608e2a3..d93db38 100644 --- a/src/views/mes/wm/outsourceissue/index.vue +++ b/src/views/mes/wm/outsourceissue/index.vue @@ -250,7 +250,7 @@ export default { components: {Issueline,WorkorderSelect}, data() { return { - autoGenFlag:false, + autoGenFlag:true, optType: undefined, warehouseInfo:[], warehouseOptions:[], @@ -376,7 +376,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -401,6 +401,9 @@ export default { this.open = true; this.title = "添加外协发料单头"; this.optType = "add"; + genCode('OUTSOURCE_ISSUE_CODE').then(response =>{ + this.form.issueCode = response; + }); }, /** 修改按钮操作 */ handleUpdate(row) { diff --git a/src/views/mes/wm/outsourcerecpt/index.vue b/src/views/mes/wm/outsourcerecpt/index.vue index 352d39f..540f57c 100644 --- a/src/views/mes/wm/outsourcerecpt/index.vue +++ b/src/views/mes/wm/outsourcerecpt/index.vue @@ -258,7 +258,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, warehouseInfo:[], warehouseOptions:[], @@ -347,7 +347,7 @@ export default { areaId: null, areaCode: null, areaName: null, recptDate: new Date(), status: "PREPARE", remark: null, attr1: null, attr2: null, attr3: null, attr4: null, createBy: null, createTime: null, updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -372,6 +372,9 @@ export default { this.open = true; this.title = "添加外协入库单"; this.optType = "add"; + genCode('OUTSOURCE_RECPT_CODE').then(response =>{ + this.form.recptCode = response; + }); }, /** 修改按钮操作 */ handleUpdate(row) { diff --git a/src/views/mes/wm/package/index.vue b/src/views/mes/wm/package/index.vue index 34cd3dd..fd062d4 100644 --- a/src/views/mes/wm/package/index.vue +++ b/src/views/mes/wm/package/index.vue @@ -290,7 +290,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -430,7 +430,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -467,6 +467,9 @@ export default { this.open = true; this.title = "添加装箱单"; this.optType="add"; + genCode('PACKAGE_CODE').then(response =>{ + this.form.packageCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/wm/productrecpt/index.vue b/src/views/mes/wm/productrecpt/index.vue index 1a6030c..d666326 100644 --- a/src/views/mes/wm/productrecpt/index.vue +++ b/src/views/mes/wm/productrecpt/index.vue @@ -223,7 +223,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, warehouseInfo:[], warehouseOptions:[], @@ -359,7 +359,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -383,6 +383,9 @@ export default { this.reset(); this.open = true; this.title = "添加产品入库单"; + genCode('PRODUCTRECPT_CODE').then(response =>{ + this.form.recptCode = response; + }); }, /** 修改按钮操作 */ handleUpdate(row) { diff --git a/src/views/mes/wm/productsalse/index.vue b/src/views/mes/wm/productsalse/index.vue index 51cfde4..e7ae666 100644 --- a/src/views/mes/wm/productsalse/index.vue +++ b/src/views/mes/wm/productsalse/index.vue @@ -253,7 +253,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, warehouseInfo:[], warehouseOptions:[], @@ -403,7 +403,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -442,6 +442,9 @@ export default { this.open = true; this.title = "添加销售出库单"; this.optType = "add"; + genCode('PRODUCTSALSE_CODE').then(response =>{ + this.form.salseCode = response; + }); }, /** 修改按钮操作 */ handleUpdate(row) { diff --git a/src/views/mes/wm/rtissue/index.vue b/src/views/mes/wm/rtissue/index.vue index 2b0ca16..5f6d3ea 100644 --- a/src/views/mes/wm/rtissue/index.vue +++ b/src/views/mes/wm/rtissue/index.vue @@ -220,7 +220,7 @@ export default { }, data() { return { - autoGenFlag:false, + autoGenFlag:true, optType: undefined, warehouseInfo:[], warehouseOptions:[], @@ -349,7 +349,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -374,6 +374,9 @@ export default { this.open = true; this.title = "添加生产退料单头"; this.optType = "add"; + genCode('RTISSUE_CODE').then(response =>{ + this.form.rtCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/wm/rtsalse/index.vue b/src/views/mes/wm/rtsalse/index.vue index 22081ed..414c5a9 100644 --- a/src/views/mes/wm/rtsalse/index.vue +++ b/src/views/mes/wm/rtsalse/index.vue @@ -276,7 +276,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, warehouseInfo:[], warehouseOptions:[], @@ -434,7 +434,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -471,6 +471,9 @@ export default { this.open = true; this.title = "添加产品销售退货单"; this.optType = "add"; + genCode('RTSALSE_CODE').then(response =>{ + this.form.rtCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/wm/rtvendor/index.vue b/src/views/mes/wm/rtvendor/index.vue index 94a0734..10cbe3f 100644 --- a/src/views/mes/wm/rtvendor/index.vue +++ b/src/views/mes/wm/rtvendor/index.vue @@ -249,7 +249,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -363,6 +363,9 @@ export default { this.open = true; this.title = "添加供应商退货"; this.optType = "add"; + genCode('WM_RTVENDOR_CODE').then(response =>{ + this.form.rtCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/wm/transfer/index.vue b/src/views/mes/wm/transfer/index.vue index c8a7d27..9dffab3 100644 --- a/src/views/mes/wm/transfer/index.vue +++ b/src/views/mes/wm/transfer/index.vue @@ -297,7 +297,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -401,7 +401,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -426,6 +426,9 @@ export default { this.open = true; this.title = "添加转移单"; this.optType = "add"; + genCode('TRANSFER_CODE').then(response =>{ + this.form.transferCode = response; + }); }, // 查询明细按钮操作 handleView(row){ diff --git a/src/views/mes/wm/warehouse/index.vue b/src/views/mes/wm/warehouse/index.vue index 35b1718..7ece9f2 100644 --- a/src/views/mes/wm/warehouse/index.vue +++ b/src/views/mes/wm/warehouse/index.vue @@ -182,7 +182,7 @@ export default { data() { return { //自动生成编码 - autoGenFlag:false, + autoGenFlag:true, optType: undefined, // 遮罩层 loading: true, @@ -262,7 +262,7 @@ export default { updateBy: null, updateTime: null }; - this.autoGenFlag = false; + this.autoGenFlag = true; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -287,6 +287,9 @@ export default { this.open = true; this.title = "添加仓库设置"; this.optType = "add"; + genCode('WAREHOUSE_CODE').then(response =>{ + this.form.warehouseCode = response; + }); }, // 查询明细按钮操作 handleView(row){