xuzhancheng 3 týždňov pred
rodič
commit
954babdbec

+ 19 - 9
yudao-ui-admin-vue3/src/views/pressure2/boilertaskorder/detail.vue

@@ -174,8 +174,8 @@
                 <el-option
                   v-for="(item, key) in checkStatusMap"
                   :key="key"
-                  :label="item"
-                  :value="key"
+                  :label="item.label"
+                  :value="item.value"
                 />
               </el-select>
             </el-form-item>
@@ -591,11 +591,20 @@ const formData = ref({
   useInputUnitName: false,
   useInputUseUnitName: false
 })
-const checkStatusMap = {
-  '100': '内检',
-  '200': '外检',
-  '300': '耐压检',
-}
+const checkStatusMap = [
+  {
+    value: 100,
+    label: '内检',
+  },
+  {
+    value: 200,
+    label: '外检',
+  },
+  {
+    value: 300,
+    label: '耐压检',
+  },
+]
 
 const batchEditFormRef = ref()
 const boilerTypeOptions = getStrDictOptions(DICT_TYPE.SYSTEM_EQUIP_BOILER_TYPE)
@@ -758,7 +767,8 @@ const getDetail = async () => {
       email: orderDetail.value?.email || '',
       payerContactName: orderDetail.value?.payerContactName || '',
       payerContact: orderDetail.value?.payerContact || '',
-      payerMail: orderDetail.value?.payerMail || ''
+      payerMail: orderDetail.value?.payerMail || '',
+      checkType: orderDetail.value?.checkType,
     }
 
 
@@ -1322,7 +1332,7 @@ const handleChangeUseUnit = async (unitInfo:any) => {
 :deep(.el-form) {
   .el-form-item {
     margin-bottom: 12px;
-
+    align-items: center;
     &__label {
       height: auto;
       font-size: 13px;

+ 15 - 8
yudao-ui-admin-vue3/src/views/pressure2/pipetaskorder/detail.vue

@@ -174,8 +174,8 @@
                 <el-option
                   v-for="(item, key) in checkStatusMap"
                   :key="key"
-                  :label="item"
-                  :value="key"
+                  :label="item.label"
+                  :value="item.value"
                 />
               </el-select>
             </el-form-item>
@@ -680,10 +680,16 @@ const equipQueryParams = ref({
   nextDate: [] as string[],
   useStatus: [] as string[],
 })
-const checkStatusMap = {
-  '100': '定期检验',
-  '200': '年度检查',
-}
+const checkStatusMap = [
+  {
+    value: 100,
+    label: '定期检验',
+  },
+  {
+    value: 200,
+    label: '年度检查',
+  },
+]
 const equipQueryFormRef = ref()
 const equipLoading = ref(false)
 const equipList = ref<any[]>([])
@@ -817,7 +823,8 @@ const getDetail = async () => {
       email: orderDetail.value?.email || '',
       payerContactName: orderDetail.value?.payerContactName || '',
       payerContact: orderDetail.value?.payerContact || '',
-      payerMail: orderDetail.value?.payerMail || ''
+      payerMail: orderDetail.value?.payerMail || '',
+      checkType: orderDetail.value?.checkType,
     }
 
     const teamItemList = orderDetail.value?.teamItemList?.flatMap((team: any) => {
@@ -1495,7 +1502,7 @@ const handleChangeUseUnit = async (unitInfo:any) => {
 :deep(.el-form) {
   .el-form-item {
     margin-bottom: 12px;
-
+    align-items: center;
     &__label {
       height: auto;
       font-size: 13px;