소스 검색

Merge branch 'develop_yh12' of http://git.chelingzhu.com/jianguan-web/jg-ocs-html into develop_yh12

chenrui 2 년 전
부모
커밋
e5fe146ea0
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/views/supplierManagement/costSetting/chooseImportModal.vue

+ 3 - 1
src/views/supplierManagement/costSetting/chooseImportModal.vue

@@ -90,7 +90,7 @@ export default {
         { title: '供应商名称', dataIndex: 'supplierName', width: '25%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品编码', dataIndex: 'productCode', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品名称', dataIndex: 'product.name', width: '30%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '成本价', dataIndex: 'costText', width: '15%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '成本价', dataIndex: 'costText', width: '15%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
       ],
       nowUnColumns: [ //  不可导入
         { title: '序号', dataIndex: 'no', width: '10%', align: 'center' },
@@ -115,11 +115,13 @@ export default {
           if (res.data.okList && res.data.okList.length > 0) {
             res.data.okList.map((item, index) => {
               item.no = index + 1
+              item.costText = Number(item.costText).toFixed(2)
             })
           }
           if (res.data.failList && res.data.failList.length > 0) {
             res.data.failList.map((item, index) => {
               item.no = index + 1
+              item.costText = Number(item.costText).toFixed(2)
             })
           }
           _this.loadData = res.data.okList || []