|  | @@ -158,7 +158,8 @@ import { UploadFilled } from '@element-plus/icons-vue'
 | 
											
												
													
														|  |  import * as XLSX from 'xlsx'
 |  |  import * as XLSX from 'xlsx'
 | 
											
												
													
														|  |  import type { FormInstance, FormRules } from 'element-plus'
 |  |  import type { FormInstance, FormRules } from 'element-plus'
 | 
											
												
													
														|  |  import { IPoItem, IOptionItem } from '../inteface'
 |  |  import { IPoItem, IOptionItem } from '../inteface'
 | 
											
												
													
														|  | -import request from '@/utils/axios'
 |  | 
 | 
											
												
													
														|  | 
 |  | +// import request from '@/utils/axios'
 | 
											
												
													
														|  | 
 |  | +import utils from '@/utils/index'
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  const props = defineProps({
 |  |  const props = defineProps({
 | 
											
												
													
														|  |    visible: {
 |  |    visible: {
 | 
											
										
											
												
													
														|  | @@ -280,6 +281,14 @@ const processExcel = (event: any) => {
 | 
											
												
													
														|  |            data.Sheets[data.SheetNames[0]],
 |  |            data.Sheets[data.SheetNames[0]],
 | 
											
												
													
														|  |          ) as IPoItem[]
 |  |          ) as IPoItem[]
 | 
											
												
													
														|  |          jsonData.forEach((i) => {
 |  |          jsonData.forEach((i) => {
 | 
											
												
													
														|  | 
 |  | +          i.unit_price = utils.toFixed(Number(i.unit_price || 0), 1000)
 | 
											
												
													
														|  | 
 |  | +          i.quantity = utils.toFixed(Number(i.quantity || 0), 1000)
 | 
											
												
													
														|  | 
 |  | +          i.sample_fee = utils.toFixed(Number(i.sample_fee || 0), 1000)
 | 
											
												
													
														|  | 
 |  | +          i.setup_service_fee = utils.toFixed(
 | 
											
												
													
														|  | 
 |  | +            Number(i.setup_service_fee || 0),
 | 
											
												
													
														|  | 
 |  | +            1000,
 | 
											
												
													
														|  | 
 |  | +          )
 | 
											
												
													
														|  | 
 |  | +          i.total = utils.toFixed(Number(i.total || 0), 1000)
 | 
											
												
													
														|  |            tableData.value.push(i)
 |  |            tableData.value.push(i)
 | 
											
												
													
														|  |          })
 |  |          })
 | 
											
												
													
														|  |          // tableData.value = tableData.value.concat(jsonData)
 |  |          // tableData.value = tableData.value.concat(jsonData)
 |