rev:设置站点增加手动事务
This commit is contained in:
@@ -146,13 +146,6 @@ public interface CheckOutBillService {
|
|||||||
*/
|
*/
|
||||||
void setPoint(JSONObject whereJson);
|
void setPoint(JSONObject whereJson);
|
||||||
|
|
||||||
/**
|
|
||||||
* 设置一个站点
|
|
||||||
*
|
|
||||||
* @param whereJson /
|
|
||||||
*/
|
|
||||||
void oneSetPoint(JSONObject whereJson);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置一个站点
|
* 设置一个站点
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -150,14 +150,6 @@ public class CheckOutBillController {
|
|||||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/oneSetPoint")
|
|
||||||
@Log("设置一个站点")
|
|
||||||
|
|
||||||
public ResponseEntity<Object> oneSetPoint(@RequestBody JSONObject whereJson) {
|
|
||||||
checkOutBillService.oneSetPoint(whereJson);
|
|
||||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping("/oneSetPoint2")
|
@PostMapping("/oneSetPoint2")
|
||||||
@Log("设置一个站点")
|
@Log("设置一个站点")
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -601,29 +601,6 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
oneSetPoint() {
|
|
||||||
if (this.form2.point_code === '') {
|
|
||||||
this.crud.notify('请先选择站点!', CRUD.NOTIFICATION_TYPE.INFO)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (this.currentDis.point_code) {
|
|
||||||
this.crud.notify('站点已设置!', CRUD.NOTIFICATION_TYPE.INFO)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (this.currentDis.work_status !== '00') {
|
|
||||||
this.crud.notify('任务已生成!', CRUD.NOTIFICATION_TYPE.INFO)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (this.currentDis.iostorinvdis_id !== null) {
|
|
||||||
this.currentDis.point_code = this.form2.point_code
|
|
||||||
checkoutbill.oneSetPoint(this.currentDis).then(res => {
|
|
||||||
this.queryTableDdis(this.currentDis.iostorinvdtl_id)
|
|
||||||
this.crud.notify('设置成功!', CRUD.NOTIFICATION_TYPE.INFO)
|
|
||||||
}).catch(() => {
|
|
||||||
this.currentDis.point_code = ''
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
oneSetPoint2() {
|
oneSetPoint2() {
|
||||||
if (this.form2.point_code === '') {
|
if (this.form2.point_code === '') {
|
||||||
this.crud.notify('请先选择站点!', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('请先选择站点!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
|||||||
Reference in New Issue
Block a user