Bläddra i källkod

发运明细导出

zengtx 2 år sedan
förälder
incheckning
0fefeabad0
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      src/views/shipment-details/shipmentList.vue

+ 3 - 3
src/views/shipment-details/shipmentList.vue

@@ -132,7 +132,7 @@
         <a-button type="primary" @click.stop="referOrderDataOpen" icon="plus" >参照订单数据</a-button>
         <a-button type="primary" icon="download" @click="handleExportXls('出运成衣')" :disabled="exportButton == '1'">成衣导出-预装箱单</a-button>
         <a-button type="primary" icon="download" @click="handleExportXls('出运面辅料')" :disabled="exportButton1 == '1'">面辅料导出-装箱单</a-button>
-        <a-button type="primary" icon="download" @click="exportXlsShipment('明细')">出运明细导出</a-button>
+        <a-button type="primary" icon="download" @click="exportXlsShipment('出运明细列表')">出运明细导出</a-button>
         <a-button type="primary" icon="check" @click="submit">批量提交</a-button>
         <a-button type="primary" icon="close" @click="cancelSubmit">批量取消提交</a-button>
       </div>
@@ -769,13 +769,13 @@ export default {
           return
         }
         if (typeof window.navigator.msSaveBlob !== 'undefined') {
-          window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), fileName + '.xls')
+          window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), fileName + '.xlsx')
         } else {
           let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
           let link = document.createElement('a')
           link.style.display = 'none'
           link.href = url
-          link.setAttribute('download', fileName + '.xls')
+          link.setAttribute('download', fileName + '.xlsx')
           document.body.appendChild(link)
           link.click()
           document.body.removeChild(link) // 下载完成移除元素