耗材字典更新流通计量单元问题

20240912_adapter_z
yewj 7 months ago
parent 8708a7157f
commit 3674d21d4c

@ -1678,22 +1678,22 @@
@closePre="closeUdi"
></product-edit>
<div style="text-align: center; margin-top: 12px">
<el-button
type="primary"
size="small"
icon="search"
@click="onAddSubmit(false)"
:loading="onAddLoading"
>提交
</el-button>
<el-button
size="small"
icon="search"
@click="cancelDialog"
>取消
</el-button>
</div>
<!-- <div style="text-align: center; margin-top: 12px">-->
<!-- <el-button-->
<!-- type="primary"-->
<!-- size="small"-->
<!-- icon="search"-->
<!-- @click="onAddSubmit(false)"-->
<!-- :loading="onAddLoading"-->
<!-- >提交-->
<!-- </el-button>-->
<!-- <el-button-->
<!-- size="small"-->
<!-- icon="search"-->
<!-- @click="cancelDialog"-->
<!-- >取消-->
<!-- </el-button>-->
<!-- </div>-->
</el-dialog>
<el-dialog
title="耗材字典-编辑"
@ -2511,6 +2511,7 @@ export default {
this.selectHospProductVisible = false;
this.addProductVisible = false;
this.selectUnBindHospProductVisible = false;
this.getList();
},
onAddSubmit(relSubmit) {
this.editFormat.relSubmit = relSubmit;

@ -838,7 +838,22 @@
</div>
</el-collapse-item>
</el-collapse>
<div style="text-align: center; margin-top: 12px">
<el-button
type="primary"
size="small"
icon="search"
@click="onAddSubmit(false)"
:loading="onAddLoading"
>提交
</el-button>
<el-button
size="small"
icon="search"
@click="cancelSubmit"
>取消
</el-button>
</div>
</el-form>
@ -920,7 +935,7 @@ import {
removeDiRl,
removeRl,
thirdSysDetail,
updatetSingleUdiInfo
updatetSingleUdiInfo, updatetUdiInfos
} from "@/api/basic/product/udiRelevance";
import {isBlank} from "@/utils/strUtil";
import {filterByUuid} from "@/api/basic/product/udiInfo";
@ -934,7 +949,7 @@ import {getHslbs} from "@/api/thrsys/thrHsfl";
import {filterClassify} from "@/api/purchase/classifyCode"
import selectmedicalSuppliesDialog from "./selectmedicalSuppliesDialog"
import {
calculateDistCount,calculateUseCount
calculateDistCount, calculateUseCount
} from '@/api/basic/product/drugUdiinfos'
export default {
@ -999,6 +1014,7 @@ export default {
},
classifyList: [],
addLoading: false,
onAddLoading: false,
}
},
components: {
@ -1031,18 +1047,26 @@ export default {
const matchingItem = this.detailList.find(item => item.nameCode == val);
if (matchingItem) {
this.editQuery.distributeLevelUnit = matchingItem.packUnit;
this.editQuery.distributeLevel = matchingItem.packLevel
}
calculateDistCount(matchingItem).then((res) => {
this.editQuery.distributeLevelCount = res.data.distributeLevelCount
this.editQuery = {
...this.editQuery,
distributeLevelCount: res.data.distributeLevelCount,
}
})
},
useLevelDiChange(val) {
const matchingItem = this.detailList.find(item => item.nameCode == val);
if (matchingItem) {
this.editQuery.useLevelUnit = matchingItem.packUnit;
this.editQuery.useLevel = matchingItem.packLevel;
}
calculateUseCount(matchingItem).then((res) => {
this.editQuery.useLeverCount = res.data.useLeverCount
this.editQuery = {
...this.editQuery,
useLeverCount: res.data.useLeverCount,
}
})
},
classifyChange() {
@ -1185,6 +1209,7 @@ export default {
this.cancelDialog();
});
},
removeErp(row) {
this.$confirm("此操作将解除该绑定产品信息, 是否继续?", "提示", {
confirmButtonText: "确定",
@ -1352,7 +1377,27 @@ export default {
getData(data) {
this.tollProjectDialogVisible = false
this.editQuery.payFeeCode = data.medCatalogCode
},
onAddSubmit(relSubmit) {
this.editQuery.relSubmit = relSubmit;
this.onAddLoading = true
updatetUdiInfos(this.editQuery)
.then((response) => {
this.onAddLoading = false
if (response.code == 20000) {
this.$emit("closePre", true);
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.onAddLoading = false
this.$emit("closePre", true);
});
},
cancelSubmit() {
this.$emit("closePre", true);
},
},
directives: {
'debounce-input': {

@ -42,31 +42,30 @@
</el-button>
<el-button
type="primary"
:disabled="formData.tagStatus<2"
@click.native="saveDraftOrder()"
>单据挂起
</el-button>
<el-button
type="primary"
:disabled="formData.tagStatus<2"
@click.native="confirmFinishOrder()"
>处理完成
</el-button>
<!-- <el-dropdown @command="handleCommand">-->
<!-- <el-button type="primary">-->
<!-- 更多功能<i class="el-icon-arrow-down el-icon&#45;&#45;right"></i>-->
<!-- </el-button>-->
<!-- <el-dropdown-menu slot="dropdown">-->
<!-- <el-dropdown-item divided @click.native="handleClickOut('IoCreateOrderBlank')">工位上货</el-dropdown-item>-->
<!-- <el-dropdown-item divided @click.native="handleClickReturn('IoCreateOrderBlank')">工位退货-->
<!-- </el-dropdown-item>-->
<!-- <el-dropdown-item divided @click.native="handleClick('ioSplitFifoCodeBlank')">工位存量</el-dropdown-item>-->
<!-- <el-dropdown-item divided @click.native="handleClick('CollectOrderAllotBlank')">待处理单-->
<!-- </el-dropdown-item>-->
<!-- <el-dropdown-item divided @click.native="handleClick('CollectOrderEndBlank')">已完成单</el-dropdown-item>-->
<!-- </el-dropdown-menu>-->
<!-- </el-dropdown>-->
<!-- <el-dropdown @command="handleCommand">-->
<!-- <el-button type="primary">-->
<!-- 更多功能<i class="el-icon-arrow-down el-icon&#45;&#45;right"></i>-->
<!-- </el-button>-->
<!-- <el-dropdown-menu slot="dropdown">-->
<!-- <el-dropdown-item divided @click.native="handleClickOut('IoCreateOrderBlank')">工位上货</el-dropdown-item>-->
<!-- <el-dropdown-item divided @click.native="handleClickReturn('IoCreateOrderBlank')">工位退货-->
<!-- </el-dropdown-item>-->
<!-- <el-dropdown-item divided @click.native="handleClick('ioSplitFifoCodeBlank')">工位存量</el-dropdown-item>-->
<!-- <el-dropdown-item divided @click.native="handleClick('CollectOrderAllotBlank')">待处理单-->
<!-- </el-dropdown-item>-->
<!-- <el-dropdown-item divided @click.native="handleClick('CollectOrderEndBlank')">已完成单</el-dropdown-item>-->
<!-- </el-dropdown-menu>-->
<!-- </el-dropdown>-->
</el-button-group>
</el-col>
</el-row>
@ -286,7 +285,7 @@
<div style="flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 10px;"
>
<!-- 假设这里有一些信息内容 -->
<p style="font-size: 14px;background-color: #e1f3fb" @click="selectBusType(info.documentTypeCode)">{{ info.documentTypeCode }}</p>
<p style="font-size: 14px;background-color: #e1f3fb" @click="selectBusType(info.documentTypeCode)">{{ info.remark }}</p>
<el-button type="primary" style="position: absolute; bottom: 20px; right: 20px;" icon="el-icon-thumb"
@click="selectBusType(info.documentTypeCode)">开始作业
</el-button>
@ -813,6 +812,8 @@ export default {
},
startDeal() {
debugger
this.$message.error("开始处理单据")
this.curRow = this.formData;
this.dealSplitOrder()
this.formData.tagStatus = 2;

@ -42,13 +42,12 @@
</el-button>
<el-button
type="primary"
:disabled="formData.tagStatus<2"
@click.native="saveDraftOrder()"
>单据挂起
</el-button>
<el-button
type="primary"
:disabled="formData.tagStatus<2"
@click.native="confirmFinishOrder()"
>处理完成
</el-button>
@ -813,6 +812,8 @@ export default {
},
startDeal() {
debugger
this.$message.error("开始处理单据")
this.curRow = this.formData;
this.dealSplitOrder()
this.formData.tagStatus = 2;

Loading…
Cancel
Save