|
|
|
@ -627,38 +627,6 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// confirmprice() {
|
|
|
|
|
// if (!this.multipleSelection.length) {
|
|
|
|
|
// this.$message({
|
|
|
|
|
// type: "error",
|
|
|
|
|
// message: "请选择一条数据",
|
|
|
|
|
// duration: 2500,
|
|
|
|
|
// });
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
// let ids = this.multipleSelection.join();
|
|
|
|
|
// if (this.multipleSelection.length === 1) {
|
|
|
|
|
// request({
|
|
|
|
|
// url: `/api/collection/Collection/confirmprice/${ids}`,
|
|
|
|
|
// method: "POST",
|
|
|
|
|
// }).then((res) => {
|
|
|
|
|
// this.$message({
|
|
|
|
|
// type: "success",
|
|
|
|
|
// message: res.msg,
|
|
|
|
|
// onClose: () => {
|
|
|
|
|
// this.initData();
|
|
|
|
|
// },
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
// if (this.multipleSelection.length > 1) {
|
|
|
|
|
// this.$message({
|
|
|
|
|
// type: "error",
|
|
|
|
|
// message: "请选择单条数据",
|
|
|
|
|
// duration: 2500,
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
confirmprice() {
|
|
|
|
|
if (!this.multipleSelection.length) {
|
|
|
|
|
this.$message({
|
|
|
|
@ -668,37 +636,69 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.multipleSelectionItem.forEach((item, index) => {
|
|
|
|
|
console.log("没有进去")
|
|
|
|
|
if (item.status == 2) {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "error",
|
|
|
|
|
message: "单据状态为已认款",
|
|
|
|
|
duration: 2500,
|
|
|
|
|
let ids = this.multipleSelection.join();
|
|
|
|
|
if (this.multipleSelection.length === 1) {
|
|
|
|
|
request({
|
|
|
|
|
url: `/api/collection/Collection/confirmprice/${ids}`,
|
|
|
|
|
method: "POST",
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: res.msg,
|
|
|
|
|
onClose: () => {
|
|
|
|
|
this.initData();
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
console.log("ok")
|
|
|
|
|
return;
|
|
|
|
|
} else {
|
|
|
|
|
if (this.multipleSelection.length === 1) {
|
|
|
|
|
var id = undefined;
|
|
|
|
|
id= this.multipleSelectionItem[0].id
|
|
|
|
|
this.formVisible3 = true;
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.JNPFForm3.init(id);
|
|
|
|
|
if (this.multipleSelection.length > 1) {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "error",
|
|
|
|
|
message: "请选择单条数据",
|
|
|
|
|
duration: 2500,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (this.multipleSelection.length > 1) {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "error",
|
|
|
|
|
message: "请选择单条数据",
|
|
|
|
|
duration: 2500,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// confirmprice() {
|
|
|
|
|
// if (!this.multipleSelection.length) {
|
|
|
|
|
// this.$message({
|
|
|
|
|
// type: "error",
|
|
|
|
|
// message: "请选择一条数据",
|
|
|
|
|
// duration: 2500,
|
|
|
|
|
// });
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// this.multipleSelectionItem.forEach((item, index) => {
|
|
|
|
|
// console.log("没有进去")
|
|
|
|
|
// if (item.status == 2) {
|
|
|
|
|
// this.$message({
|
|
|
|
|
// type: "error",
|
|
|
|
|
// message: "单据状态为已认款",
|
|
|
|
|
// duration: 2500,
|
|
|
|
|
// });
|
|
|
|
|
// console.log("ok")
|
|
|
|
|
// return;
|
|
|
|
|
// } else {
|
|
|
|
|
// if (this.multipleSelection.length === 1) {
|
|
|
|
|
// var id = undefined;
|
|
|
|
|
// id= this.multipleSelectionItem[0].id
|
|
|
|
|
// this.formVisible3 = true;
|
|
|
|
|
// this.$nextTick(() => {
|
|
|
|
|
// this.$refs.JNPFForm3.init(id);
|
|
|
|
|
// });
|
|
|
|
|
//
|
|
|
|
|
// if (this.multipleSelection.length > 1) {
|
|
|
|
|
// this.$message({
|
|
|
|
|
// type: "error",
|
|
|
|
|
// message: "请选择单条数据",
|
|
|
|
|
// duration: 2500,
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
addOrUpdateHandle(row, isDetail) {
|
|
|
|
|
var id = undefined;
|
|
|
|
|