|
|
@ -452,6 +452,7 @@
|
|
|
|
<JNPF-Form4 v-if="formVisible4" ref="JNPFForm4" @refresh="refresh4" />
|
|
|
|
<JNPF-Form4 v-if="formVisible4" ref="JNPFForm4" @refresh="refresh4" />
|
|
|
|
<JNPF-Form5 v-if="formVisible5" ref="JNPFForm5" @refresh="refresh5" />
|
|
|
|
<JNPF-Form5 v-if="formVisible5" ref="JNPFForm5" @refresh="refresh5" />
|
|
|
|
<JNPF-Form6 v-if="formVisible6" ref="JNPFForm6" @refresh="refresh6" />
|
|
|
|
<JNPF-Form6 v-if="formVisible6" ref="JNPFForm6" @refresh="refresh6" />
|
|
|
|
|
|
|
|
<JNPF-Form7 v-if="formVisible7" ref="JNPFForm7" @refresh="refresh7" />
|
|
|
|
<FlowBox v-if="flowVisible" ref="FlowBox" @close="colseFlow" />
|
|
|
|
<FlowBox v-if="flowVisible" ref="FlowBox" @close="colseFlow" />
|
|
|
|
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" />
|
|
|
|
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" />
|
|
|
|
<Detail
|
|
|
|
<Detail
|
|
|
@ -472,6 +473,7 @@ 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 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";
|
|
|
@ -488,6 +490,7 @@ export default {
|
|
|
|
JNPFForm4,
|
|
|
|
JNPFForm4,
|
|
|
|
JNPFForm5,
|
|
|
|
JNPFForm5,
|
|
|
|
JNPFForm6,
|
|
|
|
JNPFForm6,
|
|
|
|
|
|
|
|
JNPFForm7,
|
|
|
|
FlowBox,
|
|
|
|
FlowBox,
|
|
|
|
ExportBox,
|
|
|
|
ExportBox,
|
|
|
|
Detail,
|
|
|
|
Detail,
|
|
|
@ -523,6 +526,7 @@ export default {
|
|
|
|
formVisible4: false,
|
|
|
|
formVisible4: false,
|
|
|
|
formVisible5: false,
|
|
|
|
formVisible5: false,
|
|
|
|
formVisible6: false,
|
|
|
|
formVisible6: false,
|
|
|
|
|
|
|
|
formVisible7: false,
|
|
|
|
exportBoxVisible: false,
|
|
|
|
exportBoxVisible: false,
|
|
|
|
columnList: [
|
|
|
|
columnList: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1056,8 +1060,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
noAdvance() {
|
|
|
|
noAdvance() {
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
!this.multipleSelectionItem.length ||
|
|
|
|
!this.multipleSelectionItem.length || this.multipleSelectionItem.length != 1
|
|
|
|
this.multipleSelectionItem.length != 1
|
|
|
|
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: "error",
|
|
|
|
type: "error",
|
|
|
@ -1066,21 +1069,48 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
request({
|
|
|
|
|
|
|
|
url:
|
|
|
|
var id = undefined;
|
|
|
|
"/api/purchaseorder/Purchaseorder/noadvance/" + this.multipleSelectionItem[0].id,
|
|
|
|
id= this.multipleSelectionItem[0].id
|
|
|
|
method: "get",
|
|
|
|
|
|
|
|
}).then((res) => {
|
|
|
|
// id = row.id;
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
type: "success",
|
|
|
|
this.formVisible7 = true;
|
|
|
|
message: res.msg,
|
|
|
|
this.$nextTick(() => {
|
|
|
|
duration: 2500,
|
|
|
|
this.$refs.JNPFForm7.init(id);
|
|
|
|
onClose: () => {
|
|
|
|
|
|
|
|
this.initData();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 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() {
|
|
|
|
if (!this.multipleSelectionItem.length) {
|
|
|
|
if (!this.multipleSelectionItem.length) {
|
|
|
@ -1414,6 +1444,10 @@ export default {
|
|
|
|
this.formVisible6 = false;
|
|
|
|
this.formVisible6 = false;
|
|
|
|
if (isrRefresh) this.reset();
|
|
|
|
if (isrRefresh) this.reset();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
refresh7(isrRefresh) {
|
|
|
|
|
|
|
|
this.formVisible7 = false;
|
|
|
|
|
|
|
|
if (isrRefresh) this.reset();
|
|
|
|
|
|
|
|
},
|
|
|
|
colseFlow(isrRefresh) {
|
|
|
|
colseFlow(isrRefresh) {
|
|
|
|
this.flowVisible = false;
|
|
|
|
this.flowVisible = false;
|
|
|
|
if (isrRefresh) this.reset();
|
|
|
|
if (isrRefresh) this.reset();
|
|
|
|