|
|
|
@ -38,9 +38,9 @@ function Detail() {
|
|
|
|
|
const formData = ZDDetail.map((data,index)=>{
|
|
|
|
|
if (data.GMD_Dealed == false && arrLen == (index+1)){ //只有最后一条账单未审核通过才显示
|
|
|
|
|
runInAction(() => {
|
|
|
|
|
invoiceStore.invoiceFormData = {'info_money':data.GMD_Cost,'info_Currency':data.GMD_Currency,'info_date':isNotEmpty(data.GMD_PayDate)?dayjs(data.GMD_PayDate):''};
|
|
|
|
|
invoiceStore.invoiceFormData = {'info_money':data.GMD_Cost,'info_Currency':data.GMD_Currency,'info_date':isNotEmpty(data.GMD_PayDate)?dayjs(data.GMD_PayDate):'','info_gmdsn':data.GMD_SN};
|
|
|
|
|
});
|
|
|
|
|
return {'info_money':data.GMD_Cost,'info_Currency':data.GMD_Currency,'info_date':isNotEmpty(data.GMD_PayDate)?dayjs(data.GMD_PayDate):''};
|
|
|
|
|
return {'info_money':data.GMD_Cost,'info_Currency':data.GMD_Currency,'info_date':isNotEmpty(data.GMD_PayDate)?dayjs(data.GMD_PayDate):'','info_gmdsn':data.GMD_SN};
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
form.setFieldsValue(formData[arrLen-1]); //{'info_money':'111','info_Currency':'THB','info_date':''}
|
|
|
|
@ -62,7 +62,7 @@ function Detail() {
|
|
|
|
|
}
|
|
|
|
|
if (data.GMD_Dealed == false && arrLen == (index+1)){
|
|
|
|
|
runInAction(() => {
|
|
|
|
|
//invoiceStore.invoicekImages = picList;
|
|
|
|
|
invoiceStore.invoicekImages = picList;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return picList;
|
|
|
|
@ -108,7 +108,7 @@ function Detail() {
|
|
|
|
|
console.log("Success:", fieldVaule);
|
|
|
|
|
//入库
|
|
|
|
|
if (fieldVaule) {
|
|
|
|
|
invoiceStore.postEditInvoiceDetail(GMDSN, fieldVaule.info_Currency, fieldVaule.info_money, fieldVaule.info_date, fieldVaule.info_images, "").then((data) => {
|
|
|
|
|
invoiceStore.postEditInvoiceDetail(fieldVaule.info_gmdsn, fieldVaule.info_Currency, fieldVaule.info_money, fieldVaule.info_date, fieldVaule.info_images, "").then((data) => {
|
|
|
|
|
console.log(data);
|
|
|
|
|
runInAction(() => {
|
|
|
|
|
let param = { 'info_money': fieldVaule.info_money, 'info_Currency': fieldVaule.info_Currency, 'info_date': fieldVaule.info_date };
|
|
|
|
@ -321,6 +321,12 @@ function Detail() {
|
|
|
|
|
</Form.Item></Col>
|
|
|
|
|
|
|
|
|
|
</Row>
|
|
|
|
|
<Form.Item
|
|
|
|
|
name="info_gmdsn"
|
|
|
|
|
hidden={true}
|
|
|
|
|
>
|
|
|
|
|
<input />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<Form.Item>
|
|
|
|
|
<Button type="primary" htmlType="submit">
|
|
|
|
|
Submit
|
|
|
|
|