exports.ids = [32,15,22,25,41,43,44,47,48,49,51,52,53];
exports.modules = {

/***/ 142:
/***/ (function(module, exports) {

// Exports
module.exports = {

};


/***/ }),

/***/ 143:
/***/ (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/Tinymce/index.vue?vue&type=template&id=64623c0e&scoped=true
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c('div', {
    staticClass: "tinymce-container",
    class: {
      fullscreen: _vm.fullscreen
    },
    style: {
      width: _vm.containerWidth
    }
  }, [_vm._ssrNode("<textarea" + _vm._ssrAttr("id", _vm.tinymceId) + " class=\"tinymce-textarea\" data-v-64623c0e></textarea>")]);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./components/Tinymce/index.vue?vue&type=template&id=64623c0e&scoped=true

// EXTERNAL MODULE: ./components/Tinymce/plugins.js
var plugins = __webpack_require__(150);

// EXTERNAL MODULE: ./components/Tinymce/toolbar.js
var toolbar = __webpack_require__(151);

// EXTERNAL MODULE: ./components/Tinymce/dynamicLoadScript.js
var dynamicLoadScript = __webpack_require__(152);

// 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/Tinymce/index.vue?vue&type=script&lang=js
/**
 * docs:
 * https://panjiachen.github.io/vue-element-admin-site/feature/component/rich-editor.html#tinymce
 */
// import editorImage from './components/EditorImage'




// why use this cdn, detail see https://github.com/PanJiaChen/tinymce-all-in-one
const tinymceCDN = '//cdn.jsdelivr.net/npm/tinymce-all-in-one@4.9.3/tinymce.min.js';
/* harmony default export */ var Tinymcevue_type_script_lang_js = ({
  name: 'Tinymce',
  // components: { editorImage },
  props: {
    id: {
      type: String,
      default: function () {
        return 'vue-tinymce-' + +new Date() + ((Math.random() * 1000).toFixed(0) + '');
      }
    },
    value: {
      type: String,
      default: ''
    },
    toolbar: {
      type: Array,
      required: false,
      default() {
        return [];
      }
    },
    menubar: {
      type: String,
      default: 'file edit insert view format table'
    },
    height: {
      type: [Number, String],
      required: false,
      default: 360
    },
    width: {
      type: [Number, String],
      required: false,
      default: 'auto'
    }
  },
  data() {
    return {
      hasChange: false,
      hasInit: false,
      tinymceId: this.id,
      fullscreen: false,
      languageTypeList: {
        'en': 'en',
        'zh': 'zh_CN',
        'es': 'es_MX',
        'ja': 'ja'
      }
    };
  },
  computed: {
    language() {
      return this.languageTypeList[this.$store.getters.language];
    },
    containerWidth() {
      const width = this.width;
      if (/^[\d]+(\.[\d]+)?$/.test(width)) {
        // matches `100`, `'100'`
        return `${width}px`;
      }
      return width;
    }
  },
  watch: {
    value(val) {
      if (!this.hasChange && this.hasInit) {
        this.$nextTick(() => window.tinymce.get(this.tinymceId).setContent(val || ''));
      }
    },
    language() {
      this.destroyTinymce();
      this.$nextTick(() => this.initTinymce());
    }
  },
  mounted() {
    this.init();
  },
  activated() {
    if (window.tinymce) {
      this.initTinymce();
    }
  },
  deactivated() {
    this.destroyTinymce();
  },
  destroyed() {
    this.destroyTinymce();
  },
  methods: {
    init() {
      // dynamic load tinymce from cdn
      Object(dynamicLoadScript["default"])(tinymceCDN, err => {
        if (err) {
          this.$message.error(err.message);
          return;
        }
        this.initTinymce();
      });
    },
    initTinymce() {
      const _this = this;
      window.tinymce.init({
        language: this.language,
        selector: `#${this.tinymceId}`,
        height: this.height,
        body_class: 'panel-body ',
        object_resizing: false,
        toolbar: this.toolbar.length > 0 ? this.toolbar : toolbar["default"],
        menubar: this.menubar,
        plugins: plugins["default"],
        end_container_on_empty_block: true,
        powerpaste_word_import: 'clean',
        code_dialog_height: 450,
        code_dialog_width: 1000,
        advlist_bullet_styles: 'square',
        advlist_number_styles: 'default',
        imagetools_cors_hosts: ['www.tinymce.com', 'codepen.io'],
        default_link_target: '_blank',
        link_title: false,
        nonbreaking_force_tab: true,
        // inserting nonbreaking space &nbsp; need Nonbreaking Space Plugin
        init_instance_callback: editor => {
          if (_this.value) {
            editor.setContent(_this.value);
          }
          _this.hasInit = true;
          editor.on('NodeChange Change KeyUp SetContent', () => {
            this.hasChange = true;
            this.$emit('input', editor.getContent());
          });
        },
        setup(editor) {
          editor.on('FullscreenStateChanged', e => {
            _this.fullscreen = e.state;
          });
        },
        // it will try to keep these URLs intact
        // https://www.tiny.cloud/docs-3x/reference/configuration/Configuration3x@convert_urls/
        // https://stackoverflow.com/questions/5196205/disable-tinymce-absolute-to-relative-url-conversions
        convert_urls: false
        // 整合七牛上传
        // images_dataimg_filter(img) {
        //   setTimeout(() => {
        //     const $image = $(img);
        //     $image.removeAttr('width');
        //     $image.removeAttr('height');
        //     if ($image[0].height && $image[0].width) {
        //       $image.attr('data-wscntype', 'image');
        //       $image.attr('data-wscnh', $image[0].height);
        //       $image.attr('data-wscnw', $image[0].width);
        //       $image.addClass('wscnph');
        //     }
        //   }, 0);
        //   return img
        // },
        // images_upload_handler(blobInfo, success, failure, progress) {
        //   progress(0);
        //   const token = _this.$store.getters.token;
        //   getToken(token).then(response => {
        //     const url = response.data.qiniu_url;
        //     const formData = new FormData();
        //     formData.append('shop-token', response.data.qiniu_token);
        //     formData.append('key', response.data.qiniu_key);
        //     formData.append('file', blobInfo.blob(), url);
        //     upload(formData).then(() => {
        //       success(url);
        //       progress(100);
        //     })
        //   }).catch(err => {
        //     failure('出现未知问题，刷新页面，或者联系程序员')
        //     console.log(err);
        //   });
        // },
      });
    },
    destroyTinymce() {
      const tinymce = window.tinymce.get(this.tinymceId);
      if (this.fullscreen) {
        tinymce.execCommand('mceFullScreen');
      }
      if (tinymce) {
        tinymce.destroy();
      }
    },
    setContent(value) {
      window.tinymce.get(this.tinymceId).setContent(value);
    },
    getContent() {
      window.tinymce.get(this.tinymceId).getContent();
    },
    imageSuccessCBK(arr) {
      arr.forEach(v => window.tinymce.get(this.tinymceId).insertContent(`<img class="wscnph" src="${v.url}" >`));
    }
  }
});
// CONCATENATED MODULE: ./components/Tinymce/index.vue?vue&type=script&lang=js
 /* harmony default export */ var components_Tinymcevue_type_script_lang_js = (Tinymcevue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./components/Tinymce/index.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(155)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_Tinymcevue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "64623c0e",
  "c8124998"
  
)

/* harmony default export */ var Tinymce = __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 150:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
// Any plugins you want to use has to be imported
// Detail plugins list see https://www.tinymce.com/docs/plugins/
// Custom builds see https://www.tinymce.com/download/custom-builds/

const plugins = ['advlist  autolink autosave code  colorpicker colorpicker contextmenu directionality  fullscreen hr insertdatetime link lists  nonbreaking noneditable paste preview print save  spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount'];
//anchor codesample emoticons pagebreak searchreplace image  imagetools media
/* harmony default export */ __webpack_exports__["default"] = (plugins);

/***/ }),

/***/ 151:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
// Here is a list of the toolbar
// Detail list see https://www.tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols

const toolbar = ['searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent  blockquote undo redo removeformat subscript superscript code codesample', 'hr bullist numlist link image charmap preview anchor pagebreak insertdatetime media table emoticons forecolor backcolor fullscreen'];
/* harmony default export */ __webpack_exports__["default"] = (toolbar);

/***/ }),

/***/ 152:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
let callbacks = [];
function loadedTinymce() {
  // to fixed https://github.com/PanJiaChen/vue-element-admin/issues/2144
  // check is successfully downloaded script
  return window.tinymce;
}
const dynamicLoadScript = (src, callback) => {
  const existingScript = document.getElementById(src);
  const cb = callback || function () {};
  if (!existingScript) {
    const script = document.createElement('script');
    script.src = src; // src url for the third-party library being loaded.
    script.id = src;
    document.body.appendChild(script);
    callbacks.push(cb);
    const onEnd = 'onload' in script ? stdOnEnd : ieOnEnd;
    onEnd(script);
  }
  if (existingScript && cb) {
    if (loadedTinymce()) {
      cb(null, existingScript);
    } else {
      callbacks.push(cb);
    }
  }
  function stdOnEnd(script) {
    script.onload = function () {
      // this.onload = null here is necessary
      // because even IE9 works not like others
      this.onerror = this.onload = null;
      for (const cb of callbacks) {
        cb(null, script);
      }
      callbacks = null;
    };
    script.onerror = function () {
      this.onerror = this.onload = null;
      cb(new Error('Failed to load ' + src), script);
    };
  }
  function ieOnEnd(script) {
    script.onreadystatechange = function () {
      if (this.readyState !== 'complete' && this.readyState !== 'loaded') return;
      this.onreadystatechange = null;
      for (const cb of callbacks) {
        cb(null, script); // there is no way to catch loading errors in IE8
      }
      callbacks = null;
    };
  }
};
/* harmony default export */ __webpack_exports__["default"] = (dynamicLoadScript);

/***/ }),

