山东大学项目实训开发日志——基于vue+springboot的医院耗材管理系统(十)
发布时间
阅读量:
阅读量
插入记录最近的一次修改优化工作进展。该优化主要设置在订单管理模块下的"随货同行单列表"页面。首次改动是对操作流程中的二维码打印功能进行取消,并经过讨论分析后决定将该功能转移至查看界面下的子模块中更为合理。

移除该按钮后,单击序号为1的订单的"查看"功能将被导向下一层页面作为该订单的具体信息


可以看到在这一行的末尾依然可以进行“查看”操作:

用户能够查看到这个订单中的每一个耗材的信息,并依据属性判断是否展示二维码。

此前我们在该页面未对二维码的属性进行判断,从而实现选择性显示;为此,在该页面我对代码进行了优化调整:首先通过获取耗材编号至上层数据库以获取耗材id;随后并利用耗材id查询耗材属性表以确定其是否为二维码管理属性;当确定该二维码并非管理类时,在此页面弹出提示信息'二维码不可用';相关代码如下所示:
created() {
this.getList();
this.getIsQrAno();
},
getIsQrAno(){
getIsQrAno(this.listQuery).then(response => {
this.isQr = response.data;
})
if (this.isQr == '否') {
this.timer = window.setTimeout(() => {
this.$notify({
title: '提示',
message: '二维码不可用!',
type: 'warning',
position: 'bottom-right',
// duration: 0
});
}, 0)
}
},
getList() {
this.listLoading = true;
this.listQuery.keyword = this.$route.query.inDetailId;
let sendData = {
keyword: this.$route.query.inDetailId,
billCode: this.listQuery.billCode,
reagentCode: this.listQuery.reagentCode,
qrCode: this.listQuery.qrCode,
codeValue: this.listQuery.codeValue,
status: this.listQuery.status,
pageNum: this.listQuery.pageNum,
pageSize: this.listQuery.pageSize,
}
fetchList(this.sendData).then(response => {
this.listLoading = false;
this.preInItem = response.data.list;
this.total = response.data.total;
})
},
由于无法完成关键模块的开发工作, 因此无法呈现修改后的系统功能界面
全部评论 (0)
还没有任何评论哟~
