|
@@ -60,14 +60,6 @@
|
|
<el-button :size="size" @click="handleMaterialType"
|
|
<el-button :size="size" @click="handleMaterialType"
|
|
>维护物料类别</el-button
|
|
>维护物料类别</el-button
|
|
>
|
|
>
|
|
- <!-- <el-button
|
|
|
|
- :size="size"
|
|
|
|
- @click="handleIsInvoke"
|
|
|
|
- :key="count"
|
|
|
|
- v-hasPermi="['system:material:add']"
|
|
|
|
- >
|
|
|
|
- {{ basicData.value.isEnable == "已启用" ? "停用" : "启用" }}
|
|
|
|
- </el-button> -->
|
|
|
|
</el-button-group>
|
|
</el-button-group>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
@@ -1795,10 +1787,8 @@ export default {
|
|
|
|
|
|
// 新增
|
|
// 新增
|
|
handleInster() {
|
|
handleInster() {
|
|
- this.$notify({
|
|
|
|
- title: "警告",
|
|
|
|
|
|
+ this.$notify.warning({
|
|
message: "物料只能通过申请审批增加,不能在节点直接录入!",
|
|
message: "物料只能通过申请审批增加,不能在节点直接录入!",
|
|
- type: "warning",
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 除基本信息之后的修改
|
|
// 除基本信息之后的修改
|
|
@@ -1818,10 +1808,8 @@ export default {
|
|
// 查询其他标签页列表详情
|
|
// 查询其他标签页列表详情
|
|
this.getOtherListDetails(activeTab.code, this.otherDeatils.queryKey);
|
|
this.getOtherListDetails(activeTab.code, this.otherDeatils.queryKey);
|
|
} else {
|
|
} else {
|
|
- this.$notify({
|
|
|
|
- title: "警告",
|
|
|
|
|
|
+ this.$notify.warning({
|
|
message: "修改请选择单个数据!",
|
|
message: "修改请选择单个数据!",
|
|
- type: "warning",
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} else if ("form" === type) {
|
|
} else if ("form" === type) {
|
|
@@ -1875,10 +1863,8 @@ export default {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- this.$notify({
|
|
|
|
- title: "警告",
|
|
|
|
|
|
+ this.$notify.warning({
|
|
message: "请选择需要删除的数据!",
|
|
message: "请选择需要删除的数据!",
|
|
- type: "warning",
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1955,15 +1941,12 @@ export default {
|
|
},
|
|
},
|
|
// 刷新
|
|
// 刷新
|
|
handleRefresh() {
|
|
handleRefresh() {
|
|
- console.log("刷新");
|
|
|
|
-
|
|
|
|
this.$refs.basicMessageRef.clearValidate();
|
|
this.$refs.basicMessageRef.clearValidate();
|
|
this.$refs.medcineRef.clearValidate();
|
|
this.$refs.medcineRef.clearValidate();
|
|
this.handleRest();
|
|
this.handleRest();
|
|
},
|
|
},
|
|
// 维护物料类别
|
|
// 维护物料类别
|
|
handleMaterialType() {
|
|
handleMaterialType() {
|
|
- console.log("维护物料类别");
|
|
|
|
this.materialType.show = true;
|
|
this.materialType.show = true;
|
|
|
|
|
|
this.materialType.loading = true;
|
|
this.materialType.loading = true;
|
|
@@ -1972,20 +1955,6 @@ export default {
|
|
this.getMedcineitemList(this.materialId);
|
|
this.getMedcineitemList(this.materialId);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- // 启用
|
|
|
|
- handleIsInvoke(e) {
|
|
|
|
- console.log("启用", this.basicData.value.isEnable);
|
|
|
|
-
|
|
|
|
- let param = {
|
|
|
|
- isEnable: this.basicData.value.isEnable == "已启用" ? "2" : "0",
|
|
|
|
- id: this.basicData.value.id,
|
|
|
|
- };
|
|
|
|
- console.log(param, "启用/停用param");
|
|
|
|
- materialApi.updateEnableMaterial(param).then((res) => {
|
|
|
|
- console.log(res, "启用/停用");
|
|
|
|
- if (res.code == 200) this.handleRefresh();
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
// 维护新版本
|
|
// 维护新版本
|
|
handleNewVersion() {
|
|
handleNewVersion() {
|
|
let _this = this;
|
|
let _this = this;
|
|
@@ -1994,15 +1963,12 @@ export default {
|
|
code: this.basicData.value.code,
|
|
code: this.basicData.value.code,
|
|
};
|
|
};
|
|
materialApi.versions(data).then((res) => {
|
|
materialApi.versions(data).then((res) => {
|
|
- console.log(res, "维护新版本");
|
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
_this.maintainNewVersion = res.data.result;
|
|
_this.maintainNewVersion = res.data.result;
|
|
// 维护版本消息展示 by shiy 2023/05/31
|
|
// 维护版本消息展示 by shiy 2023/05/31
|
|
if (!res.data.result) {
|
|
if (!res.data.result) {
|
|
- this.$notify({
|
|
|
|
- title: "警告",
|
|
|
|
|
|
+ this.$notify.warning({
|
|
message: res.data.msg,
|
|
message: res.data.msg,
|
|
- type: "warning",
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -2057,7 +2023,6 @@ export default {
|
|
},
|
|
},
|
|
// 物料类别列表选中
|
|
// 物料类别列表选中
|
|
handleSelectionType(list) {
|
|
handleSelectionType(list) {
|
|
- console.log("物料类别列表选中", list);
|
|
|
|
this.materialType.checkedList = list;
|
|
this.materialType.checkedList = list;
|
|
},
|
|
},
|
|
// 物料类别增删行
|
|
// 物料类别增删行
|
|
@@ -2075,12 +2040,10 @@ export default {
|
|
}
|
|
}
|
|
rowObj["insertId"] = new Date().getTime();
|
|
rowObj["insertId"] = new Date().getTime();
|
|
this.materialType.value.push(rowObj);
|
|
this.materialType.value.push(rowObj);
|
|
- console.log(this.materialType.value, "物料类别增行rowObj后");
|
|
|
|
|
|
|
|
break;
|
|
break;
|
|
// 删行
|
|
// 删行
|
|
case "del":
|
|
case "del":
|
|
- console.log("物料类别删行", _this.materialType.checkedList);
|
|
|
|
if (_this.materialType.checkedList.length) {
|
|
if (_this.materialType.checkedList.length) {
|
|
_this.materialType.checkedList.map((c) => {
|
|
_this.materialType.checkedList.map((c) => {
|
|
_this.materialType.value = _this.materialType.value.filter(
|
|
_this.materialType.value = _this.materialType.value.filter(
|
|
@@ -2098,10 +2061,8 @@ export default {
|
|
);
|
|
);
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
- this.$notify({
|
|
|
|
- title: "警告",
|
|
|
|
|
|
+ this.$notify.warning({
|
|
message: "请选择需要删除的信息!",
|
|
message: "请选择需要删除的信息!",
|
|
- type: "warning",
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -2119,13 +2080,11 @@ export default {
|
|
);
|
|
);
|
|
console.log(nullList, "nullList");
|
|
console.log(nullList, "nullList");
|
|
if (!nullList.length && _this.materialType.value.length) {
|
|
if (!nullList.length && _this.materialType.value.length) {
|
|
- console.log("物料类别保存", _this.materialType.value);
|
|
|
|
let params = {
|
|
let params = {
|
|
materialId: _this.materialId,
|
|
materialId: _this.materialId,
|
|
medcineItems: _this.materialType.value,
|
|
medcineItems: _this.materialType.value,
|
|
};
|
|
};
|
|
materialApi.medcineitemBatchSave(params).then((res) => {
|
|
materialApi.medcineitemBatchSave(params).then((res) => {
|
|
- console.log(res, "保存物料类型");
|
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
_this.materialType.isEdit = false;
|
|
_this.materialType.isEdit = false;
|
|
_this.handleMaterialTypeRow();
|
|
_this.handleMaterialTypeRow();
|
|
@@ -2133,26 +2092,20 @@ export default {
|
|
});
|
|
});
|
|
// 保存
|
|
// 保存
|
|
} else {
|
|
} else {
|
|
- this.$notify({
|
|
|
|
- title: "警告",
|
|
|
|
|
|
+ this.$notify.warning({
|
|
message: "不能保存空数据或存在数据为空!",
|
|
message: "不能保存空数据或存在数据为空!",
|
|
- type: "warning",
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
// 非编辑状态
|
|
// 非编辑状态
|
|
- console.log("物料类别修改");
|
|
|
|
this.materialType.isEdit = true;
|
|
this.materialType.isEdit = true;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
// 刷新
|
|
// 刷新
|
|
default:
|
|
default:
|
|
- console.log("物料类别刷新");
|
|
|
|
if (this.materialType.isEdit) {
|
|
if (this.materialType.isEdit) {
|
|
- this.$notify({
|
|
|
|
- title: "警告",
|
|
|
|
|
|
+ this.$notify.warning({
|
|
message: "请先保存数据!",
|
|
message: "请先保存数据!",
|
|
- type: "warning",
|
|
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
this.materialType.loading = true;
|
|
this.materialType.loading = true;
|
|
@@ -2166,22 +2119,14 @@ export default {
|
|
},
|
|
},
|
|
// 物料类别弹窗关闭前
|
|
// 物料类别弹窗关闭前
|
|
handleCloseTypeDetails(done) {
|
|
handleCloseTypeDetails(done) {
|
|
- console.log("物料类别弹窗关闭前");
|
|
|
|
this.materialType.isEdit
|
|
this.materialType.isEdit
|
|
- ? this.$notify({
|
|
|
|
- title: "警告",
|
|
|
|
|
|
+ ? this.$notify.warning({
|
|
message: "请先保存数据!",
|
|
message: "请先保存数据!",
|
|
- type: "warning",
|
|
|
|
})
|
|
})
|
|
: done();
|
|
: done();
|
|
},
|
|
},
|
|
- // 保存修改并新增
|
|
|
|
- handleSaveAdd() {
|
|
|
|
- console.log("保存修改并新增");
|
|
|
|
- },
|
|
|
|
// 其他标签页弹窗取消操作
|
|
// 其他标签页弹窗取消操作
|
|
handleOtherCancel() {
|
|
handleOtherCancel() {
|
|
- console.log("其他标签页弹窗取消操作");
|
|
|
|
this.optionDialog.show = true;
|
|
this.optionDialog.show = true;
|
|
this.optionDialog.op = "修改";
|
|
this.optionDialog.op = "修改";
|
|
},
|
|
},
|
|
@@ -2222,13 +2167,10 @@ export default {
|
|
},
|
|
},
|
|
// 其他页签详情弹窗关闭事件
|
|
// 其他页签详情弹窗关闭事件
|
|
handleCloseOtherDetails(done) {
|
|
handleCloseOtherDetails(done) {
|
|
- console.log("其他页签详情弹窗关闭事件");
|
|
|
|
// 处于编辑状态
|
|
// 处于编辑状态
|
|
if (this.otherDeatils.isEdit) {
|
|
if (this.otherDeatils.isEdit) {
|
|
- this.$notify({
|
|
|
|
- title: "警告",
|
|
|
|
|
|
+ this.$notify.warning({
|
|
message: "请先退出编辑操作",
|
|
message: "请先退出编辑操作",
|
|
- type: "warning",
|
|
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
this.handleOtherListRefresh();
|
|
this.handleOtherListRefresh();
|
|
@@ -2401,10 +2343,8 @@ export default {
|
|
);
|
|
);
|
|
console.log(drug, "drug------------------------------------");
|
|
console.log(drug, "drug------------------------------------");
|
|
if (drug.length) {
|
|
if (drug.length) {
|
|
- _this.$notify({
|
|
|
|
- title: "警告",
|
|
|
|
|
|
+ _this.$notify.warning({
|
|
message: "不能维护相同的物料类别!",
|
|
message: "不能维护相同的物料类别!",
|
|
- type: "warning",
|
|
|
|
});
|
|
});
|
|
confirm = false;
|
|
confirm = false;
|
|
} else {
|
|
} else {
|
|
@@ -2527,10 +2467,8 @@ export default {
|
|
if (code == 200) {
|
|
if (code == 200) {
|
|
this.otherDeatils.isEdit = false;
|
|
this.otherDeatils.isEdit = false;
|
|
this.handleOtherRefresh();
|
|
this.handleOtherRefresh();
|
|
- this.$notify({
|
|
|
|
- title: "成功",
|
|
|
|
|
|
+ this.$notify.success({
|
|
message: msg,
|
|
message: msg,
|
|
- type: "success",
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} catch (error) {
|
|
} catch (error) {
|
|
@@ -2558,10 +2496,8 @@ export default {
|
|
if (code == 200) {
|
|
if (code == 200) {
|
|
this.otherDeatils.isEdit = false;
|
|
this.otherDeatils.isEdit = false;
|
|
this.handleOtherRefresh();
|
|
this.handleOtherRefresh();
|
|
- this.$notify({
|
|
|
|
- title: "成功",
|
|
|
|
|
|
+ this.$notify.success({
|
|
message: msg,
|
|
message: msg,
|
|
- type: "success",
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} catch (error) {
|
|
} catch (error) {
|
|
@@ -2586,10 +2522,8 @@ export default {
|
|
if (code == 200) {
|
|
if (code == 200) {
|
|
this.otherDeatils.isEdit = false;
|
|
this.otherDeatils.isEdit = false;
|
|
this.handleOtherRefresh();
|
|
this.handleOtherRefresh();
|
|
- this.$notify({
|
|
|
|
- title: "成功",
|
|
|
|
|
|
+ this.$notify.success({
|
|
message: msg,
|
|
message: msg,
|
|
- type: "success",
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} catch (error) {
|
|
} catch (error) {
|
|
@@ -2614,10 +2548,8 @@ export default {
|
|
if (code == 200) {
|
|
if (code == 200) {
|
|
this.otherDeatils.isEdit = false;
|
|
this.otherDeatils.isEdit = false;
|
|
this.handleOtherRefresh();
|
|
this.handleOtherRefresh();
|
|
- this.$notify({
|
|
|
|
- title: "成功",
|
|
|
|
|
|
+ this.$notify.success({
|
|
message: msg,
|
|
message: msg,
|
|
- type: "success",
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} catch (error) {
|
|
} catch (error) {
|
|
@@ -2643,10 +2575,8 @@ export default {
|
|
if (code == 200) {
|
|
if (code == 200) {
|
|
this.otherDeatils.isEdit = false;
|
|
this.otherDeatils.isEdit = false;
|
|
this.handleOtherRefresh();
|
|
this.handleOtherRefresh();
|
|
- this.$notify({
|
|
|
|
- title: "成功",
|
|
|
|
|
|
+ this.$notify.success({
|
|
message: msg,
|
|
message: msg,
|
|
- type: "success",
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} catch (error) {
|
|
} catch (error) {
|
|
@@ -2671,10 +2601,8 @@ export default {
|
|
if (code == 200) {
|
|
if (code == 200) {
|
|
this.otherDeatils.isEdit = false;
|
|
this.otherDeatils.isEdit = false;
|
|
this.handleOtherRefresh();
|
|
this.handleOtherRefresh();
|
|
- this.$notify({
|
|
|
|
- title: "成功",
|
|
|
|
|
|
+ this.$notify.success({
|
|
message: msg,
|
|
message: msg,
|
|
- type: "success",
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} catch (error) {
|
|
} catch (error) {
|
|
@@ -2691,7 +2619,6 @@ export default {
|
|
|
|
|
|
judgeIsRequriedByProps(message) {
|
|
judgeIsRequriedByProps(message) {
|
|
// condiition:条件,tergetNames:目标porps数组,formName:表单,formRef:表单ref名,
|
|
// condiition:条件,tergetNames:目标porps数组,formName:表单,formRef:表单ref名,
|
|
-
|
|
|
|
this[message.formName].form.forEach((formItem) => {
|
|
this[message.formName].form.forEach((formItem) => {
|
|
let target = message.tergetNames.filter((t) => t === formItem.prop);
|
|
let target = message.tergetNames.filter((t) => t === formItem.prop);
|
|
|
|
|
|
@@ -2720,9 +2647,6 @@ export default {
|
|
});
|
|
});
|
|
// 医疗行业
|
|
// 医疗行业
|
|
await this.getTagList("material_medcine", async (form) => {
|
|
await this.getTagList("material_medcine", async (form) => {
|
|
- // form.forEach((item) => {
|
|
|
|
- // this.medcineData.value[item.prop] = ''
|
|
|
|
- // })
|
|
|
|
this.medcineData.form = [...form];
|
|
this.medcineData.form = [...form];
|
|
this.medcineData.value = initParams(this.medcineData.form, "prop");
|
|
this.medcineData.value = initParams(this.medcineData.form, "prop");
|
|
this.medcineRules = initRules(form);
|
|
this.medcineRules = initRules(form);
|
|
@@ -2758,29 +2682,7 @@ export default {
|
|
},
|
|
},
|
|
deep: true,
|
|
deep: true,
|
|
},
|
|
},
|
|
- // 通过一级分类判断业务线是否必填
|
|
|
|
- // "basicData.value.oneClass": {
|
|
|
|
- // handler(nVal, oVal) {
|
|
|
|
-
|
|
|
|
- // this.basicData.form = this.basicData.form.map(formItem => {
|
|
|
|
|
|
|
|
- // if (formItem.prop === "businessLine" && nVal) {
|
|
|
|
-
|
|
|
|
- // if ( nVal.includes('介入耗材&5') || nVal.includes('骨科耗材&2') ||
|
|
|
|
- // nVal.includes('普通耗材&3') || nVal.includes('医用设备&1') ||
|
|
|
|
- // nVal.includes('体外诊断&4')) {
|
|
|
|
-
|
|
|
|
- // formItem.required = true
|
|
|
|
- // } else {
|
|
|
|
- // formItem.required = false
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
- // }
|
|
|
|
- // return formItem;
|
|
|
|
- // })
|
|
|
|
- // },
|
|
|
|
- // deep: true,
|
|
|
|
- // },
|
|
|
|
// 物料分类改变同时改变一二三级分类
|
|
// 物料分类改变同时改变一二三级分类
|
|
"basicData.value.classifyId": {
|
|
"basicData.value.classifyId": {
|
|
async handler(nVal, oVal) {
|
|
async handler(nVal, oVal) {
|
|
@@ -2822,7 +2724,6 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
created() {
|
|
created() {
|
|
- console.log(this, "created");
|
|
|
|
// 基本信息
|
|
// 基本信息
|
|
this.handleRest();
|
|
this.handleRest();
|
|
if (window.name === "") {
|
|
if (window.name === "") {
|
|
@@ -2855,8 +2756,6 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.md-content {
|
|
.md-content {
|
|
- // margin-top: 12px;
|
|
|
|
- // height: calc(100vh - 260px);
|
|
|
|
// height: calc(100vh - 200px);
|
|
// height: calc(100vh - 200px);
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
|
|
@@ -2864,13 +2763,8 @@ export default {
|
|
overflow: auto;
|
|
overflow: auto;
|
|
|
|
|
|
.md-main {
|
|
.md-main {
|
|
- // height: calc(100vh - 625px);
|
|
|
|
margin-bottom: 10px;
|
|
margin-bottom: 10px;
|
|
|
|
|
|
- .el-table__body {
|
|
|
|
- // height: calc(100vh - 300px);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
.el-form {
|
|
.el-form {
|
|
max-height: 430px;
|
|
max-height: 430px;
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
@@ -2901,9 +2795,6 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- // .md-content>.el-tabs {
|
|
|
|
- // height: calc(100vh - 280px);
|
|
|
|
- // }
|
|
|
|
|
|
|
|
.otherDialog {
|
|
.otherDialog {
|
|
.el-collapse-item__content {
|
|
.el-collapse-item__content {
|
|
@@ -2930,9 +2821,6 @@ export default {
|
|
overflow-x: hidden;
|
|
overflow-x: hidden;
|
|
}
|
|
}
|
|
|
|
|
|
- // .el-dialog__header {
|
|
|
|
- // background-color: rgb(244, 244, 244);
|
|
|
|
- // }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
.el-dialog__header {
|
|
.el-dialog__header {
|
|
@@ -3084,16 +2972,4 @@ export default {
|
|
>>> .referTree {
|
|
>>> .referTree {
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
-
|
|
|
|
-/* .md-main>>>.el-table .el-table__body {
|
|
|
|
- height: calc(100vh - 300px);
|
|
|
|
- } */
|
|
|
|
-
|
|
|
|
-/* .otherDialog>>>.el-collapse-item__content {
|
|
|
|
- padding-bottom: 12px;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .otherDialog>>>.el-dialog__body {
|
|
|
|
- padding: 12px 20px;
|
|
|
|
- } */
|
|
|
|
</style>
|
|
</style>
|