sample_task_rsp.dart 23 KB

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