8/02 药品
parent
d061ea69c2
commit
8339b4f557
@ -0,0 +1,365 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-card>
|
||||
<!--<el-table :data="sysList" style="width: 100%" key="2" border>-->
|
||||
<!-- <el-table-column label="序号" type="index"></el-table-column>-->
|
||||
<!-- <el-table-column label="系统名称" prop="sysName" show-overflow-tooltip></el-table-column>-->
|
||||
<!-- <el-table-column label="药品编码" prop="thirdId" show-overflow-tooltip></el-table-column>-->
|
||||
<!-- <el-table-column label="药品名称" prop="thirdName" show-overflow-tooltip></el-table-column>-->
|
||||
<!-- <el-table-column label="规格型号" prop="spec" show-overflow-tooltip></el-table-column>-->
|
||||
<!-- <el-table-column label="批准文号" prop="registerNo" show-overflow-tooltip></el-table-column>-->
|
||||
<!-- <el-table-column label="生产企业" prop="manufactory" show-overflow-tooltip></el-table-column>-->
|
||||
<!--</el-table>-->
|
||||
|
||||
|
||||
<el-table v-loading="loading" :data="detailList" style="width: 100%; margin-top: 20px" border key="3" @current-change="handleDetail">
|
||||
<el-table-column label="层级标识" prop="nameCode" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="包装级别" prop="packLevel" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="层级单位" prop="packUnit" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="上级标识" prop="sjcpbm" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="下级标识" prop="bhxjcpbm" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="下级数量" prop="bhxjsl" show-overflow-tooltip></el-table-column>
|
||||
</el-table>
|
||||
|
||||
|
||||
<el-form :model="detailQuery" :rules="rules" ref="detailQuery" label-width="100px" style="margin-top: 20px">
|
||||
<el-collapse v-model="activeNames">
|
||||
<el-collapse-item name="2">
|
||||
<template slot="title">
|
||||
<p class="form-title">药品基本信息</p>
|
||||
</template>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>药品名称: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
:disabled="true"
|
||||
v-model="detailQuery.cpmctymc"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>药品标识: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="detailQuery.nameCode"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>规格型号: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="detailQuery.ggxh"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>包装规格: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="detailQuery.bzgg"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>制剂规格: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="detailQuery.prepnSpec"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>制剂单位: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="detailQuery.prepnUnit"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>商品条码: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="detailQuery.sptm"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>医保编码: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="detailQuery.ybbm"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>统一社会信用号: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="detailQuery.tyshxydm"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>批准文号: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="detailQuery.zczbhhzbapzbh"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>生产企业: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="!checked"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="detailQuery.manufactory"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>药品描述: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="!checked"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="detailQuery.cpms"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
|
||||
|
||||
</el-collapse-item>
|
||||
</el-collapse>
|
||||
|
||||
</el-form>
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {filterDetail} from "@/api/basic/udiinfoImport";
|
||||
import {thirdSysDetail} from "@/api/basic/udiRelevance";
|
||||
import {filterByUuid} from "@/api/basic/udiInfo";
|
||||
|
||||
export default {
|
||||
name: "drugInfoManageSpDetail",
|
||||
props: {
|
||||
detailQuery: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
relevanceEdit: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
checked:{
|
||||
type: Boolean,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
sysList: [],
|
||||
detailList:[],
|
||||
relevanceEdit: {
|
||||
id: null,
|
||||
thirdId: "",
|
||||
isDisable: null,
|
||||
isUseDy: false,
|
||||
isLock: null,
|
||||
isAdavence: null,
|
||||
},
|
||||
activeNames: ["2"]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
getThirdSysDetail() {
|
||||
let query = {
|
||||
id: this.relevanceEdit.id,
|
||||
};
|
||||
|
||||
thirdSysDetail(query)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
this.sysList = response.data.list || [];
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.sysList = [];
|
||||
});
|
||||
},
|
||||
getDetailList() {
|
||||
let ttquery = {
|
||||
id: this.detailQuery.rlId
|
||||
};
|
||||
this.loading = true;
|
||||
filterByUuid(ttquery)
|
||||
.then((response) => {
|
||||
this.isUseDyCheck = false;
|
||||
this.loading = false;
|
||||
this.detailList = response.data || [];
|
||||
this.detailList.forEach((item, index, array) => {
|
||||
if (item.zxxsbzbhsydysl > 1) {
|
||||
this.isUseDyCheck = true;
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.detailList = [];
|
||||
});
|
||||
},
|
||||
},
|
||||
created() {
|
||||
console.log("detailQuery",this.detailQuery)
|
||||
this.getThirdSysDetail();
|
||||
this.getDetailList(this.detailQuery.id);
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.itemTag {
|
||||
float: left;
|
||||
text-align: right;
|
||||
margin-top: 5px;
|
||||
padding-right: 10px;
|
||||
width: 35%;
|
||||
}
|
||||
|
||||
.text {
|
||||
font-size: 13px;
|
||||
font-family: "Microsoft YaHei";
|
||||
}
|
||||
|
||||
.query-form-item {
|
||||
display: block !important;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.edit-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.el-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.el-col {
|
||||
border-radius: 4px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.el-table .cell.el-tooltip {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
.form-title {
|
||||
font-size: 16px;
|
||||
font-family: Noto Sans SC;
|
||||
font-weight: bold;
|
||||
color: #303133;
|
||||
padding-bottom: 17px;
|
||||
padding-top: 17px;
|
||||
}
|
||||
</style>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,216 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-form :model="editData" :rules="formRules" ref="dataForm" label-width="100px">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="20">
|
||||
<el-form-item label="UDI码:" prop="code">
|
||||
<el-input
|
||||
v-model="editData.code"
|
||||
clearable
|
||||
disabled
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="11">
|
||||
<el-form-item prop="productDate" label="生产日期">
|
||||
<el-input v-model="editData.produceDate" auto-complete="off"
|
||||
oninput="if(value.length>6)value=value.slice(0,6)"
|
||||
type="number"
|
||||
:disabled="editType!=1 || !isProduceDate"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="11">
|
||||
<el-form-item prop="expireDate" label="失效日期">
|
||||
<el-input v-model="editData.expireDate" auto-complete="off"
|
||||
oninput="if(value.length>6)value=value.slice(0,6)"
|
||||
type="number"
|
||||
:disabled="editType!=1 || !isExpireDate"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="11">
|
||||
<el-form-item prop="batchNo" label="批次号">
|
||||
<el-input v-model="editData.batchNo" auto-complete="off" :disabled="editType!=1 || !isBatchNo"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="11">
|
||||
<el-form-item prop="serialNo" label="序列号">
|
||||
<el-input v-model="editData.serialNo" auto-complete="off" :disabled="editType!=1 || !isSerialNo"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="11">
|
||||
<el-form-item prop="count" label="扫码数量">
|
||||
<el-input v-model="editData.count" auto-complete="off"
|
||||
type="number"
|
||||
min="1"
|
||||
disabled
|
||||
:disabled="editData.serialNo!=null && editData.serialNo!='' "></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="11">
|
||||
<el-form-item>
|
||||
<el-checkbox v-model="isUseDyCheck" disabled>是否以使用单元数量出入库</el-checkbox>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div style="text-align: right;margin-top: 20px">
|
||||
<el-button @click="cancelDialog">取 消</el-button>
|
||||
<el-button type="primary" @click="saveCode()" :loading="determineLoading">确 定</el-button>
|
||||
</div>
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import {
|
||||
checkTempCode,
|
||||
findByCode,
|
||||
saveCode, tabCode
|
||||
} from "@/api/inout/code";
|
||||
import {isBlank} from "@/utils/strUtil";
|
||||
|
||||
export default {
|
||||
name: "editCode",
|
||||
props: {
|
||||
editType: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
closeCodeDialog: {
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
repeatAddCode: {
|
||||
type: Function,
|
||||
required: false,
|
||||
},
|
||||
codeDetail: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
editData: null
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
xlhEnable: false,
|
||||
isUseDyCheck: false,
|
||||
isProduceDate: false,
|
||||
isExpireDate: false,
|
||||
isBatchNo: false,
|
||||
isSerialNo: false,
|
||||
determineLoading: false,
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
saveCode() {
|
||||
this.determineLoading = true
|
||||
if (this.editType == 1) {
|
||||
//校验该单有没有存在同序列号的码
|
||||
if (!isBlank(this.editData.serialNo)) {
|
||||
checkTempCode(this.editData).then((response) => {
|
||||
this.determineLoading = false
|
||||
if (response.code === 20000) {
|
||||
this.repeatAddCode(this.editData);
|
||||
return
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
return
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.determineLoading = false
|
||||
this.repeatAddCode(this.editData);
|
||||
}
|
||||
|
||||
// tabCode(this.editData)
|
||||
// .then((response) => {
|
||||
// console.log(response)
|
||||
// if (response.code === 20000) {
|
||||
// this.$message.success("提交成功");
|
||||
// } else {
|
||||
// this.$message.error(response.message);
|
||||
// }
|
||||
// this.loading = false;
|
||||
// });
|
||||
|
||||
} else {
|
||||
saveCode(this.editData)
|
||||
.then((response) => {
|
||||
this.determineLoading = false
|
||||
console.log(response)
|
||||
if (response.code === 20000) {
|
||||
this.$message.success("提交成功");
|
||||
this.codeDetail = this.editData;
|
||||
this.closeCodeDialog();
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
this.loading = false;
|
||||
this.determineLoading = false
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
,
|
||||
cancelDialog() {
|
||||
this.closeCodeDialog();
|
||||
}
|
||||
,
|
||||
findByCode() {
|
||||
let query = {udiCode: this.editData.code};
|
||||
findByCode(query)
|
||||
.then((response) => {
|
||||
if (response.code === 20000) {
|
||||
if (response.data.scbssfbhxlh == "否") {
|
||||
this.xlhEnable = true;
|
||||
}
|
||||
if (response.data.zxxsbzbhsydysl > 1) {
|
||||
this.isUseDyCheck = true;
|
||||
}
|
||||
let allowNoSerial = response.data.allowNoSerial ?? true;
|
||||
if (isBlank(this.editData.serialNo) && !allowNoSerial) {
|
||||
this.isSerialNo = true
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
}
|
||||
this.loading = false;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
,
|
||||
created() {
|
||||
|
||||
this.editData = JSON.parse(JSON.stringify(this.codeDetail));
|
||||
this.findByCode();
|
||||
//判断三区有数据的不允许修改
|
||||
if (isBlank(this.editData.produceDate)) {
|
||||
this.isProduceDate = true
|
||||
}
|
||||
if (isBlank(this.editData.expireDate)) {
|
||||
this.isExpireDate = true
|
||||
}
|
||||
if (isBlank(this.editData.batchNo)) {
|
||||
this.isBatchNo = true
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -0,0 +1,373 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-card class="el-card">
|
||||
<el-form :model="listQuery" size="mini" label-width="100px" v-if="showSearch">
|
||||
<el-row>
|
||||
<el-col :span="18">
|
||||
<el-form-item class="query-form-item" label="UDI码:">
|
||||
<el-input v-model="listQuery.udiCode"
|
||||
style="width: 97%"
|
||||
placeholder="请扫描或输入UDI码"
|
||||
clearable="true"
|
||||
@keyup.enter.native="keyup_submit($event)"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item class="query-form-item" label="产品编码:">
|
||||
<el-input v-model="listQuery.unionCode" placeholder="DI/医保编码/商品条码"
|
||||
style="width: 90%"
|
||||
clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item class="query-form-item" label="产品通用名:">
|
||||
<el-input v-model="listQuery.cpmctymc" placeholder="产品通用名" clearable="true"
|
||||
style="width: 90%"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item class="query-form-item" label="规格型号:">
|
||||
<el-input v-model="listQuery.ggxh" placeholder="规格型号" clearable="true"
|
||||
style="width: 90%"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item class="query-form-item" label="注册备案人:">
|
||||
<el-input v-model="listQuery.ylqxzcrbarmc" placeholder="生产企业/注册备案人"
|
||||
style="width: 90%"
|
||||
clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item class="query-form-item" label="外部产品编码:">
|
||||
<el-input v-model="listQuery.thrPiId" placeholder="第三方产品编码"
|
||||
style="width: 90%"
|
||||
clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div class="top-right-btn">
|
||||
<el-button-group>
|
||||
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
||||
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="search">查询</el-button>
|
||||
<el-button type="primary" icon="el-icon-check" @click="confirmSelect">确定</el-button>
|
||||
</el-button-group>
|
||||
</div>
|
||||
<el-table
|
||||
:data="dataList"
|
||||
style="width: 100%"
|
||||
highlight-current-row="false"
|
||||
v-loading="loading"
|
||||
border
|
||||
@current-change="handleChange"
|
||||
ref="multipleTable"
|
||||
>
|
||||
<el-table-column label width="45">
|
||||
<template slot-scope="scope">
|
||||
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="序号" type="index"></el-table-column>
|
||||
<el-table-column
|
||||
label="最小销售产品标识"
|
||||
prop="nameCode"
|
||||
width="140"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="产品编码"
|
||||
prop="thirdId"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="医疗器械注册人"
|
||||
prop="ylqxzcrbarmc"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="产品通用名"
|
||||
prop="cpmctymc"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="规格型号"
|
||||
prop="ggxh"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="注册/备案凭证"
|
||||
prop="zczbhhzbapzbh"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="价格"
|
||||
prop="price"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="器械类别"
|
||||
prop="qxlb"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="配送企业"
|
||||
prop="companyName"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column label="操作" width="160">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click.native.stop="handleDetailClick(scope.row)"
|
||||
>详情
|
||||
</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="pageTotal>0"
|
||||
:total="pageTotal"
|
||||
:page.sync="listQuery.page"
|
||||
:limit.sync="listQuery.limit"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
</el-card>
|
||||
<el-dialog title="请选择对应的注册/备案证" :visible.sync="dialogFormVisible" append-to-body width="40%">
|
||||
<el-form :model="form">
|
||||
<el-form-item label="" prop="isGive">
|
||||
<el-radio-group v-model="currentCert">
|
||||
<el-radio style="width: 100%; margin-top: 10px;" :label="item" :key="item" v-for="item in certList">{{
|
||||
item
|
||||
}}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="selectCert">确 定</el-button>
|
||||
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
|
||||
<el-dialog
|
||||
title="耗材字典详情"
|
||||
:visible.sync="udiRlDetailVisible"
|
||||
width="85%"
|
||||
:close-on-click-modal="false"
|
||||
:close-on-press-escape="false"
|
||||
append-to-body
|
||||
v-if="udiRlDetailVisible"
|
||||
>
|
||||
<udiRlDetailDialog :editQuery="currentRow"></udiRlDetailDialog>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import {addBizProduct} from "@/api/inout/orderDetailCode";
|
||||
import {filterCompanyProductRelevance} from "@/api/basic/udiRlSuptRelevance";
|
||||
import udiRlDetailDialog from "../pharmaceuticals/purApplyDrug/purUdiRlDetailDialog";
|
||||
import {isBlank} from "@/utils/strUtil";
|
||||
|
||||
export default {
|
||||
name: "stockOrderNewSelectProduct",//选入耗材字典产品对话框
|
||||
props: {
|
||||
data: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
closeDialog: {
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
filterType: {
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
showSearch: true,
|
||||
listQuery: {
|
||||
udiCode: null,
|
||||
cpmctymc: null,
|
||||
action: null,
|
||||
ggxh: null,
|
||||
ylqxzcrbarmc: null,
|
||||
thrPiId: null,
|
||||
unitFk: null,
|
||||
page: 1,
|
||||
limit: 10,
|
||||
},
|
||||
dataList: [],
|
||||
pageTotal: 1,
|
||||
total: 1,
|
||||
radioCheck: null,
|
||||
currentRow: null,
|
||||
|
||||
//选择资质证书
|
||||
dialogFormVisible: false,
|
||||
currentCert: null,
|
||||
certList: [],
|
||||
udiRlDetailVisible: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
||||
onReset() {
|
||||
this.listQuery = {
|
||||
udiCode: null,
|
||||
cpmctymc: null,
|
||||
ggxh: null,
|
||||
ylqxzcrbarmc: null,
|
||||
thrPiId: null,
|
||||
page: 1,
|
||||
limit: 10,
|
||||
}
|
||||
this.radioCheck = null;
|
||||
this.currentRow = null;
|
||||
this.getList();
|
||||
},
|
||||
|
||||
hideSearch() {
|
||||
this.showSearch = !this.showSearch;
|
||||
},
|
||||
|
||||
search() {
|
||||
this.listQuery.page = 1;
|
||||
this.getList();
|
||||
},
|
||||
|
||||
getList() {
|
||||
this.loading = true;
|
||||
// if (this.data.fromCorp != null) {
|
||||
// this.listQuery.unitFk = this.data.fromCorp;
|
||||
// }
|
||||
if (this.data.action != null) {
|
||||
this.listQuery.action = this.data.action;
|
||||
}
|
||||
filterCompanyProductRelevance(this.listQuery)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
if (response.code === 20000) {
|
||||
this.dataList = response.data.list || [];
|
||||
this.pageTotal = response.data.total || 0;
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
this.dataList = [];
|
||||
this.pageTotal = 0;
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.dataList = [];
|
||||
this.pageTotal = 0;
|
||||
});
|
||||
},
|
||||
|
||||
keyup_submit(event) {
|
||||
this.listQuery.page = 1;
|
||||
this.getList();
|
||||
event.target.select();
|
||||
},
|
||||
|
||||
handleChange(val) {
|
||||
this.radioCheck = val.id;
|
||||
this.currentRow = val;
|
||||
},
|
||||
|
||||
confirmSelect() {
|
||||
if (this.radioCheck == null) {
|
||||
this.$message.error('未选择产品');
|
||||
return;
|
||||
}
|
||||
let str = this.currentRow.zczbhhzbapzbh;
|
||||
if (!isBlank(str) && str.search(",") != -1) {
|
||||
this.currentCert = null;
|
||||
this.certList = str.split(',');
|
||||
this.dialogFormVisible = true;
|
||||
} else {
|
||||
this.combine();
|
||||
}
|
||||
},
|
||||
|
||||
selectCert() {
|
||||
if (this.currentCert == null) {
|
||||
this.$message.error("请先选择对应的注册证!");
|
||||
} else {
|
||||
this.currentRow.zczbhhzbapzbh = this.currentCert;
|
||||
this.combine();
|
||||
}
|
||||
},
|
||||
|
||||
combine() {
|
||||
let data = {
|
||||
relId: this.currentRow.rlId,
|
||||
supId: this.currentRow.customerId,
|
||||
zczbhhzbapzbh: this.currentRow.zczbhhzbapzbh,
|
||||
orderEntity: this.data,
|
||||
}
|
||||
this.loading = true;
|
||||
addBizProduct(data)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
if (response.code === 20000) {
|
||||
this.closeDialog(response.data);
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.dataList = [];
|
||||
this.pageTotal = 0;
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
handleDetailClick(row) {
|
||||
this.currentRow = row;
|
||||
this.udiRlDetailVisible = true;
|
||||
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
components: {udiRlDetailDialog}
|
||||
,
|
||||
|
||||
created() {
|
||||
|
||||
|
||||
this.getList();
|
||||
|
||||
console.log(this.data);
|
||||
}
|
||||
,
|
||||
}
|
||||
;
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
div /deep/ .el-table .warning-row {
|
||||
background: #bebebe;
|
||||
}
|
||||
|
||||
div /deep/ .el-table .success-row {
|
||||
background: #ffffff;
|
||||
}
|
||||
</style>
|
@ -0,0 +1,91 @@
|
||||
<template>
|
||||
<div>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="spaceCodeList"
|
||||
style="width: 100%"
|
||||
highlight-current-row
|
||||
height="500"
|
||||
border
|
||||
@current-change="handleDetail"
|
||||
>
|
||||
<el-table-column label="序号" type="index"></el-table-column>
|
||||
<el-table-column
|
||||
label="UDI码"
|
||||
prop="code"
|
||||
width="220"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column label="仓库" prop="invName" width="120"></el-table-column>
|
||||
<el-table-column label="货位" prop="invSpaceName" width="120"></el-table-column>
|
||||
<el-table-column label="DI/物资编码" prop="nameCode" width="150"></el-table-column>
|
||||
<el-table-column label="物资名称" prop="productName" width="200" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="规格型号" prop="ggxh" width="150" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="批次号" prop="batchNo" width="120"></el-table-column>
|
||||
<el-table-column label="生产日期" prop="productionDate" width="120"></el-table-column>
|
||||
<el-table-column label="失效日期" prop="expireDate" width="120"></el-table-column>
|
||||
<el-table-column label="计量单位" prop="expireDate" width="120"></el-table-column>
|
||||
<el-table-column label="注册备案号" prop="zczbhhzbapzbh" show-overflow-tooltip
|
||||
width="200"></el-table-column>
|
||||
<el-table-column label="生产厂家" prop="manufactory" show-overflow-tooltip
|
||||
width="200"></el-table-column>
|
||||
<el-table-column label="供应商" prop="supName" show-overflow-tooltip
|
||||
width="200"></el-table-column>
|
||||
<el-table-column width="200" label="操作" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click.native.stop="selectSpace(scope.row)"
|
||||
>选入绑定
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {selectMutiPlace} from "@/api/inventory/invPlaceOrder";
|
||||
|
||||
export default {
|
||||
name: "DialogSelectSpace",
|
||||
props: {
|
||||
spaceCodeList: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
list: [],
|
||||
filterQuery: {
|
||||
invCode: null,
|
||||
code: null,
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
selectSpace(row) {
|
||||
this.$emit("selectSpaceBind", row.invSpaceCode);
|
||||
this.$emit("closeBindDialog", true);
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.list = this.spaceCodeList;
|
||||
},
|
||||
mounted() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -0,0 +1,148 @@
|
||||
<template>
|
||||
<div>
|
||||
<!-- <el-form :inline="true" :model="unitquery" class="query-form" size="mini">-->
|
||||
<!-- <el-form-item class="query-form-item" label="关键字搜索:">-->
|
||||
<!-- <el-input v-model="unitquery.key" placeholder="搜索"></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item>-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="primary"-->
|
||||
<!-- icon="el-icon-search"-->
|
||||
<!-- @click.native.stop="getUnitList()"-->
|
||||
<!-- >查询-->
|
||||
<!-- </el-button-->
|
||||
<!-- >-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-form>-->
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="unitlist"
|
||||
style="width: 100%"
|
||||
highlight-current-row
|
||||
height="500"
|
||||
border
|
||||
@current-change="handleDetail"
|
||||
>
|
||||
<el-table-column
|
||||
label="往来单位ID"
|
||||
prop="erpId"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="往来单位名称"
|
||||
prop="name"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="往来单位简写"
|
||||
prop="spell"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="地址"
|
||||
prop="addr"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column width="200" label="操作">
|
||||
<template slot-scope="scope">
|
||||
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click.native.stop="selectUnit(scope.row)"
|
||||
>选入绑定
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getBasicUnitMaintains, getCorpFilter} from "@/api/basic/basicUnitMaintain";
|
||||
|
||||
export default {
|
||||
name: "DialogSelectUnit",
|
||||
props: {
|
||||
codeId: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
fromCorp: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
unitquery: {key: "", page: 1, limit: 20},
|
||||
unitlist: [],
|
||||
unitUpdateQuery: {
|
||||
id: "",
|
||||
fromCorpId: "",
|
||||
fromCorp: "",
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getUnitList() {
|
||||
this.loading = true;
|
||||
getBasicUnitMaintains(this.unitquery)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
this.unitlist = response.data.page.list || [];
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
getUnitListByCode(row) {
|
||||
let query = {
|
||||
udiRlIdFk: row.relId,
|
||||
unitFk: this.fromCorp,
|
||||
}
|
||||
getCorpFilter(query)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
if (response.code == 20000) {
|
||||
this.unitlist = response.data || [];
|
||||
} else {
|
||||
this.$message.warning(response.message);
|
||||
}
|
||||
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
|
||||
handleDetail(row) {
|
||||
this.curUnitRow = row;
|
||||
},
|
||||
selectUnit(row) {
|
||||
this.$emit("selectSupUnit", row);
|
||||
this.$emit("closeBindDialog", true);
|
||||
},
|
||||
},
|
||||
created() {
|
||||
|
||||
},
|
||||
mounted() {
|
||||
if (this.codeId != null) {
|
||||
if (this.codeId.bindRlFk != null) {
|
||||
this.codeId.relId = this.codeId.bindRlFk;
|
||||
}
|
||||
this.getUnitListByCode(this.codeId)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -0,0 +1,173 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-table v-loading="loading" :data="detailList" style="width: 100%;" max-height="350" height="350"
|
||||
border
|
||||
:row-style="rowStyle"
|
||||
ref="multipleTable">
|
||||
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
||||
<el-table-column
|
||||
label="药品编码" width="150"
|
||||
prop="nameCode"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column label="药品名称名称" width="150" prop="coName" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="规格型号" width="150" prop="spec" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="批次号" width="150" prop="batchNo" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="生产日期" width="120" prop="productDate" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<span>{{ convertDateFun(scope.row.productDate) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="失效日期" width="120" prop="expireDate" show-overflow-tooltip>
|
||||
<template slot-scope="scope"12
|
||||
、>
|
||||
<span>{{ convertDateFun(scope.row.expireDate) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="扫码数量" width="80" prop="count" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="实际数量" width="80" prop="reCount" show-overflow-tooltip></el-table-column>
|
||||
<!-- <el-table-column width="120" label="价格"-->
|
||||
<!-- v-if="curAction.mainAction=='WareHouseIn' && curAction.corpType==2">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-input v-model="scope.row.price"-->
|
||||
<!-- type='number'-->
|
||||
<!-- :disabled="scope.row.index !== selectedIndex"-->
|
||||
<!-- placeholder="请输入价格"-->
|
||||
<!-- ></el-input>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="价格" width="120" prop="price" show-overflow-tooltip-->
|
||||
<!-- v-if="!(curAction.mainAction=='WareHouseIn' && curAction.corpType==2)"></el-table-column>-->
|
||||
<el-table-column label="价格" width="150" prop="price" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column width="100" label="计量单位" prop="measname">
|
||||
</el-table-column>
|
||||
<el-table-column label="生产企业" width="150" prop="manufacturer" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="批准文号" width="150" prop="certCode" show-overflow-tooltip></el-table-column>
|
||||
|
||||
<el-table-column label="操作" width="160" fixed="right"
|
||||
v-if="curAction.mainAction=='WareHouseIn' && curAction.corpType==2">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" size="small" v-if="scope.row.index == selectedIndex" @click.stop="true"
|
||||
@click.native="saveChange(scope.row)">保存
|
||||
</el-button>
|
||||
<el-button type="text" size="small" v-if="scope.row.index != selectedIndex" @click.stop="true"
|
||||
@click.native="rowChange(scope.row)">编辑
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {convertDate} from "@/utils/date";
|
||||
import {getDetailCodes, updateBizProduct, updateCodeProduct} from "@/api/inout/orderDetailCode";
|
||||
|
||||
export default {
|
||||
name: "IoCreateOrderCodeDetail",
|
||||
props: {
|
||||
idQuery: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
viewType: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
curAction: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
convertDateFun: convertDate,
|
||||
loading: false,
|
||||
query: {
|
||||
orderId: null,
|
||||
code: "",
|
||||
corpOrderId: "",
|
||||
},
|
||||
detailList: [],
|
||||
total: 0,
|
||||
selectRlVisible: false,
|
||||
dialogTableVisible: false,
|
||||
editCodeVisible: false,
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
"curAction": {
|
||||
handler(newVal, oldVal) {
|
||||
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getOrderDetails() {
|
||||
this.loading = true;
|
||||
this.query.orderId = this.idQuery.billNo;
|
||||
getDetailCodes(this.query) //查找该单号下的所有条码
|
||||
.then((response) => {
|
||||
this.detailList = response.data.list || [];
|
||||
this.total = response.data.total || 0;
|
||||
this.loading = false;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.detailList = [];
|
||||
this.total = 0;
|
||||
});
|
||||
},
|
||||
|
||||
rowStyle({row, rowIndex}) {
|
||||
let rowBackground = {};
|
||||
if (this.viewType == 3 && !row.checkSuccess) {
|
||||
rowBackground.color = '#f60303';
|
||||
}
|
||||
return rowBackground;
|
||||
},
|
||||
|
||||
|
||||
saveChange(row) {
|
||||
if (row.batchNo == '') {
|
||||
row.batchNo = null;
|
||||
}
|
||||
updateCodeProduct(row)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
if (response.code === 20000) {
|
||||
this.$message.success("保存成功!");
|
||||
this.selectedIndex = null;
|
||||
this.refreshPanel();
|
||||
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.dataList = [];
|
||||
this.pageTotal = 0;
|
||||
});
|
||||
},
|
||||
rowChange(val) {
|
||||
this.currentRow = val;
|
||||
if (this.currentRow.batchNo == '')
|
||||
this.currentRow.batchNo = null;
|
||||
this.selectedIndex = val.index;
|
||||
},
|
||||
|
||||
},
|
||||
created() {
|
||||
if (this.idQuery.billNo != null)
|
||||
this.getOrderDetails();
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -0,0 +1,430 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-table v-loading="loading" :data="codeArray" style="width: 100%;" max-height="350" height="350"
|
||||
:row-style="rowStyle"
|
||||
border
|
||||
ref="multipleTable">
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55">
|
||||
</el-table-column>
|
||||
<el-table-column label="序号" type="index" width="55"></el-table-column>
|
||||
<el-table-column
|
||||
label="UDI码"
|
||||
prop="code"
|
||||
width="280"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="物资名称"
|
||||
prop="productName"
|
||||
width="160"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="规格型号"
|
||||
prop="ggxh"
|
||||
width="160"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="批次号"
|
||||
prop="batchNo"
|
||||
width="120"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="价格"
|
||||
prop="price"
|
||||
width="120"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="扫码数量"
|
||||
prop="count"
|
||||
width="80"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="实际数量"
|
||||
prop="reCount"
|
||||
width="80"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="生产日期"
|
||||
prop="produceDate"
|
||||
width="120"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="失效日期"
|
||||
prop="expireDate"
|
||||
width="120"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="序列号"
|
||||
prop="serialNo"
|
||||
width="120"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- label="供应商"-->
|
||||
<!-- prop="supName"-->
|
||||
<!-- width="180"-->
|
||||
<!-- show-overflow-tooltip-->
|
||||
<!-- ></el-table-column>-->
|
||||
|
||||
<el-table-column label="操作" width="220" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click.native.stop="deleteCode(scope.$index, scope.row)"
|
||||
>减一
|
||||
</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
:disabled="scope.row.relId!=null"
|
||||
@click.native.stop="bindRl(scope.row)"
|
||||
>绑定产品
|
||||
</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
:disabled="scope.row.supId!=null"
|
||||
@click.native.stop="handleUnitClick(scope.row)"
|
||||
>绑定供应商
|
||||
</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click.native.stop="editCode(scope.row)"
|
||||
>编辑
|
||||
</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-row v-if="viewType==7">
|
||||
<el-col span="10">
|
||||
<div style="float: left">
|
||||
<td>
|
||||
<div style="background-color: #FC4A45;width: 10px;height: 10px"></div>
|
||||
</td>
|
||||
<td><span>红色:多余条码</span></td>
|
||||
<td>
|
||||
<div style="background-color: #F4BD25;width: 10px;height: 10px;margin-left: 15px"></div>
|
||||
</td>
|
||||
<td>
|
||||
<span>黄色:包含多余条码</span>
|
||||
</td>
|
||||
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
|
||||
</el-row>
|
||||
<div class="block">
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="query.page"
|
||||
:limit.sync="query.limit"
|
||||
@pagination="getCodeList"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- 绑定产品-->
|
||||
<el-dialog
|
||||
:title="selectRlTitle"
|
||||
:visible.sync="selectRlVisible"
|
||||
width="80%"
|
||||
:close-on-click-modal="false"
|
||||
:close-on-press-escape="false"
|
||||
v-if="selectRlVisible"
|
||||
append-to-body
|
||||
>
|
||||
<selectRlDialog
|
||||
:curRow="curRow"
|
||||
:fromCorp="fromCorp"
|
||||
v-on:selectBindRl="selectBindRl"
|
||||
v-on:closeBindDialog="closeBindDialog"
|
||||
></selectRlDialog>
|
||||
</el-dialog>
|
||||
|
||||
|
||||
<!-- 绑定供应商-->
|
||||
<el-dialog
|
||||
:title="selectUnitTitle"
|
||||
:visible.sync="dialogTableVisible"
|
||||
:close-on-click-modal="false"
|
||||
:close-on-press-escape="false"
|
||||
v-if="dialogTableVisible"
|
||||
width="80%"
|
||||
append-to-body
|
||||
>
|
||||
<DialogSelectUnit
|
||||
:codeId="curRow"
|
||||
:fromCorp="fromCorp"
|
||||
v-on:selectSupUnit="selectSupUnit"
|
||||
v-on:closeBindDialog="closeBindDialog"
|
||||
></DialogSelectUnit>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog
|
||||
:title="editTitle"
|
||||
:visible.sync="editCodeVisible"
|
||||
append-to-body width="70%"
|
||||
:close-on-click-modal="false"
|
||||
:close-on-press-escape="false"
|
||||
v-if="editCodeVisible"
|
||||
>
|
||||
<editCodeDialog
|
||||
editType="2"
|
||||
:closeCodeDialog="closeCodeDialog"
|
||||
:codeDetail="codeDetail">
|
||||
</editCodeDialog>
|
||||
</el-dialog>
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {deleteCodesTempById, errorCodeList, updateCodeBindSup} from "@/api/inout/order";
|
||||
import selectRlDialog from "./DialogSelectRl";
|
||||
import DialogSelectUnit from "./DialogSelectUnit";
|
||||
import editCodeDialog from "./DialogEditCode";
|
||||
import {parseTime} from "@/utils/coTools";
|
||||
import {getCheckDetailCodes} from "@/api/inout/orderDetailCode";
|
||||
|
||||
export default {
|
||||
name: "IoAddCodeDetail",
|
||||
props: {
|
||||
idQuery: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
refreshPanel: {
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
selectRlTitle: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
selectUnitTitle: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
editTitle: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
viewType: {
|
||||
type: Object,
|
||||
required: true,
|
||||
}
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
query: {
|
||||
code: "",
|
||||
corpOrderId: "",
|
||||
},
|
||||
codeDetail: null,
|
||||
codeArray: [],
|
||||
total: 0,
|
||||
curRow: null,
|
||||
selectRlVisible: false,
|
||||
dialogTableVisible: false,
|
||||
editCodeVisible: false,
|
||||
editOriginCodeVisible: false,
|
||||
fromCorp: null,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getCodeList() {
|
||||
this.loading = true;
|
||||
this.query.orderId = this.idQuery.billNo;
|
||||
|
||||
if (this.viewType == 7) {
|
||||
//展示带校验条码
|
||||
getCheckDetailCodes(this.query) //查找该单号下的所有条码
|
||||
.then((response) => {
|
||||
this.codeArray = response.data.list || [];
|
||||
this.total = response.data.total || 0;
|
||||
this.loading = false;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.detailList = [];
|
||||
this.total = 0;
|
||||
});
|
||||
|
||||
} else {
|
||||
errorCodeList(this.query) //查找该单号下的所有条码
|
||||
.then((response) => {
|
||||
this.codeArray = response.data.list || [];
|
||||
this.total = response.data.total || 0;
|
||||
for (let i = 0; i < this.codeArray.length; i++) {
|
||||
this.codeArray[i].fromType = this.formData.fromType;
|
||||
this.codeArray[i].billType = this.formData.billType;
|
||||
}
|
||||
this.tableSelection();
|
||||
this.loading = false;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.list = [];
|
||||
this.total = 0;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
|
||||
deleteCode(index, row) {
|
||||
this.$confirm("是否确定移除一个条码?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
}).then(() => {
|
||||
this.loading = true;
|
||||
let tQuery = {
|
||||
id: row.id
|
||||
}
|
||||
deleteCodesTempById(tQuery)
|
||||
.then((response) => {
|
||||
if (response.code === 20000) {
|
||||
this.refreshPanel();
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
this.loading = false;
|
||||
});
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
|
||||
bindRl(val) {
|
||||
this.curRow = val;
|
||||
this.fromCorp = this.idQuery.fromCorp;
|
||||
this.selectRlVisible = true;
|
||||
},
|
||||
|
||||
handleUnitClick(row) {
|
||||
this.curRow = row;
|
||||
this.dialogTableVisible = true;
|
||||
},
|
||||
|
||||
editCode(row) {
|
||||
this.editTitle = "编辑条码";
|
||||
this.codeDetail = row;
|
||||
this.editCodeVisible = true;
|
||||
},
|
||||
|
||||
rowStyle({row, rowIndex}) {
|
||||
let rowBackground = {};
|
||||
if (!this.$isNotBlank(row.supId) || !this.$isNotBlank(row.relId)) {
|
||||
rowBackground.color = '#f60303';
|
||||
}
|
||||
if (row.checkStatus == 2) {
|
||||
rowBackground.color = '#F7BB29';
|
||||
} else if (row.checkStatus == 1) {
|
||||
rowBackground.color = '#FC4A45';
|
||||
}
|
||||
return rowBackground;
|
||||
},
|
||||
|
||||
selectBindRl(row) {
|
||||
let query = {
|
||||
id: this.curRow.id,
|
||||
relId: row.id,
|
||||
mySupId: row.unitFk,
|
||||
};
|
||||
updateCodeBindSup(query).then((response) => {
|
||||
if (response.code == 20000) {
|
||||
this.$message.success("绑定成功");
|
||||
this.orderFormData.id = this.curRow.orderId;
|
||||
this.closeBindDialog();
|
||||
this.getCodeList();
|
||||
} else {
|
||||
if (response.code == 503) {
|
||||
this.curRow = response.data;
|
||||
this.orderFormData.id = this.curRow.orderId;
|
||||
this.getCodeList();
|
||||
this.selectUnitTitle = response.message;
|
||||
this.handleUnitClick(response.data);
|
||||
} else
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
}).catch(() => {
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
selectSupUnit(row) {
|
||||
let query = {
|
||||
id: this.curRow.id,
|
||||
supId: row.erpId,
|
||||
};
|
||||
updateCodeBindSup(query).then((response) => {
|
||||
if (response.code == 20000) {
|
||||
this.$message.success("绑定成功");
|
||||
this.idQuery.id = this.curRow.orderId;
|
||||
this.getCodeList();
|
||||
this.refreshPanel();
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
closeBindDialog() {
|
||||
this.selectRlVisible = false;
|
||||
this.dialogTableVisible = false;
|
||||
this.refreshPanel();
|
||||
},
|
||||
|
||||
closeCodeDialog() {
|
||||
this.editCodeVisible = false;
|
||||
this.editOriginCodeVisible = false;
|
||||
this.refreshPanel();
|
||||
},
|
||||
|
||||
repeatAddCode(editData) {
|
||||
let tQuery = editData;
|
||||
tQuery.orderId = this.orderFormData.id;
|
||||
tQuery.actDate = parseTime(this.orderFormData.actDate, '{y}-{m}-{d} {h}:{i}:{s}');
|
||||
tQuery.action = this.orderFormData.action;
|
||||
this.closeCodeDialog();
|
||||
|
||||
},
|
||||
|
||||
},
|
||||
created() {
|
||||
if (this.idQuery.billNo != null)
|
||||
this.getCodeList();
|
||||
},
|
||||
|
||||
components: {
|
||||
selectRlDialog, DialogSelectUnit, editCodeDialog
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -0,0 +1,162 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-form :model="filterQuery" label-width="90px">
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="产品编码:">
|
||||
<el-input v-model="filterQuery.unionCode" style="width: 100%" placeholder="请输入DI/医保编码/商品条码"
|
||||
clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="产品通用名:">
|
||||
<el-input v-model="filterQuery.cpmctymc" style="width: 100%" placeholder="请输入产品通用名"
|
||||
clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="规格型号:">
|
||||
<el-input v-model="filterQuery.ggxh" style="width: 100%" placeholder="请输入规格型号"
|
||||
clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-button-group>
|
||||
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
|
||||
<el-button type="primary" icon="el-icon-refresh" @click="getList">更新处方信息</el-button>
|
||||
</el-button-group>
|
||||
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
|
||||
|
||||
<el-table :data="list" style="width: 100%" border
|
||||
max-height="350" height="350"
|
||||
highlight-current-row>
|
||||
<el-table-column label="序号" type="index"></el-table-column>
|
||||
<el-table-column label="处方编码" prop="prescribeCode" width="140" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="DI标识" prop="diCode" width="140" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="产品通用名" prop="thrName" width="160" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="规格型号" prop="ggxh" width="140" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="计量单位" prop="measureUnit" width="100" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="数量" header-align="center">
|
||||
<el-table-column label="处方数量" prop="measureCount" width="100" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="扫码数量" prop="realCount" width="100" show-overflow-tooltip></el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="价格" header-align="center">
|
||||
<el-table-column label="处方金额" prop="amount" width="100" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="实际金额" prop="realPrice" width="100" show-overflow-tooltip></el-table-column>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="注册/备案凭证" prop="zczbhhzbapzbh" width="160" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="生产企业" prop="manufactory" width="160" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column width="60" label="操作" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click.native.stop="handleModifyClick(scope.row)">详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {dlOrFilter, skPrescribeCheck, skPrescribeDi} from "@/api/basic/sicker/skPersonApi";
|
||||
|
||||
export default {
|
||||
name: "skPrescribeDi",
|
||||
props: {
|
||||
perscribeData: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
sickerAdNum: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
filterQuery: {
|
||||
cpmctymc: null,
|
||||
unionCode: null,
|
||||
billNo: null,
|
||||
adNum: null,
|
||||
page: 1,
|
||||
limit: 10,
|
||||
ggxh: null,
|
||||
},
|
||||
total: 0,
|
||||
loading: false,
|
||||
list: [],
|
||||
showSearch: true,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.filterQuery.adNum = this.sickerAdNum;
|
||||
this.filterQuery.billNo = this.perscribeData.billNo;
|
||||
skPrescribeCheck(this.filterQuery)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
this.list = response.data || [];
|
||||
// this.total = response.data.total || 0;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
// this.list = [];
|
||||
// this.total = 0;
|
||||
});
|
||||
},
|
||||
|
||||
dlList(sickerAdNum) {
|
||||
this.loading = true;
|
||||
this.filterQuery.adNum = sickerAdNum;
|
||||
dlOrFilter(this.filterQuery)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
this.list = response.data.list || [];
|
||||
this.total = response.data.total || 0;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.list = [];
|
||||
this.total = 0;
|
||||
});
|
||||
},
|
||||
|
||||
hideSearch() {
|
||||
this.showSearch = !this.showSearch;
|
||||
},
|
||||
|
||||
onReset() {
|
||||
this.$router.push({
|
||||
path: "",
|
||||
});
|
||||
this.filterQuery = {
|
||||
page: 1,
|
||||
limit: 10,
|
||||
};
|
||||
this.getList();
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
watch: {
|
||||
sickerAdNum: function (val) {
|
||||
this.dlList(val);
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
Reference in New Issue