yusheng 1 год назад
Родитель
Сommit
4c65c7f4d0

+ 4 - 8
src/views/bpm/handleTask/components/purchaseNeedManage/detailDialog.vue

@@ -73,14 +73,6 @@
         <el-col :span="12">
           <el-form-item prop="askFile" label="附件:">
             <fileMain v-model="form.files" type="view"></fileMain>
-<!--            <el-link-->
-<!--              v-if="form.files && form.files !== ''"-->
-<!--              type="primary"-->
-<!--              :underline="false"-->
-<!--              @click="downloadFile(form.files)"-->
-<!--            >-->
-<!--              {{ form.files.name }}</el-link-->
-<!--            >-->
           </el-form-item>
         </el-col>
       </el-row>
@@ -113,6 +105,10 @@
         <fileMain v-model="row.files"  type="view"></fileMain>
 
       </template>
+      <template v-slot:technicalDrawings="{ row }">
+        <fileMain v-model="row.technicalDrawings"  type="view"></fileMain>
+
+      </template>
     </ele-pro-table>
     <timeDialog ref="timeDialogRef" :view="true"></timeDialog>
   </div>

+ 2 - 12
src/views/bpm/handleTask/components/purchaseNeedManage/inventoryTable.vue

@@ -189,12 +189,7 @@
           :prop="'datasource.' + scope.$index + '.files'"
         >
           <fileMain v-model="scope.row.files" ></fileMain>
-<!--          <fileUpload-->
-<!--            v-model="scope.row.files"-->
-<!--            module="main"-->
-<!--            :showLib="false"-->
-<!--            :limit="5"-->
-<!--          />-->
+
         </el-form-item>
       </template>
       <template v-slot:technicalDrawings="scope">
@@ -203,12 +198,7 @@
           :prop="'datasource.' + scope.$index + '.technicalDrawings'"
         >
           <fileMain v-model="scope.row.technicalDrawings" ></fileMain>
-<!--          <fileUpload-->
-<!--            v-model="scope.row.technicalDrawings"-->
-<!--            module="main"-->
-<!--            :showLib="false"-->
-<!--            :limit="5"-->
-<!--          />-->
+
         </el-form-item>
       </template>
 

+ 15 - 7
src/views/bpm/handleTask/components/purchasePlanManage/detailDialog.vue

@@ -88,9 +88,7 @@
 
           </el-form-item>
           
-          <template v-slot:technicalDrawings="{ row }">
-              <fileMain v-model="row.technicalDrawings" type="view"></fileMain>
-            </template>
+      
         </el-col>
       </el-row>
       <headerTitle title="计划清单" style="margin-top: 15px"></headerTitle>
@@ -120,12 +118,18 @@
                 <el-link
                   type="primary"
                   :underline="false"
-                 
+                  @click.native="handleMethod(scope.row)"
                 >
-                  {{ scope.row.expectReceiveDate }}
+                查看分批时间
                 </el-link>
               </div>
             </template>
+            <template v-slot:technicalDrawings="{ row }">
+              <fileMain v-model="row.technicalDrawings" type="view"></fileMain>
+            </template>
+            <template v-slot:files="{ row }">
+              <fileMain v-model="row.files" type="view"></fileMain>
+            </template>
           </ele-pro-table>
         </el-tab-pane>
         <el-tab-pane
@@ -176,6 +180,7 @@
         </el-tab-pane>
       </el-tabs>
     </el-form>
+    <timeDialog ref="timeDialogRef" :view="true"></timeDialog>
   </div>
 </template>
 
@@ -186,10 +191,11 @@
   import dictMixins from '@/mixins/dictMixins';
   import { getInventoryTotalAPI } from '@/api/bpm/components/wms';
   import fileMain from '@/components/addDoc/index.vue';
+  import timeDialog from '@/components/timeDialog/index.vue';
 
   export default {
     mixins: [dictMixins],
-    components: { fileMain },
+    components: { fileMain,timeDialog },
     props: {
       taskDefinitionKey: {
         type: String,
@@ -397,7 +403,9 @@
           // }
         }
       },
-
+      handleMethod(row) {
+        this.$refs.timeDialogRef.open(row);
+      },
       //查看详情
       openDetail(row) {
         this.$refs.contactDetailDialogRef.open(row);