添加条件预收

product
bawei 1 year ago
parent 5579b463ad
commit 83bd7058de

@ -412,13 +412,13 @@
>删除
</el-button>
<!-- <el-button-->
<!-- type="text"-->
<!-- class="JNPF-table-delBtn"-->
<!-- @click="handleDel2(scope.row)"-->
<!-- v-has="'btn_remove'"-->
<!-- >清除磅单-->
<!-- </el-button>-->
<!-- <el-button-->
<!-- type="text"-->
<!-- class="JNPF-table-delBtn"-->
<!-- @click="handleDel2(scope.row)"-->
<!-- v-has="'btn_remove'"-->
<!-- >清除磅单-->
<!-- </el-button>-->
<el-button
type="text"
@ -465,23 +465,23 @@
</template>
<script>
import request from "@/utils/request";
import { getDictionaryDataSelector } from "@/api/systemData/dictionary";
import JNPFForm from "./Form";
import JNPFForm2 from "./InvoicesForm";
import JNPFForm3 from "./receiptinForm";
import JNPFForm4 from "./PaymentdocForm";
import JNPFForm5 from "./purchasebackForm";
import JNPFForm6 from "../poundlist/salesForm";
import JNPFForm7 from "./AdvanceForm";
import FlowBox from "@/views/workFlow/components/FlowBox";
import ImportForm from "./PurchaseorderImportForm";
import ExportBox from "./ExportBox";
import { getDataInterfaceRes } from "@/api/systemData/dataInterface";
import Detail from "./Detail";
import { getToken } from "@/utils/auth";
import request from "@/utils/request";
import { getDictionaryDataSelector } from "@/api/systemData/dictionary";
import JNPFForm from "./Form";
import JNPFForm2 from "./InvoicesForm";
import JNPFForm3 from "./receiptinForm";
import JNPFForm4 from "./PaymentdocForm";
import JNPFForm5 from "./purchasebackForm";
import JNPFForm6 from "../poundlist/salesForm";
import JNPFForm7 from "./AdvanceForm";
import FlowBox from "@/views/workFlow/components/FlowBox";
import ImportForm from "./PurchaseorderImportForm";
import ExportBox from "./ExportBox";
import { getDataInterfaceRes } from "@/api/systemData/dataInterface";
import Detail from "./Detail";
import { getToken } from "@/utils/auth";
export default {
export default {
components: {
ImportForm,
JNPFForm,
@ -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() {
@ -1465,5 +1453,5 @@ export default {
this.search();
},
},
};
};
</script>

Loading…
Cancel
Save