diff --git a/src/api/collect/collectOrder.js b/src/api/collect/collectOrder.js index d2b0af9c..ac317bb1 100644 --- a/src/api/collect/collectOrder.js +++ b/src/api/collect/collectOrder.js @@ -310,3 +310,10 @@ export function abandonOrder(query) { data: query }); } +export function orderMedicalDelete(query) { + return axios({ + url: "/udiwms/basic/collect/order/orderMedicalDelete", + method: "post", + data: query + }); +} diff --git a/src/views/collect/PanelOrderUpload.vue b/src/views/collect/PanelOrderUpload.vue index 6daff361..b444a91d 100644 --- a/src/views/collect/PanelOrderUpload.vue +++ b/src/views/collect/PanelOrderUpload.vue @@ -286,14 +286,13 @@ import prescribeOriginPanel from '@/views/collect/PannelOrderBiz' import PanelOrderAllDetail from '@/views/collect/PanelOrderAllDetail' import CollectFinishOrderBackupDetail from './CollectFinishOrderBackupDetail' -import { orderFinish, orderPage, orderUpload } from '@/api/collect/collectOrder' +import { orderFinish, orderPage, orderUpload ,orderMedicalDelete} from '@/api/collect/collectOrder' import { filterWorkOptimize } from '@/api/basic/workPlace/sysWorkplaceManage' import { getWorkBindBusTypes, removeBusTypeById } from '@/api/basic/workPlace/sysWorkplaceDocuments' export default { name: 'panelOrderUpload', - props: { - RowType: { + RowType: { type: Object, default: null, required: false @@ -592,7 +591,43 @@ export default { .catch(() => { }) - } + }, + orderMedicalDelete(_this, row) { + // if(2 === row.uploadStatus){ + // _this.$message.error("该单据已经上传成功无法重复上传到第三方系统") + // return; + // } + + let params = row + _this.$confirm('该订单将在医保系统删除,是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }) + .then(() => { + orderMedicalDelete({ billNo: params.billNo ,busType:params.busType}) + .then((response) => { + if (response.code == 20000) { + _this.getList() + _this.$message({ + type: 'success', + message: '上传成功!' + }) + } else if (response.code == 520) { + _this.$message.error(response.message) + _this.getList() + } else { + _this.$message.error(response.message) + _this.getList() + } + }) + .catch(() => { + }) + }) + .catch(() => { + }) + + }, },