Merge branch 'master' of https://e.coding.net/ctcdevteam/ehs/ehs_web
This commit is contained in:
commit
c8c675f44a
|
@ -37,7 +37,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="工时" prop="hour_work">
|
<el-table-column label="工时" prop="hour_work">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="批次绑定" prop="batch_bind">
|
<el-table-column label="批次校验" prop="batch_bind">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
</scTable>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="工时" prop="hour_work">
|
<el-table-column label="工时" prop="hour_work">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="批次绑定" prop="batch_bind">
|
<el-table-column label="批次校验" prop="batch_bind">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
|
|
|
@ -216,6 +216,10 @@ export default {
|
||||||
that.$API.mtm.mgroup.list
|
that.$API.mtm.mgroup.list
|
||||||
.req({ page: 0, search: that.mgroupName })
|
.req({ page: 0, search: that.mgroupName })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
if(res.length != 1){
|
||||||
|
that.$message.error("获取工段错误");
|
||||||
|
return;
|
||||||
|
}
|
||||||
that.mgroupId = res[0].id;
|
that.mgroupId = res[0].id;
|
||||||
that.processId = res[0].process;
|
that.processId = res[0].process;
|
||||||
that.processCate = res[0].process_cate;
|
that.processCate = res[0].process_cate;
|
||||||
|
|
|
@ -152,6 +152,10 @@ export default {
|
||||||
that.$API.mtm.mgroup.list
|
that.$API.mtm.mgroup.list
|
||||||
.req({ page: 0, search: that.mgroupName })
|
.req({ page: 0, search: that.mgroupName })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
if(res.length != 1){
|
||||||
|
that.$message.error("获取工段错误");
|
||||||
|
return;
|
||||||
|
}
|
||||||
that.mgroupId = res[0].id;
|
that.mgroupId = res[0].id;
|
||||||
that.params.mgroupx = res[0].id;
|
that.params.mgroupx = res[0].id;
|
||||||
that.apiObj = that.$API.wpm.wmaterial.list;
|
that.apiObj = that.$API.wpm.wmaterial.list;
|
||||||
|
|
|
@ -315,7 +315,7 @@ export default {
|
||||||
getRoute(id) {
|
getRoute(id) {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.mtm.route.list
|
that.$API.mtm.route.list
|
||||||
.req({ process: that.process, page: 0 })
|
.req({ process: that.process, page: 0, routepack__state: 30 })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
that.routeOptions = res;
|
that.routeOptions = res;
|
||||||
});
|
});
|
||||||
|
|
|
@ -146,7 +146,7 @@ export default {
|
||||||
getMtask() {
|
getMtask() {
|
||||||
let that = this;
|
let that = this;
|
||||||
this.$API.pm.mtask.list
|
this.$API.pm.mtask.list
|
||||||
.req({ page: 0, mgroup: that.mgroup })
|
.req({ page: 0, mgroup: that.mgroup, state: 20 })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
that.options = res;
|
that.options = res;
|
||||||
});
|
});
|
||||||
|
|
|
@ -178,6 +178,10 @@ export default {
|
||||||
that.$API.mtm.mgroup.list
|
that.$API.mtm.mgroup.list
|
||||||
.req({ page: 0, search: that.mgroupName })
|
.req({ page: 0, search: that.mgroupName })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
if(res.length != 1){
|
||||||
|
that.$message.error("获取工段错误");
|
||||||
|
return;
|
||||||
|
}
|
||||||
that.mgroupId = res[0].id;
|
that.mgroupId = res[0].id;
|
||||||
that.deptId = res[0].belong_dept;
|
that.deptId = res[0].belong_dept;
|
||||||
that.processId = res[0].process;
|
that.processId = res[0].process;
|
||||||
|
|
|
@ -111,6 +111,10 @@ export default {
|
||||||
that.$API.mtm.mgroup.list
|
that.$API.mtm.mgroup.list
|
||||||
.req({ page: 0, search: that.mgroupName })
|
.req({ page: 0, search: that.mgroupName })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
if(res.length != 1){
|
||||||
|
that.$message.error("获取工段错误");
|
||||||
|
return;
|
||||||
|
}
|
||||||
that.mgroupId = res[0].id;
|
that.mgroupId = res[0].id;
|
||||||
that.processId = res[0].process;
|
that.processId = res[0].process;
|
||||||
that.processCate = res[0].process_cate;
|
that.processCate = res[0].process_cate;
|
||||||
|
|
Loading…
Reference in New Issue