修复bug
This commit is contained in:
@@ -534,6 +534,7 @@ const userStore = useUserStore();
|
|||||||
const openTraceNoDialog = ref(false)
|
const openTraceNoDialog = ref(false)
|
||||||
const rowData = ref({})
|
const rowData = ref({})
|
||||||
const ypName = ref('')
|
const ypName = ref('')
|
||||||
|
const currentIndex = ref(-1)
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const { warehous_type, category_code, service_type_code, specialty_code, purchase_type } =
|
const { warehous_type, category_code, service_type_code, specialty_code, purchase_type } =
|
||||||
@@ -1072,13 +1073,6 @@ function onHeaderWarehouseChange() {
|
|||||||
|
|
||||||
// 选择仓库 / 选药品后拉取该仓库存
|
// 选择仓库 / 选药品后拉取该仓库存
|
||||||
function handleLocationClick(item, row, index) {
|
function handleLocationClick(item, row, index) {
|
||||||
getCount({
|
|
||||||
itemId: form.purchaseinventoryList[index].itemId,
|
|
||||||
orgLocationId: form.purchaseinventoryList[index].sourceLocationId,
|
|
||||||
}).then((res) => {
|
|
||||||
if (res.data && res.data.length > 0) {
|
|
||||||
form.purchaseinventoryList[index].itemTable = res.data[0].itemTable || '';
|
|
||||||
form.purchaseinventoryList[index].totalQuantity = res.data[0].orgQuantity || 0;
|
|
||||||
const r = form.purchaseinventoryList[index];
|
const r = form.purchaseinventoryList[index];
|
||||||
let orgLocationId = r.sourceLocationId || receiptHeaderForm.headerLocationId || '';
|
let orgLocationId = r.sourceLocationId || receiptHeaderForm.headerLocationId || '';
|
||||||
if (!orgLocationId) {
|
if (!orgLocationId) {
|
||||||
@@ -1704,6 +1698,17 @@ const exportRequiredParams = ref({
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
busNo: route.query.supplyBusNo
|
busNo: route.query.supplyBusNo
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 追溯码对话框提交处理
|
||||||
|
function submit(traceNoData) {
|
||||||
|
if (currentIndex.value >= 0 && form.purchaseinventoryList[currentIndex.value]) {
|
||||||
|
form.purchaseinventoryList[currentIndex.value].traceNo = traceNoData.traceNo;
|
||||||
|
form.purchaseinventoryList[currentIndex.value].ybNo = traceNoData.ybNo;
|
||||||
|
proxy.$message.success('追溯码保存成功');
|
||||||
|
}
|
||||||
|
openTraceNoDialog.value = false;
|
||||||
|
}
|
||||||
|
|
||||||
function handleExport() {
|
function handleExport() {
|
||||||
proxy.downloadGet(
|
proxy.downloadGet(
|
||||||
'/issue-manage/requisition/excel-out',
|
'/issue-manage/requisition/excel-out',
|
||||||
|
|||||||
Reference in New Issue
Block a user