|
|
@@ -43,7 +43,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="pyCode" label="拼音码" width="150" />
|
|
|
<el-table-column prop="dCode" label="五笔码" width="150" />
|
|
|
- <el-table-column fixed="right" label="操作" min-width="400" width="400" center>
|
|
|
+ <el-table-column fixed="right" label="操作" min-width="540" width="540" center>
|
|
|
<template #default="scope">
|
|
|
<el-button type="primary" size="small" v-if="!scope.row.isEdit"
|
|
|
@click="editYpDict(scope.row)">编辑</el-button>
|
|
|
@@ -51,6 +51,10 @@
|
|
|
v-if="!scope.row.isEdit" @click="tempPurchase(scope.row)">临购</el-button>
|
|
|
<el-button :type="scope.row.jbFlag === '1' ? 'primary' : 'info'" size="small"
|
|
|
v-if="!scope.row.isEdit" @click="baseDrugConfirm(scope.row)">基本</el-button>
|
|
|
+ <el-button :type="scope.row.highWarningFlag === '1' ? 'primary' : 'info'" size="small"
|
|
|
+ v-if="!scope.row.isEdit" @click="highWarningDrug(scope.row)">高警示</el-button>
|
|
|
+ <el-button :type="scope.row.winningBidderFlag === '1' ? 'primary' : 'info'" size="small"
|
|
|
+ v-if="!scope.row.isEdit" @click="winningBidderDrug(scope.row)">带量中选</el-button>
|
|
|
<el-button type="primary" size="small" v-if="!scope.row.isEdit"
|
|
|
@click="editYpDictName(scope.row)">别名</el-button>
|
|
|
<el-button :type="scope.row.delFlag === '1' ? 'info' : 'primary'" size="small"
|
|
|
@@ -97,7 +101,9 @@ import {
|
|
|
updateYkYpStopOrUsed,
|
|
|
updateYpJbFlag,
|
|
|
updateYpStopOrUsed,
|
|
|
- updateYpTempPurchase
|
|
|
+ updateYpTempPurchase,
|
|
|
+ updateYpHighWarning,
|
|
|
+ updateYpWinningBidder
|
|
|
} from '@/api/yp-dict/yp-dict-info.js'
|
|
|
import YpZdDict from '@/views/yp-dict/YpZdDict.vue'
|
|
|
import YpPrintName from '@/views/yp-dict/YpPrintName.vue'
|
|
|
@@ -389,6 +395,76 @@ const baseDrugConfirm = (row) => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+// 高警示药品标志维护
|
|
|
+const highWarningDrug = (row) => {
|
|
|
+ let flag
|
|
|
+ let title
|
|
|
+ if ('1' === row.highWarningFlag) {
|
|
|
+ flag = ''
|
|
|
+ title = '请确认是否取消高警示药品<span style="color:#d12020;">' + row.name + '</span>?'
|
|
|
+ } else {
|
|
|
+ flag = '1'
|
|
|
+ title = '请确认是否将<span style="color:#d12020;">' + row.name + '</span>设置成高警示药品?'
|
|
|
+ }
|
|
|
+
|
|
|
+ ElMessageBox.confirm(title, {
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning',
|
|
|
+ distinguishCancelAndClose: true,
|
|
|
+ dangerouslyUseHTMLString: true
|
|
|
+ }).then(() => {
|
|
|
+ updateYpHighWarning(row.code, row.serial, flag).then((res) => {
|
|
|
+ ElMessage({
|
|
|
+ type: "success",
|
|
|
+ message: res.cg,
|
|
|
+ duration: 2500,
|
|
|
+ showClose: true,
|
|
|
+ });
|
|
|
+ queryYpDict()
|
|
|
+ })
|
|
|
+ }).catch((action) => {
|
|
|
+ if (action === 'cancel') {
|
|
|
+ queryYpDict()
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 国家组织药品集中采购中标药品---“带量中选”维护
|
|
|
+const winningBidderDrug = (row) => {
|
|
|
+ let flag
|
|
|
+ let title
|
|
|
+ if ('1' === row.winningBidderFlag) {
|
|
|
+ flag = ''
|
|
|
+ title = '请确认是否取消国家组织药品集中采购中标药品<span style="color:#d12020;">' + row.name + '</span>?'
|
|
|
+ } else {
|
|
|
+ flag = '1'
|
|
|
+ title = '请确认是否将<span style="color:#d12020;">' + row.name + '</span>设置成国家组织药品集中采购中标药品?'
|
|
|
+ }
|
|
|
+
|
|
|
+ ElMessageBox.confirm(title, {
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning',
|
|
|
+ distinguishCancelAndClose: true,
|
|
|
+ dangerouslyUseHTMLString: true
|
|
|
+ }).then(() => {
|
|
|
+ updateYpWinningBidder(row.code, row.serial, flag).then((res) => {
|
|
|
+ ElMessage({
|
|
|
+ type: "success",
|
|
|
+ message: res.cg,
|
|
|
+ duration: 2500,
|
|
|
+ showClose: true,
|
|
|
+ });
|
|
|
+ queryYpDict()
|
|
|
+ })
|
|
|
+ }).catch((action) => {
|
|
|
+ if (action === 'cancel') {
|
|
|
+ queryYpDict()
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
// 导出药品账页信息
|
|
|
const exportData = () => {
|
|
|
if (drugDictData.value.length === 0) {
|