diff --git a/src/App.vue b/src/App.vue index 642d8171..36b16a06 100644 --- a/src/App.vue +++ b/src/App.vue @@ -175,24 +175,31 @@ export default { // .el-table thead.is-group th.el-table__cell.colorheader4{ // background-color: rgb(168, 218, 228)!important; // } +.el-table thead th.el-table__cell.colorheader1, .el-table thead.is-group th.el-table__cell.colorheader1{ background-color: rgba(246, 98, 98, 0.323)!important; } +.el-table thead th.el-table__cell.colorheader2, .el-table thead.is-group th.el-table__cell.colorheader2{ background-color: rgba(250, 130, 11, 0.325)!important; } +.el-table thead th.el-table__cell.colorheader3, .el-table thead.is-group th.el-table__cell.colorheader3{ background-color: rgba(247, 235, 9, 0.311)!important; } +.el-table thead th.el-table__cell.colorheader4, .el-table thead.is-group th.el-table__cell.colorheader4{ background-color: rgba(30, 252, 10, 0.202)!important; } +.el-table thead th.el-table__cell.colorheader5, .el-table thead.is-group th.el-table__cell.colorheader5{ background-color: rgba(11, 251, 231, 0.326)!important; } +.el-table thead th.el-table__cell.colorheader6, .el-table thead.is-group th.el-table__cell.colorheader6{ background-color: rgba(12, 85, 255, 0.326)!important; } +.el-table thead th.el-table__cell.colorheader7, .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/wpm.js b/src/api/model/wpm.js index a76038b5..3283633d 100644 --- a/src/api/model/wpm.js +++ b/src/api/model/wpm.js @@ -592,11 +592,23 @@ export default { return await http.post(`${config.API_URL}/wpmw/wpr/new_number/`, data); } }, + numberOutLast: { + name: "最新编号", + req: async function (data) { + return await http.get(`${config.API_URL}/wpmw/wpr/number_out_last/`, data); + } + }, query: { name: "动态产品", req: async function (data) { return await http.post(`${config.API_URL}/wpmw/wpr/cquery/`, data); }, }, + assginNumberOut: { + name: "分配出库对外编号", + req: async function (data) { + return await http.post(`${config.API_URL}/wpmw/wpr/assgin_number_out/`, data); + } + }, }, }; diff --git a/src/components/scDegra.vue b/src/components/scDegra.vue index a1a538e4..fb7def1d 100644 --- a/src/components/scDegra.vue +++ b/src/components/scDegra.vue @@ -60,7 +60,7 @@ export default { if(that.g!==null){ that.updateGraph(); }else{ - that.g = new dagreD3.graphlib.Graph().setGraph({ + that.g = new dagreD3.graphlib.Graph({multigraph: true}).setGraph({ rankdir: that.rankdir, nodesep: 40, edgesep: 25, //两条线之间的距离 @@ -89,8 +89,9 @@ export default { that.edges.forEach((transition0) => { that.g.setEdge(transition0.source,transition0.target,{ label: transition0.label,// 边标签 + id: transition0.id, style: "fill:#ffffff;stroke:#c0c1c3;stroke-width:1.5px", // 根据后台数据来改变连线的颜色 - }); + },transition0.id); }); // 创建渲染器 let render = new dagreD3.render(); diff --git a/src/components/scFormTable/index.vue b/src/components/scFormTable/index.vue index 821edeaa..7459fe49 100644 --- a/src/components/scFormTable/index.vue +++ b/src/components/scFormTable/index.vue @@ -9,7 +9,8 @@ - 编辑 + > --> {{ item.batch }} ({{ item.material_.process_name }}) (原料棒) - + {{ item.defect_name }}
{{ item.count_canhandover }} @@ -157,7 +157,7 @@ clearable filterable style="width: 100%" - :disabled="type==40" + :disabled="type==40||mode!=='add'" @change="getUserList2" > @@ -54,29 +57,30 @@ :mgroupId="mgroupId" :deptId="mgroupDept" :process = "mgroupProcess" + :processType = "mgroupProcessType" :mgroup_code="mgroup_code" + :mgroupMtype = "mgroupMtype" > - - + :mgroupName="mgroupName" + :mgroupId="mgroupId" + :deptId="mgroupDept" + :process = "mgroupProcess" + :processType = "mgroupProcessType" + :mgroup_code="mgroup_code" + :mgroupMtype = "mgroupMtype" + > + :mgroupName="mgroupName" + :mgroupId="mgroupId" + :deptId="mgroupDept" + :process = "mgroupProcess" + :processType = "mgroupProcessType" + :mgroup_code="mgroup_code" + :mgroupMtype = "mgroupMtype" + > @@ -94,14 +98,16 @@ export default { return { mgroups:[], tableHieght: 200, + selectedIndex:0, options: ["日志", "交接记录","未完成", "已完成"], values: "日志", mgroupName: "", mgroupId: "", - selectedIndex:0, mgroup_code:'', mgroupDept:'', mgroupMtype:'', + mgroupProcess: '', + mgroupProcessType: '', componentsShow:false, mtaskVisible:false }; @@ -127,6 +133,7 @@ export default { that.mgroups = res; that.mgroupName = res[0].name; that.mgroupId = res[0].id; + that.mgroupProcessType = res[0].process_type; that.mgroupProcess = res[0].process; that.mgroupDept = res[0].belong_dept; that.mgroupMtype = res[0].mtype; diff --git a/src/views/wpm_bx/inmIn.vue b/src/views/wpm_bx/inmIn.vue index 32ceca0b..9c3f8583 100644 --- a/src/views/wpm_bx/inmIn.vue +++ b/src/views/wpm_bx/inmIn.vue @@ -80,10 +80,10 @@ diff --git a/src/views/wpm_gx/fmlog_detail.vue b/src/views/wpm_gx/fmlog_detail.vue index b0880946..2fac709e 100644 --- a/src/views/wpm_gx/fmlog_detail.vue +++ b/src/views/wpm_gx/fmlog_detail.vue @@ -43,13 +43,13 @@ - + - + + @@ -96,32 +97,6 @@ - - { that.isSaveing = false; - that.getMlogs(); + that.$refs.table.refresh(); that.$message.success("操作成功"); }); }, @@ -327,7 +300,7 @@ export default { if (res.err_msg) { that.$message.error(res.err_msg); } else { - that.getMlogs(); + that.$refs.table.refresh(); that.$message.success("撤回成功"); } }); @@ -344,17 +317,17 @@ export default { if (res.err_msg) { that.$message.error(res.err_msg); } else { - that.getMlogs(); + that.$refs.table.refresh(); that.$message.success("删除成功"); } }); }); }, handleSaveSuccess() { - this.getMlogs(); + this.$refs.table.refresh(); }, handleCheckSuccess() { - this.getMlogs(); + this.$refs.table.refresh(); }, fileUPSuccess(res) { console.log('res',res); diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue index 0060493c..63def9bc 100644 --- a/src/views/wpm_gx/handover.vue +++ b/src/views/wpm_gx/handover.vue @@ -148,6 +148,20 @@ prop="recive_user_name" width="80" > + + + + 接收 退回 编辑 @@ -218,7 +232,7 @@ title="确定删除吗?" v-if=" (scope.row.send_mgroup == mgroupId||deptId==scope.row.send_dept)&& - scope.row.submit_time == null + scope.row.submit_time == null&&(scope.row.ticket == null||(scope.row.ticket_&&scope.row.ticket_.state_&&scope.row.ticket_.state_.type!== 0)) " @confirm="table_del(scope.row, scope.$index)" > @@ -290,6 +304,7 @@ + diff --git a/src/views/wpm_gx/index.vue b/src/views/wpm_gx/index.vue index 34d81c3d..9b652b2d 100644 --- a/src/views/wpm_gx/index.vue +++ b/src/views/wpm_gx/index.vue @@ -54,13 +54,27 @@ :processId="processId" :mgroupcode="mgroup_code" > - + + @@ -71,14 +85,16 @@ import mlogs from "./mlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; import record from "./inmrecord.vue"; +import check from "./checkrecord.vue"; +import helpso from "./helpso.vue"; export default { name: "bx", - components: { inm, inmOut,mlogs, mtask, handover,record }, + components: { inm, inmOut,mlogs, mtask, handover,record,helpso,check }, data() { return { mgroups:[], tableHieght: 200, - options: ["日志", "交接记录", "来料未完成","出料已完成","出入库记录"], + options: ["日志", "交接记录", "来料未完成","出料已完成","出入库记录",'辅料'], values: "日志", mgroupName: "", mgroupId: "", @@ -124,6 +140,9 @@ export default { that.mgroupMtype = res[0].mtype; that.processtype = res[0].process_type; that.mgroupDept = res[0].belong_dept; + if(that.mgroupName=='黑化'){ + that.options.push("检验记录") + } that.componentsShow = true; }); }, diff --git a/src/views/wpm_gx/index2.vue b/src/views/wpm_gx/index2.vue index 07136b07..dc8769cc 100644 --- a/src/views/wpm_gx/index2.vue +++ b/src/views/wpm_gx/index2.vue @@ -63,13 +63,20 @@ :processId="processId" :mgroupcode="mgroup_code" > - + @@ -81,15 +88,16 @@ import mtask from "./mtask.vue"; import handover from "./handover.vue"; import record from "./inmrecord.vue"; import mlogsList from "./mlogs.vue"; +import helpso from "./helpso.vue"; export default { name: "bx", - components: { inm, inmOut,mlogs, mtask, handover,record,mlogsList }, + components: { inm, inmOut,mlogs, mtask, handover,record,mlogsList,helpso }, data() { return { mgroups:[], tableHieght: 200, - options: ["日志", "日志记录","交接记录", "来料未完成","出料已完成","出入库记录"], + options: ["日志", "日志记录","交接记录", "来料未完成","出料已完成","出入库记录",'辅料'], values: "日志", mgroupName: "", mgroupId: "", diff --git a/src/views/wpm_gx/inmOut.vue b/src/views/wpm_gx/inmOut.vue index 10374f8f..6a5d109b 100644 --- a/src/views/wpm_gx/inmOut.vue +++ b/src/views/wpm_gx/inmOut.vue @@ -11,7 +11,7 @@
检验 检验记录 物料标签 @@ -259,7 +259,8 @@ export default { tableData: [], selection: [], stateOptions:[ - { value: 10, name: "合格"}, + { value: 100, name: "完全合格"}, + { value: 101, name: "合格B类"}, { value: 20, name: "不合格"}, { value: 30, name: "返工"}, ], @@ -267,6 +268,7 @@ export default { search: "", material: "", }, + queryState:null, cate_type:'', materialType: "wm", changebatch:false, @@ -301,6 +303,27 @@ export default { this.$refs.table_wm.queryData(this.queryWm); this.materialsVisible = false; }, + searchStateChange(){ + let that = this; + switch(that.queryState){ + case 100: + that.query.state = 10; + that.query.notok_sign__isnull = true; + break; + case 101: + that.query.state = 10; + that.query.notok_sign__isnull = false; + break; + case 20: + that.query.state = 20; + that.query.notok_sign__isnull = null; + break; + case 30: + that.query.state = 30; + that.query.notok_sign__isnull = null; + break; + } + }, tomio(type) { let that = this; that.cate_type=type; diff --git a/src/views/wpm_gx/inm_record.vue b/src/views/wpm_gx/inm_record.vue index 7aa10c22..79608dcc 100644 --- a/src/views/wpm_gx/inm_record.vue +++ b/src/views/wpm_gx/inm_record.vue @@ -135,8 +135,9 @@ icon="el-icon-plus" @click="table_add" > - + - + - + @@ -337,7 +338,12 @@ export default { mio_user: "", }, stateDict: {10: "创建中",20: "已提交",}, - typeDict:{'do_in':'生产入库','do_out':'生产领料'}, + typeDict:{ + 'do_in':'生产入库', + 'do_out':'生产领料', + 'borrow_out': "领用出库", + 'return_in': "退还入库" + }, apiworkerObj: null, materials: [], apiObj: null, @@ -379,6 +385,12 @@ export default { open(mode) { this.mode = mode; this.visible = true; + this.active = 0; + this.mioId =null;// + this.form.number= ""; + this.form.do_user= ""; + this.form.mio_user= ""; + console.log('this.active',this.active) return this; }, setData(data,type) { @@ -413,6 +425,7 @@ export default { //车间人员 getDeptUsers() { let that = this; + that.userList = []; let userInfo = that.$TOOL.data.get("USER_INFO"); that.$API.system.user.list.req({ depts: that.deptId, page: 0 }).then((res) => { that.userOptions = res; diff --git a/src/views/wpm_gx/inm_record_form.vue b/src/views/wpm_gx/inm_record_form.vue index 54cc9fe2..e8ba3213 100644 --- a/src/views/wpm_gx/inm_record_form.vue +++ b/src/views/wpm_gx/inm_record_form.vue @@ -12,182 +12,273 @@ :rules="rules" label-width="120px" > - - - + + - {{ item.full_name }} - - - - - - - - {{item.material_.name}}|{{ item.batch }} - {{ item.defect_name }} - {{ item.count }} - - - - - - - - - - - {{ item.batch }} - {{ item.count }} -- {{ item.warehouse_name }} - - - - - - -