From 7fbe0f95cf428eb516f9015adae8bbe4baf539d4 Mon Sep 17 00:00:00 2001
From: hyingbo <1363390067@qq.com>
Date: 星期五, 25 七月 2025 11:01:15 +0800
Subject: [PATCH] 安灯管理列表筛选条件修改

---
 src/views/tms/modules/inboundOrder/InboundOrderModel.vue |   55 +++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 49 insertions(+), 6 deletions(-)

diff --git a/src/views/tms/modules/inboundOrder/InboundOrderModel.vue b/src/views/tms/modules/inboundOrder/InboundOrderModel.vue
index 06333dd..571c99a 100644
--- a/src/views/tms/modules/inboundOrder/InboundOrderModel.vue
+++ b/src/views/tms/modules/inboundOrder/InboundOrderModel.vue
@@ -40,8 +40,24 @@
               />
             </a-form-item>
           </a-col>
-          <a-col :span="24 / 2">
+          <!-- <a-col :span="24 / 2">
+            <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="搴撲綅鍙�">
+             <a-select
+                :triggerChange="true"
+                :options="locationCodeOptions"
+                v-decorator="[ 'locationCodeId', validatorRules.locationCodeId ]"
+              />
+            </a-form-item>
+          </a-col> -->
+          <!-- <a-col :span="24 / 2">
             <a-form-item label="鐢宠鍘熷洜" :labelCol="labelCol" :wrapperCol="wrapperCol">
+             <a-input placeholder="璇疯緭鍏ョ敵璇峰師鍥�"  :disabled="disableSubmit" v-decorator="['applicationReason', validatorRules.applicationReason]" />
+            </a-form-item>
+          </a-col> -->
+        </a-row>
+         <a-row style="width: 100%">
+          <a-col :span="24">
+             <a-form-item label="鐢宠鍘熷洜" :labelCol="{ span: 3 }" :wrapperCol="{ span: 21 }" >
              <a-input placeholder="璇疯緭鍏ョ敵璇峰師鍥�"  :disabled="disableSubmit" v-decorator="['applicationReason', validatorRules.applicationReason]" />
             </a-form-item>
           </a-col>
@@ -127,11 +143,22 @@
         <div :key="col.dataIndex">
           <a-input-number
             v-if="col.dataIndex == 'inStorageQuantity'"
-            :disabled="record.accuracyClass == '1'"
+            
             :value="text"
             @change="(e) => handleChange(e, record.key, col, index)"
             :min="1"
           />
+          <a-select
+            v-if="col.dataIndex == 'goodsShelvesId'"
+            :disabled="disableSubmit"
+            :triggerChange="true"
+            :value="text"
+            show-search
+            :filter-option="filterOption"
+            style="width: 100%"
+            :options="locationCodeOptions"
+            @change="(e) => handleChange(e, record.key, col, index)"
+          />    
         </div>
       </template>
       <span slot="action" slot-scope="text, record, index">
@@ -311,6 +338,11 @@
           align: 'center',
           dataIndex: 'toolModel'
         },
+         {
+          title: '搴撲綅鍙�',
+          align: 'center',
+          dataIndex: 'goodsShelvesId',
+        },
         {
           title: '鍏ュ簱鏁伴噺',
           align: 'center',
@@ -324,11 +356,21 @@
           scopedSlots: { customRender: 'action' },
         },
       ],
+      locationCodeOptions:[]
     }
   },
-  created() {},
+  created() {
+    ajaxGetDictItems("tms_goods_shelves,location_code,id", null).then((res) => {
+        if (res.success) {
+          this.locationCodeOptions = res.result
+        }
+      })
+  },
   methods: {
     modalFormOk() {
+    },
+    filterOption(input, option) {
+      return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
     },
     getQueryParams() {
       this.param.pageNo = this.ipagination.current
@@ -359,7 +401,7 @@
       }
       this.$nextTick(() => {
         this.form.setFieldsValue(
-          pick(this.model, 'inboundNum', 'inStorehouseType', 'inboundTime', 'applicationReason', 'handler','approvalDate','reviewer','approvalOpinion','remark')
+          pick(this.model, 'inboundNum', 'inStorehouseType', 'inboundTime', 'applicationReason', 'handler','approvalDate','reviewer','approvalOpinion','remark','goodsShelvesId')
         )
       })
     },
@@ -531,8 +573,9 @@
           applicationType: data[i].applicationTypeName,
           onlyCode:data[i].onlyCode,
           quantity:data[i].quantity,
-          inStorageQuantity:data[i].storageQuantity || data[i].quantity,
-          accuracyClass:data[i].accuracyClass
+          inStorageQuantity:data[i].storageQuantity || data[i].quantity || 1,
+          accuracyClass:data[i].accuracyClass,
+          goodsShelvesId:data[i].positionCode
         })
       }
       //this.ipaginationm.total = this.dataSource.length

--
Gitblit v1.9.3