新增集采校验功能

busUser
anthonywj 2 years ago
parent 1ccbc2a86d
commit cfa2329d1e

@ -1,6 +1,6 @@
{ {
"BASE_URL": "http://192.168.1.20:9996", "BASE_URL": "http://192.168.0.166:9996",
"SERVER_IP": "http://192.168.1.20:9996", "SERVER_IP": "http://192.168.0.166:9996",
"hosp_name": "福建省XX市医院" "hosp_name": "福建省XX市医院"
} }

@ -203,6 +203,10 @@ export default {
checkBalacne: null, checkBalacne: null,
secCheckBalacne: null, secCheckBalacne: null,
secCheckCopy: null, secCheckCopy: null,
checkUdiwms: null,
secCheckUdiwms: null,
corpType: null, corpType: null,
storageCode: null, storageCode: null,
supplementOrderType: null, supplementOrderType: null,
@ -217,6 +221,8 @@ export default {
defaultInv: null, defaultInv: null,
defaultSubInv: null, defaultSubInv: null,
orderVisibleType: 0, orderVisibleType: 0,
vailDispatch: false,
vailGroupBuy: 0,
}, },
enableMap: { enableMap: {
true: "是", true: "是",
@ -393,6 +399,10 @@ export default {
orderVisibleType: row.orderVisibleType, orderVisibleType: row.orderVisibleType,
checkCopy: row.checkCopy, checkCopy: row.checkCopy,
secCheckCopy: row.secCheckCopy, secCheckCopy: row.secCheckCopy,
checkUdiwms: row.checkUdiwms,
secCheckUdiwms: row.secCheckUdiwms,
vailDispatch: row.vailDispatch,
vailGroupBuy: row.vailGroupBuy
}; };
this.modifyDialogVisible = true; this.modifyDialogVisible = true;
}, },

@ -212,8 +212,6 @@
<el-option label="批次号" :value=0></el-option> <el-option label="批次号" :value=0></el-option>
<el-option label="条码清单" :value=1></el-option> <el-option label="条码清单" :value=1></el-option>
</el-select> </el-select>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
@ -221,18 +219,35 @@
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="24" class="el-col"> <el-col :span="24" class="el-col">
<div class="text item" > <div class="text item">
<el-checkbox v-model="inputQuery.ullageFill" :disabled="!inputQuery.changeEnable"> <el-checkbox v-model="inputQuery.ullageFill" :disabled="!inputQuery.changeEnable">
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.scanPreIn" :disabled="inputQuery.corpType!='2'"> <el-checkbox v-model="inputQuery.scanPreIn" :disabled="inputQuery.corpType!='2'">
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.vailInv" :disabled="inputQuery.mainAction=='WareHouseIn'"> <el-checkbox v-model="inputQuery.vailInv" :disabled="inputQuery.mainAction=='WareHouseIn'">
是否只允许有库存产品出库
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.codeFillCheck">UDI <el-checkbox v-model="inputQuery.codeFillCheck">UDI
</el-checkbox> </el-checkbox>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="24" class="el-col">
<div class="text item">
<el-checkbox v-model="inputQuery.vailDispatch">
</el-checkbox>
<span style="margin-left: 15px">校验是否集采产品:</span>
<el-select v-model="inputQuery.vailGroupBuy" style="margin-left: 5px"
size="mini">
<el-option label="无需校验" :value=0></el-option>
<el-option label="只采集集采产品" :value=1></el-option>
<el-option label="只采集非集采产品" :value=2></el-option>
</el-select>
</div>
</el-col>
</el-row>
<el-divider></el-divider> <el-divider></el-divider>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="4" class="el-col"> <el-col :span="4" class="el-col">
@ -268,10 +283,12 @@
</el-col> </el-col>
<el-col :span="4" class="el-col"> <el-col :span="4" class="el-col">
<div class="text item"> <div class="text item">
<el-checkbox v-model="inputQuery.checkPc" :disabled="!inputQuery.checkEnable">UDI</el-checkbox> <el-checkbox v-model="inputQuery.checkPc" :disabled="!inputQuery.checkEnable">UDI
</el-checkbox>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-left: 15px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-left: 15px">
<el-col :span="4" class="el-col"> <el-col :span="4" class="el-col">
@ -292,6 +309,12 @@
</el-checkbox> </el-checkbox>
</div> </div>
</el-col> </el-col>
<el-col :span="4" class="el-col">
<div class="text item">
<el-checkbox v-model="inputQuery.checkUdiwms" :disabled="!inputQuery.checkEnable">UDI
</el-checkbox>
</div>
</el-col>
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
@ -357,6 +380,12 @@
</el-checkbox> </el-checkbox>
</div> </div>
</el-col> </el-col>
<el-col :span="4" class="el-col">
<div class="text item">
<el-checkbox v-model="inputQuery.secCheckUdiwms" :disabled="!inputQuery.secCheckEnable">UDI
</el-checkbox>
</div>
</el-col>
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>

