0615
This commit is contained in:
parent
4e685f3f94
commit
a14967dcde
|
@ -160,7 +160,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="编号">
|
<el-form-item label="编号">
|
||||||
<el-input v-model="number" @input="checkValue" placeholder="编号"/>
|
<el-input v-model="numbers" @input="checkValue" placeholder="编号"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
|
@ -211,7 +211,7 @@
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
number: {
|
numbers: {
|
||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
|
@ -307,7 +307,7 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkValue() {
|
checkValue() {
|
||||||
this.number = this.number.replace(/[^0-9a-zA-Z]/g, '');
|
this.numbers = this.numbers.replace(/[^0-9a-zA-Z]/g, '');
|
||||||
},
|
},
|
||||||
filterBlock(rule, index, field_key) {
|
filterBlock(rule, index, field_key) {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
@ -740,7 +740,7 @@
|
||||||
that.testrecord.record_data = that.field;//检查项列表
|
that.testrecord.record_data = that.field;//检查项列表
|
||||||
that.testrecord.is_testok = that.is_testok;//检查表检查结果
|
that.testrecord.is_testok = that.is_testok;//检查表检查结果
|
||||||
that.testrecord.id = that.recordId;//记录id
|
that.testrecord.id = that.recordId;//记录id
|
||||||
that.testrecord.number = that.number;//编号
|
that.testrecord.number = that.numbers;//编号
|
||||||
that.testrecord.remark = that.remark;//备注
|
that.testrecord.remark = that.remark;//备注
|
||||||
if (that.index === '2') {//提交
|
if (that.index === '2') {//提交
|
||||||
this.$emit('recordSubmit', that.testrecord);
|
this.$emit('recordSubmit', that.testrecord);
|
||||||
|
|
|
@ -521,7 +521,7 @@
|
||||||
:formID="recordform"
|
:formID="recordform"
|
||||||
:wproduct="wproduct"
|
:wproduct="wproduct"
|
||||||
:remark="remark"
|
:remark="remark"
|
||||||
:number="number"
|
:numbers="numbers"
|
||||||
:recordId="recordId"
|
:recordId="recordId"
|
||||||
:isDisabled="isDisabled"
|
:isDisabled="isDisabled"
|
||||||
:isMidTesting="is_midtesting"
|
:isMidTesting="is_midtesting"
|
||||||
|
@ -939,7 +939,7 @@
|
||||||
{text: '镀膜', value: '镀膜'}, {text: '断膜', value: '断膜'}, {text: '汇流条制备', value: '汇流条制备'},
|
{text: '镀膜', value: '镀膜'}, {text: '断膜', value: '断膜'}, {text: '汇流条制备', value: '汇流条制备'},
|
||||||
{text: '夹层', value: '夹层'}, {text: '包边', value: '包边'}],
|
{text: '夹层', value: '夹层'}, {text: '包边', value: '包边'}],
|
||||||
remark:'',
|
remark:'',
|
||||||
number:'',
|
numbers:'',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
|
@ -1285,8 +1285,8 @@
|
||||||
that.recordVisible = false;
|
that.recordVisible = false;
|
||||||
that.recordId = scope.row.id;
|
that.recordId = scope.row.id;
|
||||||
that.recordform = scope.row.form;
|
that.recordform = scope.row.form;
|
||||||
that.number = scope.row.number;
|
that.numbers = scope.row.number?scope.row.number:'';
|
||||||
that.remark = scope.row.remark;
|
that.remark = scope.row.remark?scope.row.remark:'';
|
||||||
that.formName = scope.row.form_.name;
|
that.formName = scope.row.form_.name;
|
||||||
if (that.innerIndex !== '2') {//非复检
|
if (that.innerIndex !== '2') {//非复检
|
||||||
getrffieldList({form: this.recordform, enabled: true, page: 1, page_size: 100}).then((response) => {
|
getrffieldList({form: this.recordform, enabled: true, page: 1, page_size: 100}).then((response) => {
|
||||||
|
@ -1370,8 +1370,8 @@
|
||||||
that.recordFinishedVisible = true;
|
that.recordFinishedVisible = true;
|
||||||
that.formName = res.data.form_.name;
|
that.formName = res.data.form_.name;
|
||||||
that.fieldList = res.data.record_data;
|
that.fieldList = res.data.record_data;
|
||||||
that.number = res.data.number;
|
that.numbers = res.data.number?res.data.number:'';
|
||||||
that.remark = res.data.remark;
|
that.remark = res.data.remark?res.data.remark:'';
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -1507,8 +1507,12 @@
|
||||||
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;
|
||||||
params.number = value.number;
|
if(value.numbers){
|
||||||
params.remark = value.remark;
|
params.number = value.numbers;
|
||||||
|
}
|
||||||
|
if(value.remark){
|
||||||
|
params.remark = value.remark;
|
||||||
|
}
|
||||||
putTestRecordItem(id, params).then((res) => {
|
putTestRecordItem(id, params).then((res) => {
|
||||||
if (res.code >= 200) {
|
if (res.code >= 200) {
|
||||||
that.recordVisible = false;
|
that.recordVisible = false;
|
||||||
|
@ -1533,18 +1537,30 @@
|
||||||
params.id = value.id;
|
params.id = value.id;
|
||||||
params.is_testok = value.is_testok;
|
params.is_testok = value.is_testok;
|
||||||
params.record_data = value.record_data;
|
params.record_data = value.record_data;
|
||||||
params.number = value.number;
|
debugger;
|
||||||
params.remark = value.remark;
|
if(value.numbers){
|
||||||
|
params.number = value.numbers;
|
||||||
|
}
|
||||||
|
if(value.remark){
|
||||||
|
params.remark = value.remark;
|
||||||
|
}
|
||||||
that.params = params;
|
that.params = params;
|
||||||
that.limitedPhoto = true;
|
that.limitedPhoto = true;
|
||||||
},
|
},
|
||||||
checkSubmit(data) {
|
checkSubmit(data) {
|
||||||
debugger;
|
|
||||||
let that = this;
|
let that = this;
|
||||||
let id = that.params.id;
|
let id = that.params.id;
|
||||||
let params = new Object();
|
let params = new Object();
|
||||||
params.is_testok = that.params.is_testok;
|
params.is_testok = that.params.is_testok;
|
||||||
params.record_data = that.params.record_data;
|
params.record_data = that.params.record_data;
|
||||||
|
debugger;
|
||||||
|
if(this.params.numbers){
|
||||||
|
params.number = this.params.numbers;
|
||||||
|
}
|
||||||
|
if(this.params.remark){
|
||||||
|
params.remark = this.params.remark;
|
||||||
|
}
|
||||||
params.token = data.token;
|
params.token = data.token;
|
||||||
let text = '确定以操作员'+data.name+'身份提交?';
|
let text = '确定以操作员'+data.name+'身份提交?';
|
||||||
if (data.token !== '' && data.token !== null && data.token !== undefined) {
|
if (data.token !== '' && data.token !== null && data.token !== undefined) {
|
||||||
|
|
Loading…
Reference in New Issue