|
...
|
...
|
@@ -6,8 +6,11 @@ |
|
|
|
<a-form-model ref="form" :model="model" :rules="validatorRules">
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="是否同意" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="isagree">
|
|
|
|
<a-radio-group v-model="model.isagree" @change="onChange">
|
|
|
|
<a-form-model-item label="是否同意" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="value" v-decorator="[
|
|
|
|
'value',
|
|
|
|
{rules: [{ required: true, message: '请选择是否同意'}]}
|
|
|
|
]" >
|
|
|
|
<a-radio-group v-model="value" @change="onChange">
|
|
|
|
<a-radio :value="'1'">
|
|
|
|
同意
|
|
|
|
</a-radio>
|
|
...
|
...
|
@@ -65,9 +68,9 @@ |
|
|
|
},
|
|
|
|
confirmLoading: false,
|
|
|
|
validatorRules: {
|
|
|
|
isagree: [
|
|
|
|
{ required: true, message: '请选择!' },
|
|
|
|
],
|
|
|
|
// isagree: [
|
|
|
|
// { required: true, message: '请选择!' },
|
|
|
|
// ],
|
|
|
|
approvalOpinions: [
|
|
|
|
{ required: true, message: '请输入审批意见!' },
|
|
|
|
],
|
|
...
|
...
|
@@ -94,13 +97,17 @@ |
|
|
|
},
|
|
|
|
edit (record) {
|
|
|
|
this.model = Object.assign({}, record);
|
|
|
|
// this.model.isagree = 1
|
|
|
|
// if(!this.model.isagree){
|
|
|
|
// this.model.isagree = '1'
|
|
|
|
// }
|
|
|
|
this.visible = true;
|
|
|
|
this.model.isagree = '1'
|
|
|
|
console.log('this.model',this.model)
|
|
|
|
},
|
|
|
|
onChange(e) {
|
|
|
|
console.log('radio checked', e.target.value);
|
|
|
|
this.model.isagree = this.value
|
|
|
|
console.log('radio value',this.value);
|
|
|
|
//this.model.isagree = e.target.value
|
|
|
|
},
|
|
|
|
handleOk () {
|
|
|
|
const that = this;
|
|
...
|
...
|
@@ -111,7 +118,7 @@ |
|
|
|
const tempMOdel = {
|
|
|
|
partNumber:this.model.partNumber,
|
|
|
|
approvalOpinions:this.model.approvalOpinions,
|
|
|
|
isagree:this.model.isagree,
|
|
|
|
isagree:this.value,
|
|
|
|
approvalLevel:'1'
|
|
|
|
}
|
|
|
|
// return
|
...
|
...
|
|