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