|
|
@ -36,7 +36,6 @@ function Detail() {
|
|
|
|
.fetchInvoiceDetail(GMDSN, GSN)
|
|
|
|
.fetchInvoiceDetail(GMDSN, GSN)
|
|
|
|
.then(json => {
|
|
|
|
.then(json => {
|
|
|
|
let ZDDetail = json.ZDDetail;
|
|
|
|
let ZDDetail = json.ZDDetail;
|
|
|
|
|
|
|
|
|
|
|
|
if (isNotEmpty(ZDDetail)) {
|
|
|
|
if (isNotEmpty(ZDDetail)) {
|
|
|
|
let arrLen = ZDDetail.length;
|
|
|
|
let arrLen = ZDDetail.length;
|
|
|
|
const formData = ZDDetail.map((data, index) => {
|
|
|
|
const formData = ZDDetail.map((data, index) => {
|
|
|
@ -104,7 +103,7 @@ function Detail() {
|
|
|
|
const onFinish = values => {
|
|
|
|
const onFinish = values => {
|
|
|
|
const fieldVaule = {
|
|
|
|
const fieldVaule = {
|
|
|
|
...values,
|
|
|
|
...values,
|
|
|
|
info_date: isNotEmpty(values["info_date"]) ? values["info_date"].format("YYYY-MM-DD") : null,
|
|
|
|
info_date: isNotEmpty(values["info_date"]) ? values["info_date"].format("YYYY-MM") : null,
|
|
|
|
info_images: JSON.stringify(arrimg),
|
|
|
|
info_images: JSON.stringify(arrimg),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
console.log("Success:", fieldVaule);
|
|
|
|
console.log("Success:", fieldVaule);
|
|
|
@ -117,6 +116,7 @@ function Detail() {
|
|
|
|
invoiceStore.invoiceFormData = param;
|
|
|
|
invoiceStore.invoiceFormData = param;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if (data.errcode == 0) {
|
|
|
|
if (data.errcode == 0) {
|
|
|
|
|
|
|
|
setEdited(true);
|
|
|
|
notification.success({
|
|
|
|
notification.success({
|
|
|
|
message: `Notification`,
|
|
|
|
message: `Notification`,
|
|
|
|
description: "Success Submit!",
|
|
|
|
description: "Success Submit!",
|
|
|
@ -264,15 +264,14 @@ function Detail() {
|
|
|
|
]}>
|
|
|
|
]}>
|
|
|
|
<Select placeholder="Select Currency type" onChange={onCurrencyChange} options={bindCurrency()}></Select>
|
|
|
|
<Select placeholder="Select Currency type" onChange={onCurrencyChange} options={bindCurrency()}></Select>
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
|
|
|
|
<Form.Item name="info_date" label="Due Month">
|
|
|
|
<Form.Item name="info_date" label="Due Month">
|
|
|
|
<DatePicker picker="month" /><br/>
|
|
|
|
<DatePicker picker="month" />
|
|
|
|
<Text type="secondary">Payment is arranged during the last week of each month. If the invoice is issued after the 20th, please select the following month for payment. For urgent payments, please contact the travel advisor. </Text>
|
|
|
|
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
<Text type="secondary">Payment is arranged during the last week of each month. If the invoice is issued after the 20th, please select the following month for payment. For urgent payments, please contact the travel advisor. </Text>
|
|
|
|
<Form.Item name="info_gmdsn" hidden={true}>
|
|
|
|
<Form.Item name="info_gmdsn" hidden={true}>
|
|
|
|
<input />
|
|
|
|
<input />
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
<Form.Item>
|
|
|
|
<Form.Item>
|
|
|
|
<Button type="primary" htmlType="submit">
|
|
|
|
<Button type="primary" htmlType="submit">
|
|
|
|
Submit
|
|
|
|
Submit
|
|
|
|