(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/warehouse/order-query"],{

/***/ 342:
/*!****************************************************************************!*\
  !*** D:/project/zhizhu/main.js?{"page":"pages%2Fwarehouse%2Forder-query"} ***!
  \****************************************************************************/
/*! 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 */ 30);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
var _orderQuery = _interopRequireDefault(__webpack_require__(/*! ./pages/warehouse/order-query.vue */ 343));
// @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
createPage(_orderQuery.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"]))

/***/ }),

/***/ 343:
/*!*********************************************************!*\
  !*** D:/project/zhizhu/pages/warehouse/order-query.vue ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _order_query_vue_vue_type_template_id_34671314_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./order-query.vue?vue&type=template&id=34671314&scoped=true& */ 344);
/* harmony import */ var _order_query_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./order-query.vue?vue&type=script&lang=js& */ 346);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _order_query_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 _order_query_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _order_query_vue_vue_type_style_index_0_id_34671314_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./order-query.vue?vue&type=style&index=0&id=34671314&scoped=true&lang=css& */ 348);
/* 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 */ 41);

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"])(
  _order_query_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _order_query_vue_vue_type_template_id_34671314_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  _order_query_vue_vue_type_template_id_34671314_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "34671314",
  null,
  false,
  _order_query_vue_vue_type_template_id_34671314_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "pages/warehouse/order-query.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 344:
/*!****************************************************************************************************!*\
  !*** D:/project/zhizhu/pages/warehouse/order-query.vue?vue&type=template&id=34671314&scoped=true& ***!
  \****************************************************************************************************/
/*! 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_order_query_vue_vue_type_template_id_34671314_scoped_true___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!./order-query.vue?vue&type=template&id=34671314&scoped=true& */ 345);
/* 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_order_query_vue_vue_type_template_id_34671314_scoped_true___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_order_query_vue_vue_type_template_id_34671314_scoped_true___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_order_query_vue_vue_type_template_id_34671314_scoped_true___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_order_query_vue_vue_type_template_id_34671314_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });



/***/ }),

/***/ 345:
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!D:/project/zhizhu/pages/warehouse/order-query.vue?vue&type=template&id=34671314&scoped=true& ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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 = {
    uIcon: function () {
      return Promise.all(/*! import() | uni_modules/uview-ui/components/u-icon/u-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-icon/u-icon.vue */ 358))
    },
    uLoadingIcon: function () {
      return Promise.all(/*! import() | uni_modules/uview-ui/components/u-loading-icon/u-loading-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-loading-icon/u-loading-icon")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-loading-icon/u-loading-icon.vue */ 459))
    },
  }
} 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.orderList.length
  var l0 =
    g0 > 0
      ? _vm.__map(_vm.orderList, function (item, index) {
          var $orig = _vm.__get_orig(item)
          var g1 = _vm.isSelectionMode
            ? _vm.selectedIds.includes(item.id)
            : null
          var g2 = _vm.isSelectionMode
            ? _vm.selectedIds.includes(item.id)
            : null
          var m0 = _vm.isWithin48Hours(item.createdAt)
          var m1 = m0 ? _vm.isWithin24Hours(item.createdAt) : null
          var m2 = m0 ? _vm.isWithin24Hours(item.createdAt) : null
          var m3 =
            _vm.parsedItemList(item) &&
            _vm.parsedItemList(item).goodsImgs &&
            _vm.parsedItemList(item).goodsImgs.length > 0
          var m4 = m3 ? _vm.parsedItemList(item) : null
          var m5 = _vm.getOrderTimeText(item.createdAt)
          var m6 = _vm.parsedItemList(item)
          var m7 = m6 ? _vm.parsedItemList(item).goodsName || "-" : null
          return {
            $orig: $orig,
            g1: g1,
            g2: g2,
            m0: m0,
            m1: m1,
            m2: m2,
            m3: m3,
            m4: m4,
            m5: m5,
            m6: m6,
            m7: m7,
          }
        })
      : null
  var g3 = _vm.orderList.length
  var g4 = g3 > 0 && !!_vm.isSelectionMode ? _vm.selectedIds.length : null
  var g5 = g3 > 0 && !!_vm.isSelectionMode ? _vm.selectedIds.length : null
  var g6 = g3 > 0 && !!_vm.isSelectionMode ? _vm.selectedIds.length : null
  if (!_vm._isMounted) {
    _vm.e0 = function ($event, item) {
      var _temp = arguments[arguments.length - 1].currentTarget.dataset,
        _temp2 = _temp.eventParams || _temp["event-params"],
        item = _temp2.item
      var _temp, _temp2
      $event.stopPropagation()
      _vm.previewImage(_vm.parsedItemList(item).goodsImgs, 0)
    }
  }
  _vm.$mp.data = Object.assign(
    {},
    {
      $root: {
        g0: g0,
        l0: l0,
        g3: g3,
        g4: g4,
        g5: g5,
        g6: g6,
      },
    }
  )
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),

