From d1f08bfc65d459b893fb6d5134927e0c078d32e5 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 24 一月 2025 13:50:59 +0800
Subject: [PATCH] Merge branch '2.0.1' of http://139.186.142.91:10010/r/productDev/funingyunwei into 2.0.1

---
 admin/src/views/stock/components/AssetSel.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/admin/src/views/stock/components/AssetSel.vue b/admin/src/views/stock/components/AssetSel.vue
index a315d02..bb5d356 100644
--- a/admin/src/views/stock/components/AssetSel.vue
+++ b/admin/src/views/stock/components/AssetSel.vue
@@ -1,5 +1,5 @@
 <template>
-  <GlobalWindow title="閫夋嫨鐗╂枡" :visible.sync="isShowModal" :confirm-working="isLoading" width="900px" @close="close"
+  <GlobalWindow title="閫夋嫨鐗╂枡" :visible.sync="isShowModal" :confirm-working="isLoading" width="1000px" @close="close"
     @confirm="confirm">
     <el-form ref="searchForm" :model="searchForm" label-width="100px" inline>
       <el-form-item prop="code" label="鐗╂枡淇℃伅">
@@ -10,7 +10,8 @@
           :options="cateList" :props="{
             label: 'name',
             value: 'id',
-            children: 'childCategoryList'
+            children: 'childCategoryList',
+            checkStrictly: true
           }"></el-cascader>
       </el-form-item>
       <span>
@@ -87,7 +88,7 @@
       fn({
         capacity: pagination.pageSize,
         page: pagination.page,
-        model: {...searchForm}
+        model: {...searchForm,status: 0}
       }).then((res) => {
         this.listLoading = false
         this.list = res.records
@@ -120,6 +121,10 @@
     changeSel(e) {
       if (e && e.length == 2) {
         this.$set(this.searchForm, 'cateId', e[1])
+        this.$set(this.searchForm, 'parentCateId', '')
+      }else if((e && e.length == 1)){
+        this.$set(this.searchForm, 'parentCateId', e[0])
+        this.$set(this.searchForm, 'cateId', '')
       } else {
         this.$set(this.searchForm, 'cateId', '')
       }

--
Gitblit v1.9.3