|
@@ -232,7 +232,7 @@ class protocolmgtSign extends Component {
|
|
|
render(text, record, index) {
|
|
|
return (
|
|
|
<div>
|
|
|
- {opt.props.button.createOprationButton(["edit_t","delete_t","text_t"], {
|
|
|
+ {opt.props.button.createOprationButton(["edit_t","delete_t","text_t","toQYS_t"], {
|
|
|
onButtonClick : (props, btncode) => opt.tableButtonhandle(props, btncode,opt, record ),
|
|
|
area : 'table',
|
|
|
buttonLimit : 3,
|
|
@@ -256,6 +256,9 @@ class protocolmgtSign extends Component {
|
|
|
let billId = record.values.pk_agreement.value;
|
|
|
opt.contractText(billId, record)
|
|
|
break;
|
|
|
+ case 'toQYS_t':
|
|
|
+ opt.sendToQYS(record)
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
@@ -1246,6 +1249,37 @@ class protocolmgtSign extends Component {
|
|
|
this.props.meta.setMeta(meta);
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ // 推送契约锁
|
|
|
+ sendToQYS(v) {
|
|
|
+ let pks;
|
|
|
+ if( !!v ){
|
|
|
+ pks = v && v.values.pk_agreement.value;
|
|
|
+ }else{
|
|
|
+ pks = this.getPkPsndocSub();
|
|
|
+ }
|
|
|
+ if (pks && pks.length) {
|
|
|
+ let billId = pks.push ? pks.join(',') : pks;
|
|
|
+ ajax({
|
|
|
+ url: '/nccloud/anxj/qys/AgreementSignaturesAction.do',
|
|
|
+ data: {
|
|
|
+ billId
|
|
|
+ },
|
|
|
+ success: res => {
|
|
|
+ console.log(res)
|
|
|
+ if (res.success && !!res.data) {
|
|
|
+ toast({color: 'success', content: "协议发送成功!"});
|
|
|
+ this.refreshTableData();
|
|
|
+ } else {
|
|
|
+ toast({color: 'warning', content: res.error.message});
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ toast({color: 'warning', content: '请选择需要推送的协议!'});
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// 查询数据
|
|
|
searchData = () => {
|
|
|
// let conditions = props.search.getAllSearchData('query').conditions || [];
|
|
@@ -1296,6 +1330,10 @@ class protocolmgtSign extends Component {
|
|
|
case 'query':
|
|
|
this.listQuery();
|
|
|
break;
|
|
|
+ case 'toQYS':
|
|
|
+ // 推送契约锁
|
|
|
+ this.sendToQYS()
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
|