|
@@ -249,13 +249,13 @@ class CMSign extends Component {
|
|
</span>
|
|
</span>
|
|
</React.Fragment>
|
|
</React.Fragment>
|
|
)
|
|
)
|
|
- } else if (item.key === 'toXyy') {
|
|
|
|
|
|
+ } else if (item.key === 'toQYS') {
|
|
return (
|
|
return (
|
|
<React.Fragment>
|
|
<React.Fragment>
|
|
<span style={{color: '#0073E1', cursor: 'pointer', marginLeft: '12px'}}
|
|
<span style={{color: '#0073E1', cursor: 'pointer', marginLeft: '12px'}}
|
|
onClick={opt.sendContract.bind(opt, billId, record)}
|
|
onClick={opt.sendContract.bind(opt, billId, record)}
|
|
>
|
|
>
|
|
- 发起合同
|
|
|
|
|
|
+ 推送契约锁
|
|
</span>
|
|
</span>
|
|
</React.Fragment>
|
|
</React.Fragment>
|
|
)
|
|
)
|
|
@@ -1046,7 +1046,7 @@ class CMSign extends Component {
|
|
sendContract(v, record) {
|
|
sendContract(v, record) {
|
|
let pks = v
|
|
let pks = v
|
|
ajax({
|
|
ajax({
|
|
- url: '/nccloud/axj/hr/ContractSignAction.do',
|
|
|
|
|
|
+ url: '/nccloud/anxj/qys/ContractSignaturesAction.do',
|
|
data: {
|
|
data: {
|
|
billId: pks
|
|
billId: pks
|
|
},
|
|
},
|
|
@@ -1054,6 +1054,7 @@ class CMSign extends Component {
|
|
console.log(res)
|
|
console.log(res)
|
|
if (res.success && !!res.data) {
|
|
if (res.success && !!res.data) {
|
|
toast({color: 'success', content: "合同发送成功!"});
|
|
toast({color: 'success', content: "合同发送成功!"});
|
|
|
|
+ this.refreshTableData(true)
|
|
} else {
|
|
} else {
|
|
toast({color: 'warning', content: res.error.message});
|
|
toast({color: 'warning', content: res.error.message});
|
|
}
|
|
}
|
|
@@ -1198,10 +1199,10 @@ class CMSign extends Component {
|
|
let pk_psndoc_sub = cardData.rows[0].values.pk_psndoc_sub.value;
|
|
let pk_psndoc_sub = cardData.rows[0].values.pk_psndoc_sub.value;
|
|
this.contractText(pk_psndoc_sub);
|
|
this.contractText(pk_psndoc_sub);
|
|
break;
|
|
break;
|
|
- case 'toXyy':
|
|
|
|
|
|
+ case 'toQYS':
|
|
let selectRows = this.props.editTable.getCheckedRows(tableid);
|
|
let selectRows = this.props.editTable.getCheckedRows(tableid);
|
|
- let pk_psndoc_sub1 = selectRows && selectRows.length && selectRows[0].data.values.pk_psndoc_sub.value;
|
|
|
|
- pk_psndoc_sub1 ? this.sendContract(pk_psndoc_sub1) : toast({color: 'warning', content: "请选择一条需求发起的合同!"});;
|
|
|
|
|
|
+ let pk_psndoc_subs = selectRows && selectRows.length && selectRows.map(e => e.data.values.pk_psndoc_sub.value).join(',');
|
|
|
|
+ pk_psndoc_subs ? this.sendContract(pk_psndoc_subs) : toast({color: 'warning', content: "请选择一条需求发起的合同!"});;
|
|
break;
|
|
break;
|
|
case 'refresh':
|
|
case 'refresh':
|
|
this.refreshTableData(true);
|
|
this.refreshTableData(true);
|