|
|
|
@ -568,7 +568,7 @@
|
|
|
|
|
<JNPF-Form-Order
|
|
|
|
|
v-if="formOrderVisible"
|
|
|
|
|
ref="JNPFFormOrder"
|
|
|
|
|
@refresh="fnRefreshFormOrder"
|
|
|
|
|
@refreshFormOrder="fnRefreshFormOrder"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</transition>
|
|
|
|
@ -749,9 +749,10 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
mounted() {},
|
|
|
|
|
methods: {
|
|
|
|
|
fnRefreshFormOrder(isrRefresh) {
|
|
|
|
|
this.formOrderVisible = false;
|
|
|
|
|
if (isrRefresh) this.reset();
|
|
|
|
|
fnRefreshFormOrder() {
|
|
|
|
|
console.log("刷新");
|
|
|
|
|
console.log(this.dataForm.id)
|
|
|
|
|
this.init(this.dataForm.id)
|
|
|
|
|
},
|
|
|
|
|
fnProcurementOrderCreate(row) {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
@ -897,21 +898,21 @@ export default {
|
|
|
|
|
this.dataForm = JSON.parse(JSON.stringify(this.dataValueAll));
|
|
|
|
|
},
|
|
|
|
|
init(id, isDetail, allList) {
|
|
|
|
|
this.prevDis = false;
|
|
|
|
|
this.nextDis = false;
|
|
|
|
|
this.allList = allList || [];
|
|
|
|
|
if (allList.length) {
|
|
|
|
|
this.index = this.allList.findIndex(item => item.id === id);
|
|
|
|
|
if (this.index == 0) {
|
|
|
|
|
this.prevDis = true;
|
|
|
|
|
}
|
|
|
|
|
if (this.index == this.allList.length - 1) {
|
|
|
|
|
this.nextDis = true;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.prevDis = true;
|
|
|
|
|
this.nextDis = true;
|
|
|
|
|
}
|
|
|
|
|
// this.prevDis = false;
|
|
|
|
|
// this.nextDis = false;
|
|
|
|
|
// this.allList = allList || [];
|
|
|
|
|
// if (allList.length) {
|
|
|
|
|
// this.index = this.allList.findIndex(item => item.id === id);
|
|
|
|
|
// if (this.index == 0) {
|
|
|
|
|
// this.prevDis = true;
|
|
|
|
|
// }
|
|
|
|
|
// if (this.index == this.allList.length - 1) {
|
|
|
|
|
// this.nextDis = true;
|
|
|
|
|
// }
|
|
|
|
|
// } else {
|
|
|
|
|
// this.prevDis = true;
|
|
|
|
|
// this.nextDis = true;
|
|
|
|
|
// }
|
|
|
|
|
this.dataForm.id = id || 0;
|
|
|
|
|
this.visible = true;
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
@ -921,6 +922,7 @@ export default {
|
|
|
|
|
url: "/api/example/YysMaterialProcurementPlan/" + this.dataForm.id,
|
|
|
|
|
method: "get"
|
|
|
|
|
}).then(res => {
|
|
|
|
|
console.log(res)
|
|
|
|
|
this.dataInfo(res.data);
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|