UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines 32.1 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/assets/mixins/gold-visible.js"),require("@xysfe/actui/es/assets/common/scroll.js"),require("@xysfe/actui/es/CascadePicker/index.js"),require("@xysfe/actui/es/assets/utils/encrypt.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/assets/utils/helpers.js","@xysfe/actui/es/assets/mixins/gold-visible.js","@xysfe/actui/es/assets/common/scroll.js","@xysfe/actui/es/CascadePicker/index.js","@xysfe/actui/es/assets/utils/encrypt.js"],e):"object"==typeof exports?exports.GoldCost=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/assets/mixins/gold-visible.js"),require("@xysfe/actui/es/assets/common/scroll.js"),require("@xysfe/actui/es/CascadePicker/index.js"),require("@xysfe/actui/es/assets/utils/encrypt.js")):t.GoldCost=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/assets/utils/helpers.js"],t["@xysfe/actui/es/assets/mixins/gold-visible.js"],t["@xysfe/actui/es/assets/common/scroll.js"],t["@xysfe/actui/es/CascadePicker/index.js"],t["@xysfe/actui/es/assets/utils/encrypt.js"])}("undefined"!=typeof self?self:this,function(t,e,n,r,o,s){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=1457)}({0:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},1:function(t,e,n){var r=n(32)("wks"),o=n(26),s=n(0).Symbol,i="function"==typeof s;(t.exports=function(t){return r[t]||(r[t]=i&&s[t]||(i?s:o)("Symbol."+t))}).store=r},10:function(t,e,n){var r=n(4),o=n(41),s=n(39),i=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=s(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},100:function(t,e,n){var r=n(0),o=n(65).set,s=r.MutationObserver||r.WebKitMutationObserver,i=r.process,c=r.Promise,a="process"==n(14)(i);t.exports=function(){var t,e,n,u=function(){var r,o;for(a&&(r=i.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(a)n=function(){i.nextTick(u)};else if(!s||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var l=c.resolve(void 0);n=function(){l.then(u)}}else n=function(){o.call(r,u)};else{var f=!0,p=document.createTextNode("");new s(u).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},101:function(t,e,n){var r=n(0),o=r.navigator;t.exports=o&&o.userAgent||""},102:function(t,e,n){"use strict";var r=n(9),o=n(2),s=n(0),i=n(64),c=n(67);r(r.P+r.R,"Promise",{finally:function(t){var e=i(this,o.Promise||s.Promise),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then(function(){return n})}:t,n?function(n){return c(e,t()).then(function(){throw n})}:t)}})},103:function(t,e,n){"use strict";var r=n(9),o=n(44),s=n(66);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=s(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},104:function(t,e,n){"use strict";e.__esModule=!0;var r=n(71),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},1068:function(t,e,n){"use strict";var r=n(140),o=n.n(r),s=n(114),i=n.n(s),c=n(104),a=n.n(c),u=n(72),l=n.n(u),f=n(107),p=n.n(f),h=n(937),d=n(792),v=n.n(d),y=n(829),b=(n.n(y),n(40));n.n(b);e.a={name:"ActGoldCost",mixins:[p.a],data:function(){return{pickerType:0,costCount:0,title:"",subTitle:"",tableData:null,fakerTableData:null,costInsured:0,costTableId:0}},props:{costTables:{type:Array,default:function(){return[]}},applicant:{type:Object,default:function(){return{}}},insureds:{type:Array,default:function(){return[]}},paramExt:{type:Object,default:function(){return{}}},brandColor:{type:String,default:""},btnColor:{type:String,default:""}},components:{ActCascadePicker:v.a,ActCostTable:h.a},methods:{calculate:function(){var t=this;this.$nextTick(function(){t.genTableList()})},showPicker:function(){1===this.pickerType||2===this.pickerType?this.$refs.singlePicker.show():this.$refs.multiPicker.show()},select:function(t,e,n){if(1===t.length){if(1===this.pickerType&&t[0]===this.costInsured)return;if(2===this.pickerType&&t[0]===this.costTableId)return;1===this.pickerType&&(this.costInsured=t[0]),2===this.pickerType&&(this.costTableId=t[0])}else if(2===t.length){if(t[0]===this.costTableId&&t[1]===this.costInsured)return;this.costTableId=t[0],this.costInsured=t[1]}this.getCost()},genTableList:function(){if(this.costTables&&this.costTables.length){var t=[],e=0,n=[];this.setCostTableIdType();var r=this.isAllCalcType();if(0===this.costTableId&&(this.costTableId=this.costTables[0].id),1===this.costTables.length){if(this.pickerType=1,this.costTableId!==this.costTables[0].id&&(this.costTableId=this.costTables[0].id),1===Number(this.costTables[0].calc_type))t.push({value:0,text:"全部被保险人"}),e++;else for(var o=0,s=this.insureds.length;o<s;o++)t.push({value:o,text:"被保险人"+(o+1)}),e++;this.costInsured>0&&this.costInsured>=this.insureds.length?(this.costInsured=0,n=[0]):n=[this.costInsured],this.$refs.singlePicker.setData(t,n)}else if(1===this.insureds.length||r){this.pickerType=2,this.costInsured>0&&(this.costInsured=0);for(var i=0,c=this.costTables.length;i<c;i++)t.push({value:this.costTables[i].id,text:this.costTables[i].name}),e++;n=[0];for(var a=0,u=t.length;a<u;a++)if(t[a].value===this.costTableId){n=[a];break}this.$refs.singlePicker.setData(t,n)}else if(this.costTables.length>1&&this.insureds.length>1){this.pickerType=3;var l=void 0;n[0]=0;for(var f=0,p=this.costTables.length;f<p;f++){if(this.costTables[f].id===this.costTableId&&(n[0]=f),l={value:this.costTables[f].id,text:this.costTables[f].name,children:[]},"1"===this.costTables[f].calc_type)l.children.push({value:0,text:"全部被保险人"}),e++;else for(var h=0,d=this.insureds.length;h<d;h++)l.children.push({value:h,text:"被保险人"+(h+1)}),e++;t.push(l)}this.costInsured>0&&this.costInsured>=this.insureds.length?(this.updateState({key:"costInsured",value:0}),n[1]=0):n[1]=this.costInsured,this.$refs.multiPicker.setData(t,n)}this.costCount=e,this.getCost()}},getCost:function(){var t=this;new l.a(function(e,n){var r=void 0,o=a()({},t.paramExt),s={genes:o};if(t.applicant&&(o.applicant=t.applicant),t.insureds.length<=t.costInsured)return n({errmsg:"表格不存在"});if(1===t.costTablesCalcType[t.costTableId])r="/buy/getCostTableComplex",o.tableId=t.costTableId,o.insureds=t.insureds;else{r="/buy/getCostTable",s.tableId=t.costTableId;var c=t.insureds[t.costInsured];o.plan=c.plan,o.insured=c.insured}var u=Object(y.md5)(i()(s));t.costTableCache=t.costTableCache||{},t.costTableCache[u]?e(t.costTableCache[u]):t.$fetch(r,s).then(function(n){t.costTableCache[u]=n,e(n)})}).then(function(e){0===e.ret&&e.data?t.genTableData(e.data):t.genTableData(null)}).catch(function(e){t.genTableData(null)})},setCostTableIdType:function(){for(var t={},e=0,n=this.costTables.length;e<n;e++){t[this.costTables[e].id]=~~this.costTables[e].calc_type}this.costTablesCalcType=t},isAllCalcType:function(){for(var t=0,e=this.costTables.length;t<e;t++){if(1!==~~this.costTables[t].calc_type)return!1}return!0},genTableData:function(t){if(!t)return this.title="",this.subTitle="",this.tableData=null,void(this.fakerTableData=null);for(var e=[],n=[],r=void 0,s=void 0,i=void 0,c=void 0,a=this.costTables,u=Array.isArray(a),l=0,a=u?a:o()(a);;){var f;if(u){if(l>=a.length)break;f=a[l++]}else{if(l=a.next(),l.done)break;f=l.value}var p=f;if(p.id===this.costTableId){c=p.type;break}}for(var h=0,d=t.rows.length;h<d;h++){s=t.rows[h],i=(1===c||2===c)&&+s[3]>+s[2],r=[];for(var v=0,y=t.cols.length;v<y;v++)r.push({value:v===t.cols.length-1?parseFloat(Math.round(100*s[v])/100).toFixed(2):s[v]||0,type:!i||1!==c&&2!==c||3!==v?0:1});e.push(r),h<5||(h+1)%10==0||h===d-1?n.push(r):(1===c||2===c)&&i&&+t.rows[h-1][3]<=+t.rows[h-1][2]?n.push(r):(1===c||2===c)&&i&&+t.rows[h+1][3]<=+t.rows[h+1][2]&&n.push(r)}this.title=t.name,this.subTitle=t.planText;var g=function(e,n){if(!Object(b.isArray)(e))return[];e=Object(b.deepCopy)(e);var r=t.display||[],o={head:function(){return e.filter(function(t,e){return"1"===String(r[e])})||[]},rows:function(){return e.map(function(t){return t&&t.filter(function(t,e){return"1"===String(r[e])})||[]})||[]}};return o[n]?o[n]():[]};this.tableData={head:g(t.cols,"head"),rows:g(e,"rows")},this.fakerTableData={head:g(t.cols,"head"),rows:g(n,"rows")}}}}},107:function(t,e){t.exports=n},11:function(t,e){t.exports={}},114:function(t,e,n){t.exports={default:n(125),__esModule:!0}},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},125:function(t,e,n){var r=n(2),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},127:function(t,e){t.exports=r},13:function(t,e,n){var r=n(34),o=n(15);t.exports=function(t){return r(o(t))}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},140:function(t,e,n){t.exports={default:n(142),__esModule:!0}},142:function(t,e,n){n(52),n(48),t.exports=n(143)},143:function(t,e,n){var r=n(4),o=n(57);t.exports=n(2).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},1457:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(28),o=n.n(r),s=n(1458);s.a.install=function(t){t.component(s.a.name,s.a),t.prototype.$createGoldCost=o()(s.a,t)},e.default=s.a},1458:function(t,e,n){"use strict";function r(t){c||n(1459)}var o=n(1068),s=n(1460),i=n(7),c=!1,a=r,u=Object(i.a)(o.a,s.a,s.b,!1,a,"data-v-1ce1129b",null);u.options.__file="src\\components\\GoldCost\\src\\index.vue",e.a=u.exports},1459:function(t,e){},1460:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("act-panel",{attrs:{visible:!!t.costTables&&!!t.costTables.length&&t.isVisible}},[n("template",{slot:"title"},[n("h3",[t._v("\n 价值演示\n ")]),t._v(" "),t.costCount>1?n("div",{staticClass:"act-cost-more",on:{click:function(e){return e.stopPropagation(),t.showPicker.apply(null,arguments)}}},[n("span",[t._v("查看更多")]),t._v(" "),n("span",{staticClass:"act-cost-more-arrow"})]):t._e()]),t._v(" "),n("div",{staticClass:"act-cost-box"},[t.title?n("div",{staticClass:"act-cost-tit"},[t._v("\n "+t._s(t.title)+"\n ")]):t._e(),t._v(" "),t.subTitle?n("div",{staticClass:"act-cost-sub-tit"},[t._v("\n "+t._s(t.subTitle)+"\n ")]):t._e(),t._v(" "),n("act-cost-table",{attrs:{tableData:t.tableData,fakerTableData:t.fakerTableData,brandColor:t.brandColor}})],1),t._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("act-cascade-picker",{ref:"singlePicker",attrs:{title:"",confirmColor:t.brandColor},on:{select:t.select}}),t._v(" "),n("act-cascade-picker",{ref:"multiPicker",attrs:{title:"",confirmColor:t.brandColor},on:{select:t.select}})],1)],2)},o=[];r._withStripped=!0},15:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},16:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},17:function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},18:function(t,e){t.exports=!0},19:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e,n){var r=n(32)("keys"),o=n(26);t.exports=function(t){return r[t]||(r[t]=o(t))}},22:function(t,e,n){var r=n(6),o=n(0).document,s=r(o)&&r(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},25:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},26:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},28:function(e,n){e.exports=t},29:function(t,e,n){var r=n(10).f,o=n(8),s=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,s)&&r(t,s,{configurable:!0,value:e})}},3:function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(t,e,n){var r=n(42),o=n(33);t.exports=Object.keys||function(t){return r(t,o)}},31:function(t,e,n){var r=n(15);t.exports=function(t){return Object(r(t))}},32:function(t,e,n){var r=n(2),o=n(0),s=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},34:function(t,e,n){var r=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},35:function(t,e,n){var r=n(16),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},37:function(t,e,n){"use strict";var r=n(18),o=n(9),s=n(55),i=n(5),c=n(11),a=n(60),u=n(29),l=n(62),f=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,d,v,y,b){a(n,e,d);var g,_,x,m=function(t){if(!p&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},T=e+" Iterator",j="values"==v,w=!1,C=t.prototype,k=C[f]||C["@@iterator"]||v&&C[v],S=k||m(v),O=v?j?m("entries"):S:void 0,P="Array"==e?C.entries||k:k;if(P&&(x=l(P.call(new t)))!==Object.prototype&&x.next&&(u(x,T,!0),r||"function"==typeof x[f]||i(x,f,h)),j&&k&&"values"!==k.name&&(w=!0,S=function(){return k.call(this)}),r&&!b||!p&&!w&&C[f]||i(C,f,S),c[e]=S,c[T]=h,v)if(g={values:j?S:m("values"),keys:y?S:m("keys"),entries:O},b)for(_ in g)_ in C||s(C,_,g[_]);else o(o.P+o.F*(p||w),e,g);return g}},39:function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},4:function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},40:function(t,n){t.exports=e},41:function(t,e,n){t.exports=!n(3)&&!n(12)(function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a})},42:function(t,e,n){var r=n(8),o=n(13),s=n(46)(!1),i=n(20)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,u=[];for(n in c)n!=i&&r(c,n)&&u.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~s(u,n)||u.push(n));return u}},43:function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},44:function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=o(e),this.reject=o(n)}var o=n(19);t.exports.f=function(t){return new r(t)}},45:function(t,e,n){var r=n(14),o=n(1)("toStringTag"),s="Arguments"==r(function(){return arguments}()),i=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=i(e=Object(t),o))?n:s?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},46:function(t,e,n){var r=n(13),o=n(35),s=n(47);t.exports=function(t){return function(e,n,i){var c,a=r(e),u=o(a.length),l=s(i,u);if(t&&n!=n){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}}},47:function(t,e,n){var r=n(16),o=Math.max,s=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):s(t,e)}},48:function(t,e,n){"use strict";var r=n(59)(!0);n(37)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},5:function(t,e,n){var r=n(10),o=n(25);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},51:function(t,e){e.f={}.propertyIsEnumerable},52:function(t,e,n){n(68);for(var r=n(0),o=n(5),s=n(11),i=n(1)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<c.length;a++){var u=c[a],l=r[u],f=l&&l.prototype;f&&!f[i]&&o(f,i,u),s[u]=s.Array}},53:function(t,e,n){var r=n(4),o=n(61),s=n(33),i=n(20)("IE_PROTO"),c=function(){},a=function(){var t,e=n(22)("iframe"),r=s.length;for(e.style.display="none",n(43).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[s[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[i]=t):n=a(),void 0===e?n:o(n,e)}},55:function(t,e,n){t.exports=n(5)},57:function(t,e,n){var r=n(45),o=n(1)("iterator"),s=n(11);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||s[r(t)]}},58:function(t,e){e.f=Object.getOwnPropertySymbols},59:function(t,e,n){var r=n(16),o=n(15);t.exports=function(t){return function(e,n){var s,i,c=String(o(e)),a=r(n),u=c.length;return a<0||a>=u?t?"":void 0:(s=c.charCodeAt(a),s<55296||s>56319||a+1===u||(i=c.charCodeAt(a+1))<56320||i>57343?t?c.charAt(a):s:t?c.slice(a,a+2):i-56320+(s-55296<<10)+65536)}}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,e,n){"use strict";var r=n(53),o=n(25),s=n(29),i={};n(5)(i,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),s(t,e+" Iterator")}},61:function(t,e,n){var r=n(10),o=n(4),s=n(30);t.exports=n(3)?Object.defineProperties:function(t,e){o(t);for(var n,i=s(e),c=i.length,a=0;c>a;)r.f(t,n=i[a++],e[n]);return t}},62:function(t,e,n){var r=n(8),o=n(31),s=n(20)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},63:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},64:function(t,e,n){var r=n(4),o=n(19),s=n(1)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||void 0==(n=r(i)[s])?e:o(n)}},65:function(t,e,n){var r,o,s,i=n(17),c=n(99),a=n(43),u=n(22),l=n(0),f=l.process,p=l.setImmediate,h=l.clearImmediate,d=l.MessageChannel,v=l.Dispatch,y=0,b={},g=function(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},_=function(t){g.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++y]=function(){c("function"==typeof t?t:Function(t),e)},r(y),y},h=function(t){delete b[t]},"process"==n(14)(f)?r=function(t){f.nextTick(i(g,t,1))}:v&&v.now?r=function(t){v.now(i(g,t,1))}:d?(o=new d,s=o.port2,o.port1.onmessage=_,r=i(s.postMessage,s,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",_,!1)):r="onreadystatechange"in u("script")?function(t){a.appendChild(u("script")).onreadystatechange=function(){a.removeChild(this),g.call(t)}}:function(t){setTimeout(i(g,t,1),0)}),t.exports={set:p,clear:h}},66:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},67:function(t,e,n){var r=n(4),o=n(6),s=n(44);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=s.f(t);return(0,n.resolve)(e),n.promise}},68:function(t,e,n){"use strict";var r=n(69),o=n(63),s=n(11),i=n(13);t.exports=n(37)(Array,"Array",function(t,e){this._t=i(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),s.Arguments=s.Array,r("keys"),r("values"),r("entries")},69:function(t,e){t.exports=function(){}},7:function(t,e,n){"use strict";function r(t,e,n,r,o,s,i,c){t=t||{};var a=typeof t.default;"object"!==a&&"function"!==a||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),s&&(u._scopeId=s);var l;if(i?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=l):o&&(l=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var f=u.render;u.render=function(t,e){return l.call(e),f(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:u}}e.a=r},71:function(t,e,n){t.exports={default:n(79),__esModule:!0}},72:function(t,e,n){t.exports={default:n(97),__esModule:!0}},78:function(t,e){},79:function(t,e,n){n(80),t.exports=n(2).Object.assign},792:function(t,e){t.exports=o},8:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},80:function(t,e,n){var r=n(9);r(r.S+r.F,"Object",{assign:n(81)})},81:function(t,e,n){"use strict";var r=n(3),o=n(30),s=n(58),i=n(51),c=n(31),a=n(34),u=Object.assign;t.exports=!u||n(12)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=c(t),u=arguments.length,l=1,f=s.f,p=i.f;u>l;)for(var h,d=a(arguments[l++]),v=f?o(d).concat(f(d)):o(d),y=v.length,b=0;y>b;)h=v[b++],r&&!p.call(d,h)||(n[h]=d[h]);return n}:u},829:function(t,e){t.exports=s},85:function(t,e,n){var r=n(17),o=n(86),s=n(87),i=n(4),c=n(35),a=n(57),u={},l={},e=t.exports=function(t,e,n,f,p){var h,d,v,y,b=p?function(){return t}:a(t),g=r(n,f,e?2:1),_=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(s(b)){for(h=c(t.length);h>_;_++)if((y=e?g(i(d=t[_])[0],d[1]):g(t[_]))===u||y===l)return y}else for(v=b.call(t);!(d=v.next()).done;)if((y=o(v,g,d.value,e))===u||y===l)return y};e.BREAK=u,e.RETURN=l},86:function(t,e,n){var r=n(4);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var s=t.return;throw void 0!==s&&r(s.call(t)),e}}},868:function(t,e,n){"use strict";var r=n(127),o=n.n(r);e.a={name:"ActCostTable",data:function(){return{moreToggle:!1}},components:{ActScroll:o.a},props:{tableData:{type:Object,default:function(){return null}},fakerTableData:{type:Object,default:function(){return null}},togglable:{type:Boolean,default:!0},scrollable:{type:Boolean,default:!1},brandColor:{type:String,default:""}},computed:{renderData:function(){return this.togglable?this.moreToggle?this.tableData:this.fakerTableData:this.tableData},showToggle:function(){return!!this.togglable&&(this.renderData&&this.renderData.rows&&this.renderData.rows.length&&this.fakerTableData.rows.length<this.tableData.rows.length)}},methods:{toggleMore:function(){this.moreToggle=!this.moreToggle},scrollSuc:function(t){this.scroll=t},refreshScroll:function(){var t=this;this.$nextTick(function(){t.scroll&&t.scroll.refresh()})}},watch:{tableData:function(t){t&&this.refreshScroll()}}}},87:function(t,e,n){var r=n(11),o=n(1)("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||s[o]===t)}},88:function(t,e,n){var r=n(1)("iterator"),o=!1;try{var s=[7][r]();s.return=function(){o=!0},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var s=[7],i=s[r]();i.next=function(){return{done:n=!0}},s[r]=function(){return i},t(s)}catch(t){}return n}},9:function(t,e,n){var r=n(0),o=n(2),s=n(17),i=n(5),c=n(8),a=function(t,e,n){var u,l,f,p=t&a.F,h=t&a.G,d=t&a.S,v=t&a.P,y=t&a.B,b=t&a.W,g=h?o:o[e]||(o[e]={}),_=g.prototype,x=h?r:d?r[e]:(r[e]||{}).prototype;h&&(n=e);for(u in n)(l=!p&&x&&void 0!==x[u])&&c(g,u)||(f=l?x[u]:n[u],g[u]=h&&"function"!=typeof x[u]?n[u]:y&&l?s(f,r):b&&x[u]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?s(Function.call,f):f,v&&((g.virtual||(g.virtual={}))[u]=f,t&a.R&&_&&!_[u]&&i(_,u,f)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},91:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},92:function(t,e,n){var r=n(5);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},93:function(t,e,n){"use strict";var r=n(0),o=n(2),s=n(10),i=n(3),c=n(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];i&&e&&!e[c]&&s.f(e,c,{configurable:!0,get:function(){return this}})}},937:function(t,e,n){"use strict";function r(t){c||n(938)}var o=n(868),s=n(939),i=n(7),c=!1,a=r,u=Object(i.a)(o.a,s.a,s.b,!1,a,"data-v-530770d2",null);u.options.__file="src\\components\\GoldCost\\src\\table.vue",e.a=u.exports},938:function(t,e){},939:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"act-cost-table"},[t.renderData&&t.renderData.rows&&t.renderData.rows.length>0?[t.scrollable?n("act-scroll",{ref:t.scroll,staticClass:"act-cost-table-scrollable",attrs:{listenScrollInit:!0},on:{scrollSuc:t.scrollSuc}},[n("table",{staticClass:"act-cost-table-body"},[n("thead",[n("tr",t._l(t.renderData.head,function(e,r){return n("td",{key:"head-"+r,style:{"background-color":t.brandColor||"#8c7fee"}},[t._v("\n "+t._s(e)+"\n ")])}),0)]),t._v(" "),n("tbody",t._l(t.renderData.rows,function(e,r){return n("tr",{key:"tr-"+r},t._l(e,function(e,o){return n("td",{key:"td-"+r+"-"+o,class:{sw:e.type}},[t._v("\n "+t._s(e.value)+"\n ")])}),0)}),0)])]):n("table",{staticClass:"act-cost-table-body"},[n("thead",[n("tr",t._l(t.renderData.head,function(e,r){return n("td",{key:"head-"+r,style:{"background-color":t.brandColor||"#8c7fee"}},[t._v("\n "+t._s(e)+"\n ")])}),0)]),t._v(" "),n("tbody",t._l(t.renderData.rows,function(e,r){return n("tr",{key:"tr-"+r},t._l(e,function(e,o){return n("td",{key:"td-"+r+"-"+o,class:{sw:e.type}},[t._v("\n "+t._s(e.value)+"\n ")])}),0)}),0)])]:n("div",{staticClass:"act-cost-empty",class:{"act-cost-table-scrollable-empty":t.scrollable}},[t._v("\n 暂无相关数据\n ")]),t._v(" "),t.showToggle?n("a",{staticClass:"act-cost-toggle",class:{"act-cost-toggle-hide":t.moreToggle},style:{color:t.brandColor},attrs:{href:"javascript:;"},on:{click:function(e){return e.stopPropagation(),t.toggleMore.apply(null,arguments)}}},[t._v(t._s(t.moreToggle?"收起":"查看全部")),n("span",{style:{"border-color":t.brandColor}})]):t._e()],2)},o=[];r._withStripped=!0},97:function(t,e,n){n(78),n(48),n(52),n(98),n(102),n(103),t.exports=n(2).Promise},98:function(t,e,n){"use strict";var r,o,s,i,c=n(18),a=n(0),u=n(17),l=n(45),f=n(9),p=n(6),h=n(19),d=n(91),v=n(85),y=n(64),b=n(65).set,g=n(100)(),_=n(44),x=n(66),m=n(101),T=n(67),j=a.TypeError,w=a.process,C=w&&w.versions,k=C&&C.v8||"",S=a.Promise,O="process"==l(w),P=function(){},I=o=_.f,D=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(P,P)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==k.indexOf("6.6")&&-1===m.indexOf("Chrome/66")}catch(t){}}(),M=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},E=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,s=0;n.length>s;)!function(e){var n,s,i,c=o?e.ok:e.fail,a=e.resolve,u=e.reject,l=e.domain;try{c?(o||(2==t._h&&R(t),t._h=1),!0===c?n=r:(l&&l.enter(),n=c(r),l&&(l.exit(),i=!0)),n===e.promise?u(j("Promise-chain cycle")):(s=M(n))?s.call(n,a,u):a(n)):u(r)}catch(t){l&&!i&&l.exit(),u(t)}}(n[s++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){b.call(a,function(){var e,n,r,o=t._v,s=L(t);if(s&&(e=x(function(){O?w.emit("unhandledRejection",o,t):(n=a.onunhandledrejection)?n({promise:t,reason:o}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=O||L(t)?2:1),t._a=void 0,s&&e.e)throw e.v})},L=function(t){return 1!==t._h&&0===(t._a||t._c).length},R=function(t){b.call(a,function(){var e;O?w.emit("rejectionHandled",t):(e=a.onrejectionhandled)&&e({promise:t,reason:t._v})})},F=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),E(e,!0))},$=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw j("Promise can't be resolved itself");(e=M(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,u($,r,1),u(F,r,1))}catch(t){F.call(r,t)}}):(n._v=t,n._s=1,E(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};D||(S=function(t){d(this,S,"Promise","_h"),h(t),r.call(this);try{t(u($,this,1),u(F,this,1))}catch(t){F.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(92)(S.prototype,{then:function(t,e){var n=I(y(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?w.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&E(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),s=function(){var t=new r;this.promise=t,this.resolve=u($,t,1),this.reject=u(F,t,1)},_.f=I=function(t){return t===S||t===i?new s(t):o(t)}),f(f.G+f.W+f.F*!D,{Promise:S}),n(29)(S,"Promise"),n(93)("Promise"),i=n(2).Promise,f(f.S+f.F*!D,"Promise",{reject:function(t){var e=I(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(c||!D),"Promise",{resolve:function(t){return T(c&&this===i?S:this,t)}}),f(f.S+f.F*!(D&&n(88)(function(t){S.all(t).catch(P)})),"Promise",{all:function(t){var e=this,n=I(e),r=n.resolve,o=n.reject,s=x(function(){var n=[],s=0,i=1;v(t,!1,function(t){var c=s++,a=!1;n.push(void 0),i++,e.resolve(t).then(function(t){a||(a=!0,n[c]=t,--i||r(n))},o)}),--i||r(n)});return s.e&&o(s.v),n.promise},race:function(t){var e=this,n=I(e),r=n.reject,o=x(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},99:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}}})});