|
|
@ -35,6 +35,8 @@ function Detail() {
|
|
|
|
.fetchInvoiceDetail(GMDSN, GSN)
|
|
|
|
.fetchInvoiceDetail(GMDSN, GSN)
|
|
|
|
.then(json => {
|
|
|
|
.then(json => {
|
|
|
|
let ZDDetail = json.ZDDetail;
|
|
|
|
let ZDDetail = json.ZDDetail;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isNotEmpty(ZDDetail)){
|
|
|
|
let arrLen = ZDDetail.length;
|
|
|
|
let arrLen = ZDDetail.length;
|
|
|
|
const formData = ZDDetail.map((data, index) => {
|
|
|
|
const formData = ZDDetail.map((data, index) => {
|
|
|
|
if (data.GMD_Dealed == false && arrLen == index + 1) {
|
|
|
|
if (data.GMD_Dealed == false && arrLen == index + 1) {
|
|
|
@ -73,6 +75,7 @@ function Detail() {
|
|
|
|
return picList;
|
|
|
|
return picList;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
setInvoicePicList(arrPicList);
|
|
|
|
setInvoicePicList(arrPicList);
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(ex => {
|
|
|
|
.catch(ex => {
|
|
|
|
notification.error({
|
|
|
|
notification.error({
|
|
|
@ -181,6 +184,7 @@ function Detail() {
|
|
|
|
|
|
|
|
|
|
|
|
//循环生成多次报账信息
|
|
|
|
//循环生成多次报账信息
|
|
|
|
function bindSubmitForm() {
|
|
|
|
function bindSubmitForm() {
|
|
|
|
|
|
|
|
if (isNotEmpty(invoiceZDDetail)){
|
|
|
|
let submitForm = invoiceZDDetail.map((data, index) => {
|
|
|
|
let submitForm = invoiceZDDetail.map((data, index) => {
|
|
|
|
if (data.GMD_Dealed) {
|
|
|
|
if (data.GMD_Dealed) {
|
|
|
|
//已审核的直接显示信息即可,无需表单
|
|
|
|
//已审核的直接显示信息即可,无需表单
|
|
|
@ -192,7 +196,7 @@ function Detail() {
|
|
|
|
<Descriptions.Item span={4}>
|
|
|
|
<Descriptions.Item span={4}>
|
|
|
|
<Upload
|
|
|
|
<Upload
|
|
|
|
name="ghhfile"
|
|
|
|
name="ghhfile"
|
|
|
|
accept="image/*"
|
|
|
|
// accept="image/*" 不限制类型
|
|
|
|
multiple={true}
|
|
|
|
multiple={true}
|
|
|
|
action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GSN}&VEI_SN=${authStore.login.travelAgencyId}&FilePathName=invoice&token=${authStore.login.token}`}
|
|
|
|
action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GSN}&VEI_SN=${authStore.login.travelAgencyId}&FilePathName=invoice&token=${authStore.login.token}`}
|
|
|
|
fileList={invoicePicList[index]}
|
|
|
|
fileList={invoicePicList[index]}
|
|
|
@ -220,7 +224,6 @@ function Detail() {
|
|
|
|
<Form.Item>
|
|
|
|
<Form.Item>
|
|
|
|
<Upload
|
|
|
|
<Upload
|
|
|
|
name="ghhfile"
|
|
|
|
name="ghhfile"
|
|
|
|
accept="image/*"
|
|
|
|
|
|
|
|
multiple={true}
|
|
|
|
multiple={true}
|
|
|
|
action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GSN}&VEI_SN=${authStore.login.travelAgencyId}&FilePathName=invoice&token=${authStore.login.token}`}
|
|
|
|
action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GSN}&VEI_SN=${authStore.login.travelAgencyId}&FilePathName=invoice&token=${authStore.login.token}`}
|
|
|
|
fileList={fileList}
|
|
|
|
fileList={fileList}
|
|
|
@ -276,10 +279,6 @@ function Detail() {
|
|
|
|
Submit
|
|
|
|
Submit
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</Form.Item>
|
|
|
|
</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>
|
|
|
|
</Form>
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
@ -288,6 +287,19 @@ function Detail() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return submitForm;
|
|
|
|
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 (
|
|
|
|
return (
|
|
|
|