diff --git a/src/App.vue b/src/App.vue index 6f7dbbd7..642d8171 100644 --- a/src/App.vue +++ b/src/App.vue @@ -162,17 +162,39 @@ export default { padding: 0 20px 20px; } + +// .el-table thead.is-group th.el-table__cell.colorheader1{ +// background-color: rgb(255, 243, 202)!important; +// } +// .el-table thead.is-group th.el-table__cell.colorheader2{ +// background-color: rgb(227, 242, 217)!important; +// } +// .el-table thead.is-group th.el-table__cell.colorheader3{ +// background-color: rgb(250, 218, 222)!important; +// } +// .el-table thead.is-group th.el-table__cell.colorheader4{ +// background-color: rgb(168, 218, 228)!important; +// } .el-table thead.is-group th.el-table__cell.colorheader1{ - background-color: rgb(255, 243, 202)!important; + background-color: rgba(246, 98, 98, 0.323)!important; } .el-table thead.is-group th.el-table__cell.colorheader2{ - background-color: rgb(227, 242, 217)!important; + background-color: rgba(250, 130, 11, 0.325)!important; } .el-table thead.is-group th.el-table__cell.colorheader3{ - background-color: rgb(250, 218, 222)!important; + background-color: rgba(247, 235, 9, 0.311)!important; } .el-table thead.is-group th.el-table__cell.colorheader4{ - background-color: rgb(168, 218, 228)!important; + background-color: rgba(30, 252, 10, 0.202)!important; +} +.el-table thead.is-group th.el-table__cell.colorheader5{ + background-color: rgba(11, 251, 231, 0.326)!important; +} +.el-table thead.is-group th.el-table__cell.colorheader6{ + background-color: rgba(12, 85, 255, 0.326)!important; +} +.el-table thead.is-group th.el-table__cell.colorheader7{ + background-color: rgba(51, 15, 253, 0.317)!important; } // 排放系统 diff --git a/src/api/model/inm.js b/src/api/model/inm.js index eb098823..497d2b2f 100644 --- a/src/api/model/inm.js +++ b/src/api/model/inm.js @@ -185,6 +185,13 @@ export default { data); } }, + revertDel:{ + name: "撤回并删除", + req: async function(id){ + return await http.post( + `${config.API_URL}/inm/mioitem/${id}/revert_and_del/`); + } + } }, // mioitemw mioitemw: { diff --git a/src/components/scFormTable/index.vue b/src/components/scFormTable/index.vue index 2392c2b0..821edeaa 100644 --- a/src/components/scFormTable/index.vue +++ b/src/components/scFormTable/index.vue @@ -49,7 +49,8 @@ dragSort: { type: Boolean, default: false }, hideAdd: { type: Boolean, default: false }, hideDelete: { type: Boolean, default: false }, - hideIndex: { type: Boolean, default: false } + hideIndex: { type: Boolean, default: false }, + pushType: { type: String, default: 'push' } }, data(){ return { @@ -98,8 +99,12 @@ }) }, rowAdd(){ - const temp = JSON.parse(JSON.stringify(this.addTemplate)) - this.data.push(temp); + const temp = JSON.parse(JSON.stringify(this.addTemplate)); + if(this.pushType == 'unshift'){ + this.data.unshift(temp); + }else{ + this.data.push(temp); + } this.$emit('add', temp) }, rowDel(row, index){ diff --git a/src/config/index.js b/src/config/index.js index 2a1dc835..9f402f4a 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -6,7 +6,7 @@ const DEFAULT_CONFIG = { DASHBOARD_URL: "/dashboard", //版本号 - APP_VER: "2.6.2025061213", + APP_VER: "2.7.2025070310", //内核版本号 CORE_VER: "1.6.9", diff --git a/src/views/bigScreen/bxerp/jiejingdept.vue b/src/views/bigScreen/bxerp/jiejingdept.vue new file mode 100644 index 00000000..cc07aad6 --- /dev/null +++ b/src/views/bigScreen/bxerp/jiejingdept.vue @@ -0,0 +1,697 @@ + + + + 洁净车间看板 + {{ currentDay }} {{ currentTime }} + + + + + + 本月产量 + 123 + + + + + 今日产量 + 123 + + + + + 今日工序报工量 + 123 + + + + + 在产产品数 + 123 + + + + + 本月完工工单 + 123 + + + + + 本月计划产量 + 123 + + + + + 本月产量 + 123 + + + + + 本月产量 + 123 + + + + + + + + + + 在制工序数 + 123 + + + + + 今日完成工序 + 123 + + + + + + 车间各工段生产产品数 + + + + + + 产品占比 + + + + + + + + + + 车间工段任务展示 + + + + + + 设备列表 + + + + + + + + + + + 在制工单数 + 123 + + + + + 本月交付数 + 123 + + + + + + 每个人日产量 + + + + + + 车间整体产品统计 + + + + + + + + + + + + diff --git a/src/views/bigScreen/bxerp/jiejingdept2.vue b/src/views/bigScreen/bxerp/jiejingdept2.vue new file mode 100644 index 00000000..4422f508 --- /dev/null +++ b/src/views/bigScreen/bxerp/jiejingdept2.vue @@ -0,0 +1,713 @@ + + + + 洁净车间看板 + {{ currentDay }} {{ currentTime }} + + + + + + 本月产量 + 123 + + + + + 今日产量 + 123 + + + + + 今日工序报工量 + 123 + + + + + 在产产品数 + 123 + + + + + 本月完工工单 + 123 + + + + + 本月计划产量 + 123 + + + + + 本月产量 + 123 + + + + + 本月产量 + 123 + + + + + + + + + + 在制工序数 + 123 + + + + + 今日完成工序 + 123 + + + + + + 车间各工段生产产品数 + + + + + + 产品占比 + + + + + + + + + + 车间工段任务展示 + + + + + + 设备列表 + + + + + + + + + + + 在制工单数 + 123 + + + + + 本月交付数 + 123 + + + + + + 每个人日产量 + + + + + + 车间整体产品统计 + + + + + + + + + + + + diff --git a/src/views/bigScreen/bxerp/lengjiagongdept.vue b/src/views/bigScreen/bxerp/lengjiagongdept.vue new file mode 100644 index 00000000..2e0857bf --- /dev/null +++ b/src/views/bigScreen/bxerp/lengjiagongdept.vue @@ -0,0 +1,713 @@ + + + + 冷加工车间看板 + {{ currentDay }} {{ currentTime }} + + + + + + 本月产量 + 123 + + + + + 今日产量 + 123 + + + + + 今日工序报工量 + 123 + + + + + 在产产品数 + 123 + + + + + 本月完工工单 + 123 + + + + + 本月计划产量 + 123 + + + + + 本月产量 + 123 + + + + + 本月产量 + 123 + + + + + + + + + + 在制工序数 + 123 + + + + + 今日完成工序 + 123 + + + + + + 车间各工段生产产品数 + + + + + + 产品占比 + + + + + + + + + + 车间工段任务展示 + + + + + + 设备列表 + + + + + + + + + + + 在制工单数 + 123 + + + + + 本月交付数 + 123 + + + + + + 每个人日产量 + + + + + + 车间整体产品统计 + + + + + + + + + + + + diff --git a/src/views/bigScreen/bxerp/niuzhuandept.vue b/src/views/bigScreen/bxerp/niuzhuandept.vue new file mode 100644 index 00000000..39a1298f --- /dev/null +++ b/src/views/bigScreen/bxerp/niuzhuandept.vue @@ -0,0 +1,713 @@ + + + + 车间看板 + {{ currentDay }} {{ currentTime }} + + + + + + 本月产量 + 123 + + + + + 今日产量 + 123 + + + + + 今日工序报工量 + 123 + + + + + 在产产品数 + 123 + + + + + 本月完工工单 + 123 + + + + + 本月计划产量 + 123 + + + + + 本月产量 + 123 + + + + + 本月产量 + 123 + + + + + + + + + + 在制工序数 + 123 + + + + + 今日完成工序 + 123 + + + + + + 车间各工段生产产品数 + + + + + + 产品占比 + + + + + + + + + + 车间工段任务展示 + + + + + + 设备列表 + + + + + + + + + + + 在制工单数 + 123 + + + + + 本月交付数 + 123 + + + + + + 每个人日产量 + + + + + + 车间整体产品统计 + + + + + + + + + + + + diff --git a/src/views/bigScreen/bxerp/reyadept.vue b/src/views/bigScreen/bxerp/reyadept.vue new file mode 100644 index 00000000..b1b9c4b1 --- /dev/null +++ b/src/views/bigScreen/bxerp/reyadept.vue @@ -0,0 +1,713 @@ + + + + 热压车间看板 + {{ currentDay }} {{ currentTime }} + + + + + + 本月产量 + 123 + + + + + 今日产量 + 123 + + + + + 今日工序报工量 + 123 + + + + + 在产产品数 + 123 + + + + + 本月完工工单 + 123 + + + + + 本月计划产量 + 123 + + + + + 本月产量 + 123 + + + + + 本月产量 + 123 + + + + + + + + + + 在制工序数 + 123 + + + + + 今日完成工序 + 123 + + + + + + 车间各工段生产产品数 + + + + + + 产品占比 + + + + + + + + + + 车间工段任务展示 + + + + + + 设备列表 + + + + + + + + + + + 在制工单数 + 123 + + + + + 本月交付数 + 123 + + + + + + 每个人日产量 + + + + + + 车间整体产品统计 + + + + + + + + + + + + diff --git a/src/views/bigScreen/index_gx.vue b/src/views/bigScreen/index_gx.vue index 5ed56cb2..491e9de3 100644 --- a/src/views/bigScreen/index_gx.vue +++ b/src/views/bigScreen/index_gx.vue @@ -524,6 +524,7 @@ export default { lineWidth:0, pieHeight:0, lineHeight:0, + setIntervals:null, }; }, mounted() { @@ -604,12 +605,19 @@ export default { that.getMaterials(); that.getMgroup(); that.getTaskNumber(); - that.addListener(); that.getArticles(); that.getpurinrate(); that.initFactory(); that.addListener(); }) + that.setIntervals = setInterval(function () { + that.getCountnotok(); + that.getMaterials(); + that.getMgroup(); + that.getTaskNumber(); + that.getArticles(); + that.getpurinrate(); + }, 300000); }, //获取公告和视频 getArticles(){ @@ -998,16 +1006,20 @@ export default { this.scene = null; clearInterval(that.timerTime); clearInterval(that.scrollInterval); + clearInterval(that.setIntervals); that.timerTime = null; that.scrollInterval = null; + that.setIntervals = null; }, beforeDestoryed() { let that = this; this.scene = null; clearInterval(that.timerTime); clearInterval(that.scrollInterval); + clearInterval(that.setIntervals); that.timerTime = null; that.scrollInterval = null; + that.setIntervals = null; }, }; diff --git a/src/views/inm/helpso.vue b/src/views/inm/helpso.vue index 85cc2972..564b9419 100644 --- a/src/views/inm/helpso.vue +++ b/src/views/inm/helpso.vue @@ -1,7 +1,7 @@ - + + + + + + + {{ scope.row.material_.number }} + + + + + + + {{ scope.row.material_.bin_number_main }} + + + + + {{ scope.row.material_.specification }} + + + + + {{ scope.row.material_.model }} + + + + + {{ scope.row.material_.unit }} + + + + + {{ scope.row.material_.count_safe }} + + + + + + + {{ scope.row.material_.unit_price }} + + + + + {{ Number(scope.row.material_.unit_price)*Number(scope.row.count) }} + + + + @@ -57,11 +114,6 @@ - 删除 + + 撤回 + @@ -216,20 +225,28 @@ export default { table_del(row) { this.$confirm(`确定删除吗?`, "提示", { type: "warning", - }) - .then(() => { - this.$API.inm.mio.delete - .req(row.id) - .then((res) => { - this.$message.success("删除成功"); - this.$refs.table.refresh(); - return res; - }) - .catch((err) => { - return err; - }); - }) - .catch(() => {}); + }).then(() => { + this.$API.inm.mio.delete.req(row.id).then((res) => { + this.$message.success("删除成功"); + this.$refs.table.refresh(); + return res; + }).catch((err) => { + return err; + }); + }).catch(() => {}); + }, + table_revert(row){ + this.$confirm(`确定撤回吗?`, "提示", { + type: "warning", + }).then(() => { + this.$API.inm.mio.revert.req(row.id).then((res) => { + this.$message.success("撤回成功"); + this.$refs.table.refresh(); + return res; + }).catch((err) => { + return err; + }); + }).catch(() => {}); }, table_submit(row) { this.$API.inm.mio.submit.req(row.id).then((res) => { diff --git a/src/views/inm/helpso_mioitem.vue b/src/views/inm/helpso_mioitem.vue new file mode 100644 index 00000000..7d8ccd87 --- /dev/null +++ b/src/views/inm/helpso_mioitem.vue @@ -0,0 +1,398 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保存 + + 取消 + + + + + 新增 + + + + + {{ scope.row.material_name }} + + + + + + + + + {{scope.row.count}} + {{scope.row.count}} + + + + + + + 删除 + + + + + + + 提交 + + + + + + diff --git a/src/views/inm/materials.vue b/src/views/inm/materials.vue new file mode 100644 index 00000000..73eaf947 --- /dev/null +++ b/src/views/inm/materials.vue @@ -0,0 +1,247 @@ + + + + + 新增 + + + + + + + + + + + + + + + + + + + + + + 隐 + + + + + + + + + + + + + + + {{ scope.row.unit_price * scope.row.count }} + + + + + + 编辑 + + + 复制 + + + 删除 + + + + + + + + + + diff --git a/src/views/inm/mioitem.vue b/src/views/inm/mioitem.vue index 6eb5d4ac..cf595d8d 100644 --- a/src/views/inm/mioitem.vue +++ b/src/views/inm/mioitem.vue @@ -170,13 +170,7 @@ link type="primary" @click="table_check(scope.row)" - v-if=" - scope.row.test_date == null && - mioObj.state == 20 && - (type == 'pur_in' || - type == 'do_in' || - type == 'other_in') - " + v-if="scope.row.test_date == null &&mioObj.state == 20 &&(type == 'pur_in' ||type == 'do_in' ||type == 'other_in')" v-auth="'mioitem.test'" > 检验 @@ -195,7 +189,7 @@ @click="check_reSet(scope.row)" v-if="scope.row.test_date !== null" > - 撤回 + 检验作废 物料标签 - + + 撤回 + @@ -405,6 +407,21 @@ export default { }); }).catch(() => {}); }, + //撤回并删除 + check_revert(row){ + let that = this; + that.$confirm(`该记录已提交,确定撤回吗?`, "提示", { + type: "warning", + }).then(() => { + console.log('确定删除'); + that.$API.inm.mioitem.revertDel.req(row.id).then((res) => { + that.$message.success("撤回成功"); + that.$refs.table.refresh(); + }).catch((err) => { + return err; + }); + }).catch(() => {}); + }, //检验 table_check(row) { this.mioitemId = row.id; diff --git a/src/views/inm/mioitem_form.vue b/src/views/inm/mioitem_form.vue index 5f938f52..9faf5db2 100644 --- a/src/views/inm/mioitem_form.vue +++ b/src/views/inm/mioitem_form.vue @@ -108,7 +108,7 @@ v-model="form.warehouse" clearable style="width: 100%" - :disabled="warehouseDisable" + :disabled="form.type == 'do_out'||form.type=='sale_out'" > - + @@ -64,17 +64,25 @@ ref="tableMlog" :apiObj="apiObj_mlog" row-key="id" - :params="params" - :query="params" + :params="params_mlog" + :query="params_mlog" > - + {{scope.row.material_out_name}} 返工 - + + + + + {{ item.batch }}({{Number(item.count_use)}})、 + + + + @@ -102,7 +110,7 @@ label="操作日期" prop="handle_date" > - + 是 否 @@ -163,6 +171,7 @@ 返工 报废 改版 + 退料 @@ -341,9 +350,13 @@ export default { other_out: "其他出库", }, //mlog\handover + params_mlog:{ + cbatch:'', + with_mlogb:'yes', + query: " { id,material_out_name,mlogb_full,count_real,count_ok,is_fix,belong_dept_name,mgroup_name,handle_user_name,handle_date,reminder_interval_list,mstate_json,work_start_time,work_end_time,oinfo_json,submit_time,submit_user_name}" + }, params:{ cbatch:'', - // query:" { id, name, code, last_data, gather_state }", }, params2:{ batch:'', @@ -353,7 +366,7 @@ export default { }, query:{ batch:'', - material_start__type:30, + // material_start__type:30, }, batch:'', activeName:'', @@ -364,12 +377,11 @@ export default { }, methods: { rowClick(row){ - console.log('row',row) let that = this; that.nodes =[]; that.edges = []; that.limitedWatch = false; - that.$API.wpm.batchlog.dag.req({batch:row.batch,version:row.version}).then((res) => { + that.$API.wpm.batchlog.dag.req({batch:row.batch,method:'direct'}).then((res) => { res.nodes.forEach(item => { let obj = {}; obj.id = item.id; @@ -388,6 +400,7 @@ export default { nodeClick(data){ let that = this; that.params.cbatch = data; + that.params_mlog.cbatch = data; that.params2.batch = data; that.params_mio.item_mio__batch=data; that.activeName = 'mlog'; diff --git a/src/views/statistics/good_check_gx.vue b/src/views/statistics/good_check_gx.vue index ffdf8e73..4fe1dd7f 100644 --- a/src/views/statistics/good_check_gx.vue +++ b/src/views/statistics/good_check_gx.vue @@ -78,7 +78,7 @@ show-summary > - + {{ scope.row.data.批次号 }} @@ -299,18 +299,18 @@ - {{ scope.row.data.外观检验_完全总合格数 }} - 0 + {{ scope.row.data.外观检验_count_ok_full }} + {{ scope.row.data.外观检验_完全总合格数 }} - + {{ scope.row.data.外观检验_完全总合格率 }} {{ scope.row.data.外观检验_完全合格率 }} 0 - + {{ scope.row.data.外观检验_完全直通合格率 }} {{ scope.row.data.尺寸检验_合格率 }} @@ -606,14 +606,24 @@ export default { sums[index] = ((sums[index-1]/sums[25])*100).toFixed(4); } } + if(index==71){ + let sum = 0; + if(sums[26]){ + sum += sums[26]; + } + if(sums[55]){ + sum += sums[55]; + } + sums[index] = sum; + } if(index==72){ if(sums[71]&&sums[25]){ - sums[index] = ((sums[71]/sums[25])*100).toFixed(4); + sums[index] = ((sums[71]/sums[25])*100).toFixed(2); } } if(index==73){ if(sums[72]&&sums[22]){ - sums[index] = ((sums[72]/sums[22])*100).toFixed(4); + sums[index] = ((sums[72]*sums[22])/100).toFixed(2); } } }); diff --git a/src/views/statistics/good_check_gx2.vue b/src/views/statistics/good_check_gx2.vue new file mode 100644 index 00000000..540ab056 --- /dev/null +++ b/src/views/statistics/good_check_gx2.vue @@ -0,0 +1,551 @@ + + + + + + + + + + + + + 导出 + + + + + + {{ scope.row.data.批次号 }} + + + + {{ scope.row.data.尺寸检验_日期 }} + + + {{ scope.row.data.尺寸检验_count_real }} + + + {{ scope.row.data.尺寸检验_缺陷_黑圈内径 }} + + + {{ scope.row.data.尺寸检验_缺陷_黑圈内径_比例 }} + + + {{ scope.row.data.尺寸检验_缺陷_黑圈外径 }} + + + {{ scope.row.data.尺寸检验_缺陷_黑圈外径_比例 }} + + + {{ scope.row.data.尺寸检验_缺陷_产品同心度 }} + + + {{ scope.row.data.尺寸检验_缺陷_产品同心度_比例 }} + + + {{ scope.row.data.尺寸检验_缺陷_圆度 }} + + + {{ scope.row.data.尺寸检验_缺陷_圆度_比例 }} + + + {{ scope.row.data.尺寸检验_缺陷_产品外径小 }} + + + {{ scope.row.data['尺寸检验_缺陷_产品外径大(返修)'] }} + + + {{ scope.row.data.尺寸检验_缺陷_黑圈缺口 }} + + + {{ scope.row.data.尺寸检验_缺陷_外径发货片 }} + + + {{ scope.row.data.尺寸检验_缺陷_前道崩 }} + + + {{ scope.row.data.尺寸检验_count_ok_full }} + + + {{ scope.row.data.尺寸检验_完全合格率 }} + + + {{ scope.row.data['尺寸检验_缺陷_准合格(B)'] }} + + + {{ scope.row.data['尺寸检验_缺陷_圆准(B)'] }} + + + {{ scope.row.data.尺寸检验_count_ok }} + + + {{ scope.row.data.尺寸检验_合格率 }} + + + + + {{ scope.row.data.外观检验_日期 }} + + + {{ scope.row.data.外观检验_count_real }} + + + {{ scope.row.data.外观检验_count_ok_full }} + + + {{ scope.row.data.外观检验_完全合格率 }} + + + {{ scope.row.data['外观检验_缺陷_划麻(返修)'] }} + + + {{ scope.row.data['外观检验_缺陷_划麻(返修)_比例'] }} + + + {{ scope.row.data['外观检验_缺陷_脏(返修) ']}} + + + {{ scope.row.data['外观检验_缺陷_脏(返修)_比例'] }} + + + {{ scope.row.data.外观检验_缺陷_气泡 }} + + + {{ scope.row.data.外观检验_缺陷_气泡_比例 }} + + + {{ scope.row.data['外观检验_缺陷_浅气泡(B)'] }} + + + {{ scope.row.data.外观检验_缺陷_黑圈变形 }} + + + {{ scope.row.data.外观检验_缺陷_黑圈缺口 }} + + + {{ scope.row.data.外观检验_缺陷_重水纹 }} + + + {{ scope.row.data['外观检验_缺陷_浅水纹(B)'] }} + + + {{ scope.row.data.外观检验_缺陷_大崩 }} + + + {{ scope.row.data['外观检验_缺陷_小崩边(B)'] }} + + + {{ scope.row.data['外观检验_缺陷_小崩边(B)_比例'] }} + + + {{ scope.row.data.外观检验_缺陷_棕点 }} + + + {{ scope.row.data['外观检验_缺陷_浅划麻(B)'] }} + + + {{ scope.row.data.外观检验_缺陷_双面划麻 }} + + + {{ scope.row.data.外观检验_缺陷_倒角 }} + + + {{ scope.row.data.外观检验_缺陷_棕圈 }} + + + {{ scope.row.data.外观检验_缺陷_蓝圈 }} + + + {{ scope.row.data.外观检验_缺陷_尺寸小 }} + + + {{ scope.row.data.外观检验_缺陷_破损 }} + + + {{ scope.row.data.外观检验_缺陷_发白 }} + + + {{ scope.row.data.外观检验_缺陷_漏光 }} + + + {{ scope.row.data.外观检验_返修_count_real }} + + + {{ scope.row.data.外观检验_返修_count_ok_full }} + + + + + {{ scope.row.data.外观检验_count_ok_full }} + {{ scope.row.data.外观检验_完全总合格数 }} + + + + + {{ scope.row.data.外观检验_完全总合格率 }} + {{ scope.row.data.外观检验_完全合格率 }} + 0 + + + + + {{ scope.row.data.外观检验_完全直通合格率 }} + {{ scope.row.data.尺寸检验_合格率 }} + {{ scope.row.data.外观检验_完全总合格率 }} + 0 + + + + + + + + + + + + + diff --git a/src/views/statistics/ppass_num_gx.vue b/src/views/statistics/ppass_num_gx.vue index a3d210dc..01a0c5c7 100644 --- a/src/views/statistics/ppass_num_gx.vue +++ b/src/views/statistics/ppass_num_gx.vue @@ -54,8 +54,6 @@ :data="tableData" :height="tableHeight" id="exportDiv" - :summary-method="getSummaries" - show-summary > diff --git a/src/views/statistics/process_statistics_gx.vue b/src/views/statistics/process_statistics_gx.vue new file mode 100644 index 00000000..2b6ee94a --- /dev/null +++ b/src/views/statistics/process_statistics_gx.vue @@ -0,0 +1,886 @@ + + + + + + + 导出 + + + + + + + + + + + {{ scope.row.data.扫边A_缺陷_气泡 }} + + + + + {{ scope.row.data.扫边A_缺陷_线痕 }} + + + + + {{ scope.row.data.扫边A_缺陷_断裂 }} + + + + + {{ scope.row.data.扫边A_缺陷_划伤 }} + + + + + + + {{ scope.row.data.扫边A_缺陷_人为磕碰 }} + + + + + {{ scope.row.data.扫边A_缺陷_设备故障 }} + + + + + {{ scope.row.data.扫边A_缺陷_断点 }} + + + + + {{ scope.row.data.扫边A_缺陷_调机破损 }} + + + + + + {{ scope.row.data.扫边A_缺陷_崩边 }} + + + {{ scope.row.data.扫边A_缺陷_小崩边 }} + + + + + {{ getCountQt(scope.row.data,'扫边A') }} + + + + + + + + {{ scope.row.data.扫边B_加工前_缺陷_裂纹 }} + + + + + {{ scope.row.data.扫边B_加工前_缺陷_断裂 }} + + + + + {{ scope.row.data.扫边B_加工前_缺陷_划伤 }} + + + + + {{ scope.row.data.扫边B_加工前_缺陷_线痕 }} + + + + + {{ scope.row.data.扫边B_加工前_缺陷_麻点 }} + + + + + {{ getCountQt(scope.row.data,'扫边B前') }} + + + + + + + {{ scope.row.data.扫边B_缺陷_黑圈不良 }} + + + + + {{ scope.row.data.扫边B_缺陷_材料不良 }} + + + + + + + {{ scope.row.data.扫边B_缺陷_人为磕碰 }} + + + + + {{ scope.row.data.扫边B_缺陷_设备故障 }} + + + + + {{ scope.row.data.扫边B_缺陷_脏污 }} + + + + + {{ scope.row.data.扫边B_缺陷_线痕 }} + + + + + {{ scope.row.data.扫边B_缺陷_调机破损 }} + + + + + {{ scope.row.data.扫边B_缺陷_断裂 }} + + + + + + {{ scope.row.data.扫边B_缺陷_崩边 }} + + + {{ scope.row.data.扫边B_缺陷_小崩边 }} + + + + + {{ getCountQt(scope.row.data,'扫边B') }} + + + + + + + {{ scope.row.data.精雕_加工前_缺陷_崩边 }} + + + {{ scope.row.data.精雕_加工前_缺陷_小崩边}} + + + + {{ getCountQt(scope.row.data,'精雕前') }} + + + + + + + {{ scope.row.data.精雕_缺陷_黑圈不良 }} + + + + + {{ scope.row.data.精雕_缺陷_材料不良 }} + + + + + + + {{ scope.row.data.精雕_缺陷_调机破损 }} + + + + + {{ scope.row.data.精雕_缺陷_人为磕碰 }} + + + + + + {{ getCountQt(scope.row.data,'精雕') }} + + + + + + + {{ scope.row.data.倒角_加工前_缺陷_崩边 }} + + + {{ scope.row.data.倒角_加工前_缺陷_崩边 }} + + + + {{ getCountQt(scope.row.data,'倒角前') }} + + + + + + + {{ scope.row.data.倒角_缺陷_黑圈不良 }} + + + + + {{ scope.row.data.倒角_缺陷_材料不良 }} + + + + + + + {{ scope.row.data.倒角_缺陷_调机破损 }} + + + + + {{ scope.row.data.倒角_缺陷_人为磕碰 }} + + + + + + {{ scope.row.data.倒角_缺陷_崩边 }} + + + {{ scope.row.data.倒角_缺陷_小崩边 }} + + + + + {{ getCountQt(scope.row.data,'倒角') }} + + + + + + + + {{ scope.row.data.减薄A_缺陷_黑圈不良 }} + + + + + {{ scope.row.data.减薄A_缺陷_材料不良 }} + + + + + {{ scope.row.data.减薄A_缺陷_黑雾 }} + + + + + + + {{ scope.row.data.减薄A_缺陷_调机破损 }} + + + + + {{ scope.row.data.减薄A_缺陷_人为磕碰 }} + + + + + + {{ scope.row.data.减薄A_缺陷_崩边 }} + + + {{ scope.row.data.减薄A_缺陷_小崩边 }} + + + + + {{ getCountQt(scope.row.data,'减薄A') }} + + + + + + + + {{ scope.row.data.减薄B_缺陷_黑圈不良 }} + + + + + {{ scope.row.data.减薄B_缺陷_材料不良 }} + + + + + {{ scope.row.data.减薄B_缺陷_黑雾 }} + + + + + + + {{ scope.row.data.减薄B_缺陷_调机破损 }} + + + + + {{ scope.row.data.减薄B_缺陷_人为磕碰磕碰 }} + + + + + + {{ scope.row.data.减薄B_缺陷_崩边 }} + + + {{ scope.row.data.减薄B_缺陷_小崩边 }} + + + + + {{ getCountQt(scope.row.data,'减薄B') }} + + + + + + + {{ scope.row.data.磨抛_缺陷_崩边 }} + + + {{ scope.row.data.磨抛_缺陷_小崩边 }} + + + + {{ getCountQt(scope.row.data,'磨抛前') }} + + + + + + + {{ scope.row.data.磨抛_缺陷_黑圈不良 }} + + + + + {{ scope.row.data.磨抛_缺陷_材料不良 }} + + + + + + + {{ scope.row.data.磨抛_缺陷_调机破损 }} + + + + + {{ scope.row.data.磨抛_缺陷_人为磕碰 }} + + + + + + {{ getCountQt(scope.row.data,'磨抛') }} + + + + + + + {{ scope.row.data.一次超洗_加工前_缺陷_崩边 }} + + + {{ scope.row.data.一次超洗_加工前_缺陷_小崩边 }} + + + + {{ getCountQt(scope.row.data,'一次超洗前') }} + + + + + + + {{ scope.row.data.一次超洗_缺陷_黑圈不良 }} + + + + + {{ scope.row.data.一次超洗_缺陷_材料不良 }} + + + + + + + {{ scope.row.data.一次超洗_缺陷_调机破损 }} + + + + + {{ scope.row.data.一次超洗_缺陷_人为磕碰 }} + + + + + + + + {{ scope.row.data.二次超洗_加工前_缺陷_崩边 }} + + + {{ scope.row.data.二次超洗_加工前_缺陷_小崩边 }} + + + + {{ getCountQt(scope.row.data,'二次超洗前') }} + + + + + + + {{ scope.row.data.二次超洗_缺陷_黑圈不良 }} + + + + + {{ scope.row.data.二次超洗_缺陷_材料不良 }} + + + + + + + {{ scope.row.data.二次超洗_缺陷_调机破损 }} + + + + + {{ scope.row.data.二次超洗_缺陷_人为磕碰 }} + + + + + + + + + + + + + + diff --git a/src/views/statistics/statistics_bang.vue b/src/views/statistics/statistics_bang.vue index 8eecf8de..11215941 100644 --- a/src/views/statistics/statistics_bang.vue +++ b/src/views/statistics/statistics_bang.vue @@ -138,7 +138,7 @@ - {{ scope.row.data.七车间入库_count-scope.row.data.七车间入库_count_notok }} + {{ scope.row.data.七车间入库_count-scope.row.data.七车间入库_count_notok }} @@ -320,6 +320,11 @@ {{ scope.row.data.六车间_抛光_count_use }} + + + {{ scope.row.data.六车间_抛光_count_notok }} + + {{ scope.row.data.六车间_抛光_合格率 }} @@ -345,11 +350,6 @@ {{ getCountQt(scope.row.data,'抛光') }} - - - {{ scope.row.data.六车间_抛光_count_notok }} - - {{ scope.row.data.六车间_抛光_日期 }} @@ -529,8 +529,9 @@ export default { data() { return { params: { - ordering:'-last_time', - batch__startswith__in:'ZJ2,G05,J2C,A55', + ordering:'-last_time,-first_time', + material_start__cate:'棒', + last_time_isnull:false, }, query:{ batch__contains:'', @@ -544,7 +545,38 @@ export default { }, methods: { handleQuery(){ - this.$refs.table.queryData(this.query); + let that = this; + let querys = [],arr1=[],arr2=[]; + let obj = {},obj1 = {},obj2 = {}; + obj.field = 'batch__contains'; + obj.value = that.query.batch__contains; + obj.compare = ''; + obj1.field = 'last_time__gte'; + obj1.value = that.query.last_time__gte; + obj1.compare = 'gte'; + obj2.field = 'last_time__gte'; + obj2.value = that.query.last_time__gte; + obj2.compare = 'gte'; + if((that.query.last_time__gte==''||that.query.last_time__gte==null)&&(that.query.last_time__lte==''||that.query.last_time__lte==null)&&that.query.batch__contains!==''&&that.query.batch__contains!==null){ + querys.push(obj); + } + if(that.query.last_time__gte!==''&&that.query.last_time__gte!==null){ + arr1.push(obj1); + if(that.query.batch__contains!==''&&that.query.batch__contains!==null){ + arr1.push(obj); + } + querys.push(arr1) + } + if(that.query.last_time__lte!==''&&that.query.last_time__lte!==null){ + arr2.push(obj2); + if(that.query.batch__contains!==''&&that.query.batch__contains!==null){ + arr2.push(obj); + } + querys.push(arr2) + } + let params = {}; + params.querys = querys; + this.$refs.table.queryData(params); }, getCountQt(data,type){ let count_qt = 0,count = 0; diff --git a/src/views/statistics/statistics_guan.vue b/src/views/statistics/statistics_guan.vue index 8ccc0bac..2e8732b0 100644 --- a/src/views/statistics/statistics_guan.vue +++ b/src/views/statistics/statistics_guan.vue @@ -121,7 +121,7 @@ - + {{ scope.row.data.十车间入库_count }} @@ -188,68 +188,6 @@ - - - - {{ scope.row.data.管料退火_日期 }} - - - - - {{ scope.row.data.管料退火_count_use }} - - - - - {{ scope.row.data.管料退火_count_ok }} - - - - - {{ scope.row.data.管料退火_合格率 }} - - - - - {{ scope.row.data.管料退火_count_notok }} - - - - - {{ scope.row.data.管料退火_count_n_xzp }} - - - - - {{ scope.row.data.管料退火_count_n_thhs }} - - - - - {{ scope.row.data.管料退火_count_n_hs }} - - - - - {{ scope.row.data.管料退火_count_n_js }} - - - - - {{ scope.row.data.管料退火_count_n_qx }} - - - - - {{getCountQt(scope.row.data,'管料退火')}} - - - - - {{ scope.row.data.管料退火_操作人 }} - - - - - - + + + + {{ scope.row.data.管料退火_日期 }} + + + + + {{ scope.row.data.管料退火_count_use }} + + + + + {{ scope.row.data.管料退火_count_ok }} + + + + + {{ scope.row.data.管料退火_合格率 }} + + + + + {{ scope.row.data.管料退火_count_notok }} + + + + + {{ scope.row.data.管料退火_count_n_xzp }} + + + + + {{ scope.row.data.管料退火_count_n_thhs }} + + + + + {{ scope.row.data.管料退火_count_n_hs }} + + + + + {{ scope.row.data.管料退火_count_n_js }} + + + + + {{ scope.row.data.管料退火_count_n_qx }} + + + + + {{getCountQt(scope.row.data,'管料退火')}} + + + + + {{ scope.row.data.管料退火_操作人 }} + + + + + + {{ scope.row.data.六车间领料_日期 }} - + {{ scope.row.data.六车间领料_count }} - + {{ scope.row.data.六车间领料_仓库执行人 }} - + {{ scope.row.data.六车间领料_车间执行人 }} - + {{ scope.row.data.六车间领料_备注 }} - - + + + + {{ scope.row.data.六车间交接领料_日期 }} + + + + + {{ scope.row.data.六车间交接领料_count }} + + + + + {{ scope.row.data.六车间交接领料_送料人 }} + + + + + {{ scope.row.data.六车间交接领料_接料人 }} + + + + + {{ scope.row.data.六车间_开槽_count_real }} - + {{ scope.row.data.六车间_开槽_合格率 }} - + {{ scope.row.data.六车间_开槽_count_notok }} - + {{ scope.row.data.六车间_开槽_count_n_dl }} - + {{getCountQt(scope.row.data,'开槽')}} - + {{ scope.row.data.六车间_开槽_日期 }} - + {{ scope.row.data.六车间_开槽_操作人 }} - + {{ scope.row.data.六车间_开槽_备注 }} - - + + {{ scope.row.data.六车间_倒角_count_real }} - + {{ scope.row.data.六车间_倒角_合格率 }} - + {{ scope.row.data.六车间_倒角_count_notok }} - + {{ scope.row.data.六车间_倒角_count_n_dl }} - + {{getCountQt(scope.row.data,'倒角')}} - + {{ scope.row.data.六车间_倒角_日期 }} - + {{ scope.row.data.六车间_倒角_操作人 }} - + {{ scope.row.data.六车间_倒角_备注 }} @@ -439,117 +461,117 @@ - - + + {{ scope.row.data.六车间中检_count }} - + {{ scope.row.data.六车间中检_合格率 }} - + {{ scope.row.data.六车间中检_count_notok }} - + {{ scope.row.data.六车间中检_count_n_hs }} - + {{ scope.row.data.六车间中检_count_n_zz }} - + {{ scope.row.data.六车间中检_count_n_zdd }} - + {{ scope.row.data.六车间中检_count_n_zw }} - + {{ scope.row.data.六车间中检_count_n_qp }} - + {{ scope.row.data.六车间中检_count_n_bl }} - + {{ scope.row.data.六车间中检_count_n_hw }} - + {{ scope.row.data.六车间中检_count_n_yp }} - + {{getCountQt(scope.row.data,'六车间中检')}} - + {{ scope.row.data.六车间中检_日期 }} - + {{ scope.row.data.六车间中检_检验人 }} - - + + - {{ scope.row.data.销售发货_count + scope.row.data.六车间生产入库_count_notok }} + {{ scope.row.data.销售发货_count + scope.row.data.六车间生产入库_count_notok }} - + - {{ scope.row.data.六车间生产入库_合格率 }} + {{ scope.row.data.六车间生产入库_合格率 }} - + - {{ scope.row.data.六车间生产入库_count_notok }} + {{ scope.row.data.六车间生产入库_count_notok }} - + - {{ scope.row.data.六车间生产入库_count_n_hs }} + {{ scope.row.data.六车间生产入库_count_n_hs }} - + - {{ scope.row.data.六车间生产入库_count_n_zw }} + {{ scope.row.data.六车间生产入库_count_n_zw }} - + - {{getCountQt(scope.row.data,'六车间生产入库')}} + {{getCountQt(scope.row.data,'六车间生产入库')}} - + {{ scope.row.data.六车间生产入库_检验日期 }} - + - {{ scope.row.data.六车间生产入库_检验人 }} + {{ scope.row.data.六车间生产入库_检验人 }} @@ -570,7 +592,8 @@ export default { return { params: { ordering:'-last_time', - batch__startswith__in:'ZB2,B1', + material_start__cate:'管', + last_time_isnull:false, }, query:{ batch__contains:'', @@ -585,7 +608,38 @@ export default { }, methods: { handleQuery(){ - this.$refs.table.queryData(this.query); + let that = this; + let querys = [],arr1=[],arr2=[]; + let obj = {},obj1 = {},obj2 = {}; + obj.field = 'batch__contains'; + obj.value = that.query.batch__contains; + obj.compare = ''; + obj1.field = 'last_time__gte'; + obj1.value = that.query.last_time__gte; + obj1.compare = 'gte'; + obj2.field = 'last_time__gte'; + obj2.value = that.query.last_time__gte; + obj2.compare = 'gte'; + if((that.query.last_time__gte==''||that.query.last_time__gte==null)&&(that.query.last_time__lte==''||that.query.last_time__lte==null)&&that.query.batch__contains!==''&&that.query.batch__contains!==null){ + querys.push(obj); + } + if(that.query.last_time__gte!==''&&that.query.last_time__gte!==null){ + arr1.push(obj1); + if(that.query.batch__contains!==''&&that.query.batch__contains!==null){ + arr1.push(obj); + } + querys.push(arr1) + } + if(that.query.last_time__lte!==''&&that.query.last_time__lte!==null){ + arr2.push(obj2); + if(that.query.batch__contains!==''&&that.query.batch__contains!==null){ + arr2.push(obj); + } + querys.push(arr2) + } + let params = {}; + params.querys = querys; + this.$refs.table.queryData(params); }, getCountQt(data,type){ let count_qt = 0,count = 0; diff --git a/src/views/statistics/stock_statistics.vue b/src/views/statistics/stock_statistics.vue index 35b84f80..92d425d9 100644 --- a/src/views/statistics/stock_statistics.vue +++ b/src/views/statistics/stock_statistics.vue @@ -46,7 +46,6 @@ :filters="nameFilters1" :filter-method="filterName1" filter-placement="bottom-end"/> - - - - @@ -266,7 +260,6 @@ export default { { id: 40, name: "辅助材料" }, { id: 70, name: "办公用品" }, ], - project_code : this.$TOOL.data.get("BASE_INFO").base.base_code, }; }, mounted() { @@ -286,7 +279,7 @@ export default { }, methods: { queryTypeChnge() { - this.query.queryDate = ""; + this.queryDate =null; }, getTableData1() { let that = this; @@ -460,19 +453,10 @@ export default { if (that.queryDate !== "" && that.queryDate !== null) { that.start_date = that.queryDate + "-01"; let arr = that.queryDate.split("-"); - that.end_date = - that.queryDate + - "-" + - new Date(arr[0], arr[1], 0).getDate(); + that.end_date = that.queryDate + "-" + new Date(arr[0], arr[1], 0).getDate(); } else { - that.start_date = - that.currentYear + "-" + this.currentMonth + "-01"; - that.end_date = - that.currentYear + - "-" + - this.currentMonth + - "-" + - that.currentLastDay; + that.start_date = that.currentYear + "-" + this.currentMonth + "-01"; + that.end_date = that.currentYear + "-" + this.currentMonth + "-" + that.currentLastDay; } } else { if (this.queryDate !== "" && this.queryDate !== null) { diff --git a/src/views/statistics/task_rate.vue b/src/views/statistics/task_rate.vue index 1ccb0338..423b1602 100644 --- a/src/views/statistics/task_rate.vue +++ b/src/views/statistics/task_rate.vue @@ -67,13 +67,11 @@ :data="tableData1" id="exportDiv7" :height="tableHeight" + :summary-method="getSummaries" + show-summary > - + @@ -96,13 +94,11 @@ :data="tableData2" id="exportDiv10" :height="tableHeight" + :summary-method="getSummaries" + show-summary > - + @@ -125,13 +121,11 @@ :data="tableData3" id="exportDiv6" :height="tableHeight" + :summary-method="getSummaries" + show-summary > - + @@ -178,8 +172,8 @@ export default { series: { name: "7车间完成率", type: "pie", - radius: ["40%", "70%"], - center: ["50%", "60%"], + radius: ["35%", "65%"], + center: ["50%", "58%"], label: { show: true, position: "outside", @@ -194,7 +188,6 @@ export default { option2: { title: { text: "10车间完成率", - // subtext: '', }, tooltip: { trigger: "item", @@ -207,8 +200,8 @@ export default { series: { name: "10车间完成率", type: "pie", - radius: ["40%", "70%"], - center: ["50%", "60%"], + radius: ["35%", "65%"], + center: ["50%", "58%"], label: { show: true, position: "outside", @@ -235,8 +228,8 @@ export default { series: { name: "6车间完成率", type: "pie", - radius: ["40%", "70%"], - center: ["50%", "60%"], + radius: ["35%", "65%"], + center: ["50%", "58%"], label: { show: true, position: "outside", @@ -276,8 +269,7 @@ export default { this.currentYear = year; this.currentMonth = month > 9 ? month : "0" + month; this.start_date = year + "-" + month + "-01"; - this.end_date = - year + "-" + month + "-" + new Date(year, month, 0).getDate(); + this.end_date = year + "-" + month + "-" + days; let month1 = month > 9 ? month : "0" + month; this.queryDate = year + "-" + month1; let height = document.getElementById("elMain").clientHeight - 40; @@ -430,6 +422,34 @@ export default { this.getData7(); this.getData10(); }, + getSummaries({ columns, data }) { + const sums = []; + columns.forEach((column, index) => { + if (index === 0) { + sums[index] = "合计"; + return; + } + if (index == 2||index == 3) { + const values = data.map((item) => + Number(item[column.property]) + ); + if (!values.every((value) => Number.isNaN(value))) { + sums[index] = values.reduce((prev, curr) => { + const value = Number(curr); //Number转换为数值 + let sum = Number( + Number(prev) + Number(curr) + ).toFixed(2); //toFixed(2)数据项保留两位小数 + if (!isNaN(value)) { + return sum; + } else { + return prev; + } + }, 0); + } + } + }); + return sums; + }, handleExport(val) { this.exportLoading = true; let id = "#exportDiv" + val; diff --git a/src/views/statistics/wpr_statistics.vue b/src/views/statistics/wpr_statistics.vue index 5d00b5f1..2eb6b32c 100644 --- a/src/views/statistics/wpr_statistics.vue +++ b/src/views/statistics/wpr_statistics.vue @@ -4,7 +4,7 @@ --> - + >撤回 @@ -210,12 +204,12 @@ export default { }) .then(async () => { if (that.handleTitle === "撤回工单") { - res = that.$API.wf.ticket.ticketRetreat.req( + res = await that.$API.wf.ticket.ticketRetreat.req( that.ticketId, that.handleForm ); } else { - res = that.$API.wf.ticket.ticketClose.req( + res = await that.$API.wf.ticket.ticketClose.req( that.ticketId, that.handleForm ); diff --git a/src/views/wpm_bx/handover.vue b/src/views/wpm_bx/handover.vue index 52d59d86..8d85eab3 100644 --- a/src/views/wpm_bx/handover.vue +++ b/src/views/wpm_bx/handover.vue @@ -70,6 +70,7 @@ + 新批次号:{{ props.row.new_batch }} @@ -82,6 +83,11 @@ {{item.defect_name}} + + + + 板段号:{{ bwItem.number }}、 + @@ -97,12 +103,24 @@ - - - 交送 - 接收 + + + + 正常 + 分批 + 合批 + 返工 + 检验 + 报废 + 退料 交送 接收 @@ -113,15 +131,6 @@ {{scope.row.recive_mgroup_name}} - - - 正常 - 返工 - 检验 - 报废 - 退料 - - 编辑 - + diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue index faf791d8..581cca1d 100644 --- a/src/views/wpm_bx/handover_form.vue +++ b/src/views/wpm_bx/handover_form.vue @@ -27,6 +27,9 @@ {{ totalCount }} + + {{ form.batch }} + @@ -416,7 +419,6 @@ export default { let that = this; that.$API.mtm.mgroup.list.req({ page: 0}).then((res) => { that.mgroupOptions = res; - if(that.type==40){ res.forEach(item=>{ if(item.name=="废品库"){ @@ -595,6 +597,7 @@ export default { that.mgroupOptions = res; if(res.length==1){ that.form.recive_mgroup = res[0].id; + that.getUserList2(); } }) data.forEach((item,index)=>{ @@ -696,27 +699,26 @@ export default { //表单注入数据 setData(data) { let that = this; + console.log('交接记录查看',data) this.totalCount = data.count?data.count:data.handoverb.count; Object.assign(this.form, data); - if(data.type==30){ - this.getUserList3(); - }else{ - this.$API.system.user.list.req({ depts: data.recive_dept, page: 0 }).then((res) => { - that.userList2 = res; - }); - setTimeout(() => { - let arr =that.userList2.filter((item) => { - return item.id == data.recive_user - }) - if(arr.length>0){}else{ - let obj = {}; - obj.id = data.recive_user; - obj.name = data.recive_user_name; - that.userList2.push(obj); - } - },500) - - } + this.$API.system.user.list.req({ depts: data.send_dept, page: 0 }).then((res) => { + that.userList = res; + }); + this.$API.system.user.list.req({ depts: data.recive_dept, page: 0 }).then((res) => { + that.userList2 = res; + }); + setTimeout(() => { + let arr =that.userList2.filter((item) => { + return item.id == data.recive_user + }) + if(arr.length>0){}else{ + let obj = {}; + obj.id = data.recive_user; + obj.name = data.recive_user_name; + that.userList2.push(obj); + } + },500) if(data.new_batch!==''&&data.new_batch!==undefined&&data.new_batch!==null){ this.change_batch = true; } @@ -760,6 +762,7 @@ export default { that.mgroupOptions = res0; if(res0.length==1){ that.form.recive_mgroup = res0[0].id; + that.getUserList2(); } }) let obj = {}; diff --git a/src/views/wpm_bx/handover_form2.vue b/src/views/wpm_bx/handover_form2.vue index 9455924f..247ed4f4 100644 --- a/src/views/wpm_bx/handover_form2.vue +++ b/src/views/wpm_bx/handover_form2.vue @@ -1,6 +1,6 @@ - 交接物料:{{codeText}} - 物料总数:{{totalCount}} - 分批 + + {{batchOrign.batch}} + 物料总数: + {{batchOrign.count}} + 分批 + - - {{saveCount}} - - - + - - - - - + + 选择物料: + + + + + + 数量:{{ listItem.count }} + - - + + + {{ item2.number }} + + @@ -100,15 +111,11 @@ export default { }, data() { return { - selectItems:[], - loading: false, mode: "add", - titleMap: { - 20: "分批", - 30: "合批", - }, + wm_in:"", mtype:20, - saveCount:0, + lastBatchNum:1, + addBactchNum:1, form: { send_date: null, send_user: null, @@ -132,8 +139,9 @@ export default { }, }, batchOrign:{}, - totalCount: 0, + wprOptions: [], materialOptions: [], + loading: false, visible: false, isSaveing: false, setFiltersVisible: false, @@ -148,67 +156,109 @@ export default { that.form.send_user = that.form.recive_user= userInfo.id; }, methods: { + getWpr(id){ + let that = this; + that.$API.wpm.wpr.list.req({page:0,wm:id}).then((res) => { + that.wprOptions = res; + }); + }, + getNum(batch){ + let that = this; + that.$API.wpm.batchlog.batchesTo.req({batch:batch}).then((res) => { + if(res.last_batch_num!==null){ + that.lastBatchNum = res.last_batch_num; + that.addBactchNum = res.last_batch_num+1; + }else{ + that.lastBatchNum = 0; + that.addBactchNum = 1; + } + let obj = { }; + obj.wm = that.batchOrign.id; + obj.batch = that.batchOrign.batch+"-"+that.addBactchNum; + that.addBactchNum++; + obj.count = 0; + obj.handoverbw=[]; + that.form.handoverb.push(obj); + }) + }, //显示 open(mode = "add",data,mtype) { this.mode = mode; this.form.mtype = mtype; - this.codeText = data.batch; this.batchOrign = data; - this.totalCount = data.count; - let obj = { }; - obj.wm = data.id; - obj.batch = data.batch+"-1"; - obj.count = data.count; - this.saveCount = 0; - this.form.handoverb.push(obj) + this.getWpr(data.id); + this.getNum(data.batch); this.visible = true; return this; }, + wm_inChange(index){ + let that = this; + //放入对应的行中的handoverb中,并且在列表中disabled + that.wprOptions.forEach(item=>{ + if(item.id == that.form.handoverb[index].wpr){ + let obj = {}; + obj.number = item.number; + obj.wpr = item.id; + item.disabled = true; + that.form.handoverb[index].handoverbw.push(obj); + that.form.handoverb[index].wpr = ''; + } + }) + that.form.handoverb[index].count = that.form.handoverb[index].handoverbw.length; + }, + formWminChange(index,number){ + let that = this; + //放入对应的行中的handoverb中,并且在列表中disabled + that.wprOptions.forEach(item=>{ + if(item.number== number){ + if(item.disabled){ + that.$message.error("该物料已被分配"); + that.form.handoverb[index].wpr = ''; + }else{ + item.disabled = true; + let obj = {}; + obj.number = item.number; + obj.wpr = item.id; + that.form.handoverb[index].handoverbw.push(obj); + that.form.handoverb[index].count = that.form.handoverb[index].handoverbw.length; + that.form.handoverb[index].wpr = ''; + } + } + }) + }, + deleteWpr(index1,index2,wpr){ + let that = this; + that.wprOptions.forEach(item=>{ + if(item.id == wpr){ + item.disabled = false; + } + }) + that.form.handoverb[index1].handoverbw.splice(index2,1); + that.form.handoverb[index1].count = that.form.handoverb[index1].handoverbw.length; + }, batchAdd(){ let that = this; - if(that.saveCount>0){ - let indexs = that.form.handoverb.length+1; - let count = 0; - that.form.handoverb.forEach(item=>{ - count+=item.count; - }) - let obj = { }; - obj.wm = that.batchOrign.id; - obj.batch = that.codeText+"-"+indexs; - obj.count = that.batchOrign.count - count; - that.saveCount = 0; - that.form.handoverb.push(obj) - }else{ - that.$message.warning("已无可分配数量"); - } + let obj = { }; + obj.wm = that.batchOrign.id; + obj.batch = that.batchOrign.batch+"-"+that.addBactchNum; + that.addBactchNum++; + obj.count =0; + obj.handoverbw=[]; + that.form.handoverb.push(obj) }, delMaterial(index){ - this.form.handoverb.splice(index,1); - this.countChange(); - }, - - countChange(index){ let that = this; - let totalCount = 0; - if(this.form.handoverb.length>0){ - this.form.handoverb.forEach(item=>{ - totalCount += item.count; - }) - let saveCount = that.batchOrign.count-totalCount; - if(saveCount<0){//数量不能大于总数量 - this.form.handoverb[index].count = 0; - let total = 0; - this.form.handoverb.forEach(item=>{ - total += item.count; + //解除该记录的wpr的disabled + if(that.form.handoverb[index].handoverbw.length>0){ + that.form.handoverb[index].handoverbw.forEach(item=>{ + that.wprOptions.forEach(item2=>{ + if(item2.id == item.wpr){ + item2.disabled = false; + } }) - this.form.handoverb[index].count = that.batchOrign.count-total; - that.saveCount = 0; - }else{ - that.saveCount = that.batchOrign.count-totalCount; - - } - + }) } + that.form.handoverb.splice(index,1); }, //提交 submit() { @@ -267,4 +317,21 @@ export default { height: 50px; line-height: 50px; } +.wprItem{ + background: #eeeeee; + padding: 0 10px; + border-radius: 5px; + display: inline-block; + position: relative; + height: 30px; + line-height: 30px; + margin-right: 20px; +} +.circleCloseFilled{ + position: absolute; + top: -7px; + right: -10px; + color: red; + font-size: 20px; +} diff --git a/src/views/wpm_bx/inmIn.vue b/src/views/wpm_bx/inmIn.vue index 6a731c4b..32ceca0b 100644 --- a/src/views/wpm_bx/inmIn.vue +++ b/src/views/wpm_bx/inmIn.vue @@ -81,7 +81,11 @@ label="批次号" prop="batch" min-width="120" - > + > + + {{scope.row.batch}} + + + + 关联产品 @@ -246,6 +260,7 @@ import checkDialog from "./check_form.vue"; import showDrawer from "./check_drawer.vue"; import scrapDialog from "./handover_form.vue"; import saveDialog from "./inm_record.vue"; +import handoverDialog from "./handover_form2.vue"; export default { props: { deptId: { @@ -274,7 +289,8 @@ export default { materials, checkDialog, showDrawer, - scrapDialog + scrapDialog, + handoverDialog }, name: "wmaterial", data() { @@ -420,8 +436,9 @@ export default { obj.wm = item.id; obj.batch = item.batch; obj.process = item.material_.process_name; - obj.count_cando = item.count_cando; - obj.count = item.count_cando; + obj.count_canhandover = item.count_canhandover; + obj.count = item.count_canhandover; + obj.label = item.defect !== null?item.batch+'('+item.material_name+')'+item.defect_name:item.batch+'('+item.material_name+')'; handoverb.push(obj) }) } @@ -458,6 +475,14 @@ export default { this.dialog.save = false; this.$refs.table.refresh(); }, + //分批mtype:20 + rowClick(row){ + this.dialog.handover = true; + this.type = 10; + this.$nextTick(() => { + this.$refs.handoverDialog.open("add",row,20); + }); + }, //打印物料标签 printMaterial(row,type){ let that = this; @@ -493,7 +518,7 @@ export default { } } } - params.extra_data={materialname:materialname,specification:specification,count:row.count,slicecount:slice_count,numbers0:numbers[0],numbers1:numbers[1],numbers2:numbers[2],numbers3:numbers[3],numbers4:numbers[4],numbers5:numbers[5],numbers6:numbers[6]}; + params.extra_data={orimaterial:row.material_ofrom_name,materialname:materialname,specification:specification,count:row.count,slicecount:slice_count,numbers0:numbers[0],numbers1:numbers[1],numbers2:numbers[2],numbers3:numbers[3],numbers4:numbers[4],numbers5:numbers[5],numbers6:numbers[6]}; that.apiObjPrint.req(params).then((res) => { let obj = {}; obj.printer_commands = res.commands; @@ -505,9 +530,10 @@ export default { }) }else{ if(that.route_code=='paiyicibang'){ + params.extra_data={orimaterial:row.material_ofrom_name}; params.label_template_name = '排一次棒打印模板'; }else{ - params.extra_data={count:row.count}; + params.extra_data={orimaterial:row.material_ofrom_name,count:row.count}; params.label_template_name = '其他工序打印模板'; } that.apiObjPrint.req(params).then((res) => { diff --git a/src/views/wpm_bx/inmOut.vue b/src/views/wpm_bx/inmOut.vue index 37cb02de..8f22149d 100644 --- a/src/views/wpm_bx/inmOut.vue +++ b/src/views/wpm_bx/inmOut.vue @@ -82,7 +82,11 @@ label="批次号" prop="batch" min-width="120" - > + > + + {{scope.row.batch}} + + + + 关联产品 @@ -247,6 +261,7 @@ import checkDialog from "./check_form.vue"; import showDrawer from "./check_drawer.vue"; import scrapDialog from "./handover_form.vue"; import saveDialog from "./inm_record.vue"; +import handoverDialog from "./handover_form2.vue"; export default { props: { deptId: { @@ -275,7 +290,8 @@ export default { materials, checkDialog, showDrawer, - scrapDialog + scrapDialog, + handoverDialog }, name: "wmaterial", data() { @@ -421,8 +437,9 @@ export default { obj.wm = item.id; obj.batch = item.batch; obj.process = item.material_.process_name; - obj.count_cando = item.count_cando; - obj.count = item.count_cando; + obj.count_canhandover = item.count_canhandover; + obj.count = item.count_canhandover; + obj.label = item.defect !== null?item.batch+'('+item.material_name+')'+item.defect_name:item.batch+'('+item.material_name+')'; handoverb.push(obj) }) } @@ -454,6 +471,14 @@ export default { that.wprList = res; }) }, + //分批mtype:20 + rowClick(row){ + this.dialog.handover = true; + this.type = 10; + this.$nextTick(() => { + this.$refs.handoverDialog.open("add",row,20); + }); + }, //本地更新数据 handleSaveSuccess(data, mode) { this.dialog.save = false; @@ -495,7 +520,7 @@ export default { } } } - params.extra_data={materialname:materialname,specification:specification,count:row.count,slicecount:slice_count,numbers0:numbers[0],numbers1:numbers[1],numbers2:numbers[2],numbers3:numbers[3],numbers4:numbers[4],numbers5:numbers[5],numbers6:numbers[6]}; + params.extra_data={orimaterial:row.material_ofrom_name,materialname:materialname,specification:specification,count:row.count,slicecount:slice_count,numbers0:numbers[0],numbers1:numbers[1],numbers2:numbers[2],numbers3:numbers[3],numbers4:numbers[4],numbers5:numbers[5],numbers6:numbers[6]}; that.apiObjPrint.req(params).then((res) => { let obj = {}; obj.printer_commands = res.commands; @@ -507,9 +532,10 @@ export default { }) }else{ if(that.route_code=='paiyicibang'){ + params.extra_data={orimaterial:row.material_ofrom_name}; params.label_template_name = '排一次棒打印模板'; }else{ - params.extra_data={count:row.count}; + params.extra_data={orimaterial:row.material_ofrom_name,count:row.count}; params.label_template_name = '其他工序打印模板'; } that.apiObjPrint.req(params).then((res) => { diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue index 536355e4..63985a53 100644 --- a/src/views/wpm_bx/mlog_detail.vue +++ b/src/views/wpm_bx/mlog_detail.vue @@ -210,8 +210,9 @@ @click="table_add" style="position: absolute; left: 100px; top: 5px" >新增 - 注:请扫码录入单个棒!一个棒对应一个日志,方便于采集数据对应 + 注:请扫码录入单个棒!一个棒对应一个日志,方便于采集数据对应 注:请输入单个棒的料!一个棒的料对应一个日志,方便于自动排号 + 请扫码录入单个板段,一个板段对应一个日志,方便于采集数据对应 - + - + new Date().getTime(); + let that = this; + return time.getTime() < new Date(that.form.work_start_time).getTime()- 1000 * 60 * 60*24; }, gettestitem(){ let that = this; diff --git a/src/views/wpm_bx/mlogb_form.vue b/src/views/wpm_bx/mlogb_form.vue index b86059fa..e0bbf03c 100644 --- a/src/views/wpm_bx/mlogb_form.vue +++ b/src/views/wpm_bx/mlogb_form.vue @@ -298,8 +298,14 @@ export default { }, //获取任务列表 getMtask() { + console.log(this.materialIn); let that = this; - this.$API.pm.mtask.list.req({ page: 0, mgroup: that.mgroup, state: 20 }).then((res) => { + let obj = {}; + obj.page = 0; + obj.state = 20; + obj.mgroup = that.mgroup; + obj.route__material_in = that.materialIn; + this.$API.pm.mtask.list.req(obj).then((res) => { that.options = res; }); }, diff --git a/src/views/wpm_bx/mlogbw_check.vue b/src/views/wpm_bx/mlogbw_check.vue index f7ba2708..6789b54f 100644 --- a/src/views/wpm_bx/mlogbw_check.vue +++ b/src/views/wpm_bx/mlogbw_check.vue @@ -314,6 +314,16 @@ style="width: 100%" @change="defectidsChange" > + + + All + + - @@ -458,6 +467,7 @@ export default { route_code:"", wprInputText:"", params: {mlogb:'',page:0}, + checkAll: false, hideAdd: true, visible: false, setVisible:false, @@ -911,6 +921,24 @@ export default { that.defectlists.push(item); } }) + if(that.defectlists.length == that.qct_defects.length){ + that.checkAll = true; + }else{ + that.checkAll = false; + } + }, + handleCheckAll(){ + let that = this; + that.defectlists = []; + that.form.defectids = []; + if(that.checkAll){ + that.qct_defects.forEach(item => { + item.canEdit = true; + item.value=null; + that.defectlists.push(item); + that.form.defectids.push(item.defect); + }) + } }, check_start(){ this.checkVisible=true; @@ -994,6 +1022,8 @@ export default { this.checkVisible = false; }, check_set(){ + this.wprNumber = ""; + this.selectWpr = []; this.setVisible=true; }, //扫描物料将这一行放到第一行并编辑这一行 diff --git a/src/views/wpm_bx/mlogs.vue b/src/views/wpm_bx/mlogs.vue index aaef461e..67080462 100644 --- a/src/views/wpm_bx/mlogs.vue +++ b/src/views/wpm_bx/mlogs.vue @@ -68,10 +68,19 @@ prop="hour_work" width="80" > + + + + + {{ item.batch }}、 + + + + @@ -86,6 +95,31 @@ {{scope.row.belong_dept_name}}/{{scope.row.mgroup_name}} + + + {{scope.row.oinfo_json_.是否保温}} + + + + + {{scope.row.oinfo_json_.温度}} + + + + + {{scope.row.oinfo_json_.压力}} + + + + + {{scope.row.oinfo_json_.刻度}} + + + + + {{scope.row.oinfo_json_.压板用时}} + + - + + + + + + [{{ item.routepack_name }}]{{ item.name }} + + + + { + // that.routeOptions = res; + // }); + // }, + changeRoute(){ + let that = this; + that.routeOptions.forEach(item=>{ + if(item.id==that.form.route){ + console.log('item',item) + that.getdefects(item.id,item.material_in,item.material_out); + } + }) + }, getTeam() { let that = this; let form = {}; @@ -475,9 +511,11 @@ export default { that.getUserList(); }); }, - getdefects(){ + getdefects(route,material_in,material_out){ let that = this; - if(that.is_fix){ + console.log('getdefects') + if(that.is_fix&&that.materialFix!==null&&that.materialFix!==''){ + console.log('that.materialFix',that.materialFix) that.$API.qm.qct.getQct.req({material: that.materialFix,tag:'process'}).then((res) => { res.qct_defects.forEach((item) => { that.defectform[item.defect_name] = 0; @@ -494,37 +532,42 @@ export default { } }) }else{ - that.$API.qm.qct.getQct.req({material: that.material_in,tag:'process'}).then((res) => { - res.qct_defects.forEach((item) => { - that.defectinform[item.defect_name] = 0; - }) - that.qct_indefects=res.qct_defects; - if(that.mlogindefect.length>0){ - that.qct_indefects.forEach(item => { - that.mlogindefect.forEach(item2=>{ - if(item.defect==item2.defect){ - that.defectinform[item.defect_name] = item2.count; - } - }) + console.log('route',route) + if(route!==null){ + console.log('material_in',material_in) + console.log('material_out',material_out) + that.$API.qm.qct.getQct.req({material:material_in,tag:'process'}).then((res) => { + res.qct_defects.forEach((item) => { + that.defectinform[item.defect_name] = 0; }) - } - }) - //material_out - that.$API.qm.qct.getQct.req({material: that.material_out,tag:'process'}).then((res) => { - res.qct_defects.forEach((item) => { - that.defectform[item.defect_name] = 0; - }) - that.qct_defects=res.qct_defects; - if(that.mlogdefect.length>0){ - that.qct_defects.forEach(item => { - that.mlogdefect.forEach(item2=>{ - if(item.defect==item2.defect){ - that.defectform[item.defect_name] = item2.count; - } + that.qct_indefects=res.qct_defects; + if(that.mlogindefect.length>0){ + that.qct_indefects.forEach(item => { + that.mlogindefect.forEach(item2=>{ + if(item.defect==item2.defect){ + that.defectinform[item.defect_name] = item2.count; + } + }) }) + } + }) + //material_out + that.$API.qm.qct.getQct.req({material:material_out,tag:'process'}).then((res) => { + res.qct_defects.forEach((item) => { + that.defectform[item.defect_name] = 0; }) - } - }) + that.qct_defects=res.qct_defects; + if(that.mlogdefect.length>0){ + that.qct_defects.forEach(item => { + that.mlogdefect.forEach(item2=>{ + if(item.defect==item2.defect){ + that.defectform[item.defect_name] = item2.count; + } + }) + }) + } + }) + } } }, getEquipment() { @@ -542,18 +585,23 @@ export default { getRoute() { let that = this; if(!that.is_fix){//正常生产 - that.$API.mtm.route.item.req(that.route).then(res=>{ - that.material_in = res.material_in; - that.material_out = that.form.material_out = res.material_out; - if(that.mlogId){ - that.getMlogObj(); - }else{ - that.getdefects(); - } - - }); + if(that.route==null){ + that.$API.mtm.route.list.req({ process: that.process, page: 0, routepack__state: 30 }).then((res) => { + that.routeOptions = res; + }); + }else{ + that.$API.mtm.route.item.req(that.route).then(res=>{ + that.material_in = res.material_in; + that.material_out = that.form.material_out = res.material_out; + if(that.mlogId){ + that.getMlogObj(); + } + }); + } }else{ - // that.getdefects(); + that.$API.mtm.route.list.req({ process: that.process, page: 0, routepack__state: 30 }).then((res) => { + that.routeOptions = res; + }); } }, //获取工段人员 @@ -619,7 +667,7 @@ export default { that.materialCount = that.form.count_use = that.form.count_real = that.form.count_ok = item.count; that.form.count_real = item.count-that.form.count_pn_jgqbl; - that.getdefects(); + that.getdefects(that.route,that.material_in,that.material_out); } }) }, @@ -648,7 +696,7 @@ export default { console.log("this.$API.wpm.mlog.item", res); that.mlogindefect = res.mlogindefect; that.mlogdefect = res.mlogdefect; - that.getdefects(); + that.getdefects(that.route,that.material_in,that.material_out); }) }, //表单注入数据 diff --git a/src/views/wpm_gx/fmlog_detail.vue b/src/views/wpm_gx/fmlog_detail.vue index c80029da..b0880946 100644 --- a/src/views/wpm_gx/fmlog_detail.vue +++ b/src/views/wpm_gx/fmlog_detail.vue @@ -11,7 +11,7 @@ 打印 - {{ + {{ fmlogItem.route_name }} {{ @@ -29,8 +29,7 @@ v-if="fmlogItem.submit_time == null" icon="el-icon-plus" @click="table_add" - >新增 + >新增 编辑 diff --git a/src/views/wpm_gx/handover_form.vue b/src/views/wpm_gx/handover_form.vue index 82f2f53b..188e20a1 100644 --- a/src/views/wpm_gx/handover_form.vue +++ b/src/views/wpm_gx/handover_form.vue @@ -31,6 +31,9 @@ {{ totalCount }} + + {{ form.batch }} + @@ -59,7 +62,7 @@ - + @@ -371,6 +374,7 @@ export default { that.mgroupOptions = res; if(res.length==1){ that.form.recive_mgroup = res[0].id; + that.getUserList2(); } }) }, @@ -546,7 +550,7 @@ export default { }, //表单注入数据 setData(data) { - console.log(data) + console.log('交接记录查看',data) let that = this; Object.assign(this.form, data); that.totalCount = 0; diff --git a/src/views/wpm_gx/index.vue b/src/views/wpm_gx/index.vue index 489157d5..34d81c3d 100644 --- a/src/views/wpm_gx/index.vue +++ b/src/views/wpm_gx/index.vue @@ -109,13 +109,10 @@ export default { let paths = this.$route.path; let arr = paths.split("/"); this.mgroup_code = arr[2]; - console.log('this.mgroup_code',this.mgroup_code); - that.getMgroups(this.mgroup_code); }, methods: { handleChange(value) { this.value = value; - console.log("Selected value:", value); }, getMgroups(code){ let that = this; diff --git a/src/views/wpm_gx/index2.vue b/src/views/wpm_gx/index2.vue index aa9e7496..07136b07 100644 --- a/src/views/wpm_gx/index2.vue +++ b/src/views/wpm_gx/index2.vue @@ -119,13 +119,10 @@ export default { let paths = this.$route.path; let arr = paths.split("/"); this.mgroup_code = arr[2]; - console.log('this.mgroup_code',this.mgroup_code); - that.getMgroups(this.mgroup_code); }, methods: { handleChange(value) { this.value = value; - console.log("Selected value:", value); }, getMgroups(code){ let that = this; diff --git a/src/views/wpm_gx/inm.vue b/src/views/wpm_gx/inm.vue index 8dea4fe7..b69d783d 100644 --- a/src/views/wpm_gx/inm.vue +++ b/src/views/wpm_gx/inm.vue @@ -322,8 +322,9 @@ export default { let obj = {}; obj.wm = item.id; obj.batch = item.batch; - obj.count_cando = item.count_cando; - obj.count = item.count_cando; + obj.count_canhandover = item.count_canhandover; + obj.count = item.count_canhandover; + obj.label = item.defect !== null?item.batch+'('+item.material_name+')'+item.defect_name:item.batch+'('+item.material_name+')'; handoverb.push(obj) }) } diff --git a/src/views/wpm_gx/inmOut.vue b/src/views/wpm_gx/inmOut.vue index 56868661..10374f8f 100644 --- a/src/views/wpm_gx/inmOut.vue +++ b/src/views/wpm_gx/inmOut.vue @@ -356,8 +356,9 @@ export default { let obj = {}; obj.wm = item.id; obj.batch = item.batch; - obj.count_cando = item.count_cando; - obj.count = item.count_cando; + obj.count_canhandover = item.count_canhandover; + obj.count = item.count_canhandover; + obj.label = item.defect !== null?item.batch+'('+item.material_name+')'+item.defect_name:item.batch+'('+item.material_name+')'; handoverb.push(obj) }) } @@ -391,8 +392,9 @@ export default { let obj = {}; obj.wm = item.id; obj.batch = item.batch; - obj.count_cando = item.count_cando; - obj.count = item.count_cando; + obj.count_canhandover = item.count_canhandover; + obj.count = item.count_canhandover; + obj.label = item.defect !== null?item.batch+'('+item.material_name+')'+item.defect_name:item.batch+'('+item.material_name+')'; handoverb.push(obj) }) } diff --git a/src/views/wpm_gx/mlog_detail.vue b/src/views/wpm_gx/mlog_detail.vue index ed33a910..06781730 100644 --- a/src/views/wpm_gx/mlog_detail.vue +++ b/src/views/wpm_gx/mlog_detail.vue @@ -10,9 +10,11 @@ 打印 - {{ - mlogItem.routepack_name - }} + + 返工 + {{mlogItem.material_in_name}}-> + {{mlogItem.material_out_name}} + {{ mlogItem.material_in_name }} @@ -344,6 +346,8 @@ :mgroupName = "mgroupName" :codeText = "codeText" :materialIn="materialIn" + :process = "process" + :hasRoute = "hasRoute" @success="handleSaveSuccess" @closed="dialog.save = false" > @@ -603,6 +607,9 @@ export default { let that = this; that.$API.wpm.mlog.item.req(that.mlogId).then((res) => { that.mlogItem = res; + if(res.route!==null){ + this.hasRoute = true; + } that.mgroupName = res.mgroup_name; if(res.test_file!==null){ that.fileList = [{name:res.test_file,url:res.test_file}]; diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue index 7bd1c45a..4c13d8b0 100644 --- a/src/views/wpm_gx/mlog_form.vue +++ b/src/views/wpm_gx/mlog_form.vue @@ -57,7 +57,7 @@ - + + [{{ item.routepack_name }}]{{ item.name }} diff --git a/src/views/wpm_gx/mlogb_form.vue b/src/views/wpm_gx/mlogb_form.vue index 8e5cec68..ae02faea 100644 --- a/src/views/wpm_gx/mlogb_form.vue +++ b/src/views/wpm_gx/mlogb_form.vue @@ -16,6 +16,28 @@ label-width="100px" > + + + + + [{{ item.routepack_name }}]{{ item.name }} + + + + {{ scope.row.defect_name }} - + + - @@ -100,7 +96,8 @@