feat: 优化右上角用户信息

20240912_adapter_z
chenhc 8 months ago
parent e35352fe89
commit 931f3cfdf7

@ -1,5 +1,28 @@
<template> <template>
<div> <div>
<el-row :gutter="0" v-if="isLinkDisabled" style="margin-top: 15px">
<el-col :span="24" align="right">
<div class="inv-hos-title">
<span
style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;"
>仓库&nbsp:&nbsp{{ this.userInfo.inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName
}}</span>
<span
style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px"
>({{
this.userInfo.userName
}})</span>
</div>
</el-col>
</el-row>
<el-card> <el-card>
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" class="query-form" <el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" class="query-form"
size="mini" label-width="100px"> size="mini" label-width="100px">
@ -260,7 +283,13 @@ export default {
name: "prescribePanel", name: "prescribePanel",
data() { data() {
return { return {
isLinkDisabled: false,
userInfo:{
inv: this.$store.getters.locInvName,
deptName: this.$store.getters.locDeptName,
userName: this.$store.getters.name,
companyName: this.$store.getters.companyName,
},
// //
// //
tableHeader: [], tableHeader: [],
@ -462,6 +491,9 @@ export default {
}, },
created() { created() {
if (this.$route.query.workplaceId != null){
this.isLinkDisabled = true
}
getHead("prescribeAllot", "1").then((re) => { getHead("prescribeAllot", "1").then((re) => {
// //
this.tableObj = re.data; this.tableObj = re.data;
@ -470,6 +502,8 @@ export default {
this.fromList = re.data.fromList; this.fromList = re.data.fromList;
this.getList(); this.getList();
}); });
} }
} }

@ -1,5 +1,28 @@
<template> <template>
<div> <div>
<el-row :gutter="0" v-if="isLinkDisabled" style="margin-top: 15px">
<el-col :span="24" align="right">
<div class="inv-hos-title">
<span
style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;"
>仓库&nbsp:&nbsp{{ this.userInfo.inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName
}}</span>
<span
style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px"
>({{
this.userInfo.userName
}})</span>
</div>
</el-col>
</el-row>
<el-card> <el-card>
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" class="query-form" <el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" class="query-form"
size="mini" label-width="100px"> size="mini" label-width="100px">
@ -210,18 +233,18 @@
></pagination> ></pagination>
</el-card> </el-card>
<el-tabs type="border-card" style="margin: 15px"> <el-tabs type="border-card" style="margin: 15px">
<el-tab-pane label="处方使用耗材明细"> <el-tab-pane label="单据详情">
<prescribeOriginDiPanel <prescribeOriginDiPanel
v-if="panelALive" v-if="panelALive"
:prescribeData="curRow" :prescribeData="curRow"
></prescribeOriginDiPanel> ></prescribeOriginDiPanel>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="原始处方明细"> <!-- <el-tab-pane label="原始处方明细">-->
<prescribeOriginPanel <!-- <prescribeOriginPanel-->
v-if="panelALive" <!-- v-if="panelALive"-->
:prescribeData="curRow" <!-- :prescribeData="curRow"-->
></prescribeOriginPanel> <!-- ></prescribeOriginPanel>-->
</el-tab-pane> <!-- </el-tab-pane>-->
</el-tabs> </el-tabs>
@ -253,12 +276,20 @@ import {page as prescribePage, deleteDataByCode} from "@/api/basic/sicker/prescr
import bindWorkDialog from "@/views/collect/bindWorkDialog"; import bindWorkDialog from "@/views/collect/bindWorkDialog";
import prescribeOriginPanel from "./PannelOrderBiz"; import prescribeOriginPanel from "./PannelOrderBiz";
import prescribeOriginDiPanel from "./PannelOrderBiz"; import prescribeOriginDiPanel from "./PannelOrderBiz";
import {filterWorkOptimize} from "@/api/basic/sysWorkplaceManage";
import {deleteByOrder, orderPage} from "@/api/collect/collectOrder";
export default { export default {
name: "prescribePanel", name: "prescribePanel",
data() { data() {
return { return {
isLinkDisabled: false,
userInfo:{
inv: this.$store.getters.locInvName,
deptName: this.$store.getters.locDeptName,
userName: this.$store.getters.name,
companyName: this.$store.getters.companyName,
},
// //
// //
tableHeader: [], tableHeader: [],
@ -311,6 +342,10 @@ export default {
multiplePreSelection: [], multiplePreSelection: [],
curRow: null, curRow: null,
panelALive: false, panelALive: false,
options: {
findWorkPlace: [],
},
} }
}, },
@ -370,7 +405,7 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
prescribePage(this.filterQuery).then(res => { orderPage(this.filterQuery).then(res => {
this.loading = false this.loading = false
this.list = res.data.list || [] this.list = res.data.list || []
this.total = res.data.total || 0 this.total = res.data.total || 0
@ -410,8 +445,8 @@ export default {
}, },
deleteOrders(data) { deleteOrders(data) {
this.loading = true; this.loading = true;
this.deleteData.code = data; this.deleteData.billNo = data;
deleteDataByCode(this.deleteData) deleteByOrder(this.deleteData)
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.getList(); this.getList();
@ -436,8 +471,29 @@ export default {
this.multiplePreSelection = val; this.multiplePreSelection = val;
}, },
findWorkPlace(_this, val) {
let query = {
invCode: _this.$store.getters.locInvCode,
key: val,
page: 1,
limit: 10,
}
filterWorkOptimize(query)
.then((response) => {
_this.loading = false;
_this.options.findWorkPlace = response.data || [];
})
.catch(() => {
_this.loading = false;
_this.options.findWorkPlace = [];
});
},
}, },
created() { created() {
if (this.$route.query.workplaceId != null){
this.isLinkDisabled = true
}
getHead("prescribeAllot", "1").then((re) => { getHead("prescribeAllot", "1").then((re) => {
// //
this.tableObj = re.data; this.tableObj = re.data;
@ -446,6 +502,8 @@ export default {
this.fromList = re.data.fromList; this.fromList = re.data.fromList;
this.getList(); this.getList();
}); });
} }
} }

@ -1,5 +1,29 @@
<template> <template>
<div> <div>
<el-row :gutter="0" v-if="isLinkDisabled" style="margin-top: 15px">
<el-col :span="24" align="right">
<div class="inv-hos-title">
<span
style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;"
>仓库&nbsp:&nbsp{{ this.userInfo.inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName
}}</span>
<span
style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px"
>({{
this.userInfo.userName
}})</span>
</div>
</el-col>
</el-row>
<el-tabs type="border-card" style="margin: 15px"> <el-tabs type="border-card" style="margin: 15px">
<el-tab-pane label="已完成赋码单据"> <el-tab-pane label="已完成赋码单据">
@ -31,6 +55,22 @@ export default {
name: "PrescribeTagCode", name: "PrescribeTagCode",
components: { components: {
prescribePanel, codePanel prescribePanel, codePanel
},
data() {
return {
isLinkDisabled: false,
userInfo: {
inv: this.$store.getters.locInvName,
deptName: this.$store.getters.locDeptName,
userName: this.$store.getters.name,
companyName: this.$store.getters.companyName,
},
}
},
created() {
if (this.$route.query.workplaceId != null){
this.isLinkDisabled = true
}
} }
} }
</script> </script>

@ -2,7 +2,31 @@
<div> <div>
<el-form :model="formData" class="order-el-form" ref="formData" label-width="120px"> <el-form :model="formData" class="order-el-form" ref="formData" label-width="120px">
<el-card> <el-card>
<el-row :gutter="0" v-if="isLinkDisabled">
<el-col :span="24" align="right">
<div class="inv-hos-title">
<span
style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;"
>仓库&nbsp:&nbsp{{ this.userInfo.inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName
}}</span>
<span
style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px"
>({{
this.userInfo.userName
}})</span>
</div>
</el-col>
</el-row>
<el-alert <el-alert
style="margin-top: 15px"
:title="msgTip" :title="msgTip"
:closable="false" :closable="false"
type="warning"> type="warning">
@ -248,6 +272,13 @@ export default {
}, },
selectPrescriptionVisible: false, selectPrescriptionVisible: false,
corpOrderIdDisabled: false, corpOrderIdDisabled: false,
isLinkDisabled: false,
userInfo:{
inv: this.$store.getters.locInvName,
deptName: this.$store.getters.locDeptName,
userName: this.$store.getters.name,
companyName: this.$store.getters.companyName,
},
curRow: null, curRow: null,
panelALive: false, panelALive: false,
@ -504,6 +535,7 @@ export default {
this.formData.invCode = this.$store.getters.locInvCode; this.formData.invCode = this.$store.getters.locInvCode;
this.findCurWorkPlaces(); this.findCurWorkPlaces();
if (this.$route.query.workplaceId != null){ if (this.$route.query.workplaceId != null){
this.isLinkDisabled = true
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true
this.formData.workplaceCode = Number(this.$route.query.workplaceId); this.formData.workplaceCode = Number(this.$route.query.workplaceId);
} }

@ -2,7 +2,31 @@
<div> <div>
<el-form :model="formData" class="order-el-form" ref="formData" label-width="120px"> <el-form :model="formData" class="order-el-form" ref="formData" label-width="120px">
<el-card> <el-card>
<el-row :gutter="0" v-if="isLinkDisabled">
<el-col :span="24" align="right">
<div class="inv-hos-title">
<span
style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;"
>仓库&nbsp:&nbsp{{ this.userInfo.inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName
}}</span>
<span
style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px"
>({{
this.userInfo.userName
}})</span>
</div>
</el-col>
</el-row>
<el-alert <el-alert
style="margin-top: 15px"
:title="msgTip" :title="msgTip"
:closable="false" :closable="false"
type="warning"> type="warning">
@ -13,22 +37,26 @@
<el-button-group> <el-button-group>
<el-button <el-button
type="primary" type="primary"
:disabled="isSelectOrder"
@click.native="selectPrescribe()" @click.native="selectPrescribe()"
>下一单据 >下一单据
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
:disabled="isSelectOrder"
@click.native="selectPrescribe()" @click.native="selectPrescribe()"
>选入单据 >选入单据
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
@click.native="selectPrescribe()" :disabled="formData.tagStatus<2"
@click.native="saveDraftOrder()"
>单据挂起 >单据挂起
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
@click.native="selectPrescribe()" :disabled="formData.tagStatus<2"
@click.native="finishOrder()"
>处理完成 >处理完成
</el-button> </el-button>
@ -37,11 +65,13 @@
更多功能<i class="el-icon-arrow-down el-icon--right"></i> 更多功能<i class="el-icon-arrow-down el-icon--right"></i>
</el-button> </el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item divided @click.native="handleClickOut('IoCreateOrderBlank')">工位上货</el-dropdown-item> <el-dropdown-item divided @click.native="handleClickOut('IoCreateOrderBlank')">工位上货</el-dropdown-item>
<el-dropdown-item divided @click.native="handleClickReturn('IoCreateOrderBlank')">工位退货</el-dropdown-item> <el-dropdown-item divided @click.native="handleClickReturn('IoCreateOrderBlank')">工位退货
<el-dropdown-item divided @click.native="handleClick('ioSplitFifoCodeBlank')">工位存量</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item divided @click.native="handleClick('CollectOrderAllotBlank')">待处理单</el-dropdown-item> <el-dropdown-item divided @click.native="handleClick('ioSplitFifoCodeBlank')">工位存量</el-dropdown-item>
<el-dropdown-item divided @click.native="handleClick('CollectOrderEndBlank')">已完成单</el-dropdown-item> <el-dropdown-item divided @click.native="handleClick('CollectOrderAllotBlank')">待处理单
</el-dropdown-item>
<el-dropdown-item divided @click.native="handleClick('CollectOrderEndBlank')">已完成单</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</el-button-group> </el-button-group>
@ -130,9 +160,10 @@
</div> </div>
<el-descriptions title="单据信息" :column="4" border style="margin-top: 15px"> <el-descriptions title="单据信息" :column="4" border style="margin-top: 15px">
<el-descriptions-item label="单据编号">{{ formData.code }}</el-descriptions-item> <el-descriptions-item label="业务单号">{{ formData.billNo }}</el-descriptions-item>
<el-descriptions-item label="业务来源">{{ formData.busType }}</el-descriptions-item> <el-descriptions-item label="往来信息">{{ formData.fromCorpName }}</el-descriptions-item>
<el-descriptions-item label="往来信息">{{ formData.fromCorp }}</el-descriptions-item> <el-descriptions-item label="单据类型">{{ formData.busTypeName }}</el-descriptions-item>
<el-descriptions-item label="来源系统">{{ formData.fromType }}</el-descriptions-item>
<el-descriptions-item label="单据时间">{{ formData.billTime }}</el-descriptions-item> <el-descriptions-item label="单据时间">{{ formData.billTime }}</el-descriptions-item>
<el-descriptions-item label="单据备注">{{ formData.remark }}</el-descriptions-item> <el-descriptions-item label="单据备注">{{ formData.remark }}</el-descriptions-item>
</el-descriptions> </el-descriptions>
@ -196,13 +227,13 @@ import addOrder from "@/views/inout/DialogCreateOrder";
import errOrder from "@/views/inout/IoCreateErrorOrder"; import errOrder from "@/views/inout/IoCreateErrorOrder";
import {executeFuc, getHead} from "@/utils/customConfig"; import {executeFuc, getHead} from "@/utils/customConfig";
import {convertDate} from "@/utils/date"; import {convertDate} from "@/utils/date";
import {materialPrescribePage} from "@/api/inout/splitCode";
import {detail, page as prescribePage, tagCode} from "@/api/basic/sicker/prescribeApi";
import selectPrescribeDialog from "@/views/collect/selectCollectOrderDialog"; import selectPrescribeDialog from "@/views/collect/selectCollectOrderDialog";
import prescribeCodePanel from "./PanelOrderTagCode"; import prescribeCodePanel from "./PanelOrderTagCode";
import PannelOrderBiz from "./PannelOrderBiz"; import PannelOrderBiz from "./PannelOrderBiz";
import {listPage} from "@/api/basic/sysWorkplaceManage"; import {listPage} from "@/api/basic/sysWorkplaceManage";
import {enterCodeWeb} from "@/api/inout/order"; import {enterCodeWeb} from "@/api/inout/order";
import {draftOrder, finishOrder, tagCode} from "@/api/collect/splitCreateOrder";
import {delDrugLevel} from "@/api/basic/product/drugUdiinfos";
export default { export default {
/** /**
@ -230,15 +261,24 @@ export default {
list: [], list: [],
total: 0, total: 0,
defaultSort: {prop: 'createTime', order: 'desc'}, defaultSort: {prop: 'createTime', order: 'desc'},
curWorkPlaces: [], curWorkPlaces: [],
erpList: [], erpList: [],
formData: { formData: {
tagStatus: -1,
invCode:null, invCode:null,
workPlaceCode:null, workPlaceCode:null,
erpId:null, erpId:null,
}, },
selectPrescriptionVisible: false, selectPrescriptionVisible: false,
corpOrderIdDisabled: false, corpOrderIdDisabled: false,
isLinkDisabled: false,
userInfo:{
inv: this.$store.getters.locInvName,
deptName: this.$store.getters.locDeptName,
userName: this.$store.getters.name,
companyName: this.$store.getters.companyName,
},
curRow: null, curRow: null,
panelALive: false, panelALive: false,
@ -249,7 +289,9 @@ export default {
msgTip: "信息提醒:", msgTip: "信息提醒:",
originCode: "", originCode: "",
checkSuccess: false, checkSuccess: false,
scanResultType: "success" scanResultType: "success",
isSelectOrder: false,
isFinishOrder: true,
} }
}, },
@ -265,13 +307,13 @@ export default {
}, },
handleClickOut(blankName) { handleClickOut(blankName) {
// let url = window.location.origin+`#/tagCodeBlank?workplaceId=`+ this.stationList[index].workplaceId // let url = window.location.origin+`#/tagCodeBlank?workplaceId=`+ this.stationList[index].workplaceId
let url = window.location.origin+`#/`+ blankName+`?splitType=out&workplaceId=`+ this.workplaceId let url = window.location.origin + `#/` + blankName + `?splitType=out&workplaceId=` + this.workplaceId
// this.$router.push( workplaceId) // this.$router.push( workplaceId)
window.open(url, '_blank'); window.open(url, '_blank');
}, },
handleClickReturn(blankName) { handleClickReturn(blankName) {
// let url = window.location.origin+`#/tagCodeBlank?workplaceId=`+ this.stationList[index].workplaceId // let url = window.location.origin+`#/tagCodeBlank?workplaceId=`+ this.stationList[index].workplaceId
let url = window.location.origin+`#/`+ blankName+`?splitType=return&workplaceId=`+ this.workplaceId let url = window.location.origin + `#/` + blankName + `?splitType=return&workplaceId=` + this.workplaceId
// this.$router.push( workplaceId) // this.$router.push( workplaceId)
window.open(url, '_blank'); window.open(url, '_blank');
}, },
@ -301,94 +343,12 @@ export default {
} }
return defaultRet; return defaultRet;
}, },
handleSortChange(column, prop, order) {
if (column.order === 'descending') {
this.query.sort = 'desc'
} else {
this.query.sort = 'asc'
}
this.query.orderBy = column.prop;
this.getList();
},
///------------end ///------------end
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;
}, },
onReset() {
this.filterQuery = {};
this.actDateRange = [];
this.getList();
},
onSubmit() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
this.loading = true;
prescribePage(this.filterQuery).then(res => {
this.loading = false
this.list = res.data.list || []
this.total = res.data.total || 0
}).catch(() => {
this.loading = false
this.list = []
this.total = 0
})
},
handleCurrentChange(val) {
this.filterQuery.page = val.page;
this.getList();
},
prescribeClick(_this, row) {
this.curRow = row;
this.getPrescribeDetail(_this, row)
this.getCodeDetail(_this, row)
},
getPrescribeDetail(_this, row) {
if (row != null) {
_this.preQuery.page = 1
_this.preQuery.prescribeCode = row.code
}
_this.preLoading = true;
detail(_this.preQuery).then(res => {
_this.preLoading = false
if (res.code != 20000) {
_this.$message.error(res.message)
return
}
_this.preDetailList = res.data.items
_this.preLoading = false
}).catch(() => {
_this.preLoading = false
_this.$message.error("数据加载失败")
})
},
getCodeDetail(_this, row) {
if (row != null) {
_this.codeQuery.page = 1
_this.codeQuery.prescribeNum = row.code
}
_this.codeLoading = true;
materialPrescribePage(_this.codeQuery).then(res => {
_this.codeLoading = false
if (res.code != 20000) {
_this.$message.error(res.message)
return
}
_this.codeDetailList = res.data.list
_this.codeLoading = false
}).catch(() => {
_this.codeLoading = false
_this.$message.error("数据加载失败")
})
},
refreshCodesPanel(_this) { refreshCodesPanel(_this) {
@ -398,16 +358,6 @@ export default {
}); });
}, },
preHandleCurrentChange(val) {
this.filterQuery.page = val.page;
this.getPrescribeDetail(this, null);
},
codeHandleCurrentChange(val) {
this.filterQuery.page = val.page;
this.getCodeDetail(this, null);
},
getInputFocus(event) { getInputFocus(event) {
event.currentTarget.select(); event.currentTarget.select();
@ -474,18 +424,67 @@ export default {
}, },
addCode() { addCode() {
if (this.$isBlank(this.filterQuery.code)) {
this.filterQuery.code = this.scanCode.trim();
return;
}
if (this.$isBlank(this.filterQuery.code) && this.$isBlank(this.scanCode)) {
return;
}
let tagQuery = { let tagQuery = {
prescribeNum: this.formData.code, prescribeNum: this.formData.billNo,
code: this.filterQuery.code.trim(), code: this.filterQuery.code.trim(),
}; };
tagCode(tagQuery).then(res => { tagCode(tagQuery).then(res => {
this.loading = false this.loading = false
this.getList() if (res.code == 20000) {
this.formData.tagStatus = 2;
}
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
}) })
}, },
saveDraftOrder() {
this.$confirm('此操作将挂起当前正在处理单据,是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
draftOrder(this.formData).then(res => {
this.loading = false
if (res.code == 20000) {
this.formData = {tagStatus: -1};
}
}).catch(() => {
this.loading = false
})
}).catch(() => {
});
},
finishOrder() {
this.$confirm('是否确定完成此单据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
finishOrder(this.formData).then(res => {
this.loading = false
if (res.code == 20000) {
this.formData = {tagStatus: -1};
}
}).catch(() => {
this.loading = false
})
}).catch(() => {
});
},
selectPrescribe() { selectPrescribe() {
this.selectPrescriptionVisible = true; this.selectPrescriptionVisible = true;
}, },
@ -497,12 +496,15 @@ export default {
confirmSelect(row) { confirmSelect(row) {
this.selectPrescriptionVisible = false; this.selectPrescriptionVisible = false;
this.formData = row; this.formData = row;
this.curRow = row;
this.refreshCodesPanel(this);
}, },
printCodeResult(data, isSuccess) { printCodeResult(data, isSuccess) {
const resultParts = ["扫码解析结果:" + data.code]; const resultParts = ["扫码解析结果:" + data.code];
if (data.udi) { if (data.udi) {
resultParts.push("DI标识: " + data.udi); resultParts.push("层级标识: " + data.udi);
} }
if (data.batchNo) { if (data.batchNo) {
resultParts.push("批次号: " + data.batchNo); resultParts.push("批次号: " + data.batchNo);
@ -519,7 +521,7 @@ export default {
this.result = resultParts.join(" , "); this.result = resultParts.join(" , ");
}, },
handleCommand(command) { handleCommand(command) {
this.$message('click on item ' + command); // this.$message('click on item ' + command);
} }
}, },
created() { created() {
@ -533,6 +535,7 @@ export default {
this.formData.invCode = this.$store.getters.locInvCode; this.formData.invCode = this.$store.getters.locInvCode;
this.findCurWorkPlaces(); this.findCurWorkPlaces();
if (this.$route.query.workplaceId != null){ if (this.$route.query.workplaceId != null){
this.isLinkDisabled = true
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true
this.formData.workplaceCode = Number(this.$route.query.workplaceId); this.formData.workplaceCode = Number(this.$route.query.workplaceId);
} }

@ -8,8 +8,30 @@
> >
<el-card style="margin: 5px;"> <el-card style="margin: 5px;">
<el-row :gutter="0" v-if="isLinkDisabled">
<el-col :span="24" align="right">
<div class="inv-hos-title">
<span
style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;"
>仓库&nbsp:&nbsp{{ this.userInfo.inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName
}}</span>
<span
style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px"
>({{
this.userInfo.userName
}})</span>
</div>
</el-col>
</el-row>
<el-alert <el-alert
style="margin-top: 15px"
:title="msgTip" :title="msgTip"
:closable="false" :closable="false"
type="warning"> type="warning">
@ -310,6 +332,13 @@ export default {
}, },
data() { data() {
return { return {
isLinkDisabled: false,
userInfo:{
inv: this.$store.getters.locInvName,
deptName: this.$store.getters.locDeptName,
userName: this.$store.getters.name,
companyName: this.$store.getters.companyName,
},
workplaceId: null, workplaceId: null,
// //
orderFormData: { orderFormData: {
@ -1649,6 +1678,7 @@ export default {
this.init(); this.init();
if (this.$route.query.workplaceId != null){ if (this.$route.query.workplaceId != null){
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true
this.isLinkDisabled = true
this.workplaceId = this.$route.query.workplaceId this.workplaceId = this.$route.query.workplaceId
} }

@ -8,8 +8,30 @@
> >
<el-card style="margin: 5px;"> <el-card style="margin: 5px;">
<el-row :gutter="0" v-if="isLinkDisabled">
<el-col :span="24" align="right">
<div class="inv-hos-title">
<span
style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;"
>仓库&nbsp:&nbsp{{ this.userInfo.inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName
}}</span>
<span
style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px"
>({{
this.userInfo.userName
}})</span>
</div>
</el-col>
</el-row>
<el-alert <el-alert
style="margin-top: 15px"
:title="msgTip" :title="msgTip"
:closable="false" :closable="false"
type="warning"> type="warning">
@ -310,6 +332,13 @@ export default {
}, },
data() { data() {
return { return {
isLinkDisabled: false,
userInfo:{
inv: this.$store.getters.locInvName,
deptName: this.$store.getters.locDeptName,
userName: this.$store.getters.name,
companyName: this.$store.getters.companyName,
},
workplaceId: null, workplaceId: null,
// //
orderFormData: { orderFormData: {
@ -1649,6 +1678,7 @@ export default {
this.init(); this.init();
if (this.$route.query.workplaceId != null){ if (this.$route.query.workplaceId != null){
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true
this.isLinkDisabled = true
this.workplaceId = this.$route.query.workplaceId this.workplaceId = this.$route.query.workplaceId
} }

@ -1,5 +1,28 @@
<template> <template>
<div> <div>
<el-row :gutter="0" v-if="isLinkDisabled" style="margin-top: 15px">
<el-col :span="24" align="right">
<div class="inv-hos-title">
<span
style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;"
>仓库&nbsp:&nbsp{{ this.userInfo.inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName
}}</span>
<span
style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px"
>({{
this.userInfo.userName
}})</span>
</div>
</el-col>
</el-row>
<el-tabs type="border-card" style="margin: 15px"> <el-tabs type="border-card" style="margin: 15px">
<el-tab-pane label="拆零库存"> <el-tab-pane label="拆零库存">
@ -30,6 +53,22 @@ export default {
name: "PrescribeTagCode", name: "PrescribeTagCode",
components: { components: {
fifoPanel fifoPanel
},
data() {
return {
isLinkDisabled: false,
userInfo: {
inv: this.$store.getters.locInvName,
deptName: this.$store.getters.locDeptName,
userName: this.$store.getters.name,
companyName: this.$store.getters.companyName,
},
}
},
created() {
if (this.$route.query.workplaceId != null){
this.isLinkDisabled = true
}
} }
} }
</script> </script>

@ -1,5 +1,28 @@
<template> <template>
<div> <div>
<el-row :gutter="0" v-if="isLinkDisabled" style="margin-top: 15px">
<el-col :span="24" align="right">
<div class="inv-hos-title">
<span
style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;"
>仓库&nbsp:&nbsp{{ this.userInfo.inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName
}}</span>
<span
style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px"
>({{
this.userInfo.userName
}})</span>
</div>
</el-col>
</el-row>
<el-tabs type="border-card" style="margin: 15px"> <el-tabs type="border-card" style="margin: 15px">
<el-tab-pane label="拆零库存"> <el-tab-pane label="拆零库存">
@ -30,6 +53,22 @@ export default {
name: "PrescribeTagCode", name: "PrescribeTagCode",
components: { components: {
fifoPanel fifoPanel
},
data() {
return {
isLinkDisabled: false,
userInfo: {
inv: this.$store.getters.locInvName,
deptName: this.$store.getters.locDeptName,
userName: this.$store.getters.name,
companyName: this.$store.getters.companyName,
},
}
},
created() {
if (this.$route.query.workplaceId != null){
this.isLinkDisabled = true
}
} }
} }
</script> </script>

Loading…
Cancel
Save