From 087b06eb3550e65603a9fbfef9e24dbf4168a09e Mon Sep 17 00:00:00 2001
From: liuying <1427574514@qq.com>
Date: 周四, 25 4月 2024 17:57:13 +0800
Subject: [PATCH] bug

---
 iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/addForm.vue |   24 +++++++++++++++++++-----
 1 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/addForm.vue b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/addForm.vue
index c02c4a8..e7fb087 100644
--- a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/addForm.vue
+++ b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/addForm.vue
@@ -1,5 +1,5 @@
 锘�<template>
-  <a-modal title="鏂板搴撳尯淇℃伅" :width="900" :visible="visible" :confirmLoading="confirmLoading" @ok="handleSubmit"
+  <a-modal title="鏂板搴撳尯淇℃伅" :width="1100" :visible="visible" :confirmLoading="confirmLoading" @ok="handleSubmit"
     @cancel="handleCancel">
     <a-spin :spinning="confirmLoading">
       <a-form :form="form">
@@ -10,10 +10,10 @@
         <!-- <a-form-item label="浠撳簱缂栧彿" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
           <a-input placeholder="璇疯緭鍏ヤ粨搴撶紪鍙�" v-decorator="['warehouseCode', {rules: [{required: true, message: '璇疯緭鍏ヤ粨搴撶紪鍙凤紒'}]}]" />
         </a-form-item> -->
-        <a-form-item label="浠撳簱鍚嶇О" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
+        <!-- <a-form-item label="浠撳簱鍚嶇О" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
           <a-input placeholder="璇疯緭鍏ヤ粨搴撳悕绉�"
             v-decorator="['warehouseName', { rules: [{ required: true, message: '璇疯緭鍏ヤ粨搴撳悕绉帮紒' }] }]" />
-        </a-form-item>
+        </a-form-item> -->
         <a-form-item label="搴撳尯鍚嶇О" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
           <a-input placeholder="璇疯緭鍏ュ簱鍖哄悕绉�"
             v-decorator="['areaName', { rules: [{ required: true, message: '璇疯緭鍏ュ簱鍖哄悕绉帮紒' }] }]" />
@@ -32,7 +32,7 @@
         <a-form-item label="鎵�灞炰粨搴�" :labelCol="labelCol" :wrapperCol="wrapperCol">
           <a-select style="width: 100%" placeholder="璇烽�夋嫨鎵�灞炰粨搴�"
             v-decorator="['warehouseId', { rules: [{ required: true, message: '璇烽�夋嫨鎵�灞炰粨搴擄紒' }] }]">
-            <a-select-option v-for="(item, index) in warehouseIdData" :key="index" :value="item.code">{{ item.name
+            <a-select-option v-for="(item, index) in warehouseIdData" :key="index" :value="item.id">{{ item.name
             }}</a-select-option>
           </a-select>
         </a-form-item>
@@ -104,7 +104,15 @@
     add(record) {
       this.visible = true
       this.$nextTick(() => {
-
+        this.form.setFieldsValue({
+          'isBarcodeLevelControl':false,
+          'isFIFO':false,
+          'isPartLevelControl':false,
+          'isAllowConfusion':false,
+          'isAllowNegativeInventory':false,
+          'isVirtually':false,
+          'isDisabled':false,
+        })
       });
       // const warehouseIdOption = this.$options
       // this.warehouseIdData = warehouseIdOption.filters['dictData']('area_type')
@@ -148,3 +156,9 @@
   }
 }
 </script>
+<style lang="less" scoped>
+  .ant-row.ant-form-item {
+    width: 50% !important;
+    display: inline-block;
+  }
+</style>

--
Gitblit v1.9.3