修改bug

zhairh
郑明梁 3 years ago
parent 9da0f2bcbe
commit 03cb78449c

@ -152,6 +152,7 @@ export default {
}, },
methods: { methods: {
onReset() { onReset() {
this.$router.push({ this.$router.push({
path: "", path: "",
}); });
@ -165,6 +166,8 @@ export default {
supId: null, supId: null,
page: 1, page: 1,
limit: 10, limit: 10,
invStorageCode:this.invQueryData.locStorageCode,
invWarehouseCode:this.invQueryData.invWarehouseCode
}; };
this.getList(); this.getList();
}, },
@ -333,6 +336,7 @@ export default {
}; };
}, },
created() { created() {
this.getBusType(); this.getBusType();
let query = this.$route.query; let query = this.$route.query;

@ -356,9 +356,6 @@ export default {
if (this.formData.billDate == "" || this.formData.billDate == null) { if (this.formData.billDate == "" || this.formData.billDate == null) {
return this.$message.error("单据日期不能为空!"); return this.$message.error("单据日期不能为空!");
} }
if(this.formData.billType=="" || this.formData.billType==null){
return this.$message.error("采购类型不能为空!");
}
if(this.formData.invWarehouseCode=="" || this.formData.invWarehouseCode==null){ if(this.formData.invWarehouseCode=="" || this.formData.invWarehouseCode==null){
return this.$message.error("采购分库不能为空!"); return this.$message.error("采购分库不能为空!");

@ -499,7 +499,9 @@ export default {
this.subInvList = response.data || []; this.subInvList = response.data || [];
if (this.subInvList != null && this.subInvList.length == 1) { if (this.subInvList != null && this.subInvList.length == 1) {
this.formData.invWarehouseCode = this.subInvList[0].code; this.formData.invWarehouseCode = this.subInvList[0].code;
this.formData.locStorageCode = this.subInvList[0].parentId;
this.getBusType(); this.getBusType();
this.findSubStorageMethod();
} }
}) })
.catch(() => { .catch(() => {
@ -514,30 +516,11 @@ export default {
} }
}, },
//
findStorageMethod() {
if (this.formData.locStorageCode == null)
return;
this.fromStorageOptions = [];
let cQuery = {
locInvCode: this.formData.locStorageCode,
};
filterAllByLoc(cQuery)
.then((response) => {
let temp = response.data || [];
for (let i = 0; i < temp.length; i++) {
if (temp[i].code != this.formData.locStorageCode) {
this.fromStorageOptions.push(temp[i]);
}
}
})
.catch(() => {
});
},
// //
findSubStorageMethod() { findSubStorageMethod() {
debugger
let cQuery = { let cQuery = {
code: this.formData.invWarehouseCode, code: this.formData.invWarehouseCode,
filter: 2, filter: 2,
@ -918,7 +901,6 @@ export default {
} }
this.formData.locStorageCode = item; this.formData.locStorageCode = item;
this.$forceUpdate(); this.$forceUpdate();
this.findStorageMethod();
this.findSubInvs(); this.findSubInvs();
}, },
@ -960,7 +942,7 @@ export default {
this.getBusType(); this.getBusType();
this.findSubInvs(); this.findSubInvs();
this.findSubStorageMethod();
// this.findSubInvByInv(); // this.findSubInvByInv();
this.codeArray = []; this.codeArray = [];
this.closeConfirmFunction(false); this.closeConfirmFunction(false);

@ -476,6 +476,7 @@ export default {
this.idQuery.corpOrderId = ''; this.idQuery.corpOrderId = '';
this.idQuery.outChangeEnable = row.outChangeEnable; this.idQuery.outChangeEnable = row.outChangeEnable;
if (row.id !== null && row.id !== undefined && row.id !== '') { if (row.id !== null && row.id !== undefined && row.id !== '') {
this.idQuery.id = row.id; this.idQuery.id = row.id;
this.idQuery.actDate = row.actDate; this.idQuery.actDate = row.actDate;
this.idQuery.corpOrderId = row.corpOrderId; this.idQuery.corpOrderId = row.corpOrderId;

@ -1005,7 +1005,6 @@ export default {
}; };
filterSubByInv(cQuery) filterSubByInv(cQuery)
.then((response) => { .then((response) => {
this.fromSubStorageOptions = response.data || []; this.fromSubStorageOptions = response.data || [];
if (val == 1) { if (val == 1) {
@ -1182,7 +1181,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 = [];
@ -1221,9 +1220,9 @@ export default {
if (this.$isNotBlank(this.formData.locStorageCode)) { if (this.$isNotBlank(this.formData.locStorageCode)) {
this.findStorageMethod(); this.findStorageMethod();
} }
this.findSubStorageMethod();
} }
this.findSubInvByInv(); this.findSubInvByInv();
this.findSubStorageMethod();
this.getBusType(); this.getBusType();
// //

@ -80,7 +80,7 @@
<el-table-column label="单据号" prop="billNo"></el-table-column> <el-table-column label="单据号" prop="billNo"></el-table-column>
<el-table-column label="往来单位" prop="corpName" width="300" <el-table-column label="往来单位" prop="corpName" width="300"
show-overflow-tooltip="true"></el-table-column> show-overflow-tooltip="true"></el-table-column>
<el-table-column label="单据类型" prop="billType"></el-table-column> <el-table-column label="单据类型" prop="billTypeName"></el-table-column>
<el-table-column label="单据状态" prop="billFlag" width="80"></el-table-column> <el-table-column label="单据状态" prop="billFlag" width="80"></el-table-column>
<el-table-column label="单据日期" prop="billdate"></el-table-column> <el-table-column label="单据日期" prop="billdate"></el-table-column>
</el-table> </el-table>

@ -800,6 +800,7 @@ export default {
}; };
this.selectInvProductVisible = true; this.selectInvProductVisible = true;
} else { } else {
this.selectProductVisible = true; this.selectProductVisible = true;
} }
return; return;

@ -302,10 +302,11 @@ export default {
this.getList(); this.getList();
}, },
getList() { getList() {
debugger
this.loading = true; this.loading = true;
this.listQuery.customerId = store.getters.customerId; this.listQuery.customerId = store.getters.customerId;
if(this.listQuery.customerId==110 && this.data.formData!=null && this.data.formData!=undefined){ if(this.listQuery.customerId==110 && this.data.formData!=null && this.data.formData!=undefined && this.data.formData.noInvOut==false){
this.listQuery.companyName=this.data.formData.corpName this.listQuery.companyName=this.data.formData.corpName
} }
if(this.listQuery.customerId!=110 && this.data!=null && this.data!=undefined){ if(this.listQuery.customerId!=110 && this.data!=null && this.data!=undefined){

Loading…
Cancel
Save