(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["package1/index/waitStorageDetail"],{ /***/ 457: /*!*******************************************************************************************************************!*\ !*** /Users/mac/Documents/HBuilderProjects/kuaiyidian-HD/main.js?{"page":"package1%2Findex%2FwaitStorageDetail"} ***! \*******************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(wx, createPage) { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4); __webpack_require__(/*! uni-pages */ 26); var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25)); var _waitStorageDetail = _interopRequireDefault(__webpack_require__(/*! ./package1/index/waitStorageDetail.vue */ 458)); // @ts-ignore wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__; createPage(_waitStorageDetail.default); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["createPage"])) /***/ }), /***/ 458: /*!************************************************************************************************!*\ !*** /Users/mac/Documents/HBuilderProjects/kuaiyidian-HD/package1/index/waitStorageDetail.vue ***! \************************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _waitStorageDetail_vue_vue_type_template_id_15769e64___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./waitStorageDetail.vue?vue&type=template&id=15769e64& */ 459); /* harmony import */ var _waitStorageDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./waitStorageDetail.vue?vue&type=script&lang=js& */ 461); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _waitStorageDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _waitStorageDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var _waitStorageDetail_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./waitStorageDetail.vue?vue&type=style&index=0&lang=scss& */ 463); /* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 38); var renderjs /* normalize component */ var component = Object(_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])( _waitStorageDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], _waitStorageDetail_vue_vue_type_template_id_15769e64___WEBPACK_IMPORTED_MODULE_0__["render"], _waitStorageDetail_vue_vue_type_template_id_15769e64___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], false, null, null, null, false, _waitStorageDetail_vue_vue_type_template_id_15769e64___WEBPACK_IMPORTED_MODULE_0__["components"], renderjs ) component.options.__file = "package1/index/waitStorageDetail.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ 459: /*!*******************************************************************************************************************************!*\ !*** /Users/mac/Documents/HBuilderProjects/kuaiyidian-HD/package1/index/waitStorageDetail.vue?vue&type=template&id=15769e64& ***! \*******************************************************************************************************************************/ /*! exports provided: render, staticRenderFns, recyclableRender, components */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_template_id_15769e64___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./waitStorageDetail.vue?vue&type=template&id=15769e64& */ 460); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_template_id_15769e64___WEBPACK_IMPORTED_MODULE_0__["render"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_template_id_15769e64___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_template_id_15769e64___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_template_id_15769e64___WEBPACK_IMPORTED_MODULE_0__["components"]; }); /***/ }), /***/ 460: /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!/Users/mac/Documents/HBuilderProjects/kuaiyidian-HD/package1/index/waitStorageDetail.vue?vue&type=template&id=15769e64& ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns, recyclableRender, components */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; }); var components try { components = { uniIcons: function () { return Promise.all(/*! import() | uni_modules/uni-icons/components/uni-icons/uni-icons */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-icons/components/uni-icons/uni-icons.vue */ 995)) }, uniCard: function () { return __webpack_require__.e(/*! import() | uni_modules/uni-card/components/uni-card/uni-card */ "uni_modules/uni-card/components/uni-card/uni-card").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-card/components/uni-card/uni-card.vue */ 1072)) }, uniTooltip: function () { return __webpack_require__.e(/*! import() | uni_modules/uni-tooltip/components/uni-tooltip/uni-tooltip */ "uni_modules/uni-tooltip/components/uni-tooltip/uni-tooltip").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-tooltip/components/uni-tooltip/uni-tooltip.vue */ 1321)) }, uniPopup: function () { return __webpack_require__.e(/*! import() | uni_modules/uni-popup/components/uni-popup/uni-popup */ "uni_modules/uni-popup/components/uni-popup/uni-popup").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-popup/components/uni-popup/uni-popup.vue */ 1065)) }, uniPopupDialog: function () { return Promise.all(/*! import() | uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue */ 1307)) }, } } catch (e) { if ( e.message.indexOf("Cannot find module") !== -1 && e.message.indexOf(".vue") !== -1 ) { console.error(e.message) console.error("1. 排查组件名称拼写是否正确") console.error( "2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom" ) console.error( "3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件" ) } else { throw e } } var render = function () { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h var l1 = _vm.__map(_vm.goodsList, function (item, index) { var $orig = _vm.__get_orig(item) var g0 = _vm.type == 0 && _vm.sales.inStorageStatus == 1 && !(item.productCount * item.stockLogList1[0].purchasePrice == null) ? (item.productCount * item.stockLogList1[0].purchasePrice).toFixed(2) : null var g1 = _vm.type == 0 && _vm.sales.inStorageStatus == 0 && !(item.productCount * item.purchasePrice == null) ? (item.productCount * item.purchasePrice).toFixed(2) : null var g2 = _vm.type == 0 && _vm.sales.inStorageStatus == null && !(item.productCount * item.purchasePrice == null) ? (item.productCount * item.purchasePrice).toFixed(2) : null var l0 = _vm.__map(item.stockLogList1, function (items, index) { var $orig = _vm.__get_orig(items) var f0 = item.noDaysort ? _vm._f("sliceMsg")(items.attributeList) : null return { $orig: $orig, f0: f0, } }) return { $orig: $orig, g0: g0, g1: g1, g2: g2, l0: l0, } }) var g3 = _vm.type == 0 && _vm.sales.inStorageStatus != 0 && !(_vm.dealings.lastDebtAmount == null) ? Math.abs(_vm.dealings.lastDebtAmount) : null var g4 = _vm.type == 0 && _vm.sales.inStorageStatus != 0 && _vm.dealings.balanceDue >= 0 && !(_vm.dealings.balanceDue == null) ? Math.abs(_vm.dealings.balanceDue) : null var g5 = _vm.type == 0 && _vm.sales.inStorageStatus != 0 && _vm.dealings.balanceDue < 0 && !(_vm.dealings.balanceDue == null) ? Math.abs(_vm.dealings.balanceDue) : null var g6 = _vm.type == 0 && _vm.sales.inStorageStatus != 0 && _vm.sales.noPay >= 0 && _vm.returnInv != 1 && !(_vm.sales.noPay == null) ? Math.abs(_vm.sales.noPay) : null var g7 = _vm.type == 0 && _vm.sales.inStorageStatus != 0 && _vm.sales.noPay < 0 && _vm.returnInv != 1 && !(_vm.sales.noPay == null) ? Math.abs(_vm.sales.noPay) : null var g8 = _vm.type == 0 && _vm.sales.inStorageStatus == 0 && _vm.type == 0 && _vm.dealings.lastDebtAmount < 0 ? Math.abs(_vm.dealings.lastDebtAmount) : null var g9 = _vm.type == 0 && _vm.sales.inStorageStatus == 0 && _vm.leijiqiankuan < 0 && _vm.type == 0 ? Math.abs(_vm.leijiqiankuan) : null var g10 = _vm.type == 0 && _vm.sales.inStorageStatus == 0 && _vm.leijiqiankuan < 0 && _vm.type == 0 ? Math.abs(_vm.leijiqiankuan) : null var g11 = _vm.type == 0 && _vm.sales.inStorageStatus == 0 && _vm.noPay < 0 && _vm.type == 0 && _vm.returnInv != 1 ? Math.abs(_vm.noPay) : null var g12 = _vm.type == 0 && _vm.sales.inStorageStatus == 0 && _vm.noPay < 0 && _vm.type == 0 && _vm.returnInv != 1 ? Math.abs(_vm.noPay) : null _vm.$mp.data = Object.assign( {}, { $root: { l1: l1, g3: g3, g4: g4, g5: g5, g6: g6, g7: g7, g8: g8, g9: g9, g10: g10, g11: g11, g12: g12, }, } ) } var recyclableRender = false var staticRenderFns = [] render._withStripped = true /***/ }), /***/ 461: /*!*************************************************************************************************************************!*\ !*** /Users/mac/Documents/HBuilderProjects/kuaiyidian-HD/package1/index/waitStorageDetail.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./waitStorageDetail.vue?vue&type=script&lang=js& */ 462); /* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), /***/ 462: /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!/Users/mac/Documents/HBuilderProjects/kuaiyidian-HD/package1/index/waitStorageDetail.vue?vue&type=script&lang=js& ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(uni, wx) { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4); var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 28)); var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 30)); var _util = _interopRequireDefault(__webpack_require__(/*! @/components/kk-printer/utils/util.js */ 244)); var blesdk = _interopRequireWildcard(__webpack_require__(/*! @/components/kk-printer/utils/bluetoolth.js */ 245)); var _printUtilGBK = _interopRequireDefault(__webpack_require__(/*! @/components/kk-printer/utils/printUtil-GBK.js */ 246)); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // var kkPrinter = function kkPrinter() { Promise.all(/*! require.ensure | components/kk-printer/index */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/kk-printer/index")]).then((function () { return resolve(__webpack_require__(/*! @/components/kk-printer/index.vue */ 1133)); }).bind(null, __webpack_require__)).catch(__webpack_require__.oe); }; var _default = { data: function data() { return { sales: {}, goodsList: [], isReturn: false, shouldPay: 0, shopName: uni.getStorageSync('shopName'), noPay: 0, claerSubmitBtn: 0, alreadyPay: 0, otherPay: 0, bufferData: [], remark: '', list: [], printHeight: 0, qianhuoCount: 0, zhiqianqiankuan: 0, isShare: false, yuedikou: 0, leijiqiankuan: 0, printingMethod: '0', id: '', type: '', bigImg: [], supplier: [], dealings: [], collection: [], returnInv: 0, storeFlag: "", screenHeight: 0 }; }, components: { kkPrinter: kkPrinter }, filters: { sliceMsg: function sliceMsg(val) { var name = ''; if (typeof val == 'string') { var newObj = JSON.parse(val); for (var as in newObj) { name += newObj[as] + '/'; } } return name; } }, onShareAppMessage: function onShareAppMessage() { //禁止转发 wx.updateShareMenu({ isPrivateMessage: true, success: function success() {}, fail: function fail() {} }); if (this.returnInv == 1) { return { title: this.shopName + ' ' + this.sales.createTime + '的采购退货单', imageUrl: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/b28b3d46c21d4f60a334b25f56175cf3.jpg', path: '/package1/index/waitStorageDetail?returnInv=1&id=' + this.sales.id + '&shopId=' + uni.getStorageSync('shopId') }; } else { return { title: this.shopName + ' ' + this.sales.createTime + '的采购单', imageUrl: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/b28b3d46c21d4f60a334b25f56175cf3.jpg', path: '/package1/index/waitStorageDetail?id=' + this.sales.id + '&shopId=' + uni.getStorageSync('shopId') }; } }, onShow: function onShow() { // 初始化蓝牙模块 wx.openBluetoothAdapter({ mode: 'central' }); }, onLoad: function onLoad(option) { // 同步方式获取屏幕信息 var systemInfo = uni.getSystemInfoSync(); this.screenHeight = systemInfo.screenHeight; this.id = option.id; this.returnInv = option.returnInv; this.storeFlag = option.storeFlag || ""; if (option.returnInv == 1) { this.getWaitStorage(option.id); uni.setNavigationBarTitle({ title: '采购退货详情' }); } else { this.getWaitStorage(option.id); this.collectionList(option.id); } this.isShare = option.shopId ? true : false; if (option.shopId && option.shopId != uni.getStorageSync('shopId')) { if (option.returnInv == 1) { uni.reLaunch({ url: "/package1/index/waitStorageDetailShu?returnInv=1&id=" + option.id + '&shopId=' + option.shopId }); } else { uni.reLaunch({ url: "/package1/index/waitStorageDetailShu?id=" + option.id + '&shopId=' + option.shopId }); } } this.type = uni.getStorageSync('type'); }, methods: { confirmInventory: function confirmInventory() { var that = this; var countList = []; for (var i = 0; i < that.goodsList.length; i++) { if (that.goodsList[i].purchaseQian > 0) { var data = { productName: that.goodsList[i].productName, productSn: that.goodsList[i].productSn, productId: that.goodsList[i].productId, productCount: that.goodsList[i].purchaseQian }; countList.push(data); } } that.$nextTick(function () { that.tui.request("/app/purchaseConfirm/addPurchaseConfirm", "POST", { purchaseId: that.sales.id, //入库单id purchaseTime: that.sales.createTime, //入库单时间 createBy: that.sales.createBy, //入库人 createByName: that.sales.createByName, supplierName: that.sales.supplierName, //供应商名 supplierId: that.sales.supplierId, // 供应商id purchaseConfirmDetailsList: countList //修改了的值 }, false, false).then(function (res) { if (res.code == 200) { uni.showToast({ title: "确认成功!", icon: 'none', duration: 1000 }); uni.navigateBack(); } else { that.tui.toast(res.message); } }).catch(function (res) {}); }); }, getPrintHeight: function getPrintHeight() { var that = this; this.printHeight = 960; for (var i = 0; i < that.newData.length; i++) { this.printHeight += 40; for (var m = 0; m < that.newData[i].stockLogList1.length; m++) { this.printHeight += 40; } } }, closeMask: function closeMask(name, index) { this.goodsList[index].isShowBtn = false; this.$forceUpdate(); }, backPage: function backPage() { if (this.isShare) { uni.reLaunch({ url: '/pages/index/home' }); } else { uni.navigateBack(); } }, getChildrenPic: function getChildrenPic(img) { var _this = this; var that = this; this.tui.request("/app/productPicture/getProductPictureByProductId", "POST", { productId: img.productId }, false, true).then(function (res) { if (res.code == 200) { img.productPictures = []; if (res.result.length > 0) { for (var i = 0; i < res.result.length; i++) { var data = { productPicture: res.result[i].productPicture }; img.productPictures.push(data); } } setTimeout(function (res1) { that.largeImg(img); }, 400); } else { _this.tui.toast(res.message); } }).catch(function (res) {}); }, largeImg: function largeImg(img) { if (img.productPicture == null && img.productPictures == null || img.productPicture == '' && img.productPictures == null) { this.tui.toast("暂无可展示的图片", 300); return; } this.bigImg = []; if (img.productPicture != null) { var data = { productPicture: img.productPicture }; this.bigImg.push(data); } if (img.productPictures != null) { for (var i = 0; i < img.productPictures.length; i++) { this.bigImg.push(img.productPictures[i]); } } this.$refs.imgPopup.open(); }, //回款历史 collectionList: function collectionList(id) { var _this2 = this; ///app/debt/selectByUserId this.tui.request('/app/dealingRecord/getDealingsRecordList', 'post', { orderId: id }, false, true).then(function (res) { _this2.collection = res.result; }).catch(function (res) {}); }, getWaitStorage: function getWaitStorage(id) { var _this3 = this; if (this.returnInv == 1) { this.tui.request("/app/purchaseReturn/getPurchaseReturnById", "post", { id: id }, false, true).then(function (res) { if (res.code == 200) { for (var _i = 0; _i < res.result.purchaseReturnDetails.length; _i++) { var obj = {}; var attrMap = new Map(); var newSaleDetailDTOList = []; var num = 0; for (var m = 0; m < res.result.purchaseReturnDetails[_i].stockLogList1.length; m++) { if (attrMap.has(res.result.purchaseReturnDetails[_i].stockLogList1[m].attributeList) == true) {} else { newSaleDetailDTOList.push(res.result.purchaseReturnDetails[_i].stockLogList1[m]); attrMap.set(res.result.purchaseReturnDetails[_i].stockLogList1[m].attributeList, num); num++; } } res.result.purchaseReturnDetails[_i].stockLogList1 = newSaleDetailDTOList; if (res.result.purchaseReturnDetails[_i].purchasePrice != null) { res.result.purchaseReturnDetails[_i].zPrice = res.result.purchaseReturnDetails[_i].purchasePrice * res.result.purchaseReturnDetails[_i].productCount; } else { res.result.purchaseReturnDetails[_i].zPrice = 0; } if (res.result.purchaseReturnDetails[_i].purchasePrice == null || res.result.purchaseReturnDetails[_i].purchasePrice == '') { res.result.purchaseReturnDetails[_i].purchasePrice = 0; } res.result.purchaseReturnDetails[_i].lsPrice = res.result.purchaseReturnDetails[_i].lsPrice; } setTimeout(function (res) {}, 500); if (res.result.purchaseReturn.inStorageStatus == 0) { _this3.tui.request('/app/debt/selectByUserId', 'post', { shopId: uni.getStorageSync('shopId'), userId: res.result.dealingsRecords[0].dealingsUserId }, false, true).then(function (res1) { _this3.zhiqianqiankuan = res1.result.amountOwed; _this3.dealings = res1.result; _this3.dealings.lastDebtAmount = res1.result.amountOwed; _this3.dealings.dealingsUserName = res1.result.userName; }).catch(function (res) {}); } else { if (res.result.dealingsRecords != '') { _this3.zhiqianqiankuan = res.result.dealingsRecords[0].lastDebtAmount; _this3.dealings = res.result.dealingsRecords[0]; } } _this3.list = res.result.purchaseReturnDetails; for (var i = 0; i < _this3.list.length; i++) { _this3.list[i].noDaysort = false; if (_this3.list[i].realPrice != '' && _this3.list[i].discountAmount == null) { _this3.list[i].discountAmount = _this3.list[i].realPrice; } _this3.list[i].chengben = _this3.list[i].productCount * _this3.list[i].purchasePrice; } _this3.sales.zongchengben = 0; for (var i = 0; i < _this3.list.length; i++) { _this3.sales.zongchengben += _this3.list[i].chengben; } _this3.newData = JSON.parse(JSON.stringify(_this3.list)); _this3.sales.inStorageStatus = null; _this3.sales = res.result.purchaseReturn; _this3.noPay = res.result.purchaseReturn.noPay; _this3.supplier = res.result.supplier; _this3.remark = res.result.purchaseReturn.remark; _this3.goodsList = res.result.purchaseReturnDetails; _this3.getAllPrice(); _this3.$nextTick(function () { setTimeout(function (res) { _this3.getPrintHeight(); }, 1000); }); } else { _this3.tui.toast(res.message); } }).catch(function (res) {}); } else { this.tui.request("/app/purchase/getPurchaseAllData", "post", { id: id }, false, true).then(function (res) { if (res.code == 200) { for (var i = 0; i < res.result.purchaseDetails.length; i++) { res.result.purchaseDetails[i].noDaysort = false; if (res.result.purchaseDetails[i].purchasePrice != null) { res.result.purchaseDetails[i].zPrice = res.result.purchaseDetails[i].purchasePrice * res.result.purchaseDetails[i].productCount; } else { res.result.purchaseDetails[i].zPrice = 0; } if (res.result.purchaseDetails[i].purchasePrice == null || res.result.purchaseDetails[i].purchasePrice == '') { res.result.purchaseDetails[i].purchasePrice = 0; } res.result.purchaseDetails[i].lsPrice = res.result.purchaseDetails[i].lsPrice; } if (res.result.purchase.inStorageStatus == 0) { _this3.tui.request('/app/debt/selectByUserId', 'post', { shopId: uni.getStorageSync('shopId'), userId: res.result.supplier.id }, false, true).then(function (res1) { _this3.zhiqianqiankuan = res1.result.amountOwed; _this3.dealings = res1.result; _this3.dealings.lastDebtAmount = res1.result.amountOwed; _this3.dealings.dealingsUserName = res1.result.userName; }).catch(function (res) {}); } else { if (res.result.dealingsRecords != '') { _this3.zhiqianqiankuan = res.result.dealingsRecords[0].lastDebtAmount; _this3.dealings = res.result.dealingsRecords[0]; } } _this3.sales = res.result.purchase; _this3.noPay = res.result.purchase.noPay; _this3.supplier = res.result.supplier; _this3.remark = res.result.purchase.remark; _this3.goodsList = res.result.purchaseDetails; _this3.getAllPrice("1"); } else { _this3.tui.toast(res.message); } }).catch(function (res) {}); } }, changeIcon: function changeIcon(index) { this.goodsList[index].noDaysort = !this.goodsList[index].noDaysort; }, //计算欠款 changePay: function changePay(e) { if (this.linshiPrice == e.target.value) { this.alreadyPay = e.target.value; } else if (Number(e.detail.value) > Number(this.shouldPay)) { this.alreadyPay = this.shouldPay; } else { if (e.target.value == '') { this.alreadyPay = this.linshiPrice; } else { this.alreadyPay = e.target.value; if (this.shouldPay - this.alreadyPay <= Math.abs(this.zhiqianqiankuan) && this.zhiqianqiankuan < 0) { this.yuedikou = this.shouldPay - this.alreadyPay; } else if (this.shouldPay - this.alreadyPay > Math.abs(this.zhiqianqiankuan) && this.zhiqianqiankuan < 0) { this.yuedikou = Math.abs(this.zhiqianqiankuan); } } } this.noPay = this.shouldPay - this.alreadyPay - this.yuedikou; this.noPay = this.noPay.toFixed(2); this.leijiqiankuan = Number(this.zhiqianqiankuan) + Number(this.yuedikou) + Number(this.noPay); }, //打印小票 onPrintSmall: function onPrintSmall() { var that = this; var strCmd = ''; var pageNum = 1; var Xindex = 0; if (this.printingMethod == '0') { that.yNum = 405; } else { that.yNum = 350; } strCmd = blesdk.CreatCPCLPage(1080, this.printHeight >= 1990 * pageNum ? 1990 : this.printHeight, 1, 0, 0); strCmd += blesdk.addCPCLSETMAG(4, 4); blesdk.addCPCLSETBOLD('bold'); strCmd += blesdk.addCPCLLocation(2); strCmd += blesdk.addCPCLText('0', '120', '24', '0', 0, this.shopName); strCmd += blesdk.addCPCLSETMAG(1, 1); strCmd += blesdk.addCPCLLocation(0); blesdk.addCPCLSETBOLD('bold'); strCmd += blesdk.addCPCLText('0', '300', '24', '0', 0, '供应商:' + (that.dealings.dealingsUserName ? that.dealings.dealingsUserName : '默认供应商')); strCmd += blesdk.addCPCLSETMAG(1, 1); strCmd += blesdk.addCPCLLocation(0); strCmd += blesdk.addCPCLText('500', '300', '24', '0', 0, '单号:' + that.sales.id); strCmd += blesdk.addCPCLText('0', '350', '24', '0', 0, '操作人:' + that.sales.createByName); strCmd += blesdk.addCPCLText('500', '350', '24', '0', 0, '日期:' + that.sales.createTime); if (this.printingMethod == '0') { strCmd += blesdk.addCPCLText('0', '390', '24', '0', 0, '-----------------------------------------------------------------------------------'); strCmd += blesdk.addCPCLText('10', that.yNum += 40, '24', '0', 0, '货号(名称)'); strCmd += blesdk.addCPCLText('320', that.yNum, '24', '0', 0, '规格'); strCmd += blesdk.addCPCLText('520', that.yNum, '24', '0', 0, '数量'); strCmd += blesdk.addCPCLText('620', that.yNum, '24', '0', 0, '单价'); strCmd += blesdk.addCPCLText('720', that.yNum, '24', '0', 0, '总价'); } for (var i = 0; i < that.newData.length; i++) { if (that.yNum + 25 >= 1990) { strCmd += blesdk.addCPCLPrint(); that.bufferData.push(strCmd); strCmd = blesdk.CreatCPCLPage(1080, this.printHeight - that.yNum + 25 >= 1990 ? 1990 : this.printHeight - that.yNum + 25, 1, 0, 162); that.yNum = 0; pageNum++; strCmd += blesdk.addCPCLText('0', that.yNum += 25, '24', '0', 0, '-----------------------------------------------------------------------------------'); } else { strCmd += blesdk.addCPCLText('0', that.yNum += 25, '24', '0', 0, '-----------------------------------------------------------------------------------'); } if (this.printingMethod == '1') { if (that.yNum + 64 >= 1990) { strCmd += blesdk.addCPCLPrint(); that.bufferData.push(strCmd); strCmd = blesdk.CreatCPCLPage(1080, this.printHeight - that.yNum + 64 >= 1990 ? 1990 : this.printHeight - that.yNum + 64, 1, 0, 162); that.yNum = 0; pageNum++; } if (that.newData[i].productName == that.newData[i].productSn) { strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, that.newData[i].productSn); } else { strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, that.newData[i].productSn + '(' + (that.newData[i].productName == null ? '' : that.newData[i].productName) + ')'); } if (that.yNum + 64 >= 1990) { strCmd += blesdk.addCPCLPrint(); that.bufferData.push(strCmd); strCmd = blesdk.CreatCPCLPage(1080, this.printHeight - that.yNum + 64 >= 1990 ? 1990 : this.printHeight - that.yNum + 64, 1, 0, 162); that.yNum = 0; pageNum++; } strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '颜色'); var startWith = 180; for (var a = 0; a < that.newData[i].sizeList.length; a++) { if ((that.shopId == '1820269107191353344' || that.shopId == '1818888277105709056') && that.newData[i].sizeList[a] == '均') { that.newData[i].sizeList[a] = '分码'; } strCmd += blesdk.addCPCLText(startWith.toString(), that.yNum, '24', '0', 0, that.newData[i].sizeList[a]); startWith += Math.floor(420 / that.newData[i].sizeList.length); } strCmd += blesdk.addCPCLText('578', that.yNum, '24', '0', 0, '数量'); strCmd += blesdk.addCPCLText('644', that.yNum, '24', '0', 0, '单价'); strCmd += blesdk.addCPCLText('720', that.yNum, '24', '0', 0, '总价'); that.newData[i].sizePrintList.forEach(function (value, key) { if (that.yNum + 64 >= 1990) { strCmd += blesdk.addCPCLPrint(); that.bufferData.push(strCmd); strCmd = blesdk.CreatCPCLPage(1080, that.printHeight - that.yNum + 64 >= 1990 ? 1990 : that.printHeight - that.yNum + 64, 1, 0, 162); that.yNum = 0; pageNum++; } if ((that.shopId == '1820269107191353344' || that.shopId == '1818888277105709056') && key == '均色') { key = '分色'; } strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, key); var childStartWith = 180; var allCount = 0; var discountAmount = 0; for (var _a = 0; _a < that.newData[i].sizeList.length; _a++) { var printSizeCount = []; if (that.newData[i].sizeList[_a] == '分码') { that.newData[i].sizeList[_a] = '均'; } if (value.has(that.newData[i].sizeList[_a])) { printSizeCount = value.get(that.newData[i].sizeList[_a]).split(':'); discountAmount = printSizeCount[1] == undefined ? '' : printSizeCount[1]; } allCount += printSizeCount[0] == undefined ? 0 : Number(printSizeCount[0]); strCmd += blesdk.addCPCLText(childStartWith.toString(), that.yNum, '24', '0', 0, printSizeCount[0] == undefined ? '' : Number(printSizeCount[0])); childStartWith += Math.floor(420 / that.newData[i].sizeList.length); } strCmd += blesdk.addCPCLText('578', that.yNum, '24', '0', 0, allCount); strCmd += blesdk.addCPCLText('644', that.yNum, '24', '0', 0, discountAmount); strCmd += blesdk.addCPCLText('720', that.yNum, '24', '0', 0, allCount * discountAmount); }); } else { if (that.yNum + 64 >= 1990) { strCmd += blesdk.addCPCLPrint(); that.bufferData.push(strCmd); strCmd = blesdk.CreatCPCLPage(1080, this.printHeight - that.yNum + 64 >= 1990 ? 1990 : this.printHeight - that.yNum + 64, 1, 0, 162); that.yNum = 0; pageNum++; for (var m = 0; m < that.newData[i].stockLogList1.length; m++) { if (that.yNum + 64 >= 1990) { strCmd += blesdk.addCPCLPrint(); that.bufferData.push(strCmd); strCmd = blesdk.CreatCPCLPage(1080, this.printHeight - that.yNum + 64 >= 1990 ? 1990 : this.printHeight - that.yNum + 64, 1, 0, 162); that.yNum = 0; pageNum++; if (that.newData[i].productName == that.newData[i].productSn && that.order.name != '散客') { strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, (Xindex += 1) + '.' + '【退】' + that.newData[i].productSn); } else { strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, (Xindex += 1) + '.' + '【退】' + that.newData[i].productSn + '(' + (that.newData[i].productName == null ? '' : that.newData[i].productName) + ')'); } if (that.shopId == '1820269107191353344' || that.shopId == '1818888277105709056') { if (that.newData[i].stockLogList1[m].attributeList.indexOf('均色') != -1) { that.newData[i].stockLogList1[m].attributeList = that.newData[i].stockLogList1[m].attributeList.replace(/均色/g, '分色'); } if (that.newData[i].stockLogList1[m].attributeList.indexOf('均码') != -1) { that.newData[i].stockLogList1[m].attributeList = that.newData[i].stockLogList1[m].attributeList.replace(/均码/g, '分码'); } } strCmd += blesdk.addCPCLText('320', that.yNum, '24', '0', 0, that.slicePrint(that.newData[i].stockLogList1[m].attributeList)); strCmd += blesdk.addCPCLText('520', that.yNum, '24', '0', 0, that.newData[i].stockLogList1[m].productCount); strCmd += blesdk.addCPCLText('620', that.yNum, '24', '0', 0, that.newData[i].stockLogList1[m].purchasePrice); strCmd += blesdk.addCPCLText('720', that.yNum, '24', '0', 0, that.newData[i].stockLogList1[m].purchasePrice * that.newData[i].stockLogList1[m].productCount); } else { if (that.newData[i].productName == that.newData[i].productSn && that.order.name != '散客') { strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, (Xindex += 1) + '.' + '【退】' + that.newData[i].productSn); } else { strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, (Xindex += 1) + '.' + '【退】' + that.newData[i].productSn + '(' + (that.newData[i].productName == null ? '' : that.newData[i].productName) + ')'); } if (that.shopId == '1820269107191353344' || that.shopId == '1818888277105709056') { if (that.newData[i].stockLogList1[m].attributeList.indexOf('均色') != -1) { that.newData[i].stockLogList1[m].attributeList = that.newData[i].stockLogList1[m].attributeList.replace(/均色/g, '分色'); } if (that.newData[i].stockLogList1[m].attributeList.indexOf('均码') != -1) { that.newData[i].stockLogList1[m].attributeList = that.newData[i].stockLogList1[m].attributeList.replace(/均码/g, '分码'); } } strCmd += blesdk.addCPCLText('320', that.yNum, '24', '0', 0, that.slicePrint(that.newData[i].stockLogList1[m].attributeList)); strCmd += blesdk.addCPCLText('520', that.yNum, '24', '0', 0, that.newData[i].stockLogList1[m].productCount); strCmd += blesdk.addCPCLText('620', that.yNum, '24', '0', 0, that.newData[i].stockLogList1[m].purchasePrice); strCmd += blesdk.addCPCLText('720', that.yNum, '24', '0', 0, that.newData[i].stockLogList1[m].purchasePrice * that.newData[i].stockLogList1[m].productCount); } } } else { for (var m = 0; m < that.newData[i].stockLogList1.length; m++) { if (that.yNum + 64 >= 1990) { strCmd += blesdk.addCPCLPrint(); that.bufferData.push(strCmd); strCmd = blesdk.CreatCPCLPage(1080, this.printHeight - that.yNum + 64 >= 1990 ? 1990 : this.printHeight - that.yNum + 64, 1, 0, 162); that.yNum = 0; pageNum++; if (that.newData[i].productName == that.newData[i].productSn) { strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, (Xindex += 1) + '.' + '【退】' + that.newData[i].productSn); } else { strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, (Xindex += 1) + '.' + '【退】' + that.newData[i].productSn + '(' + (that.newData[i].productName == null ? '' : that.newData[i].productName) + ')'); } if (that.shopId == '1820269107191353344' || that.shopId == '1818888277105709056') { if (that.newData[i].stockLogList1[m].attributeList.indexOf('均色') != -1) { that.newData[i].stockLogList1[m].attributeList = that.newData[i].stockLogList1[m].attributeList.replace(/均色/g, '分色'); } if (that.newData[i].stockLogList1[m].attributeList.indexOf('均码') != -1) { that.newData[i].stockLogList1[m].attributeList = that.newData[i].stockLogList1[m].attributeList.replace(/均码/g, '分码'); } } strCmd += blesdk.addCPCLText('320', that.yNum, '24', '0', 0, that.slicePrint(that.newData[i].stockLogList1[m].attributeList)); strCmd += blesdk.addCPCLText('520', that.yNum, '24', '0', 0, that.newData[i].stockLogList1[m].productCount); strCmd += blesdk.addCPCLText('620', that.yNum, '24', '0', 0, that.newData[i].stockLogList1[m].purchasePrice); strCmd += blesdk.addCPCLText('720', that.yNum, '24', '0', 0, that.newData[i].stockLogList1[m].purchasePrice * that.newData[i].stockLogList1[m].productCount); } else { if (that.newData[i].productName == that.newData[i].productSn) { strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, (Xindex += 1) + '.' + '【退】' + that.newData[i].productSn); } else { strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, (Xindex += 1) + '.' + '【退】' + that.newData[i].productSn + '(' + (that.newData[i].productName == null ? '' : that.newData[i].productName) + ')'); } if (that.shopId == '1820269107191353344' || that.shopId == '1818888277105709056') { if (that.newData[i].stockLogList1[m].attributeList.indexOf('均色') != -1) { that.newData[i].stockLogList1[m].attributeList = that.newData[i].stockLogList1[m].attributeList.replace(/均色/g, '分色'); } if (that.newData[i].stockLogList1[m].attributeList.indexOf('均码') != -1) { that.newData[i].stockLogList1[m].attributeList = that.newData[i].stockLogList1[m].attributeList.replace(/均码/g, '分码'); } } strCmd += blesdk.addCPCLText('320', that.yNum, '24', '0', 0, that.slicePrint(that.newData[i].stockLogList1[m].attributeList)); strCmd += blesdk.addCPCLText('520', that.yNum, '24', '0', 0, that.newData[i].stockLogList1[m].productCount); strCmd += blesdk.addCPCLText('620', that.yNum, '24', '0', 0, that.newData[i].stockLogList1[m].purchasePrice); strCmd += blesdk.addCPCLText('720', that.yNum, '24', '0', 0, that.newData[i].stockLogList1[m].purchasePrice * that.newData[i].stockLogList1[m].productCount); } } } } } if (that.yNum + 25 >= 1990) { strCmd += blesdk.addCPCLPrint(); that.bufferData.push(strCmd); strCmd = blesdk.CreatCPCLPage(1080, this.printHeight - that.yNum + 25 >= 1990 ? 1990 : this.printHeight - that.yNum + 25, 1, 0, 162); that.yNum = 0; pageNum++; strCmd += blesdk.addCPCLText('0', that.yNum += 25, '24', '0', 0, '-----------------------------------------------------------------------------------'); } else { strCmd += blesdk.addCPCLText('0', that.yNum += 25, '24', '0', 0, '-----------------------------------------------------------------------------------'); } strCmd += blesdk.addCPCLSETMAG(1, 1); strCmd += blesdk.addCPCLLocation(0); if (that.yNum + 84 >= 1990) { strCmd += blesdk.addCPCLPrint(); that.bufferData.push(strCmd); strCmd = blesdk.CreatCPCLPage(1080, this.printHeight - that.yNum + 84 >= 1990 ? 1990 : this.printHeight - that.yNum + 84, 1, 0, 162); that.yNum = 0; pageNum++; strCmd += blesdk.addCPCLText('0', that.yNum += 60, '24', '0', 0, '退货数量:' + this.sales.totalAmount); strCmd += blesdk.addCPCLText('300', that.yNum, '24', '0', 0, '退货金额:' + this.sales.alreadyPay); } else { strCmd += blesdk.addCPCLText('0', that.yNum += 60, '24', '0', 0, '退货数量:' + this.sales.totalAmount); strCmd += blesdk.addCPCLText('300', that.yNum, '24', '0', 0, '退货金额:' + this.sales.alreadyPay); } if (that.yNum + 54 >= 1990) { strCmd += blesdk.addCPCLPrint(); that.bufferData.push(strCmd); strCmd = blesdk.CreatCPCLPage(1080, this.printHeight - that.yNum + 54 >= 1990 ? 1990 : this.printHeight - that.yNum + 54, 1, 0, 162); that.yNum = 0; pageNum++; if (that.dealings.lastDebtAmount >= 0) { strCmd += blesdk.addCPCLText('610', that.yNum, '24', '0', 0, '之前欠款:' + that.dealings.lastDebtAmount); } else if (that.dealings.lastDebtAmount < 0) { strCmd += blesdk.addCPCLText('610', that.yNum, '24', '0', 0, '之前余额:' + Math.abs(that.dealings.lastDebtAmount)); } else { strCmd += blesdk.addCPCLText('610', that.yNum, '24', '0', 0, '之前欠款:0'); } } else { strCmd += blesdk.addCPCLSETMAG(1, 1); if (that.dealings.lastDebtAmount >= 0) { strCmd += blesdk.addCPCLText('610', that.yNum, '24', '0', 0, '之前欠款:' + that.dealings.lastDebtAmount); } else if (that.dealings.lastDebtAmount < 0) { strCmd += blesdk.addCPCLText('610', that.yNum, '24', '0', 0, '之前余额:' + Math.abs(that.dealings.lastDebtAmount)); } else { strCmd += blesdk.addCPCLText('610', that.yNum, '24', '0', 0, '之前欠款:0'); } } if (that.yNum + 54 >= 1990) { strCmd += blesdk.addCPCLPrint(); that.bufferData.push(strCmd); strCmd = blesdk.CreatCPCLPage(1080, this.printHeight - that.yNum + 54 >= 1990 ? 1990 : this.printHeight - that.yNum + 54, 1, 0, 162); that.yNum = 0; pageNum++; if (that.dealings.balanceDue >= 0) { strCmd += blesdk.addCPCLText('610', that.yNum + 54, '24', '0', 0, '累计欠款:' + that.dealings.balanceDue); } else if (that.dealings.balanceDue < 0) { strCmd += blesdk.addCPCLText('610', that.yNum + 54, '24', '0', 0, '累计余额:' + Math.abs(that.dealings.balanceDue)); } else { strCmd += blesdk.addCPCLText('610', that.yNum + 54, '24', '0', 0, '累计欠款:0'); } strCmd += blesdk.addCPCLPrint(); that.bufferData.push(strCmd); } else { strCmd += blesdk.addCPCLSETMAG(1, 1); if (that.dealings.balanceDue >= 0) { strCmd += blesdk.addCPCLText('610', that.yNum + 54, '24', '0', 0, '累计欠款:' + that.dealings.balanceDue); } else if (that.dealings.balanceDue < 0) { strCmd += blesdk.addCPCLText('610', that.yNum + 54, '24', '0', 0, '累计余额:' + Math.abs(that.dealings.balanceDue)); } else { strCmd += blesdk.addCPCLText('610', that.yNum + 54, '24', '0', 0, '累计欠款:0'); } strCmd += blesdk.addCPCLPrint(); that.bufferData.push(strCmd); } this.$nextTick(function () { that.bufferData = []; }); }, //截取 slicePrint: function slicePrint(val) { var name = ''; if (typeof val == 'string') { var newObj = JSON.parse(val); for (var as in newObj) { name += newObj[as] + '/'; } } return name; }, //回款金额输入框 inputDialogToggle: function inputDialogToggle() { this.$refs.inputDialog.open(); }, sureNpPay: function sureNpPay(e) { if (e > this.noPay) { uni.showToast({ title: "回款金额不应超过欠款金额!", icon: 'none' }); return; } this.tui.request('/app/purchase/editPayPrice', 'post', { id: this.sales.id, price: e }, false, true).then(function (res) { uni.showToast({ title: "成功!", icon: 'none' }); uni.navigateBack(); }).catch(function (res) {}); }, PriceAndWho: function PriceAndWho(e, id, type) { if (type == 'pi') { if (this.linshiPrice == e.target.value) { this.goodsList[id].wholesalePrice = e.target.value; } else { if (e.detail.value == '') { this.goodsList[id].wholesalePrice = this.linshiPrice; } else { this.goodsList[id].wholesalePrice = Number(e.detail.value); } } } else if (type == 'caigou') { this.shouldPay = 0; if (this.linshiPrice == e.target.value) { this.goodsList[id].purchasePrice = e.target.value; } else { if (e.detail.value == '') { this.goodsList[id].purchasePrice = this.linshiPrice; } else { this.goodsList[id].purchasePrice = Number(e.detail.value); } } this.goodsList[id].zPrice = this.goodsList[id].purchasePrice * this.goodsList[id].productCount; this.getAllPrice(); } else if (type == 'qianhuo') { if (this.qianhuoCount == e.target.value) { this.goodsList[id].purchaseQian = e.target.value; } else { if (e.detail.value == '') { this.goodsList[id].purchaseQian = this.qianhuoCount; } else { this.goodsList[id].purchaseQian = Number(e.detail.value); } } } else { if (this.linshiPrice == e.target.value) { // this.goodsList[id].price = e.target.value this.goodsList[id].lsPrice = e.target.value; } else { if (e.detail.value == '') { // this.goodsList[id].price = this.linshiPrice this.goodsList[id].lsPrice = this.linshiPrice; } else { // this.goodsList[id].price = Number(e.detail.value) this.goodsList[id].lsPrice = Number(e.detail.value); } } } this.$forceUpdate(); }, obtainPrice: function obtainPrice(e, type, num) { this.linshiPrice = e.target.value; if (type == 'pifa') { this.goodsList[num].wholesalePrice = ''; this.$forceUpdate(); } else if (type == 'lingshou') { this.goodsList[num].price = ''; this.$forceUpdate(); } else if (type == 'caigou') { this.goodsList[num].purchasePrice = ''; this.$forceUpdate(); } else if (type == 'qianhuo') { this.qianhuoCount = e.target.value; this.goodsList[num].purchaseQian = ''; this.$forceUpdate(); } }, inventorySubmit: function inventorySubmit() { var _this4 = this; this.claerSubmitBtn += 1; if (this.claerSubmitBtn == 1) { var that = this; var purchase = { id: this.id, alreadyPay: this.alreadyPay, //已付金额 noPay: this.noPay, //欠款 balanceDeductionAmount: this.yuedikou, shouldPay: this.shouldPay, //应付金额 totalAmount: this.sales.totalAmount, //总数量 remark: this.remark, supplierId: this.sales.supplierId, //供应商id和姓名 supplierName: this.sales.supplierName }; for (var i = 0; i < this.goodsList.length; i++) { if (this.goodsList[i].wholesalePrice == '' || this.goodsList[i].wholesalePrice == null) { this.goodsList[i].wholesalePrice = 0; } if (this.goodsList[i].purchasePrice == '' || this.goodsList[i].purchasePrice == null) { this.goodsList[i].purchasePrice = 0; } for (var m = 0; m < this.goodsList[i].stockLogList1.length; m++) { if (this.goodsList[i].stockLogList1[m].productCount == '' || this.goodsList[i].stockLogList1[m].productCount == null) { this.goodsList[i].stockLogList1[m].productCount = 0; } } } setTimeout(function (res) { _this4.tui.request("/app/stock/putInPrice", "post", { purchase: purchase, purchaseDetails: _this4.goodsList }, false, false).then(function (res) { if (res.code == 200) { uni.showToast({ title: "入库成功", icon: 'none' }); uni.navigateBack({ delta: 2 }); } else { uni.showToast({ title: "入库失败", icon: 'none' }); } }); }, 500); } else { this.tui.toast('请勿重复输入!'); } }, // 取消订单 cancelOrder: function cancelOrder(item) { var _this5 = this; var that = this; this.tui.modal("提示", "您确定要撤销此采购单吗?", true, function (res) { if (res) { uni.reLaunch({ url: '/package1/AI/waitStorageHeng?detailToDel=1&inStorageStatus=1&item=' + JSON.stringify(_this5.sales) }); } }); }, sliceMsg: function sliceMsg(val) { var name = ''; if (typeof val == 'string') { var newObj = JSON.parse(val); for (var as in newObj) { name += newObj[as] + '/'; } } return name; }, //带参数跳转到入库页 goSaleGoods: function goSaleGoods() { var _this6 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() { var that, dataList, i, obj, attrMap, newSaleDetailDTOList, num, m, hasCount, _obj; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: that = _this6; dataList = []; if (!_this6.goodsList) { _this6.goodsList = []; } if (_this6.goodsList) { for (i = 0; i < _this6.goodsList.length; i++) { obj = {}; attrMap = new Map(); newSaleDetailDTOList = []; num = 0; for (m = 0; m < _this6.goodsList[i].stockLogList1.length; m++) { if (attrMap.has(_this6.goodsList[i].stockLogList1[m].attributeList) == true) { hasCount = attrMap.get(_this6.goodsList[i].stockLogList1[m].attributeList); newSaleDetailDTOList[hasCount].productCount = Number(newSaleDetailDTOList[hasCount].productCount) + Number(_this6.goodsList[i].stockLogList1[m].productCount); } else { _this6.goodsList[i].stockLogList1[m].name = _this6.sliceMsg(_this6.goodsList[i].stockLogList1[m].attributeList); newSaleDetailDTOList.push(_this6.goodsList[i].stockLogList1[m]); attrMap.set(_this6.goodsList[i].stockLogList1[m].attributeList, num); num++; } } obj.saleDetailQueryDTO = newSaleDetailDTOList; obj.num = 0; obj.attrId = _this6.goodsList[i].attrId; obj.id = _this6.goodsList[i].productId; obj.purchasePrice = _this6.goodsList[i].stockLogList1[0].purchasePrice; obj.customerCategoryRule = _this6.goodsList[i].customerCategoryRule != null ? JSON.parse(_this6.goodsList[i].customerCategoryRule) : null; obj.price = _this6.goodsList[i].price; obj.categoryId = _this6.goodsList[i].categoryId; obj.productName = _this6.goodsList[i].productName; obj.productPicture = _this6.goodsList[i].productPicture; obj.productSn = _this6.goodsList[i].productSn; obj.productId = _this6.goodsList[i].productId; obj.wholesalePrice = _this6.goodsList[i].wholesalePrice; obj.saleId = _this6.sales.id; obj.remark = _this6.sales.remark; obj.xsyId = _this6.sales.createBy; obj.createByName = _this6.sales.createByName; dataList.push(obj); } } else { _obj = {}; _obj.num = 0; _obj.price = 0; _obj.saleId = _this6.sales.id; _obj.remark = _this6.sales.remark; _obj.xsyId = _this6.sales.createBy; _obj.createByName = _this6.sales.createByName; dataList.push(_obj); } uni.setStorageSync('AiInventoryId', ""); _context.next = 7; return _this6.tui.request("/app/debt/selectByUserId", "post", { shopId: uni.getStorageSync('shopId'), userId: that.sales.supplierId }, false, true).then(function (res) { if (res.code == 200) { res.result.noEarn = res.result.amountOwed; res.result.consigneeName = res.result.userName; res.result.id = res.result.userId; uni.setStorageSync('khName', JSON.stringify(res.result)); uni.setStorageSync('carList1', JSON.stringify(dataList)); uni.setStorageSync('hangOrder', true); uni.navigateTo({ url: '/package1/AI/voiceInventoryHeng' }); } }); case 7: case "end": return _context.stop(); } } }, _callee); }))(); }, returnPrice: function returnPrice() { var that = this; uni.showModal({ title: "提示", content: "确定撤销该采购单吗?", success: function success(res) { uni.showLoading({ title: '加载中...' }); if (res.confirm) { that.tui.request("/app/purchase/cancelPurchase", "POST", { id: that.sales.id }, false, true).then(function (res) { if (res.code == 200) { // that.pages = 1; // that.pageNum = 1; // that.list = []; that.list[index].delFlag = 1; that.$forceUpdate(); // that.getList() that.tui.toast("撤销成功!"); } else { that.tui.toast(res.message); } }); } setTimeout(function (res) { uni.hideLoading(); }, 500); } }); }, batchPrint: function batchPrint() { uni.navigateTo({ url: "/package1/inventory/batchPrint?purchase=" + JSON.stringify(this.sales) + '&purchaseDetails=' + JSON.stringify(this.goodsList) }); }, //编辑每一个的单价 clickCollapse: function clickCollapse(index) { this.index = index; this.$refs.priceDialog.val = ''; this.$refs.priceDialog.open(); }, //计算价格 changePrice: function changePrice(val) { var that = this; this.$refs.purInput.val = ''; that.shouldPay = 0; that.goodsList[that.index].purchasePrice = val; that.goodsList[that.index].zPrice = val * that.goodsList[that.index].productCount; this.getAllPrice(); }, //计算总金额和总数量 getAllPrice: function getAllPrice(type) { var _this7 = this; var that = this; this.shouldPay = 0; this.totalAmount = 0; this.goodsList.forEach(function (value, key) { if (type == '1') { value.purchaseQian = 0; } that.shouldPay = that.shouldPay + value.zPrice; }); this.$nextTick(function () { if (parseFloat(that.zhiqianqiankuan) < 0) { if (that.shouldPay > Math.abs(that.zhiqianqiankuan)) { that.yuedikou = Math.abs(that.zhiqianqiankuan); _this7.alreadyPay = _this7.shouldPay - Math.abs(that.zhiqianqiankuan); } else if (that.shouldPay <= Math.abs(that.zhiqianqiankuan)) { that.yuedikou = that.shouldPay; that.alreadyPay = 0; } } else { _this7.alreadyPay = _this7.shouldPay; } that.shouldPay = that.shouldPay.toFixed(2); that.noPay = _this7.shouldPay - (_this7.alreadyPay == '' ? 0 : _this7.alreadyPay) - that.yuedikou; that.noPay = that.noPay.toFixed(2); _this7.leijiqiankuan = Number(_this7.zhiqianqiankuan) + Number(_this7.yuedikou) + Number(_this7.noPay); _this7.$forceUpdate(); }); } } }; exports.default = _default; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"])) /***/ }), /***/ 463: /*!**********************************************************************************************************************************!*\ !*** /Users/mac/Documents/HBuilderProjects/kuaiyidian-HD/package1/index/waitStorageDetail.vue?vue&type=style&index=0&lang=scss& ***! \**********************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./waitStorageDetail.vue?vue&type=style&index=0&lang=scss& */ 464); /* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_waitStorageDetail_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), /***/ 464: /*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!/Users/mac/Documents/HBuilderProjects/kuaiyidian-HD/package1/index/waitStorageDetail.vue?vue&type=style&index=0&lang=scss& ***! \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin if(false) { var cssReload; } /***/ }) },[[457,"common/runtime","common/vendor"]]]); //# sourceMappingURL=../../../.sourcemap/mp-weixin/package1/index/waitStorageDetail.js.map