11/12 界面优化1.0

dev_unify
wangwei 8 months ago
parent 3350e1f6a6
commit e9d527c063

@ -66,7 +66,8 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.diType" <el-select v-model="scope.row.diType"
:disabled="scope.$index !== selectedIndex" :disabled="scope.$index !== selectedIndex"
style="width: 90%" placeholder="选择标识类型" clearable> style="width: 90%" placeholder="选择标识类型" clearable
>
<el-option label="最小销售标识" :value="1"></el-option> <el-option label="最小销售标识" :value="1"></el-option>
<!-- <el-option label="使用单元标识" :value="2"></el-option>--> <!-- <el-option label="使用单元标识" :value="2"></el-option>-->
<!-- <el-option label="本体标识" :value="3"></el-option>--> <!-- <el-option label="本体标识" :value="3"></el-option>-->
@ -524,6 +525,7 @@
:close-on-press-escape="false" :close-on-press-escape="false"
width="85%" width="85%"
v-if="selectDrugLevelVisible" v-if="selectDrugLevelVisible"
@close="closeSelectDrugLevelVisible"
> >
<el-form :model="filterQueryDrugLevel" class="query-form" label-width="100px"> <el-form :model="filterQueryDrugLevel" class="query-form" label-width="100px">
@ -598,7 +600,7 @@ import {
getDrugLevelList, getDrugLevelListBycode getDrugLevelList, getDrugLevelListBycode
} from '@/api/basic/product/drugUdiinfos' } from '@/api/basic/product/drugUdiinfos'
import { getCodeRelDetail } from '@/api/basic/product/udiRelevance' import { getCodeRelDetail } from '@/api/basic/product/udiRelevance'
import {isBlank} from "@/utils/strUtil"; import { isBlank } from '@/utils/strUtil'
import { import {
getYbDrugDetail, removeRl, thirdSysDetail getYbDrugDetail, removeRl, thirdSysDetail
@ -648,12 +650,12 @@ export default {
ybDrugDetail: {}, ybDrugDetail: {},
productData: {}, productData: {},
filterQueryDrugLevel: { filterQueryDrugLevel: {
nameCode: "", nameCode: '',
cpmctymc: "", cpmctymc: '',
page: 1, page: 1,
limit: 20, limit: 20,
total: 0, total: 0,
approvalNum:"", approvalNum: ''
}, },
newProductData: { newProductData: {
cpmctymc: null, cpmctymc: null,
@ -803,7 +805,7 @@ export default {
this.newProductData.zczbhhzbapzbh = this.ybDrugDetail.approvalCode this.newProductData.zczbhhzbapzbh = this.ybDrugDetail.approvalCode
this.newProductData.cpmctymc = this.ybDrugDetail.registeredProductName this.newProductData.cpmctymc = this.ybDrugDetail.registeredProductName
this.newProductData.spmc = this.ybDrugDetail.goodsName this.newProductData.spmc = this.ybDrugDetail.goodsName
this.newProductData.bzgg = this.ybDrugDetail.factor + this.ybDrugDetail.minUnit + "/" + this.ybDrugDetail.unit this.newProductData.bzgg = this.ybDrugDetail.factor + this.ybDrugDetail.minUnit + '/' + this.ybDrugDetail.unit
this.newProductData.matrial = this.ybDrugDetail.materialName this.newProductData.matrial = this.ybDrugDetail.materialName
this.newProductData.packMatrial = this.ybDrugDetail.materialName this.newProductData.packMatrial = this.ybDrugDetail.materialName
this.newProductData.packUnit = this.ybDrugDetail.unit this.newProductData.packUnit = this.ybDrugDetail.unit
@ -811,12 +813,12 @@ export default {
this.newProductData.manufactory = this.ybDrugDetail.companyNameSc this.newProductData.manufactory = this.ybDrugDetail.companyNameSc
this.newProductData.prepnUnit = this.ybDrugDetail.realityMedicinemodel this.newProductData.prepnUnit = this.ybDrugDetail.realityMedicinemodel
if (this.ybDrugDetail.productInsuranceType != "" && this.ybDrugDetail.productInsuranceType != null) { if (this.ybDrugDetail.productInsuranceType != '' && this.ybDrugDetail.productInsuranceType != null) {
if ("甲" == this.ybDrugDetail.productInsuranceType) { if ('甲' == this.ybDrugDetail.productInsuranceType) {
this.newProductData.medicareType = 1 this.newProductData.medicareType = 1
} else if ("乙" == this.ybDrugDetail.productInsuranceType) { } else if ('乙' == this.ybDrugDetail.productInsuranceType) {
this.newProductData.medicareType = 2 this.newProductData.medicareType = 2
} else if ("丙" == this.ybDrugDetail.productInsuranceType) { } else if ('丙' == this.ybDrugDetail.productInsuranceType) {
this.newProductData.medicareType = 3 this.newProductData.medicareType = 3
} else { } else {
this.newProductData.medicareType = null this.newProductData.medicareType = null
@ -835,7 +837,7 @@ export default {
}, },
saveNewProduct() { saveNewProduct() {
if (!this.isSave) { if (!this.isSave) {
return this.$message.error("请先保存药品层级") return this.$message.error('请先保存药品层级')
} }
this.addProductDialogVisible = false this.addProductDialogVisible = false
this.newProductData.registerNo = this.newProductData.zczbhhzbapzbh this.newProductData.registerNo = this.newProductData.zczbhhzbapzbh
@ -969,15 +971,15 @@ export default {
this.$message.success('保存成功!') this.$message.success('保存成功!')
this.selectedIndex = null this.selectedIndex = null
this.getDetailList() this.getDetailList()
this.getDiLevel(); this.getDiLevel()
// //
if (!this.$isNotBlank(this.newProductData.sptm) && !this.$isNotBlank(this.newProductData.ybbm)) { if (!this.$isNotBlank(this.newProductData.sptm) && !this.$isNotBlank(this.newProductData.ybbm)) {
getCodeRelDetail({ drugCode: row.nameCode }).then((response) => { getCodeRelDetail({ drugCode: row.nameCode }).then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
if (response.data != null && response.data.length > 0) { if (response.data != null && response.data.length > 0) {
this.newProductData.sptm = response.data[0].sptm; this.newProductData.sptm = response.data[0].sptm
this.newProductData.ybbm = response.data[0].ybbm; this.newProductData.ybbm = response.data[0].ybbm
this.getYbDrugData() this.getYbDrugData()
} }
} }
@ -1014,14 +1016,14 @@ export default {
if (response.data.length > 0) { if (response.data.length > 0) {
response.data.forEach(item => { response.data.forEach(item => {
// //
let parts = item.bzgg.split('/'); let parts = item.bzgg.split('/')
// ':' // ':'
const ratioParts = item.packRatio.split(':'); const ratioParts = item.packRatio.split(':')
let selectedValue; let selectedValue
if (item.packLevel >= 0 && item.packLevel < ratioParts.length) { if (item.packLevel >= 0 && item.packLevel < ratioParts.length) {
selectedValue = ratioParts[item.packLevel]; selectedValue = ratioParts[item.packLevel]
} else { } else {
selectedValue = null; // selectedValue = null //
} }
let editQuery = { let editQuery = {
@ -1062,6 +1064,24 @@ export default {
this.selectedIndex = this.detailList.length - 1 this.selectedIndex = this.detailList.length - 1
this.isSave = false this.isSave = false
this.selectDrugLevelVisible = false this.selectDrugLevelVisible = false
this.filterQueryDrugLevel = {
nameCode: '',
cpmctymc: '',
page: 1,
limit: 20,
total: 0,
approvalNum: ''
}
},
closeSelectDrugLevelVisible(){
this.filterQueryDrugLevel = {
nameCode: '',
cpmctymc: '',
page: 1,
limit: 20,
total: 0,
approvalNum: ''
}
}, },
handleCurrentChange() { handleCurrentChange() {
this.selectDrugLevel() this.selectDrugLevel()
@ -1082,7 +1102,6 @@ export default {
rowChange(index, val) { rowChange(index, val) {
if (this.editRowSwitch == true) { if (this.editRowSwitch == true) {
this.$message.error('请先保存当前产品标识编辑') this.$message.error('请先保存当前产品标识编辑')
return return
@ -1122,7 +1141,6 @@ export default {
}) })
}, },
// //
// setDefaultLevel(){ // setDefaultLevel(){
// // // //
@ -1147,7 +1165,7 @@ export default {
uuid: this.newProductData.uuid, uuid: this.newProductData.uuid,
id: this.newProductData.id, id: this.newProductData.id,
nameCode: this.newProductData.nameCode, nameCode: this.newProductData.nameCode,
productType: this.newProductData.productsType, productType: this.newProductData.productsType
} }
this.loading = true this.loading = true
filterByUuid(query) filterByUuid(query)
@ -1207,10 +1225,10 @@ export default {
}, },
findMaxLevelObject() { findMaxLevelObject() {
this.maxLevel = 1; this.maxLevel = 1
for (const obj of this.levelUnitList) { for (const obj of this.levelUnitList) {
if (obj.packLevel > this.maxLevel) { if (obj.packLevel > this.maxLevel) {
this.maxLevel = Number(obj.packLevel); this.maxLevel = Number(obj.packLevel)
} }
} }
}, },
@ -1301,12 +1319,12 @@ export default {
this.getThirdSysDetail() this.getThirdSysDetail()
}, },
handleInput(index, value, type) { handleInput(index, value, type) {
const intValue = parseInt(value, 10); const intValue = parseInt(value, 10)
// //
if (type == 1) { if (type == 1) {
this.$set(this.detailList[index], 'packLevel', intValue); this.$set(this.detailList[index], 'packLevel', intValue)
} else { } else {
this.$set(this.detailList[index], 'bhxjsl', intValue); this.$set(this.detailList[index], 'bhxjsl', intValue)
} }
} }

@ -695,6 +695,7 @@
:close-on-press-escape="false" :close-on-press-escape="false"
width="85%" width="85%"
v-if="selectDrugLevelVisible" v-if="selectDrugLevelVisible"
@close="closeSelectDrugLevelVisible"
> >
<el-form :model="filterQueryDrugLevel" class="query-form" label-width="100px"> <el-form :model="filterQueryDrugLevel" class="query-form" label-width="100px">
@ -1236,6 +1237,24 @@ export default {
this.selectedIndex = this.detailList.length - 1 this.selectedIndex = this.detailList.length - 1
this.isSave = false this.isSave = false
this.selectDrugLevelVisible = false this.selectDrugLevelVisible = false
this.filterQueryDrugLevel = {
nameCode: '',
cpmctymc: '',
page: 1,
limit: 20,
total: 0,
approvalNum: ''
}
},
closeSelectDrugLevelVisible(){
this.filterQueryDrugLevel = {
nameCode: '',
cpmctymc: '',
page: 1,
limit: 20,
total: 0,
approvalNum: ''
}
}, },
addDrugLevel() { addDrugLevel() {
this.detailList.push({ this.detailList.push({

Loading…
Cancel
Save