部门模块功能开发

This commit is contained in:
lizhenhua 2026-01-12 17:53:58 +08:00
parent 1b98e2da99
commit b70332b45a
1 changed files with 18 additions and 11 deletions

View File

@ -116,7 +116,6 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['drp:inventoryInto:export']"
>导出</el-button>
</el-col>
<el-col :span="1.5">
@ -157,7 +156,7 @@
<el-table-column label="货品仓库" align="center" prop="warehouseName" width="120" :show-overflow-tooltip="true"/>
<el-table-column label="出库类型" align="center" prop="intoType" width="120">
<template slot-scope="scope">
<span v-if="scope.row.intoType === '6'">超市退单出库</span>
<span v-if="scope.row.intoType === '6'">超市出库</span>
<span v-else-if="scope.row.intoType === '1'">采购出库</span>
<span v-else-if="scope.row.intoType === '5'">即入即出</span>
<span v-else>--</span>
@ -250,7 +249,6 @@ export default {
goodsCategoryOptions: [], //
selectedCategories: [], //
categoryProps: {
checkStrictly: true,
expandTrigger: 'hover',
value: 'id',
label: 'dictLabel',
@ -366,12 +364,12 @@ export default {
case 'intoAmount':
sums[index] = this.formatMoney((this.summaryData.totalInAmount || 0) / 100);
break;
case 'balanceNum':
/* case 'balanceNum':
sums[index] = this.formatNumber(this.summaryData.totalStockQty || 0);
break;
case 'balanceAmount':
sums[index] = this.formatMoney((this.summaryData.totalStockAmount || 0) / 100);
break;
break; */
default:
//
sums[index] = '';
@ -581,12 +579,21 @@ export default {
/**
* 获取仓库列表
*/
getWareHouseData() {
const areaIdList = this.getSelectedOrgIds();
getWarehouseList({ areaIdList: areaIdList }).then((response) => {
this.wareHouseOptions = response.data || [];
});
},
getWareHouseData() {
const areaIdList = this.getSelectedOrgIds();
console.log("选中的 orgId 列表:", areaIdList, Array.isArray(areaIdList));
if (!areaIdList || !areaIdList.length) {
this.wareHouseOptions = [];
return;
}
getWarehouseList({
areaIdList: areaIdList.join(',')
}).then(res => {
this.wareHouseOptions = res.data || [];
});
},
/**
* 获取供应商列表