From fae8a9349499cd045bc73e8fd22aeae52618a46c Mon Sep 17 00:00:00 2001 From: WangHan <wwh_work@126,com> Date: 星期四, 19 十二月 2024 10:02:02 +0800 Subject: [PATCH] 采购明细查询修改,查询本级及以下 --- admin-web/src/views/stock/inventorycount/inventorytask/edit.vue | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/admin-web/src/views/stock/inventorycount/inventorytask/edit.vue b/admin-web/src/views/stock/inventorycount/inventorytask/edit.vue index 7a661e7..5bca285 100644 --- a/admin-web/src/views/stock/inventorycount/inventorytask/edit.vue +++ b/admin-web/src/views/stock/inventorycount/inventorytask/edit.vue @@ -11,7 +11,7 @@ /> </el-form-item> <el-form-item label="鐩樼偣浠撳簱" prop="warehouseId"> - <el-select v-model="formData.warehouseId" placeholder="璇烽�夋嫨" style="width: 100%"> + <el-select @change="getPdr" v-model="formData.warehouseId" placeholder="璇烽�夋嫨" style="width: 100%"> <el-option v-for="item in warehouseOptions" :key="item.id" :label="item.warehouseName" :value="item.id" /> </el-select> </el-form-item> @@ -44,13 +44,13 @@ </template> <script> -import { selectTenantWarehouse, tenantUserQueryUser } from '@/api/baseSetting/finsystenant'; -import { inventoryAdd, inventoryEdit } from '@/api/stock/inventory'; -import { warehouseManagerList } from '@/api/foudation/store'; +import {selectTenantWarehouse, tenantUserQueryUser} from '@/api/baseSetting/finsystenant'; +import {inventoryAdd, inventoryEdit} from '@/api/stock/inventory'; +import {warehouseManagerList} from '@/api/foudation/store'; import winSm from '@/components/win/win-sm'; import myButton from '@/components/myButton/myButton'; -import { formatDate } from '@/utils/DateFormatter'; -import { mapGetters } from 'vuex'; +import {formatDate} from '@/utils/DateFormatter'; +import {mapGetters} from 'vuex'; export default { components: { winSm, myButton }, @@ -97,7 +97,7 @@ this.formData.businessFormName = formatDate(new Date(), 'yyyy骞碝M鏈堜唤鐩樼偣'); } this.handleSelectTenantWarehouse(); - this.getPdr(); + //this.getPdr(); this.getJpr(); }, methods: { @@ -113,7 +113,7 @@ }, // 鑾峰彇鐩樼偣浜� getPdr() { - warehouseManagerList({ tenantId: this.userInfo.tenantId }).then((res) => { + warehouseManagerList({ warehouseId: this.formData.warehouseId }).then((res) => { this.count++ this.operatorOptions = res; if(this.count>1){ -- Gitblit v1.9.1