diff --git a/src/views/home/my.vue b/src/views/home/my.vue new file mode 100644 index 00000000..ac4ed909 --- /dev/null +++ b/src/views/home/my.vue @@ -0,0 +1,454 @@ + + + \ No newline at end of file diff --git a/src/views/home/widgets/index_gx.vue b/src/views/home/widgets/index_gx.vue index bb9bf80d..1471e3de 100644 --- a/src/views/home/widgets/index_gx.vue +++ b/src/views/home/widgets/index_gx.vue @@ -223,9 +223,9 @@ export default { that.year_s = year; that.month_s = month; that.day_s = day; - this.getEquipList(); - this.getMaterialWarning(); - this.getMaterialList(); + // this.getEquipList(); + // this.getMaterialWarning(); + // this.getMaterialList(); }, methods: { // 动态绑定Class diff --git a/src/views/inm/mainso_mio.vue b/src/views/inm/mainso_mio.vue index 58472a54..57ea1e21 100644 --- a/src/views/inm/mainso_mio.vue +++ b/src/views/inm/mainso_mio.vue @@ -125,15 +125,19 @@ > 编辑 - - 提交 - + + + + + 提交 + + - + @@ -135,7 +140,7 @@ label="部门执行人" prop="do_user" v-if="(form.type == 'do_in' || form.type == 'do_out'|| form.type == 'borrow_out' || form.type == 'return_in')&& htype!='baofei'" > - + { if(that.type==40){ that.userList2 = []; @@ -390,34 +391,28 @@ export default { }); }, inputChange(e){ - console.log('e',e); let that = this; if(e!==''&&e!==null&&e!==undefined){ - let codeId = e.split('#')[1]; - this.$API.cm.labelmat.item.req(codeId).then((res) => { - if(res){ - let arr = that.batchOptions.filter((item) => { - return item.batch == res.batch&&item.state==res.state; - }) - if (arr.length > 0) { - that.selectBatch = arr[0].batch; - that.form.batch = arr[0].batch; - that.form.mb = arr[0].id; - that.batchcount = Number(arr[0].count_canmio); - that.form.count = Number(arr[0].count_canmio); - that.form.warehouse = arr[0].warehouse; - that.inputBatchDisable = true; - setTimeout(() => { - options.value = res.batch; - }, 200) + if(e.indexOf('#')>-1){ + let codeId = e.split('#')[1]; + this.$API.cm.labelmat.item.req(codeId).then((res) => { + if(res){ + let arr = that.batchOptions.filter((item) => { + return item.batch == res.batch&&item.state==res.state; + }) + that.batchOptions = arr; }else{ that.selectBatch = ''; - that.$message.error("批次号不存在"); } - }else{ - that.selectBatch = ''; - } - }) + }) + }else{ + let arr = that.batchOptions.filter((item) => { + return item.batch.indexOf(e)>-1; + }) + that.batchOptions = arr; + } + }else{ + that.batchOptions = that.batchOptions_o; } }, getMaterialOptions() { @@ -523,7 +518,7 @@ export default { this.$API.inm.warehouse.batch .req({ page: 0, material: this.form.material }) .then((res) => { - this.batchOptions = res; + this.batchOptions_o = this.batchOptions = res; if (res.length == 0) { this.selectBatchDisable = true; } else { diff --git a/src/views/statistics/bxerp/defect.vue b/src/views/statistics/bxerp/defect.vue index 5f5b573d..e35e3833 100644 --- a/src/views/statistics/bxerp/defect.vue +++ b/src/views/statistics/bxerp/defect.vue @@ -110,7 +110,7 @@ export default { }, methods: { deptMgroup() { - this.$API.mtm.mgroup.list.req({ page: 0 }).then(res => { + this.$API.mtm.mgroup.list.req({ page: 0,belong_dept__name:'拉丝排板班组' }).then(res => { this.mgroups = res; }); }, diff --git a/src/views/statistics/bxerp/inmTotal.vue b/src/views/statistics/bxerp/inmTotal.vue index 4817aaf8..c55314cf 100644 --- a/src/views/statistics/bxerp/inmTotal.vue +++ b/src/views/statistics/bxerp/inmTotal.vue @@ -13,6 +13,8 @@ + +