|
@@ -21,29 +21,10 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="5">
|
|
|
|
|
- <!-- <el-form-item
|
|
|
|
|
- :label="`${getDictValue('类型用途', baseInfo.assetType)}编码`"
|
|
|
|
|
- prop="assetCode"
|
|
|
|
|
- >
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="searchForm.assetCode"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- size="small"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item> -->
|
|
|
|
|
- <el-form-item label="物品类型" prop="assetCode">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="searchForm.assetCode"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- size="small"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
<el-col :span="5">
|
|
<el-col :span="5">
|
|
|
<el-form-item label="盘点工单号" prop="workOrderCode">
|
|
<el-form-item label="盘点工单号" prop="workOrderCode">
|
|
|
<el-input
|
|
<el-input
|
|
|
- v-model="searchForm.workOrderCode"
|
|
|
|
|
|
|
+ v-model="searchForm.planOrderCode"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
size="small"
|
|
|
></el-input>
|
|
></el-input>
|
|
@@ -52,7 +33,7 @@
|
|
|
<el-col :span="5">
|
|
<el-col :span="5">
|
|
|
<el-form-item label="报损溢单号" prop="breakageCode">
|
|
<el-form-item label="报损溢单号" prop="breakageCode">
|
|
|
<el-input
|
|
<el-input
|
|
|
- v-model="searchForm.breakageCode"
|
|
|
|
|
|
|
+ v-model="searchForm.planProfitLossCode"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
size="small"
|
|
|
></el-input>
|
|
></el-input>
|
|
@@ -77,46 +58,21 @@
|
|
|
:data="tableData"
|
|
:data="tableData"
|
|
|
:header-cell-style="{ background: '#EEEEEE', border: 'none' }"
|
|
:header-cell-style="{ background: '#EEEEEE', border: 'none' }"
|
|
|
>
|
|
>
|
|
|
- <el-table-column label="序号" type="index">
|
|
|
|
|
- <template slot-scope="{ $index }">
|
|
|
|
|
- {{ $tableIndex($index, page, size) }}
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <!-- <el-table-column
|
|
|
|
|
- :label="`${getDictValue('类型用途', baseInfo.assetType)}编码`"
|
|
|
|
|
- prop="onlyCode"
|
|
|
|
|
- width="200"
|
|
|
|
|
- ></el-table-column> -->
|
|
|
|
|
- <!-- <el-table-column label="包装编码" prop="num"></el-table-column> -->
|
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- label="最小包装单元"
|
|
|
|
|
- prop=""
|
|
|
|
|
- v-if="!baseInfo.isUnpack"
|
|
|
|
|
- align="center"
|
|
|
|
|
- width="150"
|
|
|
|
|
- >
|
|
|
|
|
- <template slot-scope="{ row }">
|
|
|
|
|
- {{ row.measurementUnit }}{{ row.unit }} /{{ row.minimumUnit }}
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
|
+ label="盘点工单号"
|
|
|
|
|
+ width="220"
|
|
|
|
|
+ prop="planOrderCode"
|
|
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- label="批次号"
|
|
|
|
|
- prop="batch"
|
|
|
|
|
- v-if="dimension != 2"
|
|
|
|
|
|
|
+ width="200"
|
|
|
|
|
+ label="物品名称"
|
|
|
|
|
+ prop="categoryName"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
- <el-table-column label="单价" prop="">
|
|
|
|
|
- <template slot-scope="{ row }">
|
|
|
|
|
- <template v-if="row.univalence || row.univalence === 0">
|
|
|
|
|
- {{ row.univalence }} {{ priceList[row.univalenceUnit] }}
|
|
|
|
|
- </template>
|
|
|
|
|
- </template></el-table-column
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-table-column label="批次号" prop="batchNo"></el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- label="盘点工单号"
|
|
|
|
|
- width="220"
|
|
|
|
|
- prop="workOrderCode"
|
|
|
|
|
|
|
+ label="盘点人"
|
|
|
|
|
+ prop="planOrderUserName"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
- <el-table-column label="盘点人" prop="executeUserName"></el-table-column>
|
|
|
|
|
<el-table-column label="盈/损/亏" prop="">
|
|
<el-table-column label="盈/损/亏" prop="">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
<span :style="{ color: statusColor[row.status] }">{{
|
|
<span :style="{ color: statusColor[row.status] }">{{
|
|
@@ -124,33 +80,38 @@
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column label="数量">
|
|
|
|
|
+ <template slot-scope="{ row }">
|
|
|
|
|
+ <span>{{ row[countKey[row.status]] }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="报损溢单号"
|
|
label="报损溢单号"
|
|
|
width="220"
|
|
width="220"
|
|
|
- prop="breakageOverflowCode"
|
|
|
|
|
|
|
+ prop="planProfitLossCode"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
- <el-table-column label="操作人" prop="reportName"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- label="审核人"
|
|
|
|
|
- prop="accraditationUserName"
|
|
|
|
|
|
|
+ label="报损报溢人"
|
|
|
|
|
+ prop="planProfitLossUserName"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- label="更新库存时间"
|
|
|
|
|
- prop="updateInventoryTime"
|
|
|
|
|
|
|
+ label="审核时间"
|
|
|
|
|
+ prop="auditTime"
|
|
|
width="150"
|
|
width="150"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
- <Pagination
|
|
|
|
|
- class="pagination"
|
|
|
|
|
- :total="total"
|
|
|
|
|
- :page.sync="page"
|
|
|
|
|
- :size.sync="size"
|
|
|
|
|
- @pagination="handlePageChange"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <div class="pagination"
|
|
|
|
|
+ ><Pagination
|
|
|
|
|
+ :total="total"
|
|
|
|
|
+ :page.sync="page"
|
|
|
|
|
+ :size.sync="size"
|
|
|
|
|
+ @pagination="handlePageChange"
|
|
|
|
|
+ /></div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+ import storageApi from '@/api/warehouseManagement';
|
|
|
import Pagination from '@/components/Pagination';
|
|
import Pagination from '@/components/Pagination';
|
|
|
// import { getBreakageOverflowDetail } from '@/api/stockManagement/stockLedger'
|
|
// import { getBreakageOverflowDetail } from '@/api/stockManagement/stockLedger'
|
|
|
// import dictMixin from '@/mixins/dictMixins'
|
|
// import dictMixin from '@/mixins/dictMixins'
|
|
@@ -158,10 +119,6 @@
|
|
|
components: { Pagination },
|
|
components: { Pagination },
|
|
|
// mixins: [dictMixin],
|
|
// mixins: [dictMixin],
|
|
|
props: {
|
|
props: {
|
|
|
- baseInfo: {
|
|
|
|
|
- type: Object,
|
|
|
|
|
- default: () => ({})
|
|
|
|
|
- },
|
|
|
|
|
baseParams: {
|
|
baseParams: {
|
|
|
type: Object,
|
|
type: Object,
|
|
|
default: () => ({})
|
|
default: () => ({})
|
|
@@ -171,35 +128,39 @@
|
|
|
return {
|
|
return {
|
|
|
searchForm: {
|
|
searchForm: {
|
|
|
status: '',
|
|
status: '',
|
|
|
- assetCode: '',
|
|
|
|
|
- workOrderCode: '',
|
|
|
|
|
- breakageCode: ''
|
|
|
|
|
|
|
+ planOrderCode: '',
|
|
|
|
|
+ planProfitLossCode: ''
|
|
|
},
|
|
},
|
|
|
statusList: [
|
|
statusList: [
|
|
|
{ label: '所有', code: '' },
|
|
{ label: '所有', code: '' },
|
|
|
- { label: '盘盈', code: 3 },
|
|
|
|
|
- { label: '盘损', code: 2 },
|
|
|
|
|
- { label: '盘亏', code: 1 }
|
|
|
|
|
|
|
+ { label: '盘盈', code: 2 },
|
|
|
|
|
+ { label: '盘亏', code: 3 },
|
|
|
|
|
+ { label: '盘损', code: 4 }
|
|
|
],
|
|
],
|
|
|
statusOpt: {
|
|
statusOpt: {
|
|
|
- 1: '盘亏',
|
|
|
|
|
- 2: '盘损',
|
|
|
|
|
- 3: '盘盈'
|
|
|
|
|
|
|
+ 2: '盘盈',
|
|
|
|
|
+ 3: '盘亏',
|
|
|
|
|
+ 4: '盘损'
|
|
|
|
|
+ },
|
|
|
|
|
+ countKey: {
|
|
|
|
|
+ 2: 'surplusQuantity',
|
|
|
|
|
+ 3: 'loseQuantity',
|
|
|
|
|
+ 4: 'wornQuantity'
|
|
|
},
|
|
},
|
|
|
statusColor: {
|
|
statusColor: {
|
|
|
- 1: '',
|
|
|
|
|
- 2: '#F59A23',
|
|
|
|
|
- 3: '#70B603'
|
|
|
|
|
|
|
+ 2: 'red',
|
|
|
|
|
+ 3: '#70B603',
|
|
|
|
|
+ 4: ''
|
|
|
},
|
|
},
|
|
|
tableData: [],
|
|
tableData: [],
|
|
|
- size: 15,
|
|
|
|
|
|
|
+ size: 10,
|
|
|
page: 1,
|
|
page: 1,
|
|
|
total: 0
|
|
total: 0
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
// this.requestDict('类型用途')
|
|
// this.requestDict('类型用途')
|
|
|
- // this.getList()
|
|
|
|
|
|
|
+ this.getList();
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
dimension() {
|
|
dimension() {
|
|
@@ -219,18 +180,18 @@
|
|
|
this.getList();
|
|
this.getList();
|
|
|
},
|
|
},
|
|
|
async getList() {
|
|
async getList() {
|
|
|
- const res = await getBreakageOverflowDetail({
|
|
|
|
|
- size: this.size,
|
|
|
|
|
- page: this.page,
|
|
|
|
|
- informationId: this.baseInfo.materialId,
|
|
|
|
|
- ...this.searchForm,
|
|
|
|
|
- ...this.baseParams,
|
|
|
|
|
- batchNum: this.baseParams.batchNum || this.searchForm.batchNum
|
|
|
|
|
- });
|
|
|
|
|
- if (res?.success) {
|
|
|
|
|
- this.tableData = res.data.records;
|
|
|
|
|
- this.total = res.data.total;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ console.log(this.baseParams);
|
|
|
|
|
+ storageApi
|
|
|
|
|
+ .getPlandetails({
|
|
|
|
|
+ size: this.size,
|
|
|
|
|
+ pageNum: this.page,
|
|
|
|
|
+ ...this.baseParams,
|
|
|
|
|
+ ...this.searchForm
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ this.tableData = res.list;
|
|
|
|
|
+ this.total = res.count;
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
@@ -252,9 +213,9 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.pagination {
|
|
.pagination {
|
|
|
- flex: 0 0 50px;
|
|
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|