/***/ 346:
/*!**********************************************************************************!*\
  !*** D:/project/zhizhu/pages/warehouse/order-query.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_order_query_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!./order-query.vue?vue&type=script&lang=js& */ 347);
/* 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_order_query_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_order_query_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_order_query_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_order_query_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_order_query_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 347:
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!D:/project/zhizhu/pages/warehouse/order-query.vue?vue&type=script&lang=js& ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 36));
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 38));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = {
  data: function data() {
    return {
      showFilterPopup: false,
      queryParams: {
        pageNum: 1,
        pageSize: 1000,
        createBy: '',
        erpAfterSalesStatus: 0,
        isQueryAllGoods: 1,
        orderSn: '',
        shopType: null,
        startTime: null,
        endTime: null,
        whetherOutbound: null,
        orderStatus: null,
        artNo: '',
        originalArtNo: '',
        isbn: ''
      },
      tempParams: {
        orderSn: '',
        shopType: null,
        startTime: null,
        endTime: null,
        whetherOutbound: null,
        orderStatus: null,
        artNo: '',
        originalArtNo: '',
        isbn: ''
      },
      shopTypeOptions: [{
        label: '全部',
        value: null
      }, {
        label: '拼多多',
        value: 1
      }, {
        label: '孔夫子',
        value: 2
      }, {
        label: '闲鱼',
        value: 5
      }],
      timeRangeOptions: [{
        label: '全部',
        value: null
      }, {
        label: '24小时内',
        value: '24h'
      }, {
        label: '48小时内',
        value: '48h'
      }, {
        label: '48小时外',
        value: 'outside48h'
      }],
      outboundStatusOptions: [{
        label: '全部',
        value: null
      }, {
        label: '未出库',
        value: 0
      }, {
        label: '已出库',
        value: 1
      }],
      orderStatusOptions: [{
        label: '全部',
        value: null
      }, {
        label: '到付款',
        value: 1
      }, {
        label: '待发货',
        value: 2
      }, {
        label: '已发货待签收',
        value: 3
      }, {
        label: '交易完成',
        value: 4
      }, {
        label: '已退款',
        value: 5
      }, {
        label: '交易关闭',
        value: 6
      }, {
        label: '售后处理中',
        value: 7
      }],
      sortOrderOptions: [{
        label: '时间排序',
        value: 'time'
      }, {
        label: '货号排序',
        value: 'artNo'
      }],
      selectedShopTypeLabel: '',
      selectedTimeRangeLabel: '',
      selectedOutboundStatusLabel: '',
      selectedOrderStatusLabel: '',
      selectedSortOrderLabel: '时间排序',
      tempSelectedShopTypeLabel: '',
      tempSelectedTimeRangeLabel: '',
      tempSelectedOutboundStatusLabel: '',
      tempSelectedOrderStatusLabel: '',
      tempSelectedSortOrderLabel: '时间排序',
      orderList: [],
      total: 0,
      loading: false,
      userId: '',
      isSelectionMode: false,
      selectedIds: [],
      sortOrder: 'time',
      // time 或 artNo
      tempSortOrder: 'time' // 临时排序方式
    };
  },

  computed: {
    hasActiveFilters: function hasActiveFilters() {
      return this.activeFilterCount > 0;
    },
    activeFilterCount: function activeFilterCount() {
      var count = 0;
      if (this.queryParams.orderSn) count++;
      if (this.queryParams.shopType !== null) count++;
      if (this.queryParams.startTime !== null) count++;
      if (this.queryParams.whetherOutbound !== null) count++;
      if (this.queryParams.orderStatus !== null) count++;
      if (this.queryParams.artNo) count++;
      if (this.queryParams.originalArtNo) count++;
      if (this.queryParams.isbn) count++;
      return count;
    },
    emptyText: function emptyText() {
      // 如果有筛选条件,生成带筛选条件的提示文本
      if (!this.hasActiveFilters) {
        return '暂无订单数据';
      }
      var textParts = [];

      // 按优先级添加筛选条件到提示文本
      if (this.selectedTimeRangeLabel) {
        textParts.push(this.selectedTimeRangeLabel);
      }
      if (this.selectedOutboundStatusLabel) {
        textParts.push(this.selectedOutboundStatusLabel);
      }
      if (this.selectedOrderStatusLabel) {
        textParts.push(this.selectedOrderStatusLabel);
      }
      if (this.selectedShopTypeLabel) {
        textParts.push(this.selectedShopTypeLabel);
      }

      // 如果有具体条件,显示条件+暂无订单数据
      if (textParts.length > 0) {
        return "".concat(textParts.join('、'), "\u6682\u65E0\u8BA2\u5355\u6570\u636E");
      }

      // 其他筛选条件(订单编号、货号等)
      if (this.queryParams.orderSn) {
        return '该订单编号暂无数据';
      }
      if (this.queryParams.artNo) {
        return '该货号暂无数据';
      }
      if (this.queryParams.originalArtNo) {
        return '该原货号暂无数据';
      }
      if (this.queryParams.isbn) {
        return '该ISBN暂无数据';
      }
      return '暂无订单数据';
    }
  },
  onLoad: function onLoad() {
    // 从本地存储获取userId
    this.userId = uni.getStorageSync('userId') || '';
    this.queryParams.createBy = this.userId;

    // 加载保存的筛选条件
    this.loadSavedFilters();
  },
  onPullDownRefresh: function onPullDownRefresh() {
    // 下拉刷新时重新加载数据
    this.handleSearch().then(function () {
      // 停止下拉刷新动画
      uni.stopPullDownRefresh();
    }).catch(function (e) {
      // 即使失败也要停止刷新动画
      console.error('下拉刷新失败:', e);
      uni.stopPullDownRefresh();
    });
  },
  onUnload: function onUnload() {
    // 页面卸载时保存筛选条件
    this.saveFilters();
  },
  methods: {
    // 保存筛选条件到本地
    saveFilters: function saveFilters() {
      var filterData = {
        queryParams: this.queryParams,
        selectedShopTypeLabel: this.selectedShopTypeLabel,
        selectedTimeRangeLabel: this.selectedTimeRangeLabel,
        selectedOutboundStatusLabel: this.selectedOutboundStatusLabel,
        selectedOrderStatusLabel: this.selectedOrderStatusLabel,
        selectedSortOrderLabel: this.selectedSortOrderLabel,
        sortOrder: this.sortOrder
      };
      uni.setStorageSync('orderQueryFilters', JSON.stringify(filterData));
    },
    // 从本地加载筛选条件
    loadSavedFilters: function loadSavedFilters() {
      var savedFilters = uni.getStorageSync('orderQueryFilters');
      if (savedFilters) {
        try {
          var filterData = JSON.parse(savedFilters);

          // 恢复查询参数
          this.queryParams = _objectSpread(_objectSpread(_objectSpread({}, this.queryParams), filterData.queryParams), {}, {
            createBy: this.userId,
            // 始终使用当前userId
            pageNum: 1,
            // 重置页码
            pageSize: 1000
          });

          // 恢复显示标签
          this.selectedShopTypeLabel = filterData.selectedShopTypeLabel || '';
          this.selectedTimeRangeLabel = filterData.selectedTimeRangeLabel || '';
          this.selectedOutboundStatusLabel = filterData.selectedOutboundStatusLabel || '';
          this.selectedOrderStatusLabel = filterData.selectedOrderStatusLabel || '';
          this.selectedSortOrderLabel = filterData.selectedSortOrderLabel || '时间排序';
          this.sortOrder = filterData.sortOrder || 'time';

          // 同步临时参数
          this.tempParams = _objectSpread({}, this.queryParams);
          this.tempSelectedShopTypeLabel = this.selectedShopTypeLabel;
          this.tempSelectedTimeRangeLabel = this.selectedTimeRangeLabel;
          this.tempSelectedOutboundStatusLabel = this.selectedOutboundStatusLabel;
          this.tempSelectedOrderStatusLabel = this.selectedOrderStatusLabel;
          this.tempSelectedSortOrderLabel = this.selectedSortOrderLabel;
          this.tempSortOrder = this.sortOrder;

          // 执行查询
          this.handleSearch();
        } catch (e) {
          console.error('加载筛选条件失败:', e);
          // 加载失败时使用默认设置
          this.loadDefaultFilters();
        }
      } else {
        // 没有保存的筛选条件时使用默认设置
        this.loadDefaultFilters();
      }
    },
    // 加载默认筛选条件
    loadDefaultFilters: function loadDefaultFilters() {
      // 设置默认筛选条件为48小时内
      this.selectedTimeRangeLabel = '48小时内';
      this.tempSelectedTimeRangeLabel = '48小时内';
      var now = Date.now();
      this.queryParams.endTime = now;
      this.queryParams.startTime = now - 48 * 60 * 60 * 1000;
      this.tempParams.endTime = now;
      this.tempParams.startTime = now - 48 * 60 * 60 * 1000;

      // 初始加载
      this.handleSearch();
    },
    openFilter: function openFilter() {
      this.showFilterPopup = true;
    },
    closePopup: function closePopup() {
      this.showFilterPopup = false;
    },
    openPopup: function openPopup() {
      this.showFilterPopup = true;
    },
    onShopTypeChange: function onShopTypeChange(e) {
      var index = e.detail.value;
      this.tempParams.shopType = this.shopTypeOptions[index].value;
      this.tempSelectedShopTypeLabel = this.shopTypeOptions[index].label;
    },
    onTimeRangeChange: function onTimeRangeChange(e) {
      var index = e.detail.value;
      var option = this.timeRangeOptions[index];
      this.tempSelectedTimeRangeLabel = option.label;
      if (option.value === '24h') {
        // 24小时内
        var now = Date.now();
        this.tempParams.endTime = now;
        this.tempParams.startTime = now - 24 * 60 * 60 * 1000;
      } else if (option.value === '48h') {
        // 48小时内
        var _now = Date.now();
        this.tempParams.endTime = _now;
        this.tempParams.startTime = _now - 48 * 60 * 60 * 1000;
      } else if (option.value === 'outside48h') {
        // 48小时外
        var _now2 = Date.now();
        this.tempParams.endTime = _now2 - 48 * 60 * 60 * 1000;
        this.tempParams.startTime = 0;
      } else {
        // 全部
        this.tempParams.startTime = null;
        this.tempParams.endTime = null;
      }
    },
    onOutboundStatusChange: function onOutboundStatusChange(e) {
      var index = e.detail.value;
      var option = this.outboundStatusOptions[index];
      this.tempParams.whetherOutbound = option.value;
      this.tempSelectedOutboundStatusLabel = option.label;
    },
    onOrderStatusChange: function onOrderStatusChange(e) {
      var index = e.detail.value;
      var option = this.orderStatusOptions[index];
      this.tempParams.orderStatus = option.value;
      this.tempSelectedOrderStatusLabel = option.label;
    },
    onSortOrderChange: function onSortOrderChange(e) {
      var index = e.detail.value;
      var option = this.sortOrderOptions[index];
      this.tempSortOrder = option.value;
      this.tempSelectedSortOrderLabel = option.label;
    },
    applyFilter: function applyFilter() {
      // 将临时参数应用到正式参数
      this.queryParams.orderSn = this.tempParams.orderSn;
      this.queryParams.shopType = this.tempParams.shopType;
      this.queryParams.startTime = this.tempParams.startTime;
      this.queryParams.endTime = this.tempParams.endTime;
      this.queryParams.whetherOutbound = this.tempParams.whetherOutbound;
      this.queryParams.orderStatus = this.tempParams.orderStatus;
      this.queryParams.artNo = this.tempParams.artNo;
      this.queryParams.originalArtNo = this.tempParams.originalArtNo;
      this.queryParams.isbn = this.tempParams.isbn;

      // 同步显示标签
      this.selectedShopTypeLabel = this.tempSelectedShopTypeLabel;
      this.selectedTimeRangeLabel = this.tempSelectedTimeRangeLabel;
      this.selectedOutboundStatusLabel = this.tempSelectedOutboundStatusLabel;
      this.selectedOrderStatusLabel = this.tempSelectedOrderStatusLabel;
      this.selectedSortOrderLabel = this.tempSelectedSortOrderLabel;

      // 应用排序方式
      this.sortOrder = this.tempSortOrder;

      // 保存筛选条件到本地
      this.saveFilters();

      // 关闭弹窗并执行查询
      this.showFilterPopup = false;
      this.handleSearch();
    },
    handleSearch: function handleSearch() {
      var _this = this;
      return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _this.queryParams.pageNum = 1;
                _this.orderList = [];
                _context.next = 4;
                return _this.fetchOrders();
              case 4:
                // 应用排序
                if (_this.sortOrder === 'artNo') {
                  _this.sortOrderByArtNo();
                }
              case 5:
              case "end":
                return _context.stop();
            }
          }
        }, _callee);
      }))();
    },
    handleReset: function handleReset() {
      // 重置临时参数
      this.tempParams = {
        orderSn: '',
        shopType: null,
        startTime: null,
        endTime: null,
        whetherOutbound: null,
        orderStatus: null,
        artNo: '',
        originalArtNo: '',
        isbn: ''
      };
      this.tempSelectedShopTypeLabel = '';
      this.tempSelectedTimeRangeLabel = '';
      this.tempSelectedOutboundStatusLabel = '';
      this.tempSelectedOrderStatusLabel = '';
      this.tempSelectedSortOrderLabel = '时间排序';
      this.tempSortOrder = 'time';

      // 重置正式参数
      this.queryParams = {
        pageNum: 1,
        pageSize: 1000,
        createBy: this.userId,
        erpAfterSalesStatus: 0,
        isQueryAllGoods: 1,
        orderSn: '',
        shopType: null,
        startTime: null,
        endTime: null,
        whetherOutbound: null,
        orderStatus: null,
        artNo: '',
        originalArtNo: '',
        isbn: ''
      };
      this.selectedShopTypeLabel = '';
      this.selectedTimeRangeLabel = '';
      this.selectedOutboundStatusLabel = '';
      this.selectedOrderStatusLabel = '';
      this.selectedSortOrderLabel = '时间排序';
      this.sortOrder = 'time';

      // 关闭弹窗并执行查询
      this.showFilterPopup = false;
      this.handleSearch();
    },
    fetchOrders: function fetchOrders() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var params, key, response, newOrders;
        return _regenerator.default.wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                if (!_this2.loading) {
                  _context2.next = 2;
                  break;
                }
                return _context2.abrupt("return");
              case 2:
                _this2.loading = true;
                _context2.prev = 3;
                // 构建查询参数，过滤掉空值
                params = {};
                for (key in _this2.queryParams) {
                  if (_this2.queryParams[key] !== null && _this2.queryParams[key] !== undefined && _this2.queryParams[key] !== '') {
                    params[key] = _this2.queryParams[key];
                  }
                }

                // 转换时间戳为数字
                if (params.startTime) {
                  params.startTime = Number(params.startTime);
                }
                if (params.endTime) {
                  params.endTime = Number(params.endTime);
                }
                console.log("完整请求:", params);
                _context2.next = 11;
                return _this2.$http({
                  url: 'https://api.buzhiyushu.cn/zhishu/orderExternalGoods/appList',
                  // url: 'http://localhost:8080/zhishu/orderExternalGoods/appList',
                  method: 'GET',
                  data: params,
                  loading: false
                });
              case 11:
                response = _context2.sent;
                console.log("完整响应:", response);
                console.log("状态码:", response.statusCode);
                console.log("响应头:", response.header);
                console.log("响应数据:", response.data);
                if (response.code === 200) {
                  newOrders = response.rows || [];
                  _this2.total = response.total || 0;

                  // 使用 $set 确保 Vue 能检测到数据变化
                  _this2.$set(_this2, 'orderList', newOrders);

                  // 强制更新视图
                  _this2.$forceUpdate();
                } else {
                  uni.showToast({
                    title: response.msg || '查询失败',
                    icon: 'none'
                  });
                }
                _context2.next = 23;
                break;
              case 19:
                _context2.prev = 19;
                _context2.t0 = _context2["catch"](3);
                console.error('查询订单失败:', _context2.t0);
                uni.showToast({
                  title: '查询失败，请稍后重试',
                  icon: 'none'
                });
              case 23:
                _context2.prev = 23;
                _this2.loading = false;
                return _context2.finish(23);
              case 26:
              case "end":
                return _context2.stop();
            }
          }
        }, _callee2, null, [[3, 19, 23, 26]]);
      }))();
    },
    previewImage: function previewImage(images, current) {
      uni.previewImage({
        urls: images,
        current: current
      });
    },
    // 判断是否在24小时内
    isWithin24Hours: function isWithin24Hours(createdAt) {
      if (!createdAt) return false;
      var now = Date.now();
      var timeDiff = now - createdAt;
      var twentyFourHours = 24 * 60 * 60 * 1000;
      return timeDiff <= twentyFourHours;
    },
    // 判断是否在48小时内
    isWithin48Hours: function isWithin48Hours(createdAt) {
      if (!createdAt) return false;
      var now = Date.now();
      var timeDiff = now - createdAt;
      var fortyEightHours = 48 * 60 * 60 * 1000;
      return timeDiff <= fortyEightHours;
    },
    parsedItemList: function parsedItemList(item) {
      if (!item.itemList) {
        return null;
      }
      try {
        return typeof item.itemList === 'string' ? JSON.parse(item.itemList) : item.itemList;
      } catch (e) {
        console.error('解析itemList失败:', e);
        return null;
      }
    },
    // 获取订单时间文本
    getOrderTimeText: function getOrderTimeText(createdAt) {
      if (!createdAt) return '-';
      var now = Date.now();
      var timeDiff = now - createdAt;
      var hours = Math.floor(timeDiff / (1000 * 60 * 60));
      if (hours < 1) {
        var minutes = Math.floor(timeDiff / (1000 * 60));
        return "".concat(minutes, "\u5206\u949F\u524D");
      } else if (hours < 24) {
        return "".concat(hours, "\u5C0F\u65F6\u5185");
      } else if (hours < 48) {
        return '48小时内';
      } else if (hours < 72) {
        return '72小时内';
      } else if (hours < 168) {
        // 7天
        var days = Math.floor(hours / 24);
        return "".concat(days, "\u5929\u524D");
      } else {
        var _days = Math.floor(hours / 24);
        return "".concat(_days, "\u5929\u524D");
      }
    },
    // 获取时间标签文本
    getTimeTagText: function getTimeTagText(createdAt) {
      if (!createdAt) return '';
      var now = Date.now();
      var timeDiff = now - createdAt;
      var twentyFourHours = 24 * 60 * 60 * 1000; // 24小时的毫秒数
      var fortyEightHours = 48 * 60 * 60 * 1000; // 48小时的毫秒数

      if (timeDiff <= twentyFourHours) {
        return '24h内';
      } else if (timeDiff <= fortyEightHours) {
        return '48h内';
      }
      return '';
    },
    // 获取时间标签样式类
    getTimeTagClass: function getTimeTagClass(createdAt) {
      if (!createdAt) return '';
      var now = Date.now();
      var timeDiff = now - createdAt;
      var twentyFourHours = 24 * 60 * 60 * 1000; // 24小时的毫秒数
      var fortyEightHours = 48 * 60 * 60 * 1000; // 48小时的毫秒数

      if (timeDiff <= twentyFourHours) {
        return 'time-tag-24h';
      } else if (timeDiff <= fortyEightHours) {
        return 'time-tag-48h';
      }
      return 'time-tag-hidden';
    },
    // 获取订单状态文本
    getOrderStatusText: function getOrderStatusText(status) {
      var statusMap = {
        1: '到付款',
        2: '待发货',
        3: '已发货待签收',
        4: '交易完成',
        5: '已退款',
        6: '交易关闭',
        7: '售后处理中'
      };
      return statusMap[status] || '-';
    },
    // 获取订单状态样式类
    getOrderStatusClass: function getOrderStatusClass(status) {
      var classMap = {
        1: 'status-pending-payment',
        2: 'status-pending-ship',
        3: 'status-shipped',
        4: 'status-completed',
        5: 'status-refunded',
        6: 'status-closed',
        7: 'status-after-sale'
      };
      return classMap[status] || '';
    },
    // 切换排序方式
    changeSortOrder: function changeSortOrder(order) {
      if (this.sortOrder === order) return;
      this.sortOrder = order;
      if (order === 'artNo') {
        // 按货号前五位ASCII排序
        this.sortOrderByArtNo();
      } else {
        // 按时间排序(重新请求)
        this.fetchOrders();
      }
    },
    // 按货号排序
    sortOrderByArtNo: function sortOrderByArtNo() {
      var sortedList = (0, _toConsumableArray2.default)(this.orderList).sort(function (a, b) {
        var artNoA = (a.artNo || '').toString();
        var artNoB = (b.artNo || '').toString();

        // 获取前五位
        var prefixA = artNoA.substring(0, 5);
        var prefixB = artNoB.substring(0, 5);

        // 如果前五位相同,比较完整货号
        if (prefixA === prefixB) {
          return artNoA.localeCompare(artNoB);
        }

        // 按ASCII排序
        return prefixA.localeCompare(prefixB);
      });
      this.orderList = sortedList;
      this.$forceUpdate();
    },
    // 开始选择模式
    startSelect: function startSelect() {
      this.isSelectionMode = true;
      this.selectedIds = [];
    },
    // 取消选择模式
    cancelSelect: function cancelSelect() {
      this.isSelectionMode = false;
      this.selectedIds = [];
    },
    // 切换选中状态
    toggleSelect: function toggleSelect(id) {
      if (!this.isSelectionMode) return;
      var index = this.selectedIds.indexOf(id);
      if (index > -1) {
        this.selectedIds.splice(index, 1);
      } else {
        this.selectedIds.push(id);
      }
    },
    // 确认出库
    confirmOutbound: function confirmOutbound() {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var ids, response;
        return _regenerator.default.wrap(function _callee3$(_context3) {
          while (1) {
            switch (_context3.prev = _context3.next) {
              case 0:
                if (!(_this3.selectedIds.length === 0)) {
                  _context3.next = 3;
                  break;
                }
                uni.showToast({
                  title: '请至少选择一项',
                  icon: 'none'
                });
                return _context3.abrupt("return");
              case 3:
                _context3.prev = 3;
                // 将选中的ID用逗号拼接
                ids = _this3.selectedIds.join(','); // 打印出库参数
                console.log('=== 批量出库参数 ===');
                console.log('选中的ID列表:', _this3.selectedIds);
                console.log('拼接后的ids参数:', ids);
                console.log('请求URL:', 'http://192.168.101.127:8080/zhishu/orderExternalGoods/editWhetherOutbound');
                console.log('请求方法:', 'POST');
                console.log('请求数据:', {
                  ids: ids
                });
                console.log('==================');

                // 调用接口 - 使用 $http 方法
                _context3.next = 14;
                return _this3.$http({
                  url: 'https://api.buzhiyushu.cn/zhishu/orderExternalGoods/editWhetherOutbound',
                  method: 'POST',
                  data: "ids=".concat(encodeURIComponent(ids)),
                  // 直接传查询字符串
                  header: {
                    'Content-Type': 'application/x-www-form-urlencoded' // 关键
                    // 如果需要token
                    // 'Authorization': 'Bearer ' + uni.getStorageSync('token')
                  },

                  loading: true
                });
              case 14:
                response = _context3.sent;
                console.log("出库状态", response);
                if (!(response.code === 200)) {
                  _context3.next = 24;
                  break;
                }
                uni.showToast({
                  title: '出库成功',
                  icon: 'success'
                });

                // 退出选择模式并刷新列表
                _this3.isSelectionMode = false;
                _this3.selectedIds = [];

                // 使用 handleSearch 刷新数据,确保应用当前筛选条件和排序
                _context3.next = 22;
                return _this3.handleSearch();
              case 22:
                _context3.next = 25;
                break;
              case 24:
                uni.showToast({
                  title: response.msg || '出库失败',
                  icon: 'none'
                });
              case 25:
                _context3.next = 31;
                break;
              case 27:
                _context3.prev = 27;
                _context3.t0 = _context3["catch"](3);
                console.error('出库失败:', _context3.t0);
                uni.showToast({
                  title: '出库失败，请稍后重试',
                  icon: 'none'
                });
              case 31:
              case "end":
                return _context3.stop();
            }
          }
        }, _callee3, null, [[3, 27]]);
      }))();
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),

/***/ 348:
/*!******************************************************************************************************************!*\
  !*** D:/project/zhizhu/pages/warehouse/order-query.vue?vue&type=style&index=0&id=34671314&scoped=true&lang=css& ***!
  \******************************************************************************************************************/
/*! 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_6_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_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_6_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_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_order_query_vue_vue_type_style_index_0_id_34671314_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-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--6-oneOf-1-2!../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../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!./order-query.vue?vue&type=style&index=0&id=34671314&scoped=true&lang=css& */ 349);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_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_6_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_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_order_query_vue_vue_type_style_index_0_id_34671314_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_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_6_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_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_order_query_vue_vue_type_style_index_0_id_34671314_scoped_true_lang_css___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_6_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_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_6_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_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_order_query_vue_vue_type_style_index_0_id_34671314_scoped_true_lang_css___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_6_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_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_6_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_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_order_query_vue_vue_type_style_index_0_id_34671314_scoped_true_lang_css___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_6_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_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_6_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_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_order_query_vue_vue_type_style_index_0_id_34671314_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 349:
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-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--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/project/zhizhu/pages/warehouse/order-query.vue?vue&type=style&index=0&id=34671314&scoped=true&lang=css& ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ })

},[[342,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/warehouse/order-query.js.map