feat: 页面跳转
parent
505084249d
commit
3f6a01eac1
@ -0,0 +1,464 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card>
|
||||||
|
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" class="query-form"
|
||||||
|
size="mini" label-width="100px">
|
||||||
|
<el-row style=" display:flex; flex-wrap: wrap; ">
|
||||||
|
<template v-for="(item, index) in queryList">
|
||||||
|
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)"
|
||||||
|
class="query-form-item"
|
||||||
|
:label="item.columnDesc+`:`" :key="item.id">
|
||||||
|
<el-input
|
||||||
|
v-model="filterQuery[item.columnName]"
|
||||||
|
:placeholder="item.columnDesc"
|
||||||
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
||||||
|
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)"
|
||||||
|
class="query-form-item"
|
||||||
|
:label="item.columnDesc+`:`">
|
||||||
|
<el-select v-model="filterQuery[item.columnName]"
|
||||||
|
:placeholder="item.columnDesc"
|
||||||
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
||||||
|
clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in item.lableRuleObj"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)"
|
||||||
|
class="query-form-item"
|
||||||
|
:label="item.columnDesc+`:`">
|
||||||
|
<el-select
|
||||||
|
v-model="filterQuery[item.columnName]"
|
||||||
|
:placeholder="item.columnDesc"
|
||||||
|
@change="executeFuc($event,'5',item.checkRules)"
|
||||||
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
||||||
|
filterable
|
||||||
|
remote
|
||||||
|
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
|
||||||
|
clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="item in options[item.clickFuc]"
|
||||||
|
:key="item.code"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.code"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)"
|
||||||
|
class="query-form-item"
|
||||||
|
:label="item.columnDesc+`:`">
|
||||||
|
<el-date-picker
|
||||||
|
:picker-options="pickerOptions"
|
||||||
|
v-model="actDateRange"
|
||||||
|
type="daterange"
|
||||||
|
format="yyyy 年 MM 月 dd 日"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
range-separator="至"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
></el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)"
|
||||||
|
class="query-form-item"
|
||||||
|
:label="item.columnDesc+`:`">
|
||||||
|
<el-date-picker
|
||||||
|
v-model="filterQuery[item.columnName]"
|
||||||
|
:style="`width:${item.width+'px'}`"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
||||||
|
type="date"
|
||||||
|
:placeholder="item.columnDesc"
|
||||||
|
></el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</template>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
<div class="top-right-btn">
|
||||||
|
<el-button-group>
|
||||||
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
||||||
|
<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-position" @click="bindWorkPlace"
|
||||||
|
>绑定工位
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
</el-button-group>
|
||||||
|
</div>
|
||||||
|
<el-divider style="margin: 15px"></el-divider>
|
||||||
|
<el-table v-loading="loading" :data="list" style="width: 100%;" border highlight-current-row
|
||||||
|
@row-click="(row) => executeFuc(row,'0',tableObj.handleChangeFuc)" ref="multipleTable"
|
||||||
|
:default-sort="defaultSort"
|
||||||
|
:row-style="{ height: '32px' }"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
@sort-change="handleSortChange">
|
||||||
|
<template v-for="(item, index) in tableHeader">
|
||||||
|
<el-table-column
|
||||||
|
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
|
||||||
|
type="index" :label="item.columnDesc"></el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="item.columnType == 'selection'"
|
||||||
|
type="selection"
|
||||||
|
:width="item.width"
|
||||||
|
:selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"
|
||||||
|
></el-table-column>
|
||||||
|
|
||||||
|
<el-table-column
|
||||||
|
v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"
|
||||||
|
:prop="item.columnName"
|
||||||
|
:label="item.columnDesc"
|
||||||
|
:sortable="item.sort"
|
||||||
|
:width="item.width"
|
||||||
|
:show-overflow-tooltip="item.tooltip"
|
||||||
|
:key="item.columnName"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="item.columnType == 'laber' && executeEval(row,item.expression,true)"
|
||||||
|
:prop="item.columnName"
|
||||||
|
:label="item.columnDesc"
|
||||||
|
:sortable="item.sort"
|
||||||
|
:width="item.width"
|
||||||
|
:show-overflow-tooltip="item.tooltip"
|
||||||
|
:key="item.columnName"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{
|
||||||
|
item.lableRuleObj[scope.row[item.columnName]]
|
||||||
|
}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="item.columnType == 'eltag' && executeEval(row,item.expression,true)"
|
||||||
|
:prop="item.columnName"
|
||||||
|
:label="item.columnDesc"
|
||||||
|
:sortable="item.sort"
|
||||||
|
:width="item.width"
|
||||||
|
:show-overflow-tooltip="item.tooltip"
|
||||||
|
:key="item.columnName"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag
|
||||||
|
:type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
|
||||||
|
<span>{{
|
||||||
|
item.lableRuleObj ? item.lableRuleObj[scope.row[item.columnName]] : scope.row[item.columnName]
|
||||||
|
}}</span>
|
||||||
|
</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"
|
||||||
|
:prop="item.columnName"
|
||||||
|
:label="item.columnDesc"
|
||||||
|
:width="item.width"
|
||||||
|
:key="item.columnName"
|
||||||
|
fixed="right"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"
|
||||||
|
:type="buttonItem.type"
|
||||||
|
:size="buttonItem.size"
|
||||||
|
:style="buttonItem.style"
|
||||||
|
:key="buttonItem"
|
||||||
|
v-if="executeEval(scope.row,buttonItem.hasPermi,true)"
|
||||||
|
:disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"
|
||||||
|
@click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"
|
||||||
|
>{{ buttonItem.name }}
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="item.columnType == 'text' && executeEval(row,item.expression,true)"
|
||||||
|
:prop="item.columnName"
|
||||||
|
:label="item.columnDesc"
|
||||||
|
:sortable="item.sort"
|
||||||
|
:width="item.width"
|
||||||
|
:show-overflow-tooltip="item.tooltip"
|
||||||
|
:key="item.columnName"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{
|
||||||
|
scope.row[item.columnName]
|
||||||
|
}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</template>
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:limit.sync="filterQuery.limit"
|
||||||
|
:page.sync="filterQuery.page"
|
||||||
|
@pagination="handleCurrentChange"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
<el-tabs type="border-card" style="margin: 15px">
|
||||||
|
<el-tab-pane label="处方使用耗材明细">
|
||||||
|
<prescribeOriginDiPanel
|
||||||
|
v-if="panelALive"
|
||||||
|
:prescribeData="curRow"
|
||||||
|
></prescribeOriginDiPanel>
|
||||||
|
</el-tab-pane>
|
||||||
|
<el-tab-pane label="原始处方明细">
|
||||||
|
<prescribeOriginPanel
|
||||||
|
v-if="panelALive"
|
||||||
|
:prescribeData="curRow"
|
||||||
|
></prescribeOriginPanel>
|
||||||
|
</el-tab-pane>
|
||||||
|
</el-tabs>
|
||||||
|
|
||||||
|
|
||||||
|
<el-dialog
|
||||||
|
title="绑定工位"
|
||||||
|
:visible.sync="bindWorkPlaceVisible"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:close-on-press-escape="false"
|
||||||
|
v-if="bindWorkPlaceVisible"
|
||||||
|
width="65%"
|
||||||
|
append-to-body
|
||||||
|
>
|
||||||
|
<bindWorkDialog
|
||||||
|
:prescribeList="this.multiplePreSelection"
|
||||||
|
:closeDialog="this.closeDialog"
|
||||||
|
></bindWorkDialog>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import addOrder from "@/views/inout/DialogCreateOrder";
|
||||||
|
import errOrder from "@/views/inout/IoCreateErrorOrder";
|
||||||
|
import {executeFuc, getHead} from "@/utils/customConfig";
|
||||||
|
import {convertDate} from "@/utils/date";
|
||||||
|
import {page as prescribePage, deleteDataByCode} from "@/api/basic/sicker/prescribeApi";
|
||||||
|
import bindWorkDialog from "@/views/collect/bindWorkDialog";
|
||||||
|
import prescribeOriginPanel from "./PannelOrderBiz";
|
||||||
|
import prescribeOriginDiPanel from "./PannelOrderBiz";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "prescribePanel",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
//界面配置相关
|
||||||
|
//患者处方
|
||||||
|
tableHeader: [],
|
||||||
|
queryList: [],
|
||||||
|
tableObj: [],
|
||||||
|
fromList: [],
|
||||||
|
//处方明细
|
||||||
|
tableHeader1: [],
|
||||||
|
queryList1: [],
|
||||||
|
tableObj1: [],
|
||||||
|
fromList1: [],
|
||||||
|
//处方使用耗材明细
|
||||||
|
tableHeader2: [],
|
||||||
|
queryList2: [],
|
||||||
|
tableObj2: [],
|
||||||
|
fromList2: [],
|
||||||
|
convertDateFun: convertDate,
|
||||||
|
//界面配置-------------end
|
||||||
|
|
||||||
|
showSearch: true,
|
||||||
|
filterQuery: {
|
||||||
|
billNo: null,
|
||||||
|
page: 1,
|
||||||
|
limit: 10,
|
||||||
|
},
|
||||||
|
defaultSort: {prop: 'createTime', order: 'desc'},
|
||||||
|
loading: false,
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
deleteData: {},
|
||||||
|
preLoading: false,
|
||||||
|
preDetailList: [],
|
||||||
|
preTotal: 0,
|
||||||
|
preQuery: {
|
||||||
|
prescribeCode: null,
|
||||||
|
page: 1,
|
||||||
|
limit: 10,
|
||||||
|
},
|
||||||
|
|
||||||
|
preDiLoading: false,
|
||||||
|
preDiDetailList: [],
|
||||||
|
preDiTotal: 0,
|
||||||
|
preDiQuery: {
|
||||||
|
prescribeCode: null,
|
||||||
|
page: 1,
|
||||||
|
limit: 10,
|
||||||
|
},
|
||||||
|
|
||||||
|
bindWorkPlaceVisible: false,
|
||||||
|
multiplePreSelection: [],
|
||||||
|
curRow: null,
|
||||||
|
panelALive: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
components: {
|
||||||
|
addOrder, errOrder, bindWorkDialog, prescribeOriginPanel, prescribeOriginDiPanel
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
//界面配置相关------------
|
||||||
|
executeFuc(row, type, clickFuc, value) {
|
||||||
|
return executeFuc(this, row, type, clickFuc, value);
|
||||||
|
},
|
||||||
|
executeEval(row, expression, defaultRet) {
|
||||||
|
if (expression) {
|
||||||
|
return eval(expression);
|
||||||
|
}
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
|
hideSearch() {
|
||||||
|
this.showSearch = !this.showSearch;
|
||||||
|
},
|
||||||
|
onReset() {
|
||||||
|
this.filterQuery = {};
|
||||||
|
this.actDateRange = [];
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
|
||||||
|
bindWorkPlace() {
|
||||||
|
if (this.multiplePreSelection.length == 0) {
|
||||||
|
this.$message.warning('请先选择处方!');
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.bindWorkPlaceVisible = true;
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
closeDialog() {
|
||||||
|
this.bindWorkPlaceVisible = false;
|
||||||
|
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.refreshCodesPanel(_this);
|
||||||
|
},
|
||||||
|
refreshCodesPanel(_this) {
|
||||||
|
_this.panelALive = false;
|
||||||
|
_this.$nextTick(() => {
|
||||||
|
_this.panelALive = true;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
deleteDialog(_this, row) {
|
||||||
|
_this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning",
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
_this.deleteOrders(row.code);
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
deleteOrders(data) {
|
||||||
|
this.loading = true;
|
||||||
|
this.deleteData.code = data;
|
||||||
|
deleteDataByCode(this.deleteData)
|
||||||
|
.then((response) => {
|
||||||
|
if (response.code == 20000) {
|
||||||
|
this.getList();
|
||||||
|
this.$message({
|
||||||
|
type: "success",
|
||||||
|
message: "删除成功!",
|
||||||
|
});
|
||||||
|
} else if (response.code == 520) {
|
||||||
|
this.$message.error(response.message);
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(response.message);
|
||||||
|
this.getList();
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
handleSelectionChange(val) {
|
||||||
|
this.multiplePreSelection = val;
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
getHead("prescribeAllot", "1").then((re) => {
|
||||||
|
// 处理返回的数据
|
||||||
|
this.tableObj = re.data;
|
||||||
|
this.tableHeader = re.data.tableList;
|
||||||
|
this.queryList = re.data.queryList;
|
||||||
|
this.fromList = re.data.fromList;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.query-form {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.query-form-item {
|
||||||
|
margin-right: 5px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,40 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-tabs type="border-card" style="margin: 15px">
|
||||||
|
|
||||||
|
<el-tab-pane label="已完成赋码单据">
|
||||||
|
<prescribePanel
|
||||||
|
style="margin: -15px"
|
||||||
|
></prescribePanel>
|
||||||
|
</el-tab-pane>
|
||||||
|
|
||||||
|
<el-tab-pane label="扫码查询">
|
||||||
|
<codePanel style="margin: -15px"
|
||||||
|
></codePanel>
|
||||||
|
</el-tab-pane>
|
||||||
|
|
||||||
|
</el-tabs>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import prescribePanel from "./PanelOrderEndSearch";
|
||||||
|
import codePanel from "./PanelOrderEndCodeSearch";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 已完成处方
|
||||||
|
*/
|
||||||
|
export default {
|
||||||
|
name: "PrescribeTagCode",
|
||||||
|
components: {
|
||||||
|
prescribePanel, codePanel
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
@ -0,0 +1,475 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-form :model="formData" class="order-el-form" ref="formData" label-width="120px">
|
||||||
|
<el-card>
|
||||||
|
<el-alert
|
||||||
|
:title="msgTip"
|
||||||
|
:closable="false"
|
||||||
|
type="warning">
|
||||||
|
</el-alert>
|
||||||
|
|
||||||
|
|
||||||
|
<el-row :gutter="0" style="margin-top: 15px">
|
||||||
|
<el-col :span="24" align="right">
|
||||||
|
<el-button-group>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click.native="selectPrescribe()"
|
||||||
|
>下一单据
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click.native="selectPrescribe()"
|
||||||
|
>选入单据
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click.native="selectPrescribe()"
|
||||||
|
>单据挂起
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click.native="selectPrescribe()"
|
||||||
|
>处理完成
|
||||||
|
</el-button>
|
||||||
|
|
||||||
|
<el-dropdown @command="handleCommand">
|
||||||
|
<el-button type="primary">
|
||||||
|
更多功能<i class="el-icon-arrow-down el-icon--right"></i>
|
||||||
|
</el-button>
|
||||||
|
<el-dropdown-menu slot="dropdown">
|
||||||
|
<el-dropdown-item divided @click.native="handleClick('IoCreateOrderBlank')">工位上货</el-dropdown-item>
|
||||||
|
<el-dropdown-item divided @click.native="handleClick('IoCreateOrderBlank')">工位退货</el-dropdown-item>
|
||||||
|
<el-dropdown-item divided @click.native="handleClick('ioSplitFifoCodeBlank')">工位存量</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>
|
||||||
|
</el-button-group>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<div style="border: 1px solid #ebeef5;border-radius: 2px;margin-top: 15px;padding: 15px">
|
||||||
|
<el-row :gutter="0" style="margin-top: 5px">
|
||||||
|
<el-col :span="20">
|
||||||
|
<el-form-item prop="code" label="扫码录入:" label-width="80px">
|
||||||
|
<el-input
|
||||||
|
id="inputer"
|
||||||
|
@focus="getInputFocus($event)"
|
||||||
|
@keypress.enter.native="enterKey($event)"
|
||||||
|
ref="inputRef"
|
||||||
|
style="ime-mode: disabled"
|
||||||
|
type="tel"
|
||||||
|
placeholder="请点击输入框进行扫码设置或者扫码录入"
|
||||||
|
v-model="scanCode"
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="2">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
size="mini"
|
||||||
|
@click.native.stop="addCode()"
|
||||||
|
style="margin-left: 15px"
|
||||||
|
>添加
|
||||||
|
</el-button>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-alert
|
||||||
|
title="扫码解析结果:"
|
||||||
|
:type="scanResultType"
|
||||||
|
:closable="false"
|
||||||
|
:description="result">
|
||||||
|
</el-alert>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<el-descriptions title="单据信息" :column="4" border style="margin-top: 15px">
|
||||||
|
<el-descriptions-item label="单据编号">{{ formData.code }}</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="业务来源">{{ formData.busType }}</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="往来信息">{{ formData.fromCorp }}</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="单据时间">{{ formData.billTime }}</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="单据备注">{{ formData.remark }}</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
<el-tabs type="border-card" style="margin: 15px">
|
||||||
|
<el-tab-pane label="手动扫码">
|
||||||
|
<PannelOrderBiz
|
||||||
|
v-if="panelALive"
|
||||||
|
:prescribeData="curRow"
|
||||||
|
></PannelOrderBiz>
|
||||||
|
|
||||||
|
</el-tab-pane>
|
||||||
|
|
||||||
|
<el-tab-pane label="自动赋码明细">
|
||||||
|
<prescribeCodePanel
|
||||||
|
v-if="panelALive"
|
||||||
|
:prescribeData="curRow"
|
||||||
|
></prescribeCodePanel>
|
||||||
|
</el-tab-pane>
|
||||||
|
|
||||||
|
<el-tab-pane label="拆零赋码明细">
|
||||||
|
<prescribeCodePanel
|
||||||
|
v-if="panelALive"
|
||||||
|
:prescribeData="curRow"
|
||||||
|
:fifoSplit="1"
|
||||||
|
></prescribeCodePanel>
|
||||||
|
</el-tab-pane>
|
||||||
|
|
||||||
|
<el-tab-pane label="整取赋码明细">
|
||||||
|
<prescribeCodePanel
|
||||||
|
v-if="panelALive"
|
||||||
|
:prescribeData="curRow"
|
||||||
|
:fifoSplit="2"
|
||||||
|
></prescribeCodePanel>
|
||||||
|
</el-tab-pane>
|
||||||
|
|
||||||
|
</el-tabs>
|
||||||
|
|
||||||
|
<el-dialog
|
||||||
|
title="选择处方"
|
||||||
|
:visible.sync="selectPrescriptionVisible"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:close-on-press-escape="false"
|
||||||
|
v-if="selectPrescriptionVisible"
|
||||||
|
width="65%"
|
||||||
|
append-to-body
|
||||||
|
>
|
||||||
|
<selectPrescribeDialog
|
||||||
|
:confirmSelect="this.confirmSelect"
|
||||||
|
:closeDialog="this.closeDialog"
|
||||||
|
></selectPrescribeDialog>
|
||||||
|
</el-dialog>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import addOrder from "@/views/inout/DialogCreateOrder";
|
||||||
|
import errOrder from "@/views/inout/IoCreateErrorOrder";
|
||||||
|
import {executeFuc, getHead} from "@/utils/customConfig";
|
||||||
|
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/prescribe/selectPrescribeDialog";
|
||||||
|
import prescribeCodePanel from "./PanelOrderTagCode";
|
||||||
|
import PannelOrderBiz from "./PannelOrderBiz";
|
||||||
|
|
||||||
|
import {enterCodeWeb} from "@/api/inout/order";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
/**
|
||||||
|
* 处理处方
|
||||||
|
*/
|
||||||
|
name: "prescribeTagCodeDeal",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
//界面配置相关
|
||||||
|
//患者处方
|
||||||
|
workplaceId: this.$route.query.workplaceId,
|
||||||
|
loading: false,
|
||||||
|
tableHeader: [],
|
||||||
|
queryList: [],
|
||||||
|
tableObj: [],
|
||||||
|
fromList: [],
|
||||||
|
convertDateFun: convertDate,
|
||||||
|
//界面配置-------------end
|
||||||
|
|
||||||
|
showSearch: true,
|
||||||
|
filterQuery: {
|
||||||
|
billNo: null,
|
||||||
|
page: 1,
|
||||||
|
limit: 10,
|
||||||
|
},
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
defaultSort: {prop: 'createTime', order: 'desc'},
|
||||||
|
|
||||||
|
formData: {},
|
||||||
|
selectPrescriptionVisible: false,
|
||||||
|
curRow: null,
|
||||||
|
panelALive: false,
|
||||||
|
|
||||||
|
//扫码相关
|
||||||
|
scanCode: "",
|
||||||
|
isSuccess: false,
|
||||||
|
result: " \n",
|
||||||
|
msgTip: "信息提醒:",
|
||||||
|
originCode: "",
|
||||||
|
checkSuccess: false,
|
||||||
|
scanResultType: "success"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
components: {
|
||||||
|
addOrder, errOrder, selectPrescribeDialog, prescribeCodePanel, PannelOrderBiz
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleClick(blankName) {
|
||||||
|
// let url = window.location.origin+`#/tagCodeBlank?workplaceId=`+ this.stationList[index].workplaceId
|
||||||
|
let url = window.location.origin+`#/`+ blankName+`?workplaceId=`+ this.workplaceId
|
||||||
|
// this.$router.push( workplaceId)
|
||||||
|
window.open(url, '_blank');
|
||||||
|
},
|
||||||
|
//界面配置相关------------
|
||||||
|
executeFuc(row, type, clickFuc, value) {
|
||||||
|
return executeFuc(this, row, type, clickFuc, value);
|
||||||
|
},
|
||||||
|
executeEval(row, expression, defaultRet) {
|
||||||
|
if (expression) {
|
||||||
|
return eval(expression);
|
||||||
|
}
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
|
hideSearch() {
|
||||||
|
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) {
|
||||||
|
_this.panelALive = false;
|
||||||
|
_this.$nextTick(() => {
|
||||||
|
_this.panelALive = true;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
preHandleCurrentChange(val) {
|
||||||
|
this.filterQuery.page = val.page;
|
||||||
|
this.getPrescribeDetail(this, null);
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
codeHandleCurrentChange(val) {
|
||||||
|
this.filterQuery.page = val.page;
|
||||||
|
this.getCodeDetail(this, null);
|
||||||
|
},
|
||||||
|
|
||||||
|
getInputFocus(event) {
|
||||||
|
event.currentTarget.select();
|
||||||
|
},
|
||||||
|
|
||||||
|
enterKey() {
|
||||||
|
this.checkSuccess = true;
|
||||||
|
this.filterQuery.code = this.scanCode;
|
||||||
|
let tQuery = {
|
||||||
|
originCode: this.originCode,
|
||||||
|
code: this.filterQuery.code.trim(),
|
||||||
|
};
|
||||||
|
enterCodeWeb(tQuery).then((response) => {
|
||||||
|
if (response.code === 20000) {
|
||||||
|
this.$refs.inputRef.focus();
|
||||||
|
this.$refs.inputRef.select();
|
||||||
|
this.isSuccess = true;
|
||||||
|
this.printCodeResult(response.data)
|
||||||
|
this.filterQuery.code = response.data.code;
|
||||||
|
this.addCode();
|
||||||
|
} else {
|
||||||
|
if (response.code == 502) {
|
||||||
|
this.checkSuccess = false;
|
||||||
|
this.isSuccess = false;
|
||||||
|
this.printCodeResult(response.data)
|
||||||
|
this.filterQuery.code = response.data.code;
|
||||||
|
this.originCode = this.filterQuery.code;
|
||||||
|
} else if (response.code == 501) {
|
||||||
|
this.checkSuccess = false;
|
||||||
|
this.$message.error(response.message);
|
||||||
|
} else if (response.code == 503) {
|
||||||
|
this.checkSuccess = false;
|
||||||
|
this.isSuccess = false;
|
||||||
|
this.printCodeResult(response.data)
|
||||||
|
this.filterQuery.code = response.data.code;
|
||||||
|
this.$confirm(response.message, "提示", {
|
||||||
|
type: "warning",
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.filterQuery.code = response.data.code;
|
||||||
|
this.addCode();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.filterQuery.code = response.data.code;
|
||||||
|
});
|
||||||
|
} else if (response.code == 508) {
|
||||||
|
this.originCode = "";
|
||||||
|
this.filterQuery.code = "01" + response.data.nameCode;
|
||||||
|
this.originCode = this.filterQuery.code;
|
||||||
|
} else {
|
||||||
|
this.$alert(response.message, "提示", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
type: "warning",
|
||||||
|
closeOnClickModal: true,
|
||||||
|
callback: (action) => {
|
||||||
|
this.$refs.inputRef.focus();
|
||||||
|
this.$refs.inputRef.select();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
addCode() {
|
||||||
|
let tagQuery = {
|
||||||
|
prescribeNum: this.formData.code,
|
||||||
|
code: this.filterQuery.code.trim(),
|
||||||
|
};
|
||||||
|
tagCode(tagQuery).then(res => {
|
||||||
|
this.loading = false
|
||||||
|
this.getList()
|
||||||
|
}).catch(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
selectPrescribe() {
|
||||||
|
this.selectPrescriptionVisible = true;
|
||||||
|
},
|
||||||
|
|
||||||
|
closeDialog() {
|
||||||
|
this.selectPrescriptionVisible = false;
|
||||||
|
},
|
||||||
|
|
||||||
|
confirmSelect(row) {
|
||||||
|
this.selectPrescriptionVisible = false;
|
||||||
|
this.formData = row;
|
||||||
|
},
|
||||||
|
printCodeResult(data, isSuccess) {
|
||||||
|
const resultParts = ["扫码解析结果:" + data.code];
|
||||||
|
|
||||||
|
if (data.udi) {
|
||||||
|
resultParts.push("DI标识: " + data.udi);
|
||||||
|
}
|
||||||
|
if (data.batchNo) {
|
||||||
|
resultParts.push("批次号: " + data.batchNo);
|
||||||
|
}
|
||||||
|
if (data.produceDate) {
|
||||||
|
resultParts.push("生产日期: " + data.produceDate);
|
||||||
|
}
|
||||||
|
if (data.expireDate) {
|
||||||
|
resultParts.push("失效日期: " + data.expireDate);
|
||||||
|
}
|
||||||
|
if (data.serialNo) {
|
||||||
|
resultParts.push("序列号: " + data.serialNo);
|
||||||
|
}
|
||||||
|
this.result = resultParts.join(" , ");
|
||||||
|
},
|
||||||
|
handleCommand(command) {
|
||||||
|
this.$message('click on item ' + command);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
getHead("prescribeTagCodeDeal", "1").then((re) => {
|
||||||
|
// 处理返回的数据
|
||||||
|
this.tableObj = re.data;
|
||||||
|
this.tableHeader = re.data.tableList;
|
||||||
|
this.queryList = re.data.queryList;
|
||||||
|
this.fromList = re.data.fromList;
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.el-col {
|
||||||
|
margin-top: -5px;
|
||||||
|
margin-bottom: -5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dropdown {
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dropdown + .el-dropdown {
|
||||||
|
margin-left: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-icon-arrow-down {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
</style>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,39 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-tabs type="border-card" style="margin: 15px">
|
||||||
|
|
||||||
|
<el-tab-pane label="拆零库存">
|
||||||
|
<fifoPanel
|
||||||
|
style="margin: -15px"
|
||||||
|
:panelType="1"
|
||||||
|
></fifoPanel>
|
||||||
|
</el-tab-pane>
|
||||||
|
|
||||||
|
<el-tab-pane label="整取库存">
|
||||||
|
<fifoPanel
|
||||||
|
style="margin: -15px"
|
||||||
|
:panelType="2"
|
||||||
|
></fifoPanel>
|
||||||
|
</el-tab-pane>
|
||||||
|
|
||||||
|
</el-tabs>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import fifoPanel from "./IoSplitFifoCodePanel";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "PrescribeTagCode",
|
||||||
|
components: {
|
||||||
|
fifoPanel
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
Loading…
Reference in New Issue