界面优化

20240912_adapter_z
anthonywj 11 months ago
parent e03b76929d
commit 6bd0ca936d

@ -26,3 +26,33 @@ export function deleteByOrder(query) {
}); });
} }
/**
* 手动扫码明细
* @param query
* @returns {AxiosPromise}
*/
export function manualCodeDetail(query) {
return axios({
url: "/udiwms/ioSplit/collect/manual/code/list",
method: "get",
params: query
});
}
/**
* 自动扫码明细
* @param query
* @returns {AxiosPromise}
*/
export function autoCodeDetail(query) {
return axios({
url: "/udiwms/ioSplit/collect/auto/order/filter",
method: "get",
params: query
});
}

@ -2643,7 +2643,6 @@ export default {
selectUnBindHospProduct, selectUnBindHospProduct,
}, },
created() { created() {
// debugger
// if (this.isChoose != null) // if (this.isChoose != null)
// this.isSelect = this.isChoose; // this.isSelect = this.isChoose;
this.vueRouteSource = this.$route.query.vueRouteSource; this.vueRouteSource = this.$route.query.vueRouteSource;

@ -170,7 +170,7 @@
</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="扫码详情">
<PannelOrderBiz <PannelOrderBiz
v-if="panelALive" v-if="panelALive"
:dealStatus="2" :dealStatus="2"
@ -179,14 +179,15 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="自动赋码明细"> <el-tab-pane label="码明细">
<prescribeCodePanel <prescribeCodePanel
v-if="panelALive" v-if="panelALive"
:fifoSplit="3"
:prescribeData="curRow" :prescribeData="curRow"
></prescribeCodePanel> ></prescribeCodePanel>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="拆零赋码明细"> <el-tab-pane label="拆零明细">
<prescribeCodePanel <prescribeCodePanel
v-if="panelALive" v-if="panelALive"
:prescribeData="curRow" :prescribeData="curRow"
@ -194,7 +195,7 @@
></prescribeCodePanel> ></prescribeCodePanel>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="整取赋码明细"> <el-tab-pane label="整取明细">
<prescribeCodePanel <prescribeCodePanel
v-if="panelALive" v-if="panelALive"
:prescribeData="curRow" :prescribeData="curRow"
@ -432,13 +433,15 @@ export default {
return; return;
} }
let tagQuery = { let tagQuery = {
prescribeNum: this.formData.billNo, billNo: 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
if (res.code == 20000) { if (res.code == 20000) {
this.formData.tagStatus = 2; this.formData.tagStatus = 2;
} else {
this.$message.error(res.message)
} }
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
@ -501,7 +504,7 @@ export default {
}, },
printCodeResult(data, isSuccess) { printCodeResult(data, isSuccess) {
const resultParts = ["扫码解析结果" + data.code]; const resultParts = ["追溯码" + data.code+"\r\n"];
if (data.udi) { if (data.udi) {
resultParts.push("层级标识: " + data.udi); resultParts.push("层级标识: " + data.udi);

@ -350,7 +350,7 @@
</el-form> </el-form>
<el-table v-loading="bizDetailLoading" :data="codeDetailList" style="width: 100%" border <el-table v-loading="bizDetailLoading" :data="codeDetailList" style="width: 100%" border
row-key="id" row-key="id" :row-style="{height:'32px'}"
> >
<template v-for="(item, index) in tableHeader2"> <template v-for="(item, index) in tableHeader2">
<el-table-column <el-table-column
@ -559,7 +559,7 @@
</el-form> </el-form>
<el-table v-loading="resultDetailLoading" :data="resultDetailList" style="width: 100%" border <el-table v-loading="resultDetailLoading" :data="resultDetailList" style="width: 100%" border
row-key="id" row-key="id" :row-style="{height:'32px'}"
> >
<template v-for="(item, index) in tableHeader4"> <template v-for="(item, index) in tableHeader4">
<el-table-column <el-table-column

@ -212,6 +212,7 @@
<el-tab-pane label="扫码明细"> <el-tab-pane label="扫码明细">
<prescribeCodePanel <prescribeCodePanel
v-if="panelALive" v-if="panelALive"
:fifoSplit="3"
:prescribeData="curRow" :prescribeData="curRow"
></prescribeCodePanel> ></prescribeCodePanel>
</el-tab-pane> </el-tab-pane>

@ -210,6 +210,7 @@
<el-tab-pane label="扫码明细"> <el-tab-pane label="扫码明细">
<prescribeCodePanel <prescribeCodePanel
v-if="panelALive" v-if="panelALive"
:fifoSplit="3"
:prescribeData="curRow" :prescribeData="curRow"
></prescribeCodePanel> ></prescribeCodePanel>
</el-tab-pane> </el-tab-pane>

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<el-table v-loading="codeLoading" :data="codeDetailList" style="width: 100%" border> <el-table v-loading="codeLoading" :data="codeDetailList" style="width: 100%" :row-style="{height:'32px'}" border>
<template v-for="(item, index) in tableHeader2"> <template v-for="(item, index) in tableHeader2">
<el-table-column <el-table-column
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)" v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
@ -126,7 +126,7 @@
<script> <script>
import {convertDate} from "@/utils/date"; import {convertDate} from "@/utils/date";
import {executeFuc, getHead} from "@/utils/customConfig"; import {executeFuc, getHead} from "@/utils/customConfig";
import {materialPrescribePage} from "@/api/inout/splitCode"; import {autoCodeDetail, manualCodeDetail} from "@/api/collect/collectOrder";
export default { export default {
@ -140,7 +140,7 @@ export default {
default: null, default: null,
required: true required: true
}, },
//1:2:; //1:2:;3
fifoSplit: { fifoSplit: {
type: Object, type: Object,
default: null, default: null,
@ -187,20 +187,34 @@ export default {
this.query.sort = 'asc' this.query.sort = 'asc'
} }
this.query.orderBy = column.prop; this.query.orderBy = column.prop;
this.getList(); this.getList(this);
}, },
///------------end ///------------end
getList(_this) { getList(_this) {
if (this.prescribeData == null) if (_this.prescribeData == null)
return return
if (this.prescribeData != null) { if (_this.prescribeData != null) {
_this.codeQuery.page = 1 _this.codeQuery.page = 1
_this.codeQuery.prescribeNum = this.prescribeData.code _this.codeQuery.orderIdFk = this.prescribeData.billNo
} }
_this.codeLoading = true; _this.codeLoading = true;
if (_this.fifoSplit == 3) {
manualCodeDetail(_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("数据加载失败")
})
} else {
_this.codeQuery.fifoSplit = this.fifoSplit _this.codeQuery.fifoSplit = this.fifoSplit
materialPrescribePage(_this.codeQuery).then(res => { autoCodeDetail(_this.codeQuery).then(res => {
_this.codeLoading = false _this.codeLoading = false
if (res.code != 20000) { if (res.code != 20000) {
_this.$message.error(res.message) _this.$message.error(res.message)
@ -212,6 +226,8 @@ export default {
_this.codeLoading = false _this.codeLoading = false
_this.$message.error("数据加载失败") _this.$message.error("数据加载失败")
}) })
}
}, },
codeHandleCurrentChange(val) { codeHandleCurrentChange(val) {
this.filterQuery.page = val.page; this.filterQuery.page = val.page;
@ -227,7 +243,7 @@ export default {
this.tableHeader2 = re.data.tableList; this.tableHeader2 = re.data.tableList;
this.queryList2 = re.data.queryList; this.queryList2 = re.data.queryList;
this.fromList2 = re.data.fromList; this.fromList2 = re.data.fromList;
this.getList(); this.getList(this);
}); });
} }

Loading…
Cancel
Save