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.
 
 
 
 
 

1554 lines
66 KiB

(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["package1/inventory/changeGoods1"],{
/***/ 426:
/*!*************************************************************************************!*\
!*** C:/文档/distribution-uni/main.js?{"page":"package1%2Finventory%2FchangeGoods1"} ***!
\*************************************************************************************/
/*! 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 _changeGoods = _interopRequireDefault(__webpack_require__(/*! ./package1/inventory/changeGoods1.vue */ 427));
// @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
createPage(_changeGoods.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"]))
/***/ }),
/***/ 427:
/*!******************************************************************!*\
!*** C:/文档/distribution-uni/package1/inventory/changeGoods1.vue ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _changeGoods1_vue_vue_type_template_id_3cdccd04___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./changeGoods1.vue?vue&type=template&id=3cdccd04& */ 428);
/* harmony import */ var _changeGoods1_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./changeGoods1.vue?vue&type=script&lang=js& */ 430);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _changeGoods1_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 _changeGoods1_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _changeGoods1_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./changeGoods1.vue?vue&type=style&index=0&lang=scss& */ 432);
/* 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"])(
_changeGoods1_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_changeGoods1_vue_vue_type_template_id_3cdccd04___WEBPACK_IMPORTED_MODULE_0__["render"],
_changeGoods1_vue_vue_type_template_id_3cdccd04___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null,
false,
_changeGoods1_vue_vue_type_template_id_3cdccd04___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "package1/inventory/changeGoods1.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ 428:
/*!*************************************************************************************************!*\
!*** C:/文档/distribution-uni/package1/inventory/changeGoods1.vue?vue&type=template&id=3cdccd04& ***!
\*************************************************************************************************/
/*! 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_changeGoods1_vue_vue_type_template_id_3cdccd04___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!./changeGoods1.vue?vue&type=template&id=3cdccd04& */ 429);
/* 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_changeGoods1_vue_vue_type_template_id_3cdccd04___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_changeGoods1_vue_vue_type_template_id_3cdccd04___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_changeGoods1_vue_vue_type_template_id_3cdccd04___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_changeGoods1_vue_vue_type_template_id_3cdccd04___WEBPACK_IMPORTED_MODULE_0__["components"]; });
/***/ }),
/***/ 429:
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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/package1/inventory/changeGoods1.vue?vue&type=template&id=3cdccd04& ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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 = {
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))
},
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))
},
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))
},
uniDataCheckbox: function () {
return Promise.all(/*! import() | uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue */ 1256))
},
uniEasyinput: function () {
return __webpack_require__.e(/*! import() | uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput */ "uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue */ 1207))
},
}
} 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 g0 = _vm.carList.length
var l1 = _vm.__map(_vm.carList, function (item, index) {
var $orig = _vm.__get_orig(item)
var l0 = _vm.__map(item.saleDetailQueryDTO, function (item1, index1) {
var $orig = _vm.__get_orig(item1)
var f0 = _vm._f("sliceMsg")(item1.attributeList)
return {
$orig: $orig,
f0: f0,
}
})
return {
$orig: $orig,
l0: l0,
}
})
if (!_vm._isMounted) {
_vm.e0 = function ($event) {
return this.$refs.carPopup.close()
}
_vm.e1 = function ($event) {
return _vm.$refs.showPopup.close()
}
}
_vm.$mp.data = Object.assign(
{},
{
$root: {
g0: g0,
l1: l1,
},
}
)
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ 430:
/*!*******************************************************************************************!*\
!*** C:/文档/distribution-uni/package1/inventory/changeGoods1.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_changeGoods1_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!./changeGoods1.vue?vue&type=script&lang=js& */ 431);
/* 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_changeGoods1_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_changeGoods1_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_changeGoods1_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_changeGoods1_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_changeGoods1_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 431:
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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/package1/inventory/changeGoods1.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);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = {
components: {},
data: function data() {
return {
indexList: [],
pageNum: 1,
//分页的页码
shopList: [],
shopList1: [],
shopOwnerPhone: uni.getStorageSync('shopOwnerPhone'),
username: uni.getStorageSync('username'),
info: 0,
shopId: uni.getStorageSync('shopId'),
zheng: '',
fu: '',
categoryId: '',
//分类id
searchName: '',
//搜索框输入值
temporaryNum: 0,
allChangeNum: 0,
goodsDetail: [],
attrNameList: [],
temporaryList: [],
carList: [],
bigImg: [],
columns: [],
keyList: [],
evalue: [],
customerCategoryList: [],
show: false,
attributeList: {},
purchasePrice: "",
zPrice: 0,
zNum: 0,
storageType: 0,
carNum: 0,
swiperDotIndex: 0,
carType: 0,
productId: '',
productNum: 0,
isPlusAndMinus: false,
height: 0,
oldTemList: [],
pageOldTemList: [],
goodsList: [],
newTemList: [],
pecsList: [],
gateType: '',
dataObj: new Map() //拿到的 规格值为key的
};
},
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;
},
maxNum: function maxNum(val) {
if (val >= 10) {
return 10;
} else if (val < 0) {
return 0;
}
}
},
onLoad: function onLoad() {
this.height = wx.getSystemInfoSync().windowHeight;
this.storageType = uni.getStorageSync('type');
},
onShow: function onShow() {
this.pageNum = 1;
this.searchName = "";
this.shopList = [];
this.shopList1 = [];
this.getGategoryList();
this.getCustomerCategoryList();
},
onReachBottom: function onReachBottom() {
if (this.pageNum >= this.pages) return;
// this.status = 'loading';
this.pageNum++;
if (this.gateType == 'search') {
this.getShareList('search');
} else {
this.getShareList();
}
},
methods: {
//初始化获取分类列表
getGategoryList: function getGategoryList() {
var _this = this;
this.tui.request("/app/productCategory/list", "get", {
// shopId: 1,
}, false, true).then(function (res) {
if (res.code == 200) {
_this.indexList = res.result;
for (var i = 0; i < _this.indexList.length; i++) {
if (i == 0) {
_this.indexList[i].parentId = true;
} else {
_this.indexList[i].parentId = false;
}
}
_this.categoryId = _this.indexList[0].id;
_this.getShareList();
} else {
_this.tui.toast(res.message);
}
}).catch(function (res) {});
},
combination: function combination(arr) {
var result = [[]];
arr.map(function (x) {
var res = [];
result.map(function (y) {
x.specs.map(function (z) {
res.push([].concat((0, _toConsumableArray2.default)(y), [z]));
});
});
result = res;
});
return result;
},
//保存已选
saveCheck: function saveCheck() {
this.pageOldTemList = this.temporaryList;
for (var i = 0; i < this.goodsDetail.attributeList.length; i++) {
this.goodsList[i].specs = [];
for (var m = 0; m < this.goodsDetail.attributeList[i].value.length; m++) {
this.goodsDetail.attributeList[i].value[m].isChecked = false;
}
}
},
clickClose: function clickClose() {
this.evalue = [];
this.allChangeNum = 0;
},
allChange: function allChange(e) {
if (this.linshiPrice == e.target.value) {
this.allChangeNum = e.target.value;
} else {
if (e.target.value == '') {
this.allChangeNum = this.linshiPrice;
} else {
this.allChangeNum = e.target.value;
}
}
//监听到输入框改变,给所有的都赋值
if (this.isPlusAndMinus == false) {
for (var i = 0; i < this.temporaryList.length; i++) {
if (this.evalue.length == 0) {
this.temporaryList[i].productCount = Number(this.allChangeNum);
} else {
for (var j = 0; j < this.evalue.length; j++) {
if (this.evalue[j] == this.temporaryList[i].name) {
this.temporaryList[i].productCount = Number(this.allChangeNum);
}
}
}
for (var m = 0; m < this.pageOldTemList.length; m++) {
if (this.temporaryList[i].attributeList == this.pageOldTemList[m].attributeList) {
this.pageOldTemList[m].productCount = this.temporaryList[i].productCount;
}
}
for (var j = 0; j < this.oldTemList.length; j++) {
if (this.temporaryList[i].attributeList == this.oldTemList[j].attributeList) {
this.oldTemList[j].productCount = this.temporaryList[i].productCount;
}
}
}
}
this.isPlusAndMinus == false;
this.temporaryChange('');
},
seeStockCount: function seeStockCount(zheng, fu) {
this.zheng = zheng;
this.fu = fu;
this.$refs.showPopup.open();
},
plusNum: function plusNum() {
this.isPlusAndMinus == true;
//监听到点击+的操作,给所有的都+1
for (var i = 0; i < this.temporaryList.length; i++) {
if (this.evalue.length == 0) {
if (this.temporaryList[i].productCount == undefined) {
this.temporaryList[i].productCount = 1;
} else {
this.temporaryList[i].productCount++;
}
} else {
for (var j = 0; j < this.evalue.length; j++) {
if (this.evalue[j] == this.temporaryList[i].name) {
if (this.temporaryList[i].productCount == undefined) {
this.temporaryList[i].productCount = 1;
} else {
if (this.temporaryList[i].productCount >= 0) {
this.temporaryList[i].productCount++;
}
}
}
}
}
for (var m = 0; m < this.pageOldTemList.length; m++) {
if (this.temporaryList[i].attributeList == this.pageOldTemList[m].attributeList) {
this.pageOldTemList[m].productCount = this.temporaryList[i].productCount;
}
}
for (var j = 0; j < this.oldTemList.length; j++) {
if (this.temporaryList[i].attributeList == this.oldTemList[j].attributeList) {
this.oldTemList[j].productCount = this.temporaryList[i].productCount;
}
}
}
this.temporaryChange('');
},
minusNum: function minusNum() {
this.isPlusAndMinus == true;
//监听到点击-的操作,给所有的都-1
for (var i = 0; i < this.temporaryList.length; i++) {
if (this.evalue.length == 0) {
this.temporaryList[i].productCount--;
} else {
for (var j = 0; j < this.evalue.length; j++) {
if (this.evalue[j] == this.temporaryList[i].name) {
if (this.temporaryList[i].productCount > 0) {
this.temporaryList[i].productCount--;
}
}
}
}
for (var m = 0; m < this.pageOldTemList.length; m++) {
if (this.temporaryList[i].attributeList == this.pageOldTemList[m].attributeList) {
this.pageOldTemList[m].productCount = this.temporaryList[i].productCount;
}
}
for (var j = 0; j < this.oldTemList.length; j++) {
if (this.temporaryList[i].attributeList == this.oldTemList[j].attributeList) {
this.oldTemList[j].productCount = this.temporaryList[i].productCount;
}
}
}
this.temporaryChange('');
},
attrNameChange: function attrNameChange(index, data1, index1) {
var _this2 = this;
uni.showLoading({
title: '加载中...'
});
this.goodsDetail.attributeList[index].isChecked = !this.goodsDetail.attributeList[index].isChecked;
this.goodsDetail.attributeList[index].value[index1].isChecked = !this.goodsDetail.attributeList[index].value[index1].isChecked;
if (this.goodsList[index].specs.indexOf(data1) != -1) {
this.goodsList[index].specs.splice(this.goodsList[index].specs.indexOf(data1), 1);
} else {
this.goodsList[index].specs.push(data1);
}
var jishuqi = 0;
for (var i = 0; i < this.goodsList.length; i++) {
if (this.goodsList[i].specs.length > 0) {
jishuqi++;
}
}
var resultList = [];
if (jishuqi == this.goodsList.length) {
resultList = this.combination(this.goodsList);
}
this.evalue = [];
var value = [];
for (var m = 0; m < resultList.length; m++) {
var name = '';
var value1 = "{";
for (var j = 0; j < resultList[m].length; j++) {
if (j != resultList[m].length - 1) {
name += resultList[m][j] + '/';
value1 += '"' + this.dataObj.get(resultList[m][j]) + '":"' + resultList[m][j] + '",';
} else {
name += resultList[m][j];
value1 += '"' + this.dataObj.get(resultList[m][j]) + '":"' + resultList[m][j] + '"';
}
}
value1 += "}";
value.push(value1);
this.evalue.push(name);
}
if (jishuqi == 0) {
this.oldTemList = [];
this.temporaryList = this.pageOldTemList;
}
if (this.temporaryList.length == 0) {
if (jishuqi == this.goodsList.length) {
for (var i = 0; i < value.length; i++) {
this.attributeList = {
attributeList: value[i],
productCount: this.temporaryNum,
productNum: null,
name: this.evalue[i],
price: this.purchasePrice
};
this.temporaryList.push(this.attributeList);
}
}
} else {
var newProductCount = 0;
for (var i = 0; i < value.length; i++) {
for (var m = 0; m < this.temporaryList.length; m++) {
if (this.temporaryList[m].attributeList == value[i]) {
newProductCount = this.temporaryList[m].productCount;
}
}
this.attributeList = {
attributeList: value[i],
productCount: newProductCount,
productNum: null,
name: this.evalue[i],
price: this.purchasePrice
};
this.newTemList.push(this.attributeList);
newProductCount = 0;
}
for (var i = 0; i < this.oldTemList.length; i++) {
var oldAttributeList = '';
var oldProductCount = '';
var notChcek = true;
for (var m = 0; m < this.newTemList.length; m++) {
if (this.oldTemList[i].attributeList == this.newTemList[m].attributeList) {
this.newTemList[m].productCount = this.oldTemList[i].productCount;
notChcek = false;
}
}
if (this.newTemList.length > 0 && notChcek) {
this.newTemList.push(this.oldTemList[i]);
}
}
for (var i = 0; i < this.pageOldTemList.length; i++) {
var _oldAttributeList = '';
var _oldProductCount = '';
var _notChcek = true;
for (var m = 0; m < this.newTemList.length; m++) {
if (this.pageOldTemList[i].attributeList == this.newTemList[m].attributeList) {
this.newTemList[m].productCount = this.pageOldTemList[i].productCount;
_notChcek = false;
}
}
if (this.newTemList.length > 0 && _notChcek) {
this.newTemList.push(this.pageOldTemList[i]);
}
}
}
this.$nextTick(function () {
for (var i = 0; i < _this2.temporaryList.length; i++) {
for (var m = 0; m < _this2.pecsList.length; m++) {
if (_this2.temporaryList[i].attributeList == _this2.pecsList[m].attributeList) {
_this2.temporaryList[i].productNum = _this2.pecsList[m].stockCount;
}
}
}
});
if (jishuqi != this.goodsList.length) {
if (this.oldTemList.length == 0 && this.pageOldTemList.length == 0) {
this.newTemList = [];
this.temporaryList = [];
}
}
if (this.newTemList.length != 0 && jishuqi == this.goodsList.length) {
this.temporaryList = this.newTemList;
this.oldTemList = [];
this.newTemList = [];
}
setTimeout(function (res) {
uni.hideLoading();
}, 200);
},
temporaryChange: function temporaryChange(val) {
if (val != '') {
this.carNum = 0;
for (var _i = 0; _i < this.carList.length; _i++) {
this.carNum += this.carList[_i].num;
}
this.carType = this.carList.length;
} else {
this.zNum = 0;
for (var i = 0; i < this.temporaryList.length; i++) {
this.zNum += this.temporaryList[i].productCount || 0;
}
this.zPrice = this.zNum * this.purchasePrice;
}
},
//点击底部选好了,返回上一页
backPrevPage: function backPrevPage() {
var pages = getCurrentPages();
var prevPage = pages[pages.length - 2];
prevPage.$vm.carList1 = this.carList;
uni.navigateBack({
delta: 1
});
},
getShareList: function getShareList(type) {
var _this3 = this;
var data = {};
if (type == 'search') {
this.gateType = 'search';
data = {
categoryId: "",
searchStr: this.searchName,
pageNum: this.pageNum,
pageSize: '10'
};
} else {
this.gateType = '';
data = {
categoryId: this.categoryId,
searchStr: this.searchName,
pageNum: this.pageNum,
pageSize: '10'
};
}
this.tui.request("/app/product/getShareList", "POST", data, false, false).then(function (res) {
if (res.code == 200) {
if (type == 'search') {
_this3.shopList = [];
_this3.status = 'nomore';
if (_this3.pages == 1) {
_this3.shopList1 = res.result.records;
} else {
_this3.shopList1 = [].concat((0, _toConsumableArray2.default)(_this3.shopList1), (0, _toConsumableArray2.default)(res.result.records));
}
_this3.pages = res.result.pages;
} else {
_this3.shopList1 = [];
_this3.status = 'nomore';
if (_this3.pages == 1) {
_this3.shopList = res.result.records;
} else {
_this3.shopList = [].concat((0, _toConsumableArray2.default)(_this3.shopList), (0, _toConsumableArray2.default)(res.result.records));
}
_this3.pages = res.result.pages;
}
} else {
_this3.tui.toast(res.message);
}
}).catch(function (res) {});
},
carChange: function carChange(e, index, index1) {
this.carNum = 0;
for (var i = 0; i < this.carList.length; i++) {
this.carList[i].num = 0;
for (var m = 0; m < this.carList[i].saleDetailQueryDTO.length; m++) {
this.carList[i].num += this.carList[i].saleDetailQueryDTO[m].productCount;
}
this.carNum += this.carList[i].num;
}
},
//跳转新增商品
goAddGoods: function goAddGoods() {
uni.navigateTo({
url: "/package1/inventory/addGoods"
});
},
handleBlur: function handleBlur(e) {
this.categoryText = e.detail.value;
},
//弹出购物车或者商品规格选择弹窗
toggle: function toggle(type, item) {
this.type = type;
if (type == 'carPopup') {
this.carNum = 0;
for (var i = 0; i < this.carList.length; i++) {
this.carNum += this.carList[i].num;
}
this.carType = this.carList.length;
this.$refs.carPopup.open('bottom');
} else {
uni.showLoading({
title: '加载中...'
});
this.productId = item.id;
this.goodsList = [];
this.allChangeNum = 0;
this.checkGoods(item);
this.$refs.popup.open('bottom');
}
},
//选择商品查询商品规格
checkGoods: function checkGoods(item) {
var _this4 = this;
var that = this;
this.goodsDetail = item;
this.temporaryList = [];
this.pageOldTemList = [];
if (this.carList != '') {
this.zNum = 0;
for (var i = 0; i < this.carList.length; i++) {
if (item.id == this.carList[i].id) {
this.zNum = this.carList[i].num;
this.temporaryList = this.carList[i].saleDetailQueryDTO;
this.pageOldTemList = this.carList[i].saleDetailQueryDTO;
this.oldTemList = this.carList[i].saleDetailQueryDTO;
}
}
}
this.tui.request("/app/productAttribute/selectAttributeAndValueByCategoryId", "POST", {
categoryId: this.goodsDetail.attrId
}, false, true).then(function (res1) {
if (res1.code == 200) {
if (typeof res1.result.attributeAndValue == 'string') {
var newObj = JSON.parse(res1.result.attributeAndValue);
var newArr = [];
var dataArr = [];
for (var val in newObj) {
var valueObj = [];
var isTrue = false;
for (var i = 0; i < newObj[val].length; i++) {
for (var m = 0; m < _this4.oldTemList.length; m++) {
var data = _this4.oldTemList[m].name.split('/');
for (var j = 0; j < data.length; j++) {
if (data[j] == newObj[val][i]) {
isTrue = true;
}
}
}
for (var m = 0; m < _this4.pageOldTemList.length; m++) {
var data = _this4.pageOldTemList[m].name.split('/');
for (var j = 0; j < data.length; j++) {
if (data[j] == newObj[val][i]) {
isTrue = true;
}
}
}
valueObj.push({
value: newObj[val][i],
isChecked: false
});
that.dataObj.set(newObj[val][i], val);
isTrue = false;
}
newArr.push({
name: val,
value: valueObj
});
}
_this4.goodsDetail.attributeList = newArr;
for (var i = 0; i < _this4.goodsDetail.attributeList.length; i++) {
var oldCheck = false;
var oldValue = [];
for (var m = 0; m < _this4.goodsDetail.attributeList[i].value.length; m++) {
if (_this4.goodsDetail.attributeList[i].value[m].isChecked == true) {
oldCheck = true;
oldValue.push(_this4.goodsDetail.attributeList[i].value[m].value);
}
}
if (oldCheck) {
var specs1 = {
specs: []
};
specs1.specs = oldValue;
_this4.goodsList.push(specs1);
} else {
var _specs = {
specs: []
};
_this4.goodsList.push(_specs);
}
oldCheck = false;
oldValue = [];
}
}
_this4.getKCList(res1.result.stock);
} else {
_this4.tui.toast(res.message);
}
}).catch(function (res) {});
},
//库存商品详情
getKCList: function getKCList(list) {
// this.tui.request("/app/stock/productCount", "GET", {
// productId: id
// }, false, true).then((res) => {
// if (res.code == 200) {
this.pecsList = list;
// } else {
// this.tui.toast(res.message)
// }
// }).catch((res) => {})
setTimeout(function (res) {
uni.hideLoading();
}, 200);
},
//顶部搜索框
search: function search(e) {
this.pageNum = 1;
this.shopList1 = [];
this.shopList = [];
if (e == '') {
this.searchName = "";
this.getShareList();
} else {
this.searchName = e;
this.getShareList('search');
}
},
//清空搜索条件
clearSearch: function clearSearch() {
this.pageNum = 1;
this.shopList1 = [];
this.shopList = [];
this.searchName = '';
this.getShareList();
},
chenumChange: function chenumChange(e, index, index1) {
if (this.linshiPrice == e.target.value) {
this.carList[index].saleDetailQueryDTO[index1].productCount = Number(e.target.value);
} else {
if (e.detail.value == '') {
this.carList[index].saleDetailQueryDTO[index1].productCount = Number(this.linshiPrice);
} else if (e.detail.value == 0) {
this.carList[index].saleDetailQueryDTO[index1].productCount = 0;
} else {
this.carList[index].saleDetailQueryDTO[index1].productCount = Number(e.detail.value);
}
this.$forceUpdate();
}
this.carChange();
},
lunbochange: function lunbochange(e) {
this.current = e.detail.current;
},
//查看大图
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();
},
numChange: function numChange(e, index) {
if (this.linshiPrice == e.target.value) {
this.temporaryList[index].productCount = Number(e.target.value);
} else {
if (e.detail.value == '') {
this.temporaryList[index].productCount = Number(this.linshiPrice);
} else if (e.detail.value == 0) {
this.temporaryList[index].productCount = 0;
} else {
this.temporaryList[index].productCount = Number(e.detail.value);
}
this.$forceUpdate();
}
this.temporaryChange('');
},
oneMinusNum: function oneMinusNum(index, index1, type) {
if (type != '') {
if (this.carList[index].saleDetailQueryDTO[index1].productCount > 0) {
this.carList[index].saleDetailQueryDTO[index1].productCount--;
this.carList[index].num--;
}
this.temporaryChange('che');
} else {
if (this.temporaryList[index].productCount <= 0) {
this.temporaryList[index].productCount = 0;
} else {
this.temporaryList[index].productCount--;
}
this.temporaryChange('');
}
},
onePlusNum: function onePlusNum(index, index1, type) {
if (type != '') {
if (this.carList[index].saleDetailQueryDTO[index1].productCount >= 0) {
this.carList[index].saleDetailQueryDTO[index1].productCount++;
this.carList[index].num++;
}
this.temporaryChange('che');
} else {
if (this.temporaryList[index].productCount < 0) {
this.temporaryList[index].productCount = 0;
} else {
this.temporaryList[index].productCount++;
}
this.temporaryChange('');
}
},
dialogInputConfirm: function dialogInputConfirm(e) {
if (this.categoryText == '') {
this.tui.toast("请输入规格值后提交");
return;
}
//this.goodsDetail[0] 颜色
//this.goodsDetail[1] 尺码
this.$refs.inputDialog.close();
var data = {
isChecked: false,
value: this.categoryText
};
if (this.isOpenId == '0') {
this.goodsDetail.attributeList[0].value.push(data);
this.dataObj.set(data.value, '颜色');
} else if (this.isOpenId == '1') {
this.goodsDetail.attributeList[1].value.push(data);
this.dataObj.set(data.value, '尺码');
}
this.categoryText = '';
this.$refs.clearInput.onClear();
this.$forceUpdate();
},
dialogClose: function dialogClose() {
this.inputVal = '';
this.$refs.inputDialog.close();
this.$refs.clearInput.onClear();
this.categoryText = '';
},
obtainPrice: function obtainPrice(e, type, index, index1) {
this.linshiPrice = e.target.value;
if (type == 'zongjishu') {
this.allChangeNum = '';
} else if (type == 'danjishu') {
this.temporaryList[index].productCount = '';
this.$forceUpdate();
} else if (type == 'chejishu') {
this.carList[index].saleDetailQueryDTO[index1].productCount = '';
this.$forceUpdate();
}
},
//未入库遮罩
clickMask: function clickMask(item) {
var title = '';
if (item.delFlag == 0) {
title = '请将商品上架后再操作!';
} else {
title = '请将上次入库的采购价维护后再进行操作!';
}
uni.showToast({
title: title,
icon: 'none'
});
},
//获取客户分类
getCustomerCategoryList: function getCustomerCategoryList() {
var _this5 = 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) {
_this5.customerCategoryList = res.result;
for (var i = 0; i < _this5.customerCategoryList.length; i++) {
var data = {
categoryName: _this5.customerCategoryList[i].categoryName,
categoryId: _this5.customerCategoryList[i].id,
categoryPrice: ""
};
_this5.customerCategoryList[i] = data;
}
} else {
_this5.customerCategoryList = null;
}
} else {
_this5.tui.toast(res.message);
}
}).catch(function (res) {});
},
//点击左侧菜单切换
clickLeftBtn: function clickLeftBtn(index) {
for (var i = 0; i < this.indexList.length; i++) {
if (i == index) {
this.indexList[i].parentId = true;
} else {
this.indexList[i].parentId = false;
}
}
this.pageNum = 1;
this.searchName = "";
this.shopList1 = [];
this.shopList = [];
this.categoryId = this.indexList[index].id;
this.getShareList(this.indexList[index].id);
},
//临时改价
changePrice: function changePrice(val) {
this.goodsDetail.price = this.temporaryList[0].price = val;
},
//弹窗选择规格后,点击弹窗中选好了按钮
temporaryCheck: function temporaryCheck() {
this.evalue = [];
var data = {
attrId: this.goodsDetail.attrId,
id: this.goodsDetail.id,
price: this.goodsDetail.price,
categoryId: this.goodsDetail.categoryId,
num: this.zNum,
productId: this.goodsDetail.id,
customerCategoryRule: this.goodsDetail.customerCategoryRule != null ? JSON.parse(this.goodsDetail.customerCategoryRule) : this.customerCategoryList,
wholesalePrice: this.goodsDetail.wholesalePrice,
purchasePrice: this.goodsDetail.purchasePrice,
productName: this.goodsDetail.productName,
productSn: this.goodsDetail.productSn,
productPicture: this.goodsDetail.productPicture,
supplierName: this.goodsDetail.supplierName,
createBy: this.goodsDetail.createBy,
saleDetailQueryDTO: this.temporaryList
};
if (this.carList.length == 0) {
this.carList.push(data);
} else {
var aa = true;
for (var i = 0; i < this.carList.length; i++) {
if (this.carList[i].id == data.id) {
this.carList[i] = data;
aa = false;
}
}
if (aa) {
this.carList.push(data);
}
}
for (var _i2 = 0; _i2 < this.carList.length; _i2++) {
this.carList[_i2].num = 0;
for (var m = 0; m < this.carList[_i2].saleDetailQueryDTO.length; m++) {
this.carList[_i2].num += this.carList[_i2].saleDetailQueryDTO[m].productCount;
}
}
this.temporaryList = [];
this.purchasePrice = "";
this.oldTemList = [];
this.zPrice = '';
this.zNum = '';
for (var _i3 = 0; _i3 < this.goodsDetail.attributeList.length; _i3++) {
this.goodsDetail.attributeList[_i3].isChecked = false;
for (var _m = 0; _m < this.goodsDetail.attributeList[_i3].value.length; _m++) {
this.goodsDetail.attributeList[_i3].value[_m].isChecked = false;
}
}
this.$refs.popup.close();
},
//删除整条商品
delShop: function delShop(item) {
var that = this;
uni.showModal({
title: "提示",
content: "确定删除此条商品吗?",
success: function success(res) {
if (res.confirm) {
for (var i = 0; i < that.carList.length; i++) {
if (that.carList[i].id == item.id) {
that.carNum -= that.carList[i].num;
that.carList.splice(i, 1);
}
}
that.carType = that.carList.length;
}
that.$forceUpdate();
}
});
},
change: function change() {
this.oldTemList = [];
},
//选商品的时候能删除规格
delCarData: function delCarData(index) {
this.temporaryList.splice(index, 1);
this.temporaryChange('');
// uni.showModal({
// title: "提示",
// content: "确定删除此条商品吗?",
// success: function(res) {
// if(res.confirm){
// that.carList.get(id).productCount -= that.carList.get(id).stockLogList.get(name);
// that.carList.get(id).stockLogList.delete(name)
// that.carList.get(id).price = that.carList.get(id).productCount * that.carList.get(id).purchasePrice
// if(that.carList.get(id).stockLogList.size == 0){
// that.carList.delete(id)
// }
// that.getAllPrice()
// }
// that.$forceUpdate()
// }
// })
},
getScanCodeCategroyId: function getScanCodeCategroyId(num) {
num = num == '颜色' ? 0 : 1;
this.isOpenId = num;
this.goodsId = this.goodsDetail.id;
this.$refs.inputDialog.open('bottom');
this.isBottom = true;
},
//删除商品下的某一个规格
delShopSpec: function delShopSpec(index, index1) {
var that = this;
uni.showModal({
title: "提示",
content: "确定删除此条商品吗?",
success: function success(res) {
if (res.confirm) {
for (var i = 0; i < that.carList.length; i++) {
for (var m = 0; m < that.carList[i].saleDetailQueryDTO.length; m++) {
if (that.carList[i].id == index) {
if (that.carList[i].saleDetailQueryDTO[m].attributeList == index1) {
that.carList[i].num -= that.carList[i].saleDetailQueryDTO[m].productCount;
that.carNum -= that.carList[i].saleDetailQueryDTO[m].productCount;
that.carList[i].saleDetailQueryDTO.splice(m, 1);
continue;
}
}
}
if (that.carList[i].saleDetailQueryDTO.length == 0) {
that.carList.splice(i, 1);
}
}
that.carType = that.carList.length;
}
that.$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"]))
/***/ }),
/***/ 432:
/*!****************************************************************************************************!*\
!*** C:/文档/distribution-uni/package1/inventory/changeGoods1.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_changeGoods1_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!./changeGoods1.vue?vue&type=style&index=0&lang=scss& */ 433);
/* 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_changeGoods1_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_changeGoods1_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_changeGoods1_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_changeGoods1_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_changeGoods1_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 433:
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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/package1/inventory/changeGoods1.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; }
/***/ })
},[[426,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/package1/inventory/changeGoods1.js.map