|
|
@ -62,6 +62,7 @@ |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
import download from '@/utils/download' |
|
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
|
import { CustomerreturnRecordMain,CustomerreturnRecordMainRules,CustomerreturnRecordDetail,CustomerreturnRecordDetailRules } from './customerreturnRecordMain.data' |
|
|
|
import * as CustomerreturnRecordMainApi from '@/api/wms/customerreturnRecordMain' |
|
|
|
import * as CustomerreturnRecordDetailApi from '@/api/wms/customerreturnRecordDetail' |
|
|
@ -125,12 +126,15 @@ const buttonBaseClick = (val, item) => { |
|
|
|
} |
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = (row) => { |
|
|
|
return [] |
|
|
|
} |
|
|
|
const butttondata = (row) => [ |
|
|
|
defaultButtons.mainListPointBtn(null), // 标签打印 |
|
|
|
] |
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'point') { // 标签打印 |
|
|
|
handlePoint(row) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
@ -155,6 +159,13 @@ const handleExport = async () => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL |
|
|
|
const src = ref(BASE_URL + '/jmreport/view/929216638195793920?token=' + getAccessToken()) |
|
|
|
// 标签打印 |
|
|
|
const handlePoint = async (row) => { |
|
|
|
window.open(src.value+'&id='+row.id) |
|
|
|
} |
|
|
|
|
|
|
|
// 筛选提交 |
|
|
|
const searchFormClick = (searchData) => { |
|
|
|
tableObject.params = { |
|
|
|