|
|
@@ -62,6 +62,12 @@
|
|
62
|
62
|
<el-form-item v-if="(differenceType == '3' && isCreate == false) || (differenceType == '2' && isCreate == true)" label="建议年限" prop="years">
|
|
63
|
63
|
<el-input v-model="formData.years" placeholder="请输入建议年限" />
|
|
64
|
64
|
</el-form-item>
|
|
|
65
|
+ <el-form-item v-if="(differenceType == '3' && isCreate == false) || (differenceType == '2' && isCreate == true)" label="是否配件" prop="isParts">
|
|
|
66
|
+ <el-radio-group v-model="formData.isParts">
|
|
|
67
|
+ <el-radio-button label="0">否</el-radio-button>
|
|
|
68
|
+ <el-radio-button label="1">是</el-radio-button>
|
|
|
69
|
+ </el-radio-group>
|
|
|
70
|
+ </el-form-item>
|
|
65
|
71
|
<el-form-item v-if="formStatus == 'update'">
|
|
66
|
72
|
<el-button type="primary" round size="mini" @click="update">更新</el-button>
|
|
67
|
73
|
<el-button size="mini" class="mti-cancle-btn" round @click="onCancel('update')">取消</el-button>
|
|
|
@@ -98,6 +104,7 @@ interface IFormData {
|
|
98
|
104
|
sort?: number;
|
|
99
|
105
|
orgYears?: string;
|
|
100
|
106
|
years?: string;
|
|
|
107
|
+ isParts: string;
|
|
101
|
108
|
difference?: string;
|
|
102
|
109
|
parentCode?: string | number;
|
|
103
|
110
|
code?: string;
|
|
|
@@ -247,7 +254,8 @@ const resetForm = () => {
|
|
247
|
254
|
content: "",
|
|
248
|
255
|
orgYears: "",
|
|
249
|
256
|
years: "",
|
|
250
|
|
- sort: 1
|
|
|
257
|
+ sort: 1,
|
|
|
258
|
+ isParts: "0"
|
|
251
|
259
|
};
|
|
252
|
260
|
};
|
|
253
|
261
|
|