Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
陈薪名 9 months ago
parent
commit
70c4a26b2c
  1. 14
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue
  2. 10
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/purchasereturnRecordMain.data.ts

14
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue

@ -66,6 +66,7 @@ import { PurchasereturnRecordMain,PurchasereturnRecordMainRules,PurchasereturnRe
import * as PurchasereturnRecordMainApi from '@/api/wms/purchasereturnRecordMain' import * as PurchasereturnRecordMainApi from '@/api/wms/purchasereturnRecordMain'
import * as PurchasereturnRecordDetailApi from '@/api/wms/purchasereturnRecordDetail' import * as PurchasereturnRecordDetailApi from '@/api/wms/purchasereturnRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { getAccessToken } from '@/utils/auth'
// 退 // 退
defineOptions({ name: 'PurchasereturnRecordMain' }) defineOptions({ name: 'PurchasereturnRecordMain' })
@ -126,11 +127,22 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [] return [defaultButtons.mainListDocumentPrintBtn(null)]
} }
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'documentPrint') {
//
handleDocumentPrint(row.id)
}
}
//
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const documentSrc = ref(BASE_URL + '/jmreport/view/920874172025987072?token=' + getAccessToken())
const handleDocumentPrint = async (id) => {
window.open(documentSrc.value + '&id=' + id)
} }
/** 详情操作 */ /** 详情操作 */

10
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/purchasereturnRecordMain.data.ts

@ -330,6 +330,16 @@ export const PurchasereturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
},
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false,
table: {
width: 150,
fixed: 'right'
},
} }
])) ]))

Loading…
Cancel
Save