diff --git a/src/views/inm/mainso.vue b/src/views/inm/mainso.vue index bcee7134..930c0efc 100644 --- a/src/views/inm/mainso.vue +++ b/src/views/inm/mainso.vue @@ -61,9 +61,11 @@ - + - 物料标签 + 检验 + 检验记录 + 物料标签 @@ -75,6 +77,7 @@ :mtype="wmtype" :apiObj="apiObjPrint" > + 关联产品 @@ -108,6 +111,143 @@ + + + + 检验记录 + + + + + + + + + + + + + + + 删除 + + + + + + + 关闭 + + + + + + + + + + + + {{ objitem.material_name }} + + + + + {{ objitem.batch }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 提交 + 取消 + + + - diff --git a/src/views/wpm_bx/inmIn.vue b/src/views/wpm_bx/inmIn.vue index 1959abce..93a20d89 100644 --- a/src/views/wpm_bx/inmIn.vue +++ b/src/views/wpm_bx/inmIn.vue @@ -11,7 +11,7 @@ v-model="query.state" placeholder="物料状态" clearable - @change="searchStateChange" + @change="handleQuery" style="width: 250px" > - 物料标签 + 物料标签 检验记录 - - - 关联产品 - - - - - - - - - - - {{ item.name }}:{{ item.val}} - , - - - - - - - {{ item.defect_name }} - - - - - - 二维码 - 打印标签 - - - - - - + - - - - - - - diff --git a/src/views/wpm_bx/inmOut.vue b/src/views/wpm_bx/inmOut.vue index 3426f722..bbffd2c1 100644 --- a/src/views/wpm_bx/inmOut.vue +++ b/src/views/wpm_bx/inmOut.vue @@ -204,6 +204,17 @@ @success="handleinmSuccess" > + - - - 关联产品 - 发货编号 - 清空编号 - - - - - - - - {{ item.name }}:{{ item.val}} - , - - - - - - - {{ item.defect_name }} - - - - - - - 打印标签 - - - - - - - 关闭 - - - - - - - - - - - 确定 - 取消 - - - - 没有找到该前缀的发货编号,请完善发货流水号位数(填整数) - - - - - - - 确定 - - { - that.wprList = res; - }) + that.ofrom_name = row.material_ofrom_name; + that.dialog.wprList = true; + that.$nextTick(() => { + that.$refs.inmWprDialog.open("out"); + }); }, + //分批mtype:20 rowClick(row){ this.dialog.handover = true; @@ -539,87 +481,7 @@ export default { this.$refs.handoverDialog.open("add",row,20); }); }, - wprNumberChange(){ - let that = this; - that.showBatch = true; - }, - wprNumberClear(){ - let that = this; - let items = []; - for(let i=0;i< that.wprList.length;i++){ - let obj = {}; - obj.id = that.wprList[i].id; - obj.number_out = null; - items.push(obj) - } - let params = {}; - params.items = items; - that.$API.wpm.wpr.assginNumberOut.req(params).then((res) => { - that.getRowWpr(); - }) - }, - getWprNum(){ - let that = this; - let params0 = {}; - params0.prefix = that.prefix; - that.$API.wpm.wpr.numberOutLast.req(params0).then((res) => { - let number_out_last = ''; - if(res.number_out_last==null){//没有该前缀的发货编号 - number_out_last = null; - that.showBatch=false; - that.showDigit = true; - }else{//有该前缀的发货编号 - let items = []; - number_out_last = res.number_out_last; - let str = number_out_last.replace(/[^a-zA-Z]/g, ''); // 提取字母 - let num = number_out_last.replace(/[^0-9]/g, ''); // 提取数字 - let length = num.length;//流水号的长度 - for(let i=0;i< that.wprList.length;i++){ - let numb = Number(num)+i+1; - let numbs = numb+''; - let len = numbs.length; - let zoreStr = ''; - for(let j=0;j { - that.showBatch=false; - that.getRowWpr(); - }) - } - }) - }, - //没有找到前缀的发货编号,从1开始编号时 - digitSure(){ - let that = this; - //根据前缀和流水位数获取编号 - let items = []; - for(let i=0;i< that.wprList.length;i++){ - let numb = i+1,zoreStr = ''; - numb+= ''; - let len = numb.length; - for(let j=0;j { - that.showDigit = false; - that.getRowWpr(); - }) - }, + //本地更新数据 handleSaveSuccess(data, mode) { this.dialog.save = false; @@ -629,8 +491,7 @@ export default { printMaterial(row,type){ let that = this; if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){ - if(type=='wm'){ - let params = {}; + let params = {}; params.tid = row.id; let materialname = row.material_.name + '|' + row.material_.process_name; let specification = row.material_.specification; @@ -701,69 +562,6 @@ export default { }); }) } - }else if(type=='wpr'){ - let params = {}; - let name = row.material_name.split('|')[0]; - if(that.route_code=='paiyicibang'){ - that.$API.mtm.route.list.req({material_out:row.material,page:0}).then((res) => { - console.log('排一次棒单件打印res',res); - let data = res[0].params_json; - data.number = row.number; - data.name=name; - data.ofrom_name=that.ofrom_name; - params.data = data; - params.label_template_name = '排一次棒单件打印模板'; - that.$API.cm.labeltemplate.commands.req(params).then((res) => { - let obj = {}; - obj.printer_commands = res.commands; - obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { - that.$message.success("打印成功"); - }); - }); - }) - }else{ - if(that.route_code=='paiban'||that.route_code=='zhuangmo'||that.route_code=='zlybcl'||that.route_code=='tuomoceliang'|| - that.route_code=='reyatuihuo'||that.route_code=='banduangunyuan'||that.route_code=='banduangunyuanhoudama'||that.route_code=='banduangunyuantuihuo' - ){ - let oinfo = []; - for(let key in row.oinfo){ - oinfo.push(row.oinfo[key]) - } - let data = {sigao:'',duibian:'',moban:'',istest:'否',number:row.number,name:name,ofrom_name:that.ofrom_name,ofrom_batch:that.ofrom_batch}; - if(that.route_code=='zhuangmo'||that.route_code=='zlybcl'||that.route_code=='tuomoceliang'||that.route_code=='reyatuihuo'||that.route_code=='banduangunyuan'){ - params.label_template_name = '脱膜测量单件标签模板'; - }else{ - params.label_template_name = '排扳单件打印模板'; - } - if(oinfo.length>0){ - oinfo.forEach((item)=>{ - if(item.name=="丝高"){ - data.sigao = item.val; - }else if(item.name=="对边"){ - data.duibian = item.val; - }else if(item.name=="模具号"){ - data.moban = item.val; - }else if(item.name=="实验板段"){ - data.istest = item.val?'是':'否'; - } - }) - } - params.data = data; - }else{ - params.label_template_name = '单件打印模板'; - params.data = {number:row.number,name:name}; - } - that.$API.cm.labeltemplate.commands.req(params).then((res) => { - let obj = {}; - obj.printer_commands = res.commands; - obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { - that.$message.success("打印成功"); - }); - }); - } - } }else{ that.$message.warning("请先设置打印机"); } diff --git a/src/views/wpm_bx/mlog_bx.vue b/src/views/wpm_bx/mlog_bx.vue deleted file mode 100644 index 47b38b16..00000000 --- a/src/views/wpm_bx/mlog_bx.vue +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - {{item.name}} - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/wpm_bx/mlog_form2.vue b/src/views/wpm_bx/mlog_form2.vue index 68894eb0..d02325ed 100644 --- a/src/views/wpm_bx/mlog_form2.vue +++ b/src/views/wpm_bx/mlog_form2.vue @@ -266,7 +266,7 @@ export default { //获取工艺步骤 getRoute() { let that = this; - this.$API.mtm.route.list.req({ process: that.process, page: 0, routepack__state: 30 }).then((res) => { + this.$API.mtm.route.list.req({ process: that.process, page: 0, routepack__state: 30 ,from_route__isnull:true }).then((res) => { this.routeOriginOptions = res; }); }, diff --git a/src/views/wpm_bx/mock.json b/src/views/wpm_bx/mock.json deleted file mode 100644 index fb7911d5..00000000 --- a/src/views/wpm_bx/mock.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "x":2.5, - "y":3.5, - "z":5.0 - } -] \ No newline at end of file diff --git a/src/views/wpm_bx/monitor_detail.vue b/src/views/wpm_bx/monitor_detail.vue index 153a41ef..45189607 100644 --- a/src/views/wpm_bx/monitor_detail.vue +++ b/src/views/wpm_bx/monitor_detail.vue @@ -74,11 +74,6 @@ export default { bottom: "3%", containLabel: true, }, - // toolbox: { - // feature: { - // saveAsImage: {}, - // }, - // }, xAxis: { type: "category", boundaryGap: false, @@ -135,7 +130,8 @@ export default { that.$API.enm.mplogx.req(params).then((res) => { res.forEach(item=>{ that.option.xAxis.data.push(item.timex); - that.option.series.data.push(item.val_float); + let value = Number(item.val_float).toFixed(3); + that.option.series.data.push(value); }) }) } diff --git a/src/views/wpm_bx/print.vue b/src/views/wpm_bx/print.vue deleted file mode 100644 index 47b2c584..00000000 --- a/src/views/wpm_bx/print.vue +++ /dev/null @@ -1,141 +0,0 @@ - - - - - 光芯科技 - 交接单 - - - 物料:{{ name }} - 批次号:{{ batch }} - 数量:{{ count }} - - 打印 - - - - diff --git a/src/views/wpm_gx/f_mlogs_form.vue b/src/views/wpm_gx/f_mlogs_form.vue index 2909ee3f..82774240 100644 --- a/src/views/wpm_gx/f_mlogs_form.vue +++ b/src/views/wpm_gx/f_mlogs_form.vue @@ -208,12 +208,15 @@ - + @@ -447,15 +450,10 @@ export default { that.getRoute(); that.gettestitem(); that.form.fmlog = that.fmlog; - that.form.handle_date = that.$TOOL.dateFormat2(new Date());; + // that.form.handle_date = that.$TOOL.dateFormat2(new Date()); + that.form.work_start_time = that.$TOOL.dateFormat(new Date()); }, methods: { - // getRoute() { - // let that = this; - // that.$API.mtm.route.list.req({ process: that.process, page: 0, routepack__state: 30 }).then((res) => { - // that.routeOptions = res; - // }); - // }, changeRoute(){ let that = this; that.routeOptions.forEach(item=>{ @@ -664,8 +662,8 @@ export default { that.defectinform[item.defect_name] = 0; }) that.materialFix = item.material; - that.materialCount = that.form.count_use = - that.form.count_real = that.form.count_ok = item.count; + that.form.batch = item.batch; + 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.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 2fac709e..725c0af7 100644 --- a/src/views/wpm_gx/fmlog_detail.vue +++ b/src/views/wpm_gx/fmlog_detail.vue @@ -46,7 +46,6 @@ :apiObj="apiObj" :params="params" row-key="id" - @row-click="table_detail" > diff --git a/src/views/wpm_gx/handover_form.vue b/src/views/wpm_gx/handover_form.vue index 3738d6c7..9291f587 100644 --- a/src/views/wpm_gx/handover_form.vue +++ b/src/views/wpm_gx/handover_form.vue @@ -192,7 +192,7 @@ - + { - if(item.defect_okcate==30){ - that.form.count_notok += that.defectform[item.defect_name] ; + if(that.defectform[item.defect_name]!==null){ + if(item.defect_okcate==30){ + that.form.count_notok += that.defectform[item.defect_name] ; + } + let obj = {}; + obj.defect = item.defect; + obj.count = that.defectform[item.defect_name]; + obj.mlogb = that.mlogbItem.id; + this.form.mlogbdefect.push(obj); } - let obj = {}; - obj.defect = item.defect; - obj.count = that.defectform[item.defect_name]; - obj.mlogb = that.mlogbItem.id; - this.form.mlogbdefect.push(obj); }) that.form.count_ok = that.form.count_real -that.form.count_notok; sum = that.form.count_ok + that.form.count_notok; diff --git a/src/views/wpm_gx/mlogs.vue b/src/views/wpm_gx/mlogs.vue index a1505880..eaf159cd 100644 --- a/src/views/wpm_gx/mlogs.vue +++ b/src/views/wpm_gx/mlogs.vue @@ -338,14 +338,14 @@ export default { mlogWf(row){ let that = this; if(that.userId!==row.ticket_.create_by){ - this.$confirm(`需要日志提交人撤回该日志`, "提示", { + that.$confirm(`需要日志提交人撤回该日志`, "提示", { type: "warning", }).then(() => {}) }else{ - this.$confirm(`确定撤回该日志审批吗?`, "提示", { + that.$confirm(`确定撤回该日志审批吗?`, "提示", { type: "warning", }).then(() => { - this.$API.wf.ticket.ticketRetreat.req(row.ticket).then(res=>{ + that.$API.wf.ticket.ticketRetreat.req(row.ticket).then(res=>{ that.$refs.table.refresh(); }) })
物料:{{ name }}
批次号:{{ batch }}
数量:{{ count }}