Merge branch 'fencang' into busUser

# Conflicts:
#	src/views/warehouse/stockHospOrderNew.vue
featFunction
anthonywj 3 years ago
commit 7cff854bff

@ -101,7 +101,7 @@ router.beforeEach((to, from, next) => {
// accessedRouters[1].children.splice(5,1); //删除admin里面不显示的客户用户管理
// accessedRouters[3].children.splice(8,1);//删除admin里面不显示的用户信息管理
// }
// 生成可访问的路由表
router.addRoutes(accessedRouters); // 动态添加可访问路由表
next({ ...to }); // hack方法 确保addRoutes已完成
@ -112,7 +112,7 @@ router.beforeEach((to, from, next) => {
})
.catch(() => {
store.dispatch("fedLogout").then(() => {
Message.error("验证失败,请重新登录");
Message.error("登录失效,请重新登录");
let redirect = to.fullPath;
store.dispatch("loginOut").then(() => {
next({

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

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

@ -1,130 +1,130 @@
<template>
<div>
<el-card>
<div>
<el-card>
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
<el-form-item class="query-form-item">
<el-input
v-model="filterQuery.name"
placeholder="业务类型"
style="width: 400px"
></el-input>
</el-form-item>
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
<el-form-item class="query-form-item">
<el-input
v-model="filterQuery.name"
placeholder="业务类型"
style="width: 400px"
></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange">
<el-option
v-for="item in thirdSys"
:key="item.value"
:label="item.thirdName"
:value="item.thirdId">
<span style="float: left">{{ item.thirdName }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<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="search" @click="search"></el-button>
<el-button type="primary" icon="search" @click="handleAddClick"
:disabled="!configParms.typeThird"
>新增
</el-button
>
<!-- <el-button type="primary" icon="search" @click="updateDownload"></el-button>-->
</el-button-group>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange">
<el-option
v-for="item in thirdSys"
:key="item.value"
:label="item.thirdName"
:value="item.thirdId">
<span style="float: left">{{ item.thirdName }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<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="search" @click="search"></el-button>
<el-button type="primary" icon="search" @click="handleAddClick"
:disabled="!configParms.typeThird"
>新增
</el-button
>
<!-- <el-button type="primary" icon="search" @click="updateDownload"></el-button>-->
</el-button-group>
</el-form-item>
</el-form>
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="序号" type="index" width="55"></el-table-column>
<el-table-column label="单据类型名称" prop="name"></el-table-column>
<el-table-column label="单据类型代码" prop="action"></el-table-column>
<el-table-column label="第三方系统" prop="thirdSysName"></el-table-column>
<el-table-column label="备注" prop="remark"></el-table-column>
<el-table-column label="操作" width="100" fixed="right">
<template slot-scope="scope">
<el-button
type="text"
size="small"
:disabled="!configParms.typeThird"
@click.native.stop="handleModifyClick(scope.row)"
>编辑
</el-button
>
<el-button
type="text"
size="small"
:disabled="!configParms.typeThird"
@click.native.stop="handleDeleteClick(scope.row)"
>删除
</el-button
>
</template>
</el-table-column>
</el-table>
<el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="序号" type="index" width="55"></el-table-column>
<el-table-column label="单据类型名称" prop="name"></el-table-column>
<el-table-column label="单据类型代码" prop="action"></el-table-column>
<el-table-column label="第三方系统" prop="thirdSysName"></el-table-column>
<el-table-column label="备注" prop="remark"></el-table-column>
<el-table-column label="操作" width="100" fixed="right">
<template slot-scope="scope">
<el-button
type="text"
size="small"
:disabled="!configParms.typeThird"
@click.native.stop="handleModifyClick(scope.row)"
>编辑
</el-button
>
<el-button
type="text"
size="small"
:disabled="!configParms.typeThird"
@click.native.stop="handleDeleteClick(scope.row)"
>删除
</el-button
>
</template>
</el-table-column>
</el-table>
<el-dialog
title="新增第三方单据类型"
:visible.sync="addDialogVisible"
width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="addDialogVisible"
>
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onAddSubmit"
:disabled="!configParms.typeThird"
>提交
</el-button
>
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消
</el-button
>
</div>
</el-dialog>
<el-dialog
title="新增第三方单据类型"
:visible.sync="addDialogVisible"
width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="addDialogVisible"
>
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onAddSubmit"
:disabled="!configParms.typeThird"
>提交
</el-button
>
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消
</el-button
>
</div>
</el-dialog>
<el-dialog
title="编辑第三方单据类型"
:visible.sync="modifyDialogVisible"
width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="modifyDialogVisible"
>
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onModifySubmit"
:disabled="!configParms.typeThird"
>提交
</el-button
>
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消
</el-button
>
</div>
</el-dialog>
<el-pagination
:page-size="filterQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="filterQuery.page"
></el-pagination>
</el-card>
</div>
<el-dialog
title="编辑第三方单据类型"
:visible.sync="modifyDialogVisible"
width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="modifyDialogVisible"
>
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onModifySubmit"
:disabled="!configParms.typeThird"
>提交
</el-button
>
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消
</el-button
>
</div>
</el-dialog>
<el-pagination
:page-size="filterQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="filterQuery.page"
></el-pagination>
</el-card>
</div>
</template>
<script>
import {
getOriginBusType,
updateBussinessType, delBussinessType,
insertBussinessType, downloadBussinessType
getOriginBusType,
updateBussinessType, delBussinessType,
insertBussinessType, downloadBussinessType
} from "../../api/basic/busOriginType";
import modifyDialog from "./BussinessTypeThirdModify";
@ -133,271 +133,278 @@ import {getBasicThirdSys} from "@/api/basic/basicThirdSys";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default {
data() {
return {
filterQuery: {
thirdSys: null,
name: "",
page: 1,
limit: 20,
},
addDialogVisible: false,
modifyDialogVisible: false,
list: [],
inputQuery: {
action: "",
name: "",
enable: "",
remark: "",
thirdSys: null,
thirdSysName: null,
data() {
return {
filterQuery: {
thirdSys: null,
name: "",
page: 1,
limit: 20,
},
addDialogVisible: false,
modifyDialogVisible: false,
list: [],
inputQuery: {
action: "",
name: "",
enable: "",
remark: "",
thirdSys: null,
thirdSysName: null,
},
enableMap: {
true: "是",
false: "否",
},
thirdSys: [],
total: 0,
multipleSelection: [],
uploadFileUrl: null,
loading: false,
configParms: {},
};
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
thirdSys: "thirdId",
name: null,
enable: null,
page: 1,
limit: 20,
};
this.getList();
},
cancelDialog() {
this.modifyDialogVisible = false;
this.addDialogVisible = false;
},
search() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
this.loading = true;
getOriginBusType(this.filterQuery)
.then((response) => {
this.loading = false;
this.list = response.data.list || [];
if (this.list.length > 0) {
this.list.forEach(item => {
this.thirdSys.forEach(third => {
if (item.thirdSys === third.thirdId) {
item.thirdSysName = third.thirdName;
}
})
})
}
this.total = response.data.total || 0;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
enableMap: {
true: "是",
false: "否",
},
thirdSys: [],
total: 0,
multipleSelection: [],
uploadFileUrl: null,
loading: false,
configParms: {},
};
},
getBasicThirdSys() {
let query = {
enabled: true,
};
getBasicThirdSys(query)
.then((response) => {
this.thirdSys = response.data.list || [];
this.filterQuery.thirdSys = this.thirdSys[0].thirdId;
})
.catch(() => {
this.loading = false;
this.list = [];
});
},
updateDownload() {
let query = {
thirdSys: this.filterQuery.thirdSys,
}
downloadBussinessType(query)
.then((response) => {
this.loading = false;
this.getList();
})
.catch(() => {
this.loading = false;
});
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
onAddSubmit() {
if (this.$isBlank(this.inputQuery.name)) {
this.$message.error("单据类型名称不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.action)) {
this.$message.error("单据类型代码不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.thirdSys)) {
this.$message.error("所属系统不不能为空!");
return;
}
let numRegExp = '^[0-9]*$';
let numReg = new RegExp(numRegExp);
if (numReg.test(this.inputQuery.name)) {
this.$message.error("单据类型名称不得为纯数字类型!");
return;
}
insertBussinessType(this.inputQuery)
.then((response) => {
this.loading = false;
this.cancelDialog();
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
thirdSys: "thirdId",
name: null,
enable: null,
page: 1,
limit: 20,
};
this.getList();
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
onModifySubmit() {
if (this.$isBlank(this.inputQuery.name)) {
this.$message.error("单据类型名称不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.action)) {
this.$message.error("单据类型代码不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.thirdSys)) {
this.$message.error("所属系统不不能为空!");
return;
}
updateBussinessType(this.inputQuery)
.then((response) => {
this.loading = false;
this.cancelDialog();
},
cancelDialog() {
this.modifyDialogVisible = false;
this.addDialogVisible = false;
},
search() {
this.filterQuery.page = 1;
this.getList();
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
},
getList() {
this.loading = true;
getOriginBusType(this.filterQuery)
.then((response) => {
this.loading = false;
this.list = response.data.list || [];
if (this.list.length > 0) {
this.list.forEach(item => {
this.thirdSys.forEach(third => {
if (item.thirdSys === third.thirdId) {
item.thirdSysName = third.thirdName;
}
})
})
}
this.total = response.data.total || 0;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
getBasicThirdSys() {
let query = {
enabled: true,
};
getBasicThirdSys(query)
.then((response) => {
this.thirdSys = response.data.list || [];
this.filterQuery.thirdSys = this.thirdSys[0].thirdId;
})
.catch(() => {
this.loading = false;
this.list = [];
});
},
updateDownload() {
let query = {
thirdSys: this.filterQuery.thirdSys,
}
downloadBussinessType(query)
.then((response) => {
this.loading = false;
this.getList();
})
.catch(() => {
this.loading = false;
});
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
handleModifyClick(row) {
onAddSubmit() {
this.inputQuery = {
id: row.id,
remark: row.remark,
action: row.action,
name: row.name,
enable: row.enable,
thirdSys: row.thirdSys,
thirdSysName: row.thirdSysName
};
this.modifyDialogVisible = true;
},
if (this.$isBlank(this.inputQuery.name)) {
this.$message.error("单据类型名称不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.action)) {
this.$message.error("单据类型代码不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.thirdSys)) {
this.$message.error("所属系统不不能为空!");
return;
}
let numRegExp = '^[0-9]*$';
let numReg = new RegExp(numRegExp);
if (numReg.test(this.inputQuery.name)) {
this.$message.error("单据类型名称不得为纯数字类型!");
return;
}
insertBussinessType(this.inputQuery)
.then((response) => {
handleDeleteClick(row) {
this.deleteDialog(row.id)
},
if (response.code == 20000) {
this.loading = false;
this.cancelDialog();
this.getList();
handleAddClick() {
this.inputQuery = {
action: "",
name: "",
enable: "",
remark: "",
thirdSys: null,
thirdSysName: null
};
this.addDialogVisible = true;
},
} else {
this.$message.error(response.message);
}
deleteDialog(rowId) {
this.$confirm("此操作将永久删除该单据类型信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
let query = {
id: rowId,
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
onModifySubmit() {
if (this.$isBlank(this.inputQuery.name)) {
this.$message.error("单据类型名称不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.action)) {
this.$message.error("单据类型代码不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.thirdSys)) {
this.$message.error("所属系统不不能为空!");
return;
}
delBussinessType(query)
updateBussinessType(this.inputQuery)
.then((response) => {
this.getList();
this.loading = false;
this.cancelDialog();
this.getList();
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
handleModifyClick(row) {
})
.catch(() => {
});
},
this.inputQuery = {
id: row.id,
remark: row.remark,
action: row.action,
name: row.name,
enable: row.enable,
thirdSys: row.thirdSys,
thirdSysName: row.thirdSysName
};
this.modifyDialogVisible = true;
},
thirdSysChange() {
this.getList();
},
init() {
axios.get("./config.json").then(res => {
//
let response = res.data.BASE_URL;
this.uploadFileUrl = response + "udiwms/busstiness/file/upload";
});
handleDeleteClick(row) {
this.deleteDialog(row.id)
},
handleAddClick() {
this.inputQuery = {
action: "",
name: "",
enable: "",
remark: "",
thirdSys: null,
thirdSysName: null
};
this.addDialogVisible = true;
},
deleteDialog(rowId) {
this.$confirm("此操作将永久删除该单据类型信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
let query = {
id: rowId,
}
delBussinessType(query)
.then((response) => {
this.getList();
})
.catch(() => {
});
})
.catch(() => {
});
},
thirdSysChange() {
this.getList();
},
init() {
axios.get("./config.json").then(res => {
//
let response = res.data.BASE_URL;
this.uploadFileUrl = response + "udiwms/busstiness/file/upload";
});
},
handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
} else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success(response.data);
this.getList();
}
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
},
handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
} else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success(response.data);
this.getList();
}
components: {
modifyDialog,
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
mounted() {
},
},
components: {
modifyDialog,
},
mounted() {
},
created() {
this.init();
this.getSyncConfig();
this.getBasicThirdSys();
this.getList();
created() {
this.init();
this.getSyncConfig();
this.getBasicThirdSys();
this.getList();
},
},
};
</script>

@ -79,6 +79,7 @@
v-loading="loading"
:data="list"
style="width: 100%"
highlight-current-row
key="1"
@selection-change="handleSelectionChange"
>

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

@ -127,7 +127,7 @@
<!--</el-col>-->
</el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px">
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col">
<el-form-item label="企业类别:" label-width="150px" prop="classes">
<el-select
@ -158,7 +158,7 @@
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px">
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col">
<el-form-item label="联系人:" label-width="150px" prop="contacts">
<el-input
@ -183,7 +183,7 @@
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px">
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col">
<el-form-item label="联系电话:" label-width="150px" prop="mobile">
<el-input
@ -208,7 +208,7 @@
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px">
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col">
<el-form-item label="证件类型:" label-width="150px" prop="contactsPapersType">
<el-select
@ -235,7 +235,7 @@
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px">
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col">
<el-form-item label="登记状态:" label-width="150px" prop="registerStatus">
<el-select
@ -265,7 +265,7 @@
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px">
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col">
<el-form-item label="经营许可证发证机关:" label-width="150px" prop="jyxkzfzjg">
<el-input
@ -285,13 +285,14 @@
type="date"
placeholder="选择日期"
:disabled="companyEditDisabled"
value-format="yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px">
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col">
<el-form-item label="经营备案凭证号:" label-width="150px" prop="jybapzh">
<el-input
@ -316,7 +317,7 @@
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px">
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col">
<el-form-item label="发证日期:" label-width="150px" prop="fzrq">
<el-date-picker
@ -325,6 +326,7 @@
type="date"
placeholder="选择日期"
:disabled="companyEditDisabled"
value-format="yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
@ -342,7 +344,7 @@
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px">
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col">
<el-form-item label="开户行:" label-width="150px" prop="kaihuhang">
<el-input
@ -856,6 +858,7 @@ export default {
filePath3: "",
filePath4: "",
},
oldData: {},
headers: {},
classesDisplay: false,
selectedOptions: [],
@ -1045,7 +1048,6 @@ export default {
}).catch(() => {
});
} else {
console.log("error submit!!");
return false;
}
});
@ -1073,7 +1075,6 @@ export default {
}).catch(() => {
});
} else {
console.log("error submit!!");
return false;
}
});
@ -1085,6 +1086,7 @@ export default {
} else {
this.companyEditDisabled = true;
this.companyEditButtonStr = "编辑";
this.getData();
}
},
addUpdateLog(formName) {
@ -1109,7 +1111,6 @@ export default {
}).catch(() => {
});
} else {
console.log("error submit!!");
return false;
}
});
@ -1120,7 +1121,6 @@ export default {
customerId: store.getters.customerId,
};
getCompany(tquery).then((response) => {
console.log(response)
this.loading = false;
this.inputQuery = response.data;
this.inputQuery.bussinessStatus = this.inputQuery.bussinessStatus + "";
@ -1375,11 +1375,8 @@ export default {
this.inputQuery.areaCode = value.toString();
},
uploadHandleRemove(file, fileList) {
console.log(file, fileList);
},
uploadHandlePreview(file) {
console.log(file);
console.log(this.fileList);
},
uploadHandleExceed(files, fileList) {
this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
@ -1411,7 +1408,6 @@ export default {
return isLt;
},
uploadHandleSuccess(response, file, fileList) {
console.log(response)
if (response.code === 20000) {
this.uploadFilePath('', response.data.name);
@ -1433,7 +1429,6 @@ export default {
}
},
uploadHandleSuccess2(response, file, fileList) {
console.log(response)
if (response.code === 20000) {
this.uploadFilePath('2', response.data.name);
@ -1454,7 +1449,6 @@ export default {
}
},
uploadHandleSuccess3(response, file, fileList) {
console.log(response)
if (response.code === 20000) {
this.uploadFilePath('3', response.data.name);
@ -1473,7 +1467,6 @@ export default {
}
},
uploadHandleSuccess4(response, file, fileList) {
console.log(response)
if (response.code === 20000) {
this.uploadFilePath('4', response.data.name);

@ -47,7 +47,7 @@
<el-form-item>
<el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button>
<el-button
type="primary"
icon="search"
@ -1526,6 +1526,10 @@ export default {
};
this.getList();
},
search() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
this.loading = true;
this.getProductRelevanceList();

@ -15,17 +15,17 @@
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.filterType" placeholder="请选择过滤对照条件">
<el-option
v-for="item in filterList"
:key="item.filterType"
:label="item.sysName"
:value="item.filterType">
<span style="float: left">{{ item.sysName }}</span>
</el-option>
</el-select>
</el-form-item>
<!-- <el-form-item class="query-form-item">-->
<!-- <el-select v-model="filterQuery.filterType" placeholder="请选择过滤对照条件">-->
<!-- <el-option-->
<!-- v-for="item in filterList"-->
<!-- :key="item.filterType"-->
<!-- :label="item.sysName"-->
<!-- :value="item.filterType">-->
<!-- <span style="float: left">{{ item.sysName }}</span>-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
</el-row>
<el-row>
@ -558,6 +558,7 @@
<el-col :span="12" class="el-col">
<el-form-item prop="name">
<el-checkbox v-model="checked" class="text item itemTag"
:disabled="true"
>以使用单元数量入库
</el-checkbox>
</el-form-item>

@ -97,7 +97,7 @@ export default {
type: Function,
required: true,
},
invQueryData:{
invQueryData: {
type: Object,
required: true,
}
@ -115,6 +115,7 @@ export default {
supId: null,
unitFk: null,
invStorageCode: null,
invWarehouseCode: null,
},
detailQuery: {
code: null,
@ -325,8 +326,12 @@ export default {
created() {
this.getBusType();
let query = this.$route.query;
this.filterQuery.invStorageCode = this.invQueryData.locStorageCode;
this.filterQuery = Object.assign(this.filterQuery, query);
this.filterQuery.invStorageCode = this.invQueryData.locStorageCode;
this.filterQuery.invWarehouseCode = this.invQueryData.invWarehouseCode;
this.filterQuery.limit = parseInt(this.filterQuery.limit);
//
this.getList();

@ -250,7 +250,7 @@
</el-table>
</el-dialog>
<el-dialog
title="选择erp业务单据"
title="选择业务单据"
:visible.sync="addDialogVisible"
width="80%"
v-if="addDialogVisible"
@ -644,7 +644,6 @@ export default {
refresgOrderDetail() {
orderDetail(this.detailQuery)
.then((response) => {
console.log(response)
this.loading = false;
this.detailList = response.data || [];
})

@ -50,7 +50,7 @@
<el-form-item>
<el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button>
<el-button type="primary" @click="addProductVisible=true"></el-button>
</el-button-group>
</el-form-item>
@ -190,6 +190,10 @@ export default {
};
this.getList();
},
search() {
this.filterQuery.page = 1;
this.getList();
},
checDialog(row) {
this.checkVisible = true;
this.curRow = row;

@ -489,9 +489,9 @@ export default {
if (this.$isBlank(this.codeArray[i].batchNo)) {
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('生产日期与失效日期不能全部为空');
}
}*/
// if (this.$isBlank(this.codeArray[i].expireDate)) {
// return this.$message.error('');
// }

@ -153,6 +153,7 @@
size="small"
style="width: 40%"
type="number"
@change="verifyUserCount"
></el-input>
</el-form-item>
</div>
@ -578,6 +579,12 @@ export default {
.catch(() => {
});
},
verifyUserCount(val) {
if (val < 0) {
this.$message.error("用户数不得小于0");
this.formData.userMax = 0;
}
},
},
components: {
customerUser,

@ -87,6 +87,7 @@
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="query.page"
>
</el-pagination>
@ -148,6 +149,22 @@
</div>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="10" class="el-col">
<div class="text item">
<div class="text item">
<el-form-item label="备注" prop="comments">
<el-input
type="text"
size="small"
v-model="formData.comments"
></el-input>
</el-form-item>
</div>
</div>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click.native="hideForm" size="small">取消</el-button>
@ -281,6 +298,7 @@ export default {
path: "",
query: this.query,
});
this.query.page = 1;
this.getList();
},
handleCurrentChange(val) {

@ -234,7 +234,7 @@
></el-pagination>
<el-dialog
title="新增订单"
title="编辑单据"
:visible.sync="addOrderVisible"
width="75%"
:close-on-click-modal="false"
@ -261,7 +261,7 @@ import {
import draggable from "vuedraggable";
import codeDetail from "./errorCode";
import addOrder from "./addOrder";
import addOrder from "./addHosOrder";
import store from "../../store";
import {getBussinessType} from "../../api/basic/bussinessType";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
@ -292,7 +292,6 @@ export default {
},
checkStatus: {
'-1': "等待提交",
// 1: "",
1: "等待处理",
2: "等待校验",
3: "校验异常",
@ -556,9 +555,8 @@ export default {
}
},
addOrders(row) {
this.idQuery.id = '';
this.idQuery.actDate = '';
this.idQuery.corpOrderId = '';
this.idQuery = row;
this.idQuery.billType = row.action;
this.idQuery.invName = row.invName;
this.idQuery.subInvName = row.subInvName;

@ -110,25 +110,30 @@
>
<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
label="产品名称"
prop="productName"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column
label="规格型号"
prop="spec"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column
label="批号"
prop="batchNo"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column
label="规格型号"
prop="spec"
label="生产日期"
prop="productDate"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column
label="失效日期"
prop="expireDate"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column label="单据数量" prop="count"></el-table-column>
@ -256,6 +261,7 @@ export default {
this.filterQuery.startDate = null;
this.filterQuery.endDate = null;
}
this.filterQuery.page = 1;
this.getList();
},
getList() {

@ -69,6 +69,14 @@ export default {
}
},
methods: {
onReset() {
this.query = {
key: "",
page: 1,
limit: 20
}
this.list = [];
},
getList() {
this.loading = true;
filterAll(this.query)
@ -81,7 +89,6 @@ export default {
});
},
selectStorage(row) {
console.log(row.id);
this.$emit("selectStorage", row);
},
},

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

@ -364,6 +364,8 @@
</el-card>
<el-dialog
title="选择往来单位"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="dialogTableVisible"
width="70%"
>
@ -417,7 +419,9 @@
</el-table>
</el-dialog>
<el-dialog
title="选择erp业务单据"
title="选择业务单据"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="addDialogVisible"
width="80%"
v-if="addDialogVisible"
@ -432,6 +436,8 @@
<el-dialog
title="单号详情"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="codeDetailVisible"
width="80%"
v-if="codeDetailVisible"
@ -446,6 +452,8 @@
<el-dialog
title="绑定产品ID"
:visible.sync="selectRlVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="80%"
v-if="selectRlVisible"
>
@ -689,6 +697,7 @@ export default {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
}
this.filterQuery.page = 1;
this.getList();
},
bindRl(val) {
@ -911,11 +920,6 @@ export default {
});
},
intentDetail(row) {
// this.$router.push({
// path: "../inout/detail",
// query: { id: row.id },
// });
this.codeDetailVisible = true;
this.idQuery.id = row.id;
},
@ -1077,7 +1081,7 @@ export default {
.then((response) => {
this.storageList = response.data || [];
if (this.storageList.length > 0) {
this.invChange();
this.getSubInvList();
this.getList();
}
})
@ -1251,6 +1255,19 @@ export default {
.catch(() => {
});
},
getSubInvList() {
let query = {
pcode: this.filterQuery.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() {
this.getBusType();
}

@ -73,7 +73,7 @@
<el-form-item style="margin-right: 50px; margin-left: auto">
<el-button-group>
<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-group>
@ -83,6 +83,7 @@
</el-form>
<el-table v-loading="loading" :data="list" style="width: 100%"
highlight-current-row
@selection-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column>
@ -221,7 +222,7 @@
</el-dialog>
<el-dialog
title="新增订单"
:title="formMap[formName]"
:visible.sync="addOrderVisible"
width="85%" append-to-body
:close-on-click-modal="false"
@ -236,7 +237,7 @@
</el-dialog>
<el-dialog
title="新增订单"
:title="formMap[formName]"
:visible.sync="addHosOrderVisible"
width="75%"
append-to-body
@ -269,6 +270,7 @@
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="filterQuery.page"
></el-pagination>
</el-card>
</div>
@ -291,6 +293,7 @@ import store from "../../store";
import {filterAllByUser} from "@/api/basic/invWarehouse";
import {getLocalJoinByUser} from "@/api/basic/busLocalType";
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {isBlank} from "@/utils/strUtil";
const formJson = {
site_id: "",
@ -314,7 +317,6 @@ export default {
},
checkStatus: {
'-1': "草稿",
// 1: "",
1: "等待处理",
2: "等待校验",
3: "校验异常",
@ -350,8 +352,8 @@ export default {
formName: null,
errorDetail: "1111111111111",
formMap: {
add: "新增",
edit: "编辑",
add: "新增单据",
update: "编辑单据",
},
fromTypeMap: {
"1": "UDIMS平台",
@ -373,6 +375,7 @@ export default {
formData: formJson,
deleteLoading: false,
busTypes: [],
};
},
components: {
@ -396,6 +399,7 @@ export default {
},
onSubmit() {
this.loading = true;
this.filterQuery.page = 1;
this.getList();
},
handleSizeChange(val) {
@ -440,7 +444,7 @@ export default {
.then((response) => {
this.storageList = response.data || [];
if (this.storageList.length > 0) {
this.invChange();
this.getSubInvList();
this.getList();
}
})
@ -466,6 +470,7 @@ export default {
this.idQuery.actDate = '';
this.idQuery.corpOrderId = '';
this.idQuery.outChangeEnable = row.outChangeEnable;
if (row.id !== null && row.id !== undefined && row.id !== '') {
this.idQuery.id = row.id;
@ -475,9 +480,10 @@ export default {
this.idQuery.locStorageCode = row.locStorageCode;
this.idQuery.invWarehouseCode = row.invWarehouseCode;
this.idQuery.fromSubInvCode = row.fromSubInvCode;
this.idQuery.preCheck = row.preCheck;
this.formName = "update";
} else {
this.formName = "add";
}
if (store.getters.customerId == 110) {
@ -486,13 +492,10 @@ export default {
this.idQuery.fromCorp = row.fromCorp;
this.idQuery.fromCorpId = row.fromCorpId;
this.idQuery.preCheck = row.preCheck;
} else {
this.idQuery.preCheck = row.preCheck;
this.addOrderVisible = true;
}
},
errOrders() {
this.errOrderVisible = true;
@ -514,11 +517,9 @@ export default {
});
},
handleSelectionChange(val) {
console.log(val);
this.multipleSelection = val;
},
selectUnit(row) {
console.log(row.id);
this.unitUpdateQuery.id = this.curIndex;
this.unitUpdateQuery.fromCorp = row.name;
this.unitUpdateQuery.fromCorpId = row.unitid;
@ -540,7 +541,6 @@ export default {
// this.filterQuery.statusOrOne = -1;
filterOrder(this.filterQuery)
.then((response) => {
console.log(response)
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
@ -561,19 +561,24 @@ export default {
let unit = repeatData[0].fromCorp;
let action = repeatData[0].action;
let orderList = [];
repeatData.forEach((obj, index) => {
if (unit !== obj.fromCorp) {
this.$message.warning("往来单位不一致!");
for(let index in repeatData){
if (action !== repeatData[index].action) {
this.$message.warning("业务类型不一致!");
return;
}
if (action !== obj.action) {
this.$message.warning("业务类型不一致!");
if (unit !== repeatData[index].fromCorp) {
this.$message.warning("往来单位不一致!");
return;
}
orderList.push(obj.id);
});
orderList.push(repeatData[index].id);
}
let tquery = {
orderList: orderList,
type: 2,
};
this.$confirm(
@ -653,8 +658,7 @@ export default {
this.list.splice(i, 1);
break;
}
}
;
};
this.$message.success("提交成功");
} else {
this.$message.error(response.message);
@ -666,10 +670,7 @@ export default {
handleErrorDetail(poistion) {
var mOrder = this.list[poistion];
var corpOrderId = mOrder.remark;
this.errorDetail = mOrder.remark;
console.log(corpOrderId + " " + mOrder + " " + mOrder.remark);
this.dialogVisible = true;
},
@ -685,6 +686,25 @@ export default {
this.filterQuery.invWarehouseCode = "";
}
if (isBlank(this.filterQuery.locStorageCode)) {
this.filterQuery.invWarehouseCode = null;
this.subInvList = [];
return;
}
let query = {
pcode: this.filterQuery.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
getSubInvList() {
let query = {
pcode: this.filterQuery.locStorageCode
};

@ -80,7 +80,7 @@
<el-button-group>
<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="exportOrders"></el-button>
<!-- <el-button type="primary" icon="search" @click="exportOrders"></el-button>-->
</el-button-group>
</el-form-item>
</el-row>
@ -350,7 +350,7 @@
</el-table>
</el-dialog>
<el-dialog
title="选择erp业务单据"
title="选择业务单据"
:visible.sync="addDialogVisible"
width="80%"
v-if="addDialogVisible"
@ -366,6 +366,8 @@
:visible.sync="codeDetailVisible"
width="80%"
v-if="codeDetailVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<codeDetail
:idQuery="idQuery"
@ -491,7 +493,10 @@ export default {
},
detailQuery: {
orderId: "",
page: 1,
limit: 20
},
detailTotal: 0,
deleteData: {
id: "",
},
@ -608,7 +613,6 @@ export default {
this.getList();
},
handleSelectionChange(val) {
console.log(val);
this.multipleSelection = val;
},
getStorage() {
@ -618,7 +622,7 @@ export default {
this.storageList = response.data || [];
if (this.storageList.length > 0) {
this.filterQuery.locStorageCode = this.storageList[0].code;
this.invChange();
this.getSubInvList();
this.getList();
}
})
@ -738,7 +742,6 @@ export default {
this.filterQuery.customerId = store.getters.customerId;
filterOrder(this.filterQuery)
.then((response) => {
console.log(response)
this.loading = false;
this.list = response.data.list || [];
this.detailList = [];
@ -786,7 +789,6 @@ export default {
refresgOrderDetail() {
orderDetail(this.detailQuery)
.then((response) => {
console.log(response)
this.loading = false;
this.detailList = response.data || [];
})
@ -823,7 +825,6 @@ export default {
this.successOrderExportPDFSettingVisible = true;
},
successOrderExportPDF(row) {
console.log(row)
let tQuery = {
orderId: row.id,
customerId: store.getters.customerId
@ -858,7 +859,6 @@ export default {
},
selectUnit(row) {
console.log(row.id);
this.unitUpdateQuery.id = this.curIndex;
this.unitUpdateQuery.fromCorp = row.name;
this.unitUpdateQuery.fromCorpId = row.unitid;
@ -961,6 +961,20 @@ export default {
.catch(() => {
});
},
getSubInvList() {
let query = {
pcode: this.filterQuery.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() {
this.getBusType();
}

@ -238,6 +238,7 @@
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="filterQuery.page"
></el-pagination>
</el-card>
@ -314,6 +315,14 @@
:show-overflow-tooltip="true"
></el-table-column>
</el-table>
<el-pagination
:page-size="detailQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="detailTotal"
:current-page="detailQuery.page"
></el-pagination>
</el-card>
<el-dialog
title="选择往来单位"
@ -376,10 +385,12 @@
</el-dialog>
<el-dialog
title="单号详情"
title="条码详情"
:visible.sync="codeDetailVisible"
width="80%"
v-if="codeDetailVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<codeDetail
:idQuery="idQuery"
@ -400,36 +411,28 @@
<script>
import {
orderList,
codeList,
findAllByOrderId,
updateUnit,
filterOrder,
deleteByOrderId,
updateExportStatus,
uploadOrder,
mergeOrder,
orderDetail,
} from "../../api/warehouse/order";
import {
orderDetailPDFFromTemplateCode,
orderDetailPDFFromTemplateFile,
inspectionOrderDetailPDFFromTemplateCode,
inspectionOrderDetailPDFFromTemplateFile
} from "../../api/itextpdf/itextpdf";
import {repeatCheck} from "../../api/erp/erpOrder";
import {unitListBykey} from "../../api/warehouse/unit";
import draggable from "vuedraggable";
import {saveAs} from "file-saver";
import codeDetail from "./code";
import store from "../../store";
import successOrderExportPDFSetting from "./successOrderExportPDF";
import {downloadInoutOrderSuccessPDF} from "../../api/itextpdf/itextpdf";
import selectErpOrder from "./DialogSelectErpOrder";
import {getBussinessType} from "../../api/basic/bussinessType";
import {filterAllByUser} from "@/api/basic/invWarehouse";
import {getLocalJoinByUser} from "@/api/basic/busLocalType";
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {isBlank} from "@/utils/strUtil";
const formJson = {
site_id: "",
@ -494,7 +497,10 @@ export default {
},
detailQuery: {
orderId: "",
page: 1,
limit: 20
},
detailTotal: 0,
deleteData: {
id: "",
status: 2,
@ -613,6 +619,13 @@ export default {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
}
if (!isBlank(this.filterQuery.invWarehouseCode)) {
if (isBlank(this.filterQuery.locStorageCode)) {
this.$message.warning("请选择仓库!");
return;
}
}
this.getList();
},
handleSizeChange(val) {
@ -656,19 +669,23 @@ export default {
let unit = repeatData[0].fromCorp;
let action = repeatData[0].action;
let orderList = [];
repeatData.forEach((obj, index) => {
if (unit !== obj.fromCorp) {
this.$message.warning("往来单位不一致!");
for (let index in repeatData) {
if (action !== repeatData[index].action) {
this.$message.warning("业务类型不一致!");
return;
}
if (action !== obj.action) {
this.$message.warning("业务类型不一致!");
if (unit !== repeatData[index].fromCorp) {
this.$message.warning("往来单位不一致!");
return;
}
orderList.push(obj.id);
});
orderList.push(repeatData[index].id);
}
let tquery = {
orderList: orderList,
type: 1,
};
this.$confirm(
@ -993,7 +1010,7 @@ export default {
.then((response) => {
this.storageList = response.data || [];
if (this.storageList.length > 0) {
this.invChange();
this.getSubInvList();
this.getList();
}
})
@ -1003,6 +1020,23 @@ export default {
invChange() {
this.filterQuery.invWarehouseCode = "";
this.subInvList = [];
let query = {
pcode: this.filterQuery.locStorageCode
};
if (isBlank(this.filterQuery.locStorageCode)) {
this.subInvList = [];
} else {
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
}
},
getSubInvList() {
let query = {
pcode: this.filterQuery.locStorageCode
};

@ -397,6 +397,8 @@
<el-dialog
:title="selectUnitTitle"
:visible.sync="dialogTableVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="dialogTableVisible"
width="70%"
append-to-body
@ -411,6 +413,8 @@
:title="selectRlTitle"
:visible.sync="selectRlVisible"
width="80%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="selectRlVisible"
append-to-body
>
@ -426,6 +430,8 @@
:title="editTitle"
:visible.sync="editCodeVisible"
append-to-body width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="editCodeVisible"
>
<editCodeDialog
@ -439,6 +445,8 @@
:title="editTitle"
:visible.sync="editOriginCodeVisible"
append-to-body width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="editOriginCodeVisible">
<editCodeDialog
:closeCodeDialog="closeCodeDialog"
@ -628,6 +636,7 @@ export default {
closeCodeDialog() {
this.editCodeVisible = false;
this.editOriginCodeVisible = false;
this.getCodeList();
},
editCode(row) {
this.codeDetail = row;
@ -682,7 +691,7 @@ export default {
} else if (response.code == 508) {
this.originCode = "";
this.formData.code = "01" + response.data.nameCode;
this.originCode =this.formData.code ;
this.originCode = this.formData.code;
} else {
this.$alert(response.message, '提示', {
confirmButtonText: '确定',
@ -1202,8 +1211,6 @@ export default {
this.formData.actDate = new Date();
this.codeArray = [];
this.getStorage(this.formData.action);
this.findSubInvByInv();
this.findSubStorageMethod();
if (this.$isNotBlank(this.idQuery.id)) {
this.formData.actDate = new Date(this.idQuery.actDate);
this.formData.corpOrderId = this.idQuery.corpOrderId;
@ -1238,7 +1245,8 @@ export default {
this.findStorageMethod();
}
}
this.findSubInvByInv(this.formData.locStorageCode);
this.findSubStorageMethod();
this.getBusType();

@ -2,12 +2,12 @@
<div>
<el-form :inline="true" :model="query" class="query-form" size="mini">
<el-form-item class="query-form-item">
<el-input v-model="query.code" placeholder="条码查询"></el-input>
<el-input v-model="query.code" placeholder="条码查询" style="width: 300px" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button-group>
<el-button type="primary" icon="search" @click="getCodeList"
<el-button type="primary" icon="search" @click="search"
>查询
</el-button
>
@ -53,7 +53,7 @@
<span>{{ scope.row.actDate }}</span>
</template>
</el-table-column>
<el-table-column label="操作员" prop="actor" width="180"></el-table-column>
<!--<el-table-column label="操作员" prop="actor" width="180"></el-table-column>-->
</el-table>
<el-pagination
@ -129,7 +129,10 @@ export default {
this.query.page = val;
this.getCodeList();
},
search() {
this.query.page = 1;
this.getCodeList();
},
getCodeList() {
this.loading = true;
this.query.corpOrderId = this.idQuery.id;

@ -7,7 +7,7 @@
<el-form-item>
<el-button-group>
<el-button type="primary" icon="search" @click="getCodeList"
<el-button type="primary" icon="search" @click="search"
>查询
</el-button
>
@ -255,7 +255,10 @@
this.query.page = val;
this.getCodeList();
},
search() {
this.query.page = 1;
this.getCodeList();
},
getCodeList() {
this.loading = true;
this.query.corpOrderId = this.idQuery.id;

@ -29,7 +29,6 @@
>
<el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index" fixed></el-table-column>
<!-- <el-table-column label="ID" prop="id" fixed></el-table-column> -->
<el-table-column label="条码" prop="code" show-overflow-tooltip fixed></el-table-column>
<el-table-column
label="生产日期"
@ -62,13 +61,6 @@
width="220"
show-overflow-tooltip
></el-table-column>
<!-- <el-table-column label="创建时间" prop="actDate">-->
<!-- <template slot-scope="scope">-->
<!-- <i class="el-icon-time"></i>-->
<!-- <span>{{ scope.row.actDate }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="操作" fixed="right" width="250">
<template slot-scope="scope">
@ -80,14 +72,6 @@
>编辑
</el-button
>
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native.stop="deleteCode(scope.$index, scope.row)"-->
<!-- >删除-->
<!-- </el-button-->
<!-- >-->
<el-button
type="text"
size="small"
@ -95,7 +79,6 @@
>选择产品
</el-button
>
<!-- :disabled="scope.row.relId != null "-->
<el-button
type="text"
size="small"
@ -103,7 +86,6 @@
>选择供应商
</el-button
>
<!-- :disabled=" scope.row.supId !=null"-->
</template>
</el-table-column>
@ -121,6 +103,8 @@
:visible.sync="dialogTableVisible"
v-if="dialogTableVisible"
width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
append-to-body
>
<DialogSelectUnit
@ -134,6 +118,8 @@
:visible.sync="selectRlVisible"
width="80%"
v-if="selectRlVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
append-to-body
>
<selectRlDialog
@ -149,6 +135,8 @@
:visible.sync="editCodeVisible"
append-to-body width="70%"
v-if="editCodeVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<editCodeDialog
editTye="2"
@ -245,6 +233,7 @@ export default {
},
closeCodeDialog() {
this.editCodeVisible = false;
this.getCodeList();
},
deleteDialog() {
this.$confirm("是否删除所选条码?", "提示", {
@ -294,7 +283,6 @@ export default {
});
},
intentBack() {
// this.$router.push({path:'../readme/detail',query:{id:row.corpOrderId}});
this.$router.go(-1);
},
//
@ -354,7 +342,6 @@ export default {
rowStyle({row, rowIndex}) {
let rowBackground = {};
if (row.supId == null || row.relId == null) {
//rowBackground.background="#f6f5ee";
rowBackground.color = '#f60303';
}

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

@ -6,7 +6,6 @@
:model="query"
class="query-form"
size="mini"
>
<el-row style="width: 100%">
<el-form-item class="query-form-item">
@ -81,10 +80,6 @@
:data="list"
style="width: 100%; " highlight-current-row
@row-click="getStockOrderDetailList" ref="multipleTable">
<!--<el-table-column
type="selection"
width="55">
</el-table-column>-->
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
@ -105,20 +100,8 @@
</el-table-column>
<el-table-column label="当前分库" prop="subInvName" width="120">
</el-table-column>
<!-- <el-table-column label="采购类型">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="操作" fixed="right" width="200">
<template slot-scope="scope">
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native="qrcodeDetail(scope.row)"-->
<!-- >码详情-->
<!-- </el-button-->
<!-- >-->
<el-button
type="text"
size="small"
@ -850,7 +833,7 @@ export default {
.then((response) => {
this.storageList = response.data || [];
if (this.storageList.length > 0) {
this.invChange();
this.getSubInvList();
this.getList();
}
})
@ -871,6 +854,20 @@ export default {
.catch(() => {
});
},
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() {
this.getBusType();
},

@ -115,6 +115,7 @@
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="query.page"
>
</el-pagination>
</el-card>
@ -186,6 +187,8 @@
:visible.sync="codeDetailVisible"
width="80%"
v-if="codeDetailVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<codeReplace
:idQuery="idQuery"
@ -331,6 +334,7 @@
this.actDateRange = [];
},
onSubmit() {
this.query.page = 1;
this.getList();
},
handleCurrentChange(val) {

@ -9,6 +9,7 @@
<el-table v-loading="detailLoading"
:data="detailList"
highlight-current-row
@selection-change="changeFun"
style="width: 100%">
@ -145,6 +146,7 @@ export default {
page: 1,
limit: 20
},
detailTotal: 0,
batchForm: {
secSalesListNo: '',
firstSalesInvNo: '',
@ -161,7 +163,6 @@ export default {
methods: {
handleEdit(index, row) {
this.currentCheckIndex = index;
console.log(this.currentCheckIndex)
},
handleSave(index, row) {
this.currentCheckIndex = -1;
@ -178,7 +179,6 @@ export default {
row.forEach((item) => {
_this.multipId.push(item.id);
})
console.log(this.multipId);
},
batchSetParams(flag, type) {
if (flag == '1' && type == 'salesListNo') {
@ -265,9 +265,9 @@ export default {
this.detailLoading = true;
stockOrderDetail(this.detailQuery)
.then((response) => {
console.log(response)
this.detailLoading = false;
this.detailList = response.data.list || [];
this.detailTotal = response.data.total;
})
.catch(() => {
this.detailLoading = false;

@ -135,6 +135,24 @@
</el-col>
</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>
@ -263,33 +281,9 @@
</template>
</el-table-column>
</el-table>
<!-- <div class="block" v-if="orderEditor">-->
<!-- <el-pagination-->
<!-- @current-change="handleCurrentChange"-->
<!-- layout="prev, pager, next"-->
<!-- :page-size="query.limit"-->
<!-- :total="total">-->
<!-- </el-pagination>-->
<!-- </div>-->
</el-card>
</el-form>
<!-- <el-dialog-->
<!-- title="产品录入"-->
<!-- :visible.sync="selectProductVisible"-->
<!-- width="85%"-->
<!-- v-if="selectProductVisible"-->
<!-- :append-to-body='true'-->
<!-- :close-on-click-modal="false"-->
<!-- :close-on-press-escape="false"-->
<!-- >-->
<!-- <stockOrderNewSelectProduct-->
<!-- :closeDialog="closeDialogC2"-->
<!-- :data="thisData"-->
<!-- ></stockOrderNewSelectProduct>-->
<!-- </el-dialog>-->
<el-dialog
title="产品录入"
@ -373,7 +367,21 @@ export default {
page: 1,
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: {
corpName: [
{required: true, message: "请输入供应商", trigger: "blur"}
@ -470,9 +478,9 @@ export default {
// return this.$message.error('');
// }
// }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空');
}
// if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
// return this.$message.error('');
// }
if (this.$isBlank(this.codeArray[i].reCount) || this.codeArray[i].reCount < 1) {
return this.$message.error('配货数量不能小于0');
}
@ -1052,13 +1060,16 @@ export default {
this.invChange();
} else {
this.formData = {
billNo: null,
billdate: "",
corpName: store.getters.companyName,
customerId: store.getters.customerId,
// billType: "deliveryNote",
billType: "",
type: "1",
// type: "",
type: "2",
corpName: "",
corpId: "",
noInvOut: "",
locStorageCode: store.getters.locInvCode,
invWarehouseCode: store.getters.locSubInvCode,
};
this.iCount = 0;
this.orderEditor = false;

@ -374,16 +374,6 @@
</el-col>
<el-col :span="7">
<el-form-item prop="productDate">
<!-- <el-input v-model="detailFormData.productDate" auto-complete="off"-->
<!-- :disabled="false"></el-input>-->
<!-- <el-date-picker-->
<!-- type="date"-->
<!-- size="small" v-model="detailFormData.productDate"-->
<!-- placeholder="请选择生产日期" style="width: 80%"-->
<!-- value-format="yyMMdd"-->
<!-- format="yyyy-MM-dd"-->
<!-- >-->
<!-- </el-date-picker>-->
<el-input v-model="detailFormData.productDate" auto-complete="off"
oninput="if(value.length>6)value=value.slice(0,6)"
type="number"
@ -397,22 +387,12 @@
</el-col>
<el-col :span="7">
<el-form-item prop="expireDate">
<!-- <el-input v-model="detailFormData.expireDate" auto-complete="off"-->
<!-- :disabled="false"></el-input>-->
<el-input v-model="detailFormData.expireDate" auto-complete="off"
oninput="if(value.length>6)value=value.slice(0,6)"
type="number"
:disabled="false"></el-input>
<!-- <el-date-picker-->
<!-- type="date"-->
<!-- size="small" v-model="detailFormData.expireDate"-->
<!-- placeholder="请选择失效日期" style="width: 80%"-->
<!-- value-format="yyMMdd"-->
<!-- format="yyyy-MM-dd"-->
<!-- >-->
<!-- </el-date-picker>-->
</el-form-item>
</el-col>
</el-row>
@ -890,9 +870,9 @@ export default {
// return this.$message.error('');
// }
// }
if (this.$isBlank(tQuery.productDate) && this.$isBlank(tQuery.expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空');
}
// if (this.$isBlank(tQuery.productDate) && this.$isBlank(tQuery.expireDate)) {
// return this.$message.error('');
// }
uploadStockOrderDetail(tQuery).then((response) => {
this.detailLoading = false;
if (response.code === 20000) {
@ -947,7 +927,7 @@ export default {
.then((response) => {
this.storageList = response.data || [];
if (this.storageList.length > 0) {
this.invChange();
this.getSubInvList();
this.getList();
}
})
@ -967,6 +947,19 @@ export default {
.catch(() => {
});
},
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() {
this.getBusType();
}

@ -84,10 +84,6 @@
:data="list"
style="width: 100%;" highlight-current-row
@row-click="getStockOrderDetailList" ref="multipleTable">
<el-table-column
type="selection"
width="55">
</el-table-column>
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
@ -113,11 +109,6 @@
</el-table-column>
<el-table-column label="当前分库" prop="subInvName" width="120">
</el-table-column>
<!-- <el-table-column label="采购类别" width="150">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="操作" fixed="right" width="150">
<template slot-scope="scope">
<el-button
@ -197,7 +188,7 @@
</el-card>
<el-dialog
title="编辑"
:title="formMap[formName]"
:visible.sync="newDistributionVisible"
width="80%"
v-if="newDistributionVisible"
@ -213,7 +204,7 @@
></stockOrderNewDistribution>
</el-dialog>
<el-dialog
title="编辑"
:title="formMap[formName]"
:visible.sync="newSpDistributionVisible"
width="80%"
v-if="newSpDistributionVisible"
@ -572,6 +563,15 @@ export default {
},
],
},
formMap: {
add: "新增业务单据",
edit: "编辑业务单据"
},
formName: null,
}
},
methods: {
@ -659,6 +659,9 @@ export default {
if (this.$isNotBlank(row) && this.$isNotBlank(row.id)) {
this.idQuery.id = row.id;
this.idQuery.formData = row;
this.formName = "edit";
} else {
this.formName = "add";
}
if (store.getters.customerId == 110) {
this.newSpDistributionVisible = true;
@ -936,7 +939,7 @@ export default {
.then((response) => {
this.storageList = response.data || [];
if (this.storageList.length > 0) {
this.invChange();
this.getSubInvList();
this.getList();
}
})
@ -956,6 +959,19 @@ export default {
.catch(() => {
});
},
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() {
this.getBusType();
}

@ -455,9 +455,9 @@ export default {
// return this.$message.error('');
// }
// }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空');
}
// if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
// return this.$message.error('');
// }
}
}
@ -560,9 +560,18 @@ export default {
},
selectProductFunction(event) {
if (event == null) {
// this.$refs.inputRef.focus();
} else event.target.select();
if (this.$isBlank(event)) {
if (this.$isBlank(this.formData.billType)) {
this.$message.error("单据类型不能为空!")
return;
}
if (this.$isBlank(this.formData.locStorageCode) || this.$isBlank(this.formData.invWarehouseCode)) {
this.$message.error("当前仓库和当前分库不能为空!");
return;
}
this.code = "";
this.$refs.multipleTable.setCurrentRow();
this.currentRow = {};
@ -594,7 +603,6 @@ export default {
code: this.code,
customerId: store.getters.customerId,
};
stockOrderDetailQueryProduct(tQuery).then((response) => {
this.loading = false;
console.log(response)
@ -631,12 +639,9 @@ export default {
}
} else {
this.$message.warning(response.message);
// this.focusNext('inputRef');
if (this.$isNotBlank(event)) {
event.target.select();
}
// event.target.select();
// event.currentTarget.select();
}
});

@ -81,22 +81,8 @@
<el-table v-loading="loading" :data="codeArray" style="width: 100%;" max-height="350" height="350"
ref="multipleTable">
<!-- <el-table-column-->
<!-- type="selection"-->
<!-- width="55">-->
<!-- </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="订单数量">-->
<!--<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="内部码" prop="udiCode"></el-table-column>
<el-table-column label="状态">
<template slot-scope="scope">
<span>{{ statusMap[scope.row.printStatus] }}</span>
@ -346,7 +332,7 @@ export default {
generateQRCodeText() {
let tip = "确定生成内部码?";
if(this.codeArray .length>1){
if (this.codeArray.length > 1) {
tip = "是否确定重新生成内部码?";
}

@ -140,6 +140,7 @@
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="query.page"
>
</el-pagination>
</el-card>
@ -597,6 +598,15 @@ export default {
this.haveDistributionVisible = true;
this.actDateRange = [];
},
resetDetailQuery() {
this.detailQuery = {
orderIdFk: "",
page: 1,
limit: 20
}
this.detailList = [];
this.detailTotal = 0;
},
onSubmit() {
if (this.actDateRange !== null) {
this.query.startTime = this.actDateRange[0];
@ -605,6 +615,7 @@ export default {
this.query.startTime = null;
this.query.endTime = null;
}
this.query.page = 1;
this.getList();
if (this.query.status === "202" || this.query.status === "502") {
this.haveDistributionVisible = true;
@ -709,6 +720,7 @@ export default {
}
},
getList() {
this.resetDetailQuery();
this.loading = true;
this.query.corpId = store.getters.customerId;
stockOrderList(this.query)
@ -936,7 +948,7 @@ export default {
.then((response) => {
this.storageList = response.data || [];
if (this.storageList.length > 0) {
this.invChange();
this.getSubInvList();
this.getList();
}
})
@ -956,6 +968,19 @@ export default {
.catch(() => {
});
},
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() {
this.getBusType();
},

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

Loading…
Cancel
Save