You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1236 lines
54 KiB
1236 lines
54 KiB
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/inventory/inventory"],{
|
|
|
|
/***/ 176:
|
|
/*!*******************************************************************************!*\
|
|
!*** C:/文档/distribution-uni/main.js?{"page":"pages%2Finventory%2Finventory"} ***!
|
|
\*******************************************************************************/
|
|
/*! 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 _inventory = _interopRequireDefault(__webpack_require__(/*! ./pages/inventory/inventory.vue */ 177));
|
|
// @ts-ignore
|
|
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
|
|
createPage(_inventory.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"]))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 177:
|
|
/*!************************************************************!*\
|
|
!*** C:/文档/distribution-uni/pages/inventory/inventory.vue ***!
|
|
\************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _inventory_vue_vue_type_template_id_783aa900___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./inventory.vue?vue&type=template&id=783aa900& */ 178);
|
|
/* harmony import */ var _inventory_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./inventory.vue?vue&type=script&lang=js& */ 180);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _inventory_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 _inventory_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony import */ var _inventory_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./inventory.vue?vue&type=style&index=0&lang=scss& */ 182);
|
|
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../软件/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(_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
|
_inventory_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
_inventory_vue_vue_type_template_id_783aa900___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
_inventory_vue_vue_type_template_id_783aa900___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
false,
|
|
null,
|
|
null,
|
|
null,
|
|
false,
|
|
_inventory_vue_vue_type_template_id_783aa900___WEBPACK_IMPORTED_MODULE_0__["components"],
|
|
renderjs
|
|
)
|
|
|
|
component.options.__file = "pages/inventory/inventory.vue"
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 178:
|
|
/*!*******************************************************************************************!*\
|
|
!*** C:/文档/distribution-uni/pages/inventory/inventory.vue?vue&type=template&id=783aa900& ***!
|
|
\*******************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_template_id_783aa900___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./inventory.vue?vue&type=template&id=783aa900& */ 179);
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_template_id_783aa900___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_template_id_783aa900___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_template_id_783aa900___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_template_id_783aa900___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 179:
|
|
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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!C:/文档/distribution-uni/pages/inventory/inventory.vue?vue&type=template&id=783aa900& ***!
|
|
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! 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 */ 1065))
|
|
},
|
|
uniSearchBar: function () {
|
|
return Promise.all(/*! import() | uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue */ 1121))
|
|
},
|
|
uLoadmore: function () {
|
|
return Promise.all(/*! import() | uni_modules/uview-ui/components/u-loadmore/u-loadmore */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-loadmore/u-loadmore.vue */ 1132))
|
|
},
|
|
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 */ 1106))
|
|
},
|
|
}
|
|
} 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
|
|
if (!_vm._isMounted) {
|
|
_vm.e0 = function ($event) {
|
|
return _vm.$refs.sharePopup.close()
|
|
}
|
|
_vm.e1 = function ($event) {
|
|
return _vm.$refs.sharePopup.close()
|
|
}
|
|
_vm.e2 = function ($event) {
|
|
return _vm.$refs.customPopup.close()
|
|
}
|
|
_vm.e3 = function ($event) {
|
|
return _vm.$refs.showPopup.close()
|
|
}
|
|
}
|
|
}
|
|
var recyclableRender = false
|
|
var staticRenderFns = []
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 180:
|
|
/*!*************************************************************************************!*\
|
|
!*** C:/文档/distribution-uni/pages/inventory/inventory.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 _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./inventory.vue?vue&type=script&lang=js& */ 181);
|
|
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_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 _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 181:
|
|
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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!C:/文档/distribution-uni/pages/inventory/inventory.vue?vue&type=script&lang=js& ***!
|
|
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
|
|
var _vuex = __webpack_require__(/*! vuex */ 32);
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
var _default = {
|
|
computed: (0, _vuex.mapState)(['shopIndex', 'region']),
|
|
data: function data() {
|
|
return {
|
|
canvasshow: false,
|
|
size: 30,
|
|
indexList: [],
|
|
zheng: '0',
|
|
khName: [],
|
|
canvasWidth: 0,
|
|
canvasHeight: 0,
|
|
shopOwnerPhone: uni.getStorageSync('shopOwnerPhone'),
|
|
username: uni.getStorageSync('username'),
|
|
fu: '0',
|
|
bigImg: [],
|
|
swiperDotIndex: 0,
|
|
// status: 'loadmore',
|
|
pageNum: 1,
|
|
//分页的页码
|
|
shopList: [],
|
|
categoryId: '',
|
|
//分类id
|
|
shopId: '',
|
|
//店铺id,
|
|
type: '',
|
|
orderSort: '',
|
|
shareSuccess: false,
|
|
sort: '',
|
|
FWHPic: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/f2ba2080aaa54c618c2e47df4f220087.png',
|
|
mini_program_openid: '',
|
|
unionid: '',
|
|
official_account_openid: '',
|
|
warnMsg: [],
|
|
goodsData: [],
|
|
searchName: '',
|
|
base64: '',
|
|
categoryIndex: 0,
|
|
windowHeight: 0,
|
|
shopList1: [],
|
|
picture: '',
|
|
gateType: '',
|
|
total: 0,
|
|
customerCategoryList: []
|
|
};
|
|
},
|
|
onLoad: function onLoad(option) {
|
|
if (option.khid != undefined) {
|
|
uni.redirectTo({
|
|
url: "/package1/index/oneGoodsShare?khid=" + option.khid
|
|
});
|
|
}
|
|
var that = this;
|
|
this.type = uni.getStorageSync('type');
|
|
uni.getSystemInfo({
|
|
success: function success(info) {
|
|
that.windowHeight = info.windowHeight;
|
|
}
|
|
});
|
|
this.getCustomerCategoryList();
|
|
},
|
|
onShareAppMessage: function onShareAppMessage() {
|
|
this.shareSuccess = true;
|
|
uni.setStorageSync('noReload', true);
|
|
return {
|
|
title: uni.getStorageSync('shopName') + '给您推荐的商品',
|
|
imageUrl: this.picture,
|
|
path: '/package1/index/oneGoodsShare?khid=' + this.khid + '&userId=' + this.khName.userId + '&mini_program_openid=' + this.khName.mini_program_openid + '&unionid=' + this.khName.unionid + '&official_account_openid=' + this.khName.official_account_openid + '&customId=' + this.khName.id
|
|
};
|
|
},
|
|
onReachBottom: function onReachBottom() {
|
|
if (this.pageNum >= this.pages) return;
|
|
// this.status = 'loading';
|
|
this.pageNum++;
|
|
if (this.gateType == 'search') {
|
|
this.getShareList('search');
|
|
} else {
|
|
this.getShareList();
|
|
}
|
|
},
|
|
onShow: function onShow() {
|
|
var that = this;
|
|
this.shopId = uni.getStorageSync('shopId');
|
|
if (uni.getStorageSync('noReload') == true) {
|
|
this.searchName = '';
|
|
uni.removeStorageSync('noReload');
|
|
} else {
|
|
this.searchName = '';
|
|
this.getGategoryList();
|
|
}
|
|
// if(uni.getStorageSync('mini_program_openid')){
|
|
// this.getToken()
|
|
// }
|
|
if (this.shareSuccess) {
|
|
if (uni.getStorageSync('khName') && (this.khName.officialAccountOpenid == null || this.khName.officialAccountOpenid == '' || this.khName.officialAccountOpenid == 'null' || this.khName.officialAccountOpenid == undefined)) {
|
|
uni.showModal({
|
|
title: "提示",
|
|
content: "该客户没有关注公众号,无法接收消息通知,是否邀请用户关注?",
|
|
success: function success(res) {
|
|
if (res.confirm) {
|
|
uni.previewImage({
|
|
urls: [that.FWHPic]
|
|
});
|
|
}
|
|
}
|
|
});
|
|
uni.removeStorageSync('khName');
|
|
}
|
|
this.shareSuccess = false;
|
|
}
|
|
this.getWarnMsg();
|
|
this.getweiruku();
|
|
},
|
|
methods: {
|
|
upNew: function upNew() {
|
|
var _this = this;
|
|
var content = {
|
|
thing3: '炘钱的店铺上新',
|
|
time2: '2024-12-25'
|
|
};
|
|
this.tui.request("/social/wechat/sendWechatTempMessage", "post", {
|
|
tempId: 'M45X8AmPi58c16M9YVTMEOhwEVEa9s5md-6i3TwjpRQ',
|
|
title: '店铺上新',
|
|
content: JSON.stringify(content),
|
|
pagePath: 'package1/index/downStearmList',
|
|
upNewType: 1,
|
|
userId: '1739537305905008640',
|
|
categoryId: ""
|
|
}, false, false).then(function (res) {
|
|
_this.status = 'nomore';
|
|
if (res.code == 200) {} else {
|
|
_this.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
},
|
|
//获取code
|
|
getToken: function getToken() {
|
|
uni.login({
|
|
provider: 'weixin',
|
|
success: function success(res) {
|
|
this.getOpenId(res.code);
|
|
}
|
|
});
|
|
},
|
|
//获取小程序openid
|
|
getOpenId: function getOpenId(code) {
|
|
var _this2 = this;
|
|
this.tui.request("", "post", {
|
|
appid: 'wx6d7d4fb58d1502db',
|
|
secret: '3a2c8cd00926764bbd12fd7361e01f1d',
|
|
js_code: code,
|
|
grant_type: "authorization_code",
|
|
customId: ''
|
|
}, false, false).then(function (res) {
|
|
_this2.status = 'nomore';
|
|
if (res.code == 200) {} else {
|
|
_this2.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
},
|
|
//跳转到客户选择页
|
|
goPopleList: function goPopleList() {
|
|
uni.navigateTo({
|
|
url: '/package1/index/peopleList?popleType=khName'
|
|
});
|
|
},
|
|
//获取客户分类
|
|
getCustomerCategoryList: function getCustomerCategoryList() {
|
|
var _this3 = this;
|
|
this.tui.request("/app/customerCategory/getCustomerCategoryListByShopId", "POST", {
|
|
shopId: uni.getStorageSync('shopId')
|
|
}, false, true).then(function (res) {
|
|
if (res.code == 200) {
|
|
if (res.result.length > 0) {
|
|
_this3.customerCategoryList = res.result;
|
|
for (var i = 0; i < _this3.customerCategoryList.length; i++) {
|
|
var data = {
|
|
categoryName: _this3.customerCategoryList[i].categoryName,
|
|
categoryId: _this3.customerCategoryList[i].id,
|
|
categoryPrice: ""
|
|
};
|
|
_this3.customerCategoryList[i] = data;
|
|
}
|
|
} else {
|
|
_this3.customerCategoryList = null;
|
|
}
|
|
} else {
|
|
_this3.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
},
|
|
getUserData: function getUserData() {
|
|
var _this4 = this;
|
|
var that = this;
|
|
if (this.goodsData.productPicture == null || this.goodsData.productPicture == '') {
|
|
this.tui.toast("暂无可展示的图片", 300);
|
|
return;
|
|
}
|
|
uni.setStorageSync('noReload', true);
|
|
this.tui.request("/order/ow/getWechatQrcode", "post", {
|
|
// page: 'package1/index/oneGoodsShare',
|
|
page: 'package1/index/downStearmList',
|
|
scene: this.khid,
|
|
envVersion: __wxConfig.envVersion
|
|
}, false, true).then(function (res1) {
|
|
if (res1.code == 200) {
|
|
var imgA = res1.result;
|
|
uni.downloadFile({
|
|
url: imgA,
|
|
success: function success(res2) {
|
|
_this4.base64 = res2.tempFilePath;
|
|
uni.showLoading({
|
|
title: '请求中...'
|
|
});
|
|
setTimeout(function (res3) {
|
|
uni.hideLoading();
|
|
that.getData();
|
|
}, 500);
|
|
}
|
|
});
|
|
} else {
|
|
_this4.tui.toast(res.message);
|
|
}
|
|
});
|
|
},
|
|
getData: function getData() {
|
|
var that = this;
|
|
uni.showLoading({
|
|
title: '生成中...'
|
|
});
|
|
this.canvasshow = true;
|
|
var ctx = uni.createCanvasContext('myCanvas', this);
|
|
//背景图
|
|
var imgA = this.goodsData.productPicture;
|
|
uni.getImageInfo({
|
|
src: imgA,
|
|
success: function success(image) {
|
|
that.canvasWidth = image.width;
|
|
if ((image.height + 200) / image.width > 2) {
|
|
that.canvasHeight = image.width * 2;
|
|
image.height = that.canvasHeight * 0.8;
|
|
} else {
|
|
that.canvasHeight = image.height / 0.8;
|
|
}
|
|
ctx.setFillStyle('#fff');
|
|
ctx.fillRect(0, 0, that.canvasWidth, that.canvasHeight);
|
|
// // 绘制第一张图片
|
|
ctx.drawImage(image.path, 0, 0, image.width, image.height);
|
|
ctx.draw();
|
|
// 绘制第二张图片
|
|
ctx.drawImage(that.base64, 25, that.canvasHeight * 0.8 + that.canvasHeight * 0.2 * 0.15, that.canvasHeight * 0.2 * 0.75, that.canvasHeight * 0.2 * 0.75);
|
|
ctx.draw(true);
|
|
ctx.font = "20px 宋体";
|
|
// 设置字体样式
|
|
var codeWidth = that.canvasHeight * 0.2 * 0.75;
|
|
ctx.setFontSize((codeWidth / 6).toFixed(0));
|
|
// 设置文字颜色
|
|
ctx.fillStyle = '#FF5809';
|
|
// 绘制文字
|
|
ctx.fillText(uni.getStorageSync('shopName'), that.canvasHeight * 0.2 * 0.75 + 35, that.canvasHeight * 0.8 + that.canvasHeight * 0.2 * 0.47);
|
|
// 设置字体样式
|
|
ctx.setFontSize((codeWidth / 7).toFixed(0));
|
|
// 设置文字颜色
|
|
ctx.fillStyle = '#000';
|
|
// 绘制文字
|
|
ctx.fillText('长按识别查看商品', that.canvasHeight * 0.2 * 0.75 + 35, that.canvasHeight * 0.8 + that.canvasHeight * 0.2 * 0.47 + Number((codeWidth / 5).toFixed(0)));
|
|
ctx.draw(true, function () {
|
|
setTimeout(function (ress) {
|
|
uni.canvasToTempFilePath({
|
|
x: 0,
|
|
y: 0,
|
|
width: that.canvasWidth,
|
|
height: that.canvasHeight,
|
|
destWidth: that.canvasWidth,
|
|
destHeight: that.canvasHeight,
|
|
canvasId: 'myCanvas',
|
|
success: function success(res3) {
|
|
that.canvasshow = false;
|
|
that.tempFilePath = res3.tempFilePath;
|
|
uni.previewImage({
|
|
urls: [res3.tempFilePath]
|
|
});
|
|
uni.hideLoading();
|
|
}
|
|
});
|
|
}, 500);
|
|
}());
|
|
}
|
|
});
|
|
},
|
|
lunbochange: function lunbochange(e) {
|
|
this.current = e.detail.current;
|
|
},
|
|
//排序
|
|
goodsListSort: function goodsListSort() {
|
|
//sort空 stockCount desc asc
|
|
this.pageNum = 1;
|
|
this.shopList1 = [];
|
|
this.shopList = [];
|
|
this.sort = 'stockCount';
|
|
if (this.orderSort == '') {
|
|
this.orderSort = 'asc';
|
|
} else if (this.orderSort == 'asc') {
|
|
this.orderSort = 'desc';
|
|
} else if (this.orderSort == 'desc') {
|
|
this.orderSort = 'asc';
|
|
}
|
|
this.getShareList();
|
|
},
|
|
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();
|
|
},
|
|
checkPay: function checkPay(type, item) {
|
|
var _this5 = this;
|
|
var obj = {
|
|
id: type == '3' ? item.categoryId : '',
|
|
name: type == '3' ? item.categoryName : '',
|
|
userId: this.khName.userId,
|
|
customId: this.khName.id,
|
|
mini_program_openid: this.khName.mini_program_openid,
|
|
unionid: this.khName.unionid,
|
|
official_account_openid: this.khName.official_account_openid
|
|
};
|
|
this.tui.request("/app/productShare/save", "POST", {
|
|
shareType: '2',
|
|
shareProductId: [this.goodsData.id],
|
|
priceType: type,
|
|
scene: JSON.stringify(obj)
|
|
}, false, true).then(function (res) {
|
|
if (res.code == 200) {
|
|
_this5.khid = res.result.id + '-';
|
|
} else {
|
|
_this5.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
this.checkPayData = type;
|
|
this.$refs.sharePriceDialog.close();
|
|
if (this.khName != '') {
|
|
uni.setStorageSync('khName', this.khName);
|
|
}
|
|
this.khName = "";
|
|
this.$refs.sharePopup.open('bottom');
|
|
},
|
|
seeStockCount: function seeStockCount(zheng, fu) {
|
|
this.zheng = zheng;
|
|
this.fu = fu;
|
|
this.$refs.showPopup.open();
|
|
},
|
|
//初始化获取分类列表
|
|
getGategoryList: function getGategoryList() {
|
|
var _this6 = this;
|
|
this.tui.request("/app/productCategory/list", "get", {
|
|
// shopId: 1,
|
|
}, false, true).then(function (res) {
|
|
if (res.code == 200) {
|
|
_this6.indexList = res.result;
|
|
for (var i = 0; i < _this6.indexList.length; i++) {
|
|
if (i == _this6.categoryIndex) {
|
|
_this6.indexList[i].parentId = true;
|
|
} else {
|
|
_this6.indexList[i].parentId = false;
|
|
}
|
|
}
|
|
_this6.categoryId = _this6.indexList[_this6.categoryIndex].id;
|
|
_this6.pageNum = 1;
|
|
_this6.searchName = "";
|
|
_this6.shopList1 = [];
|
|
_this6.shopList = [];
|
|
_this6.getShareList();
|
|
} else {
|
|
_this6.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
},
|
|
//获取库存预警信息
|
|
getWarnMsg: function getWarnMsg() {
|
|
var _this7 = this;
|
|
this.tui.request("/app/stock/getShopStock", "POST", {}, false, false).then(function (res) {
|
|
if (res.code == 200) {
|
|
_this7.warnMsg = res.result;
|
|
} else {
|
|
_this7.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
},
|
|
//点击左侧菜单切换
|
|
clickLeftBtn: function clickLeftBtn(index) {
|
|
uni.removeStorageSync('noReload');
|
|
for (var i = 0; i < this.indexList.length; i++) {
|
|
if (i == index) {
|
|
this.indexList[i].parentId = true;
|
|
} else {
|
|
this.indexList[i].parentId = false;
|
|
}
|
|
}
|
|
this.categoryIndex = index;
|
|
this.categoryId = this.indexList[index].id;
|
|
this.pageNum = 1;
|
|
this.searchName = "";
|
|
this.orderSort = "";
|
|
this.sort = '';
|
|
this.shopList1 = [];
|
|
this.shopList = [];
|
|
this.getShareList();
|
|
},
|
|
//待入库
|
|
goRuku: function goRuku() {
|
|
uni.navigateTo({
|
|
url: '/package1/index/waitStorage?inStorageStatus=0'
|
|
});
|
|
},
|
|
getweiruku: function getweiruku() {
|
|
var _this8 = this;
|
|
this.tui.request("/app/purchase/list", "POST", {
|
|
inStorageStatus: 0
|
|
}, false, false).then(function (res) {
|
|
_this8.status = 'nomore';
|
|
if (res.code == 200) {
|
|
_this8.total = res.result.total;
|
|
} else {
|
|
_this8.tui.toast(res.message);
|
|
}
|
|
});
|
|
},
|
|
//库存详情
|
|
goDetail: function goDetail(item) {
|
|
uni.setStorageSync('noReload', true);
|
|
uni.navigateTo({
|
|
url: '/package1/inventory/inventoryDetail?item=' + JSON.stringify(item)
|
|
});
|
|
},
|
|
goWarnList: function goWarnList() {
|
|
uni.navigateTo({
|
|
url: '/package1/inventory/inventoryWarn'
|
|
});
|
|
},
|
|
clickModel: function clickModel(type) {
|
|
if (type = "num") {
|
|
this.tui.toast("商品规格库存数为负数,则该规格库存数不计入库存总数中");
|
|
} else {
|
|
this.tui.toast("商品规格库存数为负数,则该规格的库存成本不计入总库存成本");
|
|
}
|
|
},
|
|
seeCustomCategory: function seeCustomCategory(item) {
|
|
if (item == null || item == '') {
|
|
this.tui.toast("暂无客户分类价格", 300);
|
|
} else {
|
|
this.customerCategoryList = JSON.parse(item);
|
|
if (Array.isArray(this.customerCategoryList)) {
|
|
this.$refs.customPopup.open();
|
|
} else {
|
|
this.tui.toast("暂无客户分类价格", 300);
|
|
}
|
|
}
|
|
},
|
|
//点击分类获取商品列表
|
|
getShareList: function getShareList(type) {
|
|
var _this9 = this;
|
|
uni.showLoading({
|
|
title: '加载中...',
|
|
mask: true
|
|
});
|
|
var data = {};
|
|
if (type == 'search') {
|
|
this.gateType = 'search';
|
|
data = {
|
|
categoryId: "",
|
|
searchStr: this.searchName,
|
|
pageNum: this.pageNum,
|
|
pageSize: '10',
|
|
sort: "",
|
|
order: ""
|
|
};
|
|
} else {
|
|
this.gateType = '';
|
|
data = {
|
|
categoryId: this.categoryId,
|
|
searchStr: this.searchName,
|
|
pageNum: this.pageNum,
|
|
pageSize: '10',
|
|
sort: this.sort,
|
|
// supplierId: "1819981229722832896",
|
|
order: this.orderSort
|
|
};
|
|
}
|
|
this.status = 'loading';
|
|
this.tui.request("/app/product/getShareList", "POST", data, false, false).then(function (res) {
|
|
if (res.code == 200) {
|
|
if (type == 'search') {
|
|
_this9.shopList = [];
|
|
_this9.status = 'nomore';
|
|
if (_this9.pages == 1) {
|
|
_this9.shopList1 = res.result.records;
|
|
} else {
|
|
_this9.shopList1 = [].concat((0, _toConsumableArray2.default)(_this9.shopList1), (0, _toConsumableArray2.default)(res.result.records));
|
|
}
|
|
_this9.pages = res.result.pages;
|
|
} else {
|
|
_this9.shopList1 = [];
|
|
_this9.status = 'nomore';
|
|
if (_this9.pages == 1) {
|
|
_this9.shopList = res.result.records;
|
|
} else {
|
|
_this9.shopList = [].concat((0, _toConsumableArray2.default)(_this9.shopList), (0, _toConsumableArray2.default)(res.result.records));
|
|
}
|
|
_this9.pages = res.result.pages;
|
|
}
|
|
} else {
|
|
_this9.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
uni.hideLoading();
|
|
},
|
|
oneShare: function oneShare(item) {
|
|
this.goodsData = item;
|
|
this.picture = item.productPicture == null || item.productPicture == "" ? 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/70c3d9a274ff4feeb6df0bcb8be0f733.jpg' : item.productPicture;
|
|
if (this.shopId == '1960543009070256129') {
|
|
this.checkPay('1');
|
|
} else {
|
|
this.$refs.sharePriceDialog.open();
|
|
}
|
|
},
|
|
//商品上下架
|
|
upDown: function upDown(type, data) {
|
|
var that = this,
|
|
title = "确定将此款商品" + (type == 0 ? "下架" : "上架") + "吗?";
|
|
uni.showModal({
|
|
title: "提示",
|
|
content: title,
|
|
success: function success(res) {
|
|
if (res.confirm) {
|
|
that.pageNum = 1;
|
|
that.searchName = "";
|
|
that.shopList1 = [];
|
|
that.shopList = [];
|
|
if (type == 0) {
|
|
//下架
|
|
that.tui.request("/app/product/down", "POST", {
|
|
id: data.id
|
|
}, false, true).then(function (res) {
|
|
if (res.code == 200) {
|
|
that.tui.toast("下架成功");
|
|
} else {
|
|
that.tui.toast(res.message);
|
|
}
|
|
that.categoryId = data.categoryId;
|
|
that.getShareList();
|
|
}).catch(function (res) {});
|
|
} else {
|
|
//上架
|
|
that.tui.request("/app/product/up", "POST", {
|
|
id: data.id
|
|
}, false, true).then(function (res) {
|
|
if (res.code == 200) {
|
|
that.tui.toast("上架成功");
|
|
} else {
|
|
that.tui.toast(res.message);
|
|
}
|
|
that.categoryId = data.categoryId;
|
|
that.getShareList();
|
|
}).catch(function (res) {});
|
|
}
|
|
}
|
|
}
|
|
});
|
|
},
|
|
//搜索接口
|
|
search: function search(e) {
|
|
if (e == '') {
|
|
this.pageNum = 1;
|
|
this.shopList1 = [];
|
|
this.shopList = [];
|
|
this.searchName = "";
|
|
this.getShareList();
|
|
} else {
|
|
this.pageNum = 1;
|
|
this.shopList1 = [];
|
|
this.shopList = [];
|
|
this.searchName = e;
|
|
this.getShareList('search');
|
|
}
|
|
},
|
|
//清空搜索条件
|
|
clearSearch: function clearSearch() {
|
|
this.pageNum = 1;
|
|
this.shopList1 = [];
|
|
this.shopList = [];
|
|
this.orderSort = '';
|
|
this.sort = '';
|
|
this.searchName = '';
|
|
this.getShareList();
|
|
},
|
|
//点击头部 更多 和 新增入库 按钮
|
|
onGridClick: function onGridClick(target) {
|
|
if (target == '0') {
|
|
uni.navigateTo({
|
|
url: '/package1/inventory/gategory'
|
|
});
|
|
this.$refs.payDialog.close();
|
|
} else if (target == '1') {
|
|
// this.$refs.popup.open('bottom')
|
|
uni.navigateTo({
|
|
url: '/pages/inventory/addinventory'
|
|
});
|
|
} else if (target == '2') {
|
|
uni.navigateTo({
|
|
url: "/package1/inventory/addGoods"
|
|
});
|
|
this.$refs.payDialog.close();
|
|
} else if (target == '3') {
|
|
this.$refs.payDialog.open('center');
|
|
} else if (target == '4') {
|
|
uni.navigateTo({
|
|
url: "/package1/inventory/batchPrint"
|
|
});
|
|
this.$refs.payDialog.close();
|
|
} else if (target == '5') {
|
|
uni.navigateTo({
|
|
url: "/package1/inventory/goodsDelisting"
|
|
});
|
|
this.$refs.payDialog.close();
|
|
} else if (target == '7') {
|
|
uni.navigateTo({
|
|
url: "/package1/index/labelTemplate"
|
|
});
|
|
this.$refs.payDialog.close();
|
|
} else {
|
|
uni.navigateTo({
|
|
url: "/package1/inventory/goodsDelete"
|
|
});
|
|
this.$refs.payDialog.close();
|
|
}
|
|
}
|
|
}
|
|
};
|
|
exports.default = _default;
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 182:
|
|
/*!**********************************************************************************************!*\
|
|
!*** C:/文档/distribution-uni/pages/inventory/inventory.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 _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./inventory.vue?vue&type=style&index=0&lang=scss& */ 183);
|
|
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_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 _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_inventory_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 183:
|
|
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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!C:/文档/distribution-uni/pages/inventory/inventory.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; }
|
|
|
|
|
|
/***/ })
|
|
|
|
},[[176,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/inventory/inventory.js.map
|