This commit is contained in:
xd 2024-07-03 09:52:21 +08:00
parent c4d7963465
commit 06048f7d93
3 changed files with 14 additions and 23 deletions

View File

@ -1,11 +0,0 @@
#for tests only !
#Wed Jun 26 10:28:59 CST 2024
jco.destination.pool_capacity=10
jco.client.lang=ZH
jco.client.ashost=172.19.0.125
jco.client.saprouter=
jco.client.user=RFC
jco.client.sysnr=00
jco.destination.peak_limit=10
jco.client.passwd=654321
jco.client.client=800

View File

@ -168,17 +168,19 @@ public class QuotController extends BaseController
* 获取报价详细信息-整单通过
*/
@PreAuthorize("@ss.hasPermi('quot:quot:allPass')")
@GetMapping(value = "/allPass/{quotId}")
@GetMapping(value = "/allPass/{quotIds}")
@Log(title = "报价单-手动更新状态为通过", businessType = BusinessType.UPDATE)
public AjaxResult getAllPassInfo(@PathVariable("quotId") String quotId)
public AjaxResult getAllPassInfo(@PathVariable("quotIds") String[] quotIds)
{
Quot quot = new Quot();
quot.setQuotId(quotId);
quot.setQuotApprovalStatus("2");// 提交状态设置为 通过
quot.setQuotQuotationDate(DateUtils.getNowDate());//报价单-报价日期设置为 当前日期
quot.setQuotCheckUserName(getUsername());
quotService.updateQuotAllPassInfo(quot);
return success(quot);
for(String quotId:quotIds){
Quot quot = new Quot();
quot.setQuotId(quotId);
quot.setQuotApprovalStatus("2");// 提交状态设置为 通过
quot.setQuotQuotationDate(DateUtils.getNowDate());//报价单-报价日期设置为 当前日期
quot.setQuotCheckUserName(getUsername());
quotService.updateQuotAllPassInfo(quot);
}
return success();
}
/**

View File

@ -129,7 +129,7 @@
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
:disabled="multiple"
@click="handleAllPass"
v-hasPermi="['quot:quot:allPass']"
>整单通过</el-button>
@ -1369,10 +1369,10 @@ export default {
//
handleAllPass(row) {
this.reset();
const quotId = row.quotId || this.ids
const quotIds = row.quotId || this.ids
this.$modal.confirm('是否确认修订所选报价单且更新状态为通过?').then(function() {
}).then(() => {
getAllPass(quotId).then(response => {
getAllPass(quotIds).then(response => {
this.$modal.msgSuccess("更改成功");
this.getList();
});