|
@@ -2127,9 +2127,9 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
|
|
|
"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_e87b4ce2_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_e87b4ce2_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_e87b4ce2_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_e87b4ce2_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_e87b4ce2_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
|
+/* 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_0714c0ac_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_0714c0ac_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_0714c0ac_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_0714c0ac_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_0714c0ac_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
@@ -2141,7 +2141,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
// 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=e87b4ce2&scoped=true
|
|
|
+// 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=0714c0ac&scoped=true
|
|
|
var render = function render() {
|
|
|
var _vm$comCurBaseColumns, _vm$enquiryConfig$3$s;
|
|
|
var _vm = this,
|
|
@@ -2154,7 +2154,7 @@ var render = function render() {
|
|
|
expression: "true"
|
|
|
}],
|
|
|
staticClass: "com-loading"
|
|
|
- }) : _vm.quoteLoadState == 1 ? _vm._ssrNode("<div data-v-e87b4ce2>", "</div>", [_c('tab-nav', {
|
|
|
+ }) : _vm.quoteLoadState == 1 ? _vm._ssrNode("<div data-v-0714c0ac>", "</div>", [_c('tab-nav', {
|
|
|
attrs: {
|
|
|
"borderType": 'allBorder',
|
|
|
"liWidth": 100,
|
|
@@ -2175,7 +2175,7 @@ var render = function render() {
|
|
|
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-e87b4ce2>", "</div>", [_vm._ssrNode("<div data-v-e87b4ce2>", "</div>", [_c('tab-nav', {
|
|
|
+ }) + " data-v-0714c0ac>", "</div>", [_vm._ssrNode("<div data-v-0714c0ac>", "</div>", [_c('tab-nav', {
|
|
|
attrs: {
|
|
|
"borderType": 'incompleteBorder',
|
|
|
"currTab": items.curPrint,
|
|
@@ -2200,7 +2200,7 @@ var render = function render() {
|
|
|
var _items$decorationOrig;
|
|
|
return _vm._ssrNode("<div" + _vm._ssrStyle(null, null, {
|
|
|
display: items.curPrint == index ? '' : 'none'
|
|
|
- }) + " data-v-e87b4ce2>", "</div>", [_c('new-price-table', {
|
|
|
+ }) + " data-v-0714c0ac>", "</div>", [_c('new-price-table', {
|
|
|
attrs: {
|
|
|
"tableColumns": [..._vm.undecorated_columns, ...item.part_columns],
|
|
|
"tableData": item.data,
|
|
@@ -2230,7 +2230,7 @@ var render = function render() {
|
|
|
}) : _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-e87b4ce2>", "</div>", [_c('new-price-table', {
|
|
|
+ }) + " data-v-0714c0ac>", "</div>", [_c('new-price-table', {
|
|
|
attrs: {
|
|
|
"tableData": item.decoration_addition,
|
|
|
"tableColumns": [..._vm.addon_columns, ...item.part_columns],
|
|
@@ -2248,7 +2248,7 @@ var render = function render() {
|
|
|
}
|
|
|
})], 1);
|
|
|
})], 2);
|
|
|
- }), _vm._ssrNode(" "), _vm._ssrNode("<section data-v-e87b4ce2>", "</section>", [_vm._ssrNode("<p class=\"title1\" data-v-e87b4ce2><span data-v-e87b4ce2></span> <span data-v-e87b4ce2>Currency AUD($)</span></p> "), _c('total-table', {
|
|
|
+ }), _vm._ssrNode(" "), _vm._ssrNode("<section data-v-0714c0ac>", "</section>", [_vm._ssrNode("<p class=\"title1\" data-v-0714c0ac><span data-v-0714c0ac></span> <span data-v-0714c0ac>Currency AUD($)</span></p> "), _c('total-table', {
|
|
|
attrs: {
|
|
|
"comLocationNum": _vm.comLocationNum,
|
|
|
"tableData": _vm.comBuyData,
|
|
@@ -2260,7 +2260,7 @@ var render = function render() {
|
|
|
on: {
|
|
|
"send-idx": _vm.getChildIdx
|
|
|
}
|
|
|
- }), _vm._ssrNode(" <p class=\"text-red\" data-v-e87b4ce2>Price is ex- gst</p> "), _vm._ssrNode("<ul data-v-e87b4ce2>", "</ul>", [_vm._ssrNode("<li class=\"entry\" data-v-e87b4ce2>", "</li>", [_vm._ssrNode("<div class=\"entry-l\" data-v-e87b4ce2>Delivery Locations</div> "), _c('el-input', {
|
|
|
+ }), _vm._ssrNode(" <p class=\"text-red\" data-v-0714c0ac>Price is ex- gst</p> "), _vm._ssrNode("<ul data-v-0714c0ac>", "</ul>", [_vm._ssrNode("<li class=\"entry\" data-v-0714c0ac>", "</li>", [_vm._ssrNode("<div class=\"entry-l\" data-v-0714c0ac>Delivery Locations</div> "), _c('el-input', {
|
|
|
staticStyle: {
|
|
|
"width": "130px"
|
|
|
},
|
|
@@ -2281,11 +2281,11 @@ var render = function render() {
|
|
|
},
|
|
|
expression: "comCurBasePrice.locationNum"
|
|
|
}
|
|
|
- })], 2), _vm._ssrNode(" " + (_vm.comLocationNum > 1 ? "<li class=\"entry\" data-v-e87b4ce2><div class=\"entry-text\" data-v-e87b4ce2>Qty / Location</div></li>" : "<!---->") + " "), _vm._l(_vm.comCurBaseTotalColumns, function (i, k) {
|
|
|
+ })], 2), _vm._ssrNode(" " + (_vm.comLocationNum > 1 ? "<li class=\"entry\" data-v-0714c0ac><div class=\"entry-text\" data-v-0714c0ac>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-e87b4ce2>", "</li>", [_vm._ssrNode("<div class=\"entry-l\" data-v-e87b4ce2>Delivery Postcode</div> "), _c('el-input', {
|
|
|
+ }) + " data-v-0714c0ac>", "</li>", [_vm._ssrNode("<div class=\"entry-l\" data-v-0714c0ac>Delivery Postcode</div> "), _c('el-input', {
|
|
|
staticStyle: {
|
|
|
"width": "130px",
|
|
|
"margin-right": "20px"
|
|
@@ -2331,7 +2331,7 @@ var render = function render() {
|
|
|
},
|
|
|
expression: "i.label"
|
|
|
}
|
|
|
- }) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"entry-r\" data-v-e87b4ce2>", "</div>", [_vm._ssrNode("<span data-v-e87b4ce2>Freight Method</span> "), _c('el-radio-group', {
|
|
|
+ }) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"entry-r\" data-v-0714c0ac>", "</div>", [_vm._ssrNode("<span data-v-0714c0ac>Freight Method</span> "), _c('el-radio-group', {
|
|
|
on: {
|
|
|
"change": function ($event) {
|
|
|
return _vm.getFreight(k);
|
|
@@ -2353,7 +2353,7 @@ var render = function render() {
|
|
|
"label": 2
|
|
|
}
|
|
|
}, [_vm._v("Air Freight")])], 1)], 2)], 2);
|
|
|
- })], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"entry\" data-v-e87b4ce2>", "</div>", [_vm._ssrNode("<div class=\"entry-l\" data-v-e87b4ce2>Setup</div> <div class=\"entry-l\" data-v-e87b4ce2>include in unit price</div> "), _c('pc-switch', {
|
|
|
+ })], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"entry\" data-v-0714c0ac>", "</div>", [_vm._ssrNode("<div class=\"entry-l\" data-v-0714c0ac>Setup</div> <div class=\"entry-l\" data-v-0714c0ac>include in unit price</div> "), _c('pc-switch', {
|
|
|
model: {
|
|
|
value: _vm.setup_switch,
|
|
|
callback: function ($$v) {
|
|
@@ -2361,7 +2361,7 @@ var render = function render() {
|
|
|
},
|
|
|
expression: "setup_switch"
|
|
|
}
|
|
|
- })], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"entry\" data-v-e87b4ce2>", "</div>", [_vm._ssrNode("<div class=\"entry-l\" data-v-e87b4ce2>Freight</div> <div class=\"entry-l\" data-v-e87b4ce2>include in unit price</div> "), _vm._ssrNode("<div data-v-e87b4ce2>", "</div>", [_c('pc-switch', {
|
|
|
+ })], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"entry\" data-v-0714c0ac>", "</div>", [_vm._ssrNode("<div class=\"entry-l\" data-v-0714c0ac>Freight</div> <div class=\"entry-l\" data-v-0714c0ac>include in unit price</div> "), _vm._ssrNode("<div data-v-0714c0ac>", "</div>", [_c('pc-switch', {
|
|
|
model: {
|
|
|
value: _vm.freight_switch,
|
|
|
callback: function ($$v) {
|
|
@@ -2514,7 +2514,7 @@ var render = function render() {
|
|
|
};
|
|
|
var staticRenderFns = [];
|
|
|
|
|
|
-// CONCATENATED MODULE: ./components/product/Quote.vue?vue&type=template&id=e87b4ce2&scoped=true
|
|
|
+// CONCATENATED MODULE: ./components/product/Quote.vue?vue&type=template&id=0714c0ac&scoped=true
|
|
|
|
|
|
// EXTERNAL MODULE: external "vuex"
|
|
|
var external_vuex_ = __webpack_require__(5);
|
|
@@ -2904,6 +2904,53 @@ var DIalogXXSuccess = __webpack_require__(30);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ // 把价格数据全部乘上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 = {};
|
|
@@ -2944,18 +2991,6 @@ var DIalogXXSuccess = __webpack_require__(30);
|
|
|
var _remaining$k, _remaining$k2;
|
|
|
const o = {};
|
|
|
o.name = k;
|
|
|
- remaining[k] = remaining[k].map(item => {
|
|
|
- const temp = {
|
|
|
- ...item
|
|
|
- };
|
|
|
- for (let i = 1; i <= 8; i++) {
|
|
|
- if (item[`website_qty${i}`] && !this.POA_Config.includes(item[`website_qty${i}`])) {
|
|
|
- temp[`website_qty${i}`] = this.multiplyWithMargin(parseFloat(item[`website_qty${i}`]), margin).toString();
|
|
|
- }
|
|
|
- }
|
|
|
- temp.website_setup = this.multiplyWithMargin(parseFloat(item.website_setup), setupMargin).toString();
|
|
|
- return temp;
|
|
|
- });
|
|
|
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) {
|
|
@@ -3494,7 +3529,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
staticRenderFns,
|
|
|
false,
|
|
|
injectStyles,
|
|
|
- "e87b4ce2",
|
|
|
+ "0714c0ac",
|
|
|
"a7f86384"
|
|
|
|
|
|
)
|