|
|
|
@ -53,12 +53,24 @@
|
|
|
|
|
<el-table-column label="层级标识" prop="nameCode" show-overflow-tooltip width="160">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input size="small" v-model="scope.row.nameCode" style="width: 100%;margin: 4px;"
|
|
|
|
|
|
|
|
|
|
:disabled="scope.$index !== selectedIndex"
|
|
|
|
|
></el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="包装级别" prop="packLevel" show-overflow-tooltip width="160">
|
|
|
|
|
<!-- 1.主标识,2,使用单元标识,3.本体标识,4,包装标识-->
|
|
|
|
|
<el-table-column label="标识类型" prop="diType" show-overflow-tooltip width="160">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-select v-model="scope.row.diType"
|
|
|
|
|
:disabled="scope.$index !== selectedIndex"
|
|
|
|
|
style="width: 90%" placeholder="选择标识类型" clearable>
|
|
|
|
|
<el-option label="最小销售标识" :value="1"></el-option>
|
|
|
|
|
<!-- <el-option label="使用单元标识" :value="2"></el-option>-->
|
|
|
|
|
<!-- <el-option label="本体标识" :value="3"></el-option>-->
|
|
|
|
|
<el-option label="外包装标识" :value="4"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="包装级别" prop="packLevel" show-overflow-tooltip width="100">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input size="small" v-model="scope.row.packLevel" style="width: 100%"
|
|
|
|
|
type="number"
|
|
|
|
@ -66,16 +78,24 @@
|
|
|
|
|
></el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="层级单位" prop="packUnit" show-overflow-tooltip width="100">
|
|
|
|
|
<el-table-column label="层级单位" prop="packUnit" show-overflow-tooltip width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input size="small" v-model="scope.row.packUnit" style="width: 100%"
|
|
|
|
|
:disabled="scope.$index !== selectedIndex"
|
|
|
|
|
></el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="上级标识" prop="sjcpbm" show-overflow-tooltip width="160">
|
|
|
|
|
<el-table-column label="下级数量" prop="bhxjsl" show-overflow-tooltip width="100">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input size="small" v-model="scope.row.sjcpbm" style="width: 100%"
|
|
|
|
|
<el-input size="small" v-model="scope.row.bhxjsl" style="width: 100%"
|
|
|
|
|
type="number"
|
|
|
|
|
:disabled="scope.$index !== selectedIndex"
|
|
|
|
|
></el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="下级单位" prop="xjdw" show-overflow-tooltip width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input size="small" v-model="scope.row.xjdw" style="width: 100%"
|
|
|
|
|
:disabled="scope.$index !== selectedIndex"
|
|
|
|
|
></el-input>
|
|
|
|
|
</template>
|
|
|
|
@ -87,14 +107,14 @@
|
|
|
|
|
></el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="下级数量" prop="bhxjsl" show-overflow-tooltip width="100">
|
|
|
|
|
<el-table-column label="上级标识" prop="sjcpbm" show-overflow-tooltip width="160">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input size="small" v-model="scope.row.bhxjsl" style="width: 100%"
|
|
|
|
|
type="number"
|
|
|
|
|
<el-input size="small" v-model="scope.row.sjcpbm" style="width: 100%"
|
|
|
|
|
:disabled="scope.$index !== selectedIndex"
|
|
|
|
|
></el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</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"
|
|
|
|
@ -122,6 +142,96 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<p class="form-title2">流通时采用的计量单位设置</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.distributeLevel" size="small" style="width: 90%"
|
|
|
|
|
clearable
|
|
|
|
|
@change="distributeLevelDiChange"
|
|
|
|
|
placeholder="请选择计量单位"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in levelUnitList"
|
|
|
|
|
:key="item.packLevel"
|
|
|
|
|
:value="item.packLevel"
|
|
|
|
|
:label="item.packUnit"
|
|
|
|
|
>
|
|
|
|
|
<span style="float: left">{{ item.packLevel }}</span>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.packUnit }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="允许采集的最大层级:" prop="distributeMaxLevel" label-width="160px">
|
|
|
|
|
<el-select v-model="newProductData.distributeMaxLevel" size="small" style="width: 90%"
|
|
|
|
|
clearable
|
|
|
|
|
placeholder="请选择允许采集的最大层级"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in levelUnitList"
|
|
|
|
|
:key="item.packLevel"
|
|
|
|
|
:value="item.packLevel"
|
|
|
|
|
:label="item.packLevel"
|
|
|
|
|
>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span>
|
|
|
|
|
<span style="float: left">层级:{{ item.packLevel }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-divider></el-divider>
|
|
|
|
|
<template>
|
|
|
|
|
<p class="form-title2">使用时采用的计量单位设置</p>
|
|
|
|
|
</template>
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="计量单位:" prop="useLevel" label-width="160px">
|
|
|
|
|
|
|
|
|
|
<el-select v-model="newProductData.useLevel" size="small" style="width: 90%"
|
|
|
|
|
clearable
|
|
|
|
|
@change="useLevelDiChange"
|
|
|
|
|
placeholder="请选择计量单位"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in levelUnitList"
|
|
|
|
|
:key="item.packLevel"
|
|
|
|
|
:value="item.packLevel"
|
|
|
|
|
:label="item.packUnit"
|
|
|
|
|
>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span>
|
|
|
|
|
<span style="float: left">层级:{{ item.packLevel }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="允许采集的最大层级:" prop="useMaxLevel" label-width="160px">
|
|
|
|
|
<el-select v-model="newProductData.useMaxLevel" size="small" style="width: 90%"
|
|
|
|
|
clearable
|
|
|
|
|
placeholder="请选择允许采集的最大层级"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in levelUnitList"
|
|
|
|
|
:key="item.packLevel"
|
|
|
|
|
:value="item.packLevel"
|
|
|
|
|
:label="item.packLevel"
|
|
|
|
|
>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span>
|
|
|
|
|
<span style="float: left">层级:{{ item.packLevel }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
<el-collapse-item name="2">
|
|
|
|
|
<template slot="title">
|
|
|
|
@ -370,83 +480,83 @@
|
|
|
|
|
</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-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-row>-->
|
|
|
|
|
<!-- </el-collapse-item>-->
|
|
|
|
|
<el-collapse-item name="4">
|
|
|
|
|
<template slot="title">
|
|
|
|
|
<p class="form-title">高级设置</p>
|
|
|
|
@ -552,7 +662,7 @@ import {
|
|
|
|
|
getYbDrugDetail, removeRl, thirdSysDetail
|
|
|
|
|
} from '@/api/basic/product/udiRelevance'
|
|
|
|
|
import {filterClassify} from '@/api/purchase/classifyCode'
|
|
|
|
|
import {filterByUuid} from '@/api/basic/product/udiInfo'
|
|
|
|
|
import {filterByUuid, levelByUuid} from '@/api/basic/product/udiInfo'
|
|
|
|
|
import selectChargesProjectDialog from './selectChargesProjectDialog'
|
|
|
|
|
import chooseHouseDrug from './chooseHouseDrug'
|
|
|
|
|
|
|
|
|
@ -607,7 +717,7 @@ export default {
|
|
|
|
|
status: false,
|
|
|
|
|
relId: null,
|
|
|
|
|
drugLevelLists: [],
|
|
|
|
|
productId:null,
|
|
|
|
|
productId: null,
|
|
|
|
|
|
|
|
|
|
useLevelDi: null,
|
|
|
|
|
distributeLevelDi: null,
|
|
|
|
@ -665,7 +775,15 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
detailList: [
|
|
|
|
|
// 初始化一个空对象或包含默认值的对象
|
|
|
|
|
{productId: null ,nameCode: '', packLevel: null, bhxjsl: null, isDisabled: false, isUpDisabled: true, rowDisabled: false}
|
|
|
|
|
{
|
|
|
|
|
productId: null,
|
|
|
|
|
nameCode: '',
|
|
|
|
|
packLevel: null,
|
|
|
|
|
bhxjsl: null,
|
|
|
|
|
isDisabled: false,
|
|
|
|
|
isUpDisabled: true,
|
|
|
|
|
rowDisabled: false
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
status: false,
|
|
|
|
|
rowDisabled: false,
|
|
|
|
@ -676,7 +794,9 @@ export default {
|
|
|
|
|
sysList: [],
|
|
|
|
|
chooseHouseDrugVisible: false,
|
|
|
|
|
isImport: false,
|
|
|
|
|
defaultSys: null
|
|
|
|
|
defaultSys: null,
|
|
|
|
|
levelUnitList: [],
|
|
|
|
|
maxLevel: 1,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
@ -837,7 +957,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
//层级保存
|
|
|
|
|
levelSave(row) {
|
|
|
|
|
|
|
|
|
|
if (isBlank(row.nameCode)) {
|
|
|
|
|
this.$message.error('层级标识不能为空')
|
|
|
|
|
return
|
|
|
|
@ -850,7 +969,6 @@ export default {
|
|
|
|
|
this.$message.error('层级单位不能为空')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
console.log("djfjfjjf",row.productId)
|
|
|
|
|
let editQuery = {
|
|
|
|
|
nameCode: row.nameCode,
|
|
|
|
|
packLevel: row.packLevel,
|
|
|
|
@ -860,7 +978,9 @@ export default {
|
|
|
|
|
bhxjsl: row.bhxjsl,
|
|
|
|
|
relId: this.newProductData.id,
|
|
|
|
|
uuid: this.newProductData.uuid,
|
|
|
|
|
productId:row.productId
|
|
|
|
|
productId: row.productId,
|
|
|
|
|
diType: row.diType,
|
|
|
|
|
xjdw: row.xjdw
|
|
|
|
|
}
|
|
|
|
|
updateLevelDrug(editQuery).then(res => {
|
|
|
|
|
this.saveLoading = false
|
|
|
|
@ -869,6 +989,7 @@ export default {
|
|
|
|
|
this.$message.success('保存成功!')
|
|
|
|
|
this.selectedIndex = null
|
|
|
|
|
this.getDetailList()
|
|
|
|
|
this.getDiLevel();
|
|
|
|
|
} else {
|
|
|
|
|
this.isSave = true
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
@ -973,6 +1094,32 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getDiLevel() {
|
|
|
|
|
let query = {
|
|
|
|
|
id: this.relId
|
|
|
|
|
}
|
|
|
|
|
this.loading = true
|
|
|
|
|
levelByUuid(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.levelUnitList = response.data || []
|
|
|
|
|
this.findMaxLevelObject()
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.levelUnitList = []
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
findMaxLevelObject() {
|
|
|
|
|
this.maxLevel = 1;
|
|
|
|
|
for (const obj of this.levelUnitList) {
|
|
|
|
|
if (obj.packLevel > this.maxLevel) {
|
|
|
|
|
this.maxLevel = Number(obj.packLevel);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 选择收费项目
|
|
|
|
|
*/
|
|
|
|
@ -1070,11 +1217,11 @@ export default {
|
|
|
|
|
} else {
|
|
|
|
|
this.status = false
|
|
|
|
|
}
|
|
|
|
|
this.getDiLevel()
|
|
|
|
|
this.getDetailList()
|
|
|
|
|
this.getThirdSysDetail()
|
|
|
|
|
} else {
|
|
|
|
|
this.selectedIndex = 0
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
directives: {
|
|
|
|
@ -1103,4 +1250,11 @@ export default {
|
|
|
|
|
padding-top: 17px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-title2 {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-family: Noto Sans SC;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #303133;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|