Browse Source

退货记录打印标签

master
陈薪名 6 months ago
parent
commit
c8319c6524
  1. 9
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/customerreturnRecordMain.data.ts
  2. 17
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue

9
src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/customerreturnRecordMain.data.ts

@ -338,6 +338,15 @@ export const CustomerreturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
]))
//表单校验

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.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 = {

Loading…
Cancel
Save