批量审核逻辑增加
This commit is contained in:
parent
f4f7f20aa9
commit
99a53442ea
|
@ -229,6 +229,7 @@
|
||||||
"701001RWCL-0205": "停止接单",
|
"701001RWCL-0205": "停止接单",
|
||||||
"701001RWCL-0206": "开始接单",
|
"701001RWCL-0206": "开始接单",
|
||||||
"701001RWCL-0207": "有新的作业任务",
|
"701001RWCL-0207": "有新的作业任务",
|
||||||
|
"701001RWCL-0208": "批量审核",
|
||||||
|
|
||||||
|
|
||||||
"refer-0001": "编码",
|
"refer-0001": "编码",
|
||||||
|
|
|
@ -103,6 +103,16 @@ let requestApiOverwrite = {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 作业任务批量审核
|
||||||
|
batchTaskApproveAction: (opt) => {
|
||||||
|
ajax({
|
||||||
|
url: '/nccloud/' + opt.data.mod + '/ssctp/sscbd/SSCTaskHandleBatchApproveAction.do',
|
||||||
|
data: opt.data,
|
||||||
|
success: (data) => {
|
||||||
|
opt.success(data)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
// 作业任务联查操作记录
|
// 作业任务联查操作记录
|
||||||
taskQueryOperationAction: (opt) => {
|
taskQueryOperationAction: (opt) => {
|
||||||
ajax({
|
ajax({
|
||||||
|
|
|
@ -116,6 +116,8 @@ class SscUserList extends Component {
|
||||||
orderInfo: true, // 接单按钮提示语
|
orderInfo: true, // 接单按钮提示语
|
||||||
theme: '', // 当前主题
|
theme: '', // 当前主题
|
||||||
}
|
}
|
||||||
|
//选中的行数据
|
||||||
|
selectedRows: [],
|
||||||
// 查询条件
|
// 查询条件
|
||||||
this.queryKey = {
|
this.queryKey = {
|
||||||
taskstatus: 'pending',
|
taskstatus: 'pending',
|
||||||
|
@ -144,6 +146,13 @@ class SscUserList extends Component {
|
||||||
// 待处理pklist
|
// 待处理pklist
|
||||||
this.pendingPklist = [];
|
this.pendingPklist = [];
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 勾选行触发
|
||||||
|
*/
|
||||||
|
buttonController(props, moduleId, record, index, status) {
|
||||||
|
let checkedrows = props.table.getCheckedRows(moduleId);
|
||||||
|
this.selectedRows = checkedrows;
|
||||||
|
}
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
// debugger
|
// debugger
|
||||||
const key = this.props.getUrlParam("process") ? this.props.getUrlParam("process").toLowerCase() : 'pending'
|
const key = this.props.getUrlParam("process") ? this.props.getUrlParam("process").toLowerCase() : 'pending'
|
||||||
|
@ -824,6 +833,52 @@ class SscUserList extends Component {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//批量审核点击
|
||||||
|
clickBatchAudit() {
|
||||||
|
if (!this.selectedRows || Object.keys(this.selectedRows).length == 0) {
|
||||||
|
alert("请先选择行后重试");
|
||||||
|
} else {
|
||||||
|
const dataList = [];
|
||||||
|
|
||||||
|
for(var i =0; i < this.selectedRows.length; i++){
|
||||||
|
let item = this.selectedRows[i].data.values;
|
||||||
|
console.log(item);
|
||||||
|
let dataItem ={
|
||||||
|
pk_currenttask: item.pk_currenttask.value,
|
||||||
|
pk_task: item.pk_task.value,
|
||||||
|
reason: this.state.reason,
|
||||||
|
billtype: item.billtypecode.value,
|
||||||
|
billno: item.billno.value,
|
||||||
|
busiid: item.busiid.value,
|
||||||
|
skipcodes: this.state.skipcodes,
|
||||||
|
actiontype: "sscapprove",
|
||||||
|
ntbCheck: this.state.ntbCheck,
|
||||||
|
jkCheck: this.state.jkCheck,
|
||||||
|
ts: item.ts.value,
|
||||||
|
pk_group: item.pk_group.value,
|
||||||
|
transtypecode: item.transtypecode.value,
|
||||||
|
mod: item.module.value,
|
||||||
|
...this.auditPointBarInst.getAuditData(true)
|
||||||
|
}
|
||||||
|
dataList.push(dataItem);
|
||||||
|
}
|
||||||
|
let data = {
|
||||||
|
batchDataList:dataList
|
||||||
|
}
|
||||||
|
console.log("查看参数-------",data)
|
||||||
|
requestApi.batchTaskApproveAction({
|
||||||
|
data: {
|
||||||
|
batchDataList:dataList
|
||||||
|
},
|
||||||
|
success: (data) => {
|
||||||
|
if (data.success) {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
handleSagaErrorClick = () => {
|
handleSagaErrorClick = () => {
|
||||||
const { currentRowData: { saga_gtxid, busiid, billtypecode } } = this.state;
|
const { currentRowData: { saga_gtxid, busiid, billtypecode } } = this.state;
|
||||||
|
@ -1295,19 +1350,14 @@ class SscUserList extends Component {
|
||||||
btnsLeftArea={(
|
btnsLeftArea={(
|
||||||
<div className="get-bill-checkbox">
|
<div className="get-bill-checkbox">
|
||||||
<NCButton
|
<NCButton
|
||||||
className={getBillClass}
|
className={currentKey == 'pending' ? 'show' : 'hide'}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (this.state.getBillStatus) {
|
this.clickBatchAudit.call(this)
|
||||||
this.getBillChange.call(this, false)
|
|
||||||
} else {
|
|
||||||
this.getBillChange.call(this, true)
|
|
||||||
}
|
|
||||||
}}
|
}}
|
||||||
onMouseEnter={() => this.setState({ orderInfo: false })}
|
|
||||||
onMouseLeave={() => this.setState({ orderInfo: true })}
|
|
||||||
|
|
||||||
>
|
>
|
||||||
{orderInnerContent}
|
{(
|
||||||
|
<span >{multiLang && multiLang.get('701001RWCL-0208')}</span>
|
||||||
|
)}
|
||||||
</NCButton>
|
</NCButton>
|
||||||
<NCButton
|
<NCButton
|
||||||
className={getBillClass}
|
className={getBillClass}
|
||||||
|
@ -1324,7 +1374,7 @@ class SscUserList extends Component {
|
||||||
>
|
>
|
||||||
{orderInnerContent}
|
{orderInnerContent}
|
||||||
</NCButton>
|
</NCButton>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
btnsClick={buttonClick.bind(this)}
|
btnsClick={buttonClick.bind(this)}
|
||||||
currentKey={currentKey}
|
currentKey={currentKey}
|
||||||
|
@ -1368,6 +1418,9 @@ class SscUserList extends Component {
|
||||||
pkname: tablePkName,
|
pkname: tablePkName,
|
||||||
lazyload: false,
|
lazyload: false,
|
||||||
showIndex: true,
|
showIndex: true,
|
||||||
|
showCheck: true,
|
||||||
|
onSelected: this.buttonController.bind(this),
|
||||||
|
onSelectedAll: this.buttonController.bind(this),
|
||||||
onRowDoubleClick: (...params) => { onRowDoubleClick.call(this, ...params) },
|
onRowDoubleClick: (...params) => { onRowDoubleClick.call(this, ...params) },
|
||||||
sort: {
|
sort: {
|
||||||
mode: 'single',
|
mode: 'single',
|
||||||
|
@ -1402,7 +1455,7 @@ class SscUserList extends Component {
|
||||||
{/* <div
|
{/* <div
|
||||||
className='scroll-add-more'
|
className='scroll-add-more'
|
||||||
style={{display: addMoreOnOff ? 'block' : 'none'}}
|
style={{display: addMoreOnOff ? 'block' : 'none'}}
|
||||||
>{multiLang && multiLang.get('701001RWCL-0062')}</div>{/*"701001RWCL-0062": "滑动加载更多"*/} */}
|
>{multiLang && multiLang.get('701001RWCL-0062')}</div>{/*"701001RWCL-0062": "滑动加载更多"*/}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue