修改bug

ww
郑明梁 2 years ago
parent e972ee9f09
commit f2fcc3d858

@ -86,7 +86,7 @@
<div class="itemTag"> <div class="itemTag">
<span>生成单据类型:&nbsp;</span> <span>生成单据类型:&nbsp;</span>
</div> </div>
<el-select v-model="inputQuery.entrustAction" placeholder="单据类型" @change="entrustActionChange" clearable> <el-select v-model="inputQuery.entrustAction" placeholder="单据类型" @change="entrustSubInvChange2" clearable>
<el-option <el-option
v-for="item in entrustBusArray" v-for="item in entrustBusArray"
:key="item.action" :key="item.action"
@ -273,6 +273,29 @@ export default {
this.$message.error("单据类型数据加载失败") this.$message.error("单据类型数据加载失败")
}); });
}, },
entrustSubInvChange2(code) {
this.inputQuery.entrustInv= this.entrustSubInvList.find(item => item.code == code).parentId
this.$set(this.inputQuery, "entrustAction", "");
this.$set(this.inputQuery, "entrustUser", "");
let query = {
code: this.inputQuery.entrustSubInv,
}
//
warehouseUserList(query).then((res) => {
this.entrustUserArray = [];
this.entrustUserArray = res.data.list;
}).catch((error) => {
this.$message.error("用户数据加载失败")
});
//
warehouseBussinessTypeList(query).then((res) => {
this.entrustBusArray = res.data.list;
}).catch((error) => {
this.$message.error("单据类型数据加载失败")
});
},
entrustActionChange() { entrustActionChange() {
this.inputQuery.entrustUser = ""; this.inputQuery.entrustUser = "";
}, },

