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 @@ + + + + + + 光芯科技 + + ✨ + 材料创造美好世界 + + + + + 公司秉承"善用资源,服务建设"的核心理念,践行"材料创造美 + 好世界"的企业使命,坚持"创新、绩效、和谐、责任"的核心价 + 值观,努力成长为具有创新精神和全球视野的光芯材料领先企业。 + + + + + 芯 + + + + + 我的待办 + {{ dutyCount }} + + + 我提交的 + {{ ownerCount }} + + + + 发起流程 + + + ↗️ + {{ group.category }} + + + + + + + {{ item.name }} + + + + + {{drawerName}} + 关闭 + + + + + + \ 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 @@ + + {{ scope.row[item] }} @@ -52,22 +54,31 @@ export default { let that = this; let params = {}; that.$API.bi.dataset.exec.req('mat_p_count', params).then((res) => { - let data = res.data2.ds0; - let data2 = []; - data.forEach(item=>{ - if(item.物料名.indexOf('玻璃棒管')<0){ - data2.push(item); - } - }) - data2.forEach(item=>{ + let data = res.data2.ds0; + let data2 = []; + data.forEach(item=>{ + if(item.物料名.indexOf('玻璃棒管')<0){ + data2.push(item); + } + }) + data2.forEach(item=>{ if(item.工序数量分布){ let obj = JSON.parse(item.工序数量分布); for(let key in obj){ item[key]= obj[key]; } } - }) - that.tableData = data2; + }) + data2.forEach(item=>{ + let total = 0; + that.lists.forEach(list=>{ + if(item[list]){ + total+= item[list]; + } + }) + item['总数']= total; + }) + that.tableData = data2; }); }, }, diff --git a/src/views/statistics/bxerp/maopiTotal.vue b/src/views/statistics/bxerp/maopiTotal.vue index b17d41ee..6d814183 100644 --- a/src/views/statistics/bxerp/maopiTotal.vue +++ b/src/views/statistics/bxerp/maopiTotal.vue @@ -87,7 +87,7 @@ - {{ 100-scope.row.data['毛坯检测_含缺陷_剪切¢18.3mm不合格_比例']-scope.row.data['毛坯检测_含缺陷_剪切¢18.3mm可加工_比例'] }} + {{ 100-scope.row.data['毛坯检测_含缺陷_剪切¢18.3mm不合格_比例']-scope.row.data['毛坯检测_含缺陷_剪切¢18.3mm可加工_比例'] }}% {{ 100-scope.row.data['毛坯检测_含缺陷_剪切¢18.3mm不合格_比例'] }}% @@ -136,7 +136,7 @@ - {{ scope.row.data.毛坯检测_含缺陷_暗点不合格_比例?100-scope.row.data.毛坯检测_含缺陷_暗点不合格_比例-scope.row.data.毛坯检测_含缺陷_暗点合格_比例:100-scope.row.data.毛坯检测_含缺陷_暗点合格_比例 }} + {{ scope.row.data.毛坯检测_含缺陷_暗点不合格_比例?100-scope.row.data.毛坯检测_含缺陷_暗点不合格_比例-scope.row.data.毛坯检测_含缺陷_暗点合格_比例:100-scope.row.data.毛坯检测_含缺陷_暗点合格_比例 }}% {{ scope.row.data.毛坯检测_含缺陷_暗点不合格_比例?100-scope.row.data.毛坯检测_含缺陷_暗点不合格_比例:100 }}% @@ -267,7 +267,7 @@ - {{ scope.row.data.毛坯检测_合格率 }} + {{ scope.row.data.毛坯检测_合格率 }}% diff --git a/src/views/statistics/stock_statistics.vue b/src/views/statistics/stock_statistics.vue index 1c4908a3..c93e10e1 100644 --- a/src/views/statistics/stock_statistics.vue +++ b/src/views/statistics/stock_statistics.vue @@ -42,13 +42,13 @@ - - - - + { - that.tableData11 = res; - if (res.length > 0) { - res.forEach((ite) => { - if (nameList.indexOf(ite.name) > -1) { } else { - nameList.push(ite.name); - let obj = {}; - obj.text = ite.name; - obj.value = ite.name; - that.nameFilters11.push(obj); - } - if (modelList.indexOf(ite.model) > -1) { } else { - modelList.push(ite.model); - let obj2 = {}; - obj2.text = ite.model; - obj2.value = ite.model; - that.modelFilters11.push(obj2); - } - if (specsList.indexOf(ite.specification) > -1) { } else { - specsList.push(ite.specification); - let obj3 = {}; - obj3.text = ite.specification; - obj3.value = ite.specification; - that.specsFilters11.push(obj3); - } - }); + let obj = {query: {"material_types": this.params.type,}}; + that.$API.bi.dataset.exec.req("materialCount2", obj).then((res) => { + if (res.data2.ds0) { + let data = res.data2.ds0; + that.tableData11 = data; + if(data.length>0){ + data.forEach((ite)=>{ + if (that.nameFilters11.findIndex(i=>i.value==ite.material_name)<0) { + let obj={}; + obj.text=ite.material_name; + obj.value=ite.material_name; + that.nameFilters11.push(obj); + } + if (that.modelFilters11.findIndex(i=>i.value==ite.material_model)<0) { + let obj2={}; + obj2.text=ite.material_model; + obj2.value=ite.material_model; + that.modelFilters11.push(obj2); + } + if (that.specsFilters11.findIndex(i=>i.value==ite.material_specification)<0) { + let obj3={}; + obj3.text=ite.material_specification; + obj3.value=ite.material_specification; + that.specsFilters11.push(obj3); + } + }) + } } - }); + }) }, materialTypeChange() { let that = this; @@ -329,17 +325,31 @@ export default { "select_material": "", "groupby_material": "" }; - if(that.params.type==40){ - query.select_material="material.cate as cate"; - query.groupby_material="material.cate"; - query.select_material_name = ""; - query.groupby_material_name = ""; + let query2 = { + "material_types": this.params.type, + "select_material": "material.name as material_name", + "groupby_material": "material.name" } - this.$API.bi.dataset.exec.req("materialCount", {query:query }).then((res) => { - if (res.echart_options) { - this.echartsOptions = JSON.parse(res.echart_options); + if(that.params.type==10||that.params.type==20){ + this.$API.bi.dataset.exec.req("materialCount", {query:query }).then((res) => { + if (res.echart_options) { + this.echartsOptions = JSON.parse(res.echart_options); + } + }) + }else{ + if(that.params.type==40){ + query2.select_material="material.cate as cate"; + query2.groupby_material="material.cate"; + query2.select_material_name = ""; + query2.groupby_material_name = ""; } - }) + this.$API.bi.dataset.exec.req("materialCount2", {query:query2 }).then((res) => { + if (res.echart_options) { + this.echartsOptions = JSON.parse(res.echart_options); + } + }) + } + }, //更改周预估用量 weekcountChange(row) { @@ -521,13 +531,13 @@ export default { return row.dept_name == value; }, filterName11(value, row) { - return row.name == value; + return row.material_name == value; }, filterSpecs11(value, row) { - return row.specification == value; + return row.material_specification == value; }, filterModel11(value, row) { - return row.model == value; + return row.material_model == value; }, filterName2(value, row) { return row.物料名 == value; diff --git a/src/views/wpm_bx/index.vue b/src/views/wpm_bx/index.vue index 61ba9631..ca1c55f9 100644 --- a/src/views/wpm_bx/index.vue +++ b/src/views/wpm_bx/index.vue @@ -11,7 +11,7 @@ - + @@ -31,7 +31,7 @@ - + @@ -39,7 +39,7 @@ + - - -
公司秉承"善用资源,服务建设"的核心理念,践行"材料创造美
好世界"的企业使命,坚持"创新、绩效、和谐、责任"的核心价
值观,努力成长为具有创新精神和全球视野的光芯材料领先企业。