3 Commits 4310d36d23 ... 00a6bbd809

Auteur SHA1 Message Date
  hedx 00a6bbd809 Merge remote-tracking branch 'origin/sxw-skeleton' into sxw-skeleton il y a 1 an
  hedx c52d0bc321 添加是否配件 il y a 1 an
  hedx 0f48db1ecc 添加是否配件 il y a 1 an
1 fichiers modifiés avec 13 ajouts et 2 suppressions
  1. 13 2
      src/views/orderType/supply/index.vue

+ 13 - 2
src/views/orderType/supply/index.vue

@@ -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
 
@@ -269,7 +277,10 @@ const onCancel = (val?: string) => {
269 277
 </script>
270 278
 
271 279
 <style lang="scss" scoped>
272
-.mti-container {
280
+  ::v-deep .el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{
281
+    background-color: #409eff !important;
282
+  }
283
+  .mti-container {
273 284
   .mti-flex {
274 285
     display: flex;
275 286
     .mti-tree {