feat: 药品关联信息

20240912_adapter
chenhc 6 months ago
parent 34e88afb95
commit fb7ce6a6fa

@ -61,3 +61,11 @@ export function scanCodeRelCode(query) {
data: query data: query
}); });
} }
export function updateIoCodeTempEntity(query) {
return axios({
url: "/udiwms/relCode/updateIoCodeTempEntity",
method: "get",
params: query
});
}

@ -209,6 +209,10 @@
required: true, required: true,
default: null default: null
}, },
closeCodeDialog: {
type: Function,
required: true,
},
}, },
watch: { watch: {
resetKey(newVal, oldVal) { resetKey(newVal, oldVal) {
@ -409,6 +413,9 @@
if (this.parentCode == null){ if (this.parentCode == null){
if (data.packLayer == 1) { if (data.packLayer == 1) {
this.$message.warning("该层级为最小包装层级无需进行码关联操作!"); this.$message.warning("该层级为最小包装层级无需进行码关联操作!");
if (this.closeCodeDialog != null){
this.closeCodeDialog()
}
return; return;
} }
this.relFormData.cpmctymc = data.cpmctymc; this.relFormData.cpmctymc = data.cpmctymc;
@ -796,12 +803,16 @@
this.syxjsl = 0; this.syxjsl = 0;
this.parentCode = null; this.parentCode = null;
this.inputDisabled = false this.inputDisabled = false
if (this.closeCodeDialog != null){
this.closeCodeDialog()
}
this.refreshCodesPanel() this.refreshCodesPanel()
}, },
init(){ init(){
if(this.orderQuery != null){ if(this.orderQuery != null){
this.relFormData = this.orderQuery; this.scanCode = this.orderQuery.code
this.bhxjsl = this.orderQuery.bhxjsl; // this.scanCode = "82015700010101701314"
this.enterKey();
} }
} }
}, },

@ -95,7 +95,7 @@
<!-- show-overflow-tooltip--> <!-- show-overflow-tooltip-->
<!-- ></el-table-column>--> <!-- ></el-table-column>-->
<el-table-column label="操作" width="220" fixed="right"> <el-table-column label="操作" width="280" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
@ -127,6 +127,14 @@
>编辑 >编辑
</el-button </el-button
> >
<el-button
type="text"
size="small"
:disabled="scope.row.drugLink == 1"
@click.native.stop="association(scope.row)"
>关联
</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -159,6 +167,21 @@
/> />
</div> </div>
<el-dialog
:title="editTitle"
:visible.sync="associationCodeVisible"
append-to-body width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="associationCodeVisible"
>
<operateRelCodeSpell
:closeCodeDialog="closeCodeDialog"
:orderQuery="orderQuery">
</operateRelCodeSpell>
</el-dialog>
<!-- 绑定产品--> <!-- 绑定产品-->
<el-dialog <el-dialog
:title="selectRlTitle" :title="selectRlTitle"
@ -222,6 +245,9 @@ import DialogSelectUnit from "../inout/DialogSelectUnit";
import editCodeDialog from "../inout/DialogEditCode"; import editCodeDialog from "../inout/DialogEditCode";
import {parseTime} from "@/utils/coTools"; import {parseTime} from "@/utils/coTools";
import {getCheckDetailCodes} from "@/api/inout/orderDetailCode"; import {getCheckDetailCodes} from "@/api/inout/orderDetailCode";
import operateRelCodeSpell from "@/views/collect/relCode/operateRelCodeSpell";
import {updateIoCodeTempEntity} from "@/api/collect/relCode";
export default { export default {
name: "PanelCreateOrderCodesDrug", name: "PanelCreateOrderCodesDrug",
@ -254,6 +280,9 @@ export default {
}, },
data() { data() {
return { return {
orderQuery: null,
editTitle: "",
associationCodeVisible: false,
loading: false, loading: false,
query: { query: {
code: "", code: "",
@ -408,7 +437,11 @@ export default {
}).catch(() => { }).catch(() => {
}); });
}, },
association(row) {
this.editTitle = "关联条码";
this.orderQuery = row;
this.associationCodeVisible = true;
},
closeBindDialog() { closeBindDialog() {
this.selectRlVisible = false; this.selectRlVisible = false;
@ -419,6 +452,11 @@ export default {
closeCodeDialog() { closeCodeDialog() {
this.editCodeVisible = false; this.editCodeVisible = false;
this.editOriginCodeVisible = false; this.editOriginCodeVisible = false;
this.associationCodeVisible = false;
//
updateIoCodeTempEntity({parentCode:this.orderQuery.code}).then((response) => {
}).catch(() => {
});
this.refreshPanel(); this.refreshPanel();
}, },
@ -438,7 +476,7 @@ export default {
}, },
components: { components: {
selectRlDialog, DialogSelectUnit, editCodeDialog selectRlDialog, DialogSelectUnit, editCodeDialog,operateRelCodeSpell
}, },
} }
</script> </script>

Loading…
Cancel
Save