@ -427,6 +427,7 @@ export default {
this.thirdIdColumn = response.data.BUMThirdIdValue == "1" ? true : false; this.thirdIdColumn = response.data.BUMThirdIdValue == "1" ? true : false;
this.list = response.data.page.list || []; this.list = response.data.page.list || [];
this.total = response.data.page.total || 0; this.total = response.data.page.total || 0;
console.log(this.query)
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;

@ -78,7 +78,7 @@
</el-form-item> </el-form-item>
<el-form-item style="display: flex"> <el-form-item style="display: flex">
<el-button-group> <el-button-group>
<el-button type="primary" icon="search" @click="getList"></el-button> <el-button type="primary" icon="search" @click="reSearch"></el-button>
<el-button type="primary" size="mini" icon="search" @click="combine" <el-button type="primary" size="mini" icon="search" @click="combine"
>选入 >选入
</el-button> </el-button>
@ -162,12 +162,17 @@ export default {
this.getList(); this.getList();
}, },
handleErppageChange(val) { handleErppageChange(val) {
this.erpQuery.page = val; this.erpQuery.page = 1;
this.getErpList(); this.getErpList();
}, },
checkSelectable(row) { checkSelectable(row) {
return !row.checked; return !row.checked;
}, },
reSearch(){
this.unitQuery.page=1
this.getList();
},
getList() { getList() {
this.loading = true; this.loading = true;
this.unitQuery.thirdSys = this.thirdSysFk; this.unitQuery.thirdSys = this.thirdSysFk;

@ -1316,6 +1316,7 @@ export default {
}, },
removeErp(row) { removeErp(row) {
debugger
this.$confirm("此操作将解除该绑定产品信息, 是否继续?", "提示", { this.$confirm("此操作将解除该绑定产品信息, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",

@ -186,7 +186,7 @@ export default {
}, },
getCodeList() { getCodeList() {
this.loading = true; this.loading = true;
this.query.orderIdFk = this.idQuery.orderIdFk; this.query.id = this.idQuery.id;
// let query = { // let query = {
// orderIdFk: this.idQuery.orderIdFk, // orderIdFk: this.idQuery.orderIdFk,
// code:this.query.code, // code:this.query.code,

@ -88,8 +88,7 @@
<el-table-column label="分库" prop="invSubStorageName" v-if="showSup" <el-table-column label="分库" prop="invSubStorageName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column> show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="所属单号" prop="orderIdFk" v-if="showSup" <el-table-column label="所属单号" prop="orderIdFk" width="180"></el-table-column>
show-overflow-tooltip width="180"></el-table-column>
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="120" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -227,7 +226,6 @@ export default {
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.filterQuery.customerId = store.getters.customerId;
filterProducts(this.filterQuery) filterProducts(this.filterQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;

@ -250,6 +250,7 @@ export default {
this.getList(); this.getList();
}, },
checDialog(row) { checDialog(row) {
this.remark=null;
this.checkVisible = true; this.checkVisible = true;
this.curRow = row; this.curRow = row;
}, },

@ -419,7 +419,7 @@ export default {
limit: 20, limit: 20,
}; };
this.getList(); this.getList();
this.filterQuery.page=null; this.filterQuery.page=1;
}, },
formSubmit() { formSubmit() {
this.formData.roleId = this.check; this.formData.roleId = this.check;

@ -26,20 +26,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.locStorageCode" placeholder="请选择当前仓库" clearable="true" <el-select v-model="filterQuery.invWarehouseCode" placeholder="请选择当前仓库" clearable="true"
@change="invChange"
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 class="query-form-item">
<el-select v-model="filterQuery.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
size="mini" @change="fcChange"> size="mini" @change="fcChange">
<el-option <el-option
v-for="item in subInvList" v-for="item in subInvList"
@ -535,7 +522,7 @@ export default {
this.filterQuery.invWarehouseCode = ""; this.filterQuery.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.filterQuery.locStorageCode filter: 3,
}; };
filterSubByInv(query) filterSubByInv(query)
.then((response) => { .then((response) => {
@ -590,7 +577,7 @@ export default {
}; };
}, },
created() { created() {
this.getStorage(); this.invChange();
this.getBusType(); this.getBusType();
let query = this.$route.query; let query = this.$route.query;
this.filterQuery = Object.assign(this.filterQuery, query); this.filterQuery = Object.assign(this.filterQuery, query);

@ -971,7 +971,7 @@ export default {
}); });
}, },
tableRowClassName({row, rowIndex}) { tableRowClassName({row, rowIndex}) {
if (row.erpCount === row.count) { if (row.reCount === row.count) {
return "success-row"; return "success-row";
} else { } else {
return "warning-row"; return "warning-row";

@ -543,7 +543,20 @@ export default {
this.$message.error('未添加条码'); this.$message.error('未添加条码');
return; return;
} }
if (this.formData.action == null || this.formData.action == '') {
this.$message.error('未选择扫码单据类型');
return
}
debugger
if (this.formData.fromCorp == null || this.formData.fromCorp == '') {
this.$message.error('往来信息不能为空');
return
}
if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
this.$message.error('当前分库不能为空');
return;
}
let tQuery = { let tQuery = {
orderId: this.idQuery.id, orderId: this.idQuery.id,
locStorageCode: this.formData.locStorageCode, locStorageCode: this.formData.locStorageCode,
@ -576,7 +589,10 @@ export default {
this.$message.error('未选择扫码单据类型'); this.$message.error('未选择扫码单据类型');
return return
} }
if (this.formData.fromCorp == null || this.formData.fromCorp == '') {
this.$message.error('往来信息不能为空');
return
}
if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') { if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
this.$message.error('当前分库不能为空'); this.$message.error('当前分库不能为空');
@ -697,7 +713,10 @@ export default {
return; return;
} }
} }
if (this.formData.fromCorp == null || this.formData.fromCorp == '') {
this.$message.error('往来信息不能为空');
return
}
if (this.$isBlank(this.formData.corpOrderId)) { if (this.$isBlank(this.formData.corpOrderId)) {
let date = new Date(); let date = new Date();
this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10); this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10);
@ -866,6 +885,7 @@ export default {
this.query.orderId = this.idQuery.id; this.query.orderId = this.idQuery.id;
errorCodeList(this.query) // errorCodeList(this.query) //
.then((response) => { .then((response) => {
debugger
this.codeArray = response.data.list || []; this.codeArray = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
for (let i = 0; i < this.codeArray.length; i++) { for (let i = 0; i < this.codeArray.length; i++) {
@ -1186,6 +1206,7 @@ export default {
}, },
created() { created() {
debugger
this.formData.code = ''; this.formData.code = '';
this.formData.actDate = new Date(); this.formData.actDate = new Date();
this.codeArray = []; this.codeArray = [];

Loading…
Cancel
Save