whj 1 rok pred
rodič
commit
e94dbdc276

+ 1 - 1
src/views/idle-assets/modules/Detail.vue

@@ -25,7 +25,7 @@
               :src="item.url"
               :key="item.id"
               class="image"
-              width="200px"
+              width="100px"
               style="margin:10px;">
           </viewer></div>
       </template>

+ 3 - 0
src/views/preparation/preparation/modules/BaseForm.vue

@@ -331,6 +331,9 @@ export default {
       record.repairStartTime = this.BaseTool.Moment(record.repairStartTime, this.BaseTool.Date.PICKER_NORM_DATETIME_PATTERN)
       record.repairEndTime = this.BaseTool.Moment(record.repairEndTime, this.BaseTool.Date.PICKER_NORM_DATETIME_PATTERN)
       record.limitHours = this.BaseTool.Moment(record.limitHours, this.BaseTool.Date.PICKER_NORM_DATE_PATTERN)
+      this.defaultRepairFileList = this.BaseTool.UPLOAD.transImg(record.applyImageList)
+      this.defaultFileList = this.BaseTool.UPLOAD.transImg(record.applyFileList)
+
       this.$nextTick(() => {
         setFieldsValue(Object.assign(pick(record, [
           'id',

+ 19 - 3
src/views/preparation/preparation/modules/Detail.vue

@@ -9,13 +9,29 @@
       <a-descriptions-item label="申请人">{{ model.createdUserName }}</a-descriptions-item>
       <a-descriptions-item label="申请部门">{{ model.deptName }}</a-descriptions-item>
       <a-descriptions-item label="申请建筑物">{{ model.positionName }}</a-descriptions-item>
-      <a-descriptions-item label="申请原因" :span="3"> <span v-html="model.applyReason "></span></a-descriptions-item>
+      <a-descriptions-item label="费用图片" :span="3">
+        <div v-if="model.applyImageList != null && model.applyImageList.length > 0">
+          <viewer :images="model.applyImageList" @inited="inited" ref="viewer" :index="1" >
+            <img
+              v-for="item in model.applyImageList"
+              :src="item.url"
+              :key="item.id"
+              class="image"
+              width="100px"
+              style="margin:10px;">
+          </viewer></div>
+        <div v-if="model.applyImageList == null || model.applyImageList.length === 0"> 暂无</div>
+      </a-descriptions-item>
+      <a-descriptions-item label="费用文件" :span="3">
+        <a v-for="item in model.applyFileList" :key="item.id" :href="item.url" target="downloadFile" :download="item.name">{{ item.name }}</a>
+      </a-descriptions-item>
+      <!-- <a-descriptions-item label="申请原因" :span="3"> <span v-html="model.applyReason "></span></a-descriptions-item> -->
       <a-descriptions-item label="申请时间">{{ model.applyTime }}</a-descriptions-item>
       <a-descriptions-item label="要求完成日期">{{ model.limitHours }}</a-descriptions-item>
       <a-descriptions-item label="审批主管">{{ model.applyVerifyUser }}</a-descriptions-item>
       <a-descriptions-item label="部门负责人">{{ model.applyVerifyLeaderName }}</a-descriptions-item>
       <a-descriptions-item label="工单状态"><badge :text="BaseTool.Object.getField(statusMap,model.status)" :status="DictCache.COLOR.REPAIR_FORM_STATUS[model.status]"/></a-descriptions-item>
-      <a-descriptions-item label="备注">{{ model.remark }}</a-descriptions-item>
+      <!-- <a-descriptions-item label="备注">{{ model.remark }}</a-descriptions-item> -->
       <a-descriptions-item label="任务描述" :span="3"> <span v-html="model.content "></span></a-descriptions-item>
       <a-descriptions-item label="收件部门">{{ model.receiveDeptName }}</a-descriptions-item>
       <a-descriptions-item label="收件部门负责人">{{ model.receiveVerifyLeaderName }}</a-descriptions-item>
@@ -39,7 +55,7 @@
               :src="item.url"
               :key="item.id"
               class="image"
-              width="200px"
+              width="100px"
               style="margin:10px;">
           </viewer></div>
         <div v-if="model.imageList == null || model.imageList.length === 0"> 暂无</div>