修改bug

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

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

@ -1183,6 +1183,30 @@ export default {
},
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(
JSON.parse(JSON.stringify(this.orderFormData))
);

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

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

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

Loading…
Cancel
Save