|
|
|
@ -199,158 +199,169 @@
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="使用周期(天):" label-width="140px">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
size="small"
|
|
|
|
|
type="number"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
v-model="editQuery.useExpireTime"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="库存积压预警数量:" label-width="140px">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
size="small"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
:disabled="this.useNumEnable"
|
|
|
|
|
type="number"
|
|
|
|
|
v-model="editQuery.overStockNum"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="低库存预警数量:" label-width="140px" >
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
size="small"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
type="number"
|
|
|
|
|
v-model="editQuery.lowStockNum"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-collapse v-model="activeNames">
|
|
|
|
|
<el-collapse-item title="高级设置" name="1" class="titel">
|
|
|
|
|
<div style="width: 85%;margin: 0 auto">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="库存积压预警数量:" label-width="150px">
|
|
|
|
|
<el-input style="width: 80%" size="small" splaceholder="请输入内容" :disabled="this.useNumEnable" type="number" v-model="editQuery.overStockNum"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="低库存预警数量:" label-width="150px" >
|
|
|
|
|
<el-input style="width: 80%" size="small" splaceholder="请输入内容" type="number" v-model="editQuery.lowStockNum"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="最小包装可使用次数:" label-width="140px">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
size="small"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
:disabled="this.useNumEnable"
|
|
|
|
|
type="number"
|
|
|
|
|
v-model="editQuery.useNum"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="近效期预警时间:" label-width="140px">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
size="small"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
type="number"
|
|
|
|
|
v-model="editQuery.recentDateTime"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="预警时间格式:" label-width="100px" style="margin-left: -25px">
|
|
|
|
|
<el-radio-group v-model="editQuery.isDateBy">
|
|
|
|
|
<el-radio :label=1>天</el-radio>
|
|
|
|
|
<el-radio :label=2>小时</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="最小包装可使用次数:" label-width="150px">
|
|
|
|
|
<el-input style="width: 80%" size="small" splaceholder="请输入内容" :disabled="this.useNumEnable" type="number"v-model="editQuery.useNum"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="近效期预警时间:" label-width="150px">
|
|
|
|
|
<el-input style="width: 80%" size="small" splaceholder="请输入内容" type="number" v-model="editQuery.recentDateTime"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" class="edit-row" >
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="使用周期(天):" label-width="150px">
|
|
|
|
|
<el-input style="width: 80%" size="small" type="number" splaceholder="请输入内容" v-model="editQuery.useExpireTime"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col>
|
|
|
|
|
<div style="margin-bottom: 18px;margin-left: 25px">
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="是否禁用:" label-width="125px" >
|
|
|
|
|
<el-radio-group v-model="editQuery.isDisable">
|
|
|
|
|
<el-radio :label='true' @change="diableChange">是</el-radio>
|
|
|
|
|
<el-radio :label='false'>否</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="是否寄售:" label-width="125px">
|
|
|
|
|
<el-radio-group v-model="editQuery.isAdavence">
|
|
|
|
|
<el-radio :label='true'>是</el-radio>
|
|
|
|
|
<el-radio :label='false'>否</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<div style="margin-bottom: 18px;margin-left: 25px">
|
|
|
|
|
<el-checkbox v-model="editQuery.isDisable"
|
|
|
|
|
@change="diableChange"
|
|
|
|
|
style="width: 180px"
|
|
|
|
|
border
|
|
|
|
|
>是否禁用
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="editQuery.isAdavence"
|
|
|
|
|
border
|
|
|
|
|
style="width: 180px"
|
|
|
|
|
>是否寄售
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="editQuery.allowNoBatch"
|
|
|
|
|
border
|
|
|
|
|
style="width: 180px"
|
|
|
|
|
>允许无批次号
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="editQuery.allowNoExpire"
|
|
|
|
|
border
|
|
|
|
|
style="width: 180px"
|
|
|
|
|
>允许无失效日期
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
|
<div style="margin-bottom: 18px;margin-left: 25px">
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col>
|
|
|
|
|
<div style="margin-bottom: 18px;margin-left: 25px">
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="允许无批次:" label-width="125px" >
|
|
|
|
|
<el-radio-group v-model="editQuery.allowNoBatch" >
|
|
|
|
|
<el-radio :label='true'>允许</el-radio>
|
|
|
|
|
<el-radio :label='false'>不允许</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-checkbox v-model="editQuery.allowNoProduct"
|
|
|
|
|
border
|
|
|
|
|
style="width: 180px"
|
|
|
|
|
>允许无生产日期
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="checked"
|
|
|
|
|
:disabled="!isUseDyCheck || editQuery.useMuti==true "
|
|
|
|
|
@change="useDyCheckChange"
|
|
|
|
|
style="width: 180px"
|
|
|
|
|
border
|
|
|
|
|
>启用使用单元
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="editQuery.useMuti"
|
|
|
|
|
:disabled="checked"
|
|
|
|
|
@change="useMutiChange"
|
|
|
|
|
style="width: 180px"
|
|
|
|
|
border
|
|
|
|
|
>多次/重复使用耗材
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="允许无失效日期:" label-width="125px">
|
|
|
|
|
<el-radio-group v-model="editQuery.allowNoExpire">
|
|
|
|
|
<el-radio :label='true'>允许</el-radio>
|
|
|
|
|
<el-radio :label='false'>不允许</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-checkbox v-model="editQuery.dispatch"
|
|
|
|
|
style="width: 180px"
|
|
|
|
|
border
|
|
|
|
|
>是否可配送
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col>
|
|
|
|
|
<div style="margin-bottom: 18px;margin-left: 25px">
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="允许无生产日期:" label-width="125px" >
|
|
|
|
|
<el-radio-group v-model="editQuery.allowNoProduct" >
|
|
|
|
|
<el-radio :label='true'>允许</el-radio>
|
|
|
|
|
<el-radio :label='false'>不允许</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="启用使用单元:" label-width="125px">
|
|
|
|
|
<el-radio-group v-model="checked" >
|
|
|
|
|
<el-radio :disabled="!isUseDyCheck || editQuery.useMuti==true " :label='true' @change="useDyCheckChange">是</el-radio>
|
|
|
|
|
<el-radio :disabled="!isUseDyCheck || editQuery.useMuti==true " :label='false'>否</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col>
|
|
|
|
|
<div style="margin-bottom: 18px;margin-left: 25px">
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="多次/重复使用耗材:" label-width="125px" >
|
|
|
|
|
<el-radio-group v-model="editQuery.useMuti" >
|
|
|
|
|
<el-radio :label='true' :disabled="checked" @change="useMutiChange">允许</el-radio>
|
|
|
|
|
<el-radio :label='false':disabled="checked">不允许</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="是否可配送:" label-width="125px">
|
|
|
|
|
<el-radio-group v-model="editQuery.dispatch" >
|
|
|
|
|
<el-radio :label='true' @change="useDyCheckChange">是</el-radio>
|
|
|
|
|
<el-radio :label='false'>否</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col>
|
|
|
|
|
<div style="margin-bottom: 18px;margin-left: 25px">
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="是否集采产品:" label-width="125px" >
|
|
|
|
|
<el-radio-group v-model="editQuery.groupBuy" >
|
|
|
|
|
<el-radio :label='true' @change="groupBuyChange">允许</el-radio>
|
|
|
|
|
<el-radio :label='false' >不允许</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="预警时间格式:" label-width="125px">
|
|
|
|
|
<el-radio-group v-model="editQuery.isDateBy">
|
|
|
|
|
<el-radio :label=1>天</el-radio>
|
|
|
|
|
<el-radio :label=2>小时</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
</el-collapse>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
|
<div style="margin-bottom: 18px;margin-left: 25px">
|
|
|
|
|
<el-checkbox v-model="editQuery.groupBuy"
|
|
|
|
|
style="width: 180px"
|
|
|
|
|
@change="groupBuyChange"
|
|
|
|
|
border
|
|
|
|
|
>是否集采产品
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-divider></el-divider>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
@ -535,7 +546,6 @@ export default {
|
|
|
|
|
this.editSingleDiDialogVisible = false;
|
|
|
|
|
},
|
|
|
|
|
singleDiEdit(val) {
|
|
|
|
|
debugger
|
|
|
|
|
let temp = val;
|
|
|
|
|
this.editSingleFormat.uuid = temp.uuid;
|
|
|
|
|
this.editSingleFormat.id = temp.id;
|
|
|
|
@ -543,6 +553,7 @@ export default {
|
|
|
|
|
this.editSingleFormat.packUnit = temp.packUnit;
|
|
|
|
|
this.editSingleFormat.measname = temp.measname;
|
|
|
|
|
this.editSingleFormat.nameCode = temp.nameCode;
|
|
|
|
|
this.editSingleFormat.cpmctymc = temp.cpmctymc;
|
|
|
|
|
this.editSingleDiDialogVisible = true;
|
|
|
|
|
},
|
|
|
|
|
onAddSingleSubmit() {
|
|
|
|
|