|
|
|
@ -167,8 +167,8 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="包装单位:" prop="packUnit">
|
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入包装单位"
|
|
|
|
|
<el-form-item label="最小包装单位:" prop="packUnit">
|
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入最小包装单位"
|
|
|
|
|
v-model.trim="newProductData.packUnit"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -183,8 +183,8 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="制剂单位:" prop="prepnUnit">
|
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入制剂单位"
|
|
|
|
|
<el-form-item label="剂型:" prop="prepnUnit">
|
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入剂型"
|
|
|
|
|
v-model.trim="newProductData.prepnUnit"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -316,7 +316,7 @@
|
|
|
|
|
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<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="选择药品状态">
|
|
|
|
|
<el-option label="停用" :value="0"></el-option>
|
|
|
|
|
<el-option label="在用" :value="1"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
@ -324,36 +324,36 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<!--<el-row type="flex" class="edit-row">-->
|
|
|
|
|
<!--<el-col :span="11">-->
|
|
|
|
|
<!-- <el-form-item label="收费项目编码:">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- style="width: 65%"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- placeholder="选择项目收费编码"-->
|
|
|
|
|
<!-- v-model="newProductData.payFeeCode"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- <el-button type="primary" size="mini" style="margin-left: 10px" @click="selectPayFeecode">选入-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
<!--<el-col :span="11">-->
|
|
|
|
|
<!-- <el-form-item label="是否拆零:" prop="splitEnable">-->
|
|
|
|
|
<!-- <el-select v-model="newProductData.splitEnable" style="width: 90%" placeholder="是否拆零" clearable>-->
|
|
|
|
|
<!-- <el-option label="是" :value="true"></el-option>-->
|
|
|
|
|
<!-- <el-option label="否" :value="false"></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
<!--<el-col :span="11">-->
|
|
|
|
|
<!-- <el-form-item label="收费项目编码:">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- style="width: 65%"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- placeholder="选择项目收费编码"-->
|
|
|
|
|
<!-- v-model="newProductData.payFeeCode"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- <el-button type="primary" size="mini" style="margin-left: 10px" @click="selectPayFeecode">选入-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
<!--<el-col :span="11">-->
|
|
|
|
|
<!-- <el-form-item label="是否拆零:" prop="splitEnable">-->
|
|
|
|
|
<!-- <el-select v-model="newProductData.splitEnable" style="width: 90%" placeholder="是否拆零" clearable>-->
|
|
|
|
|
<!-- <el-option label="是" :value="true"></el-option>-->
|
|
|
|
|
<!-- <el-option label="否" :value="false"></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
<!--</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>-->
|
|
|
|
|
<!-- <el-option label="是" :value="true"></el-option>-->
|
|
|
|
|
<!-- <el-option label="否" :value="false"></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
<!--<el-col :span="11">-->
|
|
|
|
|
<!-- <el-form-item label="是否自动赋码:" prop="autoCode">-->
|
|
|
|
|
<!-- <el-select v-model="newProductData.autoCode" style="width: 90%" placeholder="是否自动赋码" clearable>-->
|
|
|
|
|
<!-- <el-option label="是" :value="true"></el-option>-->
|
|
|
|
|
<!-- <el-option label="否" :value="false"></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
<!--</el-row>-->
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="23" class="el-col">
|
|
|
|
@ -546,8 +546,8 @@ import {
|
|
|
|
|
import {
|
|
|
|
|
getYbHcflDetail, removeRl, thirdSysDetail
|
|
|
|
|
} from '@/api/basic/product/udiRelevance'
|
|
|
|
|
import { filterClassify } from '@/api/purchase/classifyCode'
|
|
|
|
|
import { filterByUuid } from '@/api/basic/product/udiInfo'
|
|
|
|
|
import {filterClassify} from '@/api/purchase/classifyCode'
|
|
|
|
|
import {filterByUuid} from '@/api/basic/product/udiInfo'
|
|
|
|
|
import selectChargesProjectDialog from './selectChargesProjectDialog'
|
|
|
|
|
import chooseHouseDrug from './chooseHouseDrug'
|
|
|
|
|
|
|
|
|
@ -584,7 +584,7 @@ export default {
|
|
|
|
|
required: true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
components: { selectChargesProjectDialog, chooseHouseDrug },
|
|
|
|
|
components: {selectChargesProjectDialog, chooseHouseDrug},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
ybHcflDetail: {},
|
|
|
|
@ -621,45 +621,45 @@ export default {
|
|
|
|
|
activeNames: ['0', '1', '2'],
|
|
|
|
|
formRules: {
|
|
|
|
|
cpmctymc: [
|
|
|
|
|
{ required: true, message: '请输入药品通用名', trigger: 'blur' }
|
|
|
|
|
{required: true, message: '请输入药品通用名', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
prepnSpec: [
|
|
|
|
|
{ required: true, message: '请输入制剂规格', trigger: 'blur' }
|
|
|
|
|
{required: true, message: '请输入制剂规格', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
packUnit: [
|
|
|
|
|
{ required: true, message: '请输入包装单位', trigger: 'blur' }
|
|
|
|
|
{required: true, message: '请输入包装单位', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
prepnUnit: [
|
|
|
|
|
{ required: true, message: '请输入制剂单位', trigger: 'blur' }
|
|
|
|
|
{required: true, message: '请输入制剂单位', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
// packRatio: [
|
|
|
|
|
// {required: true, message: '请输入包装比例', trigger: 'blur'}
|
|
|
|
|
// ],
|
|
|
|
|
packMatrial: [
|
|
|
|
|
{ required: true, message: '请输入包装材质', trigger: 'blur' }
|
|
|
|
|
{required: true, message: '请输入包装材质', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
zczbhhzbapzbh: [
|
|
|
|
|
{ required: true, message: '请输入批准文号', trigger: 'blur' }
|
|
|
|
|
{required: true, message: '请输入批准文号', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
manufactory: [
|
|
|
|
|
{ required: true, message: '生产企业不能为空', trigger: 'blur' }
|
|
|
|
|
{required: true, message: '生产企业不能为空', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
physicType: [
|
|
|
|
|
{ required: true, message: '药品类型不能为空', trigger: 'blur' }
|
|
|
|
|
{required: true, message: '药品类型不能为空', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
ybbm: [
|
|
|
|
|
{ required: true, message: '医保编码不能为空', trigger: 'blur' }
|
|
|
|
|
{required: true, message: '医保编码不能为空', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
price: [
|
|
|
|
|
{ required: true, message: '药品价格不能为空', trigger: 'blur' }
|
|
|
|
|
{required: true, message: '药品价格不能为空', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
majorStatus: [
|
|
|
|
|
{ required: true, message: '请选择药品状态', trigger: 'blur' }
|
|
|
|
|
{required: true, message: '请选择药品状态', trigger: 'blur'}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
detailList: [
|
|
|
|
|
// 初始化一个空对象或包含默认值的对象
|
|
|
|
|
{ nameCode: '', packLevel: null, bhxjsl: null, isDisabled: false, isUpDisabled: true, rowDisabled: false }
|
|
|
|
|
{nameCode: '', packLevel: null, bhxjsl: null, isDisabled: false, isUpDisabled: true, rowDisabled: false}
|
|
|
|
|
],
|
|
|
|
|
status: false,
|
|
|
|
|
rowDisabled: false,
|
|
|
|
@ -718,7 +718,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
saveNewProduct() {
|
|
|
|
|
if (!this.isSave){
|
|
|
|
|
if (!this.isSave) {
|
|
|
|
|
return this.$message.error("请先保存药品层级")
|
|
|
|
|
}
|
|
|
|
|
this.addProductDialogVisible = false
|
|
|
|
@ -879,7 +879,7 @@ export default {
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
if (row.id != null) {
|
|
|
|
|
let params = { nameCode: row.nameCode }
|
|
|
|
|
let params = {nameCode: row.nameCode}
|
|
|
|
|
delDrugLevel(params).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.isSave = true
|
|
|
|
|