9/6 药品基础

20240912_adapter_z
wangwei 7 months ago
parent a7f6dda10a
commit f93ef3f269

@ -83,7 +83,7 @@
<el-table-column label="下级标识" prop="bhxjcpbm" show-overflow-tooltip width="160">
<template slot-scope="scope">
<el-input size="small" v-model="scope.row.bhxjcpbm" style="width: 100%"
:disabled="scope.$index !== selectedIndex"
:disabled="scope.$index !== selectedIndex "
></el-input>
</template>
</el-table-column>
@ -97,14 +97,14 @@
</el-table-column>
<el-table-column label="操作" width="180px" fixed="right">
<template slot-scope="scope">
<el-button type="text" size="small" v-if="scope.$index == selectedIndex" @click.stop="true"
<el-button type="text" size="small" v-if="scope.$index == selectedIndex " @click.stop="true"
@click.native="levelSave(scope.row)"
>保存
</el-button>
<el-button
type="text"
size="small"
v-if="scope.$index != selectedIndex "
v-if="scope.$index != selectedIndex "
@click.stop="true"
@click.native="rowChange(scope.$index,scope.row)"
>编辑
@ -125,6 +125,23 @@
<template slot="title">
<p class="form-title">基本信息</p>
</template>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="医保编码:" prop="ybbm">
<el-input style="width: 90%" size="small" placeholder="请输入医保编码"
v-model.trim="newProductData.ybbm"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="商品条码:" prop="sptm">
<el-input style="width: 90%" size="small" placeholder="请输入药品商品条码"
v-model.trim="newProductData.sptm"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="药品通用名称:" prop="cpmctymc">
@ -227,16 +244,6 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="医保编码:" prop="ybbm">
<el-input style="width: 90%" size="small" placeholder="请输入医保编码"
v-model.trim="newProductData.ybbm"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="医保分类:" prop="medicareType">
<el-select v-model="newProductData.medicareType" style="width: 90%" placeholder="选择医保分类"
@ -248,6 +255,11 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="药品价格:" prop="price">
<el-input
@ -259,6 +271,13 @@
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="存储条件:" prop="ylqxzcrbarmc">
<el-input style="width: 90%" size="small" placeholder="请输入存储条件"
v-model.trim="newProductData.storageCondition"
></el-input>
</el-form-item>
</el-col>
</el-row>
<!--<el-row type="flex">-->
@ -277,13 +296,7 @@
<!-- </el-col>-->
<!--</el-row>-->
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="存储条件:" prop="ylqxzcrbarmc">
<el-input style="width: 90%" size="small" placeholder="请输入存储条件"
v-model.trim="newProductData.storageCondition"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="运输条件:" prop="transportCondition">
<el-input style="width: 90%" size="small" placeholder="请输入运输条件"
@ -291,8 +304,6 @@
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="统一社会信用号:" prop="tyshxydm">
<el-input style="width: 90%" size="small" placeholder="请输入统一社会信用号"
@ -300,6 +311,9 @@
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="药品状态:" prop="majorStatus">
<el-select v-model="newProductData.majorStatus" style="width: 90%" placeholder="选择药品状态" >
@ -309,7 +323,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row type="flex" class="edit-row">
<!--<el-row type="flex" class="edit-row">-->
<!--<el-col :span="11">-->
<!-- <el-form-item label="收费项目编码:">-->
<!-- <el-input-->
@ -330,8 +344,8 @@
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--</el-col>-->
</el-row>
<el-row type="flex" class="edit-row">
<!--</el-row>-->
<!--<el-row type="flex" class="edit-row">-->
<!--<el-col :span="11">-->
<!-- <el-form-item label="是否自动赋码:" prop="autoCode">-->
<!-- <el-select v-model="newProductData.autoCode" style="width: 90%" placeholder="是否自动赋码" clearable>-->
@ -340,7 +354,7 @@
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--</el-col>-->
</el-row>
<!--</el-row>-->
<el-row type="flex">
<el-col :span="23" class="el-col">
<el-form-item label="产品描述:" prop="cpms">
@ -597,7 +611,8 @@ export default {
useLevelUnit: null,
distributeLevel: null,
useLevel: null,
majorStatus: 1
majorStatus: 1,
physicType: 3
},
thirdSys: [],
@ -649,6 +664,7 @@ export default {
status: false,
rowDisabled: false,
selectedIndex: null,
isSave: true,
loading: false,
tollProjectDialogVisible: false,
sysList: [],
@ -702,10 +718,14 @@ export default {
},
saveNewProduct() {
if (!this.isSave){
return this.$message.error("请先保存药品层级")
}
this.addProductDialogVisible = false
this.newProductData.registerNo = this.newProductData.zczbhhzbapzbh
this.newProductData.splitEnable = true
this.newProductData.autoCode = true
this.newProductData.updateLevelDrugRequests = this.detailList
//
if (this.type == 1) {
this.$refs['dataForm'].validate((valid) => {
@ -743,6 +763,7 @@ export default {
}
this.saveLoading = true
addDrug(this.newProductData).then((res) => {
this.saveLoading = false
if (res.code == 20000) {
@ -816,12 +837,14 @@ export default {
updateLevelDrug(editQuery).then(res => {
this.saveLoading = false
if (res.code == 20000) {
this.isSave = true
this.$message.success('保存成功!')
this.selectedIndex = null
if (this.newProductData.id != null) {
this.getDetailList()
}
} else {
this.isSave = true
this.$message.error(res.message)
}
})
@ -841,10 +864,12 @@ export default {
isUpDisabled: true
})
this.selectedIndex = this.detailList.length - 1
this.isSave = false
},
rowChange(index, val) {
this.selectedIndex = index
this.isSave = false
},
deleteLevel(index, row) {
@ -857,11 +882,13 @@ export default {
let params = { nameCode: row.nameCode }
delDrugLevel(params).then((res) => {
if (res.code === 20000) {
this.isSave = true
this.$message.success('删除成功')
this.getDetailList()
}
})
} else {
this.isSave = true
this.detailList.splice(index, 1)
this.$message.success('删除成功')
}

Loading…
Cancel
Save