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', ' ');
|
||||
|
||||
Reference in New Issue
Block a user