feat(钢卷管理): 添加钢卷退货功能及相关界面
- 在coil.js中新增returnCoil接口用于处理钢卷退货 - 添加exit.vue作为退货钢卷管理页面 - 在base.vue中添加退货按钮及相关处理逻辑 - 新增仓库图标资源 - 调整报表页面日期选择器的时间格式
This commit is contained in:
@@ -173,6 +173,10 @@
|
||||
<el-button size="mini" v-if="showExportTime" type="text" icon="el-icon-close"
|
||||
@click="handleCancelExport(scope.row)">
|
||||
撤回发货
|
||||
</el-button>
|
||||
<el-button size="mini" v-if="showExportTime" type="text" icon="el-icon-sold-out"
|
||||
@click="handleReturnCoil(scope.row)">
|
||||
退货钢卷
|
||||
</el-button>
|
||||
<el-button size="mini" v-if="showAbnormal" type="text" icon="el-icon-upload"
|
||||
@click="handleAbnormal(scope.row)">查看异常</el-button>
|
||||
@@ -325,7 +329,8 @@ import {
|
||||
getMaterialCoilTrace,
|
||||
exportCoil,
|
||||
cancelExportCoil,
|
||||
checkCoilNo
|
||||
checkCoilNo,
|
||||
returnCoil
|
||||
} from "@/api/wms/coil";
|
||||
import WarehouseSelect from "@/components/KLPService/WarehouseSelect";
|
||||
import QRCode from "../../print/components/QRCode.vue";
|
||||
@@ -943,6 +948,19 @@ export default {
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
handleReturnCoil(row) {
|
||||
this.$modal.confirm('是否确认退货钢卷编号为"' + row.currentCoilNo + '"的退货操作?').then(() => {
|
||||
this.buttonLoading = true;
|
||||
returnCoil(row.coilId).then(response => {
|
||||
this.$modal.msgSuccess("退货成功");
|
||||
this.getList();
|
||||
}).catch(error => {
|
||||
this.$modal.msgError("退货失败");
|
||||
}).finally(() => {
|
||||
this.buttonLoading = false;
|
||||
});
|
||||
})
|
||||
},
|
||||
handleExportTimeChange(row) {
|
||||
if (row.exportTime) {
|
||||
row.exportTime = row.exportTime.replace('T', ' ');
|
||||
|
||||
44
klp-ui/src/views/wms/coil/views/exit.vue
Normal file
44
klp-ui/src/views/wms/coil/views/exit.vue
Normal file
@@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<el-tabs class="app-container" v-model="activeTab">
|
||||
<el-tab-pane label="待收卷" name="second">
|
||||
<BasePage :qrcode="qrcode" :querys="querys2" :labelType="labelType" :hideWarehouseQuery="hideWarehouseQuery"
|
||||
:hideType="hideType" />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="已收卷" name="first">
|
||||
<BasePage :qrcode="qrcode" :querys="querys" :labelType="labelType" :hideWarehouseQuery="hideWarehouseQuery"
|
||||
:hideType="hideType" />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BasePage from '../panels/base.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
BasePage
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
qrcode: false,
|
||||
activeTab: 'second',
|
||||
querys: {
|
||||
dataType: 1,
|
||||
status: 0,
|
||||
warehouseId: '2027614132626063361', // 退回仓逻辑库
|
||||
// materialType: '废品'
|
||||
},
|
||||
querys2: {
|
||||
dataType: 1,
|
||||
status: 0,
|
||||
nextWarehouseId: '2027614132626063361', // 退回仓逻辑库
|
||||
// materialType: '废品'
|
||||
},
|
||||
hideWarehouseQuery: true,
|
||||
showAbnormal: true,
|
||||
labelType: '2',
|
||||
hideType: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -4,11 +4,11 @@
|
||||
<el-form label-width="80px" inline>
|
||||
<el-form-item label="开始日期" prop="date">
|
||||
<el-date-picker style="width: 200px;" v-model="queryParams.byCreateTimeStart" type="date"
|
||||
value-format="yyyy-MM-dd" placeholder="选择日期"></el-date-picker>
|
||||
value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期"></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="结束日期" prop="date">
|
||||
<el-date-picker style="width: 200px;" v-model="queryParams.byCreateTimeEnd" type="date"
|
||||
value-format="yyyy-MM-dd" placeholder="选择日期"></el-date-picker>
|
||||
value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期"></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="班组" prop="team">
|
||||
<el-select v-model="queryParams.team" placeholder="请选择班组" style="width: 200px;">
|
||||
|
||||
Reference in New Issue
Block a user