账单详细页基本完成

release
赵鹏 2 years ago
parent fab78b6e3c
commit 3304898697

@ -30,6 +30,12 @@ function Detail() {
useEffect(() => { useEffect(() => {
console.info("Detail.useEffect: " + GMDSN + "/" + GSN); console.info("Detail.useEffect: " + GMDSN + "/" + GSN);
defaultShow();
}, [GMDSN, GSN]);
function defaultShow(){
setDataLoading(true); setDataLoading(true);
invoiceStore.fetchInvoiceDetail(GMDSN, GSN) invoiceStore.fetchInvoiceDetail(GMDSN, GSN)
.then((json) => { .then((json) => {
@ -85,12 +91,6 @@ function Detail() {
.finally(() => { .finally(() => {
setDataLoading(false); setDataLoading(false);
}); });
}, [GMDSN, GSN]);
function defaultShow(json){
} }
const fileList = toJS(invoicekImages); const fileList = toJS(invoicekImages);
@ -201,7 +201,9 @@ function Detail() {
runInAction(() => { runInAction(() => {
invoiceStore.invoiceFormData = {'info_money':0,'info_Currency':'','info_date':'','info_gmdsn':GMDSN}; invoiceStore.invoiceFormData = {'info_money':0,'info_Currency':'','info_date':'','info_gmdsn':GMDSN};
}); });
}); }).finally(()=>{
defaultShow();
})
} }
function addButton(check) { function addButton(check) {
@ -273,7 +275,7 @@ function Detail() {
<Row key={data.GMD_SN} gutter={16} style={{ backgroundColor: "#f6f7f9", width: "100%", padding: "20px 40px" }} > <Row key={data.GMD_SN} gutter={16} style={{ backgroundColor: "#f6f7f9", width: "100%", padding: "20px 40px" }} >
<Col span={4}></Col> <Col span={4}></Col>
<Col span={18} > <Col span={18} >
<Form name="invoice_submit" onFinish={onFinish} labelCol={{ span: 5 }} form={form}> <Form name="invoice_submit" onFinish={onFinish} labelCol={{ span: 5 }} form={form} style={{backgroundColor:"#fff" , padding:"20px"}}>
<Divider orientation="left">上传照片</Divider> <Divider orientation="left">上传照片</Divider>
<Form.Item> <Form.Item>
<Upload <Upload

Loading…
Cancel
Save