From 3884e330379c96e7576ada6b7a988a84e8757886 Mon Sep 17 00:00:00 2001 From: futian.liu <liufutianyoo@163.com> Date: 星期一, 18 十二月 2023 16:12:50 +0800 Subject: [PATCH] 修改查询库存的仓库参数 --- admin-web/src/views/departmentitem/itemdis/distribution/edit.vue | 21 +++++++-------------- 1 files changed, 7 insertions(+), 14 deletions(-) diff --git a/admin-web/src/views/departmentitem/itemdis/distribution/edit.vue b/admin-web/src/views/departmentitem/itemdis/distribution/edit.vue index 0bf076a..b5de415 100644 --- a/admin-web/src/views/departmentitem/itemdis/distribution/edit.vue +++ b/admin-web/src/views/departmentitem/itemdis/distribution/edit.vue @@ -61,6 +61,7 @@ :options="categoryOptions" :props="{ value: 'id',emitPath: false }" :show-all-levels="false" + filterable clearable @change="categoryChange($event, goodsIndex)" style="width: 100%" @@ -101,8 +102,8 @@ <el-select v-model="goodsItem.modelsIds" multiple - :placeholder="goodsItem.baseCategoryId?'璇烽�夋嫨瑙勬牸鍨嬪彿':'璇峰厛閫夋嫨鐗╁搧鍚嶇О'" - :disabled="!goodsItem.baseCategoryId" + :placeholder="goodsItem.baseGoodsTemplateId?'璇烽�夋嫨瑙勬牸鍨嬪彿':'璇峰厛閫夋嫨鐗╁搧鍚嶇О'" + :disabled="!goodsItem.baseGoodsTemplateId" @change="modelChange($event, goodsIndex)" @remove-tag="modelRemoveTag($event, goodsIndex)" style="width: 100%" @@ -237,7 +238,7 @@ import {getUploadUrl} from '@/utils/base'; import {mapGetters} from 'vuex'; import * as DateFormatter from '@/utils/DateFormatter'; -import {warehouseSelectNumber} from "@/api/baseSetting/finsystenant"; +import {warehouseAllSelectNumber} from "@/api/baseSetting/finsystenant"; export default { components: {MyButton, winMd, upload}, @@ -363,7 +364,6 @@ uploadUrl: getUploadUrl(), // 涓婁紶璺緞 multiple: true, // 鏄惁鏀寔鎵归噺涓婁紶 disabled: false, // 鏄惁绂佺敤 - type: 'picture', // text/picture }, }; }, @@ -384,18 +384,12 @@ this.getgoodsModel(); }, - // 鑾峰彇鍏ュ簱浠撳簱鍒楄〃 + // 鑾峰彇閮ㄩ棬鍒楄〃 getdeptmentList() { departmentListAll({tenantId: this.userInfo.tenantId}) .then((res) => { this.departmentOptions = res; - if (!this.setting.id && res.length) { - this.formData.transferGoods.push(JSON.parse(JSON.stringify(this.goodsItem))); - } - if (this.departmentOptions.length && !this.formData.warehouseId) { - // 榛樿閫変腑绗竴涓粨搴� - this.formData.warehouseId = this.departmentOptions[0].id; - } + this.formData.transferGoods.push(JSON.parse(JSON.stringify(this.goodsItem))); }) .catch((err) => { console.log('err', err); @@ -483,9 +477,8 @@ let str = JSON.stringify(arr); for (const item of e) { if (str.indexOf(item) === -1) { - let num = await warehouseSelectNumber({ + let num = await warehouseAllSelectNumber({ baseGoodsModelsId: item, - warehouseType: 0, states: 1, agencyId: this.userInfo.tenantId, }); -- Gitblit v1.9.1