9/6 药品基础

20240912_adapter_z
wangwei 7 months ago
parent a7f6dda10a
commit f93ef3f269

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

Loading…
Cancel
Save