sample_task_rsp.dart 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979
  1. import 'package:json_annotation/json_annotation.dart';
  2. import 'package:lszlgl/model/num_converter.dart';
  3. import 'package:lszlgl/model/string_converter.dart';
  4. import '../../service/dict_service.dart';
  5. part 'sample_task_rsp.g.dart';
  6. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  7. class SampleTaskListRsp {
  8. final num? total;
  9. final List<SampleTaskItem>? list;
  10. const SampleTaskListRsp({
  11. this.total,
  12. this.list,
  13. });
  14. factory SampleTaskListRsp.fromJson(Map<String, dynamic> json) => _$SampleTaskListRspFromJson(json);
  15. Map<String, dynamic> toJson() => _$SampleTaskListRspToJson(this);
  16. }
  17. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  18. class SampleTaskItem {
  19. num? id;
  20. String? qyryName; // 人员名称
  21. String? fjrq; // 分解日期
  22. String? ypbh; // 样品编号
  23. String? jtpzmc; // 具体品种名称
  24. num? deliveryStatus; // 任务单任务状态:0是待领取,1是待扦样,2已扦样
  25. bool get isReapSample => deliveryStatus == 2;
  26. num? ypdj; // 样品等级--字典获取
  27. String? jyzb; // 检验指标:质量/品质/食安
  28. String? qydq; // 扦样地区
  29. num? jhcysl; // 计划采样数量
  30. num? zljysl; // 质量检验数量
  31. num? pzjyjg; // 品质检验机构
  32. num? pzjysl; // 品质检验数量
  33. num? sajyjg; // 食安检验机构
  34. num? sajysl; // 食安检验数量
  35. num? jhcyjg; // 扦样机构
  36. String? lspz; // 粮食品种
  37. num? bchlx; // 病虫害类型
  38. String? bdcnhhhzs; // 被调查农户或合作社
  39. num? gcpwlx; // 工厂排污类型
  40. String? lxfs; // 联系方式
  41. num? qydbsl; // 扦样代表数量(公斤)
  42. String? qyddjwd; // 扦样地点经纬度
  43. String? qysj; // 扦样时间
  44. num? qysl; // 扦样数量(公斤)
  45. bool? scgczsffsbjyzdbch; // 生产过程中是否发生比较严重的病虫害
  46. String? sheng; // 省
  47. String? shi; // 市
  48. String? qu; // 区
  49. String? xian; // 县
  50. String? cun; // 村
  51. num? shidu; // 湿度
  52. String? shsj; // 收获时间
  53. num? trdllx; // 土壤地理类型
  54. num? wendu; // 温度
  55. num? wrwlx; // 污染物类型
  56. num? zzmj; // 种植面积(亩地)
  57. bool? zztdzwsfygcpw; // 种植土地周围是否有工厂排污
  58. bool? zztdzwsysytrsfywr; // 种植土地周围使用水源、土壤是否有污染
  59. num? zjBaseEnterpriseId; // 企业基本信息ID
  60. num? zjBasePersonnelId; // 人员基本信息表ID
  61. num? zjCodeSamplingTaskId;
  62. num? zjCodeSamplingPlanId; // 采样计划详情ID
  63. String? xzqh; // 行政区划
  64. num? zjBaseGrainInformationId; // 品种id
  65. num? cypzmc; // 采样品种名称
  66. String? cypzName; // 采样品种名称
  67. String? qyrwdh; // 扦样任务单号
  68. num? shengXzqh; // 省行政区划id
  69. num? shiXzqh; // 市行政区划id
  70. num? quXzqh; // 区行政区划id
  71. num? xiangXzqh; // 县行政区划id
  72. num? cunXzqh; // 村行政区划id
  73. num? createTime; // 创建时间
  74. num? state; // 0是待扦样,1已扦样,2已完成
  75. String? name; // 扦样人员姓名
  76. String? dgryName; // 扦样多个人员名称: 张三,李四
  77. String? rwjssj; // 任务接收时间
  78. String? bsjzsj; // 报送截止时间
  79. num? rwlx; // 任务类型/监测环节
  80. num? jclb; // 监测类别
  81. String? dwmc; // 单位名称
  82. List<EnterpriseItem>? enterpriseList; // 机构信息
  83. List<UseMedicineItem>? codeUseMedicineList; // 种植期间农药使用情况
  84. String? zzpz; // 种植品种
  85. String? shengXzqhName; // 省
  86. String? shiXzqhName; // 市
  87. String? quXzqhName; // 区
  88. String? xiangXzqhName; // 县
  89. String? cunXzqhName; // 村
  90. String? cyjhbmCode; // 采样计划编号
  91. String? cyjhmc; // 采样计划名称
  92. String? niandu; // 年度
  93. List<SamplingTaskAllotSgjcItem>? codeSamplingTaskAllotSgjcRespList; // 任务分配
  94. // List<>? codeSamplingTaskDetailsKcjcRespVO; // 库存检测
  95. // List<>? fplist; // 分配多条信息
  96. num? sfyzpz; // 是否优质品种
  97. num? yzpzlx; // 优质品种类型
  98. num? shqjsffslyytq; // 收获期间是否发生连阴雨天气
  99. num? shlssfsfpg; // 收获粮食水分是否偏高
  100. num? jnlbdsffszmwr; // 近年来本地是否发生真菌毒素污染
  101. num? zjdswrlx; // 真菌毒素污染类型
  102. num? jnlbdsfzjswr; // 近年来本地是否发生重金属污染
  103. num? zjswrlx; // 重金属污染类型
  104. List<JyjgxxItem>? jyjgxxRespVOList; // 检验机构信息
  105. num? jypzStatus; // 检验品质按钮0显示1不显示
  106. num? tqqk; // 天气情况
  107. List<NonghuItem>? codeSamplingNonghuList; // 扦样农户信息
  108. String? xzqhCode; // 行政区划六位编码
  109. List<UrlItem>? filePictureList; // 签名图片url
  110. List<UrlItem>? ewmfilePictureList; // 二维码图片url
  111. SampleTaskItem({
  112. this.id,
  113. this.qyryName,
  114. this.fjrq,
  115. this.ypbh,
  116. this.jtpzmc,
  117. this.deliveryStatus,
  118. this.ypdj,
  119. this.jyzb,
  120. this.qydq,
  121. this.jhcysl,
  122. this.zljysl,
  123. this.pzjyjg,
  124. this.pzjysl,
  125. this.sajyjg,
  126. this.sajysl,
  127. this.jhcyjg,
  128. this.lspz,
  129. this.bchlx,
  130. this.bdcnhhhzs,
  131. this.gcpwlx,
  132. this.lxfs,
  133. this.qydbsl,
  134. this.qyddjwd,
  135. this.qysj,
  136. this.qysl,
  137. this.scgczsffsbjyzdbch,
  138. this.sheng,
  139. this.shi,
  140. this.qu,
  141. this.xian,
  142. this.cun,
  143. this.shidu,
  144. this.shsj,
  145. this.trdllx,
  146. this.wendu,
  147. this.wrwlx,
  148. this.zzmj,
  149. this.zztdzwsfygcpw,
  150. this.zztdzwsysytrsfywr,
  151. this.zjBaseEnterpriseId,
  152. this.zjBasePersonnelId,
  153. this.zjCodeSamplingTaskId,
  154. this.zjCodeSamplingPlanId,
  155. this.xzqh,
  156. this.zjBaseGrainInformationId,
  157. this.cypzmc,
  158. this.cypzName,
  159. this.qyrwdh,
  160. this.shengXzqh,
  161. this.shiXzqh,
  162. this.quXzqh,
  163. this.xiangXzqh,
  164. this.cunXzqh,
  165. this.createTime,
  166. this.state,
  167. this.name,
  168. this.dgryName,
  169. this.rwjssj,
  170. this.bsjzsj,
  171. this.rwlx,
  172. this.jclb,
  173. this.dwmc,
  174. this.enterpriseList,
  175. this.codeUseMedicineList,
  176. this.zzpz,
  177. this.shengXzqhName,
  178. this.shiXzqhName,
  179. this.quXzqhName,
  180. this.xiangXzqhName,
  181. this.cunXzqhName,
  182. this.cyjhbmCode,
  183. this.cyjhmc,
  184. this.niandu,
  185. this.codeSamplingTaskAllotSgjcRespList,
  186. this.sfyzpz,
  187. this.yzpzlx,
  188. this.shqjsffslyytq,
  189. this.shlssfsfpg,
  190. this.jnlbdsffszmwr,
  191. this.zjdswrlx,
  192. this.jnlbdsfzjswr,
  193. this.zjswrlx,
  194. this.jyjgxxRespVOList,
  195. this.jypzStatus,
  196. this.tqqk,
  197. this.codeSamplingNonghuList,
  198. this.xzqhCode,
  199. this.filePictureList,
  200. this.ewmfilePictureList,
  201. });
  202. SampleTaskItem createUI() {
  203. // 工厂排污
  204. zztdzwsfygcpw ??= false;
  205. // 工厂排污类型
  206. gcpwlx ??= DictService.getDictFirstNum(DictType.gcpwlx);
  207. // 水源、土壤污染
  208. zztdzwsysytrsfywr ??= false;
  209. // 污染物类型
  210. wrwlx ??= DictService.getDictFirstNum(DictType.wrwlx);
  211. // 病虫害
  212. scgczsffsbjyzdbch ??= false;
  213. // 病虫害类型
  214. bchlx ??= DictService.getDictFirstNum(DictType.bchlx);
  215. // 收获期间是否发生连阴雨天气
  216. shqjsffslyytq ??= 1;
  217. // 收获粮食水分是否偏高
  218. shlssfsfpg ??= 1;
  219. // 近年来本地是否发生真菌毒素污染
  220. jnlbdsffszmwr ??= 1;
  221. // 真菌毒素污染类型
  222. zjdswrlx ??= DictService.getDictFirstNum(DictType.zjdswrlx);
  223. // 近年来本地是否发生重金属污染
  224. jnlbdsfzjswr ??= 1;
  225. // 重金属污染类型
  226. zjswrlx ??= DictService.getDictFirstNum(DictType.zjswrlx);
  227. return this;
  228. }
  229. factory SampleTaskItem.fromJson(Map<String, dynamic> json) => _$SampleTaskItemFromJson(json)..createUI();
  230. Map<String, dynamic> toJson() => _$SampleTaskItemToJson(this);
  231. String getDeliveryStatusText() {
  232. // 任务单任务状态:0是待领取,1是待扦样,2已扦样
  233. return switch (deliveryStatus) { 0 => '待领取', 1 => '待扦样', 2 => '已扦样', _ => '' };
  234. }
  235. Map<String, dynamic> getReqJson({int isConformity = 0, bool isChange = false}) {
  236. Map<String, dynamic> map = {};
  237. map['state'] = state;
  238. map['id'] = id;
  239. // isConformity 必穿默认0,当后台返回报错再提交传1 (定位错误时传1)
  240. map['isConformity'] = isConformity;
  241. map['quXzqh'] = quXzqh;
  242. map['xzqhCode'] = xzqhCode;
  243. map['xiangXzqhName'] = xiangXzqhName;
  244. map['cunXzqhName'] = cunXzqhName;
  245. // 新疆兵团
  246. map['shiXzqh'] = shiXzqh;
  247. map['qyddjwd'] = qyddjwd;
  248. map['zzmj'] = zzmj;
  249. map['trdllx'] = trdllx;
  250. map['bdcnhhhzs'] = bdcnhhhzs;
  251. map['lxfs'] = lxfs;
  252. map['lspz'] = lspz;
  253. map['jtpzmc'] = jtpzmc;
  254. map['sfyzpz'] = sfyzpz;
  255. map['yzpzlx'] = yzpzlx;
  256. map['shsj'] = shsj;
  257. map['qysj'] = qysj;
  258. map['qysl'] = qysl;
  259. map['qydbsl'] = qydbsl;
  260. map['wendu'] = wendu;
  261. map['shidu'] = shidu;
  262. map['zztdzwsfygcpw'] = zztdzwsfygcpw;
  263. map['gcpwlx'] = gcpwlx;
  264. map['zztdzwsysytrsfywr'] = zztdzwsysytrsfywr;
  265. map['wrwlx'] = wrwlx;
  266. map['scgczsffsbjyzdbch'] = scgczsffsbjyzdbch;
  267. map['bchlx'] = bchlx;
  268. map['shqjsffslyytq'] = shqjsffslyytq;
  269. map['shlssfsfpg'] = shlssfsfpg;
  270. map['jnlbdsffszmwr'] = jnlbdsffszmwr;
  271. map['zjdswrlx'] = zjdswrlx;
  272. map['jnlbdsfzjswr'] = jnlbdsfzjswr;
  273. map['zjswrlx'] = zjswrlx;
  274. map['dgryName'] = dgryName;
  275. map['tqqk'] = tqqk;
  276. if(isChange){
  277. List<UseMedicineItem>? medicineList = codeUseMedicineList;
  278. if (medicineList != null && medicineList.isNotEmpty) {
  279. for(UseMedicineItem item in medicineList){
  280. item.id = null;
  281. }
  282. map['codeUseMedicineList'] = medicineList.map((e) => e.toReqJson()).toList();
  283. }
  284. List<NonghuItem>? nonghuList = codeSamplingNonghuList;
  285. if (nonghuList != null && nonghuList.isNotEmpty) {
  286. for(NonghuItem item in nonghuList){
  287. item.id = null;
  288. }
  289. map['codeSamplingNonghuList'] = nonghuList.map((e) => e.toReqJson()).toList();
  290. }
  291. }else {
  292. List<UseMedicineItem>? medicineList = codeUseMedicineList?.where((e) => e.id == null).toList();
  293. if (medicineList != null && medicineList.isNotEmpty) {
  294. map['codeUseMedicineList'] = medicineList.map((e) => e.toReqJson()).toList();
  295. }
  296. List<NonghuItem>? nonghuList = codeSamplingNonghuList?.where((e) => e.id == null).toList();
  297. if (nonghuList != null && nonghuList.isNotEmpty) {
  298. map['codeSamplingNonghuList'] = nonghuList.map((e) => e.toReqJson()).toList();
  299. }
  300. }
  301. map['filePictureList'] = filePictureList;
  302. return map;
  303. }
  304. }
  305. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  306. class UrlItem {
  307. final String? name;
  308. String? url;
  309. UrlItem({this.name,this.url});
  310. factory UrlItem.fromJson(Map<String, dynamic> json) => _$UrlItemFromJson(json);
  311. Map<String, dynamic> toJson() => _$UrlItemToJson(this);
  312. }
  313. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  314. class EnterpriseItem {
  315. final num? id; // 单位id
  316. final String? address; // 具体地址
  317. final String? beizhu; // 备注
  318. final num? bgsmj; // 办公室面积(m²)
  319. final num? cqlb; // 产权类别
  320. final num? dnczbksr; // 当年财政拨款收入
  321. final num? dnywwtsr; // 当年业务委托收入
  322. final num? dwdzSheng; // 省id
  323. final String? dwdzShengName; // 省名称
  324. final num? dwdzShi; // 市id
  325. final String? dwdzShiName; // 市名称
  326. final num? dwdzXian; // 县id
  327. final String? dwdzXianName; //县名称
  328. final num? dwjb; // 单位级别
  329. final String? dwmc; //单位名称
  330. final num? dwxz; //单位性质
  331. final String? frdb; //法人代表
  332. final num? jglb; //机构类别
  333. final num? jyyrs; //检验员人数
  334. final String? lxfs; //联系方式
  335. final num? rybzsl; //人员编制数量
  336. final String? shtyxydm; //社会统一信用代码
  337. final num? sysmj; //实验室面积(m²)
  338. final num? zjzmj; //总建筑面积(m²)
  339. final num? zrs; //总人数
  340. final String? dwdz; //单位地址
  341. final String? createTime; //创建时间
  342. final String? creatorDeptId; //创建人所在部门id
  343. final num? deptId; //隶属部门Id
  344. final String? sjzgdw; //上级主管单位
  345. // final List<>? jyllList; //检验能力集合
  346. // final List<>? jyzsList; //检验证书集合
  347. final String? flowCode; //审核编号
  348. final num? flowStatus; //审核状态:0待发起,1审核中,2通过,3驳回
  349. final String? flowCause; //审核意见
  350. final num? flowCheckUserId; //审核人id
  351. final String? flowTime; //审核时间
  352. // final List<>? kycxtdList; //科研创新团队
  353. // final List<>? xdbzList; //牵头或参与制修订标准
  354. // final List<>? kyxmList; //牵头或参与负责科研项目
  355. // final List<>? hdryList; //获得荣誉
  356. // final List<>? personnelList; //人员信息
  357. // final List<>? instrumentEquipmentList; //设备信息
  358. final num? personnelCount; //人员数量
  359. final num? instrumentEquipmentCount; //设备数量
  360. // final List<>? filePictureList; //附件(图片)地址
  361. // final List<>? filePictureTwoList; //附件(图片)地址
  362. // final List<>? guaPaiDeptRespVoList; //挂牌部门集合
  363. const EnterpriseItem({
  364. this.id,
  365. this.address,
  366. this.beizhu,
  367. this.bgsmj,
  368. this.cqlb,
  369. this.dnczbksr,
  370. this.dnywwtsr,
  371. this.dwdzSheng,
  372. this.dwdzShengName,
  373. this.dwdzShi,
  374. this.dwdzShiName,
  375. this.dwdzXian,
  376. this.dwdzXianName,
  377. this.dwjb,
  378. this.dwmc,
  379. this.dwxz,
  380. this.frdb,
  381. this.jglb,
  382. this.jyyrs,
  383. this.lxfs,
  384. this.rybzsl,
  385. this.shtyxydm,
  386. this.sysmj,
  387. this.zjzmj,
  388. this.zrs,
  389. this.dwdz,
  390. this.createTime,
  391. this.creatorDeptId,
  392. this.deptId,
  393. this.sjzgdw,
  394. this.flowCode,
  395. this.flowStatus,
  396. this.flowCause,
  397. this.flowCheckUserId,
  398. this.flowTime,
  399. this.personnelCount,
  400. this.instrumentEquipmentCount,
  401. });
  402. factory EnterpriseItem.fromJson(Map<String, dynamic> json) => _$EnterpriseItemFromJson(json);
  403. Map<String, dynamic> toJson() => _$EnterpriseItemToJson(this);
  404. }
  405. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  406. class UseMedicineItem {
  407. num? id; //ID
  408. String? cjsj; //创建时间
  409. String? syff; //施药方式
  410. String? synypz; //使用农药品种
  411. num? synysl; //扦样使用农药的数量(公斤或毫升/每亩地)
  412. String? sysj; //施药时间
  413. num? zjCodeSamplingTaskDetailsKcjcId;
  414. num? zjCodeSamplingTaskDetailsSgjcId;
  415. String? createTime; //创建时间
  416. String? jcz; //检测值
  417. String? zczfw; //正常值范围
  418. UseMedicineItem({
  419. this.id,
  420. this.cjsj,
  421. this.syff,
  422. this.synypz,
  423. this.synysl,
  424. this.sysj,
  425. this.zjCodeSamplingTaskDetailsKcjcId,
  426. this.zjCodeSamplingTaskDetailsSgjcId,
  427. this.createTime,
  428. this.jcz,
  429. this.zczfw,
  430. });
  431. factory UseMedicineItem.fromJson(Map<String, dynamic> json) => _$UseMedicineItemFromJson(json);
  432. Map<String, dynamic> toJson() => _$UseMedicineItemToJson(this);
  433. Map<String, dynamic> toReqJson() {
  434. Map<String, dynamic> map = {};
  435. map['id'] = id;
  436. map['synypz'] = synypz;
  437. map['synysl'] = synysl;
  438. map['sysj'] = sysj;
  439. map['syff'] = syff;
  440. return map;
  441. }
  442. }
  443. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  444. class NonghuItem {
  445. /// ID
  446. num? id;
  447. /// 被调查农户或合作社
  448. String? bdcnhhhzs;
  449. /// 扦样数量(公斤)
  450. num? qysl;
  451. /// 联系方式
  452. String? lxfs;
  453. /// 扦样代表数量(公斤)
  454. num? qydbsl;
  455. /// 收购扦样任务单ID
  456. num? zjCodeSamplingTaskDetailsSgjcId;
  457. /// 库存扦样任务单ID
  458. num? zjCodeSamplingTaskDetailsKcjcId;
  459. NonghuItem({
  460. this.id,
  461. this.bdcnhhhzs,
  462. this.qysl,
  463. this.lxfs,
  464. this.qydbsl,
  465. this.zjCodeSamplingTaskDetailsKcjcId,
  466. this.zjCodeSamplingTaskDetailsSgjcId,
  467. });
  468. factory NonghuItem.fromJson(Map<String, dynamic> json) => _$NonghuItemFromJson(json);
  469. Map<String, dynamic> toJson() => _$NonghuItemToJson(this);
  470. Map<String, dynamic> toReqJson() {
  471. Map<String, dynamic> map = {};
  472. map['id'] = id;
  473. map['bdcnhhhzs'] = bdcnhhhzs;
  474. map['qysl'] = qysl;
  475. map['lxfs'] = lxfs;
  476. map['qydbsl'] = qydbsl;
  477. return map;
  478. }
  479. }
  480. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  481. class SamplingTaskAllotSgjcItem {
  482. final num? id; //id
  483. final num? zjBaseGrainInformationId; //品种id
  484. final String? cypzmc; //采样品种名称
  485. final num? samplingCount; //计划采样数量
  486. final String? bsjzsj; //报送截至时间
  487. final num? personnelId; // 人员id
  488. final num? zjCodeSamplingPlanId; //计划id
  489. final num? zjCodeSamplingTaskId; //任务id
  490. final String? creater; //创建人
  491. final String? createDate; //创建时间
  492. final String? updateDate; //修改时间
  493. final String? cyjhbmCode; //采样计划编号
  494. final String? cyjhmc; //采样计划名称
  495. final String? niandu; //年度
  496. final String? zzpz; //种植品种
  497. final num? jhcysl; //计划采样数量
  498. const SamplingTaskAllotSgjcItem({
  499. this.id,
  500. this.zjBaseGrainInformationId,
  501. this.cypzmc,
  502. this.samplingCount,
  503. this.bsjzsj,
  504. this.personnelId,
  505. this.zjCodeSamplingPlanId,
  506. this.zjCodeSamplingTaskId,
  507. this.creater,
  508. this.createDate,
  509. this.updateDate,
  510. this.cyjhbmCode,
  511. this.cyjhmc,
  512. this.niandu,
  513. this.zzpz,
  514. this.jhcysl,
  515. });
  516. factory SamplingTaskAllotSgjcItem.fromJson(Map<String, dynamic> json) => _$SamplingTaskAllotSgjcItemFromJson(json);
  517. Map<String, dynamic> toJson() => _$SamplingTaskAllotSgjcItemToJson(this);
  518. }
  519. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  520. class JyjgxxItem {
  521. //企业id
  522. final num? zjBaseEnterpriseId;
  523. //单位名称
  524. final String? dwmc;
  525. //具体地址
  526. final String? address;
  527. //检验单号
  528. final String? jydh;
  529. //样品接收时间
  530. final String? ypjssj;
  531. //数据标记 1-质量,2-品质,3-食品安全,4-储存
  532. final num? sjbj;
  533. const JyjgxxItem({
  534. this.zjBaseEnterpriseId,
  535. this.dwmc,
  536. this.address,
  537. this.jydh,
  538. this.ypjssj,
  539. this.sjbj,
  540. });
  541. factory JyjgxxItem.fromJson(Map<String, dynamic> json) => _$JyjgxxItemFromJson(json);
  542. Map<String, dynamic> toJson() => _$JyjgxxItemToJson(this);
  543. }
  544. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  545. class SampleTaskItemKcjcRsp {
  546. /// ID
  547. num? id;
  548. /// 检验人员ID
  549. num? zjBasePersonnelId;
  550. ///
  551. num? zjCodeSamplingTaskId;
  552. /// 采样计划详情ID
  553. num? zjCodeSamplingPlanId;
  554. /// 创建时间
  555. String? createTime;
  556. /// 机构id
  557. num? zjBaseEnterpriseId;
  558. /// (下发或分解)行政区划Id
  559. num? xzqh;
  560. /// 是否施药
  561. num? sfsy;
  562. /// 编码
  563. String? code;
  564. /// 备注
  565. String? bz;
  566. /// 承储企业名称
  567. String? ccqymc;
  568. /// 扦样仓房
  569. String? qycf;
  570. /// 扦样货位
  571. String? qyhw;
  572. /// 扦样区域
  573. String? qyqy;
  574. /// 仓型
  575. String? cangxing;
  576. /// 入库时间
  577. String? rksj;
  578. /// 入库等级
  579. num? rkdj;
  580. /// 上层粮温(℃)
  581. num? sclw;
  582. /// 产地
  583. String? guoChandi;
  584. /// 产地
  585. String? shengChandi;
  586. /// 代表数量(吨)
  587. num? dbsl;
  588. /// 粮食性质--库存性质
  589. String? lsxz;
  590. /// 收获年度
  591. String? shnd;
  592. /// 扦样时间
  593. String? qysj;
  594. /// 最近施药时间
  595. String? zjsysj;
  596. /// 使用药剂名称
  597. String? syyjmc;
  598. /// 虫害发生情况
  599. num? chfsqk;
  600. /// 扦样时上层粮温(℃)
  601. num? qyssclw;
  602. /// 储粮技术设施
  603. String? cljsss;
  604. /// 扦样任务单号
  605. String? qyrwdh;
  606. /// 样品编号
  607. String? ypbh;
  608. /// 扦样人员姓名
  609. String? name;
  610. /// 任务类型
  611. num? rwlx;
  612. /// 单位名称
  613. String? dwmc;
  614. /// 采样品种名称
  615. num? cypzmc;
  616. /// 采样品种名称
  617. String? cypzName;
  618. /// 种植品种
  619. String? zzpz;
  620. /// 计划采样数量
  621. num? jhcysl;
  622. /// 品质检验数量
  623. num? pzjysl;
  624. /// 质量检验数量
  625. num? zljysl;
  626. /// 食安检验数量
  627. num? sajysl;
  628. /// 储存检验数量
  629. num? ccjysl;
  630. /// 报送截止时间
  631. String? bsjzsj;
  632. /// 扦样机构
  633. num? jhcyjg;
  634. /// 品种id
  635. num? zjBaseGrainInformationId;
  636. /// 采样计划编号
  637. String? cyjhbmCode;
  638. /// 采样计划名称
  639. String? cyjhmc;
  640. /// 年度
  641. String? niandu;
  642. ///
  643. List<SampleTaskAllotItemRsp>? codeSamplingTaskAllotSgjcRespList;
  644. /// 分解状态0是未分解,1已保存,2已分解
  645. num? state;
  646. /// 人员名称
  647. String? qyryName;
  648. /// 下发部门
  649. String? xfbmName;
  650. /// 任务单任务状态:0是待扦样,1已扦样
  651. num? deliveryStatus;
  652. /// 粮食品种
  653. num? lspz;
  654. /// 所在货位粮食总数(吨)
  655. String? szhwlszs;
  656. /// 附件地址
  657. List<FileRsp>? fileList;
  658. ///
  659. num? jclb;
  660. SampleTaskItemKcjcRsp({
  661. this.id,
  662. this.zjBasePersonnelId,
  663. this.zjCodeSamplingTaskId,
  664. this.zjCodeSamplingPlanId,
  665. this.createTime,
  666. this.zjBaseEnterpriseId,
  667. this.xzqh,
  668. this.sfsy,
  669. this.code,
  670. this.bz,
  671. this.ccqymc,
  672. this.qycf,
  673. this.qyhw,
  674. this.qyqy,
  675. this.cangxing,
  676. this.rksj,
  677. this.rkdj,
  678. this.sclw,
  679. this.guoChandi,
  680. this.shengChandi,
  681. this.dbsl,
  682. this.lsxz,
  683. this.shnd,
  684. this.qysj,
  685. this.zjsysj,
  686. this.syyjmc,
  687. this.chfsqk,
  688. this.qyssclw,
  689. this.cljsss,
  690. this.qyrwdh,
  691. this.ypbh,
  692. this.name,
  693. this.rwlx,
  694. this.dwmc,
  695. this.cypzmc,
  696. this.cypzName,
  697. this.zzpz,
  698. this.jhcysl,
  699. this.pzjysl,
  700. this.zljysl,
  701. this.sajysl,
  702. this.ccjysl,
  703. this.bsjzsj,
  704. this.jhcyjg,
  705. this.zjBaseGrainInformationId,
  706. this.cyjhbmCode,
  707. this.cyjhmc,
  708. this.niandu,
  709. this.codeSamplingTaskAllotSgjcRespList,
  710. this.state,
  711. this.qyryName,
  712. this.xfbmName,
  713. this.deliveryStatus,
  714. this.lspz,
  715. this.szhwlszs,
  716. this.fileList,
  717. this.jclb,
  718. });
  719. factory SampleTaskItemKcjcRsp.fromJson(Map<String, dynamic> json) => _$SampleTaskItemKcjcRspFromJson(json);
  720. Map<String, dynamic> toJson() => _$SampleTaskItemKcjcRspToJson(this);
  721. Map<String, dynamic> getReqJson() {
  722. Map<String, dynamic> map = {};
  723. map['state'] = state;
  724. map['id'] = id;
  725. map['zjBasePersonnelId'] = zjBasePersonnelId;
  726. map['zjCodeSamplingTaskId'] = zjCodeSamplingTaskId;
  727. map['zjCodeSamplingPlanId'] = zjCodeSamplingPlanId;
  728. map['zjBaseEnterpriseId'] = zjBaseEnterpriseId;
  729. map['zjBaseGrainInformationId'] = zjBaseGrainInformationId;
  730. map['qyqy'] = qyqy;
  731. map['rksj'] = rksj;
  732. map['rkdj'] = rkdj;
  733. map['guoChandi'] = guoChandi;
  734. map['sclw'] = sclw;
  735. map['dbsl'] = dbsl;
  736. map['szhwlszs'] = szhwlszs;
  737. map['shnd'] = shnd;
  738. map['qysj'] = qysj;
  739. map['sfsy'] = sfsy;
  740. map['zjsysj'] = zjsysj;
  741. map['syyjmc'] = syyjmc;
  742. map['chfsqk'] = chfsqk;
  743. map['qyssclw'] = qyssclw;
  744. map['cljsss'] = cljsss;
  745. map['bz'] = bz;
  746. return map;
  747. }
  748. }
  749. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  750. class FileRsp {
  751. /// 文件编号
  752. num? id;
  753. /// 文件名
  754. String? name;
  755. /// 文件 URL
  756. String? url;
  757. /// 来源类型:0企业附件、1计划附件...
  758. num? objType;
  759. /// 来源id:企业id、计划id...
  760. num? objId;
  761. /// 来源细分:因为企业中有两个附件,要区分开
  762. num? type;
  763. FileRsp({
  764. this.id,
  765. this.name,
  766. this.url,
  767. this.objType,
  768. this.objId,
  769. this.type,
  770. });
  771. factory FileRsp.fromJson(Map<String, dynamic> json) => _$FileRspFromJson(json);
  772. Map<String, dynamic> toJson() => _$FileRspToJson(this);
  773. }
  774. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  775. class SampleTaskAllotItemRsp {
  776. /// id
  777. num? id;
  778. /// 品种id
  779. num? zjBaseGrainInformationId;
  780. /// 采样品种名称
  781. String? cypzmc;
  782. /// 计划采样数量
  783. num? samplingCount;
  784. /// 报送截至时间
  785. String? bsjzsj;
  786. /// 人员id
  787. num? personnelId;
  788. /// 计划id
  789. num? zjCodeSamplingPlanId;
  790. /// 任务id
  791. num? zjCodeSamplingTaskId;
  792. ///
  793. String? creater;
  794. ///
  795. String? createDate;
  796. ///
  797. String? updateDate;
  798. /// 采样计划编号
  799. String? cyjhbmCode;
  800. /// 采样计划名称
  801. String? cyjhmc;
  802. /// 年度
  803. String? niandu;
  804. /// 种植品种
  805. String? zzpz;
  806. /// 计划采样数量
  807. num? jhcysl;
  808. /// 种植品种
  809. String? zzpzmc;
  810. SampleTaskAllotItemRsp({
  811. this.id,
  812. this.zjBaseGrainInformationId,
  813. this.cypzmc,
  814. this.samplingCount,
  815. this.bsjzsj,
  816. this.personnelId,
  817. this.zjCodeSamplingPlanId,
  818. this.zjCodeSamplingTaskId,
  819. this.creater,
  820. this.createDate,
  821. this.updateDate,
  822. this.cyjhbmCode,
  823. this.cyjhmc,
  824. this.niandu,
  825. this.zzpz,
  826. this.jhcysl,
  827. this.zzpzmc,
  828. });
  829. factory SampleTaskAllotItemRsp.fromJson(Map<String, dynamic> json) => _$SampleTaskAllotItemRspFromJson(json);
  830. Map<String, dynamic> toJson() => _$SampleTaskAllotItemRspToJson(this);
  831. }