添加条件预收

product
bawei 1 year ago
parent 5579b463ad
commit 83bd7058de

@ -513,6 +513,7 @@ export default {
listLoading: true,
multipleSelection: [],
multipleSelectionItem: [],
total: 0,
listQuery: {
currentPage: 1,
@ -1070,46 +1071,33 @@ export default {
return;
}
var poundlistEntityList = this.multipleSelectionItem[0].poundlistEntityList;
var i = 0
var z = 0
for ( i ; i < poundlistEntityList.length; i++) {
if (poundlistEntityList[i].advance == '0' && poundlistEntityList[i].isCollection == '1'){
z++;
// console.log(""+z);
}
}
if (z < i ){
var id = undefined;
id= this.multipleSelectionItem[0].id
// id = row.id;
this.formVisible7 = true;
this.$nextTick(() => {
this.$refs.JNPFForm7.init(id);
});
}else {
this.$message({
type: "error",
message: "该订单没有不垫资回款预收",
duration: 2500,
});
// console.log(i+" "+" "+z);
return;
}
},
// noAdvance(row, isDetail) {
// if (
// !this.multipleSelectionItem.length || this.multipleSelectionItem.length != 1
// ) {
// this.$message({
// type: "error",
// message: "",
// duration: 2500,
// });
// return;
// }
// const list = this.multipleSelectionItem.join();
// this.formVisible7 = true;
// this.$nextTick(() => {
// this.$refs.JNPFForm7.init(list);
// });
// request({
// url:
// "/api/purchaseorder/Purchaseorder/" +
// this.multipleSelectionItem[0].id,
// method: "get",
// }).then((res) => {
// id = row.id;
// this.formVisible7 = true;
// this.$nextTick(() => {
// this.$refs.JNPFForm7.init(id ,isDetail);
// });
//
// });
// },
guidangHandle() {

Loading…
Cancel
Save