|
|
|
@ -36,7 +36,6 @@ function Detail() {
|
|
|
|
|
.fetchInvoiceDetail(GMDSN, GSN)
|
|
|
|
|
.then(json => {
|
|
|
|
|
let ZDDetail = json.ZDDetail;
|
|
|
|
|
|
|
|
|
|
if (isNotEmpty(ZDDetail)) {
|
|
|
|
|
let arrLen = ZDDetail.length;
|
|
|
|
|
const formData = ZDDetail.map((data, index) => {
|
|
|
|
@ -104,7 +103,7 @@ function Detail() {
|
|
|
|
|
const onFinish = values => {
|
|
|
|
|
const fieldVaule = {
|
|
|
|
|
...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),
|
|
|
|
|
};
|
|
|
|
|
console.log("Success:", fieldVaule);
|
|
|
|
@ -117,6 +116,7 @@ function Detail() {
|
|
|
|
|
invoiceStore.invoiceFormData = param;
|
|
|
|
|
});
|
|
|
|
|
if (data.errcode == 0) {
|
|
|
|
|
setEdited(true);
|
|
|
|
|
notification.success({
|
|
|
|
|
message: `Notification`,
|
|
|
|
|
description: "Success Submit!",
|
|
|
|
@ -264,15 +264,14 @@ function Detail() {
|
|
|
|
|
]}>
|
|
|
|
|
<Select placeholder="Select Currency type" onChange={onCurrencyChange} options={bindCurrency()}></Select>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
|
|
<Form.Item name="info_date" label="Due Month">
|
|
|
|
|
<DatePicker picker="month" /><br/>
|
|
|
|
|
<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>
|
|
|
|
|
<DatePicker picker="month" />
|
|
|
|
|
</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}>
|
|
|
|
|
<input />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<br/>
|
|
|
|
|
<Form.Item>
|
|
|
|
|
<Button type="primary" htmlType="submit">
|
|
|
|
|
Submit
|
|
|
|
|