部门模块功能开发

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