|
@@ -6,8 +6,11 @@ |
|
@@ -6,8 +6,11 @@ |
|
6
|
<a-form-model ref="form" :model="model" :rules="validatorRules">
|
6
|
<a-form-model ref="form" :model="model" :rules="validatorRules">
|
|
7
|
<a-row>
|
7
|
<a-row>
|
|
8
|
<a-col :span="24">
|
8
|
<a-col :span="24">
|
|
9
|
- <a-form-model-item label="是否同意" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="isagree">
|
|
|
|
10
|
- <a-radio-group v-model="model.isagree" @change="onChange">
|
9
|
+ <a-form-model-item label="是否同意" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="value" v-decorator="[
|
|
|
|
10
|
+ 'value',
|
|
|
|
11
|
+ {rules: [{ required: true, message: '请选择是否同意'}]}
|
|
|
|
12
|
+ ]" >
|
|
|
|
13
|
+ <a-radio-group v-model="value" @change="onChange">
|
|
11
|
<a-radio :value="'1'">
|
14
|
<a-radio :value="'1'">
|
|
12
|
同意
|
15
|
同意
|
|
13
|
</a-radio>
|
16
|
</a-radio>
|
|
@@ -65,9 +68,9 @@ |
|
@@ -65,9 +68,9 @@ |
|
65
|
},
|
68
|
},
|
|
66
|
confirmLoading: false,
|
69
|
confirmLoading: false,
|
|
67
|
validatorRules: {
|
70
|
validatorRules: {
|
|
68
|
- isagree: [
|
|
|
|
69
|
- { required: true, message: '请选择!' },
|
|
|
|
70
|
- ],
|
71
|
+ // isagree: [
|
|
|
|
72
|
+ // { required: true, message: '请选择!' },
|
|
|
|
73
|
+ // ],
|
|
71
|
approvalOpinions: [
|
74
|
approvalOpinions: [
|
|
72
|
{ required: true, message: '请输入审批意见!' },
|
75
|
{ required: true, message: '请输入审批意见!' },
|
|
73
|
],
|
76
|
],
|
|
@@ -94,13 +97,17 @@ |
|
@@ -94,13 +97,17 @@ |
|
94
|
},
|
97
|
},
|
|
95
|
edit (record) {
|
98
|
edit (record) {
|
|
96
|
this.model = Object.assign({}, record);
|
99
|
this.model = Object.assign({}, record);
|
|
|
|
100
|
+ // this.model.isagree = 1
|
|
|
|
101
|
+ // if(!this.model.isagree){
|
|
|
|
102
|
+ // this.model.isagree = '1'
|
|
|
|
103
|
+ // }
|
|
97
|
this.visible = true;
|
104
|
this.visible = true;
|
|
98
|
- this.model.isagree = '1'
|
|
|
|
99
|
console.log('this.model',this.model)
|
105
|
console.log('this.model',this.model)
|
|
100
|
},
|
106
|
},
|
|
101
|
onChange(e) {
|
107
|
onChange(e) {
|
|
102
|
console.log('radio checked', e.target.value);
|
108
|
console.log('radio checked', e.target.value);
|
|
103
|
- this.model.isagree = this.value
|
109
|
+ console.log('radio value',this.value);
|
|
|
|
110
|
+ //this.model.isagree = e.target.value
|
|
104
|
},
|
111
|
},
|
|
105
|
handleOk () {
|
112
|
handleOk () {
|
|
106
|
const that = this;
|
113
|
const that = this;
|
|
@@ -111,7 +118,7 @@ |
|
@@ -111,7 +118,7 @@ |
|
111
|
const tempMOdel = {
|
118
|
const tempMOdel = {
|
|
112
|
partNumber:this.model.partNumber,
|
119
|
partNumber:this.model.partNumber,
|
|
113
|
approvalOpinions:this.model.approvalOpinions,
|
120
|
approvalOpinions:this.model.approvalOpinions,
|
|
114
|
- isagree:this.model.isagree,
|
121
|
+ isagree:this.value,
|
|
115
|
approvalLevel:'1'
|
122
|
approvalLevel:'1'
|
|
116
|
}
|
123
|
}
|
|
117
|
// return
|
124
|
// return
|