/***/ 155:
/***/ (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_index_vue_vue_type_style_index_0_id_64623c0e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(142);
/* 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_index_vue_vue_type_style_index_0_id_64623c0e_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_index_vue_vue_type_style_index_0_id_64623c0e_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_index_vue_vue_type_style_index_0_id_64623c0e_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_index_vue_vue_type_style_index_0_id_64623c0e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 156:
/***/ (function(module, exports) {

// Exports
module.exports = {

};


/***/ }),

/***/ 170:
/***/ (function(module, exports) {

// Exports
module.exports = {

};


/***/ }),

/***/ 171:
/***/ (function(module, exports) {

// Exports
module.exports = {

};


/***/ }),

/***/ 172:
/***/ (function(module, exports) {

// Exports
module.exports = {

};


/***/ }),

/***/ 173:
/***/ (function(module, exports) {

// Exports
module.exports = {

};


/***/ }),

/***/ 174:
/***/ (function(module, exports) {

// Exports
module.exports = {

};


/***/ }),

/***/ 177:
/***/ (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/FormDialog.vue?vue&type=template&id=b3af2fb8&scoped=true
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c('el-dialog', {
    attrs: {
      "lock-scroll": false,
      "title": _vm.title,
      "visible": _vm.visible,
      "width": "700px",
      "before-close": _vm.handleClose,
      "top": _vm.top,
      "show-close": false
    },
    on: {
      "update:visible": function ($event) {
        _vm.visible = $event;
      }
    }
  }, [_c('el-form', {
    ref: "ruleForm",
    attrs: {
      "model": _vm.emailForm,
      "rules": _vm.rules
    }
  }, _vm._l(_vm.comEnquiryConfig, function (item) {
    return _c('el-form-item', {
      key: item.prop,
      style: {
        marginBottom: _vm.marginBottom + 'px'
      },
      attrs: {
        "label": item.prop,
        "label-width": _vm.labelWidth + 'px',
        "prop": item.prop
      }
    }, [item.type === 'text' ? _c('span', [_vm._v(_vm._s(_vm.emailForm[item.prop]))]) : _vm._e(), _vm._v(" "), item.type === 'input' ? _c('el-input', {
      attrs: {
        "type": item.type,
        "clearable": ""
      },
      model: {
        value: _vm.emailForm[item.prop],
        callback: function ($$v) {
          _vm.$set(_vm.emailForm, item.prop, $$v);
        },
        expression: "emailForm[item.prop]"
      }
    }) : item.type === 'textarea' ? _c('el-input', {
      attrs: {
        "type": "textarea",
        "rows": 5,
        "clearable": ""
      },
      model: {
        value: _vm.emailForm[item.prop],
        callback: function ($$v) {
          _vm.$set(_vm.emailForm, item.prop, $$v);
        },
        expression: "emailForm[item.prop]"
      }
    }) : item.type === 'tinymce' ? _c('tinymce', {
      attrs: {
        "height": 240
      },
      model: {
        value: _vm.emailForm[item.prop],
        callback: function ($$v) {
          _vm.$set(_vm.emailForm, item.prop, $$v);
        },
        expression: "emailForm[item.prop]"
      }
    }) : item.type === 'select' && item.isShow ? _c('el-select', {
      attrs: {
        "clearable": "",
        "filterable": "",
        "placeholder": item.placeholder ? item.placeholder : 'Please select'
      },
      model: {
        value: _vm.emailForm[item.prop],
        callback: function ($$v) {
          _vm.$set(_vm.emailForm, item.prop, $$v);
        },
        expression: "emailForm[item.prop]"
      }
    }, _vm._l(item.selectlist, function (i) {
      return _c('el-option', {
        key: i.id,
        attrs: {
          "label": i.name,
          "value": i.name
        }
      });
    }), 1) : item.type === 'checkbox' ? _c('el-checkbox-group', {
      model: {
        value: _vm.emailForm[item.prop],
        callback: function ($$v) {
          _vm.$set(_vm.emailForm, item.prop, $$v);
        },
        expression: "emailForm[item.prop]"
      }
    }, _vm._l(item.selectlist, function (i, k) {
      return _c('el-checkbox', {
        key: k,
        attrs: {
          "label": k + 1
        }
      }, [_vm._v(_vm._s(i))]);
    }), 1) : _vm._e()], 1);
  }), 1), _vm._v(" "), _c('div', {
    staticClass: "dialog-footer",
    attrs: {
      "slot": "footer"
    },
    slot: "footer"
  }, [_c('el-button', {
    attrs: {
      "type": "primary",
      "loading": _vm.$store.state.product.loading
    },
    on: {
      "click": _vm.handleSend
    }
  }, [_vm._v(_vm._s(_vm.sendbtnCext))]), _vm._v(" "), _c('el-button', {
    attrs: {
      "type": "info",
      "plain": ""
    },
    on: {
      "click": _vm.handleClose
    }
  }, [_vm._v(_vm._s(_vm.cancelbtnCext))])], 1)], 1);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./components/FormDialog.vue?vue&type=template&id=b3af2fb8&scoped=true

// EXTERNAL MODULE: ./components/Tinymce/index.vue + 4 modules
var Tinymce = __webpack_require__(143);

// EXTERNAL MODULE: external "vuex"
var external_vuex_ = __webpack_require__(5);

// 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/FormDialog.vue?vue&type=script&lang=js


/* harmony default export */ var FormDialogvue_type_script_lang_js = ({
  components: {
    Tinymce: Tinymce["default"]
  },
  props: {
    title: {
      type: String,
      default: 'Send Email'
    },
    sendbtnCext: {
      type: String,
      default: 'Send Enquiry'
    },
    cancelbtnCext: {
      type: String,
      default: 'Cancel'
    },
    top: {
      type: String,
      default: '5vh'
    },
    isSendPdf: {
      type: Boolean,
      default: false
    },
    emailForm: {},
    enquiryConfig: [],
    rules: {},
    labelWidth: {
      type: Number,
      default: 150
    },
    marginBottom: {
      type: Number,
      default: 20
    },
    visible: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      downloading: false
    };
  },
  computed: {
    comEnquiryConfig() {
      return this.enquiryConfig.filter(item => {
        if (!item.hasOwnProperty('isShow') || item.isShow) {
          return item;
        }
      });
    }
  },
  methods: {
    ...Object(external_vuex_["mapMutations"])('product', ['setLoading']),
    handleClose() {
      this.$emit('update:visible', false);
    },
    handleSend() {
      this.$refs.ruleForm.validate(valid => {
        if (valid) {
          this.setLoading(true);
          if (this.isSendPdf) {
            // Bus.$emit("sendPdf");
            this.$emit("handleSend");
          } else {
            this.$emit("handleSend");
          }
        } else {
          return false;
        }
      });
    }
  }
});
// CONCATENATED MODULE: ./components/FormDialog.vue?vue&type=script&lang=js
 /* harmony default export */ var components_FormDialogvue_type_script_lang_js = (FormDialogvue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./components/FormDialog.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(180)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_FormDialogvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "b3af2fb8",
  "36e65bba"
  
)

/* harmony default export */ var FormDialog = __webpack_exports__["default"] = (component.exports);

/* nuxt-component-imports */
installComponents(component, {Tinymce: __webpack_require__(143).default})


/***/ }),

/***/ 180:
/***/ (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_FormDialog_vue_vue_type_style_index_0_id_b3af2fb8_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(156);
/* 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_FormDialog_vue_vue_type_style_index_0_id_b3af2fb8_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_FormDialog_vue_vue_type_style_index_0_id_b3af2fb8_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_FormDialog_vue_vue_type_style_index_0_id_b3af2fb8_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_FormDialog_vue_vue_type_style_index_0_id_b3af2fb8_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 187:
/***/ (function(module, exports) {

// Exports
module.exports = {

};


/***/ }),

/***/ 192:
/***/ (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/TabNav.vue?vue&type=template&id=8a32da06&scoped=true
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c('div', {
    staticClass: "tabs",
    style: {
      marginTop: _vm.marginTop + 'px',
      marginBottom: _vm.marginBottom + 'px',
      fontSize: _vm.fontSize + 'px'
    }
  }, [_vm._ssrNode(Array.isArray(_vm.tabList) ? "<ul" + _vm._ssrClass(null, _vm.borderType) + " data-v-8a32da06>" + _vm._ssrList(_vm.tabList, function (item, i) {
    return !item.hasOwnProperty('isShow') || item.isShow ? "<li" + _vm._ssrClass(null, {
      active: i === _vm.currTab
    }) + _vm._ssrStyle(null, {
      minWidth: _vm.liWidth + 'px',
      height: _vm.liHeight + 'px',
      lineHeight: _vm.liHeight + 'px',
      marginRight: _vm.marginRight + 'px'
    }, null) + " data-v-8a32da06><div data-v-8a32da06>" + _vm._ssrEscape(_vm._s(item.name)) + "</div></li>" : "<!---->";
  }) + _vm._ssrList(_vm.comRemaining, function (item) {
    return "<li class=\"unclickable\"" + _vm._ssrStyle(null, {
      minWidth: _vm.liWidth + 'px',
      lineHeight: _vm.liHeight + 'px',
      marginRight: _vm.marginRight + 'px'
    }, null) + " data-v-8a32da06><div data-v-8a32da06>" + _vm._ssrEscape(_vm._s(item)) + "</div></li>";
  }) + "</ul>" : "<ul data-v-8a32da06>" + _vm._ssrList(Object.keys(_vm.tabList), function (val, i) {
    return "<li" + _vm._ssrClass(null, {
      active: i === _vm.currTab
    }) + _vm._ssrStyle(null, {
      minWidth: _vm.liWidth + 'px',
      marginRight: _vm.marginRight + 'px'
    }, null) + " data-v-8a32da06><div data-v-8a32da06>" + _vm._ssrEscape(_vm._s(val)) + "</div></li>";
  }) + "</ul>")]);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./components/TabNav.vue?vue&type=template&id=8a32da06&scoped=true

// 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/TabNav.vue?vue&type=script&lang=js
/* harmony default export */ var TabNavvue_type_script_lang_js = ({
  props: {
    // color: {
    //   type: String,
    // },
    borderType: {
      type: String,
      default: 'noBorder'
    },
    fontSize: {
      type: Number,
      default: 14
    },
    marginTop: {
      type: Number,
      default: 0
    },
    marginBottom: {
      type: Number,
      default: 10
    },
    liWidth: {
      type: Number,
      default: 0
    },
    liHeight: {
      type: Number,
      default: 28
    },
    marginRight: {
      type: Number,
      default: 0
    },
    currTab: {
      type: [Number, String],
      default: 0
    },
    tabList: {
      type: [Array, Object],
      default: () => {
        return [];
      }
    },
    allPrintTab: {
      type: [Array, Object],
      default: () => {
        return [];
      }
    }
  },
  data() {
    return {
      textColor: 'red'
    };
  },
  computed: {
    comRemaining() {
      const mapTabList = this.tabList.map(i => i.name);
      return this.allPrintTab.filter(element => !mapTabList.includes(element));
    }
  },
  methods: {
    selTab(i) {
      this.$emit('update:currTab', i);
      this.$emit('handle');
    }
  }
});
// CONCATENATED MODULE: ./components/TabNav.vue?vue&type=script&lang=js
 /* harmony default export */ var components_TabNavvue_type_script_lang_js = (TabNavvue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./components/TabNav.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(201)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_TabNavvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "8a32da06",
  "13345fdc"
  
)

/* harmony default export */ var TabNav = __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 198:
/***/ (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_NewPriceTable_vue_vue_type_style_index_0_id_05e92126_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(170);
/* 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_NewPriceTable_vue_vue_type_style_index_0_id_05e92126_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_NewPriceTable_vue_vue_type_style_index_0_id_05e92126_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_NewPriceTable_vue_vue_type_style_index_0_id_05e92126_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_NewPriceTable_vue_vue_type_style_index_0_id_05e92126_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 199:
/***/ (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_2b5fb566_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(171);
/* 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_2b5fb566_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_2b5fb566_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_2b5fb566_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_2b5fb566_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 200:
/***/ (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_UnitTable_vue_vue_type_style_index_0_id_931e8840_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(172);
/* 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_UnitTable_vue_vue_type_style_index_0_id_931e8840_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_UnitTable_vue_vue_type_style_index_0_id_931e8840_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_UnitTable_vue_vue_type_style_index_0_id_931e8840_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_UnitTable_vue_vue_type_style_index_0_id_931e8840_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 201:
/***/ (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_TabNav_vue_vue_type_style_index_0_id_8a32da06_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(173);
/* 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_TabNav_vue_vue_type_style_index_0_id_8a32da06_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_TabNav_vue_vue_type_style_index_0_id_8a32da06_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_TabNav_vue_vue_type_style_index_0_id_8a32da06_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_TabNav_vue_vue_type_style_index_0_id_8a32da06_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 202:
/***/ (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_PcSwitch_vue_vue_type_style_index_0_id_58d567c2_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(174);
/* 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_PcSwitch_vue_vue_type_style_index_0_id_58d567c2_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_PcSwitch_vue_vue_type_style_index_0_id_58d567c2_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_PcSwitch_vue_vue_type_style_index_0_id_58d567c2_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_PcSwitch_vue_vue_type_style_index_0_id_58d567c2_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 208:
/***/ (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/NewPriceTable.vue?vue&type=template&id=05e92126&scoped=true
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c('div', {
    staticClass: "wrap",
    style: {
      marginBottom: _vm.marginBottom + 'px'
    }
  }, [_vm._ssrNode((_vm.tableType != 'Addon' ? "<p class=\"tb-title\" data-v-05e92126>" + _vm._s(_vm.comTitle) + "</p>" : "<!---->") + " "), _vm._ssrNode("<div" + _vm._ssrClass(null, _vm.getTableContainerClass) + " data-v-05e92126>", "</div>", [_c('el-table', {
    ref: "elTable",
    staticStyle: {
      "width": "100%"
    },
    attrs: {
      "show-header": _vm.tableType != 'Addon',
      "data": _vm.comTableData,
      "header-cell-style": {
        backgroundColor: '#fff',
        fontWeight: 'normal',
        fontSize: '14px',
        fontFamily: 'Proxima Nova',
        color: '#000',
        '--comDisplayCss': _vm.comDisplayCss
      },
      "row-key": "id",
      "span-method": _vm.arraySpanMethod,
      "row-class-name": _vm.tableRowClassName
    },
    on: {
      "selection-change": _vm.handleSelectionChange,
      "select": _vm.dialogCheck
    }
  }, [_vm.tableType != 'Comparison' ? _c('el-table-column', {
    attrs: {
      "type": "selection",
      "width": "50",
      "align": "center",
      "reserve-selection": true,
      "selectable": _vm.handleSelectable
    }
  }) : _vm._e(), _vm._v(" "), _vm._l(_vm.tableColumns, function (item) {
    return [item.type ? _c('el-table-column', {
      key: item.prop,
      attrs: {
        "align": item.align ? item.align : 'left',
        "prop": item.prop,
        "label": item.label,
        "formatter": item.formatter,
        "width": item.width,
        "sortable": item.sortable
      },
      scopedSlots: _vm._u([{
        key: "default",
        fn: function ({
          row
        }) {
          return [item.type == 'radioInput' ? [_c('div', {
            staticClass: "flex between"
          }, [_c('span', [_vm._v(_vm._s(row.decName))]), _vm._v(" "), _c('el-input', {
            staticClass: "edit-input",
            attrs: {
              "min": "0",
              "max": row.max_num,
              "type": "number",
              "size": "small"
            },
            on: {
              "input": function ($event) {
                return _vm.getNumber($event, row, row.max_num);
              }
            },
            model: {
              value: row.num,
              callback: function ($$v) {
                _vm.$set(row, "num", $$v);
              },
              expression: "row.num"
            }
          })], 1)] : _c('div', [row.filter_boolean ? [_c('div', {
            staticClass: "triangle"
          }), _vm._v(" "), _c('div', {
            staticClass: "text"
          }, [_vm._v("Eco")])] : _vm._e(), _vm._v("\n              " + _vm._s(row[item.prop]) + "\n              "), _vm.tableType == 'Undecorated' ? _c('el-popover', {
            attrs: {
              "placement": "top-start",
              "trigger": "hover"
            }
          }, [_c('i', {
            staticClass: "el-icon-warning",
            attrs: {
              "slot": "reference"
            },
            slot: "reference"
          }), _vm._v(" "), _c('p', {
            staticClass: "popover-text"
          }, [_vm._v(_vm._s(_vm.comTitle))])]) : _vm._e()], 2)];
        }
      }], null, true)
    }) : _vm._e(), _vm._v(" "), !item.type ? _c('el-table-column', {
      key: item.prop,
      attrs: {
        "align": item.align ? item.align : 'center',
        "prop": item.prop,
        "label": item.label,
        "formatter": item.formatter,
        "sortable": item.sortable,
        "show-overflow-tooltip": "",
        "width": (798 - _vm.tableColumns[0].width - _vm.tableColumns[0].extraWidth) / (_vm.tableColumns.length - 1)
      },
      scopedSlots: _vm._u([{
        key: "default",
        fn: function ({
          row,
          $index
        }) {
          return [item.prop === 'website_setup' ? _c('div', [$index === 0 && _vm.tableType == 'Decoration' ? _c('div', [row['supplier_setup_id'] < 5 || row['supplier_setup_id'] == 7 ? _c('span', [_vm._v("$ " + _vm._s(row['supplier_setup'] ? parseFloat(row['supplier_setup']).toFixed(2) : "0.00"))]) : _vm._e(), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.$_setupPriceFilter(row['supplier_setup_id'])))])]) : _c('div', [row['website_setup_id'] < 5 || row['website_setup_id'] == 7 ? _c('span', [_vm._v("$ " + _vm._s(row['website_setup'] ? parseFloat(row['website_setup']).toFixed(2) : "0.00"))]) : _vm._e(), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.$_setupPriceFilter(row['website_setup_id'])))])])]) : _vm.judgeProp(row, item.prop, $index) == '111' || _vm.judgeProp(row, item.prop, $index) == '111.00' ? _c('div', [_vm._v("\n              -\n            ")]) : _vm.judgeProp(row, item.prop, $index) == '999' || _vm.judgeProp(row, item.prop, $index) === '999.00' ? _c('div', [_vm._v("\n              POA\n            ")]) : _vm.judgeProp(row, item.prop, $index) === '' ? _c('div', [_vm._v("0")]) : _c('div', [_vm.isNumber(_vm.judgeProp(row, item.prop, $index)) && !item.isFirstColumn ? _c('span', [_vm._v("$")]) : _vm._e(), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.judgeProp(row, item.prop, $index)))])])];
        }
      }], null, true)
    }) : _vm._e()];
  })], 2)], 1)], 2);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./components/table/NewPriceTable.vue?vue&type=template&id=05e92126&scoped=true

