我的审核-增加批量审核按钮功能。编译路径: "./src/sscrp/public/common/components/job-style/*/index.js","./src/ssctp/sscuser/sscapprove/*/index.js"
This commit is contained in:
		
							parent
							
								
									e1fdede3ea
								
							
						
					
					
						commit
						0fb3c5254f
					
				| 
						 | 
					@ -5,11 +5,11 @@
 | 
				
			||||||
 * @LastEditTime: 2025-03-28 14:42:30
 | 
					 * @LastEditTime: 2025-03-28 14:42:30
 | 
				
			||||||
 * @Description: 详情页头部按钮
 | 
					 * @Description: 详情页头部按钮
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
import { toast, promptBox, print } from "nc-lightapp-front";
 | 
					import {toast, promptBox, print} from "nc-lightapp-front";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default function jobButtonEvent() {
 | 
					export default function jobButtonEvent() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const { userId } = window.parent.GETBUSINESSINFO();
 | 
					    const {userId} = window.parent.GETBUSINESSINFO();
 | 
				
			||||||
    let setHangUp = function () {
 | 
					    let setHangUp = function () {
 | 
				
			||||||
        this.reasonModalCtrlInst.show();
 | 
					        this.reasonModalCtrlInst.show();
 | 
				
			||||||
        this.setState({
 | 
					        this.setState({
 | 
				
			||||||
| 
						 | 
					@ -106,7 +106,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
                })
 | 
					                })
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            let factor = this.currentRowData.module.value;
 | 
					            let factor = this.currentRowData.module.value;
 | 
				
			||||||
 | 
					            // console.log('param = ', param);
 | 
				
			||||||
            let result = await this.requestApi.taskApproveAction(param, factor);
 | 
					            let result = await this.requestApi.taskApproveAction(param, factor);
 | 
				
			||||||
            //还原预算预警参数 ,该参数会在61行处被设置
 | 
					            //还原预算预警参数 ,该参数会在61行处被设置
 | 
				
			||||||
            this.ntbCheck = false;
 | 
					            this.ntbCheck = false;
 | 
				
			||||||
| 
						 | 
					@ -117,7 +117,8 @@ export default function jobButtonEvent() {
 | 
				
			||||||
                    promptBox({
 | 
					                    promptBox({
 | 
				
			||||||
                        color: 'warning',       // 提示类别默认"success", "success"/"info"/"warning"/"danger",非必输
 | 
					                        color: 'warning',       // 提示类别默认"success", "success"/"info"/"warning"/"danger",非必输
 | 
				
			||||||
                        title: this.state.multiLang['job-approve-tsxx'],//"提示信息"
 | 
					                        title: this.state.multiLang['job-approve-tsxx'],//"提示信息"
 | 
				
			||||||
                        content: <div dangerouslySetInnerHTML={{ __html: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm'] }}></div>,
 | 
					                        content: <div
 | 
				
			||||||
 | 
					                            dangerouslySetInnerHTML={{__html: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm']}}></div>,
 | 
				
			||||||
                        // content: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm'], // + this.state.multiLang['job-approve-sfjx'],
 | 
					                        // content: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm'], // + this.state.multiLang['job-approve-sfjx'],
 | 
				
			||||||
                        noFooter: false,  // 是否显示底部按钮(确定、取消),默认显示(false),非必输
 | 
					                        noFooter: false,  // 是否显示底部按钮(确定、取消),默认显示(false),非必输
 | 
				
			||||||
                        noCancelBtn: false,    // 是否显示取消按钮,,默认显示(false),非必输
 | 
					                        noCancelBtn: false,    // 是否显示取消按钮,,默认显示(false),非必输
 | 
				
			||||||
| 
						 | 
					@ -135,7 +136,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    })
 | 
					                    })
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    toast({ title: this.state.multiLang['job-approve-shcg'] });
 | 
					                    toast({title: this.state.multiLang['job-approve-shcg']});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    this.currentRowData.taskstatus.value = this.presetVar.sscApproveBillStatusEnum.sscapprove;
 | 
					                    this.currentRowData.taskstatus.value = this.presetVar.sscApproveBillStatusEnum.sscapprove;
 | 
				
			||||||
                    this.currentRowData.ts.value = result.data && result.data.ts;
 | 
					                    this.currentRowData.ts.value = result.data && result.data.ts;
 | 
				
			||||||
| 
						 | 
					@ -143,7 +144,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
                    this.currentRowData.voucherflag.value = result.data && result.data.voucherflag;
 | 
					                    this.currentRowData.voucherflag.value = result.data && result.data.voucherflag;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    // 如果saga异常则设置saga查询的值
 | 
					                    // 如果saga异常则设置saga查询的值
 | 
				
			||||||
                    const { saga_gtxid, busiid, billtypecode } = result.data;
 | 
					                    const {saga_gtxid, busiid, billtypecode} = result.data;
 | 
				
			||||||
                    saga_gtxid && (this.currentRowData.saga_gtxid.value = saga_gtxid);
 | 
					                    saga_gtxid && (this.currentRowData.saga_gtxid.value = saga_gtxid);
 | 
				
			||||||
                    busiid && (this.currentRowData.busiid.value = busiid);
 | 
					                    busiid && (this.currentRowData.busiid.value = busiid);
 | 
				
			||||||
                    billtypecode && (this.currentRowData.billtypecode.value = billtypecode);
 | 
					                    billtypecode && (this.currentRowData.billtypecode.value = billtypecode);
 | 
				
			||||||
| 
						 | 
					@ -159,14 +160,21 @@ export default function jobButtonEvent() {
 | 
				
			||||||
        //批量审核
 | 
					        //批量审核
 | 
				
			||||||
        'BatchApprove': async () => {
 | 
					        'BatchApprove': async () => {
 | 
				
			||||||
            let checkedRows = this.props.table.getCheckedRows(this.state.activeTabKey)
 | 
					            let checkedRows = this.props.table.getCheckedRows(this.state.activeTabKey)
 | 
				
			||||||
            let rows = checkedRows.map(row => ({ values: row.data.values }))
 | 
					            let rows = checkedRows.map(row => ({values: row.data.values}))
 | 
				
			||||||
            console.log("选择的行数据",rows)
 | 
					            // console.log("选择的行数据",rows)
 | 
				
			||||||
            if (!this.rows || Object.keys(this.rows).length == 0) {
 | 
					
 | 
				
			||||||
                toast({ color: 'danger', content: '请先选择行后重试' });
 | 
					            if (!rows || Object.keys(rows).length == 0) {
 | 
				
			||||||
            }else{
 | 
					                toast({color: 'danger', content: '请先选择行后重试'});
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
                let flagCount = 0;
 | 
					                let flagCount = 0;
 | 
				
			||||||
                for(let i = 0; i < rows.length; i++){
 | 
					                for (let i = 0; i < rows.length; i++) {
 | 
				
			||||||
                    let grid = rows[i];
 | 
					                    let grid = {
 | 
				
			||||||
 | 
					                        todo: {
 | 
				
			||||||
 | 
					                            "areaType": "table",
 | 
				
			||||||
 | 
					                            "rows": [rows[i]]
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    };
 | 
				
			||||||
                    let param = {
 | 
					                    let param = {
 | 
				
			||||||
                        ...grid,
 | 
					                        ...grid,
 | 
				
			||||||
                        userjson: JSON.stringify({
 | 
					                        userjson: JSON.stringify({
 | 
				
			||||||
| 
						 | 
					@ -178,17 +186,18 @@ export default function jobButtonEvent() {
 | 
				
			||||||
                            ...this.getSidebarSendData()
 | 
					                            ...this.getSidebarSendData()
 | 
				
			||||||
                        })
 | 
					                        })
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    let factor = this.currentRowData.module.value;
 | 
					                    // console.log('param = ', param);
 | 
				
			||||||
 | 
					                    // debugger
 | 
				
			||||||
 | 
					                    let factor = rows[i].values.module.value || '';
 | 
				
			||||||
                    let result = await this.requestApi.taskApproveAction(param, factor);
 | 
					                    let result = await this.requestApi.taskApproveAction(param, factor);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (result.success) {
 | 
					                    if (result.success) {
 | 
				
			||||||
                        flagCount++;
 | 
					                        flagCount++;
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                if(flagCount == rows.length){
 | 
					                if (flagCount == rows.length) {
 | 
				
			||||||
                    //审核成功之后跳转到已处理页面
 | 
					                    //审核成功之后跳转到已处理页面
 | 
				
			||||||
                    this.setState({ activeTabKey: 'done' })
 | 
					                    this.setState({activeTabKey: 'done'})
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
| 
						 | 
					@ -213,7 +222,8 @@ export default function jobButtonEvent() {
 | 
				
			||||||
                    promptBox({
 | 
					                    promptBox({
 | 
				
			||||||
                        color: 'warning',       // 提示类别默认"success", "success"/"info"/"warning"/"danger",非必输
 | 
					                        color: 'warning',       // 提示类别默认"success", "success"/"info"/"warning"/"danger",非必输
 | 
				
			||||||
                        title: this.state.multiLang['job-approve-tsxx'],//"提示信息"
 | 
					                        title: this.state.multiLang['job-approve-tsxx'],//"提示信息"
 | 
				
			||||||
                        content: <div dangerouslySetInnerHTML={{ __html: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm'] }}></div>,
 | 
					                        content: <div
 | 
				
			||||||
 | 
					                            dangerouslySetInnerHTML={{__html: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm']}}></div>,
 | 
				
			||||||
                        // content: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm'], // + this.state.multiLang['job-approve-sfjx'],
 | 
					                        // content: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm'], // + this.state.multiLang['job-approve-sfjx'],
 | 
				
			||||||
                        noFooter: false,  // 是否显示底部按钮(确定、取消),默认显示(false),非必输
 | 
					                        noFooter: false,  // 是否显示底部按钮(确定、取消),默认显示(false),非必输
 | 
				
			||||||
                        noCancelBtn: false,    // 是否显示取消按钮,,默认显示(false),非必输
 | 
					                        noCancelBtn: false,    // 是否显示取消按钮,,默认显示(false),非必输
 | 
				
			||||||
| 
						 | 
					@ -234,14 +244,14 @@ export default function jobButtonEvent() {
 | 
				
			||||||
                    })
 | 
					                    })
 | 
				
			||||||
                    return false;
 | 
					                    return false;
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    toast({ title: this.state.multiLang['job-approve-qxshcg'] });
 | 
					                    toast({title: this.state.multiLang['job-approve-qxshcg']});
 | 
				
			||||||
                    this.currentRowData.taskstatus.value = this.presetVar.sscApproveBillStatusEnum.taken;
 | 
					                    this.currentRowData.taskstatus.value = this.presetVar.sscApproveBillStatusEnum.taken;
 | 
				
			||||||
                    this.currentRowData.ts.value = result.data && result.data.ts;
 | 
					                    this.currentRowData.ts.value = result.data && result.data.ts;
 | 
				
			||||||
                    this.currentRowData.isneedvoucher.value = result.data && result.data.isneedvoucher;
 | 
					                    this.currentRowData.isneedvoucher.value = result.data && result.data.isneedvoucher;
 | 
				
			||||||
                    this.currentRowData.voucherflag.value = result.data && result.data.voucherflag;
 | 
					                    this.currentRowData.voucherflag.value = result.data && result.data.voucherflag;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    // 如果saga异常则设置saga查询的值
 | 
					                    // 如果saga异常则设置saga查询的值
 | 
				
			||||||
                    const { saga_gtxid, busiid, billtypecode } = result.data;
 | 
					                    const {saga_gtxid, busiid, billtypecode} = result.data;
 | 
				
			||||||
                    saga_gtxid && (this.currentRowData.saga_gtxid.value = saga_gtxid);
 | 
					                    saga_gtxid && (this.currentRowData.saga_gtxid.value = saga_gtxid);
 | 
				
			||||||
                    busiid && (this.currentRowData.busiid.value = busiid);
 | 
					                    busiid && (this.currentRowData.busiid.value = busiid);
 | 
				
			||||||
                    billtypecode && (this.currentRowData.billtypecode.value = billtypecode);
 | 
					                    billtypecode && (this.currentRowData.billtypecode.value = billtypecode);
 | 
				
			||||||
| 
						 | 
					@ -274,9 +284,9 @@ export default function jobButtonEvent() {
 | 
				
			||||||
        // 申请调整(批量)
 | 
					        // 申请调整(批量)
 | 
				
			||||||
        'AdjustApplyBatch': () => {
 | 
					        'AdjustApplyBatch': () => {
 | 
				
			||||||
            let checkedRows = this.props.table.getCheckedRows(this.state.activeTabKey);
 | 
					            let checkedRows = this.props.table.getCheckedRows(this.state.activeTabKey);
 | 
				
			||||||
            let rows = checkedRows.map(row => ({ values: row.data.values }))
 | 
					            let rows = checkedRows.map(row => ({values: row.data.values}))
 | 
				
			||||||
            this.currentGridData = {
 | 
					            this.currentGridData = {
 | 
				
			||||||
                [this.state.activeTabKey]: { areaType: 'table', rows }
 | 
					                [this.state.activeTabKey]: {areaType: 'table', rows}
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            setAdjustApply.call(this);
 | 
					            setAdjustApply.call(this);
 | 
				
			||||||
            return false; //禁止afterEvent
 | 
					            return false; //禁止afterEvent
 | 
				
			||||||
| 
						 | 
					@ -289,9 +299,9 @@ export default function jobButtonEvent() {
 | 
				
			||||||
        //取消调整(批量)
 | 
					        //取消调整(批量)
 | 
				
			||||||
        'UnAdjustApplyBatch': () => {
 | 
					        'UnAdjustApplyBatch': () => {
 | 
				
			||||||
            let checkedRows = this.props.table.getCheckedRows(this.state.activeTabKey);
 | 
					            let checkedRows = this.props.table.getCheckedRows(this.state.activeTabKey);
 | 
				
			||||||
            let rows = checkedRows.map(row => ({ values: row.data.values }))
 | 
					            let rows = checkedRows.map(row => ({values: row.data.values}))
 | 
				
			||||||
            this.currentGridData = {
 | 
					            this.currentGridData = {
 | 
				
			||||||
                [this.state.activeTabKey]: { areaType: 'table', rows }
 | 
					                [this.state.activeTabKey]: {areaType: 'table', rows}
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            setCancelAdjust.call(this)
 | 
					            setCancelAdjust.call(this)
 | 
				
			||||||
            return false; //禁止afterEvent
 | 
					            return false; //禁止afterEvent
 | 
				
			||||||
| 
						 | 
					@ -304,9 +314,9 @@ export default function jobButtonEvent() {
 | 
				
			||||||
        // 挂起 (批量)
 | 
					        // 挂起 (批量)
 | 
				
			||||||
        'HangUpBatch': () => {
 | 
					        'HangUpBatch': () => {
 | 
				
			||||||
            let checkedRows = this.props.table.getCheckedRows(this.state.activeTabKey);
 | 
					            let checkedRows = this.props.table.getCheckedRows(this.state.activeTabKey);
 | 
				
			||||||
            let rows = checkedRows.map(row => ({ values: row.data.values }))
 | 
					            let rows = checkedRows.map(row => ({values: row.data.values}))
 | 
				
			||||||
            this.currentGridData = {
 | 
					            this.currentGridData = {
 | 
				
			||||||
                [this.state.activeTabKey]: { areaType: 'table', rows }
 | 
					                [this.state.activeTabKey]: {areaType: 'table', rows}
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            setHangUp.call(this);
 | 
					            setHangUp.call(this);
 | 
				
			||||||
            return false; //禁止afterEvent
 | 
					            return false; //禁止afterEvent
 | 
				
			||||||
| 
						 | 
					@ -319,9 +329,9 @@ export default function jobButtonEvent() {
 | 
				
			||||||
        //取消挂起 (批量)
 | 
					        //取消挂起 (批量)
 | 
				
			||||||
        'CancelHangUpBatch': () => {
 | 
					        'CancelHangUpBatch': () => {
 | 
				
			||||||
            let checkedRows = this.props.table.getCheckedRows(this.state.activeTabKey);
 | 
					            let checkedRows = this.props.table.getCheckedRows(this.state.activeTabKey);
 | 
				
			||||||
            let rows = checkedRows.map(row => ({ values: row.data.values }))
 | 
					            let rows = checkedRows.map(row => ({values: row.data.values}))
 | 
				
			||||||
            this.currentGridData = {
 | 
					            this.currentGridData = {
 | 
				
			||||||
                [this.state.activeTabKey]: { areaType: 'table', rows }
 | 
					                [this.state.activeTabKey]: {areaType: 'table', rows}
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            setCancelHangUp.call(this)
 | 
					            setCancelHangUp.call(this)
 | 
				
			||||||
            return false; //禁止afterEvent
 | 
					            return false; //禁止afterEvent
 | 
				
			||||||
| 
						 | 
					@ -354,7 +364,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
        //稽核
 | 
					        //稽核
 | 
				
			||||||
        'Audit': async () => {
 | 
					        'Audit': async () => {
 | 
				
			||||||
            let currentRowData = this.currentRowData;
 | 
					            let currentRowData = this.currentRowData;
 | 
				
			||||||
            let { checkBillVOS, remark } = getCheckBillVOS.call(this)
 | 
					            let {checkBillVOS, remark} = getCheckBillVOS.call(this)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            let param = {
 | 
					            let param = {
 | 
				
			||||||
                billid: currentRowData.busiid.value || "",
 | 
					                billid: currentRowData.busiid.value || "",
 | 
				
			||||||
| 
						 | 
					@ -381,9 +391,9 @@ export default function jobButtonEvent() {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                // this.auditPointBarInst.updateOriginData();
 | 
					                // this.auditPointBarInst.updateOriginData();
 | 
				
			||||||
                if (param.problems.length > 0) {
 | 
					                if (param.problems.length > 0) {
 | 
				
			||||||
                    toast({ title: this.state.multiLang['job-audit-jhcg'] }); /* 稽核成功 */
 | 
					                    toast({title: this.state.multiLang['job-audit-jhcg']}); /* 稽核成功 */
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    toast({ title: this.state.multiLang['job-audit-wwtttcg'] }); /* 无问题通过成功 */
 | 
					                    toast({title: this.state.multiLang['job-audit-wwtttcg']}); /* 无问题通过成功 */
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                this.auditPointBarInst.checkBillVOS = result.data && result.data.checkBill
 | 
					                this.auditPointBarInst.checkBillVOS = result.data && result.data.checkBill
 | 
				
			||||||
| 
						 | 
					@ -404,7 +414,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        //取消稽核
 | 
					        //取消稽核
 | 
				
			||||||
        'CancelAudit': async (key, record, index) => {
 | 
					        'CancelAudit': async (key, record, index) => {
 | 
				
			||||||
            let { checkBillId, checkBillVOS, remark } = getCheckBillVOS.call(this, record)
 | 
					            let {checkBillId, checkBillVOS, remark} = getCheckBillVOS.call(this, record)
 | 
				
			||||||
            let param = {
 | 
					            let param = {
 | 
				
			||||||
                checkBillId,
 | 
					                checkBillId,
 | 
				
			||||||
                checkBillVOS,
 | 
					                checkBillVOS,
 | 
				
			||||||
| 
						 | 
					@ -415,7 +425,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                // this.auditPointBarInst.updateOriginData();
 | 
					                // this.auditPointBarInst.updateOriginData();
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-audit-qxjhcg'] }); // 取消稽核成功
 | 
					                toast({title: this.state.multiLang['job-audit-qxjhcg']}); // 取消稽核成功
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                // this.auditPointBarInst.checkBillVOS = result.data && result.data.checkBill
 | 
					                // this.auditPointBarInst.checkBillVOS = result.data && result.data.checkBill
 | 
				
			||||||
                this.currentRowData.def2.value = "CHECKING";
 | 
					                this.currentRowData.def2.value = "CHECKING";
 | 
				
			||||||
| 
						 | 
					@ -450,7 +460,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                // this.auditPointBarInst.updateOriginData();
 | 
					                // this.auditPointBarInst.updateOriginData();
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-audit-bccg'] }); /*保存成功*/
 | 
					                toast({title: this.state.multiLang['job-audit-bccg']}); /*保存成功*/
 | 
				
			||||||
                this.auditPointBarInst.checkBillVOS = result.data && result.data.checkBill
 | 
					                this.auditPointBarInst.checkBillVOS = result.data && result.data.checkBill
 | 
				
			||||||
                this.currentRowData.def2.value = "CHECKING";
 | 
					                this.currentRowData.def2.value = "CHECKING";
 | 
				
			||||||
                this.currentRowData.def3.value = 'TEMP';
 | 
					                this.currentRowData.def3.value = 'TEMP';
 | 
				
			||||||
| 
						 | 
					@ -469,7 +479,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-common-sqzc'] + this.state.multiLang['job-common-cg'] });  // 申请仲裁 成功
 | 
					                toast({title: this.state.multiLang['job-common-sqzc'] + this.state.multiLang['job-common-cg']});  // 申请仲裁 成功
 | 
				
			||||||
                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.todo;
 | 
					                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.todo;
 | 
				
			||||||
                // this.props.resetButtonDisabled();     // 重置按钮状态
 | 
					                // this.props.resetButtonDisabled();     // 重置按钮状态
 | 
				
			||||||
                this.setHandleReason('')
 | 
					                this.setHandleReason('')
 | 
				
			||||||
| 
						 | 
					@ -488,7 +498,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-common-ssty'] + this.state.multiLang['job-common-cg'] }); // 申述同意 成功
 | 
					                toast({title: this.state.multiLang['job-common-ssty'] + this.state.multiLang['job-common-cg']}); // 申述同意 成功
 | 
				
			||||||
                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.todo;
 | 
					                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.todo;
 | 
				
			||||||
                // this.props.resetButtonDisabled();     // 重置按钮状态
 | 
					                // this.props.resetButtonDisabled();     // 重置按钮状态
 | 
				
			||||||
                this.setHandleReason('')
 | 
					                this.setHandleReason('')
 | 
				
			||||||
| 
						 | 
					@ -506,7 +516,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-common-ssbh'] + this.state.multiLang['job-common-cg'] }); // 申述驳回 成功
 | 
					                toast({title: this.state.multiLang['job-common-ssbh'] + this.state.multiLang['job-common-cg']}); // 申述驳回 成功
 | 
				
			||||||
                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.todo;
 | 
					                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.todo;
 | 
				
			||||||
                // this.props.resetButtonDisabled();     // 重置按钮状态
 | 
					                // this.props.resetButtonDisabled();     // 重置按钮状态
 | 
				
			||||||
                this.setHandleReason('')
 | 
					                this.setHandleReason('')
 | 
				
			||||||
| 
						 | 
					@ -534,15 +544,15 @@ export default function jobButtonEvent() {
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        // 整改记录
 | 
					        // 整改记录
 | 
				
			||||||
        'RectifyHistory': async (key, record, index) => {
 | 
					        'RectifyHistory': async (key, record, index) => {
 | 
				
			||||||
            let { checkBillId, checkBillVOS } = getCheckBillVOS.call(this, record)
 | 
					            let {checkBillId, checkBillVOS} = getCheckBillVOS.call(this, record)
 | 
				
			||||||
            this.checkBillId = record ? checkBillId : checkBillVOS[0].id
 | 
					            this.checkBillId = record ? checkBillId : checkBillVOS[0].id
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            this.setState({ showRectificationhis: true })
 | 
					            this.setState({showRectificationhis: true})
 | 
				
			||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        // 取消发布
 | 
					        // 取消发布
 | 
				
			||||||
        'CancelPublishRectify': async (key, record, index) => {
 | 
					        'CancelPublishRectify': async (key, record, index) => {
 | 
				
			||||||
            let { checkBillId, checkBillVOS, remark } = getCheckBillVOS.call(this, record)
 | 
					            let {checkBillId, checkBillVOS, remark} = getCheckBillVOS.call(this, record)
 | 
				
			||||||
            let param = {
 | 
					            let param = {
 | 
				
			||||||
                checkBillId,
 | 
					                checkBillId,
 | 
				
			||||||
                checkBillVOS,
 | 
					                checkBillVOS,
 | 
				
			||||||
| 
						 | 
					@ -552,7 +562,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst && this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst && this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                // this.auditPointBarInst.updateOriginData();
 | 
					                // this.auditPointBarInst.updateOriginData();
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-common-qx'] + this.state.multiLang['job-common-cg'] });  // 取消成功
 | 
					                toast({title: this.state.multiLang['job-common-qx'] + this.state.multiLang['job-common-cg']});  // 取消成功
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                this.currentRowData.def2.value = "CHECKING";
 | 
					                this.currentRowData.def2.value = "CHECKING";
 | 
				
			||||||
                // this.currentRowData.def5.value = '';
 | 
					                // this.currentRowData.def5.value = '';
 | 
				
			||||||
| 
						 | 
					@ -576,7 +586,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                this.setHandleReason('')
 | 
					                this.setHandleReason('')
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-audit-zgcg'] }); // 整改成功
 | 
					                toast({title: this.state.multiLang['job-audit-zgcg']}); // 整改成功
 | 
				
			||||||
                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.done;
 | 
					                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.done;
 | 
				
			||||||
                this.setDeleteRows();   //设置列表要删除的列表行
 | 
					                this.setDeleteRows();   //设置列表要删除的列表行
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
| 
						 | 
					@ -593,7 +603,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-common-zc'] + this.state.multiLang['job-common-cg'] });    // 暂存成功
 | 
					                toast({title: this.state.multiLang['job-common-zc'] + this.state.multiLang['job-common-cg']});    // 暂存成功
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
| 
						 | 
					@ -607,7 +617,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-approve-bhcg'] }); // 驳回成功
 | 
					                toast({title: this.state.multiLang['job-approve-bhcg']}); // 驳回成功
 | 
				
			||||||
                this.setHandleReason('')
 | 
					                this.setHandleReason('')
 | 
				
			||||||
                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.done;
 | 
					                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.done;
 | 
				
			||||||
                this.setDeleteRows();   //设置列表要删除的列表行
 | 
					                this.setDeleteRows();   //设置列表要删除的列表行
 | 
				
			||||||
| 
						 | 
					@ -616,7 +626,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        // 撤销整改驳回 
 | 
					        // 撤销整改驳回 
 | 
				
			||||||
        'CancelRectifyReject': async (key, record, index) => {
 | 
					        'CancelRectifyReject': async (key, record, index) => {
 | 
				
			||||||
            let { checkBillId, checkBillVOS, remark } = getCheckBillVOS.call(this, record)
 | 
					            let {checkBillId, checkBillVOS, remark} = getCheckBillVOS.call(this, record)
 | 
				
			||||||
            let result = await this.requestApi.checkBillSidebarUnRectifyReject({
 | 
					            let result = await this.requestApi.checkBillSidebarUnRectifyReject({
 | 
				
			||||||
                checkBillId,
 | 
					                checkBillId,
 | 
				
			||||||
                checkBillVOS,
 | 
					                checkBillVOS,
 | 
				
			||||||
| 
						 | 
					@ -624,7 +634,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-common-cxzgbh'] + this.state.multiLang['job-common-cg'] });    // 撤销整改驳回 成功
 | 
					                toast({title: this.state.multiLang['job-common-cxzgbh'] + this.state.multiLang['job-common-cg']});    // 撤销整改驳回 成功
 | 
				
			||||||
                this.setHandleReason('')
 | 
					                this.setHandleReason('')
 | 
				
			||||||
                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.toconfirm;
 | 
					                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.toconfirm;
 | 
				
			||||||
                deleteRows.call(this, record, index)
 | 
					                deleteRows.call(this, record, index)
 | 
				
			||||||
| 
						 | 
					@ -633,7 +643,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        //  取消申述同意
 | 
					        //  取消申述同意
 | 
				
			||||||
        'CancelExplainSuccess': async (key, record, index) => {
 | 
					        'CancelExplainSuccess': async (key, record, index) => {
 | 
				
			||||||
            let { checkBillId, checkBillVOS, remark } = getCheckBillVOS.call(this, record)
 | 
					            let {checkBillId, checkBillVOS, remark} = getCheckBillVOS.call(this, record)
 | 
				
			||||||
            let result = await this.requestApi.checkBillSidebarUnExplainAgree({
 | 
					            let result = await this.requestApi.checkBillSidebarUnExplainAgree({
 | 
				
			||||||
                checkBillId,
 | 
					                checkBillId,
 | 
				
			||||||
                checkBillVOS,
 | 
					                checkBillVOS,
 | 
				
			||||||
| 
						 | 
					@ -641,7 +651,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-common-qx'] + this.state.multiLang['job-common-cg'] }); // 取消 成功
 | 
					                toast({title: this.state.multiLang['job-common-qx'] + this.state.multiLang['job-common-cg']}); // 取消 成功
 | 
				
			||||||
                this.setHandleReason('')
 | 
					                this.setHandleReason('')
 | 
				
			||||||
                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.toconfirm;
 | 
					                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.toconfirm;
 | 
				
			||||||
                deleteRows.call(this, record, index)
 | 
					                deleteRows.call(this, record, index)
 | 
				
			||||||
| 
						 | 
					@ -650,7 +660,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        // 撤销申述驳回
 | 
					        // 撤销申述驳回
 | 
				
			||||||
        'CancelExplainReject': async (key, record, index) => {
 | 
					        'CancelExplainReject': async (key, record, index) => {
 | 
				
			||||||
            let { checkBillId, checkBillVOS, remark } = getCheckBillVOS.call(this, record)
 | 
					            let {checkBillId, checkBillVOS, remark} = getCheckBillVOS.call(this, record)
 | 
				
			||||||
            let result = await this.requestApi.checkBillSidebarUnExplainReject({
 | 
					            let result = await this.requestApi.checkBillSidebarUnExplainReject({
 | 
				
			||||||
                checkBillId,
 | 
					                checkBillId,
 | 
				
			||||||
                checkBillVOS,
 | 
					                checkBillVOS,
 | 
				
			||||||
| 
						 | 
					@ -658,7 +668,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-common-cxssbh'] + this.state.multiLang['job-common-cg'] });    // 撤销申述驳回 成功
 | 
					                toast({title: this.state.multiLang['job-common-cxssbh'] + this.state.multiLang['job-common-cg']});    // 撤销申述驳回 成功
 | 
				
			||||||
                this.setHandleReason('')
 | 
					                this.setHandleReason('')
 | 
				
			||||||
                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.toconfirm;
 | 
					                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.toconfirm;
 | 
				
			||||||
                deleteRows.call(this, record, index)
 | 
					                deleteRows.call(this, record, index)
 | 
				
			||||||
| 
						 | 
					@ -667,7 +677,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        // 取消整改完成
 | 
					        // 取消整改完成
 | 
				
			||||||
        'CancelRectifySuccess': async (key, record, index) => {
 | 
					        'CancelRectifySuccess': async (key, record, index) => {
 | 
				
			||||||
            let { checkBillId, checkBillVOS, remark } = getCheckBillVOS.call(this, record)
 | 
					            let {checkBillId, checkBillVOS, remark} = getCheckBillVOS.call(this, record)
 | 
				
			||||||
            let result = await this.requestApi.checkBillSidebarUnRectify({
 | 
					            let result = await this.requestApi.checkBillSidebarUnRectify({
 | 
				
			||||||
                checkBillId,
 | 
					                checkBillId,
 | 
				
			||||||
                checkBillVOS,
 | 
					                checkBillVOS,
 | 
				
			||||||
| 
						 | 
					@ -675,7 +685,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-common-qx'] + this.state.multiLang['job-common-cg'] });
 | 
					                toast({title: this.state.multiLang['job-common-qx'] + this.state.multiLang['job-common-cg']});
 | 
				
			||||||
                this.setHandleReason('')
 | 
					                this.setHandleReason('')
 | 
				
			||||||
                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.toconfirm;
 | 
					                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.toconfirm;
 | 
				
			||||||
                deleteRows.call(this, record, index)
 | 
					                deleteRows.call(this, record, index)
 | 
				
			||||||
| 
						 | 
					@ -684,7 +694,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        // 取消申请仲裁
 | 
					        // 取消申请仲裁
 | 
				
			||||||
        'CancelApplyArbitrate': async (key, record, index) => {
 | 
					        'CancelApplyArbitrate': async (key, record, index) => {
 | 
				
			||||||
            let { checkBillId, checkBillVOS, remark } = getCheckBillVOS.call(this, record)
 | 
					            let {checkBillId, checkBillVOS, remark} = getCheckBillVOS.call(this, record)
 | 
				
			||||||
            let result = await this.requestApi.checkBillSidebarUnApplyArbitrate({
 | 
					            let result = await this.requestApi.checkBillSidebarUnApplyArbitrate({
 | 
				
			||||||
                checkBillId,
 | 
					                checkBillId,
 | 
				
			||||||
                checkBillVOS,
 | 
					                checkBillVOS,
 | 
				
			||||||
| 
						 | 
					@ -692,7 +702,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
					                this.auditPointBarInst.setPointTreeData(null, null, result);
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-common-qx'] + this.state.multiLang['job-common-cg'] });
 | 
					                toast({title: this.state.multiLang['job-common-qx'] + this.state.multiLang['job-common-cg']});
 | 
				
			||||||
                this.setHandleReason('')
 | 
					                this.setHandleReason('')
 | 
				
			||||||
                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.toconfirm;
 | 
					                this.currentRowData.taskstatus.value = this.presetVar.sscAuditBillStatusEnum.toconfirm;
 | 
				
			||||||
                deleteRows.call(this, record, index)
 | 
					                deleteRows.call(this, record, index)
 | 
				
			||||||
| 
						 | 
					@ -788,7 +798,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
                busiid: this.currentRowData.busiid.value
 | 
					                busiid: this.currentRowData.busiid.value
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-file-thcg'] }); /* 退回成功! */
 | 
					                toast({title: this.state.multiLang['job-file-thcg']}); /* 退回成功! */
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        //取消打印
 | 
					        //取消打印
 | 
				
			||||||
| 
						 | 
					@ -797,7 +807,7 @@ export default function jobButtonEvent() {
 | 
				
			||||||
                busiid: this.currentRowData.busiid.value
 | 
					                busiid: this.currentRowData.busiid.value
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            if (result.success) {
 | 
					            if (result.success) {
 | 
				
			||||||
                toast({ title: this.state.multiLang['job-file-qxdycg'] }); /*取消打印成功*/
 | 
					                toast({title: this.state.multiLang['job-file-qxdycg']}); /*取消打印成功*/
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue