Kaynağa Gözat

修复附件未显示的问题

landydb 2 hafta önce
ebeveyn
işleme
3de9cefa4c

+ 3 - 1
src/views/modules/order/order-add-or-update.vue

@@ -34,6 +34,7 @@
                 :disabled="display || addType === 2"
                 v-model="dataForm.contractNumber"
                 :fetch-suggestions="queryContracList"
+                :value-key="'label'"
                 placeholder="请输入合同号"
                 @select="handleSelect"
               ></el-autocomplete>
@@ -608,7 +609,7 @@ export default {
             if (data.data != null) {
               data.data.forEach(item => {
                 contractOption.push({
-                  label: item.contractNumber,
+                  label: item.projectName + '-' + item.contractNumber,
                   value: item.contractNumber,
                   data: item.cusCBookProducts,
                   customerId: item.customerId,
@@ -630,6 +631,7 @@ export default {
         })
         this.dataForm.customerId = item.customerId
         this.dataForm.customerName = item.customerName
+        this.dataForm.contractNumber = item.value
       }
     }
   }

+ 13 - 8
src/views/modules/tech/project-product-detail.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <div class="my-title">分派</div>
+    <div class="my-title">查看</div>
     <el-form
       :model="dataForm"
       :rules="dataRule"
@@ -19,13 +19,13 @@
           </el-form-item>
         </el-col>
         <el-col :span="6">
-          <el-form-item label="技术协议:" prop="attachFile1">
-            <span @click="attachDetail(dataForm.attachFile1)">{{dataForm.attachFile1 == null ? '' : dataForm.attachFile1[0].fileName}}</span>
+          <el-form-item label="技术协议:" prop="attachList1">
+            <span class="attch-file" @click="attachDetail(dataForm.attachList1)">{{dataForm.attachList1 == null ? '' : dataForm.attachList1[0].fileName}}</span>
           </el-form-item>
         </el-col>
         <el-col :span="6">
-          <el-form-item label="资料:" prop="attachFile2">
-            <span @click="attachDetail(dataForm.attachFile1)">{{dataForm.attachFile2 == null ? '' : dataForm.attachFile2[0].fileName}}</span>
+          <el-form-item label="资料:" prop="attachList2">
+            <span class="attch-file" @click="attachDetail(dataForm.attachList2)">{{dataForm.attachList2 == null ? '' : dataForm.attachList2[0].fileName}}</span>
           </el-form-item>
         </el-col>
       </el-row>
@@ -162,13 +162,13 @@
       </el-table>
     </el-form>
     <span slot="footer" class="dialog-footer">
-      <el-button @click="onChose">取消</el-button>
-      <el-button
+      <el-button @click="onChose">返回</el-button>
+      <!-- <el-button
         type="primary"
         @click="dataFormSubmit()"
         v-reClick
         >确定</el-button
-      >
+      > -->
     </span>
 
     <attach-detail-dialog ref="attachDetail"/>
@@ -279,4 +279,9 @@ export default {
 .radio-group-wrap :deep(.el-radio) {
   margin-left: 0; /* 清除横向间距 */
 }
+
+.attch-file {
+  cursor: pointer;
+  color: #3e8ef7;
+}
 </style>

+ 9 - 4
src/views/modules/tech/project-tech-submit.vue

@@ -19,13 +19,13 @@
           </el-form-item>
         </el-col>
         <el-col :span="6">
-          <el-form-item label="技术协议:" prop="attachFile1">
-            <span @click="attachDetail(dataForm.attachFile1)">{{dataForm.attachFile1 == null ? '' : dataForm.attachFile1[0].fileName}}</span>
+          <el-form-item label="技术协议:" prop="attachList1">
+            <span class="attch-file" @click="attachDetail(dataForm.attachList1)">{{dataForm.attachList1 == null ? '' : dataForm.attachList1[0].fileName}}</span>
           </el-form-item>
         </el-col>
         <el-col :span="6">
-          <el-form-item label="资料:" prop="attachFile2">
-            <span @click="attachDetail(dataForm.attachFile1)">{{dataForm.attachFile2 == null ? '' : dataForm.attachFile2[0].fileName}}</span>
+          <el-form-item label="资料:" prop="attachList2">
+            <span class="attch-file" @click="attachDetail(dataForm.attachList2)">{{dataForm.attachList2 == null ? '' : dataForm.attachList2[0].fileName}}</span>
           </el-form-item>
         </el-col>
       </el-row>
@@ -294,4 +294,9 @@ export default {
   flex-direction: column;
   gap: 10px 0px; /* 行列间距控制 */
 }
+
+.attch-file {
+  cursor: pointer;
+  color: #3e8ef7;
+}
 </style>