Browse Source

发货单打印

master
陈薪名 8 months ago
parent
commit
a6e190ecbf
  1. 9
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts
  2. 17
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue

9
src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts

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

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.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/929209659733770240?token=' + getAccessToken())
//
const handlePoint = async (row) => {
window.open(src.value+'&id='+row.id)
}
//
const searchFormClick = (searchData) => {
tableObject.params = {

Loading…
Cancel
Save