ncpub-multipage-demo-develo.../src/sscivm/invoiceApplication/invoiceApl/card/events/handlePageInfoChange.js

23 lines
909 B
JavaScript
Raw Normal View History

/*JNnb7VnKIimhevxx9sWXRj+n03NLuQsUW6GPtd3kH8Q=*/
import viewBill from '../common/viewBill'
import {setBtnVisable} from '../common/setBtnVisable'
import presetVar from '../presetVar'
export default function (props, id) {
this.props.setUrlParam({id: id});
viewBill.call(this, (data) => {
setBtnVisable.call(this, presetVar.status.browse, data.head[presetVar.formAreaId]);
const saga_status = data.head.head.rows[0].values.saga_status;
const saga_gtxid = data.head.head.rows[0].values.saga_gtxid;
if(saga_status) {
this.props.button.toggleErrorStatus(presetVar.headBtnAreaId, {
isError: saga_status.value === "1"
})
this.props.socket.showToast({
gtxid: saga_gtxid && saga_gtxid.value || "",
billpk: id
});
}
});
}
/*JNnb7VnKIimhevxx9sWXRj+n03NLuQsUW6GPtd3kH8Q=*/