1.修复部分bug

master
x_z 3 years ago
parent 938c1d9634
commit 07dc8c7ea3

@ -58,6 +58,7 @@
<span>{{ enableMap[scope.row.secCheckEnable] }}</span> <span>{{ enableMap[scope.row.secCheckEnable] }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" prop="remark" fixed></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
@ -141,6 +142,7 @@ import {
import modifyDialog from "./BussinessTypeModify"; import modifyDialog from "./BussinessTypeModify";
import axios from "axios"; import axios from "axios";
import store from "@/store"; import store from "@/store";
import {isBlank} from "@/utils/strUtil";
export default { export default {
data() { data() {
@ -263,12 +265,20 @@ export default {
this.$message.error("出入库类型不能为空!"); this.$message.error("出入库类型不能为空!");
return; return;
} }
if (isBlank(this.inputQuery.corpType)) {
this.$message.error("往来信息类型为必选项!");
return;
}
this.inputQuery.customerId = this.$store.getters.customerId; this.inputQuery.customerId = this.$store.getters.customerId;
insertBussinessType(this.inputQuery) insertBussinessType(this.inputQuery)
.then((response) => { .then((response) => {
if (response.code === 20000) {
this.loading = false; this.loading = false;
this.cancelDialog(); this.cancelDialog();
this.getList(); this.getList();
} else {
this.$message.error(response.message);
}
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;

@ -146,6 +146,15 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination
:page-size="userQuery.limit"
@current-change="loadUserList"
layout="prev, pager, next"
:total="userTotal"
:current-page="userQuery.page"
>
</el-pagination>
</el-card> </el-card>
<el-card style="width: 49%; float: right; margin-left: 0px;"> <el-card style="width: 49%; float: right; margin-left: 0px;">
@ -206,6 +215,15 @@
<el-table-column label="用户名" prop="employeeName" fixed></el-table-column> <el-table-column label="用户名" prop="employeeName" fixed></el-table-column>
</el-table> </el-table>
<el-pagination
:page-size="addUserQuery.limit"
@current-change="loadUserList"
layout="prev, pager, next"
:total="addUserTotal"
:current-page="addUserQuery.page"
>
</el-pagination>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click.native="userFormVisible = !userFormVisible" <el-button @click.native="userFormVisible = !userFormVisible"
>取消 >取消
@ -558,7 +576,32 @@ export default {
thrWareHouseVisible: false, thrWareHouseVisible: false,
checkThrWarehouseRow: null, checkThrWarehouseRow: null,
currentSysId: null, currentSysId: null,
thirdSysVisible: false thirdSysVisible: false,
userQuery: {
code: null,
page: 1,
limit: 10
},
userTotal: 0,
busQuery: {
code: null,
page: 1,
limit: 10
},
busTotal: 0,
addUserQuery: {
customerId: this.$store.getters.customerId,
page: 1,
limit: 10
},
addUserTotal: 0,
bussinessTypeQuery: {
customerId: this.$store.getters.customerId,
enabled: true,
page: 1,
limit: 10
},
bussinessTypeTotal: 0
}; };
}, },
methods: { methods: {
@ -844,15 +887,12 @@ export default {
this.$message.error("单据类型数据加载失败"); this.$message.error("单据类型数据加载失败");
}); });
}, },
addUser() { getAddUserList(val) {
if (this.currentCode == null || this.currentCode == "") { this.addUserQuery.page = val;
this.$message.error("请先选择仓库"); getUserList(this.addUserQuery).then((res) => {
} else {
this.userFormVisible = true;
let query = {customerId: this.$store.getters.customerId};
getUserList(query).then((res) => {
this.selectUserList = []; this.selectUserList = [];
this.userList = res.data; this.userList = res.data.list || [];
this.addUserTotal = res.data.total || 0;
var that = this; var that = this;
that.$nextTick(() => { that.$nextTick(() => {
if (that.$refs.checkUserList) { if (that.$refs.checkUserList) {
@ -867,7 +907,27 @@ export default {
}); });
}); });
}); });
},
addUser() {
if (this.currentCode == null || this.currentCode == "") {
this.$message.error("请先选择仓库");
} else {
this.userFormVisible = true;
this.getAddUserList(1);
}
},
loadUserList(val) {
if (val != null) {
this.userQuery.page = val;
} }
//
warehouseUserList(this.userQuery).then((res) => {
this.userData = res.data.list;
this.userTotal = res.data.total;
}).catch((error) => {
this.$message.error("用户数据加载失败")
});
}, },
handleUserSelectionChange(row) { handleUserSelectionChange(row) {
let _this = this; let _this = this;

@ -142,7 +142,7 @@
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="20" class="el-col" type="flex"> <el-col :span="20" class="el-col" type="flex">
<div class="text item"> <div class="text item">
<el-form-item label="目标仓库分库" prop="targetAction"> <el-form-item label="目标仓库分库" prop="invCode">
<el-select v-model="editLogin.invCode" <el-select v-model="editLogin.invCode"
style="width: 35%;" style="width: 35%;"
placeholder="目标仓库信息" @change="locInvChange" placeholder="目标仓库信息" @change="locInvChange"
@ -307,6 +307,12 @@ export default {
platformId: [ platformId: [
{required: true, message: "请选择自助平台", trigger: "change"} {required: true, message: "请选择自助平台", trigger: "change"}
], ],
invCode: [
{required: true, message: "请选择目标分库", trigger: "change"}
],
invSubCode: [
{required: true, message: "请选择目标分库", trigger: 'change'}
],
platformUsername: [ platformUsername: [
{required: true, message: "请输入账号", trigger: "change"} {required: true, message: "请输入账号", trigger: "change"}
], ],
@ -356,6 +362,12 @@ export default {
}; };
this.getList(); this.getList();
}, },
resetForm() {
this.$nextTick(() => {
this.$refs['editLogin'].resetFields();
this.$refs["editLogin"].clearValidate();
});
},
search() { search() {
this.query.page = 1; this.query.page = 1;
this.getList(); this.getList();
@ -405,6 +417,7 @@ export default {
this.editType = 0; this.editType = 0;
this.editLoginVisible = true; this.editLoginVisible = true;
this.editDialogVisible = false; this.editDialogVisible = false;
this.resetForm();
this.curPlatformId = "", this.curPlatformId = "",
// //
this.editLogin = { this.editLogin = {

@ -129,7 +129,6 @@ export default {
data() { data() {
return { return {
query: { query: {
name: "",
status: "" status: ""
}, },
mergeList: [], mergeList: [],

@ -11,7 +11,7 @@
> >
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input v-model="moduleQuery.name" placeholder="功能名称"></el-input> <el-input v-model="moduleQuery.name" placeholder="功能名称" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
@ -157,6 +157,15 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination
:current-page="detailQuery.page"
:page-size="detailQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="detailTotal"
></el-pagination>
<el-dialog <el-dialog
title="接口参数设置" title="接口参数设置"
:close-on-click-modal="false" :close-on-click-modal="false"
@ -177,13 +186,6 @@
> >
</div> </div>
</el-dialog> </el-dialog>
<el-pagination
:current-page="moduleQuery.page"
:page-size="moduleQuery.limit"
@current-change="handlePageChange"
layout="prev, pager, next"
:total="total"
></el-pagination>
</el-card> </el-card>
<!--表单--> <!--表单-->
@ -358,7 +360,7 @@
<el-pagination <el-pagination
:current-page="selectTemplateQuery.page" :current-page="selectTemplateQuery.page"
:page-size="selectTemplateQuery.limit" :page-size="selectTemplateQuery.limit"
@current-change="moduleHandleCurrentChange" @current-change="selectTemplateHandleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="selectTemplateTotal" :total="selectTemplateTotal"
> >
@ -423,13 +425,6 @@ const moduleFormJson = {
export default { export default {
data() { data() {
return { return {
query: {
templateType: null,
moduleId: null,
name: "",
page: 1,
limit: 20
},
headers: {}, headers: {},
list: [], list: [],
total: 0, total: 0,
@ -438,10 +433,18 @@ export default {
page: 1, page: 1,
limit: 20 limit: 20
}, },
moduleTotal: 0,
detailQuery: {
templateType: null,
moduleId: null,
name: "",
page: 1,
limit: 20
},
detailTotal: 0,
currentRow: null, currentRow: null,
moduleList: [], moduleList: [],
moduleNameList: [], moduleNameList: [],
moduleTotal: 0,
selectTemplateQuery: { selectTemplateQuery: {
busRlId: null, busRlId: null,
name: "", name: "",
@ -496,10 +499,7 @@ export default {
this.$router.push({ this.$router.push({
path: "" path: ""
}); });
this.query = { this.moduleQuery = {
templateType: null,
moduleId: null,
customerId: this.$store.getters.customerId,
name: "", name: "",
page: 1, page: 1,
limit: 20 limit: 20
@ -507,22 +507,27 @@ export default {
this.getModuleList(); this.getModuleList();
}, },
onSubmit() { onSubmit() {
this.query.page = 1; this.moduleQuery.page = 1;
this.getModuleList(); this.getModuleList();
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.query.page = val; this.detailQuery.page = val;
this.getList(); this.getList();
}, },
moduleHandleCurrentChange(val) { moduleHandleCurrentChange(val) {
this.moduleQuery.page = val; this.moduleQuery.page = val;
this.getModuleList(); this.getModuleList();
}, },
selectTemplateHandleCurrentChange(val) {
this.selectTemplateQuery.page = val;
this.selectTemplateGetList();
},
getList() { getList() {
moduleDetail(this.query) moduleDetail(this.detailQuery)
.then(response => { .then(response => {
this.loading = false; this.loading = false;
this.list = response.data || []; this.list = response.data.list || [];
this.detailTotal = response.data.total || 0;
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
@ -531,7 +536,7 @@ export default {
}, },
moduleClick(row) { moduleClick(row) {
this.query = { this.detailQuery = {
templateType: row.templateType, templateType: row.templateType,
moduleId: row.id, moduleId: row.id,
customerId: this.$store.getters.customerId, customerId: this.$store.getters.customerId,
@ -641,12 +646,11 @@ export default {
type: 1, type: 1,
name: "", name: "",
page: 1, page: 1,
limit: 20 limit: 10
}; };
this.selectTemplateGetList(); this.selectTemplateGetList();
}, },
selectTemplateGetList() { selectTemplateGetList() {
this.selectTemplateLoading = true; this.selectTemplateLoading = true;
systemPDFTemplateList(this.selectTemplateQuery) systemPDFTemplateList(this.selectTemplateQuery)

@ -249,6 +249,7 @@ export default {
// //
handleForm(index, row) { handleForm(index, row) {
this.formVisible = true; this.formVisible = true;
this.resetForm();
formJson.customerId = this.$store.getters.customerId; formJson.customerId = this.$store.getters.customerId;
this.formData = JSON.parse(JSON.stringify(formJson)); this.formData = JSON.parse(JSON.stringify(formJson));
if (row !== null) { if (row !== null) {

@ -141,6 +141,15 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="10" class="el-col" type="flex">
<div class="text item">
<el-form-item label="备注" prop="comments">
<el-input v-model="formData.comments" size="small"></el-input>
</el-form-item>
</div>
</el-col>
</el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click.native="hideForm" size="small">取消</el-button> <el-button @click.native="hideForm" size="small">取消</el-button>
@ -370,6 +379,7 @@ export default {
customerId: this.userInfo.customerId, customerId: this.userInfo.customerId,
companyName: this.userInfo.companyName, companyName: this.userInfo.companyName,
passWord: this.formData.passWord, passWord: this.formData.passWord,
checkPassword: this.formData.checkPassword,
userName: this.formData.userName, userName: this.formData.userName,
employeeName: this.formData.employeeName, employeeName: this.formData.employeeName,
}; };

@ -24,6 +24,17 @@
<el-input v-model="filterQuery.zczbhhzbapzbh" placeholder="注册/备案证号" <el-input v-model="filterQuery.zczbhhzbapzbh" placeholder="注册/备案证号"
:clearable="true"></el-input> :clearable="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.invStorageCode" placeholder="请选择仓库" clearable="true" size="mini">
<el-option
v-for="item in storageList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button <el-button
@ -51,6 +62,7 @@
<el-table-column label="入库数量" prop="inCount"></el-table-column> <el-table-column label="入库数量" prop="inCount"></el-table-column>
<el-table-column label="出库数量" prop="outCount"></el-table-column> <el-table-column label="出库数量" prop="outCount"></el-table-column>
<el-table-column label="结余数量" prop="reCount"></el-table-column> <el-table-column label="结余数量" prop="reCount"></el-table-column>
<el-table-column label="仓库" prop="invStorageName"></el-table-column>
<el-table-column label="注册/备案证号" width="180" prop="zczbhhzbapzbh"></el-table-column> <el-table-column label="注册/备案证号" width="180" prop="zczbhhzbapzbh"></el-table-column>
<el-table-column label="生产厂家" width="200" prop="manufactory"></el-table-column> <el-table-column label="生产厂家" width="200" prop="manufactory"></el-table-column>
<el-table-column label="操作" width="80" fixed="right"> <el-table-column label="操作" width="80" fixed="right">
@ -72,6 +84,8 @@
:visible.sync="codeDetailVisible" :visible.sync="codeDetailVisible"
width="65%" width="65%"
v-if="codeDetailVisible" v-if="codeDetailVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
> >
<codeDetail <codeDetail
:idQuery="idQuery" :idQuery="idQuery"
@ -97,6 +111,7 @@ import draggable from "vuedraggable";
import codeDetail from "../inventory/InvPreProductsDetail"; import codeDetail from "../inventory/InvPreProductsDetail";
import store from "../../store"; import store from "../../store";
import {getBusType} from "../../api/warehouse/BusRole"; import {getBusType} from "../../api/warehouse/BusRole";
import {filterAllByUser} from "@/api/basic/invWarehouse";
export default { export default {
@ -107,9 +122,13 @@ export default {
nameCode: null, nameCode: null,
relIdFk: null, relIdFk: null,
batchNo: null, batchNo: null,
ggxh: null,
manufactory: null,
zczbhhzbapzbh: null,
customerId: store.getters.customerId,
invStorageCode: null,
page: 1, page: 1,
limit: 20, limit: 20
customerId: null
}, },
detailQuery: { detailQuery: {
code: null, code: null,
@ -127,7 +146,8 @@ export default {
dialogVisible: false, dialogVisible: false,
deleteLoading: false, deleteLoading: false,
busTypes: [], busTypes: [],
idQuery: null idQuery: null,
storageList: [],
}; };
}, },
components: { components: {
@ -144,7 +164,11 @@ export default {
nameCode: null, nameCode: null,
relIdFk: null, relIdFk: null,
batchNo: null, batchNo: null,
customerId: null, ggxh: null,
manufactory: null,
zczbhhzbapzbh: null,
customerId: store.getters.customerId,
invStorageCode: null,
page: 1, page: 1,
limit: 20 limit: 20
}; };
@ -195,7 +219,15 @@ export default {
this.total = 0; this.total = 0;
}); });
}, },
getStorage() {
this.storageList = [];
filterAllByUser()
.then((response) => {
this.storageList = response.data || [];
})
.catch(() => {
});
},
deleteOrders(data) { deleteOrders(data) {
this.loading = true; this.loading = true;
let query = { let query = {
@ -264,6 +296,7 @@ export default {
this.filterQuery.limit = parseInt(this.filterQuery.limit); this.filterQuery.limit = parseInt(this.filterQuery.limit);
// //
this.getList(); this.getList();
this.getStorage();
} }
}; };
</script> </script>

@ -244,9 +244,10 @@ export default {
limit: 20 limit: 20
}, },
checkStatus: { checkStatus: {
error: "校验异常", 1: "等待处理",
process: "等待校验", 2: "正在处理",
success: "校验成功" 3: "已完成",
9: "异常"
}, },
curIndex: "", curIndex: "",
unitquery: {key: "", page: 1, limit: 10}, unitquery: {key: "", page: 1, limit: 10},

@ -30,7 +30,6 @@
style="width: 100%" style="width: 100%"
@row-click="getOrderDetailList" @row-click="getOrderDetailList"
highlight-current-row highlight-current-row
@selection-change="handleSelectionChange"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
@ -44,11 +43,7 @@
prop="orderId" prop="orderId"
show-overflow-tooltip="true" show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column label="来源" prop="fromType"> <el-table-column label="来源" prop="fromType"></el-table-column>
<template slot-scope="scope">
<span>{{ fromTypeMap[scope.row.fromType] }}</span>
</template>
</el-table-column>
<el-table-column label="往来单位" prop="fromCorp" width="250"> <el-table-column label="往来单位" prop="fromCorp" width="250">
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="150">
@ -67,10 +62,10 @@
<span>{{ scope.row.actDate }}</span> <span>{{ scope.row.actDate }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="校验状态" prop="contrastStatus" width="120"> <el-table-column label="验收状态" prop="receiveStatus" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="(scope.row.contrastStatus === 1) | statusFilterType"> <el-tag :type="(scope.row.receiveStatus === 1) | statusFilterType">
{{ erpCheckStatus[scope.row.contrastStatus] }} {{ erpCheckStatus[scope.row.receiveStatus] }}
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
@ -271,9 +266,9 @@
"8": "平衡补录单据", "8": "平衡补录单据",
}, },
erpCheckStatus: { erpCheckStatus: {
1: "已完成", 1: "已验收",
0: "已完成", 0: "未验收",
2: "已完成", 2: "无需验收",
}, },
isSp: store.getters.customerId, isSp: store.getters.customerId,
detailFormData: {}, detailFormData: {},

Loading…
Cancel
Save