Browse Source

Merge branch 'refs/heads/dev-2.19.0' into dev

Lita-Tako 5 months ago
parent
commit
1a7c6d9692
1 changed files with 19 additions and 13 deletions
  1. 19 13
      src/views/grainQualityManagement/storehouseWholeInspectEdit.vue

+ 19 - 13
src/views/grainQualityManagement/storehouseWholeInspectEdit.vue

@@ -8,6 +8,7 @@
8
 	import { just_required, number_required, required_array } from '@/utils/rules'
8
 	import { just_required, number_required, required_array } from '@/utils/rules'
9
 	import { deleteField, genKey } from '@/utils/systemUtils'
9
 	import { deleteField, genKey } from '@/utils/systemUtils'
10
 	import { getDetail } from '@/api/grainQualityManagement/storehouseWholeInspect'
10
 	import { getDetail } from '@/api/grainQualityManagement/storehouseWholeInspect'
11
+	import {getNameByIdSync} from "@/utils/systemEnum";
11
 
12
 
12
 	const props = defineProps({
13
 	const props = defineProps({
13
 		visible: {
14
 		visible: {
@@ -165,7 +166,6 @@
165
 	const getData = () => {
166
 	const getData = () => {
166
 		getDetail(props.editData.id).then((resp) => {
167
 		getDetail(props.editData.id).then((resp) => {
167
 			const items = resp.items
168
 			const items = resp.items
168
-
169
 			if (resp.zbjgpd) {
169
 			if (resp.zbjgpd) {
170
 				resp.zbjgpd = resp.zbjgpd.split('|')
170
 				resp.zbjgpd = resp.zbjgpd.split('|')
171
 			}
171
 			}
@@ -199,6 +199,8 @@
199
 			basicStorehouseId: null, // integer(int32) basic_storehouse的id;仓房id
199
 			basicStorehouseId: null, // integer(int32) basic_storehouse的id;仓房id
200
 			bgcjsj: null, // string(date-time) 报告出具时间,格式:yyyy-MM-dd
200
 			bgcjsj: null, // string(date-time) 报告出具时间,格式:yyyy-MM-dd
201
 			bz: null, // string 备注
201
 			bz: null, // string 备注
202
+			address: null, // string 库区地址
203
+			modifyDate: null, // string 入库日期
202
 			checkResult: null, // integer(int32) 检验结果
204
 			checkResult: null, // integer(int32) 检验结果
203
 			createdate: null, // string(date-time) 创建日期
205
 			createdate: null, // string(date-time) 创建日期
204
 			dbsl: null, // number 代表数量,单位:公斤
206
 			dbsl: null, // number 代表数量,单位:公斤
@@ -216,14 +218,16 @@
216
 			jyyj: null, // string 检验依据,1:国标,
218
 			jyyj: null, // string 检验依据,1:国标,
217
 			orgId: null, // integer(int32) 库区id
219
 			orgId: null, // integer(int32) 库区id
218
 			orgName: null, // string 库区名称
220
 			orgName: null, // string 库区名称
219
-			produceArea: null, // string 产地
221
+			// produceArea: null, // string 产地
222
+			gb: null, // string 产地
220
 			qfrq: null, // string 签发日期,格式:yyyy-MM-dd
223
 			qfrq: null, // string 签发日期,格式:yyyy-MM-dd
221
 			qydbh: null, // string 抽样单编号;扦样单编号
224
 			qydbh: null, // string 抽样单编号;扦样单编号
222
 			qyqy: null, // string 扦样区域
225
 			qyqy: null, // string 扦样区域
223
 			qyrxm: null, // string 抽样人员;扦样人姓名
226
 			qyrxm: null, // string 抽样人员;扦样人姓名
224
 			qysj: null, // string(date-time) 抽样日期;扦样时间,格式:yyyy-MM-dd
227
 			qysj: null, // string(date-time) 抽样日期;扦样时间,格式:yyyy-MM-dd
225
-			receiveYear: null, // string 收获年度
226
-			rkrq: null, // string(date-time) 入库日期,格式:yyyy-MM-dd
228
+			// receiveYear: null, // string 收获年度
229
+			scnf: null, // string 收获年度
230
+			// rkrq: null, // string(date-time) 入库日期,格式:yyyy-MM-dd
227
 			samplePackageModel: null, // string 样品包装型号
231
 			samplePackageModel: null, // string 样品包装型号
228
 			sampleStatus: null, // string 样品状态
232
 			sampleStatus: null, // string 样品状态
229
 			sfzcccnx: null, // string 是否正常存储年限,0:否,
233
 			sfzcccnx: null, // string 是否正常存储年限,0:否,
@@ -252,7 +256,7 @@
252
 		grainGradeId: just_required,
256
 		grainGradeId: just_required,
253
 		xzId: just_required,
257
 		xzId: just_required,
254
 		produceArea: just_required,
258
 		produceArea: just_required,
255
-		rkrq: just_required,
259
+		modifyDate: just_required,
256
 		jydw: just_required,
260
 		jydw: just_required,
257
 		jyyj: just_required,
261
 		jyyj: just_required,
258
 		jysj: just_required,
262
 		jysj: just_required,
@@ -350,8 +354,8 @@
350
 					</a-form-item>
354
 					</a-form-item>
351
 				</a-col>
355
 				</a-col>
352
 				<a-col :span="8">
356
 				<a-col :span="8">
353
-					<a-form-item label="库区地址" name="registeredAddress">
354
-						<a-input :disabled="readonly" v-model:value="formData.registeredAddress" />
357
+					<a-form-item label="库区地址" name="address">
358
+						<a-input :disabled="readonly" v-model:value="formData.address" />
355
 					</a-form-item>
359
 					</a-form-item>
356
 				</a-col>
360
 				</a-col>
357
 			</a-row>
361
 			</a-row>
@@ -424,18 +428,20 @@
424
 
428
 
425
 			<a-row :gutter="42">
429
 			<a-row :gutter="42">
426
 				<a-col :span="8">
430
 				<a-col :span="8">
427
-					<a-form-item label="入库日期" name="rkrq">
428
-						<a-date-picker v-model:value="formData.rkrq" valueFormat="YYYY-MM-DD" :disabled="readonly" />
431
+					<a-form-item label="入库日期" name="modifyDate">
432
+						<a-date-picker v-model:value="formData.modifyDate" valueFormat="YYYY-MM-DD" :disabled="readonly" />
429
 					</a-form-item>
433
 					</a-form-item>
430
 				</a-col>
434
 				</a-col>
431
 				<a-col :span="8">
435
 				<a-col :span="8">
432
-					<a-form-item label="收获年度" name="receiveYear">
433
-						<a-date-picker v-model:value="formData.receiveYear" picker="year" valueFormat="YYYY" :disabled="readonly" />
436
+					<a-form-item label="收获年度" name="scnf">
437
+						<a-input :disabled="readonly" v-model:value="formData.scnf" />
438
+<!--						<a-input :disabled="readonly" :value="getNameByIdSync(formData.scnf).name" />-->
439
+<!--						<a-date-picker v-model:value="formData.receiveYear" picker="year" valueFormat="YYYY" :disabled="readonly" />-->
434
 					</a-form-item>
440
 					</a-form-item>
435
 				</a-col>
441
 				</a-col>
436
 				<a-col :span="8">
442
 				<a-col :span="8">
437
-					<a-form-item label="产地" name="produceArea">
438
-						<a-input :disabled="readonly" v-model:value="formData.produceArea" />
443
+					<a-form-item label="产地" name="gb">
444
+						<a-input :disabled="readonly" v-model:value="formData.gb" />
439
 					</a-form-item>
445
 					</a-form-item>
440
 				</a-col>
446
 				</a-col>
441
 			</a-row>
447
 			</a-row>