@ -81,7 +81,7 @@ PurchaseDetail:子表
3.2 在按钮回调中添加$index,固定的写死:
const butttondata = (row,$index) => {
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
if(findIndex>0&&findIndex<$index){
if(findIndex>-1&&findIndex<$index){
return []
}
…下面是原有的按钮逻辑,不变
@ -194,7 +194,7 @@ const isShowMainButton = (row,val) => {
// 列表-操作按钮
return [
@ -244,7 +244,7 @@ const isShowMainButton = (row, val) => {
@ -128,7 +128,7 @@ const buttonBaseClick = (val, item) => {
@ -286,7 +286,7 @@ const searchTableRef = ref()
@ -189,7 +189,7 @@ const isShowMainButton = (row,val) => {
@ -181,7 +181,7 @@ const isShowMainButton = (row,val) => {
@ -129,7 +129,7 @@ const buttonBaseClick = (val, item) => {
}else{
return [defaultButtons.mainListDocumentPrintBtn(null),] // 标签打印
@ -281,7 +281,7 @@ const isShowMainButton = (row,val) => {
@ -210,7 +210,7 @@ const isShowMainButton = (row,val) => {
@ -202,7 +202,7 @@ const isShowMainButton = (row,val) => {
@ -151,7 +151,7 @@ const buttonBaseClick = (val, item) => {
@ -271,7 +271,7 @@ const isShowMainButton = (row,val) => {
@ -274,7 +274,7 @@ const isShowMainButton = (row,val) => {
@ -216,7 +216,7 @@ const isShowMainButton = (row,val) => {
@ -182,7 +182,7 @@ const isShowMainButton = (row,val) => {
@ -244,7 +244,7 @@ const isShowMainButton = (row,val) => {
@ -296,7 +296,7 @@ const isShowMainButton = (row,val) => {
@ -172,7 +172,7 @@ const buttonBaseClick = (val, item) => {
@ -248,7 +248,7 @@ const buttonBaseClick = (val, item) => {
@ -271,7 +271,7 @@ const buttonBaseClick = (val, item) => {
@ -190,7 +190,7 @@ const isShowMainButton = (row,val) => {
@ -123,7 +123,7 @@ const buttonBaseClick = (val, item) => {
return [defaultButtons.mainListPointBtn(null)] // 标签打印
@ -224,7 +224,7 @@ const isShowMainButton = (row,val) => {
@ -214,7 +214,7 @@ const isShowMainButton = (row,val) => {
@ -203,7 +203,7 @@ const isShowMainButton = (row,val) => {
@ -184,7 +184,7 @@ const isShowMainButton = (row,val) => {
@ -209,7 +209,7 @@ const isShowMainButton = (row,val) => {
@ -225,7 +225,7 @@ const isShowMainButton = (row,val) => {
@ -311,7 +311,7 @@ const isShowMainButton = (row,val) => {
@ -166,7 +166,7 @@ const isShowMainButton = (row,val) => {
@ -198,7 +198,7 @@ const isShowMainButton = (row,val) => {
@ -239,7 +239,7 @@ const isShowMainButton = (row,val) => {
@ -150,7 +150,7 @@ const isShowMainButton = (row,val) => {
@ -158,7 +158,7 @@ const isShowMainButton = (row,val) => {
@ -315,7 +315,7 @@ const isShowMainButton = (row,val) => {
@ -291,7 +291,7 @@ const isShowMainButton = (row,val) => {
@ -167,7 +167,7 @@ const isShowMainButton = (row,val) => {
@ -197,7 +197,7 @@ const isShowMainButton = (row,val) => {
@ -174,7 +174,7 @@ const buttonBaseClick = (val, item) => {
@ -234,7 +234,7 @@ const isShowMainButton = (row,val) => {
@ -183,7 +183,7 @@ const buttonBaseClick = (val, item) => {
@ -398,7 +398,7 @@ const isShowMainButton = (row,val) => {
@ -198,7 +198,7 @@ const buttonBaseClick = (val, item) => {
@ -351,7 +351,7 @@ const isShowMainButton = (row,val) => {
@ -221,7 +221,7 @@ const isShowMainButton = (row,val) => {
@ -152,7 +152,7 @@ const isShowMainButton = (row,val) => {
@ -201,7 +201,7 @@ const isShowMainButton = (row,val) => {
@ -173,7 +173,7 @@ const buttonBaseClick = (val, item) => {
@ -161,7 +161,7 @@ const isShowMainButton = (row,val) => {
@ -282,7 +282,7 @@ const isShowMainButton = (row,val) => {
@ -160,7 +160,7 @@ const isShowMainButton = (row,val) => {
@ -171,7 +171,7 @@ const buttonBaseClick = (val, item) => {
@ -268,7 +268,7 @@ const isShowMainButton = (row,val) => {
@ -106,7 +106,7 @@ const buttonBaseClick = (val, item) => {
return[
@ -104,7 +104,7 @@ const buttonBaseClick = (val, item) => {
@ -223,7 +223,7 @@ const isShowMainButton = (row,val) => {
@ -237,7 +237,7 @@ const buttonBaseClick = (val, item) => {
@ -350,7 +350,7 @@ const isShowMainButton = (row,val) => {
@ -417,7 +417,7 @@ const isShowMainButton = (row,val) => {
@ -132,7 +132,7 @@ const buttonBaseClick = (val, item) => {