药品目录画面修正 pagesize默认10 up by dh
This commit is contained in:
@@ -221,7 +221,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<!-- <el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="拼音" prop="pyStr">
|
<el-form-item label="拼音" prop="pyStr">
|
||||||
<el-input v-model="form.pyStr" maxlength="11" />
|
<el-input v-model="form.pyStr" maxlength="11" />
|
||||||
@@ -232,7 +232,7 @@
|
|||||||
<el-input v-model="form.wbStr" maxlength="11" />
|
<el-input v-model="form.wbStr" maxlength="11" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row> -->
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="类型" prop="typeEnum">
|
<el-form-item label="类型" prop="typeEnum">
|
||||||
@@ -318,7 +318,7 @@ const data = reactive({
|
|||||||
form: {},
|
form: {},
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 50,
|
pageSize: 10,
|
||||||
searchKey: undefined, // 供应商名称
|
searchKey: undefined, // 供应商名称
|
||||||
busNo: undefined, // 编码
|
busNo: undefined, // 编码
|
||||||
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
||||||
@@ -327,8 +327,8 @@ const data = reactive({
|
|||||||
rules: {
|
rules: {
|
||||||
busNo: [{ required: true, message: "编码不能为空", trigger: "blur" }],
|
busNo: [{ required: true, message: "编码不能为空", trigger: "blur" }],
|
||||||
name: [{ required: true, message: "名称不能为空", trigger: "blur" }],
|
name: [{ required: true, message: "名称不能为空", trigger: "blur" }],
|
||||||
pyStr: [{ required: true, message: "拼音不能为空", trigger: "blur" }],
|
// pyStr: [{ required: true, message: "拼音不能为空", trigger: "blur" }],
|
||||||
wbStr: [{ required: true, message: "五笔拼音不能为空", trigger: "blur" }],
|
// wbStr: [{ required: true, message: "五笔拼音不能为空", trigger: "blur" }],
|
||||||
typeEnum: [{ required: true, message: "类型不能为空", trigger: "blur" }],
|
typeEnum: [{ required: true, message: "类型不能为空", trigger: "blur" }],
|
||||||
address: [{ required: true, message: "地址不能为空", trigger: "blur" }],
|
address: [{ required: true, message: "地址不能为空", trigger: "blur" }],
|
||||||
phone: [{ required: true, message: "联系人电话不能为空", trigger: "blur" }],
|
phone: [{ required: true, message: "联系人电话不能为空", trigger: "blur" }],
|
||||||
@@ -356,8 +356,9 @@ function getList() {
|
|||||||
console.log(queryParams.value, "queryParams.value");
|
console.log(queryParams.value, "queryParams.value");
|
||||||
getSupplierList(queryParams.value).then((res) => {
|
getSupplierList(queryParams.value).then((res) => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
console.log(res, "res");
|
console.log(res, "res",res.data.records);
|
||||||
supplierList.value = res.data.records;
|
supplierList.value = res.data.records;
|
||||||
|
console.log(supplierList.value, "supplierList.value");
|
||||||
total.value = res.data.total;
|
total.value = res.data.total;
|
||||||
console.log(total.value, "total.value");
|
console.log(total.value, "total.value");
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -479,7 +479,7 @@ const data = reactive({
|
|||||||
form: {},
|
form: {},
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 50,
|
pageSize: 10,
|
||||||
searchKey: undefined, // 供应商名称
|
searchKey: undefined, // 供应商名称
|
||||||
busNo: undefined, // 编码
|
busNo: undefined, // 编码
|
||||||
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
||||||
|
|||||||
@@ -385,11 +385,11 @@
|
|||||||
:item="currentData"
|
:item="currentData"
|
||||||
@submit="getList()"
|
@submit="getList()"
|
||||||
/>
|
/>
|
||||||
<device-view-dialog
|
<!-- <device-view-dialog
|
||||||
ref="deviceViewRef"
|
ref="deviceViewRef"
|
||||||
:item="viewData"
|
:item="viewData"
|
||||||
:viewFlg="viewFlg"
|
:viewFlg="viewFlg"
|
||||||
/>
|
/> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -433,7 +433,7 @@ const data = reactive({
|
|||||||
form: {},
|
form: {},
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 50,
|
pageSize: 10,
|
||||||
searchKey: undefined, // 品名/商品名/英文品名/编码/拼音
|
searchKey: undefined, // 品名/商品名/英文品名/编码/拼音
|
||||||
typeEnum: undefined, // 类型(包括 1:中药,2:成药)
|
typeEnum: undefined, // 类型(包括 1:中药,2:成药)
|
||||||
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
||||||
|
|||||||
@@ -317,11 +317,11 @@
|
|||||||
:item="currentData"
|
:item="currentData"
|
||||||
@submit="getList()"
|
@submit="getList()"
|
||||||
/>
|
/>
|
||||||
<diagnosis-treatment-view-dialog
|
<!-- <diagnosis-treatment-view-dialog
|
||||||
ref="diagnosisTreatmentViewRef"
|
ref="diagnosisTreatmentViewRef"
|
||||||
:item="viewData"
|
:item="viewData"
|
||||||
:viewFlg="viewFlg"
|
:viewFlg="viewFlg"
|
||||||
/>
|
/> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -365,7 +365,7 @@ const data = reactive({
|
|||||||
form: {},
|
form: {},
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 50,
|
pageSize: 10,
|
||||||
searchKey: undefined, // 品名/商品名/英文品名/编码/拼音
|
searchKey: undefined, // 品名/商品名/英文品名/编码/拼音
|
||||||
typeCode: undefined, // 类型(包括 1:中药,2:成药)
|
typeCode: undefined, // 类型(包括 1:中药,2:成药)
|
||||||
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ const data = reactive({
|
|||||||
form: {},
|
form: {},
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 50,
|
pageSize: 10,
|
||||||
searchKey: undefined, // 疾病名称
|
searchKey: undefined, // 疾病名称
|
||||||
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
||||||
sourceEnum: undefined, // 来源(包括 1:病种目录分类,2:自定义)
|
sourceEnum: undefined, // 来源(包括 1:病种目录分类,2:自定义)
|
||||||
|
|||||||
@@ -51,3 +51,24 @@ export function getMedicationCategory() {
|
|||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 停用病种目录
|
||||||
|
export function stopMedication(ids) {
|
||||||
|
console.log(ids)
|
||||||
|
return request({
|
||||||
|
url: '/datadictionary/medication/information-stop',
|
||||||
|
method: 'put',
|
||||||
|
data: ids
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 启用病种目录
|
||||||
|
export function startMedication(ids) {
|
||||||
|
console.log(ids)
|
||||||
|
return request({
|
||||||
|
url: '/datadictionary/medication/information-start',
|
||||||
|
method: 'put',
|
||||||
|
data: ids
|
||||||
|
})
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -71,7 +71,7 @@
|
|||||||
>
|
>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.ybMatchFlag"
|
v-model="queryParams.ybMatchFlag"
|
||||||
placeholder="用户状态"
|
placeholder=""
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
@@ -153,7 +153,7 @@
|
|||||||
>停用</el-button
|
>停用</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="success"
|
||||||
plain
|
plain
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
v-hasPermi="['system:user:remove']"
|
v-hasPermi="['system:user:remove']"
|
||||||
>启用</el-button
|
>启用</el-button
|
||||||
>
|
>
|
||||||
</el-col> -->
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@@ -194,18 +194,72 @@
|
|||||||
>
|
>
|
||||||
<el-table-column type="selection" width="50" align="center" />
|
<el-table-column type="selection" width="50" align="center" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="编码"
|
label="药品编号"
|
||||||
align="center"
|
align="center"
|
||||||
key="busNo"
|
key="busNo"
|
||||||
prop="busNo"
|
prop="busNo"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="项目"
|
label="药品名称"
|
||||||
align="center"
|
align="center"
|
||||||
key="name"
|
key="name"
|
||||||
prop="name"
|
prop="name"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
|
width="110"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="药品编码"
|
||||||
|
align="center"
|
||||||
|
key="medicationDefId"
|
||||||
|
prop="medicationDefId"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="200px"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="药品状态"
|
||||||
|
align="center"
|
||||||
|
key="statusEnum"
|
||||||
|
prop="statusEnum"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="药品名称拼音码"
|
||||||
|
align="center"
|
||||||
|
key="pyStr"
|
||||||
|
prop="pyStr"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="120"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="药品五笔码"
|
||||||
|
align="center"
|
||||||
|
key="wbStr"
|
||||||
|
prop="wbStr"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="药品分类"
|
||||||
|
align="center"
|
||||||
|
key="categoryCode"
|
||||||
|
prop="categoryCode"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="所属科室"
|
||||||
|
align="center"
|
||||||
|
key="orgId"
|
||||||
|
prop="orgId"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="剂型"
|
||||||
|
align="center"
|
||||||
|
key="doseFormCode"
|
||||||
|
prop="doseFormCode"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="规格"
|
label="规格"
|
||||||
@@ -213,35 +267,27 @@
|
|||||||
key="totalVolume"
|
key="totalVolume"
|
||||||
prop="totalVolume"
|
prop="totalVolume"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
|
width="200px"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="厂家(产地)"
|
label="成分"
|
||||||
align="center"
|
align="center"
|
||||||
key="manufacturerId"
|
key="ingredientItem"
|
||||||
prop="manufacturerId"
|
prop="ingredientItem"
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
width="100"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="单位"
|
|
||||||
align="center"
|
|
||||||
key="unitCode"
|
|
||||||
prop="unitCode"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
width="50"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="拆零单位"
|
|
||||||
align="center"
|
|
||||||
key="ybMatchflag"
|
|
||||||
prop="ybMatchflag"
|
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="单价"
|
label="是否为活性"
|
||||||
align="center"
|
align="center"
|
||||||
key="statusEnum"
|
key="activeFlag"
|
||||||
prop="statusEnum"
|
prop="activeFlag"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="批次号"
|
||||||
|
align="center"
|
||||||
|
key="lotNumber"
|
||||||
|
prop="lotNumber"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -251,18 +297,168 @@
|
|||||||
prop="statusEnum"
|
prop="statusEnum"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="生效日期"
|
||||||
|
align="center"
|
||||||
|
key="effectiveDate"
|
||||||
|
prop="effectiveDate"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="到期日期"
|
||||||
|
align="center"
|
||||||
|
key="expirationDate"
|
||||||
|
prop="expirationDate"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="用法"
|
||||||
|
align="center"
|
||||||
|
key="methodCode"
|
||||||
|
prop="methodCode"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<el-table-column
|
||||||
|
label="用药频次"
|
||||||
|
align="center"
|
||||||
|
key="rateCode"
|
||||||
|
prop="rateCode"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="单次剂量"
|
||||||
|
align="center"
|
||||||
|
key="dose"
|
||||||
|
prop="dose"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="剂量单位"
|
||||||
|
align="center"
|
||||||
|
key="doseUnitCode"
|
||||||
|
prop="doseUnitCode"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="单次最大剂量"
|
||||||
|
align="center"
|
||||||
|
key="maxUnit"
|
||||||
|
prop="maxUnit"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="药品定义"
|
||||||
|
align="center"
|
||||||
|
key="definition"
|
||||||
|
prop="definition"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="适用范围"
|
||||||
|
align="center"
|
||||||
|
key="domainEnum"
|
||||||
|
prop="domainEnum"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="药品版本"
|
||||||
|
align="center"
|
||||||
|
key="version"
|
||||||
|
prop="version"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="120"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="英文药名"
|
||||||
|
align="center"
|
||||||
|
key="nameEn"
|
||||||
|
prop="nameEn"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="商品名称"
|
||||||
|
align="center"
|
||||||
|
key="merchandiseName"
|
||||||
|
prop="merchandiseName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="商品名称拼音码"
|
||||||
|
align="center"
|
||||||
|
key="merchandisePyStr"
|
||||||
|
prop="merchandisePyStr"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="商品五笔码"
|
||||||
|
align="center"
|
||||||
|
key="merchandiseWbStr"
|
||||||
|
prop="merchandiseWbStr"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="药品单位"
|
||||||
|
align="center"
|
||||||
|
key="unitCode"
|
||||||
|
prop="unitCode"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="最小单位"
|
||||||
|
align="center"
|
||||||
|
key="minUnitCode"
|
||||||
|
prop="minUnitCode"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="所含耗材"
|
||||||
|
align="center"
|
||||||
|
key="comprisedText"
|
||||||
|
prop="comprisedText"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="110"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="成分"
|
||||||
|
align="center"
|
||||||
|
key="ingredient"
|
||||||
|
prop="ingredient"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="拆零比"
|
label="拆零比"
|
||||||
align="center"
|
align="center"
|
||||||
key="partPercent"
|
key="partPercent"
|
||||||
prop="partPercent"
|
prop="partPercent"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
|
width="120"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="组套标记"
|
label="剂量形式"
|
||||||
align="center"
|
align="center"
|
||||||
key="statusEnum"
|
key="doseFrom"
|
||||||
prop="statusEnum"
|
prop="doseFrom"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="批准文号"
|
||||||
|
align="center"
|
||||||
|
key="approvalNumber"
|
||||||
|
prop="approvalNumber"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="120"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="医保是否对码"
|
||||||
|
align="center"
|
||||||
|
key="ybMatchFlag"
|
||||||
|
prop="ybMatchFlag"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -271,37 +467,53 @@
|
|||||||
key="ybNo"
|
key="ybNo"
|
||||||
prop="ybNo"
|
prop="ybNo"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
width="90"
|
||||||
|
|
||||||
<el-table-column
|
|
||||||
label="医保已对码"
|
|
||||||
align="center"
|
|
||||||
key="ybMatchFlag"
|
|
||||||
prop="ybMatchFlag"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
width="100"
|
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="医保等级"
|
label="药理作用分类"
|
||||||
align="center"
|
align="center"
|
||||||
key="statusEnum"
|
key="pharmacologyCategoryCode"
|
||||||
prop="statusEnum"
|
prop="pharmacologyCategoryCode"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="发票项目"
|
label="是否皮试"
|
||||||
align="center"
|
align="center"
|
||||||
key="statusEnum"
|
key="skinTestFlag"
|
||||||
prop="statusEnum"
|
prop="skinTestFlag"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="是否为注射药物"
|
||||||
|
align="center"
|
||||||
|
key="injectFlag"
|
||||||
|
prop="injectFlag"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="生产厂家"
|
||||||
|
align="center"
|
||||||
|
key="manufacturerId"
|
||||||
|
prop="manufacturerId"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="限制使用标记"
|
label="供应商"
|
||||||
|
align="center"
|
||||||
|
key="supplyId"
|
||||||
|
prop="supplyId"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="是否限制使用"
|
||||||
align="center"
|
align="center"
|
||||||
key="restrictedFlag"
|
key="restrictedFlag"
|
||||||
prop="restrictedFlag"
|
prop="restrictedFlag"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
width="110"
|
width="90"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="限制使用范围"
|
label="限制使用范围"
|
||||||
@@ -309,81 +521,20 @@
|
|||||||
key="restrictedScope"
|
key="restrictedScope"
|
||||||
prop="restrictedScope"
|
prop="restrictedScope"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
width="110"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="目录限价"
|
|
||||||
align="center"
|
|
||||||
key="statusEnum"
|
|
||||||
prop="statusEnum"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="病案结算项"
|
|
||||||
align="center"
|
|
||||||
key="statusEnum"
|
|
||||||
prop="statusEnum"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
width="90"
|
width="90"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="已发生业务"
|
label="儿童用药标志"
|
||||||
align="center"
|
align="center"
|
||||||
key="statusEnum"
|
key="childrenFlag"
|
||||||
prop="statusEnum"
|
prop="childrenFlag"
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
width="90"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="确认可用标记"
|
|
||||||
align="center"
|
|
||||||
key="statusEnum"
|
|
||||||
prop="statusEnum"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
width="110"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="停用"
|
|
||||||
align="center"
|
|
||||||
key="statusEnum"
|
|
||||||
prop="statusEnum"
|
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="取消批次号管理"
|
label="产品特性"
|
||||||
align="center"
|
align="center"
|
||||||
key="statusEnum"
|
key="characteristic"
|
||||||
prop="statusEnum"
|
prop="characteristic"
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
width="120"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="用法煎法"
|
|
||||||
align="center"
|
|
||||||
key="statusEnum"
|
|
||||||
prop="statusEnum"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="剂量单位换算比"
|
|
||||||
align="center"
|
|
||||||
key="statusEnum"
|
|
||||||
prop="statusEnum"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
width="120"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="采购价"
|
|
||||||
align="center"
|
|
||||||
key="statusEnum"
|
|
||||||
prop="statusEnum"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="采购拆零价"
|
|
||||||
align="center"
|
|
||||||
key="statusEnum"
|
|
||||||
prop="statusEnum"
|
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
width="90"
|
width="90"
|
||||||
/>
|
/>
|
||||||
@@ -426,6 +577,8 @@
|
|||||||
<medicine-dialog
|
<medicine-dialog
|
||||||
ref="medicineRef"
|
ref="medicineRef"
|
||||||
:item="currentData"
|
:item="currentData"
|
||||||
|
:domainEnum="domainEnumOptions"
|
||||||
|
:status="statusFlagOptions"
|
||||||
@submit="submitForm"
|
@submit="submitForm"
|
||||||
/>
|
/>
|
||||||
<medicine-view-dialog
|
<medicine-view-dialog
|
||||||
@@ -433,49 +586,6 @@
|
|||||||
:item="viewData"
|
:item="viewData"
|
||||||
:viewFlg="viewFlg"
|
:viewFlg="viewFlg"
|
||||||
/>
|
/>
|
||||||
<!-- 添加或修改用户配置对话框 -->
|
|
||||||
<!-- <el-dialog :title="title" v-model="open" width="600px" append-to-body>
|
|
||||||
<el-form :model="form" :rules="rules" ref="medicationRef" label-width="80px">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="名称" prop="name">
|
|
||||||
<el-input
|
|
||||||
v-model="form.name"
|
|
||||||
placeholder="请输入名称"
|
|
||||||
:disabled="form.id != undefined"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="编码" prop="conditionCode">
|
|
||||||
<el-input
|
|
||||||
v-model="form.conditionCode"
|
|
||||||
placeholder="请输入编码"
|
|
||||||
:disabled="form.id != undefined"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="拼音" prop="pyStr">
|
|
||||||
<el-input v-model="form.pyStr" maxlength="11" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="停用" prop="status">
|
|
||||||
<el-checkbox v-model="form.status"></el-checkbox>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-form>
|
|
||||||
<template #footer>
|
|
||||||
<div class="dialog-footer">
|
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
||||||
<el-button @click="cancel">取 消</el-button>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</el-dialog> -->
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -486,6 +596,8 @@ import {
|
|||||||
addMedication,
|
addMedication,
|
||||||
getMedicationCategory,
|
getMedicationCategory,
|
||||||
getMedicationOne,
|
getMedicationOne,
|
||||||
|
startMedication,
|
||||||
|
stopMedication,
|
||||||
} from "./components/medicine";
|
} from "./components/medicine";
|
||||||
import medicineDialog from "./components/medicineDialog";
|
import medicineDialog from "./components/medicineDialog";
|
||||||
import medicineViewDialog from "./components/medicineViewDialog";
|
import medicineViewDialog from "./components/medicineViewDialog";
|
||||||
@@ -502,25 +614,27 @@ const medicationList = ref([]);
|
|||||||
const open = ref(false);
|
const open = ref(false);
|
||||||
const loading = ref(true);
|
const loading = ref(true);
|
||||||
const showSearch = ref(true);
|
const showSearch = ref(true);
|
||||||
const selectedData = ref([]); // 存储选择的行数据
|
const ids = ref([]); // 存储选择的行数据
|
||||||
const single = ref(true);
|
const single = ref(true);
|
||||||
const multiple = ref(true);
|
const multiple = ref(true);
|
||||||
const total = ref(0);
|
const total = ref(0);
|
||||||
const title = ref("");
|
const title = ref("");
|
||||||
const medicationOptions = ref(undefined);
|
const medicationOptions = ref(undefined);
|
||||||
|
const statusFlagOptions = ref(undefined);
|
||||||
|
const domainEnumOptions = ref(undefined);
|
||||||
// 使用 ref 定义当前药品数据
|
// 使用 ref 定义当前药品数据
|
||||||
const currentData = ref({});
|
const currentData = ref({});
|
||||||
// 使用 ref 定义当前查看药品数据
|
// 使用 ref 定义当前查看药品数据
|
||||||
const viewData = ref({});
|
const viewData = ref({});
|
||||||
// const initPassword = ref(undefined);
|
|
||||||
// const postOptions = ref([]);
|
// 使用 ref 定义当前查看药品数据
|
||||||
// const roleOptions = ref([]);
|
const viewFlg = ref(false);
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
form: {},
|
form: {},
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 50,
|
pageSize: 10,
|
||||||
searchKey: undefined, // 品名/商品名/英文品名/编码/拼音
|
searchKey: undefined, // 品名/商品名/英文品名/编码/拼音
|
||||||
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
||||||
ybMatchFlag: undefined, // 是否医保匹配(包括 1:是,0:否)
|
ybMatchFlag: undefined, // 是否医保匹配(包括 1:是,0:否)
|
||||||
@@ -549,7 +663,8 @@ const filterNode = (value, data) => {
|
|||||||
function getMedicationCategoryList() {
|
function getMedicationCategoryList() {
|
||||||
getMedicationCategory().then((response) => {
|
getMedicationCategory().then((response) => {
|
||||||
console.log(response, "response药品目录分类查询下拉树结构");
|
console.log(response, "response药品目录分类查询下拉树结构");
|
||||||
medicationOptions.value = response.data;
|
medicationOptions.value = response.data.medicationOptions;
|
||||||
|
statusFlagOptions.value = response.data.statusFlagOptions;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/** 查询病种目录列表 */
|
/** 查询病种目录列表 */
|
||||||
@@ -575,16 +690,11 @@ function handleQuery() {
|
|||||||
|
|
||||||
/** 启用按钮操作 */
|
/** 启用按钮操作 */
|
||||||
function handleStart() {
|
function handleStart() {
|
||||||
selectedData.value.forEach((item) => {
|
const startIds = ids.value;
|
||||||
item.statusEnum = "2";
|
|
||||||
});
|
|
||||||
const data = selectedData.value;
|
|
||||||
// selectedData
|
|
||||||
console.log(data, "data");
|
|
||||||
proxy.$modal
|
proxy.$modal
|
||||||
.confirm("是否确定启用数据!")
|
.confirm("是否确定启用数据!")
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return editMedication(data);
|
return startMedication(startIds);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
getList();
|
getList();
|
||||||
@@ -594,15 +704,12 @@ function handleStart() {
|
|||||||
}
|
}
|
||||||
/** 停用按钮操作 */
|
/** 停用按钮操作 */
|
||||||
function handleClose() {
|
function handleClose() {
|
||||||
selectedData.value.forEach((item) => {
|
const stopIds = ids.value;
|
||||||
item.statusEnum = "3";
|
|
||||||
});
|
|
||||||
const data = selectedData.value;
|
|
||||||
console.log(data, "data");
|
console.log(data, "data");
|
||||||
proxy.$modal
|
proxy.$modal
|
||||||
.confirm("是否确认停用数据!")
|
.confirm("是否确认停用数据!")
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return editMedication(data);
|
return stopMedication(stopIds);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
getList();
|
getList();
|
||||||
@@ -623,8 +730,7 @@ function handleExport() {
|
|||||||
|
|
||||||
/** 选择条数 */
|
/** 选择条数 */
|
||||||
function handleSelectionChange(selection) {
|
function handleSelectionChange(selection) {
|
||||||
console.log(selection, "selection");
|
ids.value = selection.map((item) => item.id);
|
||||||
selectedData.value = selection.map((item) => ({ ...item })); // 存储选择的行数据
|
|
||||||
single.value = selection.length != 1;
|
single.value = selection.length != 1;
|
||||||
multiple.value = !selection.length;
|
multiple.value = !selection.length;
|
||||||
}
|
}
|
||||||
@@ -660,6 +766,24 @@ function openAddMedicine() {
|
|||||||
/** 打开编辑弹窗 */
|
/** 打开编辑弹窗 */
|
||||||
function openEditMedicine(row) {
|
function openEditMedicine(row) {
|
||||||
currentData.value = JSON.parse(JSON.stringify(row));
|
currentData.value = JSON.parse(JSON.stringify(row));
|
||||||
|
currentData.value.activeFlag == 1
|
||||||
|
? (currentData.value.activeFlag = true)
|
||||||
|
: (currentData.value.activeFlag = false); //是否为活性
|
||||||
|
currentData.value.ybMatchFlag == 1
|
||||||
|
? (currentData.value.ybMatchFlag = true)
|
||||||
|
: (currentData.value.ybMatchFlag = false); //医保是否对码
|
||||||
|
currentData.value.skinTestFlag == 1
|
||||||
|
? (currentData.value.skinTestFlag = true)
|
||||||
|
: (currentData.value.skinTestFlag = false); //是否皮试
|
||||||
|
currentData.value.injectFlag == 1
|
||||||
|
? (currentData.value.injectFlag = true)
|
||||||
|
: (currentData.value.injectFlag = false); //是否为注射药物
|
||||||
|
currentData.value.restrictedFlag == 1
|
||||||
|
? (currentData.value.restrictedFlag = true)
|
||||||
|
: (currentData.value.restrictedFlag = false); //是否限制使用
|
||||||
|
currentData.value.childrenFlag == 1
|
||||||
|
? (currentData.value.childrenFlag = true)
|
||||||
|
: (currentData.value.childrenFlag = false); //儿童用药标志
|
||||||
console.log(currentData.value, "currentData");
|
console.log(currentData.value, "currentData");
|
||||||
// 确保子组件已经接收到最新的 props
|
// 确保子组件已经接收到最新的 props
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
@@ -679,22 +803,29 @@ function openViewMedicine(row) {
|
|||||||
getList();
|
getList();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/** 新增按钮操作 */
|
|
||||||
function handleAdd() {
|
|
||||||
reset();
|
|
||||||
open.value = true;
|
|
||||||
title.value = "新增";
|
|
||||||
}
|
|
||||||
/** 修改按钮操作 */
|
|
||||||
function handleUpdate(row) {
|
|
||||||
reset();
|
|
||||||
console.log(row, "row");
|
|
||||||
form.value = JSON.parse(JSON.stringify(row));
|
|
||||||
open.value = true;
|
|
||||||
title.value = "病种编辑";
|
|
||||||
}
|
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
function submitForm(formData) {
|
function submitForm(formData) {
|
||||||
|
formData.activeFlag == true
|
||||||
|
? (formData.activeFlag = 1)
|
||||||
|
: (formData.activeFlag = 0); //是否为活性
|
||||||
|
formData.ybMatchFlag == true
|
||||||
|
? (formData.ybMatchFlag = 1)
|
||||||
|
: (formData.ybMatchFlag = 0); //医保是否对码
|
||||||
|
formData.skinTestFlag == true
|
||||||
|
? (formData.skinTestFlag = 1)
|
||||||
|
: (formData.skinTestFlag = 0); //是否皮试
|
||||||
|
formData.injectFlag == true
|
||||||
|
? (formData.injectFlag = 1)
|
||||||
|
: (formData.injectFlag = 0); //是否为注射药物
|
||||||
|
formData.restrictedFlag == true
|
||||||
|
? (formData.restrictedFlag = 1)
|
||||||
|
: (formData.restrictedFlag = 0); //是否限制使用
|
||||||
|
formData.childrenFlag == true
|
||||||
|
? (formData.childrenFlag = 1)
|
||||||
|
: (formData.childrenFlag = 0); //儿童用药标志
|
||||||
|
formData.status == true ? (formData.status = 1) : (formData.status = 0); //启用状态
|
||||||
|
|
||||||
if (formData.id != undefined) {
|
if (formData.id != undefined) {
|
||||||
// form.value.status
|
// form.value.status
|
||||||
// ? (form.value.statusEnum = "3")
|
// ? (form.value.statusEnum = "3")
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ const data = reactive({
|
|||||||
form: {},
|
form: {},
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 50,
|
pageSize: 10,
|
||||||
searchKey: undefined, // 品名/商品名/英文品名/编码/拼音
|
searchKey: undefined, // 品名/商品名/英文品名/编码/拼音
|
||||||
},
|
},
|
||||||
rules: {},
|
rules: {},
|
||||||
|
|||||||
@@ -671,7 +671,7 @@ const data = reactive({
|
|||||||
form: {},
|
form: {},
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 50,
|
pageSize: 10,
|
||||||
// searchKey: undefined, // 品名/商品名/英文品名/编码/拼音
|
// searchKey: undefined, // 品名/商品名/英文品名/编码/拼音
|
||||||
// statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
// statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
||||||
// ybMatchFlag: undefined, // 是否医保匹配(包括 1:是,0:否)
|
// ybMatchFlag: undefined, // 是否医保匹配(包括 1:是,0:否)
|
||||||
|
|||||||
Reference in New Issue
Block a user