浏览代码

bug修复

chenrui 3 年之前
父节点
当前提交
1f5250b0dd

+ 6 - 6
src/views/allocationManagement/transferOut/chooseImportModal.vue

@@ -79,17 +79,17 @@ export default {
       isShow: this.openModal, //  是否打开弹框
       isShow: this.openModal, //  是否打开弹框
       nowColumns: [ //  正品
       nowColumns: [ //  正品
         { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
         { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
-        { title: '产品编码', dataIndex: 'productEntity.code', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品名称', dataIndex: 'productEntity.name', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '数量', dataIndex: 'qty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '产品编码', dataIndex: 'productCode', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '数量', dataIndex: 'qtyText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '库存', dataIndex: 'currentStockQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '库存', dataIndex: 'currentStockQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '单位', dataIndex: 'productEntity.unit', width: 60, align: 'center', customRender: function (text) { return text || '--' } }
         { title: '单位', dataIndex: 'productEntity.unit', width: 60, align: 'center', customRender: function (text) { return text || '--' } }
       ],
       ],
       nowUnColumns: [ //  促销品
       nowUnColumns: [ //  促销品
         { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
         { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
-        { title: '产品编码', dataIndex: 'productEntity.code', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品名称', dataIndex: 'productEntity.name', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '数量', dataIndex: 'qty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '产品编码', dataIndex: 'productCode', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '数量', dataIndex: 'qtyText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '库存', dataIndex: 'currentStockQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '库存', dataIndex: 'currentStockQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '单位', dataIndex: 'productEntity.unit', width: 60, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '单位', dataIndex: 'productEntity.unit', width: 60, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '备注', dataIndex: 'errorDesc', width: 180, align: 'center', customRender: function (text) { return text || '--' } }
         { title: '备注', dataIndex: 'errorDesc', width: 180, align: 'center', customRender: function (text) { return text || '--' } }

+ 1 - 3
src/views/allocationManagement/transferOut/importGuideModal.vue

@@ -63,7 +63,6 @@
 </template>
 </template>
 
 
 <script>
 <script>
-import moment from 'moment'
 import ChooseImportModal from './chooseImportModal.vue'
 import ChooseImportModal from './chooseImportModal.vue'
 import { Upload } from '@/components'
 import { Upload } from '@/components'
 import { allocateBillDownload } from '@/api/allocateBill'
 import { allocateBillDownload } from '@/api/allocateBill'
@@ -148,8 +147,7 @@ export default {
       const link = document.createElement('a')
       const link = document.createElement('a')
       link.style.display = 'none'
       link.style.display = 'none'
       link.href = url
       link.href = url
-      const a = moment().format('YYYYMMDDHHmmss')
-      const fname = '调拨单产品导入_模板_' + a
+      const fname = '调拨单产品导入模板'
       link.setAttribute('download', fname + '.xlsx')
       link.setAttribute('download', fname + '.xlsx')
       document.body.appendChild(link)
       document.body.appendChild(link)
       link.click()
       link.click()