// EXTERNAL MODULE: external "number-precision"
var external_number_precision_ = __webpack_require__(112);

// 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/NewPriceTable.vue?vue&type=script&lang=js

/* harmony default export */ var NewPriceTablevue_type_script_lang_js = ({
  filters: {
    // Decoration Table：打印价格+附加价格
    multiplyPrice(a1, row, prop) {
      const rep = /^[0-9]+.?[0-9]*$/;
      if (!rep.test(a1)) {
        return a1;
      } else {
        return Object(external_number_precision_["times"])(a1, row.num);
      }
    },
    // Undecorated Table：基础价格+Decoration所选价格（包含附加价格）
    plusPrice(a1, a2) {
      return a2 ? Object(external_number_precision_["plus"])(a1, a2) : a1;
    },
    // Decoration Table：计算差价
    differencePrice(a1, row, prop, selectRow) {
      const rep = /^[0-9]+.?[0-9]*$/;
      if (rep.test(a1)) {
        const temp = prop.split('_');
        const supplier = +row[`supplier_${temp[1]}`];
        const suppliers = Object(external_number_precision_["times"])(row.num - 1, supplier);
        const noIncludePrice = Object(external_number_precision_["plus"])(a1, suppliers);
        const selSupplier = +selectRow[`supplier_${temp[1]}`];
        const selSuppliers = Object(external_number_precision_["times"])(selectRow.num - 1, selSupplier);
        const isIncludePrice = Object(external_number_precision_["plus"])(+selectRow[prop], selSuppliers);
        return noIncludePrice > isIncludePrice ? `+${Object(external_number_precision_["minus"])(noIncludePrice, isIncludePrice)}` : Object(external_number_precision_["minus"])(noIncludePrice, isIncludePrice);
      } else {
        return a1;
      }
    }
  },
  props: {
    hasDecAdd: {
      type: Number,
      default: 0
    },
    tableData: {
      type: Array,
      default: () => {
        return [];
      }
    },
    tableColumns: {
      type: Array,
      default: () => {
        return [];
      }
    },
    operateWith: {
      type: String,
      default: '100%'
    },
    isCheckBox: {
      type: Boolean,
      default: false
    },
    tableType: {
      type: String,
      default: 'Undecorated'
    },
    decorationObj: {
      type: Object,
      default: () => {
        return {};
      }
    },
    selectId: {
      type: Number,
      default: null
    },
    selectRow: {
      type: Object,
      default: () => {
        return {};
      }
    },
    multipleSelection: {
      type: Array,
      default: () => {
        return [];
      }
    },
    selectDecoration: {
      type: Object,
      default: () => {
        return {};
      }
    },
    curPrint: {
      type: String,
      default: ''
    },
    curModel: {
      type: String,
      default: ''
    },
    marginBottom: {
      type: Number,
      default: 20
    },
    decorationMultiple: {
      type: Number,
      default: 1
    },
    headerShow: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {
      setupConfigList: [{
        id: 1,
        name: '/col'
      }, {
        id: 2,
        name: '/desgin'
      }, {
        id: 3,
        name: '/pos'
      }, {
        id: 4,
        name: '/pos desgin'
      }, {
        id: 5,
        name: 'POA'
      }, {
        id: 6,
        name: 'Waived'
      }],
      setupTitleList: ['1st', '2nd', '3rd']
    };
  },
  computed: {
    getTableContainerClass() {
      // 根据tableType的值返回不同的class
      return {
        'table-container': true,
        'border-Decoration': this.tableType === 'Decoration' && this.hasDecAdd
      };
    },
    comTitle() {
      if (this.tableType === 'Undecorated') {
        return `Includes ${this.curModel}`;
      } else if (this.tableType === 'Decoration') {
        return `Add-Ons`;
      } else {
        return this.curPrint;
      }
    },
    comDisplayCss() {
      return this.tableType === 'Comparison' ? '1px solid #efefef' : 'none';
    },
    comMultipleSelID() {
      return this.multipleSelection.map(i => i.id);
    },
    comTableData() {
      if (this.tableType === 'Decoration') {
        return this.tableData;
      } else {
        return this.tableData;
      }
    }
  },
  mounted() {
    // 初始勾上默认选择打印项
    if (JSON.stringify(this.selectRow) !== '{}') {
      this.$refs.elTable.toggleRowSelection(this.selectRow);
    }
  },
  methods: {
    judgeProp(row, prop, $index) {
      if ($index === 0 && this.tableType === 'Decoration') {
        const temp = prop.split('_');
        return row[`supplier_${temp[1]}`];
      } else {
        return row[prop];
      }
    },
    $_setupPriceFilter(setupPriceID) {
      const result = this.setupConfigList.filter(item => item.id === setupPriceID);
      return result.length > 0 ? result[0].name : '';
    },
    isNumber(val) {
      const rep = /^[0-9]+.?[0-9]*$/;
      return rep.test(val);
    },
    /* 暂不实现此功能
    //点击table栏时选中按钮
    handleCurrentChange(currentRow, oldCurrentRow) {
      this.$refs.elTable.clearSelection()
      this.$emit('update:selectId', currentRow.id)
      this.addCar(currentRow)
    },
    */
    // table全选
    handleSelectionChange(val) {
      this.$emit('update:multipleSelection', val);
    },
    dialogCheck(selection, row) {
      if (this.isCheckBox) return; // 是多选框返回
      this.$refs.elTable.clearSelection();
      // 初始化
      if (selection.length === 0) {
        this.$emit('update:selectId', null);
        this.$emit('update:selectRow', {});
        return;
      }
      if (row) {
        this.$emit('update:selectId', row.id);
        this.$emit('update:selectRow', row);
        this.$refs.elTable.toggleRowSelection(row, true);
      }
    },
    addCar(currentRow) {
      // 加入购物车需要parentId
      const selrow = Object.assign({}, currentRow);
      selrow.parentId = this.decorationObj.parentId;
      this.$emit('update:selectRow', selrow);
      this.$refs.elTable.toggleRowSelection(currentRow);
    },
    getRowKey(row) {
      return row.id;
    },
    arraySpanMethod({
      row,
      column,
      rowIndex,
      columnIndex
    }) {
      // 隐藏'Decoration'选项框
      if (this.tableType === 'Decoration' && columnIndex === 0) {
        return [0, 1];
      }
      if (this.tableType === 'Decoration' && columnIndex === 1) {
        return [1, 2];
      }
    },
    tableRowClassName({
      row
    }) {
      if (this.tableType === 'Decoration') {
        return this.decorationMultiple ? 'borderNone' : 'hiddenRow';
      }
      return 'fontBold';
    },
    handleSelectable(row, index) {
      // website_setup_id 5为POA，不可选
      return row.website_setup_id !== 5;
    },
    getNumber(e, row, max) {
      if (parseInt(e) > max) {
        row.num = max;
      }
    }
  }
});
// CONCATENATED MODULE: ./components/table/NewPriceTable.vue?vue&type=script&lang=js
 /* harmony default export */ var table_NewPriceTablevue_type_script_lang_js = (NewPriceTablevue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./components/table/NewPriceTable.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(198)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  table_NewPriceTablevue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "05e92126",
  "3abcc2b4"
  
)

/* harmony default export */ var NewPriceTable = __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 209:
/***/ (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=2b5fb566&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-2b5fb566><span data-v-2b5fb566>" + _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-2b5fb566>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=2b5fb566&scoped=true

// EXTERNAL MODULE: external "number-precision"
var external_number_precision_ = __webpack_require__(112);

// 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__(199)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  table_TotalTablevue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "2b5fb566",
  "2d8b8c59"
  
)

