|
|
|
@ -451,38 +451,7 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</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-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-row>-->
|
|
|
|
|
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="23" class="el-col">
|
|
|
|
|
<el-form-item label="产品描述:" prop="cpms">
|
|
|
|
@ -494,120 +463,6 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-collapse-item name="3">-->
|
|
|
|
|
<!-- <template slot="title">-->
|
|
|
|
|
<!-- <p class="form-title">流通使用参数设置</p>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- <el-row :gutter="20">-->
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
<!-- <el-form-item label="流通计量层级标识:" prop="distributeLevelDi" label-width="160px">-->
|
|
|
|
|
<!-- <el-select v-model="newProductData.distributeLevelDi" size="small" style="width: 90%"-->
|
|
|
|
|
<!-- @change="distributeLevelDiChange"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- placeholder="请选择流通计量层级标识"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in detailList"-->
|
|
|
|
|
<!-- :key="item.nameCode"-->
|
|
|
|
|
<!-- :value="item.nameCode"-->
|
|
|
|
|
<!-- :label="item.nameCode"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <span style="float: left">{{ item.nameCode }}</span>-->
|
|
|
|
|
<!-- <span style="float: right; color: #8492a6; font-size: 13px">{{ item.packLevel }}</span>-->
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
<!-- <el-form-item label="使用计量层级标识:" prop="useLevelDi" label-width="160px">-->
|
|
|
|
|
<!-- <el-select v-model="newProductData.useLevelDi" size="small" style="width: 90%"-->
|
|
|
|
|
<!-- @change="useLevelDiChange"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- disabled-->
|
|
|
|
|
<!-- placeholder="请选择流通计量层级标识"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in detailList"-->
|
|
|
|
|
<!-- :key="item.nameCode"-->
|
|
|
|
|
<!-- :value="item.nameCode"-->
|
|
|
|
|
<!-- :label="item.nameCode"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <span style="float: left">{{ item.nameCode }}</span>-->
|
|
|
|
|
<!-- <span style="float: right; color: #8492a6; font-size: 13px">{{ item.packLevel }}</span>-->
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
<!-- <el-form-item label="流通计量层级单位:" prop="distributeLevelUnit" label-width="160px">-->
|
|
|
|
|
<!-- <el-input style="width: 90%" size="small" placeholder="请输入流通计量层级单位"-->
|
|
|
|
|
<!-- disabled-->
|
|
|
|
|
<!-- v-model="newProductData.distributeLevelUnit"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
<!-- <el-form-item label="使用计量层级单位:" prop="useLevelUnit" label-width="160px">-->
|
|
|
|
|
<!-- <el-input style="width: 90%" size="small" placeholder="请输入使用计量层级标识"-->
|
|
|
|
|
<!-- disabled-->
|
|
|
|
|
<!-- v-model.trim="newProductData.useLevelUnit"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
<!-- <el-form-item label="流通时含计量单元数量:" prop="distributeLevelCount" label-width="160px">-->
|
|
|
|
|
<!-- <el-input style="width: 90%" size="small" placeholder="请输入流通时包含计量单元的数量"-->
|
|
|
|
|
<!-- v-model.trim="newProductData.distributeLevelCount"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
<!-- <el-form-item label="使用时含计量单元数量:" prop="useLeverCount" label-width="160px">-->
|
|
|
|
|
<!-- <el-input style="width: 90%" size="small" placeholder="请输入使用时包含计量单元的数量"-->
|
|
|
|
|
<!-- v-model.trim="newProductData.useLeverCount"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<!-- </el-collapse-item>-->
|
|
|
|
|
<!--<el-collapse-item name="4">-->
|
|
|
|
|
<!-- <template slot="title">-->
|
|
|
|
|
<!-- <p class="form-title">高级设置</p>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- <el-row type="flex">-->
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
<!-- <span>参数</span>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-divider direction="vertical"></el-divider>-->
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
<!-- <span>设置</span>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-divider direction="vertical"></el-divider>-->
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
<!-- <span>参数设置说明</span>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<!-- <el-row type="flex">-->
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
<!-- <span class="sptext">是否禁用</span>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-divider direction="vertical"></el-divider>-->
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
<!-- <el-switch-->
|
|
|
|
|
<!-- v-model="status"-->
|
|
|
|
|
<!-- active-color="#13ce66"-->
|
|
|
|
|
<!-- inactive-color="#ff4949"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </el-switch>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-divider direction="vertical"></el-divider>-->
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
<!-- <span class="sptext">禁用后该药品将无法扫码使用</span>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<!--</el-collapse-item>-->
|
|
|
|
|
</el-collapse>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div style="text-align: center; margin-top: 20px;">
|
|
|
|
@ -615,32 +470,6 @@
|
|
|
|
|
<el-button @click="closeAddDialog">取消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--<el-dialog-->
|
|
|
|
|
<!-- title="收费项目选入"-->
|
|
|
|
|
<!-- :visible.sync="tollProjectDialogVisible"-->
|
|
|
|
|
<!-- :close-on-click-modal="false"-->
|
|
|
|
|
<!-- :close-on-press-escape="false"-->
|
|
|
|
|
<!-- width="70%"-->
|
|
|
|
|
<!-- v-if="tollProjectDialogVisible"-->
|
|
|
|
|
<!-- append-to-body-->
|
|
|
|
|
<!-->-->
|
|
|
|
|
<!-- <!–<product-single-edit–>-->
|
|
|
|
|
<!-- <!– :editQuery="editSingleFormat"–>-->
|
|
|
|
|
<!-- <!–></product-single-edit>–>-->
|
|
|
|
|
<!-- <selectChargesProjectDialog-->
|
|
|
|
|
<!-- :getData="getData"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </selectChargesProjectDialog>-->
|
|
|
|
|
<!-- <!–<div style="text-align: center;margin-top: 12px">–>-->
|
|
|
|
|
<!-- <!– <el-button type="primary" size="small" icon="search" @click="onAddSingleSubmit(false)" :loading="addLoading"–>-->
|
|
|
|
|
<!-- <!– >提交–>-->
|
|
|
|
|
<!-- <!– </el-button>–>-->
|
|
|
|
|
<!-- <!– <el-button type="primary" size="small" icon="search" @click="cancelDialog"–>-->
|
|
|
|
|
<!-- <!– >取消–>-->
|
|
|
|
|
<!-- <!– </el-button>–>-->
|
|
|
|
|
<!-- <!–</div>–>-->
|
|
|
|
|
<!--</el-dialog>-->
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="药品字典-从指定系统添加药品字典"
|
|
|
|
|
:visible.sync="chooseHouseDrugVisible"
|
|
|
|
@ -1035,6 +864,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.setDefaultLevel()
|
|
|
|
|
this.$refs['dataForm'].validate((valid) => {
|
|
|
|
|
if (!valid) {
|
|
|
|
|
return this.$message.error('请补充必要数据')
|
|
|
|
@ -1080,6 +910,11 @@ export default {
|
|
|
|
|
this.$message.error('层级单位不能为空')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isBlank(row.bhxjsl)) {
|
|
|
|
|
this.$message.error('请填写下级数量')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let editQuery = {
|
|
|
|
|
nameCode: row.nameCode,
|
|
|
|
|
packLevel: row.packLevel,
|
|
|
|
@ -1252,6 +1087,24 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//设置层级
|
|
|
|
|
setDefaultLevel(){
|
|
|
|
|
//判断流通 最大层级
|
|
|
|
|
if (this.newProductData.distributeMaxLevel == null){
|
|
|
|
|
let levelUnit = this.levelUnitList[this.levelUnitList.length - 1];
|
|
|
|
|
this.newProductData.distributeMaxLevel = levelUnit.packLevel
|
|
|
|
|
}
|
|
|
|
|
// 判断使用 采集最大层级
|
|
|
|
|
if (this.newProductData.useMaxLevel == null){
|
|
|
|
|
//获取获取第一个 如果packUnit且为null的话就设置第二个
|
|
|
|
|
let levelUnit = this.levelUnitList[0];
|
|
|
|
|
if (isBlank(levelUnit.packUnit)){
|
|
|
|
|
levelUnit = this.levelUnitList[1]
|
|
|
|
|
}
|
|
|
|
|
this.newProductData.useMaxLevel = levelUnit.packLevel
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//获取层级标识
|
|
|
|
|
getDetailList() {
|
|
|
|
|
if (this.newProductData.uuid != null) {
|
|
|
|
|