付款单
This commit is contained in:
parent
9ad1cc06dc
commit
3ef0b7eaa1
|
@ -22,6 +22,7 @@ import cmpLinkArapCard from '../../../public/components/cmpLinkArapCard.js';
|
||||||
import {calculateHeadMoney, delBlankLine} from '../../../public/components/pubUtils/billPubUtil.js';
|
import {calculateHeadMoney, delBlankLine} from '../../../public/components/pubUtils/billPubUtil.js';
|
||||||
import {billEditProperties} from '../../../public/components/pubUtils/billFieldEditableUtil.js';
|
import {billEditProperties} from '../../../public/components/pubUtils/billFieldEditableUtil.js';
|
||||||
import {updatePandC} from '../../../public/components/pubUtils/updatePandC';
|
import {updatePandC} from '../../../public/components/pubUtils/updatePandC';
|
||||||
|
|
||||||
let {Inspection, BillTrack, NCUploader, PrintOutput, ApproveDetail} = high;
|
let {Inspection, BillTrack, NCUploader, PrintOutput, ApproveDetail} = high;
|
||||||
let {NCButton, NCDiv, NCAffix} = base;
|
let {NCButton, NCDiv, NCAffix} = base;
|
||||||
let {
|
let {
|
||||||
|
@ -49,8 +50,15 @@ import {
|
||||||
import '../../../public/less/tradetype.less';
|
import '../../../public/less/tradetype.less';
|
||||||
import InvoiceUploader from 'sscivm/ivmpub/components/invoice-uploader';
|
import InvoiceUploader from 'sscivm/ivmpub/components/invoice-uploader';
|
||||||
import InvoiceLink from 'sscivm/ivmpub/components/invoice-link';
|
import InvoiceLink from 'sscivm/ivmpub/components/invoice-link';
|
||||||
|
|
||||||
const {ExcelImport, ApprovalTrans} = high;
|
const {ExcelImport, ApprovalTrans} = high;
|
||||||
import { cardSocketConnect, cardSocketErrorFlag, toggleBtnStatus, throwSagaErrorAgency } from '../../../public/components/pubUtils/MicroServiceSocket.js';
|
import {
|
||||||
|
cardSocketConnect,
|
||||||
|
cardSocketErrorFlag,
|
||||||
|
toggleBtnStatus,
|
||||||
|
throwSagaErrorAgency
|
||||||
|
} from '../../../public/components/pubUtils/MicroServiceSocket.js';
|
||||||
|
|
||||||
class Card extends Component {
|
class Card extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
@ -135,14 +143,18 @@ class Card extends Component {
|
||||||
getMultiLang({moduleId: ['paybill', 'public'], domainName: 'arap', currentLocale: 'simpchn', callback});
|
getMultiLang({moduleId: ['paybill', 'public'], domainName: 'arap', currentLocale: 'simpchn', callback});
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) { }
|
componentWillReceiveProps(nextProps) {
|
||||||
|
}
|
||||||
|
|
||||||
// 附件的关闭点击
|
// 附件的关闭点击
|
||||||
onHideUploader = () => {
|
onHideUploader = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
showUploader: false
|
showUploader: false
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
console.log()
|
||||||
if (this.props.getUrlParam('scene')) {
|
if (this.props.getUrlParam('scene')) {
|
||||||
let scene = this.props.getUrlParam('scene');
|
let scene = this.props.getUrlParam('scene');
|
||||||
setDefData('scene', dataSource, scene);
|
setDefData('scene', dataSource, scene);
|
||||||
|
@ -234,7 +246,7 @@ class Card extends Component {
|
||||||
this.props.form.setFormStatus(this.formId, 'browse');
|
this.props.form.setFormStatus(this.formId, 'browse');
|
||||||
this.toggleShow();
|
this.toggleShow();
|
||||||
let str = res.message;
|
let str = res.message;
|
||||||
toast({ color: 'danger', content: str });;
|
toast({color: 'danger', content: str});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (this.props.getUrlParam('status') == 'edit' || this.props.getUrlParam('status') == 'browse') {
|
} else if (this.props.getUrlParam('status') == 'edit' || this.props.getUrlParam('status') == 'browse') {
|
||||||
|
@ -288,7 +300,7 @@ class Card extends Component {
|
||||||
this.props.form.setFormStatus(this.formId, 'browse');
|
this.props.form.setFormStatus(this.formId, 'browse');
|
||||||
this.toggleShow();
|
this.toggleShow();
|
||||||
let str = res.message;
|
let str = res.message;
|
||||||
toast({ color: 'danger', content: str });;
|
toast({color: 'danger', content: str});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (this.props.getUrlParam('status') == 'add' && this.props.getUrlParam('src') == 'settlement') {
|
} else if (this.props.getUrlParam('status') == 'add' && this.props.getUrlParam('src') == 'settlement') {
|
||||||
|
@ -444,7 +456,7 @@ class Card extends Component {
|
||||||
this.toggleShow();
|
this.toggleShow();
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
toast({ color: 'danger', content: str });;
|
toast({color: 'danger', content: str});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -635,6 +647,15 @@ class Card extends Component {
|
||||||
|
|
||||||
//保存单据
|
//保存单据
|
||||||
saveBill = (url, extype, flag, modelIndex) => {
|
saveBill = (url, extype, flag, modelIndex) => {
|
||||||
|
/*let saveData = this.props.createMasterChildData(this.getPagecode(), this.formId, this.tableId)
|
||||||
|
let newData = dealCardData(this, saveData); //去掉空值,减少压缩时间
|
||||||
|
let tableLength = newData.body.bodys.rows.length
|
||||||
|
console.log(this.props.form)
|
||||||
|
// console.log(this.props.form.getFormItemsValue(this.formId, 'def5'))
|
||||||
|
this.props.form.setFormItemsValue(this.formId, {'def5': {'value': tableLength, 'display': undefined}}); //附件数量*/
|
||||||
|
// return false //todo
|
||||||
|
|
||||||
|
|
||||||
if (url != '/nccloud/arap/arappub/tempsave.do') {
|
if (url != '/nccloud/arap/arappub/tempsave.do') {
|
||||||
//暂存不进行校验
|
//暂存不进行校验
|
||||||
//删除空白行
|
//删除空白行
|
||||||
|
@ -1132,7 +1153,8 @@ class Card extends Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
//输出成功回调函数
|
//输出成功回调函数
|
||||||
onSubmit() { }
|
onSubmit() {
|
||||||
|
}
|
||||||
|
|
||||||
//返回列表
|
//返回列表
|
||||||
backList = () => {
|
backList = () => {
|
||||||
|
|
Loading…
Reference in New Issue