代码备份

busUser
anthonywj 2 years ago
parent c3570165dd
commit ba46f6e41a

@ -1,6 +1,6 @@
{ {
"BASE_URL": "http://192.168.0.166:9996", "BASE_URL": "http://121.36.152.129:9150/SPMS_SERVER/",
"SERVER_IP": "http://192.168.0.166:9996", "SERVER_IP": "http://121.36.152.129:9150/SPMS_SERVER/",
"hosp_name": "云霄县中医院" "hosp_name": "云霄县中医院"
} }

@ -1,192 +1,192 @@
<template> <template>
<div> <div>
<el-card class="el-card"> <el-card class="el-card">
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini" @submit.native.prevent> <el-form :inline="true" :model="filterQuery" class="query-form" size="mini" @submit.native.prevent>
<el-form-item class="query-form-item" label-width="100px"> <el-form-item class="query-form-item" label-width="100px">
<el-input <el-input
v-model="filterQuery.sickAd" v-model="filterQuery.sickAd"
placeholder="请输入病人住院号" placeholder="请输入病人住院号"
clearable clearable
style="width: 500px" style="width: 500px"
@keypress.enter.native="enterKey($event)" @keypress.enter.native="enterKey($event)"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" icon="search" @click="getList" <el-button type="primary" icon="search" @click="getList"
>查询 >查询
</el-button> </el-button>
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table <el-table
v-loading="loading" v-loading="loading"
:data="list" :data="list"
style="width: 100%" style="width: 100%"
@row-click="getOrderDetail" @row-click="getOrderDetail"
highlight-current-row highlight-current-row
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="扫码单据类型" prop="action"> <el-table-column label="扫码单据类型" prop="action">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getActionName(scope.row.action) }}</span> <span>{{ getActionName(scope.row.action) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="订单号" label="订单号"
prop="id" prop="id"
show-overflow-tooltip="true" show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column label="来源" prop="fromType"> <el-table-column label="来源" prop="fromType">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ fromTypeMap[scope.row.fromType] }}</span> <span>{{ fromTypeMap[scope.row.fromType] }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="往来单位" prop="fromCorp" width="250"> <el-table-column label="往来单位" prop="fromCorp" width="250">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="创建时间" label="创建时间"
prop="actDate" prop="actDate"
width="150" width="150"
show-overflow-tooltip="true" show-overflow-tooltip="true"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <i class="el-icon-time"></i>
<span>{{ scope.row.actDate }}</span> <span>{{ scope.row.actDate }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="操作" fixed="right" width="120">--> <!-- <el-table-column label="操作" fixed="right" width="120">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-button--> <!-- <el-button-->
<!-- type="text"--> <!-- type="text"-->
<!-- size="small"--> <!-- size="small"-->
<!-- @click.native.stop="intentDetail(scope.row)"--> <!-- @click.native.stop="intentDetail(scope.row)"-->
<!-- >详情--> <!-- >详情-->
<!-- </el-button--> <!-- </el-button-->
<!-- >--> <!-- >-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
</el-table> </el-table>
<el-pagination <el-pagination
:page-size="filterQuery.limit" :page-size="filterQuery.limit"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:current-page="filterQuery.page" :current-page="filterQuery.page"
:total="total" :total="total"
></el-pagination> ></el-pagination>
</el-card> </el-card>
<el-card class="el-card" v-if="true" id="printJS-form"> <el-card class="el-card" v-if="true" id="printJS-form">
<el-table <el-table
v-loading="loading" v-loading="loading"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
:data="detailList" :data="detailList"
style="width: 100%" style="width: 100%"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column <el-table-column
label="UDI码" label="UDI码"
prop="code" prop="code"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="产品通用名" label="产品通用名"
prop="coName" prop="coName"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="包装规格" label="包装规格"
prop="packSpec" prop="packSpec"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
width="100" width="100"
label="批次号" label="批次号"
prop="batchNo" prop="batchNo"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="生产日期" label="生产日期"
prop="productDate" prop="productDate"
width="100" width="100"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="失效日期" label="失效日期"
prop="expireDate" prop="expireDate"
width="100" width="100"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="生产企业" label="生产企业"
prop="productCompany" prop="productCompany"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="注册/备案凭证号" label="注册/备案凭证号"
prop="authCode" prop="authCode"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column label="操作" fixed="right" width="120"> <el-table-column label="操作" fixed="right" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native.stop="intentDetail(scope.row)" @click.native.stop="intentDetail(scope.row)"
>流向详情 >流向详情
</el-button </el-button
> >
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-card> </el-card>
<el-dialog <el-dialog
title="单号详情" title="单号详情"
:visible.sync="codeDetailVisible" :visible.sync="codeDetailVisible"
width="80%" width="80%"
v-if="codeDetailVisible" v-if="codeDetailVisible"
> >
<codeDetail <codeDetail
:idQuery="idQuery" :idQuery="idQuery"
v-on:closeDetailDialog="closeDetailDialog" v-on:closeDetailDialog="closeDetailDialog"
></codeDetail> ></codeDetail>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="UDI码流向" title="UDI码流向"
:visible.sync="udiCodeTraceVisible" :visible.sync="udiCodeTraceVisible"
width="80%" width="80%"
v-if="udiCodeTraceVisible" v-if="udiCodeTraceVisible"
> >
<udiCodeTrace <udiCodeTrace
:udiCode="udiCode" :udiCode="udiCode"
:diloadTrue="false" :diloadTrue="false"
v-on:closeDetailDialog="closeDetailDialog" v-on:closeDetailDialog="closeDetailDialog"
></udiCodeTrace> ></udiCodeTrace>
</el-dialog> </el-dialog>
<el-dialog title="校验信息" :visible.sync="errDialogVisible" width="30%"> <el-dialog title="校验信息" :visible.sync="errDialogVisible" width="30%">
<span>{{ errorDetail }}</span> <span>{{ errorDetail }}</span>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="errDialogVisible = false" <el-button type="primary" @click="errDialogVisible = false"
> </el-button > </el-button
> >
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { import {
orderDetail, orderDetail,
} from "../../api/warehouse/order"; } from "../../api/warehouse/order";
import {repeatCheck} from "../../api/erp/erpOrder"; import {repeatCheck} from "../../api/erp/erpOrder";
import draggable from "vuedraggable"; import draggable from "vuedraggable";
@ -198,287 +198,287 @@ import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import A from "@/plugin/KeyScaner"; import A from "@/plugin/KeyScaner";
export default { export default {
name: "sickerUdiTraceOrder", name: "sickerUdiTraceOrder",
data() { data() {
return { return {
query: { query: {
code: null, code: null,
batchNo: null, batchNo: null,
productIdFk: null, productIdFk: null,
customerId: null, customerId: null,
page: 1, page: 1,
limit: 20, limit: 20,
supId: null, supId: null,
}, },
sitcomScan: false, sitcomScan: false,
checkStatus: { checkStatus: {
1: "校验异常", 1: "校验异常",
0: "未校验", 0: "未校验",
2: "正常", 2: "正常",
}, },
fromOptions: [], fromOptions: [],
erpCheckStatus: { erpCheckStatus: {
1: "校验异常", 1: "校验异常",
0: "未校验", 0: "未校验",
2: "校验成功", 2: "校验成功",
}, },
fromTypeMap: { fromTypeMap: {
"1": "UDIMS平台", "1": "UDIMS平台",
"2": "网页新增", "2": "网页新增",
"3": "pda即时校验", "3": "pda即时校验",
"4": "pda未校验", "4": "pda未校验",
"5": "pc端扫码精灵", "5": "pc端扫码精灵",
"6": "缺量补录单据", "6": "缺量补录单据",
"7": "UDI供应商平台", "7": "UDI供应商平台",
"8": "平衡补录单据", "8": "平衡补录单据",
"10": "手动补单" "10": "手动补单"
}, },
// //
list: [], list: [],
detailList: [], detailList: [],
filterQuery: { filterQuery: {
sickAd: null, sickAd: null,
page: 1, page: 1,
limit: 20, limit: 20,
}, },
detailQuery: { detailQuery: {
orderId: "", orderId: "",
}, },
deleteData: { deleteData: {
id: "", id: "",
}, },
idQuery: { idQuery: {
id: "", id: "",
}, },
curIndex: "", curIndex: "",
adListNoDataText: "无数据", adListNoDataText: "无数据",
codeDetailVisible: false, codeDetailVisible: false,
udiCodeTraceVisible: false, udiCodeTraceVisible: false,
udiCode: null, udiCode: null,
total: 0, total: 0,
loading: false, loading: false,
index: null, index: null,
formName: null, formName: null,
orderId: "", orderId: "",
formMap: { formMap: {
add: "新增", add: "新增",
edit: "编辑", edit: "编辑",
}, },
exportQuery: { exportQuery: {
orderId: "", orderId: "",
exportStatus: "", exportStatus: "",
}, },
uploadQuery: { uploadQuery: {
orderId: "", orderId: "",
}, },
busTypes: [], busTypes: [],
multipleSelection: [], multipleSelection: [],
dialogTableVisible: false, dialogTableVisible: false,
formLoading: false, formLoading: false,
formVisible: false, formVisible: false,
deleteLoading: false, deleteLoading: false,
addDialogVisible: false, addDialogVisible: false,
errDialogVisible: false, errDialogVisible: false,
}; };
},
components: {
draggable,
codeDetail,
udiCodeTrace,
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
code: null,
batchNo: null,
productIdFk: null,
customerId: null,
page: 1,
limit: 20,
supId: null,
};
this.actDateRange = [];
this.getList();
}, },
components: {
draggable,
codeDetail,
udiCodeTrace,
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
code: null,
batchNo: null,
productIdFk: null,
customerId: null,
page: 1,
limit: 20,
supId: null,
};
this.actDateRange = [];
this.getList();
},
enterKey(event) {
this.onSubmit();
},
onSubmit() {
this.getList();
},
handleSizeChange(val) {
this.filterQuery.limit = val;
this.getList();
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
handleErrorDetail(poistion) { enterKey(event) {
var mOrder = this.list[poistion]; this.onSubmit();
this.errorDetail = mOrder.remark; },
this.errDialogVisible = true; onSubmit() {
}, this.getList();
findMethod(query) { },
this.fromOptions = []; handleSizeChange(val) {
let cQuery = { this.filterQuery.limit = val;
key: query, this.getList();
}; },
getBasicUnitMaintains(cQuery) handleCurrentChange(val) {
.then((response) => { this.filterQuery.page = val;
this.loading = false; this.getList();
this.fromOptions = response.data.page.list || []; },
}) handleSelectionChange(val) {
.catch(() => { this.multipleSelection = val;
this.loading = false; },
});
},
//
getList() {
this.loading = true;
if (!this.$isBlank(this.filterQuery.sickAd)) {
let code = this.filterQuery.sickAd;
this.filterQuery.sickAd = code.replace("\r", "")
}
filterSickTrace(this.filterQuery)
.then((response) => {
if (response.code == 20000) {
this.loading = false;
this.list = response.data.list || [];
this.detailList = [];
this.total = response.data.total || 0;
} else {
this.loading = false;
this.list = [];
this.detailList = [];
this.total = 0;
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
//
getOrderDetail(row) {
this.loading = true;
this.detailQuery = {
orderId: row.id,
showType: 1,
};
this.refresgOrderDetail();
},
refresgOrderDetail() {
orderDetail(this.detailQuery)
.then((response) => {
this.loading = false;
this.detailList = response.data || [];
})
.catch(() => {
this.loading = false;
this.detailList = [];
});
},
intentDetail(row) {
// this.codeDetailVisible = true;
this.udiCode = row.code;
this.udiCodeTraceVisible = true;
this.idQuery.id = row.id;
},
tableRowClassName({row, rowIndex}) { handleErrorDetail(poistion) {
if (row.reCount === row.count) { var mOrder = this.list[poistion];
return "success-row"; this.errorDetail = mOrder.remark;
this.errDialogVisible = true;
},
findMethod(query) {
this.fromOptions = [];
let cQuery = {
key: query,
};
getBasicUnitMaintains(cQuery)
.then((response) => {
this.loading = false;
this.fromOptions = response.data.page.list || [];
})
.catch(() => {
this.loading = false;
});
},
//
getList() {
this.loading = true;
if (!this.$isBlank(this.filterQuery.sickAd)) {
let code = this.filterQuery.sickAd;
this.filterQuery.sickAd = code.replace("\r", "")
}
filterSickTrace(this.filterQuery)
.then((response) => {
if (response.code == 20000) {
this.loading = false;
this.list = response.data.list || [];
this.detailList = [];
this.total = response.data.total || 0;
} else { } else {
return "warning-row"; this.loading = false;
this.list = [];
this.detailList = [];
this.total = 0;
this.$message.error(response.message);
} }
},
closeDetailDialog(val) { })
this.codeDetailVisible = false; .catch(() => {
this.udiCodeTraceVisible = false; this.loading = false;
}, this.list = [];
cancelDialog() { this.total = 0;
this.addDialogVisible = false; });
},
importOrder(row) {
this.orderId = row.id;
this.addDialogVisible = true;
},
getBusType() {
let query = {
enabled: true,
};
getBussinessType(query)
.then((response) => {
this.busTypes = response.data.list || [];
this.filterQuery.billAction = this.busTypes[0].action;
})
.catch(() => {
});
},
getActionName(action) {
for (let i = 0; i < this.busTypes.length; i++) {
if (this.busTypes[i].action === action) {
return this.busTypes[i].name;
}
}
},
}, },
filters: { //
statusFilterType(status) { getOrderDetail(row) {
const statusMap = { this.loading = true;
false: "success", this.detailQuery = {
true: "danger", orderId: row.id,
}; showType: 1,
return statusMap[status]; };
}, this.refresgOrderDetail();
},
refresgOrderDetail() {
orderDetail(this.detailQuery)
.then((response) => {
this.loading = false;
this.detailList = response.data || [];
})
.catch(() => {
this.loading = false;
this.detailList = [];
});
},
intentDetail(row) {
// this.codeDetailVisible = true;
this.udiCode = row.code;
this.udiCodeTraceVisible = true;
this.idQuery.id = row.id;
}, },
mounted() {
// document.body.ondrop = function (event) {
// event.preventDefault();
// event.stopPropagation();
// };
// var that = this;
// var inputer = document.getElementById("inputer");
// window.sc = new A.KeyScaner(inputer);
// sc.onInput = function (text) {
// if (text.includes("delete")) {
// that.filterQuery.sickAd = "";
// return;
// }
// if (that.sitcomScan) {
// that.filterQuery.sickAd = that.filterQuery.sickAd;
// } else {
// that.filterQuery.sickAd = text;
// }
// };
inputer.focus();//divtabindexdocumentBody
tableRowClassName({row, rowIndex}) {
if (row.reCount === row.count) {
return "success-row";
} else {
return "warning-row";
}
}, },
created() {
this.getBusType(); closeDetailDialog(val) {
let query = this.$route.query; this.codeDetailVisible = false;
this.query = Object.assign(this.query, query); this.udiCodeTraceVisible = false;
this.query.limit = parseInt(this.query.limit);
//
// this.getList();
}, },
cancelDialog() {
this.addDialogVisible = false;
},
importOrder(row) {
this.orderId = row.id;
this.addDialogVisible = true;
},
getBusType() {
let query = {
enabled: true,
};
getBussinessType(query)
.then((response) => {
this.busTypes = response.data.list || [];
this.filterQuery.billAction = this.busTypes[0].action;
})
.catch(() => {
});
},
getActionName(action) {
for (let i = 0; i < this.busTypes.length; i++) {
if (this.busTypes[i].action === action) {
return this.busTypes[i].name;
}
}
},
},
filters: {
statusFilterType(status) {
const statusMap = {
false: "success",
true: "danger",
};
return statusMap[status];
},
},
mounted() {
// document.body.ondrop = function (event) {
// event.preventDefault();
// event.stopPropagation();
// };
// var that = this;
// var inputer = document.getElementById("inputer");
// window.sc = new A.KeyScaner(inputer);
// sc.onInput = function (text) {
// if (text.includes("delete")) {
// that.filterQuery.sickAd = "";
// return;
// }
// if (that.sitcomScan) {
// that.filterQuery.sickAd = that.filterQuery.sickAd;
// } else {
// that.filterQuery.sickAd = text;
// }
// };
inputer.focus();//divtabindexdocumentBody
},
created() {
this.getBusType();
let query = this.$route.query;
this.query = Object.assign(this.query, query);
this.query.limit = parseInt(this.query.limit);
//
// this.getList();
},
}; };
</script> </script>
@ -486,32 +486,32 @@ export default {
<style scoped> <style scoped>
#inputer { #inputer {
width: 100%; width: 100%;
min-height: 30px; min-height: 30px;
background-color: white; background-color: white;
border: #d0d0d0; border: #d0d0d0;
border-style: solid; border-style: solid;
border-width: 0.1px; border-width: 0.1px;
color: #4a4a4a; color: #4a4a4a;
} }
#inputer:focus { #inputer:focus {
width: 100%; width: 100%;
min-height: 30px; min-height: 30px;
background-color: white; background-color: white;
border: #0080FF; border: #0080FF;
border-style: solid; border-style: solid;
border-width: 0.1px; border-width: 0.1px;
color: #4a4a4a; color: #4a4a4a;
} }
.el-table .warning-row { .el-table .warning-row {
background: #ffb5b5; background: #ffb5b5;
} }
.el-table .success-row { .el-table .success-row {
background: #ffffff; background: #ffffff;
} }
</style> </style>