File diff suppressed because it is too large Load Diff

@ -350,7 +350,6 @@
</el-col> </el-col>
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
<el-collapse v-model="activeNames"> <el-collapse v-model="activeNames">

@ -151,6 +151,14 @@
</el-button </el-button
> >
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native.stop="rollBack(scope.row)"-->
<!-- >撤回-->
<!-- </el-button-->
<!-- >-->
<el-button <el-button
type="text" type="text"
@ -218,7 +226,8 @@
label="生产日期" label="生产日期"
prop="productDate" prop="productDate"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
><template slot-scope="scope"> >
<template slot-scope="scope">
<span>{{ convertDateFun(scope.row.productDate) }}</span> <span>{{ convertDateFun(scope.row.productDate) }}</span>
</template> </template>
</el-table-column> </el-table-column>
@ -226,9 +235,11 @@
label="失效日期" label="失效日期"
prop="expireDate" prop="expireDate"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
> <template slot-scope="scope"> >
<span>{{ convertDateFun(scope.row.expireDate) }}</span> <template slot-scope="scope">
</template></el-table-column> <span>{{ convertDateFun(scope.row.expireDate) }}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
label="单据数量" label="单据数量"
prop="erpCount" prop="erpCount"
@ -376,7 +387,8 @@ import {getLocalJoinByUser} from "@/api/basic/busLocalType";
import {filterSubByInv} from "@/api/basic/invSubWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import {selectSysParamByKey} from "@/api/param/systemParamConfig"; import {selectSysParamByKey} from "@/api/param/systemParamConfig";
import {convertDate} from "@/utils/date" import {convertDate} from "@/utils/date"
import {rollbackOrder} from "@/api/warehouse/stockOrder";
const formJson = { const formJson = {
site_id: "", site_id: "",
@ -394,7 +406,7 @@ export default {
data() { data() {
return { return {
convertDateFun:convertDate, convertDateFun: convertDate,
query: { query: {
page: 1, page: 1,
limit: 10, limit: 10,
@ -732,32 +744,49 @@ export default {
// this.dialogTableVisible = true; // this.dialogTableVisible = true;
}, },
getUnitList() { getUnitList() {
this.loading = true; this.loading = true; this.loading = false;
unitListBykey(this.unitquery) unitListBykey(this.unitquery)
.then((response) => { .then((response) => {
this.loading = false;
this.unitlist = response.data.list || []; this.unitlist = response.data.list || [];
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}); });
}, },
intentDetail(row) { // rollBack(row) {
// this.$router.push({ // this.$confirm('稿, ?', '', {
// path: "../inout/detail", // confirmButtonText: '',
// query: { id: row.id }, // cancelButtonText: '',
// }); // type: 'warning'
// }).then(() => {
// let param = {billNo: row.billNo};
// rollbackOrder(param).then((res) => {
// if (res.code === 20000) {
// this.$message.success("");
// this.getList();
// } else {
// this.$message.error(res.message);
// }
// })
// }).catch(() => {
// // this.$message.info('退');
// });
// },
intentDetail(row) {
this.codeDetailVisible = true; this.codeDetailVisible = true;
this.idQuery.id = row.id; this.idQuery.id = row.id;
}, }
,
successOrderExportPDFSetting(row) { successOrderExportPDFSetting(row) {
this.idQuery.id = ''; this.idQuery.id = '';
if (this.$isNotBlank(row.id)) { if (this.$isNotBlank(row.id)) {
this.idQuery.id = row.id; this.idQuery.id = row.id;
} }
this.successOrderExportPDFSettingVisible = true; this.successOrderExportPDFSettingVisible = true;
}, }
,
successOrderExportPDF(row) { successOrderExportPDF(row) {
let tQuery = { let tQuery = {
orderId: row.id, orderId: row.id,
@ -786,11 +815,13 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
}); });
}, }
,
closeDialog() { closeDialog() {
this.successOrderExportPDFSettingVisible = false; this.successOrderExportPDFSettingVisible = false;
this.getList(); this.getList();
}, }
,
selectUnit(row) { selectUnit(row) {
this.unitUpdateQuery.id = this.curIndex; this.unitUpdateQuery.id = this.curIndex;
@ -804,7 +835,8 @@ export default {
.catch(() => { .catch(() => {
this.dialogTableVisible = false; this.dialogTableVisible = false;
}); });
}, }
,
deleteOrders(data) { deleteOrders(data) {
this.loading = true; this.loading = true;
this.deleteData.id = data; this.deleteData.id = data;
@ -824,14 +856,16 @@ export default {
}) })
.catch(() => { .catch(() => {
}); });
}, }
,
tableRowClassName({row, rowIndex}) { tableRowClassName({row, rowIndex}) {
if (row.reCount === row.count) { if (row.reCount === row.count) {
return "success-row"; return "success-row";
} else { } else {
return "warning-row"; return "warning-row";
} }
}, }
,
exportDialog(value) { exportDialog(value) {
var mOrder = value; var mOrder = value;
@ -880,7 +914,8 @@ export default {
.catch(() => { .catch(() => {
}); });
} }
}, }
,
uploadOrderDialog(value) { uploadOrderDialog(value) {
@ -898,7 +933,8 @@ export default {
}) })
.catch(() => { .catch(() => {
}); });
}, }
,
deleteDialog(rowId) { deleteDialog(rowId) {
this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", { this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", {
@ -911,10 +947,12 @@ export default {
}) })
.catch(() => { .catch(() => {
}); });
}, }
,
closeDetailDialog(val) { closeDetailDialog(val) {
this.codeDetailVisible = false; this.codeDetailVisible = false;
}, }
,
closeManuDialog(val) { closeManuDialog(val) {
this.addDialogVisible = false; this.addDialogVisible = false;
if (val) { if (val) {
@ -925,16 +963,19 @@ export default {
} else { } else {
this.$message.error("选入失败"); this.$message.error("选入失败");
} }
}, }
,
cancelDialog() { cancelDialog() {
this.addDialogVisible = false; this.addDialogVisible = false;
}, }
,
importOrder(row) { importOrder(row) {
this.orderId = row.id; this.orderId = row.id;
this.billAction = row.action; this.billAction = row.action;
this.curLocInv = row.locStorageCode; this.curLocInv = row.locStorageCode;
this.addDialogVisible = true; this.addDialogVisible = true;
}, }
,
getBusType() { getBusType() {
let query = { let query = {
code: this.filterQuery.invWarehouseCode, code: this.filterQuery.invWarehouseCode,
@ -948,14 +989,16 @@ export default {
}) })
.catch(() => { .catch(() => {
}); });
}, }
,
getActionName(action) { getActionName(action) {
for (let i = 0; i < this.busTypes.length; i++) { for (let i = 0; i < this.busTypes.length; i++) {
if (this.busTypes[i].action === action) { if (this.busTypes[i].action === action) {
return this.busTypes[i].name; return this.busTypes[i].name;
} }
} }
}, }
,
getStorage() { getStorage() {
this.storageList = []; this.storageList = [];
filterAllByUser() filterAllByUser()
@ -968,7 +1011,8 @@ export default {
}) })
.catch(() => { .catch(() => {
}); });
}, }
,
invChange() { invChange() {
this.filterQuery.invWarehouseCode = ""; this.filterQuery.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
@ -985,7 +1029,8 @@ export default {
.catch(() => { .catch(() => {
}); });
} }
}, }
,
getSubInvList() { getSubInvList() {
@ -998,7 +1043,8 @@ export default {
}) })
.catch(() => { .catch(() => {
}); });
}, }
,
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
@ -1011,14 +1057,17 @@ export default {
true: "danger", true: "danger",
}; };
return statusMap[status]; return statusMap[status];
}, }
}, ,
}
,
mounted() { mounted() {
document.body.ondrop = function (event) { document.body.ondrop = function (event) {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
}; };
}, }
,
created() { created() {
this.getStorage(); this.getStorage();
@ -1038,8 +1087,10 @@ export default {
} }
} }
}) })
}, }
}; ,
}
;
</script> </script>

@ -1101,7 +1101,7 @@ export default {
} }
}, },
actionChange(item) { actionChange(item) {
this.curAction = this.getActionItem(item); this.curAction = this.getActionItem(item);
this.findMethod(); this.findMethod();

Loading…
Cancel
Save