Browse Source

采购收货管理--供应商发票申请--详情页面,扩展新增按钮以及点击事件

master_hella_20240701
yufei0306 8 months ago
parent
commit
2c7fd9ab24
  1. 12
      src/components/Detail/src/Detail.vue
  2. 15
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

12
src/components/Detail/src/Detail.vue

@ -322,6 +322,12 @@ const props = defineProps({
required: false, required: false,
default: false default: false
}, },
//
otherHeadButttonData:{
type:Array,
required: false,
default: () => []
}
}) })
const isShowDrawer = ref(false) const isShowDrawer = ref(false)
const detailLoading = ref(false) const detailLoading = ref(false)
@ -544,7 +550,7 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
defaultButtons.defaultFilterBtn(null) // defaultButtons.defaultFilterBtn(null) //
] ]
} }
HeadButttondata.value = [...HeadButttondata.value,...props.otherHeadButttonData]
let detailButtonEdit: any = [] let detailButtonEdit: any = []
let detailButtonDelete: any = [] let detailButtonDelete: any = []
if (props.detailButtonIsShowEdit) { if (props.detailButtonIsShowEdit) {
@ -654,6 +660,7 @@ const buttonBaseClick = (val, item) => {
} else { } else {
// //
console.log('其他按钮', item) console.log('其他按钮', item)
emit('buttonBaseClick',val, item)
} }
} }
@ -781,7 +788,8 @@ const emit = defineEmits([
'openImage', 'openImage',
'onBlur', 'onBlur',
'detailBasicFormOnChange', 'detailBasicFormOnChange',
'formFormDateChange' 'formFormDateChange',
'buttonBaseClick'
]) ])
/** 删除按钮操作 */ /** 删除按钮操作 */
const handleDelete = async (id: number) => { const handleDelete = async (id: number) => {

15
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -83,6 +83,16 @@
prop: 'Annex', prop: 'Annex',
tableName:'waybill' tableName:'waybill'
}]" }]"
:otherHeadButttonData="[{
label: '打印',
name: 'kuozhan',
hide: false,
type: 'primary',
// icon: 'ep:operation',
color: '',
float:'left',
hasPermi: ''
}]"
:isBasic="false" :isBasic="false"
:allSchemas="SupplierinvoiceRequestMain.allSchemas" :allSchemas="SupplierinvoiceRequestMain.allSchemas"
:detailAllSchemas="SupplierinvoiceRequestDetail.allSchemas" :detailAllSchemas="SupplierinvoiceRequestDetail.allSchemas"
@ -93,6 +103,7 @@
:apiPage="SupplierinvoiceRequestDetailApi.getSupplierinvoiceRequestDetailPage" :apiPage="SupplierinvoiceRequestDetailApi.getSupplierinvoiceRequestDetailPage"
:apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail" :apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail"
:Echo="Echo" :Echo="Echo"
@buttonBaseClick="detailButtonBaseClick"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -571,6 +582,10 @@ const importSuccess = () => {
getList() // getList() //
} }
// --
const detailButtonBaseClick = (val, item) => {
console.log(1111)
}
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()

Loading…
Cancel
Save