123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- exports.ids = [39];
- exports.modules = {
- /***/ 168:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 189:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TotalTable_vue_vue_type_style_index_0_id_8afd0988_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(168);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TotalTable_vue_vue_type_style_index_0_id_8afd0988_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TotalTable_vue_vue_type_style_index_0_id_8afd0988_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TotalTable_vue_vue_type_style_index_0_id_8afd0988_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TotalTable_vue_vue_type_style_index_0_id_8afd0988_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /***/ }),
- /***/ 200:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/table/TotalTable.vue?vue&type=template&id=8afd0988&scoped=true
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('div', {
- staticClass: "wrap"
- }, [_vm._ssrNode("<p" + _vm._ssrClass("tb-title", {
- 'left': _vm.tableType
- }) + " data-v-8afd0988><span data-v-8afd0988>" + _vm._ssrEscape(_vm._s(_vm.title)) + "</span> " + (_vm.title == 'Sell Price' && _vm.comLocationNum !== 1 ? "<span" + _vm._ssrStyle(null, {
- width: _vm.comWidth + 'px'
- }, null) + " data-v-8afd0988>Total</span>" : "<!---->") + "</p> "), _c('el-table', {
- ref: "elTable",
- attrs: {
- "border": "",
- "data": _vm.tableData,
- "header-cell-style": {
- backgroundColor: '#fff',
- color: '#606266',
- fontWeight: 500,
- fontSize: '16px'
- },
- "stripe": ""
- }
- }, _vm._l(_vm.tableColumns, function (item, index) {
- return _c('el-table-column', {
- key: `${_vm.curOrder}-${item.prop}`,
- attrs: {
- "align": item.align ? item.align : 'center',
- "prop": item.prop,
- "label": item.label,
- "formatter": item.formatter,
- "sortable": item.sortable
- },
- scopedSlots: _vm._u([{
- key: "header",
- fn: function (scope) {
- return [_vm.title == 'Buy Price' && _vm.comLocationNum === 1 ? _c('div', [_c('el-input', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: !item.isFirstColumn,
- expression: "!item.isFirstColumn"
- }],
- attrs: {
- "size": "small",
- "type": "number",
- "min": _vm.min
- },
- on: {
- "blur": function ($event) {
- return _vm.getNumber($event, index);
- }
- },
- model: {
- value: item.label,
- callback: function ($$v) {
- _vm.$set(item, "label", $$v);
- },
- expression: "item.label"
- }
- }), _vm._v(" "), _c('span', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: item.isFirstColumn,
- expression: "item.isFirstColumn"
- }]
- }, [_vm._v(_vm._s(item.label))])], 1) : _c('div', [_c('span', [_vm._v(_vm._s(item.label))])])];
- }
- }, {
- key: "default",
- fn: function (scope) {
- return [_vm.tableType && !item.isFirstColumn ? [_c('span', [_vm._v(_vm._s(_vm._f("differencePrice")(scope.row[item.prop], _vm.curDecoration[item.prop], _vm.indexDecoration[item.prop], _vm.poaConfig)))])] : [(typeof scope.row[item.prop] == 'string' && scope.row[item.prop].includes('.') || typeof scope.row[item.prop] == 'number') && !item.isFirstColumn ? _c('span', [_vm._v("£")]) : _vm._e(), _vm._v(" "), _c('span', [_vm._v(_vm._s(scope.row[item.prop] ? scope.row[item.prop] : '0.00'))])]];
- }
- }], null, true)
- });
- }), 1)], 2);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/table/TotalTable.vue?vue&type=template&id=8afd0988&scoped=true
- // EXTERNAL MODULE: external "number-precision"
- var external_number_precision_ = __webpack_require__(122);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/table/TotalTable.vue?vue&type=script&lang=js
- /* harmony default export */ var TotalTablevue_type_script_lang_js = ({
- filters: {
- differencePrice(a, curDecoVal, indexDecoVal, poaConfig) {
- const rep = /^[0-9]+(\.[0-9]*)?$/;
- if (!rep.test(a)) {
- return a || 'Waived';
- }
- if (poaConfig.includes(curDecoVal) || poaConfig.includes(indexDecoVal)) {
- if (curDecoVal === '111' || curDecoVal === '111.00' || indexDecoVal === '111' || indexDecoVal === '111.00') {
- return '-';
- } else if (curDecoVal === '999' || curDecoVal === '999.00' || indexDecoVal === '999' || indexDecoVal === '999.00') {
- return 'POA';
- }
- } else if (curDecoVal === indexDecoVal) {
- return 0;
- } else if (+curDecoVal > +indexDecoVal) {
- return `-£ ${Object(external_number_precision_["minus"])(curDecoVal, indexDecoVal)}`;
- } else if (+curDecoVal < +indexDecoVal) {
- return `+£ ${Object(external_number_precision_["minus"])(indexDecoVal, curDecoVal)}`;
- } else {
- return 'Waived';
- }
- }
- },
- props: {
- tableData: {
- type: Array,
- default: () => []
- },
- tableColumns: {
- type: Array,
- default: () => []
- },
- tableType: {
- type: String,
- default: ''
- },
- curDecoration: {
- type: Object,
- default: () => {}
- },
- indexDecoration: {
- type: Object,
- default: () => {}
- },
- comLocationNum: {
- type: Number,
- default: 1
- },
- curOrder: {
- type: String,
- default: ''
- },
- min: {
- type: String,
- default: ''
- },
- title: {
- type: String,
- default: ''
- }
- },
- data() {
- return {
- poaConfig: ['111', '111.00', '999', '999.00']
- };
- },
- methods: {
- getNumber(e, index) {
- if (parseInt(e.target.value) < this.min) {
- this.$emit('send-idx', index);
- }
- }
- },
- computed: {
- comWidth() {
- return 800 / this.tableColumns.length - 1;
- }
- }
- });
- // CONCATENATED MODULE: ./components/table/TotalTable.vue?vue&type=script&lang=js
- /* harmony default export */ var table_TotalTablevue_type_script_lang_js = (TotalTablevue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/table/TotalTable.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(189)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- table_TotalTablevue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "8afd0988",
- "35501f79"
-
- )
- /* harmony default export */ var TotalTable = __webpack_exports__["default"] = (component.exports);
- /***/ })
- };;
- //# sourceMappingURL=table-total-table.js.map
|