|
|
@@ -108,7 +108,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="content-detail mt20">
|
|
|
- <header-title title="出库明细" size="16px"></header-title>
|
|
|
+ <header-title title="出库物品明细" size="16px"></header-title>
|
|
|
|
|
|
<div class="mt20">
|
|
|
<div class="mt10">
|
|
|
@@ -123,10 +123,10 @@
|
|
|
<el-table-column label="序号" type="index" width="50">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- label="物品编码"
|
|
|
+ label="编码"
|
|
|
prop="categoryCode"
|
|
|
></el-table-column>
|
|
|
- <el-table-column label="物品名称" prop="name"></el-table-column>
|
|
|
+ <el-table-column label="名称" prop="name"></el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
v-for="(item, index) in tableHeader"
|
|
|
@@ -142,55 +142,59 @@
|
|
|
<template v-else>{{ row[item.prop] }}</template>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="出库数量" align="center" width="320">
|
|
|
+ <el-table-column
|
|
|
+ label="批次号"
|
|
|
+ prop="batchNo"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column label="最小包装单元" width="120">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ {{ row.minPackingCount }}{{ row.measuringUnit }}/{{
|
|
|
+ row.packingUnit
|
|
|
+ }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="包装数量" prop="availableCountBase">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-row :gutter="4">
|
|
|
- <el-col :span="9" v-if="!row.isUnpack" :offset="7">
|
|
|
- <el-input type="text" disabled :value="row.count">
|
|
|
- <template slot="append">
|
|
|
- {{ row.measuringUnit }}
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- </el-col>
|
|
|
- <!-- <el-col :span="9">
|
|
|
- <el-input
|
|
|
- type="text"
|
|
|
- :value="row.minPackingCount"
|
|
|
- disabled
|
|
|
- >
|
|
|
- <template slot="append">
|
|
|
- {{ row.measuringUnit }}
|
|
|
- </template>
|
|
|
- </el-input></el-col
|
|
|
- >
|
|
|
- <el-col :span="9" v-if="!row.isUnpack">
|
|
|
- <el-input
|
|
|
- type="text"
|
|
|
- disabled
|
|
|
- :value="row.packingCount"
|
|
|
- >
|
|
|
- <template slot="append">
|
|
|
- {{ row.packingUnit }}
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- </el-col> -->
|
|
|
- </el-row>
|
|
|
+ {{ row.packingCount }}{{ row.packingUnit }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="计量数量"
|
|
|
+ prop="count"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="计量单位"
|
|
|
+ prop="measuringUnit"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column label="重量" prop="weight"></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="重量单位"
|
|
|
+ prop="weightUnit"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column label="单价">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ {{ row.price ? row.price : '-' }}元/{{ row.weightUnit }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="金额"
|
|
|
+ prop="totalMoney"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="领料部门"
|
|
|
+ prop="position"
|
|
|
+ ></el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="mt20">
|
|
|
- <header-title
|
|
|
- :title="`${
|
|
|
+ <!-- ${
|
|
|
infoData.bizType == 3
|
|
|
? '物品'
|
|
|
: getDictValue('类型用途', infoData.assetType)
|
|
|
- }明细`"
|
|
|
- size="16px"
|
|
|
- ></header-title>
|
|
|
+ }明细 -->
|
|
|
+ <div class="mt20">
|
|
|
+ <header-title :title="`出库包装明细`" size="16px"></header-title>
|
|
|
<el-table
|
|
|
ref="multipleTable"
|
|
|
:data="materialCodeReqList"
|
|
|
@@ -201,59 +205,127 @@
|
|
|
>
|
|
|
<el-table-column label="序号" type="index" width="50">
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- :label="`${
|
|
|
+ <!-- ${
|
|
|
infoData.bizType == 3
|
|
|
? '物品'
|
|
|
: getDictValue('类型用途', infoData.assetType)
|
|
|
- }编码`"
|
|
|
- prop="code"
|
|
|
+ } -->
|
|
|
+ <el-table-column
|
|
|
+ :label="`编码`"
|
|
|
+ prop="categoryCode"
|
|
|
></el-table-column>
|
|
|
+ <el-table-column :label="`名称`" prop="name"></el-table-column>
|
|
|
<el-table-column label="批次号" prop="batchNo"></el-table-column>
|
|
|
- <el-table-column label="生产日期" width="200">
|
|
|
+ <el-table-column
|
|
|
+ label="包装编码"
|
|
|
+ prop="code"
|
|
|
+ width="80"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column label="包装数量" prop="packingCount" width="80">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <span v-if="row.dateType == 2">
|
|
|
- {{ row.produceTime }}
|
|
|
- </span>
|
|
|
+ {{ row.packingCount == 0 ? '0' : row.packingCount }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="采购日期" width="200">
|
|
|
+ <el-table-column
|
|
|
+ label="包装单位"
|
|
|
+ prop="packingUnit"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="计量数量"
|
|
|
+ prop="totalCount"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="计量单位"
|
|
|
+ prop="measuringUnit"
|
|
|
+ ></el-table-column>
|
|
|
+ <!-- <el-table-column label="领料部门" prop=""></el-table-column> -->
|
|
|
+ <el-table-column
|
|
|
+ v-if="infoData.bizType == 2 || infoData.bizType == 1"
|
|
|
+ label="物料代号"
|
|
|
+ prop="materielCode"
|
|
|
+ >
|
|
|
<template slot-scope="{ row }">
|
|
|
- <span v-if="row.dateType == 1">
|
|
|
- {{ row.procureTime }}
|
|
|
- </span>
|
|
|
+ {{ row.materielCode }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="最小包装单元">
|
|
|
- <template slot-scope="{ row, $index }">
|
|
|
- <template v-if="!row.isUnpack">
|
|
|
- <!-- {{ row.measurementUnit }}{{ row.measuringUnit }}/{{
|
|
|
- row.packingUnit
|
|
|
- }} -->
|
|
|
- <span>{{ row.measuringUnit }}/{{ row.packingUnit }}</span>
|
|
|
- </template>
|
|
|
+ <el-table-column
|
|
|
+ v-if="infoData.bizType == 2 || infoData.bizType == 1"
|
|
|
+ label="客户代号"
|
|
|
+ prop="clientCode"
|
|
|
+ >
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ {{ row.clientCode }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="包装编码"
|
|
|
- prop="packageNo"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column label="领料部门" prop=""></el-table-column>
|
|
|
- <el-table-column label="货位" prop="">
|
|
|
+ <!-- v-if="infoData.bizType == 1" -->
|
|
|
+ <el-table-column label="刻码" prop="engrave">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ {{ row.engrave }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="重量" prop="weight">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ {{ row.weight }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="重量单位" prop="weightUtil">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ {{ row.weightUtil }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column label="日期" prop="createTime" width="200">
|
|
|
+ <template slot="header" slot-scope="scope">
|
|
|
+ <!-- {{ dateTypes != 1 ? '采购日期' : '生产日期' }} -->
|
|
|
+ 采购日期
|
|
|
+ </template>
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ {{ row.createTime }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="领料部门" prop="">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <!-- {{ row.warehouseName }}-{{ row.areaName }}-{{
|
|
|
- row.shelfCode
|
|
|
- }}-{{ row.cargoSpaceCode }} -->
|
|
|
{{ row.position }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="转消耗" prop="">
|
|
|
+ <!-- <el-table-column label="转消耗" prop="">
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-checkbox
|
|
|
disabled
|
|
|
v-model="row.isTransferAsset"
|
|
|
></el-checkbox>
|
|
|
</template>
|
|
|
+ </el-table-column> -->
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ <div class="mt20">
|
|
|
+ <header-title :title="`出库物料明细`" size="16px"></header-title>
|
|
|
+ <el-table
|
|
|
+ ref="multipleTable1"
|
|
|
+ :data="metaList"
|
|
|
+ tooltip-effect="dark"
|
|
|
+ style="width: 100%"
|
|
|
+ stripe
|
|
|
+ :header-cell-style="{ background: '#EEEEEE', border: 'none' }"
|
|
|
+ >
|
|
|
+ <el-table-column label="序号" type="index" width="50">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="编码" prop="assetCode"> </el-table-column>
|
|
|
+ <el-table-column label="名称" prop="assetName"> </el-table-column>
|
|
|
+ <el-table-column label="批次号" prop="batchNo"> </el-table-column>
|
|
|
+ <el-table-column label="物料编码" prop="no"> </el-table-column>
|
|
|
+ <el-table-column label="计量数量" prop="">
|
|
|
+ <template slot-scope="{ row }">1</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="计量单位" prop="measuringUnit">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="物料代号" prop="meterielCode">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="客户代号" prop="clientCode">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="刻码" prop="engrave"> </el-table-column>
|
|
|
+ <el-table-column label="重量" prop="weight"> </el-table-column>
|
|
|
+ <el-table-column label="重量单位" prop="weightUnit">
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
@@ -285,6 +357,7 @@
|
|
|
components: { StatusStep },
|
|
|
data() {
|
|
|
return {
|
|
|
+ metaList: [],
|
|
|
infoData: {},
|
|
|
warehousingMaterialList: [],
|
|
|
materialCodeReqList: [],
|
|
|
@@ -413,6 +486,21 @@
|
|
|
}
|
|
|
}
|
|
|
this.materialCodeReqList = arr;
|
|
|
+ let arrs = [];
|
|
|
+ for (const key in res.outInDetailVOList) {
|
|
|
+ for (const j in res.outInDetailVOList[key]
|
|
|
+ .outInDetailRecordVOList) {
|
|
|
+ for (const k in res.outInDetailVOList[key]
|
|
|
+ .outInDetailRecordVOList[j]
|
|
|
+ .outInDetailRecordMaterialDetailVOList) {
|
|
|
+ arrs.push({
|
|
|
+ ...res.outInDetailVOList[key].outInDetailRecordVOList[j]
|
|
|
+ .outInDetailRecordMaterialDetailVOList[k]
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.metaList = arrs;
|
|
|
// console.log('qwqwqw', arr);
|
|
|
// res.warehouseLedgerInfos.ledgers;
|
|
|
// .map((i) =>
|