|
|
@ -1,6 +1,12 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<el-form
|
|
|
|
|
|
|
|
:model="editQuery"
|
|
|
|
|
|
|
|
:rules="rules"
|
|
|
|
|
|
|
|
ref="editQuery"
|
|
|
|
|
|
|
|
border
|
|
|
|
|
|
|
|
label-width="130px"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
<el-table :data="sysList" style="width: 100%; margin-bottom: 8px" key="2" border>
|
|
|
|
<el-table :data="sysList" style="width: 100%; margin-bottom: 8px" key="2" border>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
@ -31,55 +37,296 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style=" float: right;
|
|
|
|
<div style=" float: right;
|
|
|
|
text-align: right;
|
|
|
|
text-align: right;
|
|
|
|
margin-bottom: 8px;">
|
|
|
|
margin-bottom: 8px;"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<!-- <el-button type="primary" size="mini" icon="search" @click="addDrugLevel"-->
|
|
|
|
|
|
|
|
<!-- style="text-align:right"-->
|
|
|
|
|
|
|
|
<!-- >新增药品层级-->
|
|
|
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
<el-button type="primary" size="mini" icon="search" @click="removeDi" v-if="productType!=1"
|
|
|
|
<el-button type="primary" size="mini" icon="search" @click="removeDi" v-if="productType!=1"
|
|
|
|
style="text-align:right">解绑DI器械信息
|
|
|
|
style="text-align:right">解绑DI器械信息
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<el-table v-loading="loading" :data="detailList" style="width: 100%; " border key="3" highlight-current-row>
|
|
|
|
<el-table
|
|
|
|
<el-table-column label="产品最小销售标识" prop="nameCode" show-overflow-tooltip></el-table-column>
|
|
|
|
v-loading="loading"
|
|
|
|
<el-table-column label="物资名称" prop="cpmctymc" show-overflow-tooltip></el-table-column>
|
|
|
|
:data="detailList"
|
|
|
|
<el-table-column label="包装级别" prop="packLevel" show-overflow-tooltip></el-table-column>
|
|
|
|
style="width: 100%;"
|
|
|
|
<el-table-column label="包装层级" prop="bzcj" show-overflow-tooltip></el-table-column>
|
|
|
|
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">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-input size="small" v-model="scope.row.nameCode" style="width: 100%;margin: 4px;"
|
|
|
|
|
|
|
|
:disabled="true"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<!-- 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="true"
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
:disabled="true"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<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="bhxjsl" show-overflow-tooltip width="100">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="下级标识" prop="bhxjcpbm" show-overflow-tooltip width="160">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-input size="small" v-model="scope.row.bhxjcpbm" style="width: 100%"
|
|
|
|
|
|
|
|
:disabled="scope.$index !== selectedIndex "
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="上级标识" prop="sjcpbm" show-overflow-tooltip width="160">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<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"
|
|
|
|
|
|
|
|
@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)"
|
|
|
|
|
|
|
|
>编辑
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--:disabled=" scope.row.id != null"-->
|
|
|
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
|
|
|
<!-- @click.stop="true"-->
|
|
|
|
|
|
|
|
<!-- @click.native="deleteLevel(scope.$index, scope.row)"-->
|
|
|
|
|
|
|
|
<!-- >删除-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|
|
|
<p class="form-title2">流通时采用的计量单位设置</p>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="计量单位:" prop="distributeLevel" label-width="160px">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-select v-model="editQuery.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: 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="distributeMaxLevel" label-width="160px">
|
|
|
|
|
|
|
|
<el-select v-model="editQuery.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="editQuery.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="editQuery.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-row :gutter="20">
|
|
|
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="拆包后可用时长(小时):" prop="unpackUseTime" label-width="160px">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-input v-model="editQuery.unpackUseTime" size="small" style="width: 90%"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
placeholder="请输入拆包后可用时长(小时)"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
<el-form :model="editQuery" :rules="rules" ref="editQuery" border label-width="120px" style="margin-top: 20px; ">
|
|
|
|
<!--<el-row type="flex" class="edit-row" style="margin-top: 20px">-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="12">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item label="收费项目编码:">-->
|
|
|
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
|
|
|
<!-- style="width: 60%"-->
|
|
|
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
|
|
|
<!-- placeholder="选择项目收费编码"-->
|
|
|
|
|
|
|
|
<!-- v-model="editQuery.payFeeCode"-->
|
|
|
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
|
|
|
<!-- <el-button type="primary" size="mini" style="margin-left: 10px" @click="selectPayFeecode">选入</el-button>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!--</el-row>-->
|
|
|
|
<el-row type="flex" class="edit-row">
|
|
|
|
<el-row type="flex" class="edit-row">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="商品条码:">
|
|
|
|
<el-form-item label="计量单位:">
|
|
|
|
<el-input style="width: 80%" size="small" splaceholder="请输入内容" v-model="editQuery.sptm"></el-input>
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="editQuery.measname"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="商品名称:">
|
|
|
|
<el-form-item label="生产企业:">
|
|
|
|
<el-input style="width: 80%" size="small" splaceholder="请输入内容" v-model="editQuery.spmc"></el-input>
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="editQuery.manufactory"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</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="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="计量单位:">
|
|
|
|
<el-form-item label="商品名称:">
|
|
|
|
<el-input style="width: 80%" size="small" splaceholder="请输入内容" v-model="editQuery.measname"></el-input>
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="editQuery.spmc"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="生产企业:">
|
|
|
|
<el-form-item label="产品描述:">
|
|
|
|
<el-input style="width: 80%" size="small" splaceholder="请输入内容" v-model="editQuery.manufactory"
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="editQuery.cpms"
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
|
</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="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="产品价格:">
|
|
|
|
<el-form-item label="物资所属分类:">
|
|
|
|
<el-input style="width: 80%" size="small" splaceholder="请输入内容" v-model="editQuery.price"></el-input>
|
|
|
|
<treeselect
|
|
|
|
|
|
|
|
v-model="editQuery.relCode"
|
|
|
|
|
|
|
|
:options="fromDeptOptions"
|
|
|
|
|
|
|
|
:normalizer="normalizer"
|
|
|
|
|
|
|
|
:show-count="true"
|
|
|
|
|
|
|
|
style="width: 80%;"
|
|
|
|
|
|
|
|
placeholder="选择物资所属分类"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="医保编码:">
|
|
|
|
<el-form-item label="医保编码:">
|
|
|
|
<el-input style="width: 80%"
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
style="width: 80%"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
v-model="editQuery.ybbm"
|
|
|
|
v-model="editQuery.ybbm"
|
|
|
@ -141,34 +388,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" class="edit-row">
|
|
|
|
<el-row type="flex" class="edit-row">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="采购类型">
|
|
|
|
<el-form-item label="库存积压预警数量:">
|
|
|
|
<el-select
|
|
|
|
<el-input
|
|
|
|
v-model="editQuery.purType"
|
|
|
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
style="width: 80%"
|
|
|
|
style="width: 80%"
|
|
|
|
>
|
|
|
|
size="small"
|
|
|
|
<el-option label="普通入账产品" :value="1"></el-option>
|
|
|
|
type="number"
|
|
|
|
<el-option label="预验收产品" :value="2"></el-option>
|
|
|
|
oninput="value=value.replace(/[^\d]/g,'')"
|
|
|
|
<el-option label="寄售产品" :value="3"></el-option>
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
</el-select>
|
|
|
|
v-model="editQuery.overStockNum"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="产品属性">
|
|
|
|
<el-form-item label="低库存预警数量:">
|
|
|
|
<el-select
|
|
|
|
<el-input
|
|
|
|
v-model="editQuery.attributeType"
|
|
|
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
style="width: 80%"
|
|
|
|
style="width: 80%"
|
|
|
|
>
|
|
|
|
size="small"
|
|
|
|
<el-option label="设备" :value="1"></el-option>
|
|
|
|
type="number"
|
|
|
|
<el-option label="耗材" :value="2"></el-option>
|
|
|
|
oninput="value=value.replace(/[^\d]/g,'')"
|
|
|
|
<el-option label="伴随服务费" :value="3"></el-option>
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="editQuery.lowStockNum"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row type="flex" class="edit-row">
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
|
|
<el-form-item label="近效期预警时间:">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
type="number"
|
|
|
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="editQuery.recentDateTime"
|
|
|
|
|
|
|
|
@change="handleChange"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
|
|
<el-form-item label="预警时间单位:">
|
|
|
|
|
|
|
|
<el-select v-model="editQuery.isDateBy" style="width: 80%" placeholder="状态" clearable>
|
|
|
|
|
|
|
|
<el-option label="天" :value="1"></el-option>
|
|
|
|
|
|
|
|
<el-option label="小时" :value="2"></el-option>
|
|
|
|
</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="12" v-if="productRemarkSet.remarkEnable1">
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable1">
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle1+':'">
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle1+':'">
|
|
|
@ -226,46 +493,27 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable6">
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable6">
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle6+':'">
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle6+':'">
|
|
|
|
<el-select
|
|
|
|
<el-input
|
|
|
|
v-model="editQuery.basicPrductRemak6"
|
|
|
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
style="width: 80%"
|
|
|
|
style="width: 80%"
|
|
|
|
>
|
|
|
|
size="small"
|
|
|
|
<el-option label="扣费" value="1"></el-option>
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
<el-option label="不扣费" value="0"></el-option>
|
|
|
|
v-model="editQuery.basicPrductRemak6"
|
|
|
|
</el-select>
|
|
|
|
></el-input>
|
|
|
|
</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="12" v-if="productRemarkSet.remarkEnable7">
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable7">
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle7+':'">
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle7+':'">
|
|
|
|
<el-select
|
|
|
|
<el-input
|
|
|
|
v-model="editQuery.basicPrductRemak7"
|
|
|
|
|
|
|
|
filterable
|
|
|
|
|
|
|
|
remote
|
|
|
|
|
|
|
|
clearable="true"
|
|
|
|
|
|
|
|
reserve-keyword
|
|
|
|
|
|
|
|
placeholder="请选择物资类别"
|
|
|
|
|
|
|
|
:remote-method="findThrTypeMethod"
|
|
|
|
|
|
|
|
style="width: 80%"
|
|
|
|
style="width: 80%"
|
|
|
|
>
|
|
|
|
size="small"
|
|
|
|
<el-option
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
v-for="item in thrTypeOptions"
|
|
|
|
v-model="editQuery.basicPrductRemak7"
|
|
|
|
:key="item.code"
|
|
|
|
></el-input>
|
|
|
|
:label="item.name"
|
|
|
|
|
|
|
|
:value="item.code"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable8">
|
|
|
|
<el-row type="flex" class="edit-row">
|
|
|
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable8==true && editQuery.basicPrductRemak6=='1'">
|
|
|
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle8+':'">
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle8+':'">
|
|
|
|
<el-select
|
|
|
|
<el-select
|
|
|
|
v-model="editQuery.basicPrductRemak8"
|
|
|
|
v-model="editQuery.basicPrductRemak8"
|
|
|
@ -275,6 +523,7 @@
|
|
|
|
reserve-keyword
|
|
|
|
reserve-keyword
|
|
|
|
placeholder="请选择物价类别"
|
|
|
|
placeholder="请选择物价类别"
|
|
|
|
:remote-method="findHsflMethod"
|
|
|
|
:remote-method="findHsflMethod"
|
|
|
|
|
|
|
|
:loading="loading"
|
|
|
|
style="width: 80%"
|
|
|
|
style="width: 80%"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
@ -284,62 +533,14 @@
|
|
|
|
:value="item.hsbm"
|
|
|
|
:value="item.hsbm"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<span style="float: left">{{ item.hsmc }}</span>
|
|
|
|
<span style="float: left">{{ item.hsmc }}</span>
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.hsbm }}</span>
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</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>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="产品描述:">
|
|
|
|
<el-form-item label="分类编码:" prop="require">
|
|
|
|
<el-input style="width: 80%" size="small" splaceholder="请输入内容" v-model="editQuery.cpms"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
|
|
<el-form-item
|
|
|
|
|
|
|
|
label="是否可集采:"
|
|
|
|
|
|
|
|
prop="spUse"
|
|
|
|
|
|
|
|
class="query-form-item"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-radio-group v-model="editQuery.groupBuy">
|
|
|
|
|
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
|
|
|
|
|
<el-radio :label="false">否</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row type="flex" class="edit-row">
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
|
|
<el-form-item
|
|
|
|
|
|
|
|
label="耗材类别:"
|
|
|
|
|
|
|
|
prop="hcType"
|
|
|
|
|
|
|
|
class="query-form-item"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-radio-group v-model="editQuery.hcType">
|
|
|
|
|
|
|
|
<el-radio :label=1>高值耗材</el-radio>
|
|
|
|
|
|
|
|
<el-radio :label=2>普通耗材</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
|
|
<el-form-item
|
|
|
|
|
|
|
|
label="是否组套:"
|
|
|
|
|
|
|
|
prop="isStack"
|
|
|
|
|
|
|
|
class="query-form-item"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-radio-group v-model="editQuery.isStack">
|
|
|
|
|
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
|
|
|
|
|
<el-radio :label="false">否</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row type="flex" class="edit-row">
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
|
|
<el-form-item label="分类编码:"
|
|
|
|
|
|
|
|
prop="flbm"
|
|
|
|
|
|
|
|
class="query-form-item">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
<el-select
|
|
|
|
v-model="editQuery.flbm"
|
|
|
|
v-model="editQuery.flbm"
|
|
|
|
filterable
|
|
|
|
filterable
|
|
|
@ -360,26 +561,64 @@
|
|
|
|
<span>{{ item.name }}</span>
|
|
|
|
<span>{{ item.name }}</span>
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
|
|
<el-form-item label="包装规格:">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="editQuery.bzgg"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row class="edit-row">
|
|
|
|
<el-row>
|
|
|
|
<el-button-group style="display: flex">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-button type="primary" @click.native="submitUpload()" style="margin: 0 60px 10px auto; height: 35px"
|
|
|
|
<el-form-item label="工位预警数量:">
|
|
|
|
:loading="loading"
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
type="number"
|
|
|
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
|
|
|
min="1"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="editQuery.workPlaceCount"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <div style="text-align: center; margin-top: 12px">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
icon="search"
|
|
|
|
|
|
|
|
@click="onAddSubmit(false)"
|
|
|
|
|
|
|
|
:loading="onAddLoading"
|
|
|
|
>提交
|
|
|
|
>提交
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</el-button-group>
|
|
|
|
<el-button
|
|
|
|
</el-row>
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
icon="search"
|
|
|
|
|
|
|
|
@click="cancelSubmit"
|
|
|
|
|
|
|
|
>取消
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
title="耗材字典-从指定系统添加器械信息"
|
|
|
|
title="耗材字典-从指定系统添加器械信息"
|
|
|
|
:visible.sync="selectErpDialogVisible"
|
|
|
|
:visible.sync="selectErpDialogVisible"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
width="80%"
|
|
|
|
width="85%"
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
v-if="selectErpDialogVisible"
|
|
|
|
v-if="selectErpDialogVisible"
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -390,11 +629,58 @@
|
|
|
|
:isImport="isImport"
|
|
|
|
:isImport="isImport"
|
|
|
|
:data="thisData"
|
|
|
|
:data="thisData"
|
|
|
|
:defaultSys="defaultSys"
|
|
|
|
:defaultSys="defaultSys"
|
|
|
|
@closeUdi="closeUdi2"
|
|
|
|
@closeUdi="closeUdi"
|
|
|
|
:supEnable="false"
|
|
|
|
:supEnable="false"
|
|
|
|
></selectErp>
|
|
|
|
></selectErp>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
|
|
title="耗材字典-编辑"
|
|
|
|
|
|
|
|
:visible.sync="editSingleDiDialogVisible"
|
|
|
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
|
|
|
width="45%"
|
|
|
|
|
|
|
|
v-if="editSingleDiDialogVisible"
|
|
|
|
|
|
|
|
append-to-body
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<product-single-edit
|
|
|
|
|
|
|
|
:editQuery="editSingleFormat"
|
|
|
|
|
|
|
|
></product-single-edit>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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="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>-->
|
|
|
|
|
|
|
|
<selectmedicalSuppliesDialog
|
|
|
|
|
|
|
|
:getData="getData"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</selectmedicalSuppliesDialog>
|
|
|
|
|
|
|
|
<!--<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>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -406,6 +692,8 @@ import selectErp from "./udiInfoselectErpUdi";
|
|
|
|
import selectUdiVersion from '@/views/basic/product/UdiinfoSelectVersion'
|
|
|
|
import selectUdiVersion from '@/views/basic/product/UdiinfoSelectVersion'
|
|
|
|
import {getHslbs, getThrProductType} from "@/api/thrsys/thrHsfl";
|
|
|
|
import {getHslbs, getThrProductType} from "@/api/thrsys/thrHsfl";
|
|
|
|
import {filterClassify} from '@/api/purchase/classifyCode'
|
|
|
|
import {filterClassify} from '@/api/purchase/classifyCode'
|
|
|
|
|
|
|
|
import { calculateDistCount } from '@/api/basic/product/drugUdiinfos'
|
|
|
|
|
|
|
|
import { levelByUuid } from '@/api/basic/product/udiInfo'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'productEdit',
|
|
|
|
name: 'productEdit',
|
|
|
@ -433,7 +721,7 @@ export default {
|
|
|
|
sysList: {},
|
|
|
|
sysList: {},
|
|
|
|
relId: null,
|
|
|
|
relId: null,
|
|
|
|
defaultSys: null,
|
|
|
|
defaultSys: null,
|
|
|
|
detailList: {},
|
|
|
|
// detailList: {},
|
|
|
|
isImport: null,
|
|
|
|
isImport: null,
|
|
|
|
thisData: {
|
|
|
|
thisData: {
|
|
|
|
nameCode: null,
|
|
|
|
nameCode: null,
|
|
|
@ -455,10 +743,62 @@ export default {
|
|
|
|
hsflOptions: [],
|
|
|
|
hsflOptions: [],
|
|
|
|
thrTypeOptions: [],
|
|
|
|
thrTypeOptions: [],
|
|
|
|
classifyList: [],
|
|
|
|
classifyList: [],
|
|
|
|
|
|
|
|
selectedIndex: null,
|
|
|
|
|
|
|
|
detailList: [
|
|
|
|
|
|
|
|
// 初始化一个空对象或包含默认值的对象
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
productId: null,
|
|
|
|
|
|
|
|
nameCode: '',
|
|
|
|
|
|
|
|
packLevel: null,
|
|
|
|
|
|
|
|
bhxjsl: null,
|
|
|
|
|
|
|
|
isDisabled: false,
|
|
|
|
|
|
|
|
isUpDisabled: true,
|
|
|
|
|
|
|
|
rowDisabled: false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
levelUnitList: [],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
distributeLevelDiChange(val) {
|
|
|
|
|
|
|
|
const matchingItem = this.detailList.find(item => item.nameCode == val);
|
|
|
|
|
|
|
|
if (matchingItem) {
|
|
|
|
|
|
|
|
this.editQuery.distributeLevelUnit = matchingItem.packUnit;
|
|
|
|
|
|
|
|
this.editQuery.distributeLevel = matchingItem.packLevel
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
calculateDistCount(matchingItem).then((res) => {
|
|
|
|
|
|
|
|
this.editQuery = {
|
|
|
|
|
|
|
|
...this.editQuery,
|
|
|
|
|
|
|
|
distributeLevelCount: res.data.distributeLevelCount,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
getDiLevel() {
|
|
|
|
|
|
|
|
let query = {
|
|
|
|
|
|
|
|
id: this.editQuery.rlId
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
classifyChange() {
|
|
|
|
classifyChange() {
|
|
|
|
this.classifySearch(this.editQuery.flbm)
|
|
|
|
this.classifySearch(this.editQuery.flbm)
|
|
|
|
let item = this.classifyList.find(item => item.code == this.editQuery.flbm)
|
|
|
|
let item = this.classifyList.find(item => item.code == this.editQuery.flbm)
|
|
|
@ -689,6 +1029,7 @@ export default {
|
|
|
|
selectErp
|
|
|
|
selectErp
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
|
|
|
|
this.getDiLevel()
|
|
|
|
this.getThirdSysDetail();
|
|
|
|
this.getThirdSysDetail();
|
|
|
|
var ttquery = {
|
|
|
|
var ttquery = {
|
|
|
|
id: this.editQuery.rlId,
|
|
|
|
id: this.editQuery.rlId,
|
|
|
@ -721,6 +1062,27 @@ export default {
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
.vue-treeselect--searchable:not(.vue-treeselect--disabled) .vue-treeselect__value-container {
|
|
|
|
|
|
|
|
cursor: text;
|
|
|
|
|
|
|
|
width: 500px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.form-title2 {
|
|
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
font-family: Noto Sans SC;
|
|
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
color: #303133;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.el-divider {
|
|
|
|
|
|
|
|
margin: 6px 0px 8px 0px;
|
|
|
|
|
|
|
|
background: 0 0;
|
|
|
|
|
|
|
|
border-top: 1px solid #E6EBF5;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.sptext {
|
|
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|