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.
 
 
 
 
 

1841 lines
87 KiB

(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["package1/inventory/inventoryDetail"],{
/***/ 434:
/*!****************************************************************************************!*\
!*** C:/文档/distribution-uni/main.js?{"page":"package1%2Finventory%2FinventoryDetail"} ***!
\****************************************************************************************/
/*! 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 _inventoryDetail = _interopRequireDefault(__webpack_require__(/*! ./package1/inventory/inventoryDetail.vue */ 435));
// @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
createPage(_inventoryDetail.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"]))
/***/ }),
/***/ 435:
/*!*********************************************************************!*\
!*** C:/文档/distribution-uni/package1/inventory/inventoryDetail.vue ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _inventoryDetail_vue_vue_type_template_id_c8b64e78___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./inventoryDetail.vue?vue&type=template&id=c8b64e78& */ 436);
/* harmony import */ var _inventoryDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./inventoryDetail.vue?vue&type=script&lang=js& */ 438);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _inventoryDetail_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 _inventoryDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _inventoryDetail_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./inventoryDetail.vue?vue&type=style&index=0&lang=scss& */ 442);
/* 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"])(
_inventoryDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_inventoryDetail_vue_vue_type_template_id_c8b64e78___WEBPACK_IMPORTED_MODULE_0__["render"],
_inventoryDetail_vue_vue_type_template_id_c8b64e78___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null,
false,
_inventoryDetail_vue_vue_type_template_id_c8b64e78___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "package1/inventory/inventoryDetail.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ 436:
/*!****************************************************************************************************!*\
!*** C:/文档/distribution-uni/package1/inventory/inventoryDetail.vue?vue&type=template&id=c8b64e78& ***!
\****************************************************************************************************/
/*! 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_inventoryDetail_vue_vue_type_template_id_c8b64e78___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!./inventoryDetail.vue?vue&type=template&id=c8b64e78& */ 437);
/* 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_inventoryDetail_vue_vue_type_template_id_c8b64e78___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_inventoryDetail_vue_vue_type_template_id_c8b64e78___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_inventoryDetail_vue_vue_type_template_id_c8b64e78___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_inventoryDetail_vue_vue_type_template_id_c8b64e78___WEBPACK_IMPORTED_MODULE_0__["components"]; });
/***/ }),
/***/ 437:
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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/inventoryDetail.vue?vue&type=template&id=c8b64e78& ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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 = {
uniSegmentedControl: function () {
return __webpack_require__.e(/*! import() | uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control */ "uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.vue */ 1181))
},
uniNumberBox: function () {
return __webpack_require__.e(/*! import() | uni_modules/uni-number-box/components/uni-number-box/uni-number-box */ "uni_modules/uni-number-box/components/uni-number-box/uni-number-box").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue */ 1263))
},
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))
},
uniTable: function () {
return __webpack_require__.e(/*! import() | uni_modules/uni-table/components/uni-table/uni-table */ "uni_modules/uni-table/components/uni-table/uni-table").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-table/components/uni-table/uni-table.vue */ 1280))
},
uniTr: function () {
return __webpack_require__.e(/*! import() | uni_modules/uni-table/components/uni-tr/uni-tr */ "uni_modules/uni-table/components/uni-tr/uni-tr").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-table/components/uni-tr/uni-tr.vue */ 1287))
},
uniTh: function () {
return __webpack_require__.e(/*! import() | uni_modules/uni-table/components/uni-th/uni-th */ "uni_modules/uni-table/components/uni-th/uni-th").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-table/components/uni-th/uni-th.vue */ 1294))
},
uniTd: function () {
return __webpack_require__.e(/*! import() | uni_modules/uni-table/components/uni-td/uni-td */ "uni_modules/uni-table/components/uni-td/uni-td").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-table/components/uni-td/uni-td.vue */ 1301))
},
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))
},
uniFormsItem: function () {
return Promise.all(/*! import() | uni_modules/uni-forms/components/uni-forms-item/uni-forms-item */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue */ 1239))
},
uniDataSelect: function () {
return Promise.all(/*! import() | uni_modules/uni-data-select/components/uni-data-select/uni-data-select */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-data-select/components/uni-data-select/uni-data-select")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue */ 1188))
},
uniPopupDialog: function () {
return Promise.all(/*! import() | uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue */ 1384))
},
uniFab: function () {
return __webpack_require__.e(/*! import() | uni_modules/uni-fab/components/uni-fab/uni-fab */ "uni_modules/uni-fab/components/uni-fab/uni-fab").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-fab/components/uni-fab/uni-fab.vue */ 1391))
},
}
} 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 l0 = _vm.__map(_vm.pecsList, function (item, index) {
var $orig = _vm.__get_orig(item)
var f0 = _vm._f("sliceMsg")(item.attributeList)
return {
$orig: $orig,
f0: f0,
}
})
var g0 = _vm.shopprintList.length
var g1 =
_vm.shopprintList.length > 0 &&
(_vm.printingMethod == "0" || _vm.printingMethod == "3")
var g2 =
_vm.shopprintList.length > 0 &&
(_vm.printingMethod == "0" || _vm.printingMethod == "3")
var l1 = _vm.__map(_vm.GDList.stockLogList, function (item, index) {
var $orig = _vm.__get_orig(item)
var f1 = _vm._f("sliceMsg")(item.attributeList)
return {
$orig: $orig,
f1: f1,
}
})
if (!_vm._isMounted) {
_vm.e0 = function ($event) {
_vm.isPrint = false
}
_vm.e1 = function ($event) {
return _vm.$refs.detailPopup.close()
}
}
_vm.$mp.data = Object.assign(
{},
{
$root: {
l0: l0,
g0: g0,
g1: g1,
g2: g2,
l1: l1,
},
}
)
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ 438:
/*!**********************************************************************************************!*\
!*** C:/文档/distribution-uni/package1/inventory/inventoryDetail.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_inventoryDetail_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!./inventoryDetail.vue?vue&type=script&lang=js& */ 439);
/* 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_inventoryDetail_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_inventoryDetail_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_inventoryDetail_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_inventoryDetail_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_inventoryDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 439:
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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/inventoryDetail.vue?vue&type=script&lang=js& ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni, wx) {
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
var _util = _interopRequireDefault(__webpack_require__(/*! @/components/kk-printer/utils/util.js */ 440));
var blesdk = _interopRequireWildcard(__webpack_require__(/*! @/components/kk-printer/utils/bluetoolth.js */ 441));
var _base = _interopRequireDefault(__webpack_require__(/*! @/utils/ossUploadFile/base64.js */ 215));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var kkPrinter = function kkPrinter() {
Promise.all(/*! require.ensure | components/kk-printer/index */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/kk-printer/index")]).then((function () {
return resolve(__webpack_require__(/*! @/components/kk-printer/index.vue */ 1398));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};
var _default = {
data: function data() {
return {
pageNum: 1,
//分页的页码
pages: 1,
dataList: [],
shopId: '',
closetanPopup: false,
detailList: [],
typeList1: [{
value: '0',
text: "厂标(40*60)"
}, {
value: '3',
text: "厂标(50*80)"
}, {
value: '1',
text: "二维码签(50*40)"
}, {
value: '5',
text: "标签(40*30)"
}, {
value: '2',
text: "大号标签居中(50*40)"
}, {
value: '4',
text: "大号标签居左(50*40)"
}, {
value: '6',
text: "标签居中(20*10)"
}],
typeList: [{
value: '0',
text: "打印长票"
}, {
value: '1',
text: "打印短票"
}],
printQR: [{
value: '0',
text: "打印"
}, {
value: '1',
text: "不打印"
}],
isQRCode: '0',
GDList: [],
customizeText: '',
printingMethod: "0",
zidingyi: false,
shopprintContent: '',
shopOwnerPhone: uni.getStorageSync('shopOwnerPhone'),
username: uni.getStorageSync('username'),
shopprintList: [],
isPrint: false,
bufferData: [],
items: ['库存', '销售明细', '销售退货', '入库明细'],
current: 0,
horizontal: 'right',
pecsList: [],
defaultText: '',
type: uni.getStorageSync('type'),
size: '',
color: '',
number: '',
printNum: 1,
list1: [{
type: '供应商',
checked: false,
text: ''
}, {
type: '货号',
checked: false,
text: ''
}, {
type: '品名',
checked: false,
text: ''
}, {
type: '日常价',
checked: false,
text: ''
}, {
type: '直播价',
checked: false,
text: ''
}],
list: [{
type: '供应商',
checked: false,
text: ''
}, {
type: '货号',
checked: false,
text: ''
}, {
type: '品名',
checked: false,
text: ''
}, {
type: '零售价',
checked: false,
text: ''
}, {
type: '批发价',
checked: false,
text: ''
}],
multipleList: [],
content: [{
iconPath: '/static/images/tabbar/home.png',
selectedIconPath: '/static/images/tabbar/home-sel.png',
text: '自定打印',
active: false
}, {
iconPath: '/static/images/tabbar/home.png',
selectedIconPath: '/static/images/tabbar/home-sel.png',
text: '删除商品',
active: false
}],
printList: new Map(),
shippList: [],
yNum: 10
};
},
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;
}
}
},
components: {
kkPrinter: kkPrinter
},
onHide: function onHide() {
setTimeout(function (res) {
uni.closeBLEConnection({
deviceId: uni.getStorageSync('deviceId'),
success: function success(res) {},
fail: function fail(err) {}
});
}, 5000);
},
onLoad: function onLoad(option) {
// 初始化蓝牙模块
wx.openBluetoothAdapter({
mode: 'central'
});
this.getCategoryList();
this.dataList = JSON.parse(option.item);
},
onReachBottom: function onReachBottom() {
if (this.pageNum >= this.pages) return;
this.status = 'loading';
this.pageNum++;
this.getWaitStorage();
},
onShow: function onShow() {
this.shopId = uni.getStorageSync('shopId');
this.getShareList();
},
methods: {
changeList: function changeList() {
if (this.shopprintContent != '') {
var newObj = JSON.parse(this.shopprintContent);
this.shippList = newObj;
}
for (var i = 0; i < this.shippList.length; i++) {
if (this.shippList[i].leftIcon != '') {
for (var j = 0; j < this.shippList[i].leftIcon.length; j++) {
this.getWeitu(this.shippList[i].leftIcon[j], i, j, 'left');
}
}
if (this.shippList[i].rightIcon != '') {
for (var _j = 0; _j < this.shippList[i].rightIcon.length; _j++) {
this.getWeitu(this.shippList[i].rightIcon[_j], i, _j, 'right');
//this.shippList[i].rightIcon[j] = "1FFFFFF01FFFFFF83000000830000008300000083000000830000009B000000F7FFFFFFC380000381C0000481300018810C7E608107FF808101C38081036CC0810638608106666081078360810600E0810FFFF08136006C81C60047830300C1C7018180E900FF009100000081000000810000008100000081FFFFFF800000000"
}
}
}
this.shopprintContent = JSON.stringify(this.shippList);
},
getWeitu: function getWeitu(id, i, j, type) {
var that = this;
this.tui.request('/app/urlMapping/redirect', "get", {
notRedirect: true,
id: id
}, false, false).then(function (res) {
if (type == 'left') {
that.shippList[i].leftIcon[j] = res.message.split(': ')[1].replace(new RegExp('EG 4 32 32 32 ', 'g'), '');
} else {
that.shippList[i].rightIcon[j] = res.message.split(': ')[1].replace(new RegExp('EG 4 32 32 32 ', 'g'), '');
}
}).catch(function (res) {});
},
getWaitStorage: function getWaitStorage() {
var _this = this;
this.status = 'loading';
var url;
if (this.current == 1) {
//销售
url = "/app/sale/getSaleListByProductId";
} else if (this.current == 2) {
//销售退货
url = "/app/return/getReturnSaleListByProductId";
} else if (this.current == 3) {
//入库
url = "/app/purchase/getPurchaseListByProductId";
} else if (this.current == 4) {
//退货
url = "/app/purchase/getPurchaseListByProductId";
}
this.tui.request(url, "post", {
productId: this.dataList.id,
pageSize: 10,
pageNum: this.pageNum
}, false, false).then(function (res) {
_this.status = 'nomore';
if (res.code == 200) {
// this.list = res.result.records
if (_this.pages == 1) {
_this.detailList = res.result.records;
} else {
_this.detailList = [].concat((0, _toConsumableArray2.default)(_this.detailList), (0, _toConsumableArray2.default)(res.result.records));
}
if (_this.current == 1) {
for (var i = 0; i < _this.detailList.length; i++) {
_this.detailList[i].lirun = 0;
_this.detailList[i].productCount = 0;
for (var m = 0; m < _this.detailList[i].saleDetailDTOList.length; m++) {
_this.detailList[i].lirun += (Number(_this.detailList[i].saleDetailDTOList[m].discountAmount) - Number(_this.detailList[i].saleDetailDTOList[m].purchasePrice)) * Number(_this.detailList[i].saleDetailDTOList[m].stockLogList1[0].productCount);
_this.detailList[i].productCount += _this.detailList[i].saleDetailDTOList[m].stockLogList1[0].productCount;
}
_this.detailList[i].lirun = _this.detailList[i].lirun.toFixed(2);
}
} else if (_this.current == 2) {
for (var _i = 0; _i < _this.detailList.length; _i++) {
_this.detailList[_i].returnSaleDetailList[0].productCount = 0;
for (var _m = 0; _m < _this.detailList[_i].returnSaleDetailList[0].stockLogList1.length; _m++) {
_this.detailList[_i].returnSaleDetailList[0].productCount += _this.detailList[_i].returnSaleDetailList[0].stockLogList1[_m].productCount;
}
}
} else if (_this.current == 3) {
for (var _i2 = 0; _i2 < _this.detailList.length; _i2++) {
for (var _m2 = 0; _m2 < _this.detailList[_i2].purchaseDetails.length; _m2++) {
_this.detailList[_i2].purchaseDetails[_m2].zPrice = _this.detailList[_i2].purchaseDetails[_m2].productCount * _this.detailList[_i2].purchaseDetails[_m2].purchasePrice;
}
}
}
_this.pages = res.result.pages;
} else {
_this.tui.toast(res.message);
}
}).catch(function (res) {});
},
//库存商品详情
getShareList: function getShareList() {
var _this2 = this;
this.tui.request("/app/stock/productCount", "GET", {
productId: this.dataList.id
}, false, true).then(function (res) {
if (res.code == 200) {
_this2.pecsList = res.result;
} else {
_this2.tui.toast(res.message);
}
}).catch(function (res) {});
},
changeCustomize: function changeCustomize(e) {
this.customizeText = e.detail.value;
},
changeNumBtn: function changeNumBtn(item) {
if (this.printList.has(item.attributeList) == true) {
// map中已经有当前值
if (item.productCount == 0) {
this.printList.delete(item.attributeList);
} else {
this.printList.get(item.attributeList).productCount = item.productCount;
}
} else {
this.printList.set(item.attributeList, item);
}
},
printBtn: function printBtn() {
this.$refs.payDialog.open('center');
},
//点击打印按钮
clickPrint: function clickPrint() {
this.$refs.payDialog.close();
this.isPrint = !this.isPrint;
},
emitPrint: function emitPrint() {
this.closetanPopup = true;
},
rukuDetail: function rukuDetail(item) {
if (item) {
item.stockLogList = [];
for (var i = 0; i < item.stockLogList1.length; i++) {
item.stockLogList.push(item.stockLogList1[i]);
}
this.GDList = item;
this.$refs.detailPopup.open();
}
},
xiaoshouDetail: function xiaoshouDetail(item) {
if (item) {
item.saleDetailDTOList[0].stockLogList = [];
for (var i = 0; i < item.saleDetailDTOList.length; i++) {
item.saleDetailDTOList[0].stockLogList.push(item.saleDetailDTOList[i].stockLogList1[0]);
}
this.GDList = item.saleDetailDTOList[0];
this.$refs.detailPopup.open();
}
},
tuihuoDetail: function tuihuoDetail(item) {
if (item) {
item.returnSaleDetailList[0].stockLogList = [];
for (var i = 0; i < item.returnSaleDetailList[0].stockLogList1.length; i++) {
item.returnSaleDetailList[0].stockLogList.push(item.returnSaleDetailList[0].stockLogList1[i]);
}
this.GDList = item.returnSaleDetailList[0];
this.$refs.detailPopup.open();
}
},
onClickItem: function onClickItem(e) {
this.pageNum = 1;
this.detailList = [];
if (this.current !== e.currentIndex) {
this.current = e.currentIndex;
}
if (e.currentIndex == 0) {
this.getShareList();
} else if (e.currentIndex == 1) {
this.getWaitStorage('1');
} else if (e.currentIndex == 2) {
this.getWaitStorage('2');
} else if (e.currentIndex == 3) {
this.getWaitStorage('3');
}
},
//点击打印按钮
clickzidingyiPrint: function clickzidingyiPrint() {
this.$refs.zidingyiDialog.close();
// this.isPrint = !this.isPrint
},
//选择多个规格保存
addMultipleType: function addMultipleType(item1) {
if (item1.type == '供应商') {
item1.text = this.dataList.supplierName;
} else if (item1.type == '货号') {
item1.text = this.dataList.productSn;
} else if (item1.type == '零售价') {
item1.text = this.dataList.price;
} else if (item1.type == '批发价') {
item1.text = this.dataList.wholesalePrice;
} else if (item1.type == '直播价') {
item1.text = this.dataList.wholesalePrice;
} else if (item1.type == '日常价') {
item1.text = this.dataList.price;
} else if (item1.type == '品名') {
item1.text = this.dataList.productName;
}
item1.checked = !item1.checked;
if (this.multipleList == '') {
this.multipleList.push(item1.type);
} else {
for (var i = 0; i < this.multipleList.length; i++) {
if (this.multipleList[i] == item1.type) {
//相同
this.multipleList.splice(i, 1);
return;
} else {
//不同
if (i + 1 == this.multipleList.length) {
this.multipleList.push(item1.type);
return;
}
}
}
}
},
//去新增商品页编辑
goToAddGoods: function goToAddGoods() {
uni.navigateTo({
url: "/package1/inventory/addGoods?dataList=" + JSON.stringify(this.dataList)
});
},
delSpec: function delSpec(item) {
var that = this;
uni.showModal({
title: "提示",
content: "确定删除此条库存吗?",
success: function success(res) {
if (res.confirm) {
that.tui.request('/app/stock/deleteStockById', "post", {
id: item.id
}, false, true).then(function (res1) {
if (res1.code == 200) {
uni.showToast({
title: "删除成功",
icon: 'none'
});
that.getShareList();
if (item.stockCount > 0) {
that.dataList.stockCount = that.dataList.stockCount - item.stockCount;
uni.removeStorageSync('noReload');
}
} else {
uni.showToast({
title: "删除失败",
icon: 'none'
});
}
});
}
}
});
},
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;
},
//计算打印机当前行高度
countPrint: function countPrint() {
return this.yNum += 50;
},
onPrint: function onPrint(opt) {
var _this3 = this;
var that = this;
this.printList.forEach(function (item, index) {
if (item.productCount < 1) {
_this3.tui.toast('请输入 ' + item.attributeList + ' 数量再打印');
return;
}
for (var i = 0; i < item.productCount; i++) {
that.yNum = 10;
var shippList = [];
if (that.shopprintContent != '') {
var newObj = JSON.parse(that.shopprintContent);
for (var as in newObj) {
var data = {
name: as,
value: newObj[as]
};
shippList.push(data);
}
}
if (_this3.printingMethod == "0") {
//长票打印
that.yNum = 20;
var noBegin = true;
var strCmd = blesdk.CreatCPCLPage(320, 480, 1, 0);
if (that.multipleList.indexOf('供应商') != -1) {
strCmd += blesdk.addCPCLSETMAG(2, 2);
strCmd += blesdk.addCPCLLocation(2);
strCmd += blesdk.addCPCLSETBOLD('400');
strCmd += blesdk.addCPCLText('0', that.yNum, '24', '0', 0, that.dataList.supplierName == null ? '' : that.dataList.supplierName);
}
strCmd += blesdk.addCPCLSETMAG(1, 1);
strCmd += blesdk.addCPCLLocation(0);
strCmd += blesdk.addCPCLSETBOLD('0');
if (that.dataList.supplierName == null || that.dataList.supplierName == '' || that.multipleList.indexOf('供应商') == -1) {
noBegin = false;
strCmd += blesdk.addCPCLText('20', that.yNum += 30, '24', '0', 0, '品名: ' + (that.dataList.productName == null ? '' : that.dataList.productName));
} else {
if (that.multipleList.indexOf('品名') != -1) {
noBegin = false;
strCmd += blesdk.addCPCLText('20', that.yNum += 60, '24', '0', 0, '品名: ' + (that.dataList.productName == null ? '' : that.dataList.productName));
}
}
if (that.multipleList.indexOf('货号') != -1) {
if (that.multipleList.indexOf('品名') != -1) {
noBegin = false;
strCmd += blesdk.addCPCLText('20', that.yNum += 40, '24', '0', 0, '货号: ' + that.dataList.productSn);
} else {
noBegin = false;
strCmd += blesdk.addCPCLText('20', that.yNum += 60, '24', '0', 0, '货号: ' + that.dataList.productSn);
}
}
if (noBegin) {
that.yNum += 20;
}
strCmd += blesdk.addCPCLText('20', that.yNum += 40, '24', '0', 0, '规格: ' + that.sliceMsg(item.attributeList));
if (that.multipleList.indexOf('批发价') != -1) {
strCmd += blesdk.addCPCLText('20', that.yNum += 40, '24', '0', 0, '批发价: ' + that.dataList.wholesalePrice);
}
if (that.multipleList.indexOf('零售价') != -1) {
strCmd += blesdk.addCPCLText('20', that.yNum += 40, '24', '0', 0, '零售价: ' + that.dataList.price);
}
if (that.multipleList.indexOf('直播价') != -1) {
strCmd += blesdk.addCPCLText('20', that.yNum += 40, '24', '0', 0, '直播价: ' + that.dataList.wholesalePrice);
}
if (that.multipleList.indexOf('日常价') != -1) {
strCmd += blesdk.addCPCLText('20', that.yNum += 40, '24', '0', 0, '日常价: ' + that.dataList.price);
}
var codeWidth = 0;
if (shippList.length > 0) {
for (var j = 0; j < shippList.length; j++) {
strCmd += blesdk.addCPCLText('20', that.yNum += 40, '24', '0', 0, shippList[j].value.name + ': ' + shippList[j].value.value);
}
strCmd += blesdk.addCPCLLocation(1);
codeWidth = 310;
} else {
strCmd += blesdk.addCPCLLocation(2);
codeWidth = that.yNum + 60;
}
//这两家不打二维码
if (uni.getStorageSync('shopId') != '1852911225860657153' && uni.getStorageSync('shopId') != '1818888277105709056') {
strCmd += blesdk.addCPCLQRCode(0, codeWidth, 'M', '1', 4, [_base.default.encode(that.dataList.id), _base.default.encode(uni.getStorageSync('shopId').substring('10', '12')), encodeURIComponent(that.sliceMsg(item.attributeList).split(' ')[0]) + '-' + encodeURIComponent(that.sliceMsg(item.attributeList).split(' ')[1])]); //二维码
}
strCmd += blesdk.addCPCLPrint();
that.bufferData.push(strCmd);
} else {
var _strCmd = blesdk.CreatCPCLPage(410, 320, 1, 0);
if (that.multipleList.indexOf('供应商') != -1) {
_strCmd += blesdk.addCPCLSETMAG(2, 2);
_strCmd += blesdk.addCPCLLocation(2);
_strCmd += blesdk.addCPCLSETBOLD('400');
_strCmd += blesdk.addCPCLText('0', that.yNum, '24', '2', 0, that.dataList.supplierName == null ? '' : that.dataList.supplierName);
}
_strCmd += blesdk.addCPCLLocation(0);
_strCmd += blesdk.addCPCLSETBOLD('0');
if (that.multipleList.indexOf('品名') != -1) {
_strCmd += blesdk.addCPCLSETMAG(1, 1);
_strCmd += blesdk.addCPCLText('30', that.yNum += 60, '24', '0', 0, '品名:' + (that.dataList.productName == null ? '' : that.dataList.productName));
}
_strCmd += blesdk.addCPCLSETMAG(2, 2);
if (that.multipleList.indexOf('货号') != -1) {
if (that.multipleList.indexOf('品名') != -1) {
_strCmd += blesdk.addCPCLText('30', that.yNum += 40, '24', '1', 0, '货号:' + that.dataList.productSn);
} else {
_strCmd += blesdk.addCPCLText('30', that.yNum += 60, '24', '1', 0, '货号:' + that.dataList.productSn);
}
}
_strCmd += blesdk.addCPCLSETMAG(1, 1);
_strCmd += blesdk.addCPCLText('30', that.countPrint(), '24', '0', 0, that.sliceMsg(item.attributeList));
if (that.multipleList.indexOf('批发价') != -1) {
_strCmd += blesdk.addCPCLText('30', that.countPrint(), '24', '0', 0, '批发价:' + that.dataList.wholesalePrice);
}
if (that.multipleList.indexOf('零售价') != -1) {
_strCmd += blesdk.addCPCLText('30', that.countPrint(), '24', '0', 0, '零售价:' + that.dataList.price);
}
if (that.multipleList.indexOf('直播价') != -1) {
_strCmd += blesdk.addCPCLText('30', that.countPrint(), '24', '0', 0, '直播价:' + that.dataList.wholesalePrice);
}
if (that.multipleList.indexOf('日常价') != -1) {
_strCmd += blesdk.addCPCLText('30', that.countPrint(), '24', '0', 0, '日常价:' + that.dataList.price);
}
_strCmd += blesdk.addCPCLQRCode(240, 160, 'M', '1', 4, [_base.default.encode(that.dataList.id), _base.default.encode(uni.getStorageSync('shopId').substring('10', '12')), encodeURIComponent(that.sliceMsg(item.attributeList).split(' ')[0]) + '-' + encodeURIComponent(that.sliceMsg(item.attributeList).split(' ')[1])]); //二维码
_strCmd += blesdk.addCPCLLocation(0); //对齐指令 0-左对齐 1-右对齐 2-居中
_strCmd += blesdk.addCPCLPrint();
that.bufferData.push(_strCmd);
}
}
});
that.$nextTick(function () {
uni.navigateBack({
delta: 1
});
});
},
countLeadingSpaces: function countLeadingSpaces(str) {
var match = str.match(/^\s*/);
return match ? match[0].length : 0;
},
goDetail: function goDetail(item) {
// uni.setStorageSync('noReload',true)
uni.navigateTo({
url: '/package1/index/waitStorageDetail?id=' + item.purchase.id
});
},
onPrint1: function onPrint1(opt) {
var that = this;
if (this.number == '') {
this.tui.toast('请输入' + (this.number == '' ? '数量' : '') + '再打印');
return;
}
if (this.zidingyi && (this.printingMethod == "2" || this.printingMethod == "4")) {
for (var i = 0; i < this.number; i++) {
that.yNum = 56;
var strCmd = blesdk.CreatCPCLPage(400, 320, 1, 0);
if (this.printingMethod == '2') {
strCmd += blesdk.addCPCLLocation(2);
} else {
strCmd += blesdk.addCPCLLocation(0);
}
strCmd += blesdk.addCPCLSETBOLD('500');
strCmd += blesdk.addCPCLSETMAG(2, 2);
if (this.printingMethod == '2') {
strCmd += blesdk.addCPCLText('20', that.yNum, '24', '1', 0, that.dataList.productSn);
strCmd += blesdk.addCPCLText('20', that.yNum += 80, '24', '0', 0, this.color);
strCmd += blesdk.addCPCLText('20', that.yNum += 80, '24', '0', 0, this.size);
} else {
strCmd += blesdk.addCPCLText('60', that.yNum, '24', '1', 0, that.dataList.productSn);
strCmd += blesdk.addCPCLText('60', that.yNum += 80, '24', '0', 0, this.color);
strCmd += blesdk.addCPCLText('60', that.yNum += 80, '24', '0', 0, this.size);
}
strCmd += blesdk.addCPCLPrint();
that.bufferData.push(strCmd);
}
} else if (this.printingMethod == "5") {
for (var _i3 = 0; _i3 < this.number; _i3++) {
that.yNum = 28;
var _strCmd2 = blesdk.CreatCPCLPage(400, 300, 1, 0);
_strCmd2 += blesdk.addCPCLLocation(0);
_strCmd2 += blesdk.addCPCLSETBOLD('500');
_strCmd2 += blesdk.addCPCLSETMAG(2, 2);
_strCmd2 += blesdk.addCPCLText('110', that.yNum, '24', '1', 0, '款号:' + that.dataList.productSn);
_strCmd2 += blesdk.addCPCLText('110', that.yNum += 60, '24', '0', 0, '颜色:' + this.color);
_strCmd2 += blesdk.addCPCLText('110', that.yNum += 60, '24', '0', 0, '尺码:' + this.size);
_strCmd2 += blesdk.addCPCLPrint();
that.bufferData.push(_strCmd2);
}
} else if (this.printingMethod == "6") {
var _strCmd3;
for (var _i4 = 0; _i4 < this.number; _i4++) {
if ((_i4 + 1) % 2 === 0) {
//能被2整除的放到后面
if (this.customizeText.length < 3) {
_strCmd3 += blesdk.addCPCLText((160 - this.customizeText.length * 40) / 2 + 200, '24', '24', '1', 0, this.customizeText);
} else {
_strCmd3 += blesdk.addCPCLText('214', '24', '24', '1', 0, this.customizeText);
}
_strCmd3 += blesdk.addCPCLPrint();
that.bufferData.push(_strCmd3);
} else {
_strCmd3 = blesdk.CreatCPCLPage(360, 80, 1, 0);
_strCmd3 += blesdk.addCPCLLocation(0);
_strCmd3 += blesdk.addCPCLSETBOLD('500');
_strCmd3 += blesdk.addCPCLSETMAG(2, 2);
if (this.customizeText.length < 3) {
_strCmd3 += blesdk.addCPCLText((160 - this.customizeText.length * 40) / 2 + 20, '24', '24', '1', 0, this.customizeText);
} else {
_strCmd3 += blesdk.addCPCLText("34", '24', '24', '1', 0, this.customizeText);
}
if (this.number == _i4 + 1) {
_strCmd3 += blesdk.addCPCLPrint();
that.bufferData.push(_strCmd3);
_strCmd3 = '';
}
}
}
} else {
if (this.printingMethod == "0") {
//竖排打印
for (var _i5 = 0; _i5 < this.number; _i5++) {
that.yNum = 20;
var bgineNum = 0;
if (that.multipleList.indexOf('品名') != -1) {
bgineNum += 1;
}
if (that.multipleList.indexOf('货号') != -1) {
bgineNum += 1;
}
if (this.color != '' || this.size != '') {
bgineNum += 1;
}
if (that.multipleList.indexOf('批发价') != -1) {
bgineNum += 1;
}
if (that.multipleList.indexOf('零售价') != -1) {
bgineNum += 1;
}
if (that.multipleList.indexOf('直播价') != -1) {
bgineNum += 1;
}
if (that.multipleList.indexOf('日常价') != -1) {
bgineNum += 1;
}
if (that.multipleList.indexOf('供应商') != -1) {
bgineNum += 2;
}
for (var j = 0; j < that.shippList.length; j++) {
if (that.shippList[j].name.length > 12) {
var num = Math.ceil(Number(that.shippList[j].name.length) / 12);
bgineNum += num;
} else {
bgineNum += 1;
}
}
var offHeigth = 0;
offHeigth = Math.ceil((400 - bgineNum * 24) / bgineNum);
if (bgineNum <= 7 && this.isQRCode == "0") {
offHeigth = 30;
}
var _strCmd4 = blesdk.CreatCPCLPage(320, 480, 1, 0);
_strCmd4 += blesdk.addCPCLSETBOLD('1');
if (that.multipleList.indexOf('供应商') != -1) {
_strCmd4 += blesdk.addCPCLSETMAG(2, 2);
_strCmd4 += blesdk.addCPCLLocation(2);
_strCmd4 += blesdk.addCPCLText('0', that.yNum, '24', '0', 0, that.dataList.supplierName == null ? '' : that.dataList.supplierName);
}
_strCmd4 += blesdk.addCPCLSETMAG(1, 1);
_strCmd4 += blesdk.addCPCLLocation(0);
_strCmd4 += blesdk.addCPCLText('20', that.yNum += 20, '24', '0', 0, '');
if (that.multipleList.indexOf('品名') != -1) {
if (uni.getStorageSync('shopId') == '1853332569559535619') {
_strCmd4 += blesdk.addCPCLSETMAG(2, 2);
}
_strCmd4 += blesdk.addCPCLText('20', that.yNum += 25 + offHeigth, '24', '0', 0, '品名: ' + (that.dataList.productName == null ? '' : that.dataList.productName));
}
if (that.multipleList.indexOf('货号') != -1) {
if (uni.getStorageSync('shopId') == '1853332569559535619') {
_strCmd4 += blesdk.addCPCLSETMAG(2, 2);
}
_strCmd4 += blesdk.addCPCLText('20', that.yNum += 25 + offHeigth, '24', '0', 0, '货号: ' + (that.dataList.productSn == null ? '' : that.dataList.productSn));
}
if (this.color != '' || this.size != '') {
_strCmd4 += blesdk.addCPCLText('20', that.yNum += 25 + offHeigth, '24', '0', 0, '规格: ' + this.color + ' ' + this.size);
}
if (that.multipleList.indexOf('批发价') != -1) {
_strCmd4 += blesdk.addCPCLText('20', that.yNum += 25 + offHeigth, '24', '0', 0, '批发价: ' + that.dataList.wholesalePrice);
}
if (that.multipleList.indexOf('零售价') != -1) {
_strCmd4 += blesdk.addCPCLText('20', that.yNum += 25 + offHeigth, '24', '0', 0, '零售价: ' + that.dataList.price);
}
if (that.multipleList.indexOf('直播价') != -1) {
_strCmd4 += blesdk.addCPCLText('20', that.yNum += 25 + offHeigth, '24', '0', 0, '直播价: ' + that.dataList.wholesalePrice);
}
if (that.multipleList.indexOf('日常价') != -1) {
_strCmd4 += blesdk.addCPCLText('20', that.yNum += 25 + offHeigth, '24', '0', 0, '日常价: ' + that.dataList.price);
}
var codeWidth = 0;
if (that.shippList.length > 0) {
for (var _j2 = 0; _j2 < that.shippList.length; _j2++) {
var iconWidth = 0;
if (that.shippList[_j2].modelLeft == 'right') {
if (that.shippList[_j2].leftIcon.length > 0 || that.shippList[_j2].rightIcon.length > 0) {
_strCmd4 += blesdk.addCPCLLocation(0);
var allWidth = 300;
if ((that.shippList[_j2].name + that.shippList[_j2].value).length > 0) {
allWidth -= 20;
}
iconWidth = Math.floor((allWidth - ((that.shippList[_j2].leftIcon.length + that.shippList[_j2].rightIcon.length) * 32 + (that.shippList[_j2].name + that.shippList[_j2].value).length * 25)) / 2);
} else {
_strCmd4 += blesdk.addCPCLLocation(2);
}
} else {
_strCmd4 += blesdk.addCPCLLocation(0);
}
if (that.shippList[_j2].modelBlod == 'notblod') {
_strCmd4 += blesdk.addCPCLSETBOLD('0');
} else {
_strCmd4 += blesdk.addCPCLSETBOLD('1');
}
var beginNum = (that.shippList[_j2].name.length - that.shippList[_j2].name.replace(/^\s+/, ' ').length) * 25 + 20;
if (that.shippList[_j2].leftIcon.length > 0 || that.shippList[_j2].rightIcon.length > 0) {
that.yNum += 32 + offHeigth;
} else {
that.yNum += 25 + offHeigth;
}
if (that.shippList[_j2].leftIcon.length > 0) {
iconWidth += 21;
for (var m = 0; m < that.shippList[_j2].leftIcon.length; m++) {
_strCmd4 += 'EG 4 32 ' + iconWidth + ' ' + that.yNum + ' ' + that.shippList[_j2].leftIcon[m] + ' ';
iconWidth += 40;
}
}
that.shippList[_j2].name = that.shippList[_j2].name.replace(/^\s+/, ' ');
if (that.shippList[_j2].value != '') {
if (that.shippList[_j2].leftIcon.length > 0 || that.shippList[_j2].rightIcon.length > 0) {
_strCmd4 += blesdk.addCPCLText((beginNum + iconWidth).toString(), that.yNum + 4, '24', '0', 0, that.shippList[_j2].name + ': ' + that.shippList[_j2].value);
} else {
_strCmd4 += blesdk.addCPCLText((beginNum + iconWidth).toString(), that.yNum, '24', '0', 0, that.shippList[_j2].name + ': ' + that.shippList[_j2].value);
}
} else {
if (that.shippList[_j2].name.length > 12) {
var _num = Math.ceil(Number(that.shippList[_j2].name.length) / 12);
for (var _i6 = 0; _i6 < _num; _i6++) {
if (that.shippList[_j2].leftIcon.length > 0 || that.shippList[_j2].rightIcon.length > 0) {
_strCmd4 += blesdk.addCPCLText((beginNum + iconWidth).toString(), that.yNum + 4, '24', '0', 0, that.shippList[_j2].name.substring(_i6 * 12, (_i6 + 1) * 12));
} else {
_strCmd4 += blesdk.addCPCLText((beginNum + iconWidth).toString(), that.yNum, '24', '0', 0, that.shippList[_j2].name.substring(_i6 * 12, (_i6 + 1) * 12));
}
if (that.shippList[_j2].leftIcon.length > 0 || that.shippList[_j2].rightIcon.length > 0) {
that.yNum += 32 + offHeigth;
} else {
that.yNum += 25 + offHeigth;
}
}
} else {
if (that.shippList[_j2].leftIcon.length > 0 || that.shippList[_j2].rightIcon.length > 0) {
_strCmd4 += blesdk.addCPCLText((beginNum + iconWidth).toString(), that.yNum + 4, '24', '0', 0, that.shippList[_j2].name);
} else {
_strCmd4 += blesdk.addCPCLText((beginNum + iconWidth).toString(), that.yNum, '24', '0', 0, that.shippList[_j2].name);
}
}
}
if (that.shippList[_j2].rightIcon.length > 0) {
var iconWidth1 = Number((that.shippList[_j2].name + that.shippList[_j2].value).length * 25 + 20) + iconWidth;
for (var _m3 = 0; _m3 < that.shippList[_j2].rightIcon.length; _m3++) {
_strCmd4 += 'EG 4 32 ' + iconWidth1 + ' ' + that.yNum + ' ' + that.shippList[_j2].rightIcon[_m3] + ' ';
iconWidth1 += 40;
}
}
}
_strCmd4 += blesdk.addCPCLLocation(1);
codeWidth = 310;
} else {
_strCmd4 += blesdk.addCPCLLocation(2);
codeWidth = that.yNum + 60;
}
if (this.isQRCode == "0") {
if (this.color != '' && this.size != '') {
_strCmd4 += blesdk.addCPCLQRCode(0, codeWidth, 'M', '1', 4, [_base.default.encode(that.dataList.id), _base.default.encode(uni.getStorageSync('shopId').substring('10', '12')), encodeURIComponent(this.color) + '-' + encodeURIComponent(this.size)]); //二维码
} else {
_strCmd4 += blesdk.addCPCLQRCode(0, codeWidth, 'M', '1', 4, [_base.default.encode(that.dataList.id), _base.default.encode(uni.getStorageSync('shopId').substring('10', '12'))]); //二维码
}
}
_strCmd4 += blesdk.addCPCLPrint();
that.bufferData.push(_strCmd4);
}
} else if (this.printingMethod == "1") {
for (var _i7 = 0; _i7 < this.number; _i7++) {
that.yNum = 10;
var _strCmd5 = blesdk.CreatCPCLPage(400, 320, 1, 0);
if (that.multipleList.indexOf('供应商') != -1) {
_strCmd5 += blesdk.addCPCLSETMAG(2, 2);
_strCmd5 += blesdk.addCPCLLocation(2);
_strCmd5 += blesdk.addCPCLSETBOLD('400');
_strCmd5 += blesdk.addCPCLText('0', that.yNum, '24', '2', 0, that.dataList.supplierName == null ? '' : that.dataList.supplierName);
}
_strCmd5 += blesdk.addCPCLLocation(0);
_strCmd5 += blesdk.addCPCLSETBOLD('0');
_strCmd5 += blesdk.addCPCLSETMAG(1, 1);
_strCmd5 += blesdk.addCPCLText('30', that.yNum += 60, '24', '0', 0, '商品名:' + (that.dataList.productName == null ? '' : that.dataList.productName));
_strCmd5 += blesdk.addCPCLSETMAG(2, 2);
if (that.multipleList.indexOf('货号') != -1) {
_strCmd5 += blesdk.addCPCLText('30', that.yNum += 40, '24', '1', 0, '货号:' + that.dataList.productSn);
}
_strCmd5 += blesdk.addCPCLSETMAG(1, 1);
_strCmd5 += blesdk.addCPCLText('30', that.countPrint(), '24', '0', 0, this.color + ' ' + this.size);
if (that.multipleList.indexOf('批发价') != -1) {
_strCmd5 += blesdk.addCPCLText('30', that.countPrint(), '24', '0', 0, '批发价:' + that.dataList.wholesalePrice);
}
if (that.multipleList.indexOf('零售价') != -1) {
_strCmd5 += blesdk.addCPCLText('30', that.countPrint(), '24', '0', 0, '零售价:' + that.dataList.price);
}
if (that.multipleList.indexOf('直播价') != -1) {
_strCmd5 += blesdk.addCPCLText('30', that.countPrint(), '24', '0', 0, '直播价:' + that.dataList.wholesalePrice);
}
if (that.multipleList.indexOf('日常价') != -1) {
_strCmd5 += blesdk.addCPCLText('30', that.countPrint(), '24', '0', 0, '日常价:' + that.dataList.price);
}
if (this.isQRCode == "0") {
if (this.color != '' && this.size != '') {
_strCmd5 += blesdk.addCPCLQRCode(240, 160, 'M', '1', 4, [_base.default.encode(that.dataList.id), _base.default.encode(uni.getStorageSync('shopId').substring('10', '12')), encodeURIComponent(this.color) + '-' + encodeURIComponent(this.size)]); //二维码
} else {
_strCmd5 += blesdk.addCPCLQRCode(240, 160, 'H', '1', 4, [_base.default.encode(that.dataList.id), _base.default.encode(uni.getStorageSync('shopId').substring('10', '12'))]); //二维码
}
}
_strCmd5 += blesdk.addCPCLLocation(0); //对齐指令 0-左对齐 1-右对齐 2-居中
_strCmd5 += blesdk.addCPCLPrint();
that.bufferData.push(_strCmd5);
}
} else if (this.printingMethod == "3") {
for (var _i8 = 0; _i8 < this.number; _i8++) {
that.yNum = 20;
var _bgineNum = 0;
if (that.multipleList.indexOf('品名') != -1) {
_bgineNum += 1;
}
if (that.multipleList.indexOf('货号') != -1) {
_bgineNum += 1;
}
if (this.color != '' || this.size != '') {
_bgineNum += 1;
}
if (that.multipleList.indexOf('批发价') != -1) {
_bgineNum += 1;
}
if (that.multipleList.indexOf('零售价') != -1) {
_bgineNum += 1;
}
if (that.multipleList.indexOf('直播价') != -1) {
_bgineNum += 1;
}
if (that.multipleList.indexOf('日常价') != -1) {
_bgineNum += 1;
}
if (that.multipleList.indexOf('供应商') != -1) {
_bgineNum += 2;
}
for (var _j3 = 0; _j3 < that.shippList.length; _j3++) {
if (that.shippList[_j3].name.length > 15) {
var _num2 = Math.ceil(Number(that.shippList[_j3].name.length) / 15);
_bgineNum += _num2;
} else {
_bgineNum += 1;
}
}
var _offHeigth = 0;
_offHeigth = Math.ceil((560 - _bgineNum * 24) / _bgineNum);
var _strCmd6 = blesdk.CreatCPCLPage(400, 640, 1, 0);
_strCmd6 += blesdk.addCPCLSETBOLD('1');
if (that.multipleList.indexOf('供应商') != -1) {
_strCmd6 += blesdk.addCPCLSETMAG(2, 2);
_strCmd6 += blesdk.addCPCLLocation(2);
_strCmd6 += blesdk.addCPCLText('0', that.yNum, '24', '0', 0, that.dataList.supplierName == null ? '' : that.dataList.supplierName);
}
_strCmd6 += blesdk.addCPCLSETMAG(1, 1);
_strCmd6 += blesdk.addCPCLLocation(0);
_strCmd6 += blesdk.addCPCLText('30', that.yNum += 30, '24', '0', 0, '');
if (that.multipleList.indexOf('品名') != -1) {
_strCmd6 += blesdk.addCPCLText('30', that.yNum += 25 + _offHeigth, '24', '0', 0, '品名: ' + (that.dataList.productName == null ? '' : that.dataList.productName));
}
if (that.multipleList.indexOf('货号') != -1) {
_strCmd6 += blesdk.addCPCLText('30', that.yNum += 25 + _offHeigth, '24', '0', 0, '货号: ' + (that.dataList.productSn == null ? '' : that.dataList.productSn));
}
if (this.color != '' || this.size != '') {
_strCmd6 += blesdk.addCPCLText('30', that.yNum += 25 + _offHeigth, '24', '0', 0, '规格: ' + this.color + ' ' + this.size);
}
if (that.multipleList.indexOf('批发价') != -1) {
_strCmd6 += blesdk.addCPCLText('30', that.yNum += 25 + _offHeigth, '24', '0', 0, '批发价: ' + that.dataList.wholesalePrice);
}
if (that.multipleList.indexOf('零售价') != -1) {
_strCmd6 += blesdk.addCPCLText('30', that.yNum += 25 + _offHeigth, '24', '0', 0, '零售价: ' + that.dataList.price);
}
if (that.multipleList.indexOf('直播价') != -1) {
_strCmd6 += blesdk.addCPCLText('30', that.yNum += 25 + _offHeigth, '24', '0', 0, '直播价: ' + that.dataList.wholesalePrice);
}
if (that.multipleList.indexOf('日常价') != -1) {
_strCmd6 += blesdk.addCPCLText('30', that.yNum += 25 + _offHeigth, '24', '0', 0, '日常价: ' + that.dataList.price);
}
var _codeWidth = 0;
if (that.shippList.length > 0) {
for (var _j4 = 0; _j4 < that.shippList.length; _j4++) {
var _iconWidth = 0;
if (that.shippList[_j4].modelLeft == 'right') {
if (that.shippList[_j4].leftIcon.length > 0 || that.shippList[_j4].rightIcon.length > 0) {
_strCmd6 += blesdk.addCPCLLocation(0);
var _allWidth = 370;
if ((that.shippList[_j4].name + that.shippList[_j4].value).length > 0) {
_allWidth -= 30;
}
_iconWidth = Math.floor((_allWidth - ((that.shippList[_j4].leftIcon.length + that.shippList[_j4].rightIcon.length) * 32 + (that.shippList[_j4].name + that.shippList[_j4].value).length * 25)) / 2);
} else {
_strCmd6 += blesdk.addCPCLLocation(2);
}
} else {
_strCmd6 += blesdk.addCPCLLocation(0);
}
if (that.shippList[_j4].modelBlod == 'notblod') {
_strCmd6 += blesdk.addCPCLSETBOLD('0');
} else {
_strCmd6 += blesdk.addCPCLSETBOLD('1');
}
var _beginNum = (that.shippList[_j4].name.length - that.shippList[_j4].name.replace(/^\s+/, ' ').length) * 25 + 30;
if (that.shippList[_j4].leftIcon.length > 0 || that.shippList[_j4].rightIcon.length > 0) {
that.yNum += 32 + _offHeigth;
} else {
that.yNum += 25 + _offHeigth;
}
if (that.shippList[_j4].leftIcon.length > 0) {
_iconWidth += 31;
for (var _m4 = 0; _m4 < that.shippList[_j4].leftIcon.length; _m4++) {
_strCmd6 += 'EG 4 32 ' + _iconWidth + ' ' + that.yNum + ' ' + that.shippList[_j4].leftIcon[_m4] + ' ';
_iconWidth += 40;
}
}
that.shippList[_j4].name = that.shippList[_j4].name.replace(/^\s+/, ' ');
if (that.shippList[_j4].value != '') {
if (that.shippList[_j4].leftIcon.length > 0 || that.shippList[_j4].rightIcon.length > 0) {
_strCmd6 += blesdk.addCPCLText((_beginNum + _iconWidth).toString(), that.yNum + 4, '24', '0', 0, that.shippList[_j4].name + ': ' + that.shippList[_j4].value);
} else {
_strCmd6 += blesdk.addCPCLText((_beginNum + _iconWidth).toString(), that.yNum, '24', '0', 0, that.shippList[_j4].name + ': ' + that.shippList[_j4].value);
}
} else {
if (that.shippList[_j4].name.length > 15) {
var _num3 = Math.ceil(Number(that.shippList[_j4].name.length) / 15);
for (var _i9 = 0; _i9 < _num3; _i9++) {
if (that.shippList[_j4].leftIcon.length > 0 || that.shippList[_j4].rightIcon.length > 0) {
_strCmd6 += blesdk.addCPCLText((_beginNum + _iconWidth).toString(), that.yNum + 4, '24', '0', 0, that.shippList[_j4].name.substring(_i9 * 15, (_i9 + 1) * 15));
} else {
_strCmd6 += blesdk.addCPCLText((_beginNum + _iconWidth).toString(), that.yNum, '24', '0', 0, that.shippList[_j4].name.substring(_i9 * 15, (_i9 + 1) * 15));
}
if (that.shippList[_j4].leftIcon.length > 0 || that.shippList[_j4].rightIcon.length > 0) {
that.yNum += 32 + _offHeigth;
} else {
that.yNum += 25 + _offHeigth;
}
}
} else {
if (that.shippList[_j4].leftIcon.length > 0 || that.shippList[_j4].rightIcon.length > 0) {
_strCmd6 += blesdk.addCPCLText((_beginNum + _iconWidth).toString(), that.yNum + 4, '24', '0', 0, that.shippList[_j4].name);
} else {
_strCmd6 += blesdk.addCPCLText((_beginNum + _iconWidth).toString(), that.yNum, '24', '0', 0, that.shippList[_j4].name);
}
}
}
if (that.shippList[_j4].rightIcon.length > 0) {
var _iconWidth2 = Number((that.shippList[_j4].name + that.shippList[_j4].value).length * 25 + 30) + _iconWidth;
for (var _m5 = 0; _m5 < that.shippList[_j4].rightIcon.length; _m5++) {
_strCmd6 += 'EG 4 32 ' + _iconWidth2 + ' ' + that.yNum + ' ' + that.shippList[_j4].rightIcon[_m5] + ' ';
_iconWidth2 += 40;
}
}
}
_strCmd6 += blesdk.addCPCLLocation(1);
_codeWidth = 310;
} else {
_strCmd6 += blesdk.addCPCLLocation(2);
_codeWidth = that.yNum + 60;
}
_strCmd6 += blesdk.addCPCLPrint();
that.bufferData.push(_strCmd6);
}
}
}
that.$nextTick(function () {
uni.navigateBack({
delta: 1
});
});
},
//悬浮按钮
trigger: function trigger(e) {
if (e.index == 0) {
//自定义打印
this.$refs.zidingyiDialog.open();
this.zidingyi = true;
} else {
this.delGoods();
}
},
getCategoryList: function getCategoryList() {
var _this4 = this;
this.tui.request("/app/shopprint/getList", "POST", {
shopId: uni.getStorageSync('shopId')
}, false, false).then(function (res) {
if (res.code == 200) {
if (res.result != '' && res.result != null) {
for (var i = 0; i < res.result.length; i++) {
var data = {
value: res.result[i].content,
text: res.result[i].printName
};
_this4.shopprintList.push(data);
}
}
} else {
_this4.tui.toast(res.message);
}
}).catch(function (res) {});
},
delGoods: function delGoods() {
var that = this;
uni.showModal({
title: "提示",
content: "确定删除此条商品吗?",
success: function success(res) {
if (res.confirm) {
that.tui.request('/app/product/delById', "post", {
id: that.dataList.id
}, false, true).then(function (res1) {
if (res1.code == 200) {
var pages = getCurrentPages();
var prevPage = pages[pages.length - 2];
var shopList = prevPage.$vm.shopList;
for (var i = 0; i < shopList.length; i++) {
if (shopList[i].id == that.dataList.id) {
shopList.splice(i, 1);
}
}
uni.navigateBack({
delta: 1
});
} else {
uni.showToast({
title: "删除失败",
icon: 'none'
});
}
});
}
}
});
}
}
};
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"]))
/***/ }),
/***/ 442:
/*!*******************************************************************************************************!*\
!*** C:/文档/distribution-uni/package1/inventory/inventoryDetail.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_inventoryDetail_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!./inventoryDetail.vue?vue&type=style&index=0&lang=scss& */ 443);
/* 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_inventoryDetail_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_inventoryDetail_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_inventoryDetail_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_inventoryDetail_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_inventoryDetail_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 443:
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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/inventoryDetail.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; }
/***/ })
},[[434,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/package1/inventory/inventoryDetail.js.map