Merge branch 'fengcang' into busUser

purchase
anthonyywj2 3 years ago
commit 3b3699c521

@ -24,7 +24,7 @@
{ {
"UDI_SYNC_SERVER_IP": "http://192.168.0.109:9995/", "UDI_SYNC_SERVER_IP": "http://192.168.0.109:9995/",
"BASE_URL":"http://139.9.178.73:8080/UDI_WMS_MC", "BASE_URL":"http://139.9.178.73:8080/UDI_WMS_MC",
"SERVER_IP": "http://140.9.178.73:8080/UDI_WMS_MC/", "SERVER_IP": "http://139.9.178.73:8080/UDI_WMS_MC/",
"WEBSOCKET_URL": "ws://192.168.0.109:9991/UDI_WMS_MC/api/websocket/", "WEBSOCKET_URL": "ws://192.168.0.109:9991/UDI_WMS_MC/api/websocket/",
"hosp_name": "平和县医院" "hosp_name": "平和县医院"
} }

@ -104,7 +104,7 @@ router.beforeEach((to, from, next) => {
}) })
.catch(() => { .catch(() => {
store.dispatch("fedLogout").then(() => { store.dispatch("fedLogout").then(() => {
Message.error("验证失败,请重新登录"); Message.error("登录失效,请重新登录");
let redirect = to.fullPath; let redirect = to.fullPath;
store.dispatch("loginOut").then(() => { store.dispatch("loginOut").then(() => {
next({ next({

@ -42,7 +42,7 @@ service.interceptors.response.use(
if (data.code) { if (data.code) {
if (data.code === 2) { if (data.code === 2) {
store.dispatch("fedLogout").then(() => { store.dispatch("fedLogout").then(() => {
Message.error("验证失败,请重新登录"); Message.error("登录失效,请重新登录");
router.push({ router.push({
path: "/login", path: "/login",
query: { redirect: router.currentRoute.fullPath } // 从哪个页面跳转过来 query: { redirect: router.currentRoute.fullPath } // 从哪个页面跳转过来

@ -21,7 +21,7 @@ service.interceptors.response.use(
if (data.code) { if (data.code) {
if (data.code === 2) { if (data.code === 2) {
store.dispatch("fedLogout").then(() => { store.dispatch("fedLogout").then(() => {
Message.error("验证失败,请重新登录"); Message.error("登录失效,请重新登录");
router.push({ router.push({
path: "/login", path: "/login",
query: {redirect: router.currentRoute.fullPath} // 从哪个页面跳转过来 query: {redirect: router.currentRoute.fullPath} // 从哪个页面跳转过来

@ -1,334 +1,357 @@
<template> <template>
<div> <div>
<el-card> <el-card>
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini"> <el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input <el-input
v-model="filterQuery.name" v-model="filterQuery.name"
style="width: 250px" style="width: 250px"
placeholder="单据类型名称" placeholder="单据类型名称"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button-group style="margin-left: 10px;display:flex;"> <el-button-group style="margin-left: 10px;display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button> <el-button type="primary" icon="search" @click="search"></el-button>
<el-button type="primary" icon="search" @click="handleAddClick" <el-button type="primary" icon="search" @click="handleAddClick"
:disabled="!configParms.entrustAction" :disabled="!configParms.entrustAction"
>新增 >新增
</el-button </el-button
> >
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table v-loading="loading" :data="list" style="width: 100%"> <el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="序号" type="index" width="60" fixed></el-table-column> <el-table-column label="序号" type="index" width="60" fixed></el-table-column>
<el-table-column label="扫码单据类型" prop="curName" fixed></el-table-column> <el-table-column label="扫码单据类型" prop="curName" fixed></el-table-column>
<el-table-column label="当前仓库" prop="curInvName" fixed></el-table-column> <el-table-column label="当前仓库" prop="curInvName" fixed></el-table-column>
<el-table-column label="当前分库" prop="invWarehouseName" fixed></el-table-column> <el-table-column label="当前分库" prop="invWarehouseName" fixed></el-table-column>
<el-table-column label="委托验收仓库" prop="entrustInvName" fixed></el-table-column> <el-table-column label="委托验收仓库" prop="entrustInvName" fixed></el-table-column>
<el-table-column label="委托验收分库" prop="entrustSubInvName" fixed></el-table-column> <el-table-column label="委托验收分库" prop="entrustSubInvName" fixed></el-table-column>
<el-table-column label="委托验收人" prop="employeeName" fixed> <el-table-column label="委托验收人" prop="employeeName" fixed>
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right"> <el-table-column label="操作" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native.stop="handleModifyClick(scope.row)" @click.native.stop="handleModifyClick(scope.row)"
:disabled="!configParms.entrustAction" :disabled="!configParms.entrustAction"
>编辑 >编辑
</el-button </el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native.stop="deleteDialog(scope.row)" @click.native.stop="deleteDialog(scope.row)"
:disabled="!configParms.entrustAction" :disabled="!configParms.entrustAction"
>删除 >删除
</el-button </el-button
> >
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-dialog <el-dialog
title="新增委托验收" title="新增委托验收"
:visible.sync="addDialogVisible" :visible.sync="addDialogVisible"
width="70%" width="70%"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="addDialogVisible" v-if="addDialogVisible"
> >
<modifyDialog :inputQuery="inputQuery"></modifyDialog> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center"> <div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onAddSubmit" <el-button type="primary" size="small" icon="search" @click="onAddSubmit"
>提交 >提交
</el-button </el-button
> >
<el-button type="primary" size="small" icon="search" @click="cancelDialog" <el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消 >取消
</el-button </el-button
> >
</div> </div>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="编辑委托验收" title="编辑委托验收"
:visible.sync="modifyDialogVisible" :visible.sync="modifyDialogVisible"
width="70%" width="70%"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="modifyDialogVisible" v-if="modifyDialogVisible"
> >
<modifyDialog :inputQuery="inputQuery"></modifyDialog> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center"> <div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onModifySubmit" <el-button type="primary" size="small" icon="search" @click="onModifySubmit"
>提交 >提交
</el-button </el-button
> >
<el-button type="primary" size="small" icon="search" @click="cancelDialog" <el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消 >取消
</el-button </el-button
> >
</div> </div>
</el-dialog> </el-dialog>
<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"
:total="total" :total="total"
:current-page="filterQuery.page" :current-page="filterQuery.page"
></el-pagination> ></el-pagination>
</el-card> </el-card>
</div> </div>
</template> </template>
<script> <script>
import { import {
getEntrustRece, getEntrustRece,
deleteEntrustRece, deleteEntrustRece,
updateEntrustRece, updateEntrustRece,
insertEntrustRece, insertEntrustRece,
} from "../../api/basic/EntrustRece"; } from "../../api/basic/EntrustRece";
import modifyDialog from "./BasicEntrutsReceModify"; import modifyDialog from "./BasicEntrutsReceModify";
import {findConfig} from "@/api/thrsys/spsSyncStatus"; import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default { export default {
data() { data() {
return { return {
filterQuery: { filterQuery: {
name: "", name: "",
page: 1, page: 1,
limit: 20, limit: 20,
}, },
loading: false, loading: false,
addDialogVisible: false, addDialogVisible: false,
modifyDialogVisible: false, modifyDialogVisible: false,
list: [], list: [],
inputQuery: { inputQuery: {
action: "", action: "",
name: "", name: "",
entrustInv: "", entrustInv: "",
entrustUser: "", entrustUser: "",
entrustAction: null, entrustAction: null,
finishRece: false, finishRece: false,
curInv: "", curInv: "",
entrustSubInv: "", entrustSubInv: "",
invWarehouseCode: "", invWarehouseCode: "",
}, },
enableMap: { enableMap: {
true: "是", true: "是",
false: "否", false: "否",
}, },
mainActionMap: { mainActionMap: {
WareHouseIn: "入库", WareHouseIn: "入库",
WareHouseOut: "出库" WareHouseOut: "出库"
}, },
fileList: [], fileList: [],
total: 0, total: 0,
multipleSelection: [], multipleSelection: [],
uploadFileUrl: null, uploadFileUrl: null,
headers: {}, headers: {},
configParms: {}, configParms: {},
};
},
methods: { };
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
name: "",
page: 1,
limit: 20,
};
this.getList();
},
cancelDialog() {
this.modifyDialogVisible = false;
this.addDialogVisible = false;
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
search() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
this.loading = true;
getEntrustRece(this.filterQuery)
.then((response) => {
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
}, },
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
name: "",
page: 1,
limit: 20,
};
this.getList();
},
cancelDialog() {
this.modifyDialogVisible = false;
this.addDialogVisible = false;
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
search() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
this.loading = true;
getEntrustRece(this.filterQuery)
.then((response) => {
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
onAddSubmit() {
if (this.$isBlank(this.inputQuery.action)) { onAddSubmit() {
this.$message.error("单据类型不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.curInv)) {
this.$message.error("请输入委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入接受委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustUser)) {
this.$message.error("请输入接受委托人!");
return;
}
if (this.$isBlank(this.inputQuery.invWarehouseCode)) { if (this.$isBlank(this.inputQuery.action)) {
this.$message.error("当前分库不能为空!"); this.$message.error("单据类型不能为空!");
return; return;
} }
if (this.$isBlank(this.inputQuery.entrustSubInv)) { if (this.$isBlank(this.inputQuery.curInv)) {
this.$message.error("请输入接受委托分库!"); this.$message.error("请输入委托仓库!");
return; return;
} }
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入接受委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustUser)) {
this.$message.error("请输入接受委托人!");
return;
}
insertEntrustRece(this.inputQuery) if (this.$isBlank(this.inputQuery.invWarehouseCode)) {
.then((response) => { this.$message.error("当前分库不能为空!");
this.loading = false; return;
this.cancelDialog(); }
this.getList(); if (this.$isBlank(this.inputQuery.entrustSubInv)) {
}) this.$message.error("请输入接受委托分库!");
.catch(() => { return;
this.loading = false; }
this.cancelDialog();
});
},
onModifySubmit() { if (this.$isBlank(this.inputQuery.entrustAction)) {
if (this.$isBlank(this.inputQuery.action)) { this.$message.error("请输入生成单据类型!");
this.$message.error("单据类型不能为空!"); return;
return; }
}
if (this.$isBlank(this.inputQuery.curInv)) {
this.$message.error("请输入委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入接受委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入接受委托人!");
return;
}
insertEntrustRece(this.inputQuery)
.then((response) => {
this.loading = false;
this.cancelDialog();
this.getList();
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
handleAddClick() { insertEntrustRece(this.inputQuery)
this.inputQuery = {enable: true, expireTip: true}; .then((response) => {
this.addDialogVisible = true; if (response.code == 20000) {
}, this.loading = false;
this.cancelDialog();
this.getList();
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
handleModifyClick(row) { onModifySubmit() {
this.inputQuery = row; if (this.$isBlank(this.inputQuery.action)) {
this.modifyDialogVisible = true; this.$message.error("单据类型不能为空!");
}, return;
}
if (this.$isBlank(this.inputQuery.curInv)) {
this.$message.error("请输入委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入接受委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustUser)) {
this.$message.error("请输入接受委托人!");
return;
}
deleteDialog(rowId) { if (this.$isBlank(this.inputQuery.invWarehouseCode)) {
this.$confirm("此操作将永久删除该委托验收信息, 是否继续?", "提示", { this.$message.error("当前分库不能为空!");
confirmButtonText: "确定", return;
cancelButtonText: "取消", }
type: "warning", if (this.$isBlank(this.inputQuery.entrustSubInv)) {
}) this.$message.error("请输入接受委托分库!");
.then(() => { return;
this.deleteOrders(rowId); }
})
.catch(() => {
});
},
deleteOrders(data) { if (this.$isBlank(this.inputQuery.entrustAction)) {
this.loading = true; this.$message.error("请输入生成单据类型!");
let tquery = { return;
id: data.id + "",
};
deleteEntrustRece(tquery)
.then((response) => {
this.getList();
if (response.code == 20000) {
this.$message({
type: "success",
message: "删除成功!",
});
} else {
this.$message.error(response.message);
} }
updateEntrustRece(this.inputQuery)
.then((response) => {
this.loading = false;
this.cancelDialog();
this.getList();
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
handleAddClick() {
this.inputQuery = {enable: true, expireTip: true};
this.addDialogVisible = true;
},
handleModifyClick(row) {
this.inputQuery = row;
this.modifyDialogVisible = true;
},
}) deleteDialog(rowId) {
.catch(() => { this.$confirm("此操作将永久删除该委托验收信息, 是否继续?", "提示", {
}); confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.deleteOrders(rowId);
})
.catch(() => {
});
},
deleteOrders(data) {
this.loading = true;
let tquery = {
id: data.id + "",
};
deleteEntrustRece(tquery)
.then((response) => {
this.getList();
if (response.code == 20000) {
this.$message({
type: "success",
message: "删除成功!",
});
} else {
this.$message.error(response.message);
}
})
.catch(() => {
});
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
}, },
getSyncConfig() { components: {
findConfig() modifyDialog,
.then((response) => { },
if (response.code == 20000) { mounted() {
this.configParms = response.data; },
} created() {
}) this.getList();
.catch(() => {
});
}, },
},
components: {
modifyDialog,
},
mounted() {
},
created() {
this.getList();
},
}; };
</script> </script>

@ -393,7 +393,7 @@ export default {
methods: { methods: {
getThirdSysDetail() { getThirdSysDetail() {
let query = { let query = {
id: this.editQuery.id, id: this.editQuery.rlId,
}; };
thirdSysDetail(query) thirdSysDetail(query)

@ -324,7 +324,7 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="码详情" title="内部码详情"
:visible.sync="qrcodeDetailVisible" :visible.sync="qrcodeDetailVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
@ -792,7 +792,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -813,6 +813,19 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
}, },

@ -856,7 +856,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -877,6 +877,19 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
}, },

@ -135,6 +135,22 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" style="margin-top: -10px;">
<el-col :span="3">
<div class="ao-text">
<span></span>
</div>
</el-col>
<el-col :span="7">
<el-form-item prop="type" style="margin-right: 20px;"
v-if="!(curAction.mainAction=='WareHouseIn' && curAction.corpType == 0)">
<el-checkbox v-model="formData.noInvOut">
</el-checkbox>
</el-form-item>
</el-col>
</el-row>
</el-card> </el-card>
<el-card> <el-card>
@ -380,7 +396,21 @@ export default {
page: 1, page: 1,
limit: 10, limit: 10,
}, },
formData: {}, formData: {
noInvOut: false,
locStorageCode: null,
invWarehouseCode: null,
fromSubInvCode: null,
billNo: null,
billdate: "",
customerId: store.getters.customerId,
billType: "",
type: null,
corpName: "",
corpId: "",
},
formRules: { formRules: {
corpName: [ corpName: [
{required: true, message: "请输入供应商", trigger: "blur"} {required: true, message: "请输入供应商", trigger: "blur"}
@ -477,9 +507,9 @@ export default {
// return this.$message.error(''); // return this.$message.error('');
// } // }
// } // }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) { // if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); // return this.$message.error('');
} // }
if (this.$isBlank(this.codeArray[i].reCount) || this.codeArray[i].reCount < 1) { if (this.$isBlank(this.codeArray[i].reCount) || this.codeArray[i].reCount < 1) {
return this.$message.error('配货数量不能小于0'); return this.$message.error('配货数量不能小于0');
} }
@ -1061,13 +1091,16 @@ export default {
this.invChange(); this.invChange();
} else { } else {
this.formData = { this.formData = {
billNo: null,
billdate: "", billdate: "",
corpName: store.getters.companyName,
customerId: store.getters.customerId, customerId: store.getters.customerId,
// billType: "deliveryNote",
billType: "", billType: "",
type: "1", type: "2",
// type: "", corpName: "",
corpId: "",
noInvOut: "",
locStorageCode: store.getters.locInvCode,
invWarehouseCode: store.getters.locSubInvCode,
}; };
this.iCount = 0; this.iCount = 0;
this.orderEditor = false; this.orderEditor = false;

@ -100,12 +100,12 @@
{{ scope.row.status | statusFilterName }} {{ scope.row.status | statusFilterName }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="业务类型" prop="billTypeName" width="150"> <el-table-column label="业务类型" prop="billTypeName" width="150">
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="invName" width="150"> <el-table-column label="当前仓库" prop="invName" width="150">
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="subInvName" width="120"> <el-table-column label="当前分库" prop="subInvName" width="120">
</el-table-column> </el-table-column>
<!-- <el-table-column label="采购类型">--> <!-- <el-table-column label="采购类型">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}--> <!-- {{ scope.row.type | typeFilterName }}-->
@ -895,9 +895,9 @@ export default {
// return this.$message.error(''); // return this.$message.error('');
// } // }
// } // }
if (this.$isBlank(tQuery.productDate) && this.$isBlank(tQuery.expireDate)) { // if (this.$isBlank(tQuery.productDate) && this.$isBlank(tQuery.expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); // return this.$message.error('');
} // }
uploadStockOrderDetail(tQuery).then((response) => { uploadStockOrderDetail(tQuery).then((response) => {
this.detailLoading = false; this.detailLoading = false;
if (response.code === 20000) { if (response.code === 20000) {
@ -952,7 +952,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -972,6 +972,19 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
}, },

@ -924,7 +924,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -944,6 +944,19 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
}, },

@ -602,9 +602,9 @@ export default {
// return this.$message.error(''); // return this.$message.error('');
// } // }
// } // }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) { // if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); // return this.$message.error('');
} // }
// if (this.$isBlank(this.codeArray[i].expireDate)) { // if (this.$isBlank(this.codeArray[i].expireDate)) {
// return this.$message.error(''); // return this.$message.error('');
// } // }
@ -796,7 +796,6 @@ export default {
selectProductFunction(event) { selectProductFunction(event) {
if (event == null) { if (event == null) {
// this.$refs.inputRef.focus();
} else { } else {
event.target.select(); event.target.select();
} }
@ -827,12 +826,14 @@ export default {
if (item.mainAction == 'WareHouseOut' && this.formData.noInvOut != true) { if (item.mainAction == 'WareHouseOut' && this.formData.noInvOut != true) {
this.invQueryData = { this.invQueryData = {
locStorageCode: this.formData.locStorageCode, locStorageCode: this.formData.locStorageCode,
invWarehouseCode: this.formData.invWarehouseCode,
}; };
this.selectInvProductVisible = true; this.selectInvProductVisible = true;
} else if (item.mainAction == "WareHouseIn" && this.curAction.corpType == 1 && this.formData.noInvOut != true) { } else if (item.mainAction == "WareHouseIn" && this.curAction.corpType == 1 && this.formData.noInvOut != true) {
this.invQueryData = { this.invQueryData = {
locStorageCode: this.formData.corpId, locStorageCode: this.formData.corpId,
invWarehouseCode: this.formData.fromSubInvCode,
}; };
this.selectInvProductVisible = true; this.selectInvProductVisible = true;
} else { } else {

@ -63,23 +63,10 @@
</el-row> </el-row>
<el-table v-loading="loading" :data="codeArray" style="width: 100%;" max-height="350" height="350" ref="multipleTable"> <el-table v-loading="loading" :data="codeArray" style="width: 100%;" max-height="350" height="350"
<!-- <el-table-column--> ref="multipleTable">
<!-- type="selection"-->
<!-- width="55">-->
<!-- </el-table-column>-->
<el-table-column label="序号" type="index" width="50"></el-table-column> <el-table-column label="序号" type="index" width="50"></el-table-column>
<el-table-column label="码" prop="udiCode"></el-table-column> <el-table-column label="内部码" prop="udiCode"></el-table-column>
<!--<el-table-column label="订单数量">-->
<!--<template slot-scope="scope">-->
<!--<span>{{ scope.row.count }}</span>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="实际数量">-->
<!--<template slot-scope="scope">-->
<!--<span>{{ scope.row.reCount }}</span>-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column label="状态"> <el-table-column label="状态">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ statusMap[scope.row.printStatus] }}</span> <span>{{ statusMap[scope.row.printStatus] }}</span>
@ -95,17 +82,6 @@
<span>{{ scope.row.updateTime }}</span> <span>{{ scope.row.updateTime }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="操作" fixed="right" width="150">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native="printStockOrderDetailPDF(scope.row)"-->
<!-- >打印-->
<!-- </el-button-->
<!-- >-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table> </el-table>
<div class="block"> <div class="block">
@ -123,8 +99,13 @@
</template> </template>
<script> <script>
import {stockOrderDetail, submitStockOrder, submitStockOrderError, uploadStockOrderDetailCount} from "../../api/inout/stockOrder"; import {
import {stockQRCodeText,filterPrint} from "../../api/inout/stockQRCode"; stockOrderDetail,
submitStockOrder,
submitStockOrderError,
uploadStockOrderDetailCount
} from "../../api/inout/stockOrder";
import {stockQRCodeText, filterPrint} from "../../api/inout/stockQRCode";
import {getLocalJoinBusType} from "../../api/basic/busLocalType"; import {getLocalJoinBusType} from "../../api/basic/busLocalType";
import draggable from "vuedraggable"; import draggable from "vuedraggable";
@ -150,7 +131,7 @@ export default {
return { return {
code: "", code: "",
query: { query: {
sOrderId:null, sOrderId: null,
orderIdFk: "", orderIdFk: "",
page: 1, page: 1,
limit: 10, limit: 10,
@ -265,7 +246,7 @@ export default {
if (row.count <= 0) { if (row.count <= 0) {
return this.$message.error('数量错误'); return this.$message.error('数量错误');
} }
let tQuery = { queryId: row.id, } let tQuery = {queryId: row.id,}
this.loading = true; this.loading = true;
inspectionStockQRCodeTextPDFFromTemplateFile(tQuery).then((response) => { inspectionStockQRCodeTextPDFFromTemplateFile(tQuery).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
@ -332,8 +313,6 @@ export default {
this.codeArray = []; this.codeArray = [];
if (this.$isNotBlank(this.idQuery.id)) { if (this.$isNotBlank(this.idQuery.id)) {
this.formData = this.idQuery.formData; this.formData = this.idQuery.formData;
// this.query.orderIdFk = this.idQuery.id;
// this.getStockOrderDetailList();
this.query.sOrderId = this.idQuery.id; this.query.sOrderId = this.idQuery.id;
this.getStockQRCodeTextList(); this.getStockQRCodeTextList();
} }

@ -350,7 +350,8 @@
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item prop="count"> <el-form-item prop="count">
<el-input v-model="detailFormData.count" auto-complete="off" :disabled="true" type="number"></el-input> <el-input v-model="detailFormData.count" auto-complete="off" :disabled="true"
type="number"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3"> <el-col :span="3">
@ -937,7 +938,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -958,6 +959,19 @@ export default {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
}, },

@ -789,8 +789,8 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.query.locStorageCode = this.storageList[0].code; // this.query.locStorageCode = this.storageList[0].code;
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -810,6 +810,19 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
}, },

@ -115,25 +115,30 @@
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="产品ID"
prop="productId"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column <el-table-column
label="产品名称" label="产品名称"
prop="productName" prop="productName"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column
label="规格型号"
prop="spec"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column <el-table-column
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="spec" prop="productDate"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column
label="失效日期"
prop="expireDate"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column label="单据数量" prop="count"></el-table-column> <el-table-column label="单据数量" prop="count"></el-table-column>

@ -90,15 +90,15 @@ export default {
}, },
methods: { methods: {
getUnitList() { getUnitList() {
this.loading = true; // this.loading = true;
getBasicUnitMaintains(this.unitquery) // getBasicUnitMaintains(this.unitquery)
.then((response) => { // .then((response) => {
this.loading = false; // this.loading = false;
this.unitlist = response.data.page.list || []; // this.unitlist = response.data.page.list || [];
}) // })
.catch(() => { // .catch(() => {
this.loading = false; // this.loading = false;
}); // });
}, },
getUnitListByCode(row) { getUnitListByCode(row) {
let query = { let query = {

@ -623,9 +623,9 @@ export default {
}, },
closeCodeDialog() { closeCodeDialog() {
// //
this.getCodeList();
this.editCodeVisible = false; this.editCodeVisible = false;
this.editOriginCodeVisible = false; this.editOriginCodeVisible = false;
this.getCodeList();
}, },
editCode(row) { editCode(row) {
this.codeDetail = row; this.codeDetail = row;
@ -1210,7 +1210,7 @@ export default {
this.codeArray = []; this.codeArray = [];
this.getBusType(); this.getBusType();
this.getStorage(this.formData.action); this.getStorage(this.formData.action);
this.findSubInvByInv();
if (this.$isNotBlank(this.idQuery.id)) { if (this.$isNotBlank(this.idQuery.id)) {
this.formData.actDate = new Date(this.idQuery.actDate); this.formData.actDate = new Date(this.idQuery.actDate);
this.formData.corpOrderId = this.idQuery.corpOrderId; this.formData.corpOrderId = this.idQuery.corpOrderId;
@ -1252,6 +1252,9 @@ export default {
} }
this.findSubInvByInv(this.formData.locStorageCode);
} }
, ,
} }

@ -241,7 +241,7 @@
></el-pagination> ></el-pagination>
<el-dialog <el-dialog
title="新增订单" title="据编辑"
:visible.sync="addOrderVisible" :visible.sync="addOrderVisible"
width="75%" width="75%"
:close-on-click-modal="false" :close-on-click-modal="false"
@ -570,10 +570,7 @@ export default {
} }
}, },
addOrders(row) { addOrders(row) {
console.log(row) this.idQuery = row;
this.idQuery.id = '';
this.idQuery.actDate = '';
this.idQuery.corpOrderId = '';
this.idQuery.billType = row.action; this.idQuery.billType = row.action;
if (row.id !== null && row.id !== undefined && row.id !== '') { if (row.id !== null && row.id !== undefined && row.id !== '') {
this.idQuery.id = row.id; this.idQuery.id = row.id;

File diff suppressed because it is too large Load Diff

@ -842,7 +842,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -862,6 +862,20 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.filterQuery.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
}, },

@ -80,7 +80,7 @@
<el-button-group> <el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="onSubmit"></el-button> <el-button type="primary" icon="search" @click="onSubmit"></el-button>
<el-button type="primary" icon="search" @click="exportOrders"></el-button> <!-- <el-button type="primary" icon="search" @click="exportOrders"></el-button>-->
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-row> </el-row>
@ -601,8 +601,8 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.filterQuery.locStorageCode = this.storageList[0].code; // this.filterQuery.locStorageCode = this.storageList[0].code;
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -911,6 +911,19 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.filterQuery.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
}, },

@ -73,7 +73,7 @@
<el-form-item style="margin-right: 50px; margin-left: auto"> <el-form-item style="margin-right: 50px; margin-left: auto">
<el-button-group> <el-button-group>
<el-button type="primary" icon="search" @click="mergesOrders"></el-button> <el-button type="primary" icon="search" @click="mergesOrders"></el-button>
<el-button type="primary" icon="search" @click="addOrders"></el-button> <el-button type="primary" icon="search" @click="addOrders"></el-button>
<el-button type="primary" icon="search" @click="errOrders"></el-button> <el-button type="primary" icon="search" @click="errOrders"></el-button>
</el-button-group> </el-button-group>
@ -82,7 +82,7 @@
</el-row> </el-row>
</el-form> </el-form>
<el-table v-loading="loading" :data="list" style="width: 100%" <el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
@ -220,7 +220,7 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="新增单" title="新增"
:visible.sync="addOrderVisible" :visible.sync="addOrderVisible"
width="75%" append-to-body width="75%" append-to-body
:close-on-click-modal="false" :close-on-click-modal="false"
@ -426,7 +426,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -540,17 +540,17 @@ export default {
let unit = repeatData[0].fromCorp; let unit = repeatData[0].fromCorp;
let action = repeatData[0].action; let action = repeatData[0].action;
let orderList = []; let orderList = [];
repeatData.forEach((obj, index) => { for (let index in repeatData) {
if (unit !== obj.fromCorp) { if (action !== repeatData[index].action) {
this.$message.warning("往来单位不一致!"); this.$message.warning("业务类型不一致!");
return; return;
} }
if (action !== obj.action) { if (unit !== repeatData[index].fromCorp) {
this.$message.warning("业务类型不一致!"); this.$message.warning("往来单位不一致!");
return; return;
} }
orderList.push(obj.id); orderList.push(repeatData[index].id);
}); }
let tquery = { let tquery = {
orderList: orderList, orderList: orderList,
type: 2, type: 2,
@ -668,6 +668,20 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.filterQuery.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
}, },

@ -118,7 +118,8 @@
<el-dialog <el-dialog
title="选择供应商" title="选择供应商"
:visible.sync="dialogTableVisible" :visible.sync="dialogTableVisible"
v-if="dialogTableVisible" v-if="dialogTableVisible" :close-on-click-modal="false"
:close-on-press-escape="false"
width="70%" width="70%"
append-to-body append-to-body
> >
@ -132,7 +133,8 @@
title="绑定产品ID" title="绑定产品ID"
:visible.sync="selectRlVisible" :visible.sync="selectRlVisible"
width="80%" width="80%"
v-if="selectRlVisible" v-if="selectRlVisible" :close-on-click-modal="false"
:close-on-press-escape="false"
append-to-body append-to-body
> >
<selectRlDialog <selectRlDialog
@ -145,7 +147,8 @@
<el-dialog <el-dialog
:title="editTitle" :title="editTitle"
:visible.sync="editCodeVisible" :visible.sync="editCodeVisible" :close-on-click-modal="false"
:close-on-press-escape="false"
append-to-body width="70%" append-to-body width="70%"
v-if="editCodeVisible" v-if="editCodeVisible"
> >
@ -203,7 +206,7 @@ export default {
}; };
}, },
components: { components: {
draggable, DialogSelectUnit, selectRlDialog,editCodeDialog draggable, DialogSelectUnit, selectRlDialog, editCodeDialog
}, },
methods: { methods: {
handleSelectionChange(val) { handleSelectionChange(val) {
@ -355,6 +358,7 @@ export default {
}, },
closeCodeDialog() { closeCodeDialog() {
this.editCodeVisible = false; this.editCodeVisible = false;
this.getCodeList();
}, },
editCode(row) { editCode(row) {
this.codeDetail = row; this.codeDetail = row;

@ -43,12 +43,12 @@
<el-form :inline="true" :model="query" class="query-form" size="mini"> <el-form :inline="true" :model="query" class="query-form" size="mini">
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input v-model="query.code" placeholder="条码查询"></el-input> <el-input v-model="query.code" placeholder="条码查询" clearable></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="getCodeList" <el-button type="primary" icon="search" @click="onSubmit"
>查询 >查询
</el-button </el-button
> >
@ -106,6 +106,7 @@
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next,total" layout="prev, pager, next,total"
:total="total" :total="total"
:current-page="query.page"
> >
</el-pagination> </el-pagination>
</div> </div>

@ -479,9 +479,9 @@ export default {
if (this.$isBlank(this.codeArray[i].batchNo)) { if (this.$isBlank(this.codeArray[i].batchNo)) {
return this.$message.error('批次号不能为空'); return this.$message.error('批次号不能为空');
} }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) { // if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); // return this.$message.error('');
} // }
// if (this.$isBlank(this.codeArray[i].expireDate)) { // if (this.$isBlank(this.codeArray[i].expireDate)) {
// return this.$message.error(''); // return this.$message.error('');
// } // }

Loading…
Cancel
Save