添加条件预收

product
bawei 1 year ago
parent 5579b463ad
commit 83bd7058de

@ -412,13 +412,13 @@
>删除 >删除
</el-button> </el-button>
<!-- <el-button--> <!-- <el-button-->
<!-- type="text"--> <!-- type="text"-->
<!-- class="JNPF-table-delBtn"--> <!-- class="JNPF-table-delBtn"-->
<!-- @click="handleDel2(scope.row)"--> <!-- @click="handleDel2(scope.row)"-->
<!-- v-has="'btn_remove'"--> <!-- v-has="'btn_remove'"-->
<!-- >清除磅单--> <!-- >清除磅单-->
<!-- </el-button>--> <!-- </el-button>-->
<el-button <el-button
type="text" type="text"
@ -465,23 +465,23 @@
</template> </template>
<script> <script>
import request from "@/utils/request"; import request from "@/utils/request";
import { getDictionaryDataSelector } from "@/api/systemData/dictionary"; import { getDictionaryDataSelector } from "@/api/systemData/dictionary";
import JNPFForm from "./Form"; import JNPFForm from "./Form";
import JNPFForm2 from "./InvoicesForm"; import JNPFForm2 from "./InvoicesForm";
import JNPFForm3 from "./receiptinForm"; import JNPFForm3 from "./receiptinForm";
import JNPFForm4 from "./PaymentdocForm"; import JNPFForm4 from "./PaymentdocForm";
import JNPFForm5 from "./purchasebackForm"; import JNPFForm5 from "./purchasebackForm";
import JNPFForm6 from "../poundlist/salesForm"; import JNPFForm6 from "../poundlist/salesForm";
import JNPFForm7 from "./AdvanceForm"; import JNPFForm7 from "./AdvanceForm";
import FlowBox from "@/views/workFlow/components/FlowBox"; import FlowBox from "@/views/workFlow/components/FlowBox";
import ImportForm from "./PurchaseorderImportForm"; import ImportForm from "./PurchaseorderImportForm";
import ExportBox from "./ExportBox"; import ExportBox from "./ExportBox";
import { getDataInterfaceRes } from "@/api/systemData/dataInterface"; import { getDataInterfaceRes } from "@/api/systemData/dataInterface";
import Detail from "./Detail"; import Detail from "./Detail";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
export default { export default {
components: { components: {
ImportForm, ImportForm,
JNPFForm, JNPFForm,
@ -513,6 +513,7 @@ export default {
listLoading: true, listLoading: true,
multipleSelection: [], multipleSelection: [],
multipleSelectionItem: [], multipleSelectionItem: [],
total: 0, total: 0,
listQuery: { listQuery: {
currentPage: 1, currentPage: 1,
@ -1070,46 +1071,33 @@ export default {
return; 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; var id = undefined;
id= this.multipleSelectionItem[0].id id= this.multipleSelectionItem[0].id
// id = row.id;
this.formVisible7 = true; this.formVisible7 = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.JNPFForm7.init(id); 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() { guidangHandle() {
@ -1465,5 +1453,5 @@ export default {
this.search(); this.search();
}, },
}, },
}; };
</script> </script>

Loading…
Cancel
Save