sample_task_rsp.dart 24 KB

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