Forráskód Böngészése

[CODE]: 费用属性默认为仓储、计量单位默认为毛重,在次打开显示汉字

maxianghua 4 éve
szülő
commit
311c041293
1 módosított fájl, 7 hozzáadás és 1 törlés
  1. 7 1
      src/views/basicdata/fees/index.vue

+ 7 - 1
src/views/basicdata/fees/index.vue

@@ -191,7 +191,7 @@
                   v-for="dict in fFeeunitidOptions"
                   :key="dict.dictValue"
                   :label="dict.dictLabel"
-                  :value="dict.dictValue"
+                  :value="parseInt(dict.dictValue)"
                 ></el-option>
               </el-select>
             </el-form-item>
@@ -300,6 +300,11 @@ export default {
     });
   },
   methods: {
+    // 费用属性默认为仓储、计量单位默认为毛重
+    query() {
+      this.$set(this.form, "fFeetype", "1");
+      this.$set(this.form, "fFeeunitid", 1);
+    },
     /** 查询费用信息列表 */
     getList() {
       this.loading = true;
@@ -364,6 +369,7 @@ export default {
     /** 新增按钮操作 */
     handleAdd() {
       this.reset();
+      this.query();
       this.open = true;
       this.title = "添加费用信息";
     },