3 İşlemeler 4310d36d23 ... 00a6bbd809

Yazar SHA1 Mesaj Tarih
  hedx 00a6bbd809 Merge remote-tracking branch 'origin/sxw-skeleton' into sxw-skeleton 1 yıl önce
  hedx c52d0bc321 添加是否配件 1 yıl önce
  hedx 0f48db1ecc 添加是否配件 1 yıl önce
1 değiştirilmiş dosya ile 13 ekleme ve 2 silme
  1. 13 2
      src/views/orderType/supply/index.vue

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

@@ -62,6 +62,12 @@
62
             <el-form-item v-if="(differenceType == '3' && isCreate == false) || (differenceType == '2' && isCreate == true)" label="建议年限" prop="years">
62
             <el-form-item v-if="(differenceType == '3' && isCreate == false) || (differenceType == '2' && isCreate == true)" label="建议年限" prop="years">
63
               <el-input v-model="formData.years" placeholder="请输入建议年限" />
63
               <el-input v-model="formData.years" placeholder="请输入建议年限" />
64
             </el-form-item>
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
             <el-form-item v-if="formStatus == 'update'">
71
             <el-form-item v-if="formStatus == 'update'">
66
               <el-button type="primary" round size="mini" @click="update">更新</el-button>
72
               <el-button type="primary" round size="mini" @click="update">更新</el-button>
67
               <el-button size="mini" class="mti-cancle-btn" round @click="onCancel('update')">取消</el-button>
73
               <el-button size="mini" class="mti-cancle-btn" round @click="onCancel('update')">取消</el-button>
@@ -98,6 +104,7 @@ interface IFormData {
98
   sort?: number;
104
   sort?: number;
99
   orgYears?: string;
105
   orgYears?: string;
100
   years?: string;
106
   years?: string;
107
+  isParts: string;
101
   difference?: string;
108
   difference?: string;
102
   parentCode?: string | number;
109
   parentCode?: string | number;
103
   code?: string;
110
   code?: string;
@@ -247,7 +254,8 @@ const resetForm = () => {
247
     content: "",
254
     content: "",
248
     orgYears: "",
255
     orgYears: "",
249
     years: "",
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
 </script>
277
 </script>
270
 
278
 
271
 <style lang="scss" scoped>
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
   .mti-flex {
284
   .mti-flex {
274
     display: flex;
285
     display: flex;
275
     .mti-tree {
286
     .mti-tree {