|
|
|
@ -14,12 +14,12 @@
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
:data="detailList"
|
|
|
|
|
style="width: 100%;"
|
|
|
|
|
border
|
|
|
|
|
key="3"
|
|
|
|
|
@current-change="handleDetail"
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
:data="detailList"
|
|
|
|
|
style="width: 100%;"
|
|
|
|
|
border
|
|
|
|
|
key="3"
|
|
|
|
|
@current-change="handleDetail"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column label="层级标识" prop="nameCode" show-overflow-tooltip width="160">
|
|
|
|
@ -73,19 +73,19 @@
|
|
|
|
|
@click.native="levelSave(scope.row)">保存
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
v-if="scope.$index != selectedIndex "
|
|
|
|
|
@click.stop="true"
|
|
|
|
|
@click.native="rowChange(scope.$index,scope.row)"
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
v-if="scope.$index != selectedIndex "
|
|
|
|
|
@click.stop="true"
|
|
|
|
|
@click.native="rowChange(scope.$index,scope.row)"
|
|
|
|
|
>编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.stop="true"
|
|
|
|
|
:disabled="scope.$index == selectedIndex || scope.row.id == null"
|
|
|
|
|
@click.native="deleteLevel(scope.$index, scope.row)"
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.stop="true"
|
|
|
|
|
:disabled="scope.$index == selectedIndex || scope.row.id == null"
|
|
|
|
|
@click.native="deleteLevel(scope.$index, scope.row)"
|
|
|
|
|
>删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
@ -221,25 +221,25 @@
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="药品价格:" prop="price">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
size="small"
|
|
|
|
|
placeholder="请输入药品价格"
|
|
|
|
|
type="number"
|
|
|
|
|
:precision="2"
|
|
|
|
|
:min="0"
|
|
|
|
|
v-model.number="newProductData.price"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
size="small"
|
|
|
|
|
placeholder="请输入药品价格"
|
|
|
|
|
type="number"
|
|
|
|
|
:precision="2"
|
|
|
|
|
:min="0"
|
|
|
|
|
v-model.number="newProductData.price"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="有效期:" prop="indate">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
v-model="newProductData.indate"
|
|
|
|
|
type="datetime"
|
|
|
|
|
format="yyyy 年 MM 月 dd 日 HH 点 mm 分 ss 秒"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
placeholder="选择有效期"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
v-model="newProductData.indate"
|
|
|
|
|
type="datetime"
|
|
|
|
|
format="yyyy 年 MM 月 dd 日 HH 点 mm 分 ss 秒"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
placeholder="选择有效期"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -282,12 +282,12 @@
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="收费项目编码:">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 65%"
|
|
|
|
|
size="small"
|
|
|
|
|
placeholder="选择项目收费编码"
|
|
|
|
|
v-model="newProductData.payFeeCode"
|
|
|
|
|
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-button type="primary" size="mini" style="margin-left: 10px" @click="selectPayFeecode">选入</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
@ -313,7 +313,7 @@
|
|
|
|
|
|
|
|
|
|
<el-collapse-item name="3">
|
|
|
|
|
<template slot="title">
|
|
|
|
|
<p class="form-title">参数设置</p>
|
|
|
|
|
<p class="form-title">流通使用参数设置</p>
|
|
|
|
|
</template>
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
@ -323,10 +323,10 @@
|
|
|
|
|
clearable
|
|
|
|
|
placeholder="请选择流通计量层级标识">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in detailList"
|
|
|
|
|
:key="item.nameCode"
|
|
|
|
|
:value="item.nameCode"
|
|
|
|
|
:label="item.nameCode">
|
|
|
|
|
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>
|
|
|
|
@ -340,10 +340,10 @@
|
|
|
|
|
clearable
|
|
|
|
|
placeholder="请选择流通计量层级标识">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in detailList"
|
|
|
|
|
:key="item.nameCode"
|
|
|
|
|
:value="item.nameCode"
|
|
|
|
|
:label="item.nameCode">
|
|
|
|
|
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>
|
|
|
|
@ -407,9 +407,9 @@
|
|
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-switch
|
|
|
|
|
v-model="status"
|
|
|
|
|
active-color="#13ce66"
|
|
|
|
|
inactive-color="#ff4949"
|
|
|
|
|
v-model="status"
|
|
|
|
|
active-color="#13ce66"
|
|
|
|
|
inactive-color="#ff4949"
|
|
|
|
|
>
|
|
|
|
|
</el-switch>
|
|
|
|
|
</el-col>
|
|
|
|
@ -423,23 +423,23 @@
|
|
|
|
|
</el-form>
|
|
|
|
|
<div style="text-align: center; margin-top: 20px;">
|
|
|
|
|
<el-button type="primary" @click="saveNewProduct" :loading="saveLoading">提交</el-button>
|
|
|
|
|
<el-button @click="closeAddDialog">取消</el-button>
|
|
|
|
|
<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
|
|
|
|
|
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"
|
|
|
|
|
:getData="getData"
|
|
|
|
|
>
|
|
|
|
|
</selectChargesProjectDialog>
|
|
|
|
|
<!--<div style="text-align: center;margin-top: 12px">-->
|
|
|
|
@ -511,7 +511,8 @@ export default {
|
|
|
|
|
useLeverCount: null,
|
|
|
|
|
distributeLevelCount: null,
|
|
|
|
|
useLevelUnit: null,
|
|
|
|
|
|
|
|
|
|
distributeLevel: null,
|
|
|
|
|
useLevel: null,
|
|
|
|
|
},
|
|
|
|
|
thirdSys: [],
|
|
|
|
|
classifyList: [],
|
|
|
|
@ -575,14 +576,14 @@ export default {
|
|
|
|
|
key: key
|
|
|
|
|
}
|
|
|
|
|
filterClassify(query)
|
|
|
|
|
.then(response => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.classifyList = response.data.list || []
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.classifyList = []
|
|
|
|
|
})
|
|
|
|
|
.then(response => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.classifyList = response.data.list || []
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.classifyList = []
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getYbHcData() {
|
|
|
|
|
let query = {
|
|
|
|
@ -633,8 +634,8 @@ export default {
|
|
|
|
|
for (let i = 0; i < this.detailList.length; i++) {
|
|
|
|
|
const item = this.detailList[i];
|
|
|
|
|
if (!validateItem(item, 'nameCode', '药品层级标识不能为空!') ||
|
|
|
|
|
!validateItem(item, 'packLevel', '包装级别不能为空') ||
|
|
|
|
|
!validateItem(item, 'packUnit', '层级单位不能为空')) {
|
|
|
|
|
!validateItem(item, 'packLevel', '包装级别不能为空') ||
|
|
|
|
|
!validateItem(item, 'packUnit', '层级单位不能为空')) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -769,14 +770,14 @@ export default {
|
|
|
|
|
id: this.newProductData.id
|
|
|
|
|
}
|
|
|
|
|
filterByUuid(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.detailList = response.data || [];
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.detailList = [];
|
|
|
|
|
});
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.detailList = response.data || [];
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.detailList = [];
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -784,6 +785,7 @@ export default {
|
|
|
|
|
const matchingItem = this.detailList.find(item => item.nameCode == val);
|
|
|
|
|
if (matchingItem) {
|
|
|
|
|
this.newProductData.distributeLevelUnit = matchingItem.packUnit;
|
|
|
|
|
this.newProductData.distributeLevel = matchingItem.packLevel
|
|
|
|
|
}
|
|
|
|
|
calculateDistCount(matchingItem).then((res) => {
|
|
|
|
|
this.newProductData = {
|
|
|
|
@ -798,6 +800,7 @@ export default {
|
|
|
|
|
const matchingItem = this.detailList.find(item => item.nameCode == val);
|
|
|
|
|
if (matchingItem) {
|
|
|
|
|
this.newProductData.useLevelUnit = matchingItem.packUnit;
|
|
|
|
|
this.newProductData.useLevel = matchingItem.packLevel;
|
|
|
|
|
}
|
|
|
|
|
calculateUseCount(matchingItem).then((res) => {
|
|
|
|
|
this.newProductData = {
|
|
|
|
@ -809,11 +812,11 @@ export default {
|
|
|
|
|
/**
|
|
|
|
|
* 选择收费项目
|
|
|
|
|
*/
|
|
|
|
|
selectPayFeecode(){
|
|
|
|
|
selectPayFeecode() {
|
|
|
|
|
this.tollProjectDialogVisible = true
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getData(data){
|
|
|
|
|
getData(data) {
|
|
|
|
|
this.tollProjectDialogVisible = false
|
|
|
|
|
this.newProductData.payFeeCode = data.medCatalogCode
|
|
|
|
|
}
|
|
|
|
|