修复bug
This commit is contained in:
@@ -534,6 +534,7 @@ const userStore = useUserStore();
|
||||
const openTraceNoDialog = ref(false)
|
||||
const rowData = ref({})
|
||||
const ypName = ref('')
|
||||
const currentIndex = ref(-1)
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { warehous_type, category_code, service_type_code, specialty_code, purchase_type } =
|
||||
@@ -1072,13 +1073,6 @@ function onHeaderWarehouseChange() {
|
||||
|
||||
// 选择仓库 / 选药品后拉取该仓库存
|
||||
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];
|
||||
let orgLocationId = r.sourceLocationId || receiptHeaderForm.headerLocationId || '';
|
||||
if (!orgLocationId) {
|
||||
@@ -1481,7 +1475,7 @@ function handleScan(row,index){
|
||||
rowData.value = row
|
||||
rowData.value.itemType = receiptHeaderForm.medicationType
|
||||
ypName.value = row.name
|
||||
openTraceNoDialog .value = true;
|
||||
openTraceNoDialog.value = true;
|
||||
currentIndex.value = index
|
||||
}
|
||||
|
||||
@@ -1704,6 +1698,17 @@ const exportRequiredParams = ref({
|
||||
pageSize: 10,
|
||||
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() {
|
||||
proxy.downloadGet(
|
||||
'/issue-manage/requisition/excel-out',
|
||||
|
||||
Reference in New Issue
Block a user