gcs-ui-lib 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/gcs-ui-lib.common.js
CHANGED
|
@@ -5612,12 +5612,6 @@ const columns = exports.columns = [{
|
|
|
5612
5612
|
width: 200,
|
|
5613
5613
|
showOverflowTooltip: true,
|
|
5614
5614
|
align: 'center'
|
|
5615
|
-
}, {
|
|
5616
|
-
label: (0, _i18n.$l)('归属单位'),
|
|
5617
|
-
prop: 'belongUnitName',
|
|
5618
|
-
width: 240,
|
|
5619
|
-
showOverflowTooltip: true,
|
|
5620
|
-
align: 'left'
|
|
5621
5615
|
}, {
|
|
5622
5616
|
label: (0, _i18n.$l)('单位名称'),
|
|
5623
5617
|
prop: 'deptName',
|
package/lib/gcs-ui-lib.umd.js
CHANGED
|
@@ -5621,12 +5621,6 @@ const columns = exports.columns = [{
|
|
|
5621
5621
|
width: 200,
|
|
5622
5622
|
showOverflowTooltip: true,
|
|
5623
5623
|
align: 'center'
|
|
5624
|
-
}, {
|
|
5625
|
-
label: (0, _i18n.$l)('归属单位'),
|
|
5626
|
-
prop: 'belongUnitName',
|
|
5627
|
-
width: 240,
|
|
5628
|
-
showOverflowTooltip: true,
|
|
5629
|
-
align: 'left'
|
|
5630
5624
|
}, {
|
|
5631
5625
|
label: (0, _i18n.$l)('单位名称'),
|
|
5632
5626
|
prop: 'deptName',
|
|
@@ -30,7 +30,7 @@ var t=e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo
|
|
|
30
30
|
//! moment.js locale configuration
|
|
31
31
|
var t=e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return t}))},"0ff5":function(e,t,n){"use strict";n.r(t);var a=n("b52e"),r=n("4cbf");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);var s=n("2877"),o=Object(s["a"])(r["default"],a["render"],a["staticRenderFns"],!1,null,null,null);t["default"]=o.exports},1:function(e,t){},"106f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=r(n("8bbf"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(a.default.prototype.$isServer)return;if(!t)return void(e.scrollTop=0);const n=[];let r=t.offsetParent;while(r&&e!==r&&e.contains(r))n.push(r),r=r.offsetParent;const i=t.offsetTop+n.reduce((e,t)=>e+t.offsetTop,0),s=i+t.offsetHeight,o=e.scrollTop,l=o+e.clientHeight;i<o?e.scrollTop=i:s>l&&(e.scrollTop=s-e.clientHeight)}},"108b":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAOtJREFUOE+tlMsRwjAMRHcL4EglFAA0kTuVkFK4UwThRAV0wI0ixMgjO87HxE6cGR8ytp6kXdlE5Y+VeXBAEdkBOADYA3iR/IhIW5qMZOuBGnw1wJ1kIyIPAKcCaEfy7IGDYJI0oPJyKnVnYmBc4Y3kZVOFpqNCj5rF/kvadcqQ7ILLZkIAFmg3OJoF9MmWkgQN45ZHQV9z3MkB4JmA6l5vygqgaHwETwO9KXEl1rKf01Tn/RzOubykV2o/15SsEcoemy0tj3V6A2hsqfCpazi8el4PEZm0pm2sqvCfCblPWXi+1jo6F1f9xf4BmeWBFcDBESkAAAAASUVORK5CYII="},"10e8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
|
32
32
|
//! moment.js locale configuration
|
|
33
|
-
var t=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},"11bb":function(e,t,n){},"11da":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.columns=void 0;var a=n("e890");t.columns=[{type:"seq",label:(0,a.$l)("序号"),width:"56",fixed:"left",align:"center"},{label:(0,a.$l)("事件流水号"),prop:"eventId",width:200,showOverflowTooltip:!0,align:"center"},{label:(0,a.$l)("
|
|
33
|
+
var t=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},"11bb":function(e,t,n){},"11da":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.columns=void 0;var a=n("e890");t.columns=[{type:"seq",label:(0,a.$l)("序号"),width:"56",fixed:"left",align:"center"},{label:(0,a.$l)("事件流水号"),prop:"eventId",width:200,showOverflowTooltip:!0,align:"center"},{label:(0,a.$l)("单位名称"),prop:"deptName",width:240,showOverflowTooltip:!0,align:"left"},{label:(0,a.$l)("风险等级"),prop:"riskLevelFormat",width:100,showOverflowTooltip:!0,align:"center",render:(e,t)=>{const n=1==t.riskLevel?"danger":2==t.riskLevel?"warning":"info",a={color:`var(--color-${n})`};return e("span",{style:a},[t.riskLevelFormat||"--"])}},{label:(0,a.$l)("命中指标/模型名称"),prop:"imesName",width:180,showOverflowTooltip:!0,align:"center"},{label:(0,a.$l)("风险识别详情"),prop:"itemScoreRemark",width:280,showOverflowTooltip:!0,align:"left"},{label:(0,a.$l)("业务日期"),prop:"busDateFormat",width:120,showOverflowTooltip:!0,align:"center"},{label:(0,a.$l)("事件生成时间"),prop:"lastUpdateTime",width:180,showOverflowTooltip:!0,align:"center"},{label:(0,a.$l)("归属日期"),prop:"eventDateStr",width:120,showOverflowTooltip:!0,align:"center"},{label:(0,a.$l)("风险事件描述"),prop:"description",width:200,showOverflowTooltip:!0,align:"left"},{label:(0,a.$l)("风险事件关键字"),prop:"keyWards",width:150,showOverflowTooltip:!0,align:"center"}]},"12a4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0;t.render=function(){var e=this,t=e._self._c;return t("el-select",e._g(e._b({directives:[{name:"title",rawName:"v-title"}],attrs:{clearable:"",filterable:"",placeholder:e.$l("请选择")},on:{change:e.handleChange},model:{value:e.bankNo,callback:function(t){e.bankNo=t},expression:"bankNo"}},"el-select",e.$attrs,!1),e.$listeners),e._l(e.bankList,(function(n){return t("el-option",{key:n.bankNo,attrs:{label:n.bankName,value:n[e.valueKey]}})})),1)},t.staticRenderFns=[]},1342:function(e,t,n){"use strict";n.r(t);var a=n("6dbc"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=r.a},"13e9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
|
34
34
|
//! moment.js locale configuration
|
|
35
35
|
var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},translate:function(e,n,a,r){var i,s=t.words[a];return 1===a.length?"y"===a&&n?"једна година":r||n?s[0]:s[1]:(i=t.correctGrammaticalCase(e,s),"yy"===a&&n&&"годину"===i?e+" година":e+" "+i)}},n=e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},1409:function(e,t,n){"use strict";e.exports=ReferenceError},"140c":function(e,t,n){"use strict";n.r(t);var a=n("4984"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=r.a},1414:function(e,t,n){"use strict";n.r(t);var a=n("bbcf"),r=n("9fe6");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);var s=n("2877"),o=Object(s["a"])(r["default"],a["render"],a["staticRenderFns"],!1,null,"63715f14",null);t["default"]=o.exports},1435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=c(n("2816")),r=c(n("6439")),i=c(n("9035")),s=n("2d0e"),o=n("7f80"),l=n("d803");function c(e){return e&&e.__esModule?e:{default:e}}t.default={props:{appNo:{type:String,required:!0},filterId:{type:String,required:!0},tabList:{type:Array,required:!0},pageRelaNo:{type:Object,required:!0}},components:{ClPage:s.Page,ClPagination:s.Pagination,ClStatis:s.Statis,ClTablePro:s.TablePro,ClTableProOperateColumn:s.TableProOperateColumn,ClShowColumn:s.ShowColumn,ClSecondaryTab:s.SecondaryTab,ClAdvancedFilter:s.AdvancedFilter,ClDatePickerPor:s.DatePickerPor},mixins:[r.default],data(e){return{name:e.$t("common_t_0001"),showShowColumn:!1,appUrl:l.appUrl,multiple:!0,promptType:1,active:!0,verifyMsg:{checkFlowVoList:[]},defaultProps:{children:"children",label:"label"},pageSizes:[20,50,100],_typeCodesOptions:[],appCodeOptions:[],typeCodesOptions:[],dialogVisible:!1,checkColumns:[],btnDisabled:!1,searchObj:{typeCodes:[]},size:"small",sizeBind:void 0,isShowCard:!1,cardData:[],btnList:[{label:e.$t("common_t_0009"),command:"click",isHas:e=>"resetPassword"!==e.typeCode&&this.$hasG(this.pageRelaNo.eidit)},{label:e.$t("common_t_0002"),command:"cancel",isHas:e=>"resetPassword"!==e.typeCode&&this.$hasG(this.pageRelaNo.cancel)&&("3"==e.state||"2"==e.state)},{label:e.$t("common_t_0003"),command:"del",isHas:e=>"resetPassword"!==e.typeCode&&this.$hasG(this.pageRelaNo.del)&&"1"==e.state}],filterList:[{id:"typeCodes",label:e.$t("common_t_0010"),type:"select",value:"typeCodes",props:{multiple:!0},isDefault:!0,options:[]},{id:"businessId",label:e.$t("common_t_0011"),type:"text",value:"businessId",isDefault:!0},{id:"states",label:e.$t("common_t_0014"),type:"select",value:"states",options:[{label:e.$t("common_t_0006"),value:"1"},{label:e.$t("common_t_0007"),value:"2"},{label:e.$t("common_t_0008"),value:"3"}],isDefault:!0,props:{multiple:!0}},{id:"minAmount",label:e.$t("common_t_0013"),type:"numberrange",startValue:"minAmount",endValue:"maxAmount",isDefault:!0},{id:"dataMember",label:e.$t("common_t_0012"),type:"text",value:"dataMember",isDefault:!0},{id:"applyUserName",label:e.$t("common_t_0015"),type:"text",value:"applyUserName",isDefault:!1},{slotName:"startTime",id:"startTime",label:e.$t("common_t_0016"),type:"daterange",startDate:"startTime",endDate:"endTime",props:{valueFormat:"yyyy-MM-dd HH:mm:ss",defaultTime:["00:00:00","23:59:59"]},isDefault:!1}],pageObj:{pageNo:1,pageSize:50,totalSize:0},tableDate:[],currentAmount:0,totalAmount:0,staticCloumn:[{type:"checkbox",width:"56",align:"center",static:"pre"},{type:"seq",label:e.$t("common_t_0017"),width:"56",align:"center",static:"pre"},{label:e.$t("common_t_0011"),slotName:"businessId",minWidth:"180","show-overflow-tooltip":!0,prop:"businessId",checked:!0,isDefault:!0},{label:e.$t("common_t_0010"),align:"center",minWidth:"120","show-overflow-tooltip":!0,prop:"typeName",isDefault:!0},{label:e.$t("common_t_0012"),align:"left",minWidth:"240","show-overflow-tooltip":!0,prop:"dataMember",isDefault:!0},{label:e.$t("common_t_0018"),minWidth:"113","show-overflow-tooltip":!0,prop:"currencyName",isDefault:!0},{label:e.$t("common_t_0013"),"show-overflow-tooltip":!0,prop:"amount",minWidth:"190",align:"right",sortable:!0,formatter:"formatAmount",isDefault:!0},{label:e.$t("common_t_0014"),minWidth:"100",prop:"state",slotName:"state",isDefault:!0},{label:e.$t("common_t_0019"),prop:"rejmessage",align:"left",minWidth:"180","show-overflow-tooltip":!0,isDefault:!0},{label:e.$t("common_t_0016"),minWidth:"180",prop:"createTime",sortable:!0,isDefault:!0},{label:e.$t("common_t_0020"),minWidth:"180",prop:"updateTime",sortable:!0,isDefault:!0},{label:e.$t("common_t_0015"),minWidth:"120","show-overflow-tooltip":!0,prop:"applyUserName",isDefault:!0},{slotName:"operate",width:"180",static:"next"}],dynamicCloumn:[],selectRows:[],selectAmoubt:0,stateSomeGo:"",isG20:!0,typeTree:[],isFlowWhether:!1,flowOptions:[],reasonSelect:"",reason:""}},computed:{tableCloumn(){return this.checkColumns.length?this.checkColumns:[...this.staticCloumn,...this.dynamicCloumn]},originColumn(){return[...this.staticCloumn,...this.dynamicCloumn]},isSingleSlt(){let e=new Set(this.selectRows.map(e=>e.typeName));return 1===e.size},removeDisabled(){return!this.isSingleSlt||!!this.selectRows.some(e=>1!==e.state)},cancelDisabled(){return!this.isSingleSlt||!!this.selectRows.some(e=>1==e.state)}},watch:{stateSomeGo(){this.$nextTick(()=>{var e;null===(e=this.$refs.tableRef)||void 0===e||e.doLayout()})}},created(){const{id:e}=this.$route.query;e&&(this.$set(this.searchObj,"typeCodes",[e]),this.getDynamicColumn(e,"2"))},activated(){this.name=this.$t("common_t_0001"),this.clearSelection(),this.init()},deactivated(){},mounted(){},methods:{clearSelection(){var e,t,n,a,r,i,s;null===(e=this.$refs.vTable)||void 0===e||e.clearSelection(),null===(t=this.$refs.vTable)||void 0===t||null===(n=t.$refs)||void 0===n||null===(a=n["vxeTable"])||void 0===a||a.clearCheckboxRow(),null===(r=this.$refs.vTable)||void 0===r||null===(i=r.$refs)||void 0===i||null===(s=i["vxeTable"])||void 0===s||s.clearCheckboxReserve(),this.$nextTick(()=>{this.selectRows=[]})},stateF(e){switch(e+""){case"1":return this.$t("common_t_0006");case"2":return this.$t("common_t_0007");case"3":return this.$t("common_t_0008");default:return"-"}},tabClick(e){this.$emit("tabChange",e.path)},setTreeData(e=[]){const t={};e.forEach(e=>{t[e.appCode]||(t[e.appCode]={value:e.appCode,label:e.appName,level:1,_item:e,children:[]}),t[e.appCode].children.push({level:2,_item:e,value:e.typeCode,label:e.typeName})}),this.typeTree=Object.values(t),this.typeTree.unshift({label:"全部审批",value:"",level:1})},setChange(e){var t;const n=e.findIndex(e=>e.isNew&&!e.children);if(-1!==n)return this.$message.warning("新增字段必须包含子级!");let a={approvalType:"2",typeCode:(null===(t=this.searchObj.typeCodes)||void 0===t?void 0:t.join())||null,sortColumn:JSON.stringify(e)};this.saveDynamicColumn(a),this.dialogVisible=!1,this.timer=setTimeout(()=>{var e;this.getDynamicColumn(null===(e=this.searchObj.typeCodes)||void 0===e?void 0:e.join(),"2")},300)},async getAppCode(){const{data:e,code:t}=await this.$axios.post("/bems/activiti/online/list/appnos",null,{loading:!1});200===t&&(this.appCodeOptions=null===e||void 0===e?void 0:e.map(e=>({label:e.appName,value:e.appno})))},async getTypeCodes(){var e,t;null===(e=this.$refs)||void 0===e||null===(t=e["cl-filters"])||void 0===t||t.setOptions("typeCodes",[]);const{data:n,code:a}=await this.$axios.get("/bems/prod_1.0/activiti/temporaryStorage/typeList/1",null,{loading:!1});if(200===a){const e=["CTMS_FM001","CTMS_FM012"];this.typeCodesOptions=this._typeCodesOptions=null===n||void 0===n?void 0:n.map(e=>({label:e.typeName,value:e.typeCode,appCode:e.appCode})).filter(t=>"CTMS"===t.appCode&&"CTMS"===this.appNo?!e.includes(t.value):t.appCode===this.appNo),this.$refs["cl-filters"].setOptions("typeCodes",this.typeCodesOptions)}},init(){this.getTypeCodes(),this.getCloumn(),this.getTableData()},reFresh(){this.pageObj.pageNo=1,this.clearSelection(),this.getTableData()},async clearFn(){this.searchObj={},this.pageObj.pageNo=1,this.checkColumns=[]},async filterFn(){var e;this.pageObj.pageNo=1,this.clearSelection(),await this.getCloumn(),(null===(e=this.searchObj.typeCodes)||void 0===e?void 0:e.length)>0&&this.getDynamicColumn(this.searchObj.typeCodes.join(),"2"),await this.getTableData()},async getCloumn(){var e;if(1===(null===(e=this.searchObj.typeCodes)||void 0===e?void 0:e.length)){let{data:e}=await this.$axios.post("/bems/prod_1.0/activiti/importantInfo/setting/audit/analysis/list",{typeCode:this.searchObj.typeCodes[0]});e||(e=[]),this.dynamicCloumn=e.filter(e=>"单位名称"!=e.name&&"unitName"!=e.name).map(e=>({label:e.name,prop:e.column,minWidth:"120","show-overflow-tooltip":!0})),this.showShowColumn=!0}else this.dynamicCloumn=[],this.checkColumns=[],this.showShowColumn=!1},async getTableData(){let e=[];"CTMS"===this.appNo&&(e=["CTMS_FM002","CTMS_FM003","CTMS_FM004","CTMS_FM005","CTMS_FM007","CTMS_FM008","CTMS_FM009","CTMS_FM010","CTMS_FM011"]);let{data:t}=await this.$axios.post("/bems/prod_1.0/activiti/temporaryStorage/todoTask",{...this.searchObj,...this.pageObj,typeCodes:"CTMS"===this.appNo?this.searchObj.typeCodes.length?this.searchObj.typeCodes:e:this.searchObj.typeCodes,appCode:this.appNo});this.stateSomeGo=this.searchObj.states,this.tableDate=t.list?t.list.map(i.default):[],console.log(this.tableCloumn,"tableCloumn"),this.currentAmount=t.currentAmount,this.totalAmount=t.totalAmount,this.pageObj.totalSize=t.totalSize},selectionChange(e){this.selectRows=e;let t=0;for(var n=0;n<this.selectRows.length;n++)t+=this.selectRows[n].amount;this.selectAmoubt=Number(t.toFixed(6))},async dealFn(e){if("RPLS"===e.appCode&&[this.$t("common_t_0022"),this.$t("common_t_0023")].includes(e.typeName))(0,o.rplsToDeal)(e,this.reFresh);else if(this.appUrl[e.appCode]){let t=(0,o.pendingEventPath)(e,this.appUrl)||this.appUrl[e.appCode]+"/pending/"+e.typeCode;this.$linkPush(t,{orderId:e.businessId,processInstanceId:e.procInstId,typeCode:e.typeCode,state:e.state,title:e.typeName,appNo:e.appCode,...(0,a.default)(e),isTodo:"CFB"===e.appCode?1:void 0})}else this.$message.warning(this.$t("common_t_0024"))},async seeFn(e){if(this.appUrl[e.appCode]){let t=(0,o.pendingEventPath)(e,this.appUrl)||this.appUrl[e.appCode]+"/"+e.typeCode;console.log(t,"pathpath"),["GWMS"].includes(e.appCode)&&(t=t.replace("/pending/","/"));let n="orderId";this.isG20&&!["USER"].includes(e.appCode)&&(n="fmId"),this.$linkPush(t,{[n]:e.businessId,processInstanceId:e.procInstId,typeCode:e.typeCode,state:e.state,title:e.typeName,appNo:e.appCode,parent:this.$t("common_t_0025"),isTodo:"CFB"===e.appCode?0:void 0,habtn:!0,show:!1,...(0,a.default)(e)})}else this.$message.warning(this.$t("common_t_0024"))},async _submitFn(e){let{data:t}=await this.$axios.post("/bems/prod_1.0/activiti/temporaryStorage/tempAdvance",e);if(t.failCount>0){let e=`<div>${this.$t("common_t_0041")}${t.successCount}${this.$t("common_t_0042")}${t.failCount}${this.$t("common_t_0043")}</div><div>${this.$t("common_t_0044")}</div>`,n=t.failList.map(e=>`<div>${e.message}</div>`).join(" ");this.$msgboxPor({message:e+n,dangerouslyUseHTMLString:!0,showConfirmButton:!0,showCancelButton:!1,confirmButtonText:this.$t("common_a_0001")})}else try{this.$message.success(this.$t("common_t_0026")),this.reFresh()}catch(n){console.info("未配置驳回消息提示"),this.reFresh()}},removeFn(e){const t=e.length?e:this.selectRows;if(0===t.length)return void this.$message.warning(this.$t("common_t_0027"));let n=1===new Set(t.map(e=>e.appCode+e.typeCode)).size;n?this.$msgboxPor({title:this.$t("common_t_0029"),message:this.$t("common_t_0030"),type:"warning",customClass:"question",confirmButtonText:this.$t("common_a_0001"),cancelButtonText:this.$t("common_a_0002")}).then(()=>{this.temporarydto=t.map(e=>({businessId:e.businessId,typeCode:e.typeCode,state:6}));let e={temporarydto:this.temporarydto,plainText:"",signText:"",reason:this.reason};this._submitFn(e)}):this.$message.warning(this.$t("common_t_0028"))},cancelFn(e){const t=e.length?e:this.selectRows;if(0===t.length)return void this.$message.warning(this.$t("common_t_0027"));let n=1===new Set(t.map(e=>e.appCode+e.typeCode)).size;n?this.$msgboxPor({title:this.$t("common_t_0031"),message:this.$t("common_t_0032"),type:"warning",customClass:"question",confirmButtonText:this.$t("common_a_0001"),cancelButtonText:this.$t("common_a_0002")}).then(()=>{this.temporarydto=t.map(e=>({businessId:e.businessId,typeCode:e.typeCode,state:4}));let e={temporarydto:this.temporarydto,plainText:"",signText:"",reason:this.reason};this._submitFn(e)}):this.$message.warning(this.$t("common_t_0028"))}}}},"14ce":function(e,t,n){"use strict";n.r(t);var a=n("d688"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=r.a},"14d4":function(e,t,n){},1529:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getLanguage=v;var a=_(n("8bbf")),r=_(n("a925")),i=_(n("852e")),s=_(n("b2d6")),o=_(n("f0d9")),l=_(n("3ed6")),c=_(n("c3ff")),u=_(n("c87b")),d=_(n("f334")),f=_(n("0d97")),h=_(n("06c5")),p=_(n("09a0")),m=_(n("292c"));function _(e){return e&&e.__esModule?e:{default:e}}a.default.use(r.default);const g={en:{...d.default,...s.default},zh:{...f.default,...o.default},zht:{...m.default,...u.default},es:{...h.default,...l.default},ja:{...p.default,...c.default}};function v(){let e=window.localStorage.getItem("pageLang");e&&"zh-hk"==e&&i.default.set("language","zht");const t=i.default.get("language");if(t)return t;const n=(navigator.language||navigator.browserLanguage).toLowerCase(),a=Object.keys(g);for(const r of a)if(n.indexOf(r)>-1)return r;return"zh"}const b=new r.default({locale:v(),messages:g});t.default=b},"15f3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0;t.render=function(){var e=this,t=e._self._c;return t("cl-page",{staticStyle:{height:"100%"}},[t("template",{slot:"header"},[t("div",{staticClass:"flex-box flex-lr flex-v"},[t("div",{staticClass:"flex-box flex-v"},[t("cl-secondary-tab",{attrs:{init:e.name,data:e.tabList},on:{"update:init":function(t){e.name=t},click:e.tabClick}})],1),t("div",[t("el-button",{attrs:{icon:"n20-icon-shuaxin",plain:"",onlyicon:"",size:"mini"},on:{click:e.filterFn}}),t("el-button",{staticClass:"m-l-s",attrs:{icon:"n20-icon-iconfontshaixuan ",plain:"",onlyicon:"",size:"mini"},on:{click:function(t){e.multiple=!e.multiple}}}),t("el-button",{directives:[{name:"hasG",rawName:"v-hasG",value:e.pageRelaNo.cancel,expression:"pageRelaNo.cancel"}],staticClass:"m-l-s",attrs:{plain:"",size:"mini",disabled:e.cancelDisabled},on:{click:e.cancelFn}},[e._v(e._s(e.$t("common_t_0002")))]),t("el-button",{directives:[{name:"hasG",rawName:"v-hasG",value:e.pageRelaNo.del,expression:"pageRelaNo.del"}],staticClass:"m-l-s",attrs:{plain:"",size:"mini",disabled:e.removeDisabled},on:{click:e.removeFn}},[e._v(e._s(e.$t("common_t_0003")))]),e.showShowColumn?t("el-button",{staticClass:"m-l-s",attrs:{plain:"",size:"mini"},on:{click:function(t){e.dialogVisible=!0}}},[e._v(e._s(e.$t("common_t_0004")))]):e._e(),t("cl-show-column",{ref:"showColumn",attrs:{"dialog-visible":e.dialogVisible,"check-columns":e.checkColumns,columns:e.originColumn,"label-key":"label"},on:{"update:dialogVisible":function(t){e.dialogVisible=t},"update:dialog-visible":function(t){e.dialogVisible=t},setColumns:e.setChange}})],1)]),t("div",{staticClass:"flex-box flex-lr flex-v"},[t("cl-advanced-filter",{ref:"cl-filters",attrs:{visible:e.multiple,filterId:e.filterId,onlyKey:"id",model:e.searchObj,"filter-list":e.filterList},on:{"update:visible":function(t){e.multiple=t},clear:e.clearFn,search:e.filterFn,enter:e.filterFn}},[t("cl-date-picker-por",{attrs:{slot:"startTime","start-date":e.searchObj.startTime,"end-date":e.searchObj.endTime,type:"daterange","value-format":"yyyy-MM-dd HH:mm:ss",defaultTime:["00:00:00","23:59:59"]},on:{"update:startDate":function(t){return e.$set(e.searchObj,"startTime",t)},"update:start-date":function(t){return e.$set(e.searchObj,"startTime",t)},"update:endDate":function(t){return e.$set(e.searchObj,"endTime",t)},"update:end-date":function(t){return e.$set(e.searchObj,"endTime",t)}},slot:"startTime"})],1)],1)]),t("div",{staticClass:"table-wrap",staticStyle:{height:"100%"}},[t("div",{staticClass:"table-content"},[t("cl-table-pro",{ref:"vTable",attrs:{"sort-config":{remote:!1,sortMethod:e.sortMethod},height:"100%",data:e.tableDate,clearSelect:!1,columns:e.tableCloumn,"header-align":"center","row-config":{useRowKey:"businessId",keyField:"businessId"},"checkbox-config":{reserve:!0}},on:{"selection-change-method":e.selectionChange},scopedSlots:e._u([{key:"businessId",fn:function({column:n}){return t("vxe-column",e._b({attrs:{"class-name":n.wrap&&"vxe-table-custom-wrap",field:n.prop,title:n.label},scopedSlots:e._u([{key:"default",fn:function({row:n}){return t("el-link",{staticClass:"text-ellipsis",staticStyle:{display:"block"},attrs:{underline:!1,type:"primary"},on:{click:function(t){return e.seeFn(n)}}},[e._v(e._s(n.businessId))])}}])},"vxe-column",n,!1))}},{key:"state",fn:function({column:n}){return t("vxe-column",e._b({attrs:{"class-name":n.wrap&&"vxe-table-custom-wrap",field:n.prop,title:n.label},scopedSlots:e._u([{key:"default",fn:function({row:n}){return t("span",{},[e._v(e._s(e.stateF(n.state)))])}}])},"vxe-column",n,!1))}},{key:"suggestion",fn:function({column:n}){return"3"==e.stateSomeGo?t("vxe-column",e._b({attrs:{"class-name":n.wrap&&"vxe-table-custom-wrap",field:n.prop,title:n.label},scopedSlots:e._u([{key:"default",fn:function({row:n}){return t("span",{},[e._v(e._s(n.suggestion))])}}],null,!1,2502489636)},"vxe-column",n,!1)):e._e()}}],null,!0)},[t("cl-table-pro-operate-column",{attrs:{slot:"operate","btn-list":e.btnList,label:e.$t("common_t_0005"),width:"180",fixed:"right",align:"center"},on:{click:t=>e.dealFn(t),del:t=>e.removeFn([t]),cancel:t=>e.cancelFn([t])},slot:"operate"})],1)],1)]),t("div",{staticClass:"flex-box flex-v m-t-s",attrs:{slot:"footer"},slot:"footer"},[t("cl-statis",{attrs:{"page-sum":e.selectRows.length,"total-sun":e.pageObj.totalSize}}),t("cl-pagination",{staticClass:"m-l-auto",attrs:{"page-sizes":e.pageSizes,"page-obj":e.pageObj,"page-key":{no:"pageNo",size:"pageSize",total:"totalSize"}},on:{change:e.getTableData}})],1)],2)},t.staticRenderFns=[]},"167b":function(e,t,n){},"167bb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
|
36
36
|
//! moment.js locale configuration
|
package/package.json
CHANGED
|
@@ -15,13 +15,6 @@ export const columns = [
|
|
|
15
15
|
showOverflowTooltip: true,
|
|
16
16
|
align: 'center'
|
|
17
17
|
},
|
|
18
|
-
{
|
|
19
|
-
label: $l('归属单位'),
|
|
20
|
-
prop: 'belongUnitName',
|
|
21
|
-
width: 240,
|
|
22
|
-
showOverflowTooltip: true,
|
|
23
|
-
align: 'left'
|
|
24
|
-
},
|
|
25
18
|
{
|
|
26
19
|
label: $l('单位名称'),
|
|
27
20
|
prop: 'deptName',
|