@ -144,13 +144,13 @@
</el-button> </el-button>
</div> </div>
<!-- <el-button <!-- <el-button-->
v-if="isSp ==110" <!-- v-if="isSp ==110"-->
type="text" <!-- type="text"-->
size="small" <!-- size="small"-->
@click.native="rollback(scope.row)" <!-- @click.native="rollback(scope.row)"-->
>撤回 <!-- >撤回-->
</el-button> --> <!-- </el-button>-->
</template> </template>
</el-table-column> </el-table-column>
@ -352,13 +352,13 @@ import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse";
import StockOrderEdit from "@/views/warehouse/stockOrderEdit"; import StockOrderEdit from "@/views/warehouse/stockOrderEdit";
import {filterSubByInv} from "@/api/basic/invSubWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {selectSysParamByKey} from "@/api/param/systemParamConfig"; import {selectSysParamByKey} from "@/api/param/systemParamConfig";
import {convertDate} from "@/utils/date" import {convertDate} from "@/utils/date"
export default { export default {
name: "stockOrderDelSearch", name: "stockOrderDelSearch",
data() { data() {
return { return {
convertDateFun:convertDate, convertDateFun: convertDate,
query: { query: {
billType: null, billType: null,
corpName: null, corpName: null,

Loading…
Cancel
Save