ddd
This commit is contained in:
parent
f41c41836c
commit
65280b7411
|
@ -333,10 +333,10 @@
|
||||||
checkForm:{},
|
checkForm:{},
|
||||||
originForm:{},
|
originForm:{},
|
||||||
testrecord:{
|
testrecord:{
|
||||||
form:this.formID,
|
// form:this.formID,
|
||||||
record_data:[],
|
record_data:[],
|
||||||
is_testok:true,
|
is_testok:true,
|
||||||
wproduct:null,
|
// wproduct:null,
|
||||||
},
|
},
|
||||||
origin_test:null,
|
origin_test:null,
|
||||||
canvas:null,
|
canvas:null,
|
||||||
|
@ -804,6 +804,7 @@
|
||||||
// that.testrecord.wproduct = that.wproductId;//半成品ID
|
// that.testrecord.wproduct = that.wproductId;//半成品ID
|
||||||
// that.testrecord.is_submited = true;
|
// that.testrecord.is_submited = true;
|
||||||
that.testrecord.id = that.recordId;
|
that.testrecord.id = that.recordId;
|
||||||
|
debugger;
|
||||||
if(submit){//提交
|
if(submit){//提交
|
||||||
this.$emit('recordSubmit',that.testrecord);
|
this.$emit('recordSubmit',that.testrecord);
|
||||||
}else {//保存
|
}else {//保存
|
||||||
|
|
|
@ -295,6 +295,7 @@
|
||||||
:hasPicture="hasPicture"
|
:hasPicture="hasPicture"
|
||||||
:wproduct="wproduct"
|
:wproduct="wproduct"
|
||||||
:recordId="recordId"
|
:recordId="recordId"
|
||||||
|
@recordSave="recordSave"
|
||||||
@recordSubmit="recordSubmit"
|
@recordSubmit="recordSubmit"
|
||||||
@recordCancel="recordCancel"
|
@recordCancel="recordCancel"
|
||||||
/>
|
/>
|
||||||
|
@ -751,15 +752,18 @@
|
||||||
},
|
},
|
||||||
//半产品复检
|
//半产品复检
|
||||||
handleReview() {
|
handleReview() {
|
||||||
|
debugger;
|
||||||
let that = this;
|
let that = this;
|
||||||
testInit({ wproduct: this.wproduct,form: that.recordform}).then((response) => {
|
testInit({ wproduct: this.wproduct,form: that.recordform}).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
|
debugger;
|
||||||
that.hasPicture = false;
|
that.hasPicture = false;
|
||||||
that.formName = response.data.name;
|
that.recordId = response.data.id;
|
||||||
let fieldList = response.data.form_fields;
|
that.formName = response.data.form_.name;
|
||||||
|
let fieldList = response.data.record_data;
|
||||||
that.fieldList = [...fieldList];
|
that.fieldList = [...fieldList];
|
||||||
that.origintest = response.data.origin_test;
|
that.origintest = response.data.origin_test;
|
||||||
that.recordform = response.data.origin_test_.form;
|
// that.recordform = response.data.origin_test_.form;
|
||||||
let originList = response.data.origin_test_.record_data;
|
let originList = response.data.origin_test_.record_data;
|
||||||
that.originList = [...originList];
|
that.originList = [...originList];
|
||||||
let arr = fieldList.filter(item => {
|
let arr = fieldList.filter(item => {
|
||||||
|
@ -775,6 +779,7 @@
|
||||||
|
|
||||||
//根据选择的表,渲染检查项目
|
//根据选择的表,渲染检查项目
|
||||||
submitrecordform(index) {
|
submitrecordform(index) {
|
||||||
|
debugger;
|
||||||
let that = this;
|
let that = this;
|
||||||
this.outerVisible = false;
|
this.outerVisible = false;
|
||||||
if (that.recordform != "") {
|
if (that.recordform != "") {
|
||||||
|
@ -800,6 +805,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else if(index==='2'){//复检
|
}else if(index==='2'){//复检
|
||||||
|
debugger;
|
||||||
that.handleReview();
|
that.handleReview();
|
||||||
}
|
}
|
||||||
} else this.$message.error("请选择检查表!");
|
} else this.$message.error("请选择检查表!");
|
||||||
|
@ -858,14 +864,17 @@
|
||||||
},
|
},
|
||||||
//保存检查项目
|
//保存检查项目
|
||||||
recordSave(value) {
|
recordSave(value) {
|
||||||
|
debugger;
|
||||||
let that = this;
|
let that = this;
|
||||||
let id = value.id;
|
let id = value.id;
|
||||||
let params = {};
|
let params = {};
|
||||||
params.record_data = value.record_data;
|
params.record_data = value.record_data;
|
||||||
params.is_testok = value.is_testok;
|
params.is_testok = value.is_testok;
|
||||||
putTestRecordItem(id,params).then((res) => {
|
putTestRecordItem(id,params).then((res) => {
|
||||||
|
debugger;
|
||||||
if (res.code >= 200) {
|
if (res.code >= 200) {
|
||||||
that.recordVisible = false;
|
that.recordVisible = false;
|
||||||
|
that.limitedReview = false;
|
||||||
that.getList();
|
that.getList();
|
||||||
that.getList2();
|
that.getList2();
|
||||||
that.getList1();
|
that.getList1();
|
||||||
|
@ -890,6 +899,8 @@
|
||||||
subTestRecordItem(id,params).then((res) => {
|
subTestRecordItem(id,params).then((res) => {
|
||||||
if (res.code >= 200) {
|
if (res.code >= 200) {
|
||||||
that.recordVisible = false;
|
that.recordVisible = false;
|
||||||
|
that.limitedReview = false;
|
||||||
|
that.limitedCheckRecord = false;
|
||||||
that.getList();
|
that.getList();
|
||||||
that.getList2();
|
that.getList2();
|
||||||
that.getList1();
|
that.getList1();
|
||||||
|
|
Loading…
Reference in New Issue