diff --git a/src/utils/customConfig.js b/src/utils/customConfig.js index 695435c6..ea087afa 100644 --- a/src/utils/customConfig.js +++ b/src/utils/customConfig.js @@ -47,64 +47,42 @@ export async function getHead(businessType,type){ } -export function executeFuc(_this,row,number,type,clickFuc,value){ +export function executeFuc(_this,row,type,clickFuc,obj){ + // 0 列表点击事件 1 列表页按钮事件 2 编辑页表单事件 3 列表页复选框事件 4列表页颜色方法 5列表查询框方法 if("1" == type){ - //按钮事件 + //列表页按钮事件 return callModelFun(_this,clickFuc,row); - }else if("3" == type){ - //按钮是否禁用事件 - if(clickFuc){ - return callModelFun(_this,clickFuc,row); - }else{ - return false; - } }else if("4" == type){ - //颜色方法 + //列表页颜色方法 if(clickFuc) { - return getColer(clickFuc, value); + return getColer(clickFuc, obj); } }else if("5" == type){ - //查询input方法 + //列表查询条件查询input方法 if(clickFuc){ return callModelFun(_this,clickFuc,row); }else{ return false; } - }else if("6" == type){ - //查询input方法 + }else if("2" == type){ if(clickFuc){ + //编辑页表单事件 return callModelFun(_this,clickFuc,row); - }else{ - return false; - } - }else if("2" == type){ - if(number.clickFuc){ - //表单事件 - return callModelFun(_this,number.clickFuc,row); }else{ return true; } - }else if(number != null && number >= 0){ - //复选框事件 - var checkSelectableFuc = "" - _this.tableObj.tableList.forEach(obj => { - if(obj.columnType == "selection"){ - checkSelectableFuc = obj.clickFuc; - } - }) - // - if(checkSelectableFuc){ - return callModelFun(_this,checkSelectableFuc,row); + }else if("3" == type){ + //列表页复选框事件 + if(clickFuc){ + return callModelFun(_this,clickFuc,row); }else{ return true; } - }else{ - console.log(row); + }else if("0" == type){ //表单点击事件 - if(_this.tableObj.handleChangeFuc){ - return callModelFun(_this,_this.tableObj.handleChangeFuc,row); + if(clickFuc){ + return callModelFun(_this,clickFuc,row); } - return true; } } diff --git a/src/views/basic/product/UdiInfoSelectLocalUdi.vue b/src/views/basic/product/UdiInfoSelectLocalUdi.vue index c1cac292..4cdc27e4 100644 --- a/src/views/basic/product/UdiInfoSelectLocalUdi.vue +++ b/src/views/basic/product/UdiInfoSelectLocalUdi.vue @@ -10,7 +10,7 @@ v-model="filterQuery[item.columnName]" :placeholder="item.columnDesc" :disabled="executeEval(null,item.disabledFuc,false)" - @keyup.enter.native="executeFuc($event,null,'5',item.clickFuc)" + @keyup.enter.native="executeFuc($event,'5',item.clickFuc)" clearable > @@ -34,7 +34,7 @@ :disabled="executeEval(null,item.disabledFuc,false)" filterable remote - :remote-method="(query) => executeFuc(query, null,'6',item.clickFuc)" + :remote-method="(query) => executeFuc(query,'5',item.clickFuc)" clearable> @@ -256,7 +256,7 @@ :key="item.columnName" > @@ -837,8 +837,8 @@ export default { _this.options.findMethod = [] }); }, - executeFuc(row,number,type,clickFuc,value){ - return executeFuc(this,row,number,type,clickFuc,value); + executeFuc(row,type,clickFuc,value){ + return executeFuc(this,row,type,clickFuc,value); }, executeEval(row,expression,defaultRet){ if(expression){ diff --git a/src/views/basic/product/product.vue b/src/views/basic/product/product.vue index 6c439593..7559debd 100644 --- a/src/views/basic/product/product.vue +++ b/src/views/basic/product/product.vue @@ -50,7 +50,7 @@ v-model="filterQuery[item.columnName]" :placeholder="item.columnDesc" :disabled="executeEval(null,item.disabledFuc,false)" - @keyup.enter.native="executeFuc($event,null,'5',item.clickFuc)" + @keyup.enter.native="executeFuc($event,'5',item.clickFuc)" clearable > @@ -74,7 +74,7 @@ :disabled="executeEval(null,item.disabledFuc,false)" filterable remote - :remote-method="(query) => executeFuc(query, null,'6',item.clickFuc)" + :remote-method="(query) => executeFuc(query,'5',item.clickFuc)" clearable> @@ -388,7 +388,7 @@ :key="item.columnName" > @@ -2395,8 +2395,8 @@ export default { this.loading = false; }); }, - executeFuc(row,number,type,clickFuc,value){ - return executeFuc(this,row,number,type,clickFuc,value); + executeFuc(row,type,clickFuc,value){ + return executeFuc(this,row,type,clickFuc,value); }, executeEval(row,expression,defaultRet){ if(expression){ diff --git a/src/views/basic/product/productCategory.vue b/src/views/basic/product/productCategory.vue index fb592f86..50a4e3e7 100644 --- a/src/views/basic/product/productCategory.vue +++ b/src/views/basic/product/productCategory.vue @@ -74,7 +74,7 @@ v-model="filterQuery[item.columnName]" :placeholder="item.columnDesc" :disabled="executeEval(null,item.disabledFuc,false)" - @keyup.enter.native="executeFuc($event,null,'5',item.clickFuc)" + @keyup.enter.native="executeFuc($event,'5',item.clickFuc)" clearable > @@ -98,7 +98,7 @@ :disabled="executeEval(null,item.disabledFuc,false)" filterable remote - :remote-method="(query) => executeFuc(query, null,'6',item.clickFuc)" + :remote-method="(query) => executeFuc(query,'5',item.clickFuc)" clearable> + :selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"> @@ -368,7 +368,7 @@ :key="buttonItem" v-if="executeEval(scope.row,buttonItem.hasPermi,true)" :disabled="executeEval(scope.row,buttonItem.disabledFuc,false)" - @click.native.stop="executeFuc(scope.row,null,'1',buttonItem.clickFuc)" + @click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)" >{{ buttonItem.name }} @@ -383,7 +383,7 @@ :key="item.columnName" > @@ -1526,7 +1526,7 @@ import {thirdSysDetail} from "@/api/basic/product/udiRelevance"; import {finProductSet} from "@/api/param/systemParamConfig"; import selectUdiVersion from './UdiinfoSelectVersion' import { - getHead,executeFuc,executeEval + getHead,executeFuc } from "@/utils/customConfig"; export default { @@ -1932,8 +1932,8 @@ export default { this.detailList = []; }); }, - executeFuc(row,number,type,clickFuc,value){ - return executeFuc(this,row,number,type,clickFuc,value); + executeFuc(row,type,clickFuc,value){ + return executeFuc(this,row,type,clickFuc,value); }, executeEval(row,expression,defaultRet){ if(expression){ diff --git a/src/views/basic/product/udiInfoManageSp.vue b/src/views/basic/product/udiInfoManageSp.vue index b5c4aeaa..598addf3 100644 --- a/src/views/basic/product/udiInfoManageSp.vue +++ b/src/views/basic/product/udiInfoManageSp.vue @@ -9,7 +9,7 @@ v-model="filterQuery[item.columnName]" :placeholder="item.columnDesc" :disabled="executeEval(null,item.disabledFuc,false)" - @keyup.enter.native="executeFuc($event,null,'5',item.clickFuc)" + @keyup.enter.native="executeFuc($event,'5',item.clickFuc)" clearable > @@ -33,7 +33,7 @@ :disabled="executeEval(null,item.disabledFuc,false)" filterable remote - :remote-method="(query) => executeFuc(query, null,'6',item.clickFuc)" + :remote-method="(query) => executeFuc(query,'5',item.clickFuc)" clearable> + :selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"> @@ -233,7 +233,7 @@ :key="buttonItem" v-if="executeEval(scope.row,buttonItem.hasPermi,true)" :disabled="executeEval(scope.row,buttonItem.disabledFuc,false)" - @click.native.stop="executeFuc(scope.row,null,'1',buttonItem.clickFuc)" + @click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)" >{{ buttonItem.name }} @@ -248,7 +248,7 @@ :key="item.columnName" > @@ -849,8 +849,8 @@ export default { _this.options.findMethod = []; }); }, - executeFuc(row,number,type,clickFuc,value){ - return executeFuc(this,row,number,type,clickFuc,value); + executeFuc(row,type,clickFuc,value){ + return executeFuc(this,row,type,clickFuc,value); }, executeEval(row,expression,defaultRet){ if(expression){ diff --git a/src/views/purchase/cert/supCertAudit.vue b/src/views/purchase/cert/supCertAudit.vue index 00587604..5147d075 100644 --- a/src/views/purchase/cert/supCertAudit.vue +++ b/src/views/purchase/cert/supCertAudit.vue @@ -3,19 +3,85 @@ - - - - - + + + + + + + + + + + + + + +
@@ -29,72 +95,188 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + @row-click="(row) => executeFuc(row,'0',tableObj.handleChangeFuc)"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -129,20 +311,86 @@ - - - - - + + + + + + + + + + + + + + + + + @@ -156,53 +404,156 @@ - - - - - - - - - - - - - - - - - - - + highlight-current-row border @row-click="(row) => executeFuc(row,'0',tableObj2.handleChangeFuc)"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + @@ -273,43 +690,130 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { + // 处理返回的数据 + this.tableObj = re.data; + this.tableHeader = re.data.tableList; + this.queryList = re.data.queryList; + this.fromList = re.data.fromList; + this.getList(); + }); + getHead("supCertAudit-2","1").then((re) => { + // 处理返回的数据 + this.tableObj2 = re.data; + this.tableHeader2 = re.data.tableList; + this.queryList2 = re.data.queryList; + this.fromList2 = re.data.fromList; + }); + getHead("supCertAudit-3","1").then((re) => { + // 处理返回的数据 + this.tableObj3= re.data; + this.tableHeader3 = re.data.tableList; + this.queryList3 = re.data.queryList; + this.fromList3 = re.data.fromList; + }); }, }; diff --git a/src/views/system/customConfig/configDetail.vue b/src/views/system/customConfig/configDetail.vue index 7dc61ab8..072f3322 100644 --- a/src/views/system/customConfig/configDetail.vue +++ b/src/views/system/customConfig/configDetail.vue @@ -45,7 +45,7 @@ - +