单据异常处理

20240912_adapter_z
zane 7 months ago
parent 2390c98492
commit 13c7698c42

@ -179,4 +179,13 @@ export function orderUpload(query) {
method: "post",
data: query
});
}
export function errorHandle(query) {
return axios({
url: "/udiwms/basic/collect/origin/order/errorHandle",
method: "post",
data: query
});
}

@ -250,7 +250,7 @@ import {convertDate} from "@/utils/date";
import {detail} from "@/api/basic/sicker/prescribeApi";
import prescribeDownloadDialog from "@/views/collect/prescribe/prescribeDownloadDialog";
import prescribeOriginPanel from "./PannelOrderBiz";
import {clearAllOrder, deleteByOrder, importOrder, orderPage, downloadOrder} from "@/api/collect/collectOrder";
import {clearAllOrder, deleteByOrder, importOrder, orderPage, downloadOrder,errorHandle} from "@/api/collect/collectOrder";
import {filterSubAllOptimize} from "@/api/system/invSubWarehouse";
import {filterWorkOptimize} from "@/api/basic/workPlace/sysWorkplaceManage";
import {getWorkBindBusTypes} from '@/api/basic/workPlace/sysWorkplaceDocuments'
@ -528,7 +528,40 @@ export default {
return
})
},
errorHandle(_this, row) {
_this.$confirm("此操作将重新下载该订单, 是否处理?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.loading = true;
let params = {
billNo: row.billNo,
busType: row.busType,
workPlaceCode: row.workPlaceCode,
tagStatus: row.tagStatus,
fromTpye:row.fromTpye,
};
errorHandle(params)
.then((response) => {
if (response.code == 20000) {
this.getList();
_this.$message.success("处理成功!")
} else if (response.code == 520) {
_this.$message.error(response.message);
this.getList();
} else {
_this.$message.error(response.message);
this.getList();
}
})
.catch(() => {
});
})
.catch(() => {
});
}
},
created() {

Loading…
Cancel
Save