报账日期无法保存的修改,以及提交账单后设置账单表单录入状态

release
赵鹏 2 years ago
parent a4f794c3ab
commit fb01252c11

@ -35,8 +35,7 @@ function Detail() {
invoiceStore
.fetchInvoiceDetail(GMDSN, GSN)
.then(json => {
let ZDDetail = json.ZDDetail;
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,12 +116,13 @@ function Detail() {
invoiceStore.invoiceFormData = param;
});
if (data.errcode == 0) {
setEdited(true);
notification.success({
message: `Notification`,
description: "Success Submit!",
placement: "top",
duration: 4,
});
});
}
});
}
@ -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>
</Form.Item>
<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

Loading…
Cancel
Save