UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines 36.8 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/BScroll/index.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/BScroll/index.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/BScroll/index.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/BScroll/index.js"],t["@xysfe/actui/es/CascadePicker/index.js"],t["@xysfe/actui/es/assets/utils/encrypt.js"])}("undefined"!=typeof self?self:this,function(t,e,r,n,o,s,i){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=1476)}({0:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},1:function(t,e,r){var n=r(31)("wks"),o=r(24),s=r(0).Symbol,i="function"==typeof s;(t.exports=function(t){return n[t]||(n[t]=i&&s[t]||(i?s:o)("Symbol."+t))}).store=n},10:function(t,e,r){var n=r(4),o=r(41),s=r(38),i=Object.defineProperty;e.f=r(3)?Object.defineProperty:function(t,e,r){if(n(t),e=s(e,!0),n(r),o)try{return i(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},100:function(t,e,r){"use strict";var n=r(9),o=r(2),s=r(0),i=r(64),a=r(67);n(n.P+n.R,"Promise",{finally:function(t){var e=i(this,o.Promise||s.Promise),r="function"==typeof t;return this.then(r?function(r){return a(e,t()).then(function(){return r})}:t,r?function(r){return a(e,t()).then(function(){throw r})}:t)}})},101:function(t,e,r){"use strict";var n=r(9),o=r(44),s=r(66);n(n.S,"Promise",{try:function(t){var e=o.f(this),r=s(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},105:function(t,e){t.exports=r},1069:function(t,e,r){"use strict";var n=r(130),o=r.n(n),s=r(111),i=r.n(s),a=r(92),c=r.n(a),u=r(71),l=r.n(u),f=r(105),h=r.n(f),p=r(936),d=r(1479),v=r(788),b=r.n(v),y=r(828),g=(r.n(y),r(39));r.n(g);e.a={name:"ActGoldCost",mixins:[h.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:"#8c7fee"},btnColor:{type:String,default:""},isNewCostTable:{type:Boolean,default:!0}},computed:{isShowNewCostTable:function(){return!(this.tableData&&this.tableData.head&&this.tableData.head.length<5)&&this.isNewCostTable}},components:{ActCascadePicker:b.a,ActCostTable:p.a,ActCostTableNew:d.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,r){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,r=[];this.setCostTableIdType();var n=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,r=[0]):r=[this.costInsured],this.$refs.singlePicker.setData(t,r)}else if(1===this.insureds.length||n){this.pickerType=2,this.costInsured>0&&(this.costInsured=0);for(var i=0,a=this.costTables.length;i<a;i++)t.push({value:this.costTables[i].id,text:this.costTables[i].name}),e++;r=[0];for(var c=0,u=t.length;c<u;c++)if(t[c].value===this.costTableId){r=[c];break}this.$refs.singlePicker.setData(t,r)}else if(this.costTables.length>1&&this.insureds.length>1){this.pickerType=3;var l=void 0;r[0]=0;for(var f=0,h=this.costTables.length;f<h;f++){if(this.costTables[f].id===this.costTableId&&(r[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 p=0,d=this.insureds.length;p<d;p++)l.children.push({value:p,text:"被保险人"+(p+1)}),e++;t.push(l)}this.costInsured>0&&this.costInsured>=this.insureds.length?(this.updateState({key:"costInsured",value:0}),r[1]=0):r[1]=this.costInsured,this.$refs.multiPicker.setData(t,r)}this.costCount=e,this.getCost()}},getCost:function(){var t=this;new l.a(function(e,r){var n=void 0,o=c()({},t.paramExt),s={genes:o};if(t.applicant&&(o.applicant=t.applicant),t.insureds.length<=t.costInsured)return r({errmsg:"表格不存在"});if(1===t.costTablesCalcType[t.costTableId])n="/buy/getCostTableComplex",o.tableId=t.costTableId,o.insureds=t.insureds;else{n="/buy/getCostTable",s.tableId=t.costTableId;var a=t.insureds[t.costInsured];o.plan=a.plan,o.insured=a.insured}var u=Object(y.md5)(i()(s));t.costTableCache=t.costTableCache||{},t.costTableCache[u]?e(t.costTableCache[u]):t.$fetch(n,s).then(function(r){t.costTableCache[u]=r,e(r)})}).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,r=this.costTables.length;e<r;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=[],r=[],n=void 0,s=void 0,i=void 0,a=void 0,c=this.costTables,u=Array.isArray(c),l=0,c=u?c:o()(c);;){var f;if(u){if(l>=c.length)break;f=c[l++]}else{if(l=c.next(),l.done)break;f=l.value}var h=f;if(h.id===this.costTableId){a=h.type;break}}for(var p=0,d=t.rows.length;p<d;p++){s=t.rows[p],i=(1===a||2===a)&&+s[3]>+s[2],n=[];for(var v=0,b=t.cols.length;v<b;v++)n.push({value:v===t.cols.length-1?parseFloat(Math.round(100*s[v])/100).toFixed(2):s[v]||0,type:!i||1!==a&&2!==a||3!==v?0:1});e.push(n),p<5||(p+1)%10==0||p===d-1?r.push(n):(1===a||2===a)&&i&&+t.rows[p-1][3]<=+t.rows[p-1][2]?r.push(n):(1===a||2===a)&&i&&+t.rows[p+1][3]<=+t.rows[p+1][2]&&r.push(n)}this.title=t.name,this.subTitle=t.planText;var y=function(e,r){if(!Object(g.isArray)(e))return[];e=Object(g.deepCopy)(e);var n=t.display||[],o={head:function(){return e.filter(function(t,e){return"1"===String(n[e])})||[]},rows:function(){return e.map(function(t){return t&&t.filter(function(t,e){return"1"===String(n[e])})||[]})||[]}};return o[r]?o[r]():[]};this.tableData={head:y(t.cols,"head"),rows:y(e,"rows")},this.fakerTableData={head:y(t.cols,"head"),rows:y(r,"rows")}}}}},1070:function(t,e,r){"use strict";var n=r(196),o=r.n(n),s=r(39);r.n(s);e.a={props:{tableData:{type:Object,default:function(){}},brandColor:{type:String,default:"#8c7fee"}},data:function(){return{tableScroller:null,rightTitleScroller:null,rightTableScroller:null,moreToggle:!0}},computed:{renderData:function(){return this.tableData},leftTitleArr:function(){return this.renderData&&this.renderData.head&&this.renderData.head.length?this.renderData.head.slice(0,2):[]},styleOption:function(){return this.brandColor?{backgroundColor:this.brandColor}:{}},rightTitleArr:function(){if(this.renderData&&this.renderData.head&&this.renderData.head.length){var t=this.renderData.head.length;return this.renderData.head.slice(2,t)}return[]},leftTable:function(){if(this.renderData){var t=[];return this.renderData.rows&&this.renderData.rows.forEach(function(e){var r=[];e.forEach(function(t,e){e<2&&r.push(t)}),t.push(r)}),t}return[]},rightTable:function(){if(this.renderData){var t=[];return this.renderData.rows&&this.renderData.rows.forEach(function(e){var r=[];e.forEach(function(t,e){e>1&&r.push(t)}),t.push(r)}),t}return[[]]}},watch:{renderData:{handler:function(t){var e=this;t&&t.rows&&t.head&&this.$nextTick(function(){var t=e.$refs.rightTitle,r=e.$refs.tableWrapper,n=e.$refs.rightTable;t&&e.$nextTick(function(){e.rightTitleScroller?e.rightTitleScroller.refresh():(e.rightTitleScroller=new o.a(t,{scrollX:!0,bounce:!1,probeType:3,momentum:!1}),e.rightTitleScroller.on("scroll",function(t){var r=t.x,n=t.y;Object(s.throttle)(e.rightTableScroller.scrollTo(r,n,0))}))}),r&&e.$nextTick(function(){e.tableScroller?e.tableScroller.refresh():e.tableScroller=new o.a(r,{scrollY:!0,scrollX:!1})}),n&&e.$nextTick(function(){e.rightTableScroller?e.rightTableScroller.refresh():(e.rightTableScroller=new o.a(n,{scrollY:!0,scrollX:!0,bounce:!1,probeType:2,momentum:!1}),e.rightTableScroller.on("scroll",function(t){var r=t.x,n=t.y;e.rightTitleScroller.scrollTo(r,n,0)}))})})},deep:!0}}}},11:function(t,e){t.exports={}},111:function(t,e,r){t.exports={default:r(117),__esModule:!0}},117:function(t,e,r){var n=r(2),o=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},129:function(t,e){t.exports=n},13:function(t,e,r){var n=r(34),o=r(15);t.exports=function(t){return n(o(t))}},130:function(t,e,r){t.exports={default:r(144),__esModule:!0}},14:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},144:function(t,e,r){r(50),r(48),t.exports=r(145)},145:function(t,e,r){var n=r(4),o=r(56);t.exports=r(2).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},1476:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(26),o=r.n(n),s=r(1477);s.a.install=function(t){t.component(s.a.name,s.a),t.prototype.$createGoldCost=o()(s.a,t)},e.default=s.a},1477:function(t,e,r){"use strict";function n(t){a||r(1478)}var o=r(1069),s=r(1482),i=r(7),a=!1,c=n,u=Object(i.a)(o.a,s.a,s.b,!1,c,"data-v-1ce1129b",null);u.options.__file="src\\components\\GoldCost\\src\\index.vue",e.a=u.exports},1478:function(t,e){},1479:function(t,e,r){"use strict";function n(t){a||r(1480)}var o=r(1070),s=r(1481),i=r(7),a=!1,c=n,u=Object(i.a)(o.a,s.a,s.b,!1,c,"data-v-2842a46c",null);u.options.__file="src\\components\\GoldCost\\src\\costTable.vue",e.a=u.exports},1480:function(t,e){},1481:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"act-cost-table"},[t.renderData&&t.renderData.head&&t.renderData.rows&&t.renderData.rows.length?[r("div",{staticClass:"wrapper"},[r("div",{staticClass:"title-wrapper"},[r("div",{staticClass:"left-title"},[t._l(t.leftTitleArr,function(e,n){return[r("span",{key:"head-"+n,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")])]})],2),t._v(" "),r("div",{ref:"rightTitle",staticClass:"right-title"},[r("div",{ref:"rightTitleWrapper",staticClass:"right-title-wrapper"},[t._l(t.rightTitleArr,function(e,n){return[r("span",{key:"head-"+n,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")])]})],2)])]),t._v(" "),r("div",{ref:"tableWrapper",staticClass:"table-wrapper"},[r("div",{staticClass:"table"},[r("div",{staticClass:"left-table"},[r("table",{staticClass:"table-body",attrs:{border:"0"}},[t.leftTable&&t.leftTable.length?r("tbody",t._l(t.leftTable,function(e,n){return r("tr",{key:"tr-"+n,staticClass:"table-tr"},[t._l(e,function(e,o){return[r("td",{key:"td-"+n+"-"+o,staticClass:"table-item"},[t._v("\n "+t._s(e.value)+"\n ")])]})],2)}),0):t._e()])]),t._v(" "),r("div",{ref:"rightTable",staticClass:"right-table"},[r("table",{staticClass:"table-body",attrs:{border:"0"}},[t.rightTable&&t.rightTable.length?r("tbody",t._l(t.rightTable,function(e,n){return r("tr",{key:"tr-"+n,staticClass:"table-tr"},[t._l(e,function(e,o){return[r("td",{key:"td-"+n+"-"+o,staticClass:"table-item"},[t._v("\n "+t._s(e.value)+"\n ")])]})],2)}),0):t._e()])])])])])]:[r("div",{staticClass:"no-data"},[t._v("\n 暂无相关数据\n ")])]],2)},o=[];n._withStripped=!0},1482:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("act-panel",{attrs:{visible:!!t.costTables&&!!t.costTables.length&&t.isVisible}},[r("template",{slot:"title"},[r("h3",[t._v("\n 价值演示\n ")]),t._v(" "),t.costCount>1?r("div",{staticClass:"act-cost-more",on:{click:function(e){return e.stopPropagation(),t.showPicker.apply(null,arguments)}}},[r("span",[t._v("查看更多")]),t._v(" "),r("span",{staticClass:"act-cost-more-arrow"})]):t._e()]),t._v(" "),r("div",{staticClass:"act-cost-box"},[t.title?r("div",{staticClass:"act-cost-tit"},[t._v("\n "+t._s(t.title)+"\n ")]):t._e(),t._v(" "),t.subTitle?r("div",{staticClass:"act-cost-sub-tit"},[t._v("\n "+t._s(t.subTitle)+"\n ")]):t._e(),t._v(" "),t.isShowNewCostTable?r("act-cost-table-new",{attrs:{tableData:t.tableData,brandColor:t.brandColor}}):r("act-cost-table",{attrs:{tableData:t.tableData,fakerTableData:t.fakerTableData,brandColor:t.brandColor}})],1),t._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("act-cascade-picker",{ref:"singlePicker",attrs:{title:"",confirmColor:t.brandColor},on:{select:t.select}}),t._v(" "),r("act-cascade-picker",{ref:"multiPicker",attrs:{title:"",confirmColor:t.brandColor},on:{select:t.select}})],1)],2)},o=[];n._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 r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},17:function(t,e,r){var n=r(19);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,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}},196:function(t,e){t.exports=o},2:function(t,e){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},20:function(t,e,r){var n=r(31)("keys"),o=r(24);t.exports=function(t){return n[t]||(n[t]=o(t))}},22:function(t,e,r){var n=r(6),o=r(0).document,s=n(o)&&n(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},23:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},24:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},26:function(e,r){e.exports=t},27:function(t,e,r){var n=r(10).f,o=r(8),s=r(1)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,s)&&n(t,s,{configurable:!0,value:e})}},28:function(t,e,r){var n=r(42),o=r(32);t.exports=Object.keys||function(t){return n(t,o)}},3:function(t,e,r){t.exports=!r(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},31:function(t,e,r){var n=r(2),o=r(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:n.version,mode:r(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},32:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},33:function(t,e,r){var n=r(15);t.exports=function(t){return Object(n(t))}},34:function(t,e,r){var n=r(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},35:function(t,e,r){var n=r(16),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},36:function(t,e,r){"use strict";var n=r(18),o=r(9),s=r(54),i=r(5),a=r(11),c=r(60),u=r(27),l=r(62),f=r(1)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,r,d,v,b,y){c(r,e,d);var g,_,T,x=function(t){if(!h&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},m=e+" Iterator",C="values"==v,w=!1,j=t.prototype,S=j[f]||j["@@iterator"]||v&&j[v],k=S||x(v),D=v?C?x("entries"):k:void 0,O="Array"==e?j.entries||S:S;if(O&&(T=l(O.call(new t)))!==Object.prototype&&T.next&&(u(T,m,!0),n||"function"==typeof T[f]||i(T,f,p)),C&&S&&"values"!==S.name&&(w=!0,k=function(){return S.call(this)}),n&&!y||!h&&!w&&j[f]||i(j,f,k),a[e]=k,a[m]=p,v)if(g={values:C?k:x("values"),keys:b?k:x("keys"),entries:D},y)for(_ in g)_ in j||s(j,_,g[_]);else o(o.P+o.F*(h||w),e,g);return g}},38:function(t,e,r){var n=r(6);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},39:function(t,r){t.exports=e},4:function(t,e,r){var n=r(6);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},41:function(t,e,r){t.exports=!r(3)&&!r(12)(function(){return 7!=Object.defineProperty(r(22)("div"),"a",{get:function(){return 7}}).a})},42:function(t,e,r){var n=r(8),o=r(13),s=r(46)(!1),i=r(20)("IE_PROTO");t.exports=function(t,e){var r,a=o(t),c=0,u=[];for(r in a)r!=i&&n(a,r)&&u.push(r);for(;e.length>c;)n(a,r=e[c++])&&(~s(u,r)||u.push(r));return u}},43:function(t,e,r){var n=r(0).document;t.exports=n&&n.documentElement},44:function(t,e,r){"use strict";function n(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=o(e),this.reject=o(r)}var o=r(19);t.exports.f=function(t){return new n(t)}},45:function(t,e,r){var n=r(14),o=r(1)("toStringTag"),s="Arguments"==n(function(){return arguments}()),i=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=i(e=Object(t),o))?r:s?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},46:function(t,e,r){var n=r(13),o=r(35),s=r(47);t.exports=function(t){return function(e,r,i){var a,c=n(e),u=o(c.length),l=s(i,u);if(t&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}}},47:function(t,e,r){var n=r(16),o=Math.max,s=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):s(t,e)}},48:function(t,e,r){"use strict";var n=r(59)(!0);r(36)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},5:function(t,e,r){var n=r(10),o=r(23);t.exports=r(3)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},50:function(t,e,r){r(68);for(var n=r(0),o=r(5),s=r(11),i=r(1)("toStringTag"),a="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(","),c=0;c<a.length;c++){var u=a[c],l=n[u],f=l&&l.prototype;f&&!f[i]&&o(f,i,u),s[u]=s.Array}},51:function(t,e){e.f={}.propertyIsEnumerable},52:function(t,e,r){var n=r(4),o=r(61),s=r(32),i=r(20)("IE_PROTO"),a=function(){},c=function(){var t,e=r(22)("iframe"),n=s.length;for(e.style.display="none",r(43).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c.prototype[s[n]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(a.prototype=n(t),r=new a,a.prototype=null,r[i]=t):r=c(),void 0===e?r:o(r,e)}},54:function(t,e,r){t.exports=r(5)},56:function(t,e,r){var n=r(45),o=r(1)("iterator"),s=r(11);t.exports=r(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||s[n(t)]}},57:function(t,e){e.f=Object.getOwnPropertySymbols},59:function(t,e,r){var n=r(16),o=r(15);t.exports=function(t){return function(e,r){var s,i,a=String(o(e)),c=n(r),u=a.length;return c<0||c>=u?t?"":void 0:(s=a.charCodeAt(c),s<55296||s>56319||c+1===u||(i=a.charCodeAt(c+1))<56320||i>57343?t?a.charAt(c):s:t?a.slice(c,c+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,r){"use strict";var n=r(52),o=r(23),s=r(27),i={};r(5)(i,r(1)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(i,{next:o(1,r)}),s(t,e+" Iterator")}},61:function(t,e,r){var n=r(10),o=r(4),s=r(28);t.exports=r(3)?Object.defineProperties:function(t,e){o(t);for(var r,i=s(e),a=i.length,c=0;a>c;)n.f(t,r=i[c++],e[r]);return t}},62:function(t,e,r){var n=r(8),o=r(33),s=r(20)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(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,r){var n=r(4),o=r(19),s=r(1)("species");t.exports=function(t,e){var r,i=n(t).constructor;return void 0===i||void 0==(r=n(i)[s])?e:o(r)}},65:function(t,e,r){var n,o,s,i=r(17),a=r(97),c=r(43),u=r(22),l=r(0),f=l.process,h=l.setImmediate,p=l.clearImmediate,d=l.MessageChannel,v=l.Dispatch,b=0,y={},g=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},_=function(t){g.call(t.data)};h&&p||(h=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return y[++b]=function(){a("function"==typeof t?t:Function(t),e)},n(b),b},p=function(t){delete y[t]},"process"==r(14)(f)?n=function(t){f.nextTick(i(g,t,1))}:v&&v.now?n=function(t){v.now(i(g,t,1))}:d?(o=new d,s=o.port2,o.port1.onmessage=_,n=i(s.postMessage,s,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",_,!1)):n="onreadystatechange"in u("script")?function(t){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),g.call(t)}}:function(t){setTimeout(i(g,t,1),0)}),t.exports={set:h,clear:p}},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,r){var n=r(4),o=r(6),s=r(44);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=s.f(t);return(0,r.resolve)(e),r.promise}},68:function(t,e,r){"use strict";var n=r(69),o=r(63),s=r(11),i=r(13);t.exports=r(36)(Array,"Array",function(t,e){this._t=i(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,r):"values"==e?o(0,t[r]):o(0,[r,t[r]])},"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},69:function(t,e){t.exports=function(){}},7:function(t,e,r){"use strict";function n(t,e,r,n,o,s,i,a){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(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=a?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 h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}e.a=n},70:function(t,e,r){t.exports={default:r(79),__esModule:!0}},71:function(t,e,r){t.exports={default:r(95),__esModule:!0}},73:function(t,e){},788:function(t,e){t.exports=s},79:function(t,e,r){r(80),t.exports=r(2).Object.assign},8:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},80:function(t,e,r){var n=r(9);n(n.S+n.F,"Object",{assign:r(81)})},81:function(t,e,r){"use strict";var n=r(3),o=r(28),s=r(57),i=r(51),a=r(33),c=r(34),u=Object.assign;t.exports=!u||r(12)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[r]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var r=a(t),u=arguments.length,l=1,f=s.f,h=i.f;u>l;)for(var p,d=c(arguments[l++]),v=f?o(d).concat(f(d)):o(d),b=v.length,y=0;b>y;)p=v[y++],n&&!h.call(d,p)||(r[p]=d[p]);return r}:u},82:function(t,e,r){var n=r(17),o=r(83),s=r(84),i=r(4),a=r(35),c=r(56),u={},l={},e=t.exports=function(t,e,r,f,h){var p,d,v,b,y=h?function(){return t}:c(t),g=n(r,f,e?2:1),_=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(s(y)){for(p=a(t.length);p>_;_++)if((b=e?g(i(d=t[_])[0],d[1]):g(t[_]))===u||b===l)return b}else for(v=y.call(t);!(d=v.next()).done;)if((b=o(v,g,d.value,e))===u||b===l)return b};e.BREAK=u,e.RETURN=l},828:function(t,e){t.exports=i},83:function(t,e,r){var n=r(4);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var s=t.return;throw void 0!==s&&n(s.call(t)),e}}},84:function(t,e,r){var n=r(11),o=r(1)("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||s[o]===t)}},85:function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},86:function(t,e,r){var n=r(5);t.exports=function(t,e,r){for(var o in e)r&&t[o]?t[o]=e[o]:n(t,o,e[o]);return t}},87:function(t,e,r){var n=r(1)("iterator"),o=!1;try{var s=[7][n]();s.return=function(){o=!0},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var s=[7],i=s[n]();i.next=function(){return{done:r=!0}},s[n]=function(){return i},t(s)}catch(t){}return r}},871:function(t,e,r){"use strict";var n=r(129),o=r.n(n);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:"#8c7fee"}},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()}}}},9:function(t,e,r){var n=r(0),o=r(2),s=r(17),i=r(5),a=r(8),c=function(t,e,r){var u,l,f,h=t&c.F,p=t&c.G,d=t&c.S,v=t&c.P,b=t&c.B,y=t&c.W,g=p?o:o[e]||(o[e]={}),_=g.prototype,T=p?n:d?n[e]:(n[e]||{}).prototype;p&&(r=e);for(u in r)(l=!h&&T&&void 0!==T[u])&&a(g,u)||(f=l?T[u]:r[u],g[u]=p&&"function"!=typeof T[u]?r[u]:b&&l?s(f,n):y&&T[u]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}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&c.R&&_&&!_[u]&&i(_,u,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},91:function(t,e,r){"use strict";var n=r(0),o=r(2),s=r(10),i=r(3),a=r(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];i&&e&&!e[a]&&s.f(e,a,{configurable:!0,get:function(){return this}})}},92:function(t,e,r){"use strict";e.__esModule=!0;var n=r(70),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}},936:function(t,e,r){"use strict";function n(t){a||r(937)}var o=r(871),s=r(938),i=r(7),a=!1,c=n,u=Object(i.a)(o.a,s.a,s.b,!1,c,"data-v-530770d2",null);u.options.__file="src\\components\\GoldCost\\src\\table.vue",e.a=u.exports},937:function(t,e){},938:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"act-cost-table"},[t.renderData&&t.renderData.rows&&t.renderData.rows.length>0?[t.scrollable?r("act-scroll",{ref:t.scroll,staticClass:"act-cost-table-scrollable",attrs:{listenScrollInit:!0},on:{scrollSuc:t.scrollSuc}},[r("table",{staticClass:"act-cost-table-body"},[r("thead",[r("tr",t._l(t.renderData.head,function(e,n){return r("td",{key:"head-"+n,style:{"background-color":t.brandColor||"#8c7fee"}},[t._v("\n "+t._s(e)+"\n ")])}),0)]),t._v(" "),r("tbody",t._l(t.renderData.rows,function(e,n){return r("tr",{key:"tr-"+n},t._l(e,function(e,o){return r("td",{key:"td-"+n+"-"+o,class:{sw:e.type}},[t._v("\n "+t._s(e.value)+"\n ")])}),0)}),0)])]):r("table",{staticClass:"act-cost-table-body"},[r("thead",[r("tr",t._l(t.renderData.head,function(e,n){return r("td",{key:"head-"+n,style:{"background-color":t.brandColor||"#8c7fee"}},[t._v("\n "+t._s(e)+"\n ")])}),0)]),t._v(" "),r("tbody",t._l(t.renderData.rows,function(e,n){return r("tr",{key:"tr-"+n},t._l(e,function(e,o){return r("td",{key:"td-"+n+"-"+o,class:{sw:e.type}},[t._v("\n "+t._s(e.value)+"\n ")])}),0)}),0)])]:r("div",{staticClass:"act-cost-empty",class:{"act-cost-table-scrollable-empty":t.scrollable}},[t._v("\n 暂无相关数据\n ")]),t._v(" "),t.showToggle?r("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?"收起":"查看全部")),r("span",{style:{"border-color":t.brandColor}})]):t._e()],2)},o=[];n._withStripped=!0},95:function(t,e,r){r(73),r(48),r(50),r(96),r(100),r(101),t.exports=r(2).Promise},96:function(t,e,r){"use strict";var n,o,s,i,a=r(18),c=r(0),u=r(17),l=r(45),f=r(9),h=r(6),p=r(19),d=r(85),v=r(82),b=r(64),y=r(65).set,g=r(98)(),_=r(44),T=r(66),x=r(99),m=r(67),C=c.TypeError,w=c.process,j=w&&w.versions,S=j&&j.v8||"",k=c.Promise,D="process"==l(w),O=function(){},P=o=_.f,I=!!function(){try{var t=k.resolve(1),e=(t.constructor={})[r(1)("species")]=function(t){t(O,O)};return(D||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==S.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),E=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var r=t._c;g(function(){for(var n=t._v,o=1==t._s,s=0;r.length>s;)!function(e){var r,s,i,a=o?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{a?(o||(2==t._h&&$(t),t._h=1),!0===a?r=n:(l&&l.enter(),r=a(n),l&&(l.exit(),i=!0)),r===e.promise?u(C("Promise-chain cycle")):(s=E(r))?s.call(r,c,u):c(r)):u(n)}catch(t){l&&!i&&l.exit(),u(t)}}(r[s++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){y.call(c,function(){var e,r,n,o=t._v,s=L(t);if(s&&(e=T(function(){D?w.emit("unhandledRejection",o,t):(r=c.onunhandledrejection)?r({promise:t,reason:o}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=D||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},$=function(t){y.call(c,function(){var e;D?w.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},N=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()),M(e,!0))},R=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw C("Promise can't be resolved itself");(e=E(t))?g(function(){var n={_w:r,_d:!1};try{e.call(t,u(R,n,1),u(N,n,1))}catch(t){N.call(n,t)}}):(r._v=t,r._s=1,M(r,!1))}catch(t){N.call({_w:r,_d:!1},t)}}};I||(k=function(t){d(this,k,"Promise","_h"),p(t),n.call(this);try{t(u(R,this,1),u(N,this,1))}catch(t){N.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(86)(k.prototype,{then:function(t,e){var r=P(b(this,k));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=D?w.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&M(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),s=function(){var t=new n;this.promise=t,this.resolve=u(R,t,1),this.reject=u(N,t,1)},_.f=P=function(t){return t===k||t===i?new s(t):o(t)}),f(f.G+f.W+f.F*!I,{Promise:k}),r(27)(k,"Promise"),r(91)("Promise"),i=r(2).Promise,f(f.S+f.F*!I,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(a||!I),"Promise",{resolve:function(t){return m(a&&this===i?k:this,t)}}),f(f.S+f.F*!(I&&r(87)(function(t){k.all(t).catch(O)})),"Promise",{all:function(t){var e=this,r=P(e),n=r.resolve,o=r.reject,s=T(function(){var r=[],s=0,i=1;v(t,!1,function(t){var a=s++,c=!1;r.push(void 0),i++,e.resolve(t).then(function(t){c||(c=!0,r[a]=t,--i||n(r))},o)}),--i||n(r)});return s.e&&o(s.v),r.promise},race:function(t){var e=this,r=P(e),n=r.reject,o=T(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},97:function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},98:function(t,e,r){var n=r(0),o=r(65).set,s=n.MutationObserver||n.WebKitMutationObserver,i=n.process,a=n.Promise,c="process"==r(14)(i);t.exports=function(){var t,e,r,u=function(){var n,o;for(c&&(n=i.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(c)r=function(){i.nextTick(u)};else if(!s||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);r=function(){l.then(u)}}else r=function(){o.call(n,u)};else{var f=!0,h=document.createTextNode("");new s(u).observe(h,{characterData:!0}),r=function(){h.data=f=!f}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},99:function(t,e,r){var n=r(0),o=n.navigator;t.exports=o&&o.userAgent||""}})});