Commit 5a60baa5f79376905ec82901afeca7ccb6439746

Authored by weixin_45529955
2 parents 4930120a b2515336

Merge branch 'v7.2.0+' into v6.1.0+

@@ -239,7 +239,7 @@ class DioUtil { @@ -239,7 +239,7 @@ class DioUtil {
239 239
240 return new BaseResp(_status, _code, _msg, _data, _responseData); 240 return new BaseResp(_status, _code, _msg, _data, _responseData);
241 } catch (e) { 241 } catch (e) {
242 - Loading.hideLoading(context); 242 + // Loading is dismissed once by the outer DioException handler below.
243 throw new DioException( 243 throw new DioException(
244 requestOptions: response.requestOptions, 244 requestOptions: response.requestOptions,
245 response: response, 245 response: response,
@@ -248,7 +248,7 @@ class DioUtil { @@ -248,7 +248,7 @@ class DioUtil {
248 ); 248 );
249 } 249 }
250 } 250 }
251 - Loading.hideLoading(context); 251 + // Loading is dismissed once by the outer DioException handler below.
252 throw new DioException( 252 throw new DioException(
253 requestOptions: response.requestOptions, 253 requestOptions: response.requestOptions,
254 response: response, 254 response: response,
@@ -689,6 +689,12 @@ class _ExportBookDataPageState extends State<ExportBookDataPage> { @@ -689,6 +689,12 @@ class _ExportBookDataPageState extends State<ExportBookDataPage> {
689 fields += element.code! + ','; 689 fields += element.code! + ',';
690 } 690 }
691 }); 691 });
  692 + // GetExportInfo 服务端会无条件读取 con_amount。若不导出该字段,
  693 + // 响应体会带 PHP Notice,Dio 无法解析 JSON,导致导出流程中断。
  694 + if (!customerProvider.reportFieldModelData!.any((element) =>
  695 + element.select && element.code == 'con_amount')) {
  696 + fields += 'con_amount,';
  697 + }
692 if (fields.endsWith(',')) { 698 if (fields.endsWith(',')) {
693 fields = fields.substring(0, fields.length - 1); 699 fields = fields.substring(0, fields.length - 1);
694 } 700 }