|
|
|
@ -35,6 +35,8 @@ function Detail() {
|
|
|
|
|
.fetchInvoiceDetail(GMDSN, GSN)
|
|
|
|
|
.then(json => {
|
|
|
|
|
let ZDDetail = json.ZDDetail;
|
|
|
|
|
|
|
|
|
|
if (isNotEmpty(ZDDetail)){
|
|
|
|
|
let arrLen = ZDDetail.length;
|
|
|
|
|
const formData = ZDDetail.map((data, index) => {
|
|
|
|
|
if (data.GMD_Dealed == false && arrLen == index + 1) {
|
|
|
|
@ -73,6 +75,7 @@ function Detail() {
|
|
|
|
|
return picList;
|
|
|
|
|
});
|
|
|
|
|
setInvoicePicList(arrPicList);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(ex => {
|
|
|
|
|
notification.error({
|
|
|
|
@ -181,6 +184,7 @@ function Detail() {
|
|
|
|
|
|
|
|
|
|
//循环生成多次报账信息
|
|
|
|
|
function bindSubmitForm() {
|
|
|
|
|
if (isNotEmpty(invoiceZDDetail)){
|
|
|
|
|
let submitForm = invoiceZDDetail.map((data, index) => {
|
|
|
|
|
if (data.GMD_Dealed) {
|
|
|
|
|
//已审核的直接显示信息即可,无需表单
|
|
|
|
@ -192,7 +196,7 @@ function Detail() {
|
|
|
|
|
<Descriptions.Item span={4}>
|
|
|
|
|
<Upload
|
|
|
|
|
name="ghhfile"
|
|
|
|
|
accept="image/*"
|
|
|
|
|
// accept="image/*" 不限制类型
|
|
|
|
|
multiple={true}
|
|
|
|
|
action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GSN}&VEI_SN=${authStore.login.travelAgencyId}&FilePathName=invoice&token=${authStore.login.token}`}
|
|
|
|
|
fileList={invoicePicList[index]}
|
|
|
|
@ -220,7 +224,6 @@ function Detail() {
|
|
|
|
|
<Form.Item>
|
|
|
|
|
<Upload
|
|
|
|
|
name="ghhfile"
|
|
|
|
|
accept="image/*"
|
|
|
|
|
multiple={true}
|
|
|
|
|
action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GSN}&VEI_SN=${authStore.login.travelAgencyId}&FilePathName=invoice&token=${authStore.login.token}`}
|
|
|
|
|
fileList={fileList}
|
|
|
|
@ -276,10 +279,6 @@ function Detail() {
|
|
|
|
|
Submit
|
|
|
|
|
</Button>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<p>
|
|
|
|
|
Our Finance Dept makes payment during the last week in each month. So due date can only the last day of each month. If there's urgent payment, please contact the travel advisor and send invoice
|
|
|
|
|
separately.
|
|
|
|
|
</p>
|
|
|
|
|
</Form>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col span={4}></Col>
|
|
|
|
@ -288,6 +287,19 @@ function Detail() {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return submitForm;
|
|
|
|
|
}else{
|
|
|
|
|
return(
|
|
|
|
|
<Row gutter={16} style={{ backgroundColor: "#f6f7f9", width: "100%", padding: "20px 40px" }}>
|
|
|
|
|
<Col span={4}></Col>
|
|
|
|
|
<Col span={18}>
|
|
|
|
|
{addButton(1==1)}
|
|
|
|
|
</Col>
|
|
|
|
|
<Col span={4}></Col>
|
|
|
|
|
</Row>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|