按照采购退货的申请审批流程,完成药品采购申请退货的审批确认,
This commit is contained in:
@@ -185,6 +185,7 @@ import {
|
|||||||
getpurchaseInventoryDetail,
|
getpurchaseInventoryDetail,
|
||||||
getpurchaseInventoryDetailReturn
|
getpurchaseInventoryDetailReturn
|
||||||
} from "./components/api";
|
} from "./components/api";
|
||||||
|
import { purchaseInventoryApproved as purchaseReturnApproved } from '../returnedPurchase/components/api';
|
||||||
import { useStore } from '@/store/store';
|
import { useStore } from '@/store/store';
|
||||||
import { formatDate } from "@/utils/index";
|
import { formatDate } from "@/utils/index";
|
||||||
import useTagsViewStore from '@/store/modules/tagsView';
|
import useTagsViewStore from '@/store/modules/tagsView';
|
||||||
@@ -260,6 +261,21 @@ function handelApply(row) {
|
|||||||
getList();
|
getList();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}else if(row.typeEnum == 5){ // 采购退货审批通过
|
||||||
|
console.log("采购退货审批通过,typeEnum:", row.typeEnum);
|
||||||
|
console.log("供应单据号:", row.supplyBusNo);
|
||||||
|
purchaseReturnApproved(row.supplyBusNo).then((res) => {
|
||||||
|
console.log("采购退货审批结果:", res);
|
||||||
|
if (res.code == 200) {
|
||||||
|
proxy.$modal.msgSuccess("操作成功");
|
||||||
|
getList();
|
||||||
|
} else {
|
||||||
|
proxy.$modal.msgError("操作失败: " + (res.msg || "未知错误"));
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
console.error("采购退货审批错误:", error);
|
||||||
|
proxy.$modal.msgError("操作异常: " + error.message);
|
||||||
|
});
|
||||||
}else{
|
}else{
|
||||||
purchaseInventoryApproved(row.supplyBusNo).then((res) => {
|
purchaseInventoryApproved(row.supplyBusNo).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
|||||||
@@ -693,6 +693,7 @@ const multiple = ref(true);
|
|||||||
const total = ref(0);
|
const total = ref(0);
|
||||||
const title = ref("");
|
const title = ref("");
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
|
const pageLoading = ref(false);
|
||||||
const row = ref({});
|
const row = ref({});
|
||||||
const rowIndex = ref(-1);
|
const rowIndex = ref(-1);
|
||||||
const totalAmount = ref(0);
|
const totalAmount = ref(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user