|
@@ -57,7 +57,7 @@
|
|
|
@current-change="handleCurrentChange"/>
|
|
|
</div>
|
|
|
<el-dialog
|
|
|
- title="执行出库"
|
|
|
+ title="盘点"
|
|
|
:visible.sync="dialogVisibleTask"
|
|
|
:before-close="handleCloseTask" width="80%">
|
|
|
<el-form :inline="true" :model="formInline" class="demo-form-inline">
|
|
@@ -87,46 +87,50 @@
|
|
|
</el-form>
|
|
|
<div class="table-container" style="margin-bottom: 80px;margin-top: 20px;">
|
|
|
<div class="table-wrapper">
|
|
|
- <div class="table-title">需求明细</div>
|
|
|
+ <div class="table-title">盘点托盘</div>
|
|
|
<el-table ref="singleTable" :data="detailListTask" v-loading="loading" :border=true label="需求明细"
|
|
|
tooltip-effect="dark"
|
|
|
highlight-current-row max-height="500" style="width: 100%;margin-right:22px"
|
|
|
- :default-sort="{prop: 'createDate', order: 'descending'}"
|
|
|
+ :default-sort="{prop: 'createDate', order: 'descending'}" @row-click="rowClick"
|
|
|
>
|
|
|
- <el-table-column prop="materialCode" label="物料编码" :show-overflow-tooltip="true"></el-table-column>
|
|
|
- <el-table-column prop="materialName" label="物料名称" :show-overflow-tooltip="true"></el-table-column>
|
|
|
- <el-table-column prop="planAmount" label="计划出库数量" :show-overflow-tooltip="true"></el-table-column>
|
|
|
+ <el-table-column prop="palletCode" label="托盘编码" :show-overflow-tooltip="true"></el-table-column>
|
|
|
+ <el-table-column prop="storageLocationCode" label="库位编码" :show-overflow-tooltip="true"></el-table-column>
|
|
|
+ <el-table-column prop="status" label="盘点状态" :show-overflow-tooltip="true">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <el-tag >
|
|
|
+ {{ getPlanStatusText(row.status) }}
|
|
|
+ </el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" :show-overflow-tooltip="true">
|
|
|
+ <template #default="scope">
|
|
|
+ <!-- 这里放置操作按钮 -->
|
|
|
+ <div class="button-group">
|
|
|
+ <el-button type="primary" icon="el-icon-check" >出库</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
|
|
|
<div class="table-wrapper">
|
|
|
- <div class="table-title">库存明细</div>
|
|
|
- <el-table ref="singleTable" :data="detailListTask" v-loading="loading" :border=true label="库存明细"
|
|
|
+ <div class="table-title">托盘明细</div>
|
|
|
+ <el-table ref="singleTable" :data="detailList" v-loading="loading" :border=true label="库存明细"
|
|
|
tooltip-effect="dark"
|
|
|
highlight-current-row max-height="500" style="width: 100%;"
|
|
|
:default-sort="{prop: 'createDate', order: 'descending'}"
|
|
|
- ><!--@row-click="rowClick"-->
|
|
|
+ >
|
|
|
<el-table-column prop="materialCode" label="物料编码" :show-overflow-tooltip="true"></el-table-column>
|
|
|
- <el-table-column prop="storageLocationCode" label="库位编码" :show-overflow-tooltip="true"></el-table-column>
|
|
|
- <el-table-column label="托盘" :show-overflow-tooltip="true">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-select v-model="row.outPalletCode" placeholder="请选择" @change="handleSelectChange(row)">
|
|
|
- <el-option
|
|
|
- v-for="option in row.inventoryManagementList"
|
|
|
- :key="option.storageLocationCode"
|
|
|
- :label="option.palletCode"
|
|
|
- :value="option.palletCode">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+ <el-table-column prop="storeAmount" label="库存数量" :show-overflow-tooltip="true"></el-table-column>
|
|
|
+ <el-table-column prop="realAmount" label="盘点数量" :show-overflow-tooltip="true">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input v-model="scope.row.realAmount" type="number" @input="handleInput(scope.row)"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="amount" label="库存数量" :show-overflow-tooltip="true"></el-table-column>
|
|
|
- <el-table-column label="操作">
|
|
|
- <template #default="scope">
|
|
|
- <!-- 这里放置操作按钮 -->
|
|
|
- <el-button type="primary" @click="getOutPalletCode(scope.row)">出库</el-button>
|
|
|
- <!-- 可以添加更多的操作按钮 -->
|
|
|
- </template>
|
|
|
+
|
|
|
+ <el-table-column prop="profitLossType" label="盘库状态" :show-overflow-tooltip="true">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="profitLossQuantity" label="盘库异常数量" :show-overflow-tooltip="true">
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
@@ -178,6 +182,8 @@
|
|
|
detailListOut: [],
|
|
|
options:[],
|
|
|
name: '',
|
|
|
+ entryPoint: '',
|
|
|
+ binCode: '',
|
|
|
createDate: '',
|
|
|
currentPage: 1,
|
|
|
total: 0,
|
|
@@ -297,17 +303,55 @@
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
+ }, getPlanStatusText(status) {
|
|
|
+ switch (status) {
|
|
|
+ case 0:
|
|
|
+ return '未开始'; // 第三种类型的文本
|
|
|
+ case 1:
|
|
|
+ return '进行中'; // 第四种类型的文本
|
|
|
+ case 2:
|
|
|
+ return '完成'; // 第四种类型的文本
|
|
|
+ default:
|
|
|
+ return '未开始'
|
|
|
+ }
|
|
|
+
|
|
|
+ }, getProfitLossTypeText(status) {
|
|
|
+ /* if(status === null){
|
|
|
+ let ag= row.realAmount - row.storeAmount;
|
|
|
+ if(ag > 0){
|
|
|
+ return '盘盈';
|
|
|
+ }else if(ag = 0){
|
|
|
+ return '正常';
|
|
|
+ }else{
|
|
|
+ return '盘亏';
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ switch (status) {
|
|
|
+ case 0:
|
|
|
+ return '盘亏'; // 第三种类型的文本
|
|
|
+ case 1:
|
|
|
+ return '盘盈'; // 第四种类型的文本
|
|
|
+ case 2:
|
|
|
+ return '正常'; // 第四种类型的文本
|
|
|
+ default:
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+ }
|
|
|
+ */
|
|
|
+
|
|
|
+ }, getPendingAmount(row) {
|
|
|
+ return row.realAmount - row.storeAmount;
|
|
|
},handleSelectionChange(selection) {
|
|
|
this.selection = selection
|
|
|
},toDo(row){
|
|
|
this.dialogVisibleTask=true;
|
|
|
- this.wInventoryTransactionOrdersId=row.id;
|
|
|
- axios.get('/order/getOrderById/'+row.id, {
|
|
|
+
|
|
|
+ axios.get('/wPInventoryCountPallet/getPalletList/'+row.id, {
|
|
|
})
|
|
|
.then(response => {
|
|
|
console.log(response)
|
|
|
if(response.data.success){
|
|
|
- const res=response.data.data;
|
|
|
+ this.detailListTask=response.data.data
|
|
|
}
|
|
|
})
|
|
|
.catch(error => {
|
|
@@ -330,22 +374,23 @@
|
|
|
})
|
|
|
},
|
|
|
rowClick(row, column, event){
|
|
|
- // 处理行点击事件
|
|
|
- console.log('Row clicked:', row);
|
|
|
- console.log('Column clicked:', column);
|
|
|
- console.log('Event:', event);
|
|
|
- axios.get('/wInventoryManagement/'+row.storageLocationCode, {
|
|
|
- })
|
|
|
- .then(response => {
|
|
|
- console.log(response)
|
|
|
- if(response.data.success){
|
|
|
- const res=response.data.data;
|
|
|
- this.detailListPallet=res;
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(error => {
|
|
|
- // 处理错误
|
|
|
- });
|
|
|
+ console.log(row)
|
|
|
+ this.detailList=row.detailList;
|
|
|
+ },
|
|
|
+ handleInput(row){
|
|
|
+ console.log(row)
|
|
|
+
|
|
|
+ let ag= row.realAmount - row.storeAmount;
|
|
|
+ row.profitLossQuantity=ag
|
|
|
+ if(ag > 0){
|
|
|
+ row.profitLossType='盘盈';
|
|
|
+ }else if(ag = 0){
|
|
|
+ row.profitLossType='正常';
|
|
|
+ }else{
|
|
|
+ row.profitLossType='盘亏';
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
},handleScan(){
|
|
|
console.log(this.inputCode)
|
|
|
axios.get('/order/verifyCode/'+this.inputCode, {
|