修改bug

pro
郑明梁 2 years ago
parent 833647368c
commit b84e3dc1a6

@ -495,6 +495,10 @@ export default {
selectData.forEach((row) => { selectData.forEach((row) => {
postQuery.ids.push(row.rlId); postQuery.ids.push(row.rlId);
}); });
if(postQuery.ids.length<=0){
this.$message.error("请先选择供应商!");
return
}
lockStatus(postQuery) lockStatus(postQuery)
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {

@ -1183,6 +1183,30 @@ export default {
}, },
submit(val) { submit(val) {
if(this.$isBlank(this.orderFormData.action)){
this.$message.warning("单据类型不能为空!");
return
}
if (this.curAction.corpType === 0 || this.curAction.corpType === 2 || (this.curAction.corpType === 1 && !this.curAction.genUnit)) {
if (this.$isBlank(this.orderFormData.fromCorp)) {
this.$message.warning("请选择往来单位!");
return;
}
}
if (this.curAction.corpType == 3) {
if (this.$isBlank(this.orderFormData.fromInvCode)) {
this.$message.warning("请选择往来单位!");
return;
}
}
if (this.curAction.corpType === 1 && this.curAction.genUnit) {
if (this.$isBlank(this.orderFormData.fromCorp)) {
this.$message.warning("请选择往来单位!");
return;
}
}
let tQuery = Object.assign( let tQuery = Object.assign(
JSON.parse(JSON.stringify(this.orderFormData)) JSON.parse(JSON.stringify(this.orderFormData))
); );

@ -110,16 +110,16 @@ export default {
if (this.editType == 1) { if (this.editType == 1) {
this.repeatAddCode(this.editData); this.repeatAddCode(this.editData);
tabCode(this.editData) // tabCode(this.editData)
.then((response) => { // .then((response) => {
console.log(response) // console.log(response)
if (response.code === 20000) { // if (response.code === 20000) {
this.$message.success("提交成功"); // this.$message.success("");
} else { // } else {
this.$message.error(response.message); // this.$message.error(response.message);
} // }
this.loading = false; // this.loading = false;
}); // });
} else { } else {
saveCode(this.editData) saveCode(this.editData)

@ -309,6 +309,10 @@ export default {
this.$message.error("往来单位不能为空!"); this.$message.error("往来单位不能为空!");
return return
} }
if(this.$isBlank(this.inputQuery.mark)){
this.$message.error("标记不能为空!");
return
}
if (this.inputQuery.fromCorp != 'true' && this.inputQuery.fromCorp != 'false') { if (this.inputQuery.fromCorp != 'true' && this.inputQuery.fromCorp != 'false') {
var query = { var query = {

@ -392,7 +392,6 @@ export default {
} }
}, },
detailDialog(row) { detailDialog(row) {
this.detailDialogVisible = true;
this.inputQuery = { this.inputQuery = {
code: row.code, code: row.code,
relId: row.relIdFk, relId: row.relIdFk,
@ -407,6 +406,11 @@ export default {
invCode: row.invCode, invCode: row.invCode,
invSpaceCode: row.invSpaceCode invSpaceCode: row.invSpaceCode
} }
if(this.$isBlank(this.filterQuery.invCode)){
this.inputQuery.deptCode = '';
this.inputQuery.invCode = '';
}
this.detailDialogVisible = true;
}, },
closeDetailDialog() { closeDetailDialog() {
this.detailDialogVisible = false; this.detailDialogVisible = false;

Loading…
Cancel
Save