收款单业务日期修改

product
bawei 1 year ago
parent 0abf25ad1c
commit ca6ffc2c9f

@ -171,9 +171,9 @@ public class CollectionController {
* @param ids
* @return
*/
@PutMapping("/confirmprice/{ids}")
@PostMapping("/confirmprice/{ids}")
@Transactional
public ActionResult confirmPrice(@PathVariable("ids") String ids, @RequestBody @Valid CollectionEntity collectionUpForm) {
public ActionResult confirmPrice(@PathVariable("ids") String ids) {
String userId=userProvider.get().getUserId();
String detpartment=null;
if (!userProvider.get().getIsAdministrator()) {
@ -248,7 +248,7 @@ public class CollectionController {
// saleordercetEntity.setStatus("3");
saleorderitemService.updateById(saleordercetEntity);
collectionEntity.setStatus("2");
collectionEntity.setBusinessDate(collectionUpForm.getBusinessDate());
// collectionEntity.setBusinessDate(new Date());
collectionEntity.setCollectionUserId(userId);
if (StringUtil.isNotNull(detpartment)) {
collectionEntity.setCollectionDept(detpartment);

@ -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;

Loading…
Cancel
Save