-
新增记录
+
+ 新增记录
-
-
-
@@ -96,13 +91,11 @@
-
-
@@ -120,7 +113,7 @@
save: false,
},
task:'',
- orderObj:{},
+ mtaskObj:{},
apiObj: null,
query: {
page:0,
@@ -148,7 +141,7 @@
getTask(){
let that = this;
that.$API.pm.mtask.item.req(that.mtask).then((res) => {
- that.orderObj = res;
+ that.mtaskObj = res;
that.getFormList();
})
},
@@ -185,7 +178,7 @@
},
getFormList(){
let that = this;
- that.$API.pm.mtask.related.req(that.orderObj.id).then(res=>{
+ that.$API.pm.mtask.related.req(that.mtaskObj.id).then(res=>{
that.related = res;
let ids = [];
res.forEach(item=>{
@@ -238,7 +231,7 @@
}else{
debugger;
let obj = row;
- obj.handle_date = this.orderObj.start_date;
+ obj.handle_date = this.mtaskObj.start_date;
obj.count_real = obj.count_use;
this.$API.wpm.mlog.create.req(obj).then(res=>{
this.relatedList[index].isedit = false;
@@ -251,7 +244,7 @@
let obj = {};
let ids = data.join(',')
obj.mtask__in = ids;
- obj.handle_date = this.orderObj.start_date;
+ obj.handle_date = this.mtaskObj.start_date;
obj.mtask__mgroup__belong_dept__name = '6车间';
this.$API.wpm.mlog.list.req(obj).then(res=>{
let data = res.results;
@@ -288,7 +281,7 @@
submit(){
let that = this;
that.$confirm(`确定删除吗?`, "提示", {type: "warning"}).then(() => {
- that.$API.pm.mtask.submitSameDay.req(that.orderObj.id).then(re=>{
+ that.$API.pm.mtask.submitSameDay.req(that.mtaskObj.id).then(re=>{
that.$message.success("提交成功");
}).catch((err) => {
return err;
diff --git a/src/views/wpm/worktask_form.vue b/src/views/wpm/worktask_form.vue
index 69328659..951e9187 100644
--- a/src/views/wpm/worktask_form.vue
+++ b/src/views/wpm/worktask_form.vue
@@ -1,27 +1,57 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关联产品计数:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- 不合格原因及数量:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 确定
- 取消
-
-
+ 不合格原因及数量:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确定
+ 取消
+
+
\ No newline at end of file