Browse Source

发货记录 退货记录 添加打印按钮

master_hella_20240701
陈薪名 8 months ago
parent
commit
38735f196b
  1. 17
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue
  2. 17
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue

17
src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue

@ -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.mainListDocumentPrintBtn(null), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'documentPrint') { //
handlePoint(row)
}
}
/** 详情操作 */
@ -164,6 +168,13 @@ const searchFormClick = (searchData) => {
getList() //
}
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)
}
/** 初始化 **/
onMounted(async () => {
getList()

17
src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue

@ -62,6 +62,7 @@
<script setup lang="ts">
import download from '@/utils/download'
import { getAccessToken } from '@/utils/auth'
import { DeliverRecordMain,DeliverRecordMainRules,DeliverRecordDetail,DeliverRecordDetailRules } from './deliverRecordMain.data'
import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain'
import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail'
@ -125,12 +126,15 @@ const buttonBaseClick = (val, item) => {
}
// -
const butttondata = (row) => {
return []
}
const butttondata = (row) => [
defaultButtons.mainListDocumentPrintBtn(null), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'documentPrint') { //
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/929209659733770240?token=' + getAccessToken())
//
const handlePoint = async (row) => {
window.open(src.value+'&id='+row.id)
}
//
const searchFormClick = (searchData) => {
tableObject.params = {

Loading…
Cancel
Save