代码更新
This commit is contained in:
@@ -153,4 +153,11 @@ public class CheckController {
|
||||
checkService.disposeConfirm(whereJson);
|
||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
@PostMapping("/confirmBtn")
|
||||
@Log("强制确认")
|
||||
@ApiOperation("强制确认")
|
||||
public ResponseEntity<Object> confirmBtn(@RequestBody JSONObject whereJson) {
|
||||
checkService.confirmBtn(whereJson);
|
||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,4 +119,9 @@ public interface CheckService {
|
||||
* 新增全部在库木箱
|
||||
*/
|
||||
void allInsert(JSONObject whereJson);
|
||||
|
||||
/**
|
||||
* 强制确认
|
||||
*/
|
||||
void confirmBtn(JSONObject whereJson);
|
||||
}
|
||||
|
||||
@@ -808,4 +808,15 @@ public class CheckServiceImpl implements CheckService {
|
||||
dtlTab.insert(jsonDtl);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void confirmBtn(JSONObject whereJson) {
|
||||
WQLObject mstTab = WQLObject.getWQLObject("ST_IVT_CheckMst");
|
||||
|
||||
JSONObject jsonMst = mstTab.query("check_id = '" + whereJson.getString("check_id") + "'").uniqueResult(0);
|
||||
jsonMst.put("status", "99");
|
||||
|
||||
mstTab.update(jsonMst);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,4 +115,11 @@ export function allInsert(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
export default { add, edit, del, getOutBillDtl, getStructIvt, getOutBillDtl2, confirm, getInvTypes, saveCheck, process0, getOutBillDis, process1, disposeConfirm, allInsert }
|
||||
export function confirmBtn(data) {
|
||||
return request({
|
||||
url: '/api/check/confirmBtn',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export default { add, edit, del, getOutBillDtl, getStructIvt, getOutBillDtl2, confirm, getInvTypes, saveCheck, process0, getOutBillDis, process1, disposeConfirm, allInsert, confirmBtn }
|
||||
|
||||
@@ -130,17 +130,17 @@
|
||||
>
|
||||
异常处理
|
||||
</el-button>
|
||||
<!-- <el-button
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
icon="el-icon-check"
|
||||
:disabled="downdtl_flag"
|
||||
:disabled="check_flag"
|
||||
size="mini"
|
||||
@click="downdtl"
|
||||
@click="confirmBtn"
|
||||
>
|
||||
导出Excel
|
||||
</el-button>-->
|
||||
强制确认
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<!--表格渲染-->
|
||||
<el-table
|
||||
@@ -347,6 +347,12 @@ export default {
|
||||
const _selectData = this.$refs.table.selection
|
||||
this.openParam = _selectData[0].check_code
|
||||
this.processDialogShow = true
|
||||
},
|
||||
confirmBtn() {
|
||||
const _selectData = this.$refs.table.selection
|
||||
check.confirmBtn(_selectData[0]).then(res => (
|
||||
this.crud.toQuery()
|
||||
))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user