调整耗材字典维护编辑页面

ywj_dev
wangwei 2 years ago
parent 14fdbc959d
commit cf4a1548c3

@ -199,110 +199,425 @@
></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="使用周期(天):">
<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="最小包装可使用次数:">
<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-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-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-checkbox v-model="editQuery.dispatch"
style="width: 180px"
border
>是否可配送
</el-checkbox>
<el-collapse v-model="activeNames">
<el-collapse-item title="高级设置" name="1" class="titel">
<div style="width: 85%;margin: 0 auto">
</div>
</el-col>
</el-row>
<el-descriptions class="margin-top" :column="3" size="mini" border>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
库存积压预警数量
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-input style="width: 150%" size="small" splaceholder="请输入内容" :disabled="this.useNumEnable" type="number" v-model="editQuery.overStockNum"></el-input>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
库存积压预警数量
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
低库存预警数量
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-input style="width: 150%" size="small" splaceholder="请输入内容" :disabled="this.useNumEnable" type="number" v-model="editQuery.overStockNum"></el-input>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
低库存预警数量
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
最小包装可使用次数
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-input style="width: 150%" size="small" splaceholder="请输入内容" :disabled="this.useNumEnable" type="number" v-model="editQuery.overStockNum"></el-input>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
最小包装可使用次数
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
近效期预警时间
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-input style="width: 150%" size="small" splaceholder="请输入内容" :disabled="this.useNumEnable" type="number" v-model="editQuery.overStockNum"></el-input>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
近效期预警时间
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
使用周期()
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-input style="width: 150%" size="small" splaceholder="请输入内容" :disabled="this.useNumEnable" type="number" v-model="editQuery.overStockNum"></el-input>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
使用周期()
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
上级菜单
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-input style="width: 150%" size="small" splaceholder="请输入内容" :disabled="this.useNumEnable" type="number" v-model="editQuery.overStockNum"></el-input>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
上级菜单
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
是否禁用
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-radio :label="true" :value="true"></el-radio>
<el-radio :label="false" :value="false"></el-radio>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
是否禁用
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
是否寄售
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-radio :label="true" :value="true"></el-radio>
<el-radio :label="false" :value="false"></el-radio>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
是否寄售
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
多次/重复使用耗材
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-radio :label="true" :value="true"></el-radio>
<el-radio :label="false" :value="false"></el-radio>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
多次/重复使用耗材
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
是否可配送
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-radio :label="true" :value="true"></el-radio>
<el-radio :label="false" :value="false"></el-radio>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
是否可配送
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
是否集采产品
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-radio :label="true" :value="true"></el-radio>
<el-radio :label="false" :value="false"></el-radio>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
是否集采产品
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
允许无批次
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-radio :label="true" :value="true">允许</el-radio>
<el-radio :label="false" :value="false">不允许</el-radio>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
允许无批次
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
允许无失效日期
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-radio :label="true" :value="true">允许</el-radio>
<el-radio :label="false" :value="false">不允许</el-radio>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
允许无失效日期
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
允许无生产日期
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-radio :label="true" :value="true">允许</el-radio>
<el-radio :label="false" :value="false">不允许</el-radio>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
允许无生产日期
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
预警时间格式
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-radio :label="true" :value="true"></el-radio>
<el-radio :label="false" :value="false">小时</el-radio>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
预警时间格式
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-setting"></i>
设置项
</template>
启用使用单元
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-set-up"></i>
参数值
</template>
<el-radio-group v-model="editQuery.enable">
<el-radio :label="true" :value="true">启用</el-radio>
<el-radio :label="false" :value="false">不启用</el-radio>
</el-radio-group>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
描述
</template>
启用使用单元
</el-descriptions-item>
</el-descriptions>
<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-collapse-item>
</el-collapse>
</el-form>
<el-dialog
@ -356,6 +671,8 @@ import {isBlank} from "@/utils/strUtil";
import {filterByUuid} from "@/api/basic/product/udiInfo";
import ProductSingleEdit from "@/views/basic/product/productSingleEdit";
import selectErp from "./udiInfoselectErpUdi";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import Treeselect from "@riophae/vue-treeselect";
export default {
@ -401,6 +718,7 @@ export default {
useNumEnable: true,
sysList: [],
detailList: [],
fromDeptOptions:[],
defaultSys: null,
isImport: false,
selectErpDialogVisible: false, //ERP
@ -417,11 +735,17 @@ export default {
},
components: {
selectErp,
ProductSingleEdit
ProductSingleEdit,
Treeselect
},
created() {
this.useMutiChange(true)
this.getThirdSysDetail();
if(this.editQuery.isDateBy==1){
this.editQuery.recentDateTime=this.editQuery.recentDateTime/24;
}
console.log(this.editQuery)
this.getTreeselect();
let ttquery = {
id: this.relevanceEdit.id
}
@ -599,10 +923,45 @@ export default {
this.editQuery.dispatch = false;
}
},
getTreeselect() {
getListMenu().then(response => {
this.fromDeptOptions = [];
const menu = {id: 0, name: '主类目', children: []};
menu.children = this.handleTree(response.data,"code", "parentCode");
this.fromDeptOptions.push(menu);
});
},
/** 转换菜单数据结构 */
normalizer(node) {
if (node.children && !node.children.length) {
delete node.children;
}
return {
id: node.code,
label: node.name,
children: node.children
};
},
}
}
</script>
<style scoped>
.vue-treeselect >>> .vue-treeselect__placeholder {
font-size: 12px;
}
.vue-treeselect >>> .vue-treeselect__value-container {
font-size: 12px;
height: 30px;
}
.vue-treeselect >>> .vue-treeselect__control {
height: 20px;
}
.check-box-group {
margin-left: 25px;
margin-bottom: 12px;
}
</style>

Loading…
Cancel
Save