Kaynağa Gözat

添加运输距离

user5 9 ay önce
ebeveyn
işleme
60c23a0be6

+ 7 - 0
src/views/sys/office/OfficeDetail.vue

@@ -35,6 +35,12 @@
 			</el-descriptions-item>
 			<el-descriptions-item>
 				<template #label>
+					<div class="cell-item">运输距离(km)</div>
+				</template>
+				{{ inputForm.haulDistance }}
+			</el-descriptions-item>
+			<el-descriptions-item>
+				<template #label>
 					<div class="cell-item">机构类型</div>
 				</template>
 				{{ $dictUtils.getDictLabel("sys_office_type", inputForm.type) }}
@@ -99,6 +105,7 @@ export default {
 				sort: "30",
 				area: "", // 归属区域
 				code: "", // 机构编码
+				haulDistance: "", // 运输距离
 				type: "", // 机构类型(1:公司;2:部门)
 				address: "", // 联系地址
 				zipCode: "", // 邮政编码

+ 20 - 0
src/views/sys/office/OfficeForm.vue

@@ -60,6 +60,25 @@
 					></el-input>
 				</el-form-item>
 
+
+				<el-form-item
+					label="运输距离(km)"
+					prop="haulDistance"
+					:rules="[
+						{
+							max: 1000,
+							message: '最大不能超过1000',
+							trigger: 'blur',
+						},
+					]"
+				>
+					<el-input
+						v-model="inputForm.haulDistance"
+						placeholder="运输距离(km)"
+					></el-input>
+				</el-form-item>
+
+
 				<el-form-item
 					label="机构类型"
 					prop="type"
@@ -228,6 +247,7 @@ export default {
 				sort: "30",
 				area: "", // 归属区域
 				code: "", // 机构编码
+				haulDistance: "", // 运输距离
 				type: "", // 机构类型(1:公司;2:部门)
 				address: "", // 联系地址
 				zipCode: "", // 邮政编码