qsh 4 weeks ago
parent 666060f235
commit cdb497977b
  1. 4
      .env.base
  2. 8
      src/views/Clue/Order/Comp/AfterSales.vue

@ -4,9 +4,9 @@ VITE_NODE_ENV=development
VITE_DEV=true
# 请求路径
# VITE_BASE_URL='http://47.98.161.246:48080'
VITE_BASE_URL='http://47.98.161.246:48080'
# VITE_BASE_URL='http://114.215.207.150:48080'
VITE_BASE_URL='http://localhost:48080'
# VITE_BASE_URL='http://localhost:48080'
# 高德地图key密钥
# 1寻驾

@ -113,7 +113,6 @@
<el-button @click="batchAudit" v-hasPermi="['clue:order:after-sale-batch-audit']">
批量审核
</el-button>
<el-button @click="downloadTemplateFile"> 下载模板 </el-button>
<el-upload
ref="salaryFile"
action="#"
@ -124,6 +123,7 @@
:before-upload="fileBeforeUpload"
:http-request="afterSalesUpload"
:disabled="uploading"
v-hasPermi="['clue:order:after-sale-import']"
>
<el-button type="primary"> 导入 </el-button>
</el-upload>
@ -251,7 +251,6 @@ import DialogBatchAudit from './DialogBatchAudit.vue'
import { removeNullField } from '@/utils'
import { dateFormatter } from '@/utils/formatTime'
import { useAppStore } from '@/store/modules/app'
import download from '@/utils/download'
const afterSaleAuditDialog = ref()
@ -348,11 +347,6 @@ function handleAudit(row) {
afterSaleAuditDialog.value.open(row)
}
async function downloadTemplateFile() {
let data = await AfterSaleApi.getAfterSalesTemplate()
download.excel(data, '售后模板.xls')
}
const fileBeforeUpload = (file) => {
let format = '.' + file.name.split('.')[1]
if (!['.xls', '.xlsx'].includes(format)) {

Loading…
Cancel
Save