/* harmony default export */ var TotalTable = __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 210:
/***/ (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/UnitTable.vue?vue&type=template&id=931e8840&scoped=true
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c('div', [_vm._ssrNode("<p class=\"tb-title\" data-v-931e8840>Markup %</p> "), _c('el-table', {
    ref: "elTable",
    style: {
      width: _vm.operateWith
    },
    attrs: {
      "border": "",
      "data": _vm.tableData,
      "highlight-current-row": false,
      "header-cell-style": {
        backgroundColor: '#fff',
        color: '#606266',
        fontWeight: 500,
        fontSize: '16px'
      }
    }
  }, [_vm._l(_vm.tableColumns, function (item) {
    return [item.isText ? _c('el-table-column', {
      key: item.prop,
      attrs: {
        "align": "center",
        "prop": item.prop,
        "label": item.label,
        "formatter": item.formatter,
        "width": item.width,
        "sortable": item.sortable
      }
    }) : _vm._e(), _vm._v(" "), !item.isText ? _c('el-table-column', {
      key: item.prop,
      attrs: {
        "prop": item.prop,
        "label": item.label,
        "formatter": item.formatter,
        "width": item.width,
        "align": item.align ? item.align : 'center',
        "sortable": item.sortable
      },
      scopedSlots: _vm._u([{
        key: "default",
        fn: function ({
          row,
          $index
        }) {
          return [_c('el-input', {
            staticClass: "edit-input",
            attrs: {
              "size": "small",
              "type": "number",
              "min": "0"
            },
            on: {
              "input": function ($event) {
                return _vm.saveUnitData(row, $index);
              }
            },
            model: {
              value: row[item.prop],
              callback: function ($$v) {
                _vm.$set(row, item.prop, $$v);
              },
              expression: "row[item.prop]"
            }
          })];
        }
      }], null, true)
    }) : _vm._e()];
  })], 2)], 2);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./components/table/UnitTable.vue?vue&type=template&id=931e8840&scoped=true

// 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/UnitTable.vue?vue&type=script&lang=js
/* harmony default export */ var UnitTablevue_type_script_lang_js = ({
  props: {
    tableData: {
      type: Array,
      default: []
    },
    tableColumns: {
      type: Array,
      default: []
    },
    operateWith: {
      type: String,
      default: "100%"
    },
    selectionShow: {
      type: Boolean,
      default: false
    },
    handleShow: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    saveUnitData(row, idx) {
      this.tableData[idx] = row;
      localStorage.setItem('unit', JSON.stringify(this.tableData));
    }
  }
});
// CONCATENATED MODULE: ./components/table/UnitTable.vue?vue&type=script&lang=js
 /* harmony default export */ var table_UnitTablevue_type_script_lang_js = (UnitTablevue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./components/table/UnitTable.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(200)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  table_UnitTablevue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "931e8840",
  "64e990ea"
  
)

/* harmony default export */ var UnitTable = __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 211:
/***/ (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/MailTable.vue?vue&type=template&id=13e7bb30&scoped=true
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c('div', [_vm._ssrNode("<table border=\"1\" bordercolor=\"#000\" style=\"\\n      border-collapse: collapse;\\n      font-size: 14px;\\n      table-layout: fixed;\\n      width: 100%;\\n      min-width: 800px;\\n    \" data-v-13e7bb30>", "</table>", [_vm._ssrNode("<tbody data-v-13e7bb30>", "</tbody>", [_vm._ssrNode(_vm._ssrList(_vm.mailData, function (items, key, i) {
    return "<tr data-v-13e7bb30><td" + _vm._ssrStyle({
      "padding": "18px 0",
      "width": "40%",
      "text-align": "center",
      "color": "#000"
    }, (i == 1 || i == 10) && _vm.objStyle, null) + " data-v-13e7bb30>" + _vm._ssrEscape("\n          " + _vm._s(key) + "\n        ") + "</td> <td style=\"padding: 18px 10px\" data-v-13e7bb30>" + (typeof items == 'string' ? "<div data-v-13e7bb30>" + (items.indexOf('@') != -1 || items.indexOf('http') != -1 ? "<a" + _vm._ssrAttr("href", items) + " style=\"color: #6495ed; text-decoration: none\" data-v-13e7bb30><span data-v-13e7bb30>" + _vm._ssrEscape(_vm._s(items)) + "</span></a>" : "<span data-v-13e7bb30>" + _vm._ssrEscape(_vm._s(items)) + "</span>") + "</div>" : _vm.$utils.checkType(items) == 'Object' ? "<div style=\"\\n                width: 100%;\\n                display: flex;\\n                justify-content: space-between;\\n              \" data-v-13e7bb30>" + _vm._ssrList(items, function (item, i) {
      return "<div style=\"text-align: left; width: 100%\" data-v-13e7bb30>" + (key == 'QTY' ? "<span data-v-13e7bb30>" + _vm._ssrEscape(_vm._s(item)) + "</span>" : "<span data-v-13e7bb30>" + _vm._ssrEscape("$" + _vm._s(item)) + "</span>") + "</div>";
    }) + "</div>" : _vm._ssrList(items, function (item, i) {
      return "<div style=\"line-height: 20px\" data-v-13e7bb30><span data-v-13e7bb30>" + _vm._ssrEscape(_vm._s(item)) + "</span></div>";
    })) + "</td></tr>";
  }) + " "), _vm._ssrNode("<tr data-v-13e7bb30>", "</tr>", [_vm._ssrNode("<td colspan=\"2\" style=\"padding: 20px\" data-v-13e7bb30>", "</td>", [_vm._t("default")], 2)])], 2)])]);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./components/table/MailTable.vue?vue&type=template&id=13e7bb30&scoped=true

// 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/MailTable.vue?vue&type=script&lang=js
/* harmony default export */ var MailTablevue_type_script_lang_js = ({
  props: {
    mailData: {},
    buyData: {}
  },
  data() {
    return {
      objStyle: {
        fontWeight: 'bold',
        backgroundColor: '#efefef'
      }
    };
  }
});
// CONCATENATED MODULE: ./components/table/MailTable.vue?vue&type=script&lang=js
 /* harmony default export */ var table_MailTablevue_type_script_lang_js = (MailTablevue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./components/table/MailTable.vue



function injectStyles (context) {
  
  
}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  table_MailTablevue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "13e7bb30",
  "532214b8"
  
)

/* harmony default export */ var MailTable = __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 212:
/***/ (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/PcSwitch.vue?vue&type=template&id=58d567c2&scoped=true
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c('div', {
    class: ['switch', _vm.status ? 'green' : 'red'],
    on: {
      "click": _vm.changeStatus
    }
  }, [_vm._ssrNode("<div" + _vm._ssrClass(null, ['switch_inner', _vm.status ? '' : 'right']) + " data-v-58d567c2>" + _vm._ssrEscape("\n    " + _vm._s(_vm.status ? 'Yes' : 'No') + "\n  ") + "</div>")]);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./components/PcSwitch.vue?vue&type=template&id=58d567c2&scoped=true

// 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/PcSwitch.vue?vue&type=script&lang=js
/* harmony default export */ var PcSwitchvue_type_script_lang_js = ({
  model: {
    prop: 'status',
    event: 'change'
  },
  props: {
    status: Boolean
  },
  methods: {
    changeStatus() {
      this.$emit('change', !this.status);
    }
  }
});
// CONCATENATED MODULE: ./components/PcSwitch.vue?vue&type=script&lang=js
 /* harmony default export */ var components_PcSwitchvue_type_script_lang_js = (PcSwitchvue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./components/PcSwitch.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(202)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_PcSwitchvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "58d567c2",
  "7fe150d6"
  
)

/* harmony default export */ var PcSwitch = __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 213:
/***/ (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/PriceToImg.vue?vue&type=template&id=145cbbd9
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c('div', {
    ref: "printArea",
    staticStyle: {
      "font-family": "ProximaNova-Regular",
      "background-color": "#fff",
      "padding": "20px",
      "word-break": "break-word",
      "box-sizing": "border-box"
    }
  }, [_vm._ssrNode("<table><tbody><tr><td style=\"margin-right: 14px;\">" + (_vm.isImgSrc ? "<img" + _vm._ssrAttr("src", _vm.comInfo.image) + " width=\"320\" height=\"320\">" : "<img width=\"250\" height=\"250\">") + "</td> <td style=\"vertical-align: top;\"><p style=\"font-weight: bold;font-size: 22px;padding-bottom: 24px;color:#00213B\"><span style=\"margin-right: 5px;\">" + _vm._ssrEscape(_vm._s(_vm.pageData.product_code)) + "</span> <span>" + _vm._ssrEscape(_vm._s(_vm.pageData.product_name)) + "</span></p> <p style=\"line-height: 20px;color:#00213B;font-size: 14px;\">" + _vm._s(_vm.comInfo.description) + "</p></td></tr></tbody></table> <div><p style=\"font-weight: bold;font-size: 17px;margin: 12px 0 8px;color:#00213B\">Specifications</p> <table style=\"width:100%;border-collapse: collapse;font-size: 14px;table-layout: fixed;text-align:center;\"><tbody><tr style=\"background-color: #F7F8FC;font-weight: bold;\">" + _vm._ssrList(_vm.headerColumns, function (item, key) {
    return "<td style=\"padding:10px 0;color:#00213B;width: 25%;font-size: 14px;border:1px solid #EFEFEF\">" + _vm._ssrEscape(_vm._s(item.label)) + "</td>";
  }) + "</tr> <tr>" + _vm._ssrList(_vm.headerColumns, function (item, key) {
    return "<td style=\"padding:10px 0 6px;color:#00213B;border:1px solid #EFEFEF\">" + (_vm.specificationsObj[item.prop] ? "<div>" + (item.prop != 'addonArr' ? "<span>" + _vm._ssrEscape(_vm._s(_vm.specificationsObj[item.prop])) + "</span>" : _vm._ssrList(_vm.specificationsObj.addonArr, function (opt, idx) {
      return "<div style=\"padding-bottom:4px;\">" + _vm._ssrEscape(_vm._s(opt)) + "</div>";
    })) + "</div>" : "<span>-</span>") + "</td>";
  }) + "</tr></tbody></table></div> <div><p style=\"font-weight: bold;font-size: 17px;margin: 12px 0 8px;color:#00213B\">Quote</p> <table style=\"width:100%;border-collapse: collapse;font-size: 14px;table-layout: fixed;text-align:center;\"><tbody>" + (_vm.comLocationNum !== 1 ? "<tr style=\"background-color: #F7F8FC;font-weight: bold;\"><td" + _vm._ssrAttr("colspan", _vm.tableColumns.length - 1) + " style=\"padding:10px 0;color:#00213B;border:1px solid #EFEFEF\">Quote</td> <td" + _vm._ssrStyle({
    "padding": "10px 0",
    "color": "#00213B",
    "border": "1px solid #EFEFEF"
  }, {
    width: _vm.comWidth
  }, null) + ">Total</td></tr>" : "<!---->") + " <tr style=\"background-color: #F7F8FC;font-weight: bold;\">" + _vm._ssrList(_vm.tableColumns, function (item, key) {
    return "<td" + _vm._ssrStyle({
      "padding": "10px 0",
      "color": "#00213B",
      "border": "1px solid #EFEFEF"
    }, {
      width: _vm.comWidth
    }, null) + ">" + _vm._ssrEscape(_vm._s(item.label)) + "</td>";
  }) + "</tr> " + _vm._ssrList(_vm.tableData, function (row) {
    return "<tr style=\"padding:10px 0;\">" + _vm._ssrList(_vm.tableColumns, function (column) {
      return "<td" + _vm._ssrStyle({
        "padding": "10px 0",
        "color": "#00213B",
        "border": "1px solid #EFEFEF",
        "white-space": "nowrap"
      }, _vm.getColumnHeaderStyle(column), null) + ">" + _vm._ssrEscape("\n           " + _vm._s(row[column.prop].includes('.') ? '$' : '') + " " + _vm._s(row[column.prop] ? row[column.prop] : '0.00') + "\n          ") + "</td>";
    }) + "</tr>";
  }) + "</tbody></table></div> " + (_vm.emailForm.Comments ? "<div style=\"color:#00213B\"><p style=\"margin: 20px 0;\">" + _vm._ssrEscape(_vm._s(_vm.emailForm.Comments)) + "</p></div>" : "<!---->"))]);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./components/PriceToImg.vue?vue&type=template&id=145cbbd9

// EXTERNAL MODULE: external "html2canvas"
var external_html2canvas_ = __webpack_require__(132);
var external_html2canvas_default = /*#__PURE__*/__webpack_require__.n(external_html2canvas_);

// 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/PriceToImg.vue?vue&type=script&lang=js

/* harmony default export */ var PriceToImgvue_type_script_lang_js = ({
  props: {
    pageData: {
      type: Object,
      default: {}
    },
    specificationsObj: {
      type: Object,
      default: {}
    },
    tableData: {
      type: Array,
      default: []
    },
    tableColumns: {
      type: Array,
      default: []
    },
    comLocationNum: {
      type: Number,
      default: 1
    },
    emailForm: {
      type: Object,
      default: {}
    },
    loading: {
      type: Boolean,
      default: false
    },
    isImgSrc: {
      type: Boolean,
      default: true
    },
    width: {
      type: String,
      default: '100%'
    }
  },
  data() {
    return {
      headerColumns: [{
        label: "LeadTime",
        prop: "time",
        type: "pre" //去掉$符号
      }, {
        label: "Model",
        prop: "model",
        type: "pre" //去掉$符号
      }, {
        label: "Decoration",
        prop: "decoration",
        type: "pre" //去掉$符号
      }, {
        label: "Add On",
        prop: "addonArr",
        type: "pre" //去掉$符号
      }]
    };
  },
  computed: {
    comInfo() {
      var _this$pageData;
      return (_this$pageData = this.pageData) === null || _this$pageData === void 0 ? void 0 : _this$pageData.main;
    },
    comWidth() {
      return 100 / this.tableColumns.length + '%';
    }
  },
  created() {
    if (!this.isImgSrc) {
      this.getBase64Image(this.comInfo.image, 'productImg');
    }
  },
  methods: {
    getColumnHeaderStyle(column) {
      if (column.prop === 'project') {
        return {
          'font-weight': 'bold'
        };
      }
      return {};
    },
    //Base64生成产品图片，因为跨域
    getBase64Image(url, ref) {
      var that = this;
      var image = new Image();
      image.src = url + '?v=' + Math.random(); // 处理缓存
      image.crossOrigin = '*'; // 支持跨域图片
      image.onload = function () {
        var base64 = that.drawBase64Image(image);
        that.$refs[ref].src = base64;
      };
    },
    drawBase64Image(img) {
      var canvas = document.createElement('canvas');
      canvas.width = img.width;
      canvas.height = img.height;
      var ctx = canvas.getContext('2d');
      ctx.drawImage(img, 0, 0, img.width, img.height);
      var dataURL = canvas.toDataURL('image/png');
      return dataURL;
    },
    htmlToPdf(title) {
      const element = this.$refs.printArea;
      const clientWidth = element.offsetWidth;
      const clientHeight = element.offsetHeight;
      const kh = [clientWidth, clientHeight];
      const opts = {
        scale: 1.5,
        // 缩放比例，提高生成图片清晰度
        useCORS: true,
        // 允许加载跨域的图片
        // allowTaint: true, // 允许图片跨域，和 useCORS 二者不可共同使用
        tainttest: true,
        // 检测每张图片已经加载完成
        logging: true // 日志开关，发布的时候记得改成 false
      };
      external_html2canvas_default()(element, opts).then(canvas => {
        const dataURL = canvas.toDataURL('image/png');
        this.downloadImage(dataURL, kh, title);
        this.$emit('update:loading', false);
      }).catch(() => {
        this.$emit('update:loading', false);
        // Bus.$emit("finishDownload");
      });
    },
    getUrlBase64(url, kh) {
      return new Promise(resolve => {
        let canvas = document.createElement('canvas');
        const ctx = canvas.getContext('2d');
        const img = new Image();
        img.crossOrigin = 'Anonymous'; // 允许跨域
        img.src = url;
        img.onload = () => {
          // eslint-disable-next-line prefer-destructuring
          canvas.height = kh[1];
          // eslint-disable-next-line prefer-destructuring
          canvas.width = kh[0];
          ctx.drawImage(img, 0, 0, kh[0], kh[1]);
          const dataURL = canvas.toDataURL('image/png');
          canvas = null;
          resolve(dataURL);
        };
      });
    },
    downloadImage(imgUrl, kh, title) {
      this.getUrlBase64(imgUrl, kh).then(base64 => {
        const link = document.createElement('a');
        link.href = base64;
        link.download = `${title}.png`;
        link.click();
      });
    }
  }
});
// CONCATENATED MODULE: ./components/PriceToImg.vue?vue&type=script&lang=js
 /* harmony default export */ var components_PriceToImgvue_type_script_lang_js = (PriceToImgvue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./components/PriceToImg.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_PriceToImgvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  null,
  null,
  "fb9ab2e6"
  
)

/* harmony default export */ var PriceToImg = __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 231:
/***/ (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_Quote_vue_vue_type_style_index_0_id_8320de5e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(187);
/* 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_Quote_vue_vue_type_style_index_0_id_8320de5e_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_Quote_vue_vue_type_style_index_0_id_8320de5e_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_Quote_vue_vue_type_style_index_0_id_8320de5e_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_Quote_vue_vue_type_style_index_0_id_8320de5e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 241:
/***/ (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/product/Quote.vue?vue&type=template&id=8320de5e&scoped=true
var render = function render() {
  var _vm$comCurBaseColumns, _vm$enquiryConfig$3$s;
  var _vm = this,
    _c = _vm._self._c;
  return _c('div', [_vm.quoteLoadState == 0 ? _c('div', {
    directives: [{
      name: "loading",
      rawName: "v-loading",
      value: true,
      expression: "true"
    }],
    staticClass: "com-loading"
  }) : _vm.quoteLoadState == 1 ? _vm._ssrNode("<div data-v-8320de5e>", "</div>", [_c('tab-nav', {
    attrs: {
      "borderType": 'allBorder',
      "liWidth": 100,
      "liHeight": 40,
      "marginRight": 5,
      "currTab": _vm.curWeek,
      "tabList": _vm.priceList
    },
    on: {
      "update:currTab": function ($event) {
        _vm.curWeek = $event;
      },
      "update:curr-tab": function ($event) {
        _vm.curWeek = $event;
      }
    }
  }), _vm._ssrNode(" "), _vm._l(_vm.priceList, function (items, indexs) {
    var _items$basePrice, _items$decoration, _items$basePrice2, _items$basePrice2$ite, _items$basePrice2$ite2, _items$basePrice3, _items$basePrice3$ite, _items$basePrice3$ite2;
    return _vm._ssrNode("<div" + _vm._ssrStyle(null, null, {
      display: _vm.curWeek == indexs ? '' : 'none'
    }) + " data-v-8320de5e>", "</div>", [_vm._ssrNode("<div data-v-8320de5e>", "</div>", [_c('tab-nav', {
      attrs: {
        "borderType": 'incompleteBorder',
        "currTab": items.curPrint,
        "tabList": items.basePrice,
        "allPrintTab": _vm.allPrintTab,
        "marginTop": 0,
        "marginRight": 5,
        "marginBottom": ((_items$basePrice = items.basePrice) === null || _items$basePrice === void 0 ? void 0 : _items$basePrice.length) > 1 ? 7 : 0
      },
      on: {
        "update:currTab": function ($event) {
          return _vm.$set(items, "curPrint", $event);
        },
        "update:curr-tab": function ($event) {
          return _vm.$set(items, "curPrint", $event);
        },
        "handle": function ($event) {
          return _vm.sortBy(items);
        }
      }
    })], 1), _vm._ssrNode(" "), _vm._l(items.basePrice, function (item, index) {
      var _items$decorationOrig;
      return _vm._ssrNode("<div" + _vm._ssrStyle(null, null, {
        display: items.curPrint == index ? '' : 'none'
      }) + " data-v-8320de5e>", "</div>", [_c('new-price-table', {
        attrs: {
          "tableColumns": [..._vm.undecorated_columns, ...item.part_columns],
          "tableData": item.data,
          "tableType": 'Undecorated',
          "curPrint": item.name,
          "curModel": (_items$decorationOrig = items.decorationOrign[index]) === null || _items$decorationOrig === void 0 ? void 0 : _items$decorationOrig.model,
          "data": items,
          "selectRow": item.selectBaseRow
        },
        on: {
          "update:selectRow": function ($event) {
            return _vm.$set(item, "selectBaseRow", $event);
          },
          "update:select-row": function ($event) {
            return _vm.$set(item, "selectBaseRow", $event);
          }
        }
      })], 1);
    }), _vm._ssrNode(" "), (_items$decoration = items.decoration) !== null && _items$decoration !== void 0 && _items$decoration.length || (_items$basePrice2 = items.basePrice) !== null && _items$basePrice2 !== void 0 && (_items$basePrice2$ite = _items$basePrice2[items.curPrint]) !== null && _items$basePrice2$ite !== void 0 && (_items$basePrice2$ite2 = _items$basePrice2$ite.decoration_addition) !== null && _items$basePrice2$ite2 !== void 0 && _items$basePrice2$ite2.length ? _c('new-price-table', {
      attrs: {
        "tableData": items.decoration,
        "tableColumns": [..._vm.decoration_columns, ..._vm.comCurBaseColumns],
        "tableType": 'Decoration',
        "marginBottom": 0,
        "hasDecAdd": (_items$basePrice3 = items.basePrice) === null || _items$basePrice3 === void 0 ? void 0 : (_items$basePrice3$ite = _items$basePrice3[items.curPrint]) === null || _items$basePrice3$ite === void 0 ? void 0 : (_items$basePrice3$ite2 = _items$basePrice3$ite.decoration_addition) === null || _items$basePrice3$ite2 === void 0 ? void 0 : _items$basePrice3$ite2.length
      }
    }) : _vm._e(), _vm._ssrNode(" "), _vm._l(items.basePrice, function (item, index) {
      return _vm._ssrNode("<div" + _vm._ssrStyle(null, null, {
        display: items.curPrint == index && item.decoration_addition.length ? '' : 'none'
      }) + " data-v-8320de5e>", "</div>", [_c('new-price-table', {
        attrs: {
          "tableData": item.decoration_addition,
          "tableColumns": [..._vm.addon_columns, ...item.part_columns],
          "isCheckBox": true,
          "tableType": 'Addon',
          "multipleSelection": items.selectAdditionRow
        },
        on: {
          "update:multipleSelection": function ($event) {
            return _vm.$set(items, "selectAdditionRow", $event);
          },
          "update:multiple-selection": function ($event) {
            return _vm.$set(items, "selectAdditionRow", $event);
          }
        }
      })], 1);
    })], 2);
  }), _vm._ssrNode(" "), _vm._ssrNode("<section data-v-8320de5e>", "</section>", [_vm._ssrNode("<p class=\"title1\" data-v-8320de5e><span data-v-8320de5e></span> <span data-v-8320de5e>Currency AUD($)</span></p> "), _c('total-table', {
    attrs: {
      "comLocationNum": _vm.comLocationNum,
      "tableData": _vm.comBuyData,
      "tableColumns": [..._vm.buy_columns, ..._vm.comCurBaseTotalColumns],
      "curOrder": `${_vm.curWeek}-${_vm.comCurPrint}`,
      "min": (_vm$comCurBaseColumns = _vm.comCurBaseColumns[0]) === null || _vm$comCurBaseColumns === void 0 ? void 0 : _vm$comCurBaseColumns.label,
      "title": 'Buy Price'
    },
    on: {
      "send-idx": _vm.getChildIdx
    }
  }), _vm._ssrNode(" <p class=\"text-red\" data-v-8320de5e>Price is ex- gst</p> "), _vm._ssrNode("<ul data-v-8320de5e>", "</ul>", [_vm._ssrNode("<li class=\"entry\" data-v-8320de5e>", "</li>", [_vm._ssrNode("<div class=\"entry-l\" data-v-8320de5e>Delivery Locations</div> "), _c('el-input', {
    staticStyle: {
      "width": "130px"
    },
    attrs: {
      "placeholder": "Enter Num",
      "size": "small",
      "max": "7",
      "min": "1",
      "type": "number"
    },
    on: {
      "input": _vm.setMaxNum
    },
    model: {
      value: _vm.comCurBasePrice.locationNum,
      callback: function ($$v) {
        _vm.$set(_vm.comCurBasePrice, "locationNum", $$v);
      },
      expression: "comCurBasePrice.locationNum"
    }
  })], 2), _vm._ssrNode(" " + (_vm.comLocationNum > 1 ? "<li class=\"entry\" data-v-8320de5e><div class=\"entry-text\" data-v-8320de5e>Qty / Location</div></li>" : "<!---->") + " "), _vm._l(_vm.comCurBaseTotalColumns, function (i, k) {
    var _vm$comCurBaseColumns2;
    return _vm._ssrNode("<li class=\"entry\"" + _vm._ssrStyle(null, null, {
      display: _vm.comLocationNum > k ? '' : 'none'
    }) + " data-v-8320de5e>", "</li>", [_vm._ssrNode("<div class=\"entry-l\" data-v-8320de5e>Delivery Postcode</div> "), _c('el-input', {
      staticStyle: {
        "width": "130px",
        "margin-right": "20px"
      },
      attrs: {
        "clearable": "",
        "placeholder": "Enter Postcode",
        "size": "small"
      },
      on: {
        "input": function ($event) {
          return _vm.getDebFreight(k);
        }
      },
      model: {
        value: i.postcode,
        callback: function ($$v) {
          _vm.$set(i, "postcode", $$v);
        },
        expression: "\n            i.postcode"
      }
    }), _vm._ssrNode(" "), _vm.comLocationNum > 1 ? _c('el-input', {
      staticStyle: {
        "width": "130px",
        "margin-right": "20px"
      },
      attrs: {
        "placeholder": "Enter Qty",
        "type": "number",
        "min": (_vm$comCurBaseColumns2 = _vm.comCurBaseColumns[0]) === null || _vm$comCurBaseColumns2 === void 0 ? void 0 : _vm$comCurBaseColumns2.label,
        "size": "small"
      },
      on: {
        "blur": function ($event) {
          var _vm$comCurBaseColumns3;
          return _vm.getNumber($event, _vm.comCurBaseTotalColumns[k], (_vm$comCurBaseColumns3 = _vm.comCurBaseColumns[0]) === null || _vm$comCurBaseColumns3 === void 0 ? void 0 : _vm$comCurBaseColumns3.label);
        }
      },
      model: {
        value: i.label,
        callback: function ($$v) {
          _vm.$set(i, "label", $$v);
        },
        expression: "i.label"
      }
    }) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"entry-r\" data-v-8320de5e>", "</div>", [_vm._ssrNode("<span data-v-8320de5e>Freight Method</span> "), _c('el-radio-group', {
      on: {
        "change": function ($event) {
          return _vm.getFreight(k);
        }
      },
      model: {
        value: i.freight_type,
        callback: function ($$v) {
          _vm.$set(i, "freight_type", $$v);
        },
        expression: "i.freight_type"
      }
    }, [_c('el-radio', {
      attrs: {
        "label": 1
      }
    }, [_vm._v("Road Express")]), _vm._v(" "), _c('el-radio', {
      attrs: {
        "label": 2
      }
    }, [_vm._v("Air Freight")])], 1)], 2)], 2);
  })], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"entry\" data-v-8320de5e>", "</div>", [_vm._ssrNode("<div class=\"entry-l\" data-v-8320de5e>Setup</div> <div class=\"entry-l\" data-v-8320de5e>include in unit price</div> "), _c('pc-switch', {
    model: {
      value: _vm.setup_switch,
      callback: function ($$v) {
        _vm.setup_switch = $$v;
      },
      expression: "setup_switch"
    }
  })], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"entry\" data-v-8320de5e>", "</div>", [_vm._ssrNode("<div class=\"entry-l\" data-v-8320de5e>Freight</div> <div class=\"entry-l\" data-v-8320de5e>include in unit price</div> "), _vm._ssrNode("<div data-v-8320de5e>", "</div>", [_c('pc-switch', {
    model: {
      value: _vm.freight_switch,
      callback: function ($$v) {
        _vm.freight_switch = $$v;
      },
      expression: "freight_switch"
    }
  })], 1)], 2), _vm._ssrNode(" "), _c('el-button', {
    staticClass: "button-black",
    attrs: {
      "size": "medium"
    },
    on: {
      "click": _vm.openMailDialog
    }
  }, [_vm._v("\n        Enquiry\n      ")])], 2)], 2) : _vm._e(), _vm._ssrNode(" "), _c('no-ssr', [_vm.quoteLoadState == 1 ? _c('div', [_c('form-dialog', {
    attrs: {
      "emailForm": _vm.enquiryForm,
      "enquiryConfig": _vm.enquiryConfig,
      "visible": _vm.enquiryFormVisible,
      "rules": _vm.rules,
      "labelWidth": (_vm$enquiryConfig$3$s = _vm.enquiryConfig[3].selectlist) !== null && _vm$enquiryConfig$3$s !== void 0 && _vm$enquiryConfig$3$s.length ? 140 : 82
    },
    on: {
      "update:visible": function ($event) {
        _vm.enquiryFormVisible = $event;
      },
      "handleSend": _vm.sendPriceMail
    }
  }), _vm._v(" "), _c('mail-table', {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: false,
      expression: "false"
    }],
    ref: "mailtable",
    attrs: {
      "mailData": _vm.mailData
    }
  }, [_c('price-to-img', {
    attrs: {
      "pageData": _vm.pageData,
      "specificationsObj": _vm.specificationsObj,
      "tableData": _vm.comFilterSwitchSellData,
      "tableColumns": _vm.comMergeColumns,
      "comLocationNum": _vm.comLocationNum,
      "emailForm": _vm.commentObj
    }
  })], 1), _vm._v(" "), _c('el-dialog', {
    ref: "dialogRef",
    attrs: {
      "lock-scroll": false,
      "title": "Customer Quote",
      "visible": _vm.priceToImgVisible,
      "custom-class": "price-to-img-dialog"
    },
    on: {
      "update:visible": function ($event) {
        _vm.priceToImgVisible = $event;
      }
    }
  }, [_c('price-to-img', {
    ref: "priceToImgRef",
    attrs: {
      "isImgSrc": false,
      "loading": _vm.pdfLoading,
      "pageData": _vm.pageData,
      "specificationsObj": _vm.specificationsObj,
      "tableData": _vm.comFilterSwitchSellData,
      "tableColumns": _vm.comMergeColumns,
      "comLocationNum": _vm.comLocationNum,
      "emailForm": _vm.commentObj
    },
    on: {
      "update:loading": function ($event) {
        _vm.pdfLoading = $event;
      }
    }
  }), _vm._v(" "), _c('p', {
    staticClass: "tips"
  }, [_vm._v("Change default standard comment:")]), _vm._v(" "), _c('el-input', {
    model: {
      value: _vm.commentObj.Comments,
      callback: function ($$v) {
        _vm.$set(_vm.commentObj, "Comments", $$v);
      },
      expression: "commentObj.Comments"
    }
  }), _vm._v(" "), _c('div', {
    staticClass: "btn-wrap"
  }, [_c('el-button', {
    staticClass: "button-black button-margin",
    attrs: {
      "size": "medium",
      "loading": _vm.pdfLoading
    },
    on: {
      "click": _vm.handleDownloadPdf
    }
  }, [_vm._v("Download")])], 1)], 1), _vm._v(" "), _c('form-dialog', {
    attrs: {
      "emailForm": _vm.commentObj,
      "enquiryConfig": _vm.enquiryConfig1,
      "visible": _vm.downloadDialogVisible,
      "rules": _vm.rules1,
      "labelWidth": 120,
      "isSendPdf": true
    },
    on: {
      "update:visible": function ($event) {
        _vm.downloadDialogVisible = $event;
      },
      "handleSend": _vm.sendPdfMail
    }
  }), _vm._v(" "), _c('price-to-img', {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: false,
      expression: "false"
    }],
    ref: "pdf",
    attrs: {
      "loading": _vm.pdfLoading,
      "pageData": _vm.pageData,
      "specificationsObj": _vm.specificationsObj,
      "tableData": _vm.comFilterSwitchSellData,
      "tableColumns": _vm.comMergeColumns,
      "comLocationNum": _vm.comLocationNum,
      "emailForm": _vm.commentObj
    },
    on: {
      "update:loading": function ($event) {
        _vm.pdfLoading = $event;
      }
    }
  }), _vm._v(" "), _c('dialog-XX-success', {
    attrs: {
      "visible": _vm.xxContentVisible,
      "imgType": false,
      "content": 'This quantity is below the MOQ for this product'
    },
    on: {
      "update:visible": function ($event) {
        _vm.xxContentVisible = $event;
      }
    }
  })], 1) : _vm._e()])], 2);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./components/product/Quote.vue?vue&type=template&id=8320de5e&scoped=true

// EXTERNAL MODULE: external "vuex"
var external_vuex_ = __webpack_require__(5);

// EXTERNAL MODULE: external "lodash"
var external_lodash_ = __webpack_require__(113);
var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_);

// EXTERNAL MODULE: external "number-precision"
var external_number_precision_ = __webpack_require__(112);

// EXTERNAL MODULE: ./components/table/NewPriceTable.vue + 4 modules
var NewPriceTable = __webpack_require__(208);

// EXTERNAL MODULE: ./components/table/TotalTable.vue + 4 modules
var TotalTable = __webpack_require__(209);

// EXTERNAL MODULE: ./components/table/UnitTable.vue + 4 modules
var UnitTable = __webpack_require__(210);

// EXTERNAL MODULE: ./components/table/MailTable.vue + 4 modules
var MailTable = __webpack_require__(211);

// EXTERNAL MODULE: ./components/DIalogXXSuccess.vue + 4 modules
var DIalogXXSuccess = __webpack_require__(30);

// 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/product/Quote.vue?vue&type=script&lang=js








/* harmony default export */ var Quotevue_type_script_lang_js = ({
  components: {
    NewPriceTable: NewPriceTable["default"],
    TotalTable: TotalTable["default"],
    UnitTable: UnitTable["default"],
    MailTable: MailTable["default"],
    'dialog-XX-success': DIalogXXSuccess["default"]
  },
  props: {
    pageData: {
      type: Object,
      default: () => {
        return {};
      }
    },
    id: {
      type: Number,
      default: null
    }
  },
  data() {
    return {
      quoteLoadState: 0,
      curWeek: 0,
      allPrintTab: [],
      priceList: [],
      initZeroObj: {},
      initSetupObj: {},
      initUnitObj: {},
      initChangeUnitObj: {},
      initFrightObj: {},
      initTotalObj: {},
      xxContentVisible: false,
      setup_switch: false,
      freight_switch: false,
      weight: {},
      undecorated_columns: [{
        label: 'MODEL',
        prop: 'model',
        type: 'text',
        align: 'left',
        width: 150,
        extraWidth: 50,
        // 配合组件 (820-tableColumns[0].width-tableColumns[0].extraWidth)/(tableColumns.length-1)
        isFirstColumn: true // 去掉$符号
      }, {
        label: 'SETUP',
        prop: 'website_setup'
      }],
      decoration_columns: [{
        label: 'PRINT OPTION',
        prop: 'dec_code',
        type: 'radioInput',
        align: 'left',
        width: 150,
        extraWidth: 50
      }, {
        label: 'SETUP',
        prop: 'website_setup'
      }],
      addon_columns: [{
        label: 'Addon',
        prop: 'name',
        type: 'text',
        width: 150,
        extraWidth: 50,
        isFirstColumn: true // 去掉$符号
      }, {
        label: 'Setup',
        prop: 'website_setup'
      }],
      buy_columns: [{
        label: 'QTY',
        prop: 'project',
        isFirstColumn: true // 去掉$符号
      }],
      unit_columns: [{
        label: 'QTY',
        prop: 'total',
        align: 'left',
        isText: true
      }],
      buyData: [{
        project: 'Setup'
      }, {
        project: 'Unit'
      }, {
        project: 'Freight'
      }, {
        project: 'Total'
      }],
      unitData: [{
        total: 'Unit Rate %'
      }, {
        total: 'Setup %'
      }, {
        total: 'Freight %'
      }],
      sellData: [{
        project: 'Postcode',
        summary: '-'
      }, {
        project: 'Setup',
        summary: 0.00
      }, {
        project: 'Unit',
        summary: 0.00
      }, {
        project: 'Freight',
        summary: 0.00
      }, {
        project: 'Total',
        summary: 0.00
      }],
      POA_Config: ['111', '111.00', '999', '999.00'],
      enquiryFormVisible: false,
      enquiryForm: {
        Name: '',
        Email: '',
        Phone: '',
        // 'Customer manager': null,
        Comments: ''
      },
      enquiryConfig: [{
        prop: 'Name',
        type: 'input'
      }, {
        prop: 'Email',
        type: 'input'
      }, {
        prop: 'Phone',
        type: 'input'
      }, {
        prop: 'Customer manager',
        type: 'select',
        selectlist: [],
        isShow: false
      }, {
        prop: 'Comments',
        type: 'textarea'
      }],
      rules: {
        Name: [{
          required: true,
          message: 'Please enter',
          trigger: 'blur'
        }],
        Email: [{
          required: true,
          message: 'Please enter the correct format',
          pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/,
          trigger: 'blur'
        }],
        Phone: [{
          required: true,
          message: 'Please enter the correct format',
          // pattern: /^1[0-9]{10}$/,
          trigger: 'blur'
        }],
        'Customer manager': [{
          required: true,
          message: 'Please select',
          trigger: 'change'
        }]
      },
      mailData: {
        Url: ''
      },
      priceToImgVisible: false,
      downloadDialogVisible: false,
      commentObj: {
        'Email Address': '',
        Comments: ''
      },
      enquiryConfig1: [{
        prop: 'Email Address',
        type: 'input'
      }, {
        prop: 'Comments',
        type: 'input'
      }],
      rules1: {
        'Email Address': [{
          required: true,
          message: 'Please enter the correct format',
          pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/,
          trigger: 'blur'
        }]
      },
      specificationsObj: {
        time: null,
        model: null,
        decoration: null,
        addonArr: null
      },
      pdfLoading: false
    };
  },
  computed: {
    ...Object(external_vuex_["mapState"])('config', {
      configInfo: state => state.configInfo
    }),
    userInfo() {
      return this.$store.state.userInfo;
    },
    comCurWeekPrice() {
      return this.priceList[this.curWeek] || {};
    },
    comCurPrint() {
      return this.comCurWeekPrice.curPrint;
    },
    comCurBasePrice() {
      return this.comCurWeekPrice.basePrice[this.comCurPrint];
    },
    comLocationNum() {
      return +this.comCurWeekPrice.basePrice[this.comCurPrint].locationNum;
    },
    comCurBaseColumns() {
      return this.comCurBasePrice.part_columns;
    },
    comCurBaseTotalColumns() {
      const d = this.comCurWeekPrice.basePrice[this.comCurPrint].total_part_columns;
      const n = this.comLocationNum;
      if (n === 1) {
        return d;
      } else {
        const concatAdd = [...d, ...this.comCurWeekPrice.basePrice[this.comCurPrint].remainingAttr].slice(0, n);
        return concatAdd;
      }
    },
    comTotalLabel() {
      // 计算所有元素label的和
      return this.comCurBaseTotalColumns.reduce((sum, item) => sum + Number(item.label), 0);
    },
    comSummaryColumns() {
      return [{
        label: this.comTotalLabel.toString(),
        prop: 'summary'
      }];
    },
    comAttributeList() {
      var _this$comCurBaseTotal;
      const obj = {};
      (_this$comCurBaseTotal = this.comCurBaseTotalColumns) === null || _this$comCurBaseTotal === void 0 ? void 0 : _this$comCurBaseTotal.forEach(item => {
        obj[item.prop] = item.label;
      });
      obj.summary = this.comTotalLabel;
      return obj;
    },
    // 当前已选基础价
    comBasePrice() {
      return this.comCurBasePrice.selectBaseRow;
    },
    // 当前累加打印价
    comDecoPrice() {
      var _this$comCurWeekPrice;
      if (!((_this$comCurWeekPrice = this.comCurWeekPrice.decoration) !== null && _this$comCurWeekPrice !== void 0 && _this$comCurWeekPrice.length)) {
        return [];
      }
      const arr = this.comCurWeekPrice.decoration.map((item, idx) => {
        const obj = {};
        if (+item.num > 0) {
          for (const i in this.initUnitObj) {
            if (idx === 0) {
              // 首个打印价要取附加价计算
              const keyArr = i.split('_');
              const supplier_val = item[`supplier_${keyArr[1]}`];
              if (this.POA_Config.includes(supplier_val)) {
                obj[`${i}`] = supplier_val;
              } else {
                obj[`${i}`] = Object(external_number_precision_["times"])(+supplier_val, item.num);
              }
            } else {
              obj[`${i}`] = this.POA_Config.includes(item[i]) ? item[i] : Object(external_number_precision_["times"])(+item[i], item.num);
            }
          }
        }
        return obj;
      }).filter(obj => Object.keys(obj).length !== 0);
      return arr;
    },
    comBuyData() {
      this.calculateBuyData();
      return this.buyData;
    },
    comNoSumCol() {
      return [...this.buy_columns, ...this.comCurBaseTotalColumns];
    },
    comHasSumCol() {
      return [...this.buy_columns, ...this.comCurBaseTotalColumns, ...this.comSummaryColumns];
    },
    comMergeColumns() {
      return this.comLocationNum == 1 ? this.comNoSumCol : this.comHasSumCol;
    },
    comSellData() {
      if (Object.keys(this.comAttributeList).length !== 0) {
        this.calculateSellData();
      }
      return this.sellData;
    },
    comFilterSwitchSellData() {
      var _this$comSellData;
      return (_this$comSellData = this.comSellData) === null || _this$comSellData === void 0 ? void 0 : _this$comSellData.filter((item, i) => {
        if (i === 1 && this.setup_switch) {
          return false;
        } else if (i === 3 && this.freight_switch) {
          return false;
        } else {
          return item;
        }
      });
    }
  },
  methods: {
    ...Object(external_vuex_["mapActions"])(['getUserInfo']),
    multiplyWithMargin(o, m) {
      return Object(external_number_precision_["divide"])(Math.round(Object(external_number_precision_["times"])(o, 100 + parseFloat(m))), 100).toFixed(2);
    },
    async getQuote() {
      let margin = 0;
      let setupMargin = 0;
      await this.$store.dispatch('getShopInfo').then(res => {
        margin = parseFloat(res.margin) || 0;
        setupMargin = parseFloat(res.setup_margin) || 0;
      });
      this.$axios.post('/catalog/pricequote', {
        id: this.id
      }).then(res => {
        if (localStorage.getItem('unit')) {
          this.unitData = JSON.parse(localStorage.getItem('unit'));
        }
        const {
          attributeList,
          priceList,
          default: defaultID
        } = res.result;
        if (!Object.keys(attributeList).length || !Object.keys(priceList).length) {
          this.quoteLoadState = 2;
          return;
        }
        for (const a in attributeList) {
          // 过滤掉website_qty标签无数量
          if (attributeList[a]) {
            this.initZeroObj[a] = 0;
          } else {
            delete attributeList[a];
          }
          for (const unit of this.unitData) {
            // 如果对象中缺少 attributeList 的 key，则设置为 40
            if (!(a in unit) || unit[a] === '') {
              this.$set(unit, a, 40);
            }
          }
        }
        // 把价格数据全部乘上margin比例.
        for (const key in priceList) {
          if (Object.hasOwn(priceList, key)) {
            for (const k in priceList[key]) {
              if (Object.hasOwn(priceList[key], k)) {
                priceList[key][k] = priceList[key][k].map(item => {
                  const temp = {
                    ...item
                  };
                  for (let i = 1; i <= 8; i++) {
                    if (temp[`website_qty${i}`] && !this.POA_Config.includes(temp[`website_qty${i}`])) {
                      temp[`website_qty${i}`] = this.multiplyWithMargin(parseFloat(temp[`website_qty${i}`]) || 0, margin).toString();
                    }
                    if (temp[`supplier_qty${i}`] && !this.POA_Config.includes(temp[`supplier_qty${i}`])) {
                      temp[`supplier_qty${i}`] = this.multiplyWithMargin(parseFloat(temp[`supplier_qty${i}`]) || 0, margin).toString();
                    }
                  }
                  temp.website_setup = this.multiplyWithMargin(parseFloat(temp.website_setup) || 0, setupMargin).toString();
                  if (temp.supplier_setup) {
                    temp.supplier_setup = this.multiplyWithMargin(parseFloat(temp.supplier_setup) || 0, setupMargin).toString();
                  }
                  if (k === 'decoration') {
                    temp.decoration_addition = temp.decoration_addition.map(deco => {
                      const d = {
                        ...deco
                      };
                      for (let i = 1; i <= 8; i++) {
                        if (d[`website_qty${i}`] && !this.POA_Config.includes(d[`website_qty${i}`])) {
                          d[`website_qty${i}`] = this.multiplyWithMargin(parseFloat(d[`website_qty${i}`]) || 0, margin).toString();
                        }
                        if (d[`supplier_qty${i}`] && !this.POA_Config.includes(d[`supplier_qty${i}`])) {
                          d[`supplier_qty${i}`] = this.multiplyWithMargin(parseFloat(d[`supplier_qty${i}`]) || 0, margin).toString();
                        }
                      }
                      d.website_setup = this.multiplyWithMargin(parseFloat(d.website_setup) || 0, setupMargin).toString();
                      if (d.supplier_setup) {
                        d.supplier_setup = this.multiplyWithMargin(parseFloat(d.supplier_setup) || 0, setupMargin).toString();
                      }
                      return d;
                    });
                  }
                  return temp;
                });
              }
            }
          }
        }
        // 格式化数据，对象改成数组
        for (const keys in priceList) {
          const vals = {};
          const {
            decoration,
            additionlist,
            ...remaining
          } = priceList[keys];
          vals.basePrice = [];
          vals.selectAdditionRow = [];
          vals.curPrint = 0;
          vals.name = this.formatDurationString(keys);
          vals.nameOrigin = keys;
          vals.decorationOrign = [...decoration];
          vals.decorationID = decoration.map(i => i.id);
          vals.decoration = [...decoration].flatMap(item => {
            const result = [];
            if (item.max_color > 0) {
              result.push({
                ...item,
                max_num: item.max_color,
                id: `${item.id}-1`,
                decName: item.max_color_name
              });
            }
            if (item.max_point > 0) {
              result.push({
                ...item,
                max_num: item.max_point,
                id: `${item.id}-2`,
                decName: item.max_point_name
              });
            }
            return result;
          });
          vals.additionlist = (additionlist || []).map(item => {
            return {
              ...item,
              id: item.id + '-1' // 修改 id
            };
          });
          for (const k in remaining) {
            var _remaining$k, _remaining$k2;
            const o = {};
            o.name = k;
            o.data = remaining[k];
            o.attributeList = this.copyData(attributeList);
            if (((_remaining$k = remaining[k]) === null || _remaining$k === void 0 ? void 0 : _remaining$k.length) > 1) {
              // 检查数组中各元素的 website_qtyN 是否都等于 "-" or "POA"，则删除key
              for (const a in attributeList) {
                const is111Poa = remaining[k].every(item => this.POA_Config.includes(item[a]));
                if (is111Poa) {
                  delete o.attributeList[a];
                }
              }
            } else if (((_remaining$k2 = remaining[k]) === null || _remaining$k2 === void 0 ? void 0 : _remaining$k2.length) === 1) {
              // 判断 remaining[k][0] 中是否包含 vals.attributeList 的键，并且对应的值都等于 "-" or "POA"，则不删除key
              const obj = remaining[k][0];
              const attributeKeys = Object.keys(o.attributeList);
              const areAllKeysInPOAConfig = attributeKeys.every(key => {
                return Object.prototype.hasOwnProperty.call(obj, key) && this.POA_Config.includes(obj[key]);
              });
              if (!areAllKeysInPOAConfig) {
                attributeKeys.forEach(key => {
                  if (Object.prototype.hasOwnProperty.call(obj, key) && this.POA_Config.includes(obj[key])) {
                    delete o.attributeList[key];
                  }
                });
              }
            }
            o.name = k;
            o.data = remaining[k];
            o.locationNum = 1;
            o.part_columns = Object.keys(o.attributeList).map(e => {
              return {
                label: o.attributeList[e].toString(),
                prop: e
              };
            });
            const freightParam = {
              postcode: '',
              freight_type: 1,
              freight: {}
            };
            o.total_part_columns = this.copyData(o.part_columns).map(obj => ({
              ...obj,
              ...freightParam
            }));
            o.remainingAttr = [];
            const firstColumns = {
              ...o.part_columns[0],
              ...freightParam
            };
            for (let i = 1; i < 9; i++) {
              if (!Object.keys(o.attributeList).includes(`website_qty${i}`)) {
                const newColumn = {
                  ...firstColumns
                };
                this.$set(newColumn, 'prop', `website_qty${i}`);
                o.remainingAttr.push(newColumn);
              }
            }
            ;
            vals.basePrice.push(o);
            if (!this.allPrintTab.includes(k)) {
              this.allPrintTab.push(k);
            }
          }
          this.priceList.push(vals);
        }
        this.priceList.forEach((options, index) => {
          // 原始数据name没空格，需要映射到
          if (options.nameOrigin === (defaultID === null || defaultID === void 0 ? void 0 : defaultID.name)) {
            this.curWeek = index;
            options.decorationOrign.forEach((opt, idx) => {
              var _defaultID$decoration;
              if (opt.id === (defaultID === null || defaultID === void 0 ? void 0 : (_defaultID$decoration = defaultID.decoration) === null || _defaultID$decoration === void 0 ? void 0 : _defaultID$decoration.id)) {
                this.$set(options, 'curPrint', idx);
              }
            });
          }
          // 所有周期的所有打印，进来页面时默认勾选第一条价格
          options.basePrice.forEach((opt, idx) => {
            this.$set(opt, 'selectBaseRow', opt.data[0] || {});
            // 打印原数据decorationOrign的name 匹配 basePrice(周期下的每个打印数据)的name
            const matchData = options.decorationOrign.find(d => {
              var _d$pricetype;
              return ((_d$pricetype = d.pricetype) === null || _d$pricetype === void 0 ? void 0 : _d$pricetype.name) === opt.name;
            });
            opt.decoration_addition = [...((matchData === null || matchData === void 0 ? void 0 : matchData.decoration_addition) || []), ...(options.additionlist || [])];
          });
          options.decoration.forEach(opt => {
            this.$set(opt, 'num', 0);
          });
        });
        this.initSetupObj = Object.assign({}, this.initZeroObj);
        this.initUnitObj = Object.assign({}, this.initZeroObj, {
          website_setup: 0
        });
        this.initFrightObj = Object.assign({}, this.initZeroObj);
        this.buyData = this.buyData.map(item => {
          return {
            ...item,
            ...this.initSetupObj
          };
        });
        this.sellData = this.sellData.map(item => {
          return {
            ...item,
            ...this.initSetupObj
          };
        });
        this.quoteLoadState = 1;
      }).catch(e => {
        console.log('this.quoteLoadState1: ', e);
        this.quoteLoadState = 2;
      });
    },
    formatDurationString(input) {
      // 匹配数字和字符串的正则表达式
      const regex = /(\d+)([a-zA-Z]+)/g;
      const result = input.replace(regex, '$1 $2');
      return result;
    },
    getWeight() {
      this.$axios.post('/catalog/weight', {
        id: this.id
      }).then(res => {
        this.weight = res.result;
      }).catch(() => {});
    },
    getFreight(k) {
      const postcode = this.comCurBaseTotalColumns[k].postcode;
      const type = this.comCurBaseTotalColumns[k].freight_type;
      const init = {
        basic: 0,
        pickup: 0,
        minimum: 0
      };
      if (postcode.length < 3) {
        this.comCurBaseTotalColumns[k].freight = init;
        return;
      }
      this.$axios.post('/catalog/freight', {
        postcode,
        type
      }).then(res => {
        this.comCurBaseTotalColumns[k].freight = Array.isArray(res.result) ? init : res.result;
      });
    },
    getDebFreight: external_lodash_default.a.debounce(function (k) {
      this.getFreight(k);
    }, 200),
    getNumber(e, row, min) {
      if (parseInt(e.target.value) < min) {
        this.xxContentVisible = true;
        row.label = min;
      } else {
        this.xxContentVisible = false;
      }
    },
    sortBy(items) {
      // items.decoration.sort(this.customSort(items.decorationID))
      // const targetElement = items.decoration.splice(items.curPrint, 1)[0]
      // items.decoration.unshift(targetElement)
    },
    // 按原打印数组的id字段排序
    customSort(decorationID) {
      return (a, b) => {
        return decorationID.indexOf(a.id) - decorationID.indexOf(b.id);
      };
    },
    dividePrice(a) {
      return Object(external_number_precision_["divide"])(+a, 100);
    },
    openMailDialog() {
      this.enquiryFormVisible = true;
      // if (this.$utils.checkLogin()) {
      //   this.getUserInfo()
      //   const { contacts, email, phone, crm_users_id:crmUsersId } = this.userInfo
      //   this.enquiryForm.Name = contacts
      //   this.enquiryForm.Email = email
      //   this.enquiryForm.Phone = phone
      //   if (crmUsersId?.length) {
      //     this.enquiryConfig[3].selectlist = crmUsersId
      //     if (crmUsersId?.length === 1) {
      //       this.enquiryForm['Customer manager'] = crmUsersId[0].name
      //     }
      //   } else {
      //     this.enquiryConfig[3].isShow = false
      //     this.$delete(this.enquiryForm, 'Customer manager')
      //   }
      //   this.enquiryFormVisible = true
      // } else {
      //   this.openDialog()
      // }
    },
    getMailData() {
      this.mailData.Url = window.location.href;
      const {
        Name,
        Email,
        Phone,
        Comments
      } = this.enquiryForm;
      this.mailData['Customer Name'] = Name;
      this.mailData['Customer Email'] = Email;
      this.mailData['Customer Phone'] = Phone;
      this.mailData.Comments = Comments;

      // const { email, level, createTime } = this.userInfo
      // this.mailData['Member Account'] = email
      // this.mailData['Member Grade'] = level.name
      // this.mailData['Member Registration time'] = createTime
      this.mailData['Quote time'] = this.$utils.formatTime(new Date());
    },
    // 发送价格邮件 Enquiry按钮
    async sendPriceMail() {
      await this.getMailData();
      await this.getCustomerQuoteData();
      const shopInfo = await this.$store.dispatch('getShopInfo').then(res => res);
      const {
        Name,
        Email,
        Phone,
        Comments
      } = this.enquiryForm;
      this.$axios.post('/c-api/quote/sendenquiry', {
        site_id: shopInfo.id || '',
        content: this.$refs.mailtable.$el.innerHTML,
        name: Name,
        email: Email,
        phone: Phone,
        product_code: this.pageData.product_code,
        comments: Comments
      }).then(res => {
        this.setLoading(false);
        this.enquiryFormVisible = false;
        this.$confirm('Enquiry Sent', {
          confirmButtonText: 'OK',
          showCancelButton: false,
          type: 'success',
          center: true,
          showClose: false,
          confirmButtonClass: 'com-btnblack'
        }).then(() => {});
      }).catch(() => {
        this.setLoading(false);
      });
    },
    getCustomerQuoteData() {
      const {
        name,
        selectAdditionRow
      } = this.comCurWeekPrice;
      this.specificationsObj.time = name;
      this.specificationsObj.model = this.comBasePrice.model;
      this.specificationsObj.decoration = this.comCurBasePrice.name;
      if (selectAdditionRow.length) {
        this.specificationsObj.addonArr = selectAdditionRow.map(item => item.name);
      } else {
        this.specificationsObj.addonArr = null;
      }
    },
    openDownloadDialog(type) {
      this.getCustomerQuoteData();
      type ? this.downloadDialogVisible = true : this.priceToImgVisible = true;
    },
    handleDownloadPdf() {
      this.pdfLoading = true;
      this.$nextTick(() => {
        this.$refs.priceToImgRef.htmlToPdf(this.pageData.product_code);
      });
    },
    // 发送PDF邮件
    sendPdfMail() {
      this.$axios.post('/quote/sendpdf', {
        content: this.$refs.pdf.$el.innerHTML,
        product_code: this.pageData.product_code,
        email: this.commentObj['Email Address']
      }).then(res => {
        this.setLoading(false);
        this.downloadDialogVisible = false;
        this.$confirm('Enquiry Sent', {
          confirmButtonText: 'OK',
          showCancelButton: false,
          type: 'success',
          center: true,
          showClose: false,
          confirmButtonClass: 'com-btnblack'
        });
      }).catch(() => {
        this.setLoading(false);
      });
    },
    copyData(data) {
      return JSON.parse(JSON.stringify(data));
    },
    calculateBuyData() {
      const selPriceArr = [];
      if (JSON.stringify(this.comBasePrice) !== '{}') {
        selPriceArr.push(this.comBasePrice);
      }
      selPriceArr.push(...this.comDecoPrice, ...this.comCurWeekPrice.selectAdditionRow);
      if (selPriceArr.length === 0) {
        this.buyData = this.buyData.map(item => ({
          ...item,
          ...this.initZeroObj
        }));
        return;
      }
      // 累加所选,初始数量对应的单价。赋值给this.initUnitObj
      for (const i in this.initUnitObj) {
        const columnSum = this.copyData(selPriceArr).reduce(function (prev, cur) {
          if (cur[i] === '111' || cur[i] === '111.00') {
            return cur[i] = '-';
          } else if (cur[i] === '999' || cur[i] === '999.00') {
            return cur[i] = 'POA';
          } else {
            // 当基础价格是-POA，后续累加价格是正常数字价,依然返回-POA
            if (prev === '-' || prev === 'POA') {
              return prev;
            }
            return Object(external_number_precision_["plus"])(+cur[i], prev).toFixed(2);
          }
        }, 0);
        this.$set(this.initUnitObj, i, columnSum);
      }
      for (const a in this.comAttributeList) {
        // 每次更改选择价格，必须遍历整个comAttributeList
        const tempIdx = this.comCurBaseColumns.findIndex(items => +this.comAttributeList[a] < +items.label);
        if (tempIdx > 0) {
          const key = this.comCurBaseColumns[tempIdx - 1].prop;
          this.$set(this.initChangeUnitObj, a, this.initUnitObj[key]);
        } else {
          const length = this.comCurBaseColumns.length;
          const key = this.comCurBaseColumns[length - 1].prop;
          this.$set(this.initChangeUnitObj, a, this.initUnitObj[key]);
        }
        if (this.initChangeUnitObj[a] === 'POA' || this.initChangeUnitObj[a] === '-') {
          this.$set(this.initSetupObj, a, this.initChangeUnitObj[a]);
          this.$set(this.initFrightObj, a, this.initChangeUnitObj[a]);
        } else {
          this.$set(this.initSetupObj, a, this.initUnitObj.website_setup);
          // 计算运费
          // 单独批次数量的总重
          // weight定义是{}，后端没数据传回[]
          const unitWLocal = this.weight.unit_w_local ? +this.weight.unit_w_local : 0;
          const totalWeight = Math.ceil(Object(external_number_precision_["times"])(unitWLocal, this.comAttributeList[a]));
          // Road express  1    AAE:AAEFactor  2
          const setupFuel = this.dividePrice(this.configInfo.fuel);
          const setupBagFreight = this.dividePrice(this.configInfo.bag_freight);
          const setupExpressFreight = this.dividePrice(this.configInfo.express_freight);
          const AAEFactor = Object(external_number_precision_["plus"])(1, setupBagFreight, setupFuel);
          const expressFactor = Object(external_number_precision_["plus"])(1, setupExpressFreight, setupFuel);
          let frightCost = 0;
          let freightType;
          let postcode;
          let freight = {};
          const matchIndex = this.comCurBaseTotalColumns.findIndex(item => item.prop === a);
          // 1,所有按第一个运费统计；不为1，则只计算 comCurBaseTotalColumns的[地址数]长度
          if (+this.comLocationNum === 1 || this.comLocationNum >= matchIndex + 1) {
            ({
              freight,
              freight_type: freightType,
              postcode
            } = this.comCurBaseTotalColumns[+this.comLocationNum === 1 ? 0 : matchIndex] || {});
          }
          if (freightType === 1 && postcode >= 3) {
            if (totalWeight > 20) {
              const a1 = Object(external_number_precision_["minus"])(totalWeight, 20);
              const a2 = Object(external_number_precision_["times"])(a1, +freight.basic);
              const a3 = Object(external_number_precision_["plus"])(+freight.pickup, a2);
              frightCost = Object(external_number_precision_["times"])(a3, expressFactor);
            } else {
              frightCost = Object(external_number_precision_["times"])(+freight.pickup, expressFactor);
            }
          } else if (freightType === 2 && postcode >= 3) {
            const a1 = Object(external_number_precision_["divide"])(totalWeight, 5);
            const a2 = Object(external_number_precision_["times"])(+freight.minimum, Math.ceil(a1));
            frightCost = Object(external_number_precision_["times"])(a2, AAEFactor);
          } else {
            frightCost = 0;
          }
          this.$set(this.initFrightObj, a, Math.ceil(frightCost).toFixed(2));
        }
        if (this.initChangeUnitObj[a] === '-' || this.initChangeUnitObj[a] === 'POA') {
          this.$set(this.initTotalObj, a, this.initChangeUnitObj[a]);
        } else {
          const unitQTY = Object(external_number_precision_["times"])(this.initChangeUnitObj[a], this.comAttributeList[a]);
          this.$set(this.initTotalObj, a, Object(external_number_precision_["plus"])(this.initUnitObj.website_setup, unitQTY, this.initFrightObj[a]).toFixed(2));
        }
        if (this.setup_switch) {
          // 业务：Setup价格/对应数量后向上取整
          if (this.initChangeUnitObj[a] === '-' || this.initChangeUnitObj[a] === 'POA') {
            this.$set(this.initChangeUnitObj, a, this.initChangeUnitObj[a]);
          } else {
            const num = Math.ceil(this.initSetupObj[a] / this.comAttributeList[a] * 100) / 100;
            this.$set(this.initChangeUnitObj, a, Object(external_number_precision_["plus"])(this.initChangeUnitObj[a], num).toFixed(2));
          }
        }
        if (this.freight_switch) {
          if (this.initChangeUnitObj[a] === '-' || this.initChangeUnitObj[a] === 'POA') {
            this.$set(this.initChangeUnitObj, a, this.initChangeUnitObj[a]);
          } else {
            const num = Math.ceil(this.initFrightObj[a] / this.comAttributeList[a] * 100) / 100;
            this.$set(this.initChangeUnitObj, a, Object(external_number_precision_["plus"])(this.initChangeUnitObj[a], num).toFixed(2));
          }
        }
      }
      if (this.setup_switch) {
        this.$set(this.buyData, 0, {
          ...this.buyData[0],
          ...this.initZeroObj,
          ...{
            'summary': 0.00
          }
        });
      } else {
        this.$set(this.buyData, 0, {
          ...this.buyData[0],
          ...this.initSetupObj
        });
      }
      this.$set(this.buyData, 1, {
        ...this.buyData[1],
        ...this.initChangeUnitObj
      });
      if (this.freight_switch) {
        this.$set(this.buyData, 2, {
          ...this.buyData[2],
          ...this.initZeroObj
        });
      } else {
        this.$set(this.buyData, 2, {
          ...this.buyData[2],
          ...this.initFrightObj
        });
      }
      this.$set(this.buyData, 3, {
        ...this.buyData[3],
        ...this.initTotalObj
      });
    },
    calculateSellData() {
      // 放置comSellData计算和副作用的代码
      const buySetup = this.comBuyData[0];
      const buyUnit = this.comBuyData[1];
      const buyFright = this.comBuyData[2];
      let frightSummary = 0;
      for (const i in this.comAttributeList) {
        if (buyUnit[i] === '-' || buyUnit[i] === 'POA') {
          this.sellData[0][i] = '-';
          this.sellData[1][i] = buyUnit[i];
          this.sellData[2][i] = buyUnit[i];
          this.sellData[3][i] = buyUnit[i];
          this.sellData[4][i] = buyUnit[i];
        } else {
          var _this$comCurBaseTotal2;
          const item = this.comLocationNum === 1 ? this.comCurBaseTotalColumns[0] : this.comCurBaseTotalColumns.find(element => element.prop === i);
          this.sellData[0][i] = item && item.postcode !== '' ? item.postcode : '-';

          // 分别乘以Markup %表格
          const key = (_this$comCurBaseTotal2 = this.comCurBaseTotalColumns[0]) === null || _this$comCurBaseTotal2 === void 0 ? void 0 : _this$comCurBaseTotal2.prop;
          if (this.unitData[1] && this.unitData[1][key]) {
            const a = Object(external_number_precision_["plus"])(this.unitData[1][key] / 100, 1);
            this.sellData[1][i] = Object(external_number_precision_["times"])(buySetup[i], a).toFixed(2);
          } else {
            this.sellData[1][i] = buySetup[i];
          }
          if (this.unitData[0][i]) {
            const a = Object(external_number_precision_["plus"])(this.unitData[0][i] / 100, 1);
            this.sellData[2][i] = Object(external_number_precision_["times"])(buyUnit[i], a).toFixed(2);
          } else {
            this.sellData[2][i] = buyUnit[i];
          }
          if (this.unitData[2] && this.unitData[2][key]) {
            const a = Object(external_number_precision_["plus"])(this.unitData[2][key] / 100, 1);
            this.sellData[3][i] = Object(external_number_precision_["times"])(buyFright[i], a).toFixed(2);
            // freight_switch会使qty的运费=0无法计算，故用了initFrightObj
            const fa = Object(external_number_precision_["times"])(this.initFrightObj[i], a);
            frightSummary = Object(external_number_precision_["plus"])(frightSummary, fa).toFixed(2);
          } else {
            this.sellData[3][i] = buyFright[i];
            frightSummary = Object(external_number_precision_["plus"])(frightSummary, this.initFrightObj[i]).toFixed(2);
          }
          const unitQTY = Object(external_number_precision_["times"])(this.sellData[2][i], this.comAttributeList[i]);
          this.$set(this.sellData[4], i, Object(external_number_precision_["plus"])(this.sellData[1][i], unitQTY, this.sellData[3][i]).toFixed(2));
        }
      }
      // 迭代加了Total列，需要统计qty的运费后才能合计运费
      if (this.sellData[2].summary !== '-' && this.sellData[2].summary !== 'POA') {
        if (this.freight_switch) {
          const num = Math.ceil(frightSummary / this.comAttributeList.summary * 100) / 100;
          this.sellData[2].summary = Object(external_number_precision_["plus"])(this.sellData[2].summary, num).toFixed(2);
          this.sellData[3].summary = 0.00;
          const a = Object(external_number_precision_["times"])(this.sellData[2].summary, this.comAttributeList.summary);
          this.sellData[4].summary = Object(external_number_precision_["plus"])(this.sellData[1].summary, a).toFixed(2);
        } else {
          this.sellData[3].summary = frightSummary;
          this.sellData[4].summary = Object(external_number_precision_["plus"])(frightSummary, this.sellData[4].summary).toFixed(2);
        }
      }
    },
    // 低于最小起订量 把该栏的数值重置到最小起订量
    getChildIdx(idx) {
      var _this$comCurBaseColum;
      this.xxContentVisible = true;
      this.$set(this.comCurBaseTotalColumns[idx - 1], 'label', (_this$comCurBaseColum = this.comCurBaseColumns[0]) === null || _this$comCurBaseColum === void 0 ? void 0 : _this$comCurBaseColum.label);
    },
    setMaxNum(val) {
      if (val > 7) {
        this.comCurBasePrice.locationNum = 7;
      } else if (val < 1) {
        this.comCurBasePrice.locationNum = 1;
      }
    },
    ...Object(external_vuex_["mapMutations"])({
      openDialog: 'openDialog',
      setLoading: 'product/setLoading'
    })
  }
});
// CONCATENATED MODULE: ./components/product/Quote.vue?vue&type=script&lang=js
 /* harmony default export */ var product_Quotevue_type_script_lang_js = (Quotevue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./components/product/Quote.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(231)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  product_Quotevue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "8320de5e",
  "a7f86384"
  
)

/* harmony default export */ var Quote = __webpack_exports__["default"] = (component.exports);

/* nuxt-component-imports */
installComponents(component, {TabNav: __webpack_require__(192).default,PcSwitch: __webpack_require__(212).default,FormDialog: __webpack_require__(177).default,PriceToImg: __webpack_require__(213).default})


/***/ })

};;
//# sourceMappingURL=product-quote.js.map