收款单业务日期修改

product
bawei 1 year ago
parent 0abf25ad1c
commit ca6ffc2c9f

@ -171,9 +171,9 @@ public class CollectionController {
* @param ids * @param ids
* @return * @return
*/ */
@PutMapping("/confirmprice/{ids}") @PostMapping("/confirmprice/{ids}")
@Transactional @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 userId=userProvider.get().getUserId();
String detpartment=null; String detpartment=null;
if (!userProvider.get().getIsAdministrator()) { if (!userProvider.get().getIsAdministrator()) {
@ -248,7 +248,7 @@ public class CollectionController {
// saleordercetEntity.setStatus("3"); // saleordercetEntity.setStatus("3");
saleorderitemService.updateById(saleordercetEntity); saleorderitemService.updateById(saleordercetEntity);
collectionEntity.setStatus("2"); collectionEntity.setStatus("2");
collectionEntity.setBusinessDate(collectionUpForm.getBusinessDate()); // collectionEntity.setBusinessDate(new Date());
collectionEntity.setCollectionUserId(userId); collectionEntity.setCollectionUserId(userId);
if (StringUtil.isNotNull(detpartment)) { if (StringUtil.isNotNull(detpartment)) {
collectionEntity.setCollectionDept(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() { confirmprice() {
if (!this.multipleSelection.length) { if (!this.multipleSelection.length) {
this.$message({ this.$message({
@ -668,26 +636,20 @@ export default {
}); });
return; return;
} }
let ids = this.multipleSelection.join();
this.multipleSelectionItem.forEach((item, index) => { if (this.multipleSelection.length === 1) {
console.log("没有进去") request({
if (item.status == 2) { url: `/api/collection/Collection/confirmprice/${ids}`,
method: "POST",
}).then((res) => {
this.$message({ this.$message({
type: "error", type: "success",
message: "单据状态为已认款", message: res.msg,
duration: 2500, 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) { if (this.multipleSelection.length > 1) {
this.$message({ this.$message({
type: "error", type: "error",
@ -696,9 +658,47 @@ export default {
}); });
} }
} }
}
});
}, },
// 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) { addOrUpdateHandle(row, isDetail) {
var id = undefined; var id = undefined;

Loading…
Cancel
Save