耗材字典样式修改

prod
郑明梁 2 years ago
parent da3e2ed648
commit 304011057a

@ -15,7 +15,7 @@
<el-divider direction="vertical"></el-divider>
</el-col>
<el-col :span="21">
<el-col :span="21" style="border-left: 1px solid rgb(229 224 224)">
<el-form :model="filterQuery" size="mini" label-width="100px" v-show="showSearch">
<el-row>
<el-col :span="18">

@ -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() {

@ -7,6 +7,18 @@
border
label-width="120px"
>
<el-row>
<el-form-item label="产品标识:">
<el-input style="width: 80%" size="small" :disabled="true" v-model="editQuery.nameCode"></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="产品通用名:">
<el-input style="width: 80%" size="small" :disabled="true" v-model="editQuery.cpmctymc"></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="商品条码:">
<el-input

@ -13,7 +13,7 @@
<el-button-group style="margin-left: 10px;display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="handleSubForm( null, 'add')">新增</el-button>
<el-button type="primary" icon="el-icon-plus" @click="handleSubForm( pCode, 'add')">新增</el-button>
</el-button-group>
</el-form-item>
</el-form>
@ -24,6 +24,7 @@
row-key="id"
:default-expand-all="isExpandAll"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
@current-change="getTreeName"
>
<el-table-column label="序号" type="index" ref="dataForm"></el-table-column>
<el-table-column prop="name" label="名称"></el-table-column>
@ -147,6 +148,7 @@ export default {
// page: 1,
// limit: 10,
},
pCode:null,
isShow: null,
loading: true,
list: [],
@ -219,12 +221,14 @@ export default {
if (formName === "edit") {
this.subData = JSON.parse(JSON.stringify(data));
} else if (formName === "add") {
this.subData = {advanceType: false,};
this.subData.parentCode = JSON.parse(JSON.stringify(this.pCode));
}
this.getTreeselect();
this.subFormVisible = true;
},
getTreeName(obj){
this.pCode=obj.parentCode;
},
hideForm() { // ---
this.formVisible = false;
this.subFormVisible = false;

@ -138,7 +138,6 @@ export default {
},
getCodeList() {
debugger
this.loading = true;
this.query.orderId = this.idQuery.billNo;
findByOrderId(this.query) //

@ -425,7 +425,6 @@ export default {
this.pdffileUrl = this.BASE_URL + "/spms/donwload/pdf?fileName=";
if (this.$isNotBlank(this.inQuery.id)) {
this.formData = this.inQuery.formData;
debugger
this.query.orderId = this.inQuery.id;
this.query.orderIdFk = this.formData.id;
this.query.sOrderId = this.inQuery.id;

@ -464,7 +464,6 @@ export default {
// this.dialogTableVisible = true;
},
intentDetail(row) {
debugger
this.codeDetailVisible = true;
this.idQuery.id = row.id;
this.idQuery.billNo=row.billNo;

@ -408,7 +408,6 @@ export default {
})
.catch(() => {
});
debugger
let query1 = {
code: this.formData.targetSubInv,
};

@ -408,7 +408,6 @@ export default {
})
.catch(() => {
});
debugger
let query1 = {
code: this.formData.targetSubInv,
};

@ -266,7 +266,6 @@ export default {
},
combine() {
debugger
if (this.$isBlank(this.currentRow.id)) {
this.$message.error("未选择申购单!");
}
@ -287,7 +286,6 @@ export default {
},
created() {
debugger
let end = new Date();
let start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);

@ -106,7 +106,6 @@ export default {
},
onAddSubmit() {
debugger
var postRequesty = {
invCode: this.inputQuery.code,
selectActions: [],

Loading…
Cancel
Save