Jelajahi Sumber

修改PDF中的几个日期

gongwencan 4 bulan lalu
induk
melakukan
bfbd88e08b

+ 1 - 1
src/components/DialogAddTagPurchase.vue

@@ -16,7 +16,7 @@
                 <el-form-item label="标签类型">
                   <my-select
                     v-model="tagTypeId"
-                    :options="optionGroup.TagType ? optionGroup.TagType.list : []"
+                    :options="optionGroup.TagType && optionGroup.TagType.list ? optionGroup.TagType.list : []"
                   ></my-select>
                 </el-form-item>
               </el-col>

+ 1 - 1
src/components/DialogTagApplyOrderExport.vue

@@ -69,7 +69,7 @@
         </div>
         <div class="flex" style="gap:5px">
           <label>日期:</label>
-          <div style="width:100px">{{ this.data && this.data.dataTime ? formatDate(data.dataTime) : ''}}</div>
+          <div style="width:100px">{{ this.data && this.data.cTime ? formatDate(data.cTime) : ''}}</div>
         </div>
       </div>
     </pdf-exporter>

+ 3 - 3
src/components/DialogTagPurchaseOrderExport.vue

@@ -52,7 +52,7 @@
         <div class="flex">
           <div class="flex-item">
             <label>制单人:</label>
-            <div>{{ data.buyerName }}</div>
+            <div>{{ this.data && this.data.buyerName ? data.buyerName : '' }}</div>
           </div>
         <div class="flex-item">
         <label>签收人:</label>
@@ -62,11 +62,11 @@
     <div class="flex">
     <div class="flex-item">
       <label>日期:</label>
-      <div>{{ formatDate(data.dataTime) }}</div>
+      <div>{{ this.data && this.data.dataTime ? formatDate(data.dataTime) : '' }}</div>
     </div>
     <div class="flex-item">
       <label>日期:</label>
-      <div>{{ formatDate(data.dataTime) }}</div>
+      <div></div>
     </div>
   </div>
 </div>

+ 1 - 1
src/views/TagApply.vue

@@ -130,7 +130,7 @@
           ></el-table-column>
           <el-table-column
             label="申领日期"
-            prop="formatDataTime"
+            prop="formatCreateTime"
             align="center"
             min-width="100"
             header-align="center"