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.
2501 lines
93 KiB
2501 lines
93 KiB
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["package1/index/customAndSupplierProductDetail"],{
|
|
|
|
/***/ 340:
|
|
/*!***************************************************************************************************!*\
|
|
!*** C:/文档/distribution-uni/main.js?{"page":"package1%2Findex%2FcustomAndSupplierProductDetail"} ***!
|
|
\***************************************************************************************************/
|
|
/*! 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 _customAndSupplierProductDetail = _interopRequireDefault(__webpack_require__(/*! ./package1/index/customAndSupplierProductDetail.vue */ 341));
|
|
// @ts-ignore
|
|
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
|
|
createPage(_customAndSupplierProductDetail.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"]))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 341:
|
|
/*!********************************************************************************!*\
|
|
!*** C:/文档/distribution-uni/package1/index/customAndSupplierProductDetail.vue ***!
|
|
\********************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _customAndSupplierProductDetail_vue_vue_type_template_id_55237c51___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./customAndSupplierProductDetail.vue?vue&type=template&id=55237c51& */ 342);
|
|
/* harmony import */ var _customAndSupplierProductDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./customAndSupplierProductDetail.vue?vue&type=script&lang=js& */ 344);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _customAndSupplierProductDetail_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 _customAndSupplierProductDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony import */ var _customAndSupplierProductDetail_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./customAndSupplierProductDetail.vue?vue&type=style&index=0&lang=scss& */ 346);
|
|
/* 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"])(
|
|
_customAndSupplierProductDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
_customAndSupplierProductDetail_vue_vue_type_template_id_55237c51___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
_customAndSupplierProductDetail_vue_vue_type_template_id_55237c51___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
false,
|
|
null,
|
|
null,
|
|
null,
|
|
false,
|
|
_customAndSupplierProductDetail_vue_vue_type_template_id_55237c51___WEBPACK_IMPORTED_MODULE_0__["components"],
|
|
renderjs
|
|
)
|
|
|
|
component.options.__file = "package1/index/customAndSupplierProductDetail.vue"
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 342:
|
|
/*!***************************************************************************************************************!*\
|
|
!*** C:/文档/distribution-uni/package1/index/customAndSupplierProductDetail.vue?vue&type=template&id=55237c51& ***!
|
|
\***************************************************************************************************************/
|
|
/*! 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_customAndSupplierProductDetail_vue_vue_type_template_id_55237c51___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!./customAndSupplierProductDetail.vue?vue&type=template&id=55237c51& */ 343);
|
|
/* 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_customAndSupplierProductDetail_vue_vue_type_template_id_55237c51___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_customAndSupplierProductDetail_vue_vue_type_template_id_55237c51___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_customAndSupplierProductDetail_vue_vue_type_template_id_55237c51___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_customAndSupplierProductDetail_vue_vue_type_template_id_55237c51___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 343:
|
|
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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/index/customAndSupplierProductDetail.vue?vue&type=template&id=55237c51& ***!
|
|
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! 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 = {
|
|
uniDatetimePicker: function () {
|
|
return Promise.all(/*! import() | uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue */ 1195))
|
|
},
|
|
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))
|
|
},
|
|
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))
|
|
},
|
|
uniCard: function () {
|
|
return __webpack_require__.e(/*! import() | uni_modules/uni-card/components/uni-card/uni-card */ "uni_modules/uni-card/components/uni-card/uni-card").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-card/components/uni-card/uni-card.vue */ 1091))
|
|
},
|
|
uniIcons: function () {
|
|
return Promise.all(/*! import() | uni_modules/uni-icons/components/uni-icons/uni-icons */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-icons/components/uni-icons/uni-icons.vue */ 1065))
|
|
},
|
|
uLoadmore: function () {
|
|
return Promise.all(/*! import() | uni_modules/uview-ui/components/u-loadmore/u-loadmore */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-loadmore/u-loadmore.vue */ 1132))
|
|
},
|
|
uniPopup: function () {
|
|
return __webpack_require__.e(/*! import() | uni_modules/uni-popup/components/uni-popup/uni-popup */ "uni_modules/uni-popup/components/uni-popup/uni-popup").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-popup/components/uni-popup/uni-popup.vue */ 1106))
|
|
},
|
|
}
|
|
} catch (e) {
|
|
if (
|
|
e.message.indexOf("Cannot find module") !== -1 &&
|
|
e.message.indexOf(".vue") !== -1
|
|
) {
|
|
console.error(e.message)
|
|
console.error("1. 排查组件名称拼写是否正确")
|
|
console.error(
|
|
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
|
)
|
|
console.error(
|
|
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
|
)
|
|
} else {
|
|
throw e
|
|
}
|
|
}
|
|
var render = function () {
|
|
var _vm = this
|
|
var _h = _vm.$createElement
|
|
var _c = _vm._self._c || _h
|
|
var l1 =
|
|
_vm.type == "khName"
|
|
? _vm.__map(_vm.list, function (item, index4) {
|
|
var $orig = _vm.__get_orig(item)
|
|
var f0 = _vm._f("removeStr")(item.createTime)
|
|
var l0 = _vm.__map(item.saleDetailDTOList, function (item1, index) {
|
|
var $orig = _vm.__get_orig(item1)
|
|
var g0 =
|
|
_vm.userType == 0 && _vm.isDownKH == false
|
|
? (item1.purchasePrice * item1.productCount).toFixed(2)
|
|
: null
|
|
var g1 =
|
|
_vm.userType == 0 && _vm.isDownKH == false
|
|
? (
|
|
(item1.discountAmount - item1.purchasePrice) *
|
|
item1.productCount
|
|
).toFixed(2)
|
|
: null
|
|
return {
|
|
$orig: $orig,
|
|
g0: g0,
|
|
g1: g1,
|
|
}
|
|
})
|
|
return {
|
|
$orig: $orig,
|
|
f0: f0,
|
|
l0: l0,
|
|
}
|
|
})
|
|
: null
|
|
var g2 =
|
|
_vm.type == "khName" && !(_vm.duizhangList.initialArrears == null)
|
|
? Math.abs(_vm.duizhangList.initialArrears)
|
|
: null
|
|
var g3 =
|
|
_vm.type == "khName" && !(_vm.duizhangList.endArrears == null)
|
|
? Math.abs(_vm.duizhangList.endArrears)
|
|
: null
|
|
var g4 =
|
|
_vm.type == "khName" && !(_vm.duizhangList.arrears == null)
|
|
? Math.abs(_vm.duizhangList.arrears)
|
|
: null
|
|
var l2 =
|
|
_vm.type == "khName"
|
|
? _vm.__map(_vm.duizhangRecords, function (item, index) {
|
|
var $orig = _vm.__get_orig(item)
|
|
var f1 = _vm.duizhangList
|
|
? _vm._f("removeStr")(item.createTime)
|
|
: null
|
|
var g5 =
|
|
_vm.duizhangList &&
|
|
item.lastDebtAmount < 0 &&
|
|
!(item.lastDebtAmount == null)
|
|
? Math.abs(item.lastDebtAmount)
|
|
: null
|
|
var g6 =
|
|
_vm.duizhangList &&
|
|
(item.dealingsType == 5 || item.amount >= 0) &&
|
|
!(item.amount == null) &&
|
|
item.dealingsType == 5
|
|
? Math.abs(item.amount)
|
|
: null
|
|
var g7 =
|
|
_vm.duizhangList &&
|
|
item.amount < 0 &&
|
|
item.dealingsType != 5 &&
|
|
!(item.amount == null)
|
|
? Math.abs(item.amount)
|
|
: null
|
|
var g8 =
|
|
_vm.duizhangList &&
|
|
item.balanceDue < 0 &&
|
|
!(item.balanceDue == null)
|
|
? Math.abs(item.balanceDue)
|
|
: null
|
|
return {
|
|
$orig: $orig,
|
|
f1: f1,
|
|
g5: g5,
|
|
g6: g6,
|
|
g7: g7,
|
|
g8: g8,
|
|
}
|
|
})
|
|
: null
|
|
var l4 =
|
|
_vm.type == "khName"
|
|
? _vm.__map(_vm.list, function (item, index4) {
|
|
var $orig = _vm.__get_orig(item)
|
|
var l3 = _vm.__map(
|
|
item.customerBuySaleVoList,
|
|
function (item1, index1) {
|
|
var $orig = _vm.__get_orig(item1)
|
|
var f2 = _vm._f("removeStr")(item1.createTime)
|
|
var g9 =
|
|
_vm.userType == 0 && _vm.isDownKH == false
|
|
? (
|
|
(item1.customerBuyProductDetailLogVos[0].realPrice -
|
|
item1.customerBuyProductDetailLogVos[0].purchasePrice) *
|
|
item1.productCount
|
|
).toFixed(2)
|
|
: null
|
|
return {
|
|
$orig: $orig,
|
|
f2: f2,
|
|
g9: g9,
|
|
}
|
|
}
|
|
)
|
|
return {
|
|
$orig: $orig,
|
|
l3: l3,
|
|
}
|
|
})
|
|
: null
|
|
var l5 =
|
|
_vm.type == "khName"
|
|
? _vm.__map(_vm.list, function (item, index) {
|
|
var $orig = _vm.__get_orig(item)
|
|
var f3 = _vm._f("removeStr")(item.createTime)
|
|
return {
|
|
$orig: $orig,
|
|
f3: f3,
|
|
}
|
|
})
|
|
: null
|
|
var l8 =
|
|
_vm.type == "khName"
|
|
? _vm.__map(_vm.list, function (item, index3) {
|
|
var $orig = _vm.__get_orig(item)
|
|
var l7 =
|
|
_vm.type == 1
|
|
? _vm.__map(item.purchaseDetails, function (items, index1) {
|
|
var $orig = _vm.__get_orig(items)
|
|
var l6 = _vm.__map(
|
|
items.stockLogList1,
|
|
function (data, index2) {
|
|
var $orig = _vm.__get_orig(data)
|
|
var f4 = _vm._f("sliceMsg")(data.attributeList)
|
|
return {
|
|
$orig: $orig,
|
|
f4: f4,
|
|
}
|
|
}
|
|
)
|
|
return {
|
|
$orig: $orig,
|
|
l6: l6,
|
|
}
|
|
})
|
|
: null
|
|
return {
|
|
$orig: $orig,
|
|
l7: l7,
|
|
}
|
|
})
|
|
: null
|
|
var g10 =
|
|
!(_vm.type == "khName") && !(_vm.duizhangList.initialArrears == null)
|
|
? Math.abs(_vm.duizhangList.initialArrears)
|
|
: null
|
|
var g11 =
|
|
!(_vm.type == "khName") && !(_vm.duizhangList.endArrears == null)
|
|
? Math.abs(_vm.duizhangList.endArrears)
|
|
: null
|
|
var g12 =
|
|
!(_vm.type == "khName") && !(_vm.duizhangList.arrears == null)
|
|
? Math.abs(_vm.duizhangList.arrears)
|
|
: null
|
|
var l9 = !(_vm.type == "khName")
|
|
? _vm.__map(_vm.duizhangRecords, function (item, index) {
|
|
var $orig = _vm.__get_orig(item)
|
|
var f5 = _vm.duizhangList ? _vm._f("removeStr")(item.createTime) : null
|
|
var f6 =
|
|
_vm.duizhangList &&
|
|
item.dealingsType == 7 &&
|
|
item.purchaseTime != null
|
|
? _vm._f("removeStr")(item.purchaseTime)
|
|
: null
|
|
var g13 =
|
|
_vm.duizhangList &&
|
|
item.lastDebtAmount < 0 &&
|
|
!(item.lastDebtAmount == null)
|
|
? Math.abs(item.lastDebtAmount)
|
|
: null
|
|
var g14 =
|
|
_vm.duizhangList &&
|
|
(item.dealingsType == 5 || item.amount >= 0) &&
|
|
!(item.amount == null) &&
|
|
item.dealingsType == 5
|
|
? Math.abs(item.amount)
|
|
: null
|
|
var g15 =
|
|
_vm.duizhangList &&
|
|
item.amount < 0 &&
|
|
item.dealingsType != 5 &&
|
|
!(item.amount == null)
|
|
? Math.abs(item.amount)
|
|
: null
|
|
var g16 =
|
|
_vm.duizhangList && item.balanceDue < 0 && !(item.balanceDue == null)
|
|
? Math.abs(item.balanceDue)
|
|
: null
|
|
return {
|
|
$orig: $orig,
|
|
f5: f5,
|
|
f6: f6,
|
|
g13: g13,
|
|
g14: g14,
|
|
g15: g15,
|
|
g16: g16,
|
|
}
|
|
})
|
|
: null
|
|
var l11 = !(_vm.type == "khName")
|
|
? _vm.__map(_vm.list, function (item, index4) {
|
|
var $orig = _vm.__get_orig(item)
|
|
var l10 = _vm.__map(item.supplierBuySaleVos, function (item1, index1) {
|
|
var $orig = _vm.__get_orig(item1)
|
|
var f7 = _vm._f("removeStr")(item1.createTime)
|
|
return {
|
|
$orig: $orig,
|
|
f7: f7,
|
|
}
|
|
})
|
|
return {
|
|
$orig: $orig,
|
|
l10: l10,
|
|
}
|
|
})
|
|
: null
|
|
var l12 = !(_vm.type == "khName")
|
|
? _vm.__map(_vm.list, function (item, index) {
|
|
var $orig = _vm.__get_orig(item)
|
|
var f8 = _vm._f("removeStr")(item.createTime)
|
|
return {
|
|
$orig: $orig,
|
|
f8: f8,
|
|
}
|
|
})
|
|
: null
|
|
var l13 = _vm.__map(_vm.GDList, function (item, index) {
|
|
var $orig = _vm.__get_orig(item)
|
|
var f9 = _vm._f("sliceMsg")(item.attributeList)
|
|
return {
|
|
$orig: $orig,
|
|
f9: f9,
|
|
}
|
|
})
|
|
var l15 = _vm.__map(Array.from(_vm.buyList), function (value, key) {
|
|
var $orig = _vm.__get_orig(value)
|
|
var l14 = _vm.__map(
|
|
Array.from(value[1].stockLogList),
|
|
function (values, keys) {
|
|
var $orig = _vm.__get_orig(values)
|
|
var f10 = _vm._f("sliceMsg")(values[1].attributeList)
|
|
return {
|
|
$orig: $orig,
|
|
f10: f10,
|
|
}
|
|
}
|
|
)
|
|
return {
|
|
$orig: $orig,
|
|
l14: l14,
|
|
}
|
|
})
|
|
var l16 = _vm.__map(
|
|
_vm.detailList.billAttributeListVos,
|
|
function (item, index) {
|
|
var $orig = _vm.__get_orig(item)
|
|
var f11 = _vm._f("sliceMsg")(item.attributeList)
|
|
return {
|
|
$orig: $orig,
|
|
f11: f11,
|
|
}
|
|
}
|
|
)
|
|
var g17 = _vm.shijiPrice ? _vm.salePrice.toFixed(2) : null
|
|
var g18 = _vm.shijiPrice ? _vm.returnPrice.toFixed(2) : null
|
|
if (!_vm._isMounted) {
|
|
_vm.e0 = function ($event) {
|
|
return _vm.$refs.xsdetailPopup.close()
|
|
}
|
|
_vm.e1 = function ($event) {
|
|
return _vm.$refs.buyDetailPopup.close()
|
|
}
|
|
_vm.e2 = function ($event) {
|
|
return _vm.$refs.detailPopup.close()
|
|
}
|
|
_vm.e3 = function ($event) {
|
|
return _vm.$refs.sharePopup.close()
|
|
}
|
|
_vm.e4 = function ($event) {
|
|
_vm.shijiPrice = false
|
|
}
|
|
}
|
|
_vm.$mp.data = Object.assign(
|
|
{},
|
|
{
|
|
$root: {
|
|
l1: l1,
|
|
g2: g2,
|
|
g3: g3,
|
|
g4: g4,
|
|
l2: l2,
|
|
l4: l4,
|
|
l5: l5,
|
|
l8: l8,
|
|
g10: g10,
|
|
g11: g11,
|
|
g12: g12,
|
|
l9: l9,
|
|
l11: l11,
|
|
l12: l12,
|
|
l13: l13,
|
|
l15: l15,
|
|
l16: l16,
|
|
g17: g17,
|
|
g18: g18,
|
|
},
|
|
}
|
|
)
|
|
}
|
|
var recyclableRender = false
|
|
var staticRenderFns = []
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 344:
|
|
/*!*********************************************************************************************************!*\
|
|
!*** C:/文档/distribution-uni/package1/index/customAndSupplierProductDetail.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_customAndSupplierProductDetail_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!./customAndSupplierProductDetail.vue?vue&type=script&lang=js& */ 345);
|
|
/* 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_customAndSupplierProductDetail_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_customAndSupplierProductDetail_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_customAndSupplierProductDetail_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_customAndSupplierProductDetail_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_customAndSupplierProductDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 345:
|
|
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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/index/customAndSupplierProductDetail.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 */ 28));
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
|
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 30));
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
var _default = {
|
|
data: function data() {
|
|
return {
|
|
list: [],
|
|
buyList: new Map(),
|
|
range: [],
|
|
oneShareData: {},
|
|
GDList: [],
|
|
salePrice: 0,
|
|
saleCount: 0,
|
|
saleAllCount: 0,
|
|
returnPrice: 0,
|
|
returnCount: 0,
|
|
returnAllCount: 0,
|
|
status: 'loadmore',
|
|
isDetail: '2',
|
|
oneShareId: '',
|
|
shareSuccess: false,
|
|
pages: 1,
|
|
shijiPrice: false,
|
|
pageNum: 1,
|
|
userId: '',
|
|
FWHPic: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/f2ba2080aaa54c618c2e47df4f220087.png',
|
|
mini_program_openid: '',
|
|
unionid: '',
|
|
official_account_openid: '',
|
|
shopId: '',
|
|
duizhangRecords: [],
|
|
detailList: {},
|
|
duizhangList: {},
|
|
type: '',
|
|
isDownKH: false,
|
|
customId: '',
|
|
userType: uni.getStorageSync('type'),
|
|
items: ['对账单', '拿货(按订单)', '拿货(按商品)', '退货明细'],
|
|
itemsGYS: ['对账单', '拿货(按订单)', '拿货(按商品)'],
|
|
current: 0,
|
|
shopName: ""
|
|
};
|
|
},
|
|
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;
|
|
},
|
|
removeStr: function removeStr(val) {
|
|
if (val == null) {
|
|
return "";
|
|
} else {
|
|
var dotIndex = val.indexOf('.');
|
|
if (dotIndex !== -1) {
|
|
return val.substring(0, dotIndex);
|
|
}
|
|
return val;
|
|
}
|
|
}
|
|
},
|
|
onShareAppMessage: function onShareAppMessage() {
|
|
var _this = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
var dotIndex, titleText, imageUrl, _titleText, _imageUrl, path, _titleText2, _imageUrl2;
|
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
while (1) {
|
|
switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_this.shareSuccess = true;
|
|
if (!(_this.isDetail == '0')) {
|
|
_context.next = 13;
|
|
break;
|
|
}
|
|
//销售单详情
|
|
dotIndex = _this.oneShareData.createTime.indexOf(' ');
|
|
if (dotIndex !== -1) {
|
|
_this.oneShareData.createTime = _this.oneShareData.createTime.substring(0, dotIndex);
|
|
}
|
|
titleText = _this.shopName + ' ' + _this.oneShareData.createTime + '\n销售单';
|
|
_context.next = 7;
|
|
return _this.senrPath();
|
|
case 7:
|
|
imageUrl = _context.sent;
|
|
_this.$refs.sharePopup.close();
|
|
_this.isDetail = '3';
|
|
return _context.abrupt("return", {
|
|
title: titleText,
|
|
imageUrl: imageUrl,
|
|
path: '/package1/index/orderDetail?id=' + _this.oneShareId + '&oneShareData=' + JSON.stringify(_this.oneShareData) + '&mini_program_openid=' + _this.miniProgramOpenid + '&unionid=' + _this.unionid + '&official_account_openid=' + _this.officialAccountOpenid + '&userId=' + _this.userId + '&customId=' + _this.customId + '&shopId=' + uni.getStorageSync('shopId')
|
|
});
|
|
case 13:
|
|
if (!(_this.isDetail == '1')) {
|
|
_context.next = 27;
|
|
break;
|
|
}
|
|
//充值记录
|
|
//客户名,操作人,操作时间,之前欠款,充值金额,本单后余额,店铺id
|
|
dotIndex = _this.oneShareData.createTime.indexOf(' ');
|
|
if (dotIndex !== -1) {
|
|
_this.oneShareData.createTime = _this.oneShareData.createTime.substring(0, dotIndex);
|
|
}
|
|
_titleText = _this.shopName + '充值记录\n' + _this.oneShareData.createTime;
|
|
_context.next = 19;
|
|
return _this.senrPath();
|
|
case 19:
|
|
_imageUrl = _context.sent;
|
|
_this.$refs.sharePopup.close();
|
|
_this.isDetail = '3';
|
|
path = '';
|
|
if (_this.type == 'khName') {
|
|
path = '/package1/index/rechargeRecord?type=ku&oneShareData=' + JSON.stringify(_this.oneShareData) + '&mini_program_openid=' + _this.miniProgramOpenid + '&unionid=' + _this.unionid + '&official_account_openid=' + _this.officialAccountOpenid + '&userId=' + _this.userId + '&customId=' + _this.customId + '&shopId=' + uni.getStorageSync('shopId');
|
|
} else {
|
|
path = '/package1/index/rechargeRecord?oneShareData=' + JSON.stringify(_this.oneShareData) + '&mini_program_openid=' + _this.miniProgramOpenid + '&unionid=' + _this.unionid + '&official_account_openid=' + _this.officialAccountOpenid + '&userId=' + _this.userId + '&customId=' + _this.customId + '&shopId=' + uni.getStorageSync('shopId');
|
|
}
|
|
return _context.abrupt("return", {
|
|
title: _titleText,
|
|
imageUrl: _imageUrl,
|
|
path: path
|
|
});
|
|
case 27:
|
|
if (!(_this.isDetail == '4')) {
|
|
_context.next = 33;
|
|
break;
|
|
}
|
|
//采购
|
|
_this.$refs.sharePopup.close();
|
|
_this.isDetail = '3';
|
|
return _context.abrupt("return", {
|
|
title: _this.shopName + '的对账单',
|
|
imageUrl: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/b28b3d46c21d4f60a334b25f56175cf3.jpg',
|
|
path: '/package1/index/waitStorageDetail?id=' + _this.oneShareId + '&oneShareData=' + JSON.stringify(_this.oneShareData) + '&shopId=' + _this.shopId + '&mini_program_openid=' + _this.miniProgramOpenid + '&unionid=' + _this.unionid + '&official_account_openid=' + _this.officialAccountOpenid + '&userId=' + _this.userId
|
|
});
|
|
case 33:
|
|
if (!(_this.isDetail == '5')) {
|
|
_context.next = 39;
|
|
break;
|
|
}
|
|
//采购
|
|
_this.$refs.sharePopup.close();
|
|
_this.isDetail = '3';
|
|
return _context.abrupt("return", {
|
|
title: _this.shopName + '的对账单',
|
|
imageUrl: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/b28b3d46c21d4f60a334b25f56175cf3.jpg',
|
|
path: '/package1/index/waitStorageDetail?returnInv=1&id=' + _this.oneShareId + '&oneShareData=' + JSON.stringify(_this.oneShareData) + '&shopId=' + _this.shopId + '&mini_program_openid=' + _this.miniProgramOpenid + '&unionid=' + _this.unionid + '&official_account_openid=' + _this.officialAccountOpenid + '&userId=' + _this.userId
|
|
});
|
|
case 39:
|
|
_titleText2 = _this.shopName + '对账单\n' + _this.range[0] + '至' + _this.range[1];
|
|
_context.next = 42;
|
|
return _this.senrPath();
|
|
case 42:
|
|
_imageUrl2 = _context.sent;
|
|
return _context.abrupt("return", {
|
|
title: _titleText2,
|
|
imageUrl: _imageUrl2,
|
|
path: '/package1/index/shareBill?popleType=khName&id=' + _this.userId + '&shopId=' + _this.shopId + '&shopName=' + _this.shopName + '&range=' + JSON.stringify(_this.range) + '&mini_program_openid=' + _this.miniProgramOpenid + '&unionid=' + _this.unionid + '&official_account_openid=' + _this.officialAccountOpenid + '&userId=' + _this.userId + '&customId=' + _this.customId + '&userName=' + _this.duizhangList.userName
|
|
});
|
|
case 44:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}
|
|
}, _callee);
|
|
}))();
|
|
},
|
|
onLoad: function onLoad(option) {
|
|
var that = this;
|
|
this.customId = option.id;
|
|
this.userId = option.userId;
|
|
this.type = option.popleType;
|
|
this.shopName = option.shopName ? option.shopName : uni.getStorageSync('shopName');
|
|
this.shopId = option.shopId ? option.shopId : uni.getStorageSync('shopId');
|
|
this.miniProgramOpenid = option.miniProgramOpenid;
|
|
this.officialAccountOpenid = option.officialAccountOpenid;
|
|
this.unionid = option.unionid;
|
|
this.getMonth();
|
|
if (option.shopId) {
|
|
this.isDownKH = true;
|
|
}
|
|
uni.setNavigationBarTitle({
|
|
title: this.shopName
|
|
});
|
|
this.duizhangdan();
|
|
},
|
|
onShow: function onShow() {
|
|
var that = this;
|
|
if (this.range == '') {
|
|
this.getMonth();
|
|
}
|
|
if (this.shareSuccess) {
|
|
if ((this.officialAccountOpenid == "null" || this.officialAccountOpenid == "" || this.officialAccountOpenid == undefined || this.officialAccountOpenid == null) && this.type == 'khName' && this.duizhangList.userName != '散客') {
|
|
uni.showModal({
|
|
title: "提示",
|
|
content: "该客户没有关注公众号,无法接收消息通知,是否邀请用户关注?",
|
|
success: function success(res) {
|
|
if (res.confirm) {
|
|
uni.previewImage({
|
|
urls: [that.FWHPic]
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
this.shareSuccess = false;
|
|
}
|
|
// if(uni.getStorageSync('mini_program_openid')){
|
|
// this.getToken()
|
|
// }
|
|
},
|
|
onReachBottom: function onReachBottom() {
|
|
if (this.pageNum >= this.pages) return;
|
|
this.status = 'loading';
|
|
this.pageNum++;
|
|
if (this.current == 0) {
|
|
this.duizhangdan();
|
|
} else {
|
|
this.getList();
|
|
}
|
|
},
|
|
methods: {
|
|
//获取code
|
|
getToken: function getToken() {
|
|
uni.login({
|
|
provider: 'weixin',
|
|
success: function success(res) {
|
|
this.getOpenId(res.code);
|
|
}
|
|
});
|
|
},
|
|
//获取小程序openid
|
|
getOpenId: function getOpenId(code) {
|
|
var _this2 = this;
|
|
this.tui.request("", "post", {
|
|
appid: 'wx6d7d4fb58d1502db',
|
|
secret: '3a2c8cd00926764bbd12fd7361e01f1d',
|
|
js_code: code,
|
|
grant_type: "authorization_code",
|
|
customId: ''
|
|
}, false, false).then(function (res) {
|
|
_this2.status = 'nomore';
|
|
if (res.code == 200) {} else {
|
|
_this2.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
},
|
|
//canvas画分享的图
|
|
senrPath: function senrPath() {
|
|
var _this3 = this;
|
|
return new Promise( /*#__PURE__*/function () {
|
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(resolve, reject) {
|
|
var that, ctx, imgA;
|
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
while (1) {
|
|
switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
that = _this3;
|
|
uni.showLoading({
|
|
title: '生成中...'
|
|
});
|
|
ctx = uni.createCanvasContext('myCanvas1', _this3); //背景图
|
|
imgA = 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/30cc553859944b1e9fa3ce2d87905612.png';
|
|
uni.downloadFile({
|
|
url: imgA,
|
|
success: function success(res2) {
|
|
if (res2.statusCode === 200) {
|
|
// // 绘制第一张图片
|
|
ctx.drawImage(res2.tempFilePath, 0, 0, 1515, 1210);
|
|
ctx.draw(true);
|
|
ctx.setFontSize(65);
|
|
// 设置文字颜色
|
|
ctx.fillStyle = '#FF5809';
|
|
var beginHeight = 150;
|
|
// 计算居中位置
|
|
beginHeight += 100;
|
|
if (_this3.isDetail == '1') {
|
|
//充值记录
|
|
ctx.font = 'bold 80px SimSun';
|
|
// 绘制文字
|
|
ctx.fillText('充值记录', 350, beginHeight);
|
|
ctx.draw(true);
|
|
// 设置文字颜色
|
|
ctx.fillStyle = '#FF5809';
|
|
beginHeight += 150;
|
|
var text1 = (_this3.oneShareData.lastDebtAmount >= 0 ? '之前欠款:' : '之前余额:') + Math.abs(_this3.oneShareData.lastDebtAmount);
|
|
ctx.font = 'bold 60px SimSun';
|
|
// 绘制文字
|
|
ctx.fillText(text1, 350, beginHeight);
|
|
ctx.draw(true);
|
|
beginHeight += 150;
|
|
//
|
|
var text2 = (_this3.oneShareData.dealingsType == 5 ? '追加欠款:' : _this3.oneShareData.dealingsType == 4 ? '充值金额:' : '充值金额:') + Math.abs(_this3.oneShareData.amount);
|
|
// 绘制文字
|
|
ctx.fillText(text2, 350, beginHeight);
|
|
ctx.draw(true);
|
|
beginHeight += 150;
|
|
var text2 = (_this3.oneShareData.balanceDue >= 0 ? '本单后欠款:' : '本单后余额:') + Math.abs(_this3.oneShareData.balanceDue);
|
|
// 绘制文字
|
|
ctx.fillText(text2, 350, beginHeight);
|
|
ctx.draw(true);
|
|
} else if (_this3.isDetail == '0') {
|
|
// // 绘制第一张图片
|
|
ctx.drawImage(res2.tempFilePath, 0, 0, 1515, 1210);
|
|
ctx.draw(true);
|
|
// 设置字体样式
|
|
ctx.font = 'bold 80px SimSun';
|
|
// 设置文字颜色
|
|
ctx.fillStyle = '#FF5809';
|
|
var _beginHeight = 150;
|
|
var textWidth = 350;
|
|
// 计算居中位置
|
|
_beginHeight += 100;
|
|
|
|
// 绘制文字
|
|
ctx.fillText('销售', textWidth, _beginHeight);
|
|
ctx.draw(true);
|
|
// 设置字体样式
|
|
ctx.font = 'bold 60px SimSun';
|
|
// 设置文字颜色
|
|
ctx.fillStyle = '#FF5809';
|
|
_beginHeight += 100;
|
|
var text = '总件数:' + _this3.oneShareData.productCount + ' 总金额:' + _this3.oneShareData.totalAmount;
|
|
// 绘制文字
|
|
ctx.fillText(text, textWidth, _beginHeight);
|
|
ctx.draw(true);
|
|
if (that.oneShareData.returnCount > 0) {
|
|
_beginHeight += 120;
|
|
var textWidth = 350;
|
|
// 绘制文字
|
|
// 设置字体样式
|
|
ctx.font = 'bold 80px SimSun';
|
|
// 设置文字颜色
|
|
ctx.fillStyle = '#FF5809';
|
|
ctx.fillText('退货', textWidth, _beginHeight);
|
|
ctx.draw(true);
|
|
_beginHeight += 100;
|
|
// 设置字体样式
|
|
ctx.font = 'bold 60px SimSun';
|
|
// 设置文字颜色
|
|
ctx.fillStyle = '#FF5809';
|
|
var text = '总件数:' + that.oneShareData.returnCount + ' 总金额:' + _this3.oneShareData.returnPrice;
|
|
// 绘制文字
|
|
ctx.fillText(text, textWidth, _beginHeight);
|
|
ctx.draw(true);
|
|
}
|
|
var textWidth = 350;
|
|
_beginHeight += 150;
|
|
// 绘制文字
|
|
// 设置字体样式
|
|
ctx.font = 'bold 80px SimSun';
|
|
// 设置文字颜色
|
|
ctx.fillStyle = 'black';
|
|
ctx.fillText('本单应收:' + _this3.oneShareData.realAmount, textWidth, _beginHeight);
|
|
ctx.draw(true);
|
|
_beginHeight += 120;
|
|
var textWidth = 350;
|
|
// 绘制文字
|
|
// 设置字体样式
|
|
ctx.font = 'bold 80px SimSun';
|
|
// 设置文字颜色
|
|
ctx.fillStyle = 'black';
|
|
ctx.fillText('本单实收:' + _this3.oneShareData.alreadyEarn, textWidth, _beginHeight);
|
|
ctx.draw(true);
|
|
_beginHeight += 120;
|
|
} else {
|
|
ctx.font = 'bold 80px SimSun';
|
|
// 绘制文字
|
|
ctx.fillText('对账单', 350, beginHeight);
|
|
ctx.draw(true);
|
|
// 设置文字颜色
|
|
ctx.fillStyle = '#FF5809';
|
|
ctx.font = 'bold 60px SimSun';
|
|
beginHeight += 150;
|
|
var text1 = (_this3.duizhangList.endArrears >= 0 ? '期末欠款:' : '期末余额:') + (_this3.duizhangList.endArrears == null ? '0' : _this3.duizhangList.endArrears);
|
|
ctx.setFontSize(54);
|
|
// 绘制文字
|
|
ctx.fillText(text1, 350, beginHeight);
|
|
ctx.draw(true);
|
|
beginHeight += 150;
|
|
var text2 = '拿货总额:' + (_this3.duizhangList.totalSale == null ? '0' : _this3.duizhangList.totalSale);
|
|
// 绘制文字
|
|
ctx.fillText(text2, 350, beginHeight);
|
|
ctx.draw(true);
|
|
beginHeight += 150;
|
|
var text2 = '退货总额:' + (_this3.duizhangList.totalReturn == null ? "0" : _this3.duizhangList.totalReturn);
|
|
// 绘制文字
|
|
ctx.fillText(text2, 350, beginHeight);
|
|
ctx.draw(true);
|
|
}
|
|
setTimeout(function (ress) {
|
|
uni.canvasToTempFilePath({
|
|
x: 0,
|
|
y: 0,
|
|
width: 1515,
|
|
height: 1210,
|
|
destWidth: 1515,
|
|
destHeight: 1210,
|
|
canvasId: 'myCanvas1',
|
|
success: function success(res3) {
|
|
uni.hideLoading();
|
|
return resolve(res3.tempFilePath);
|
|
}
|
|
});
|
|
}, 500);
|
|
}
|
|
}
|
|
});
|
|
case 5:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
return function (_x, _x2) {
|
|
return _ref.apply(this, arguments);
|
|
};
|
|
}());
|
|
},
|
|
//获取当月1日到当前时间
|
|
getMonth: function getMonth() {
|
|
var date = new Date();
|
|
var year = date.getFullYear().toString(); //'年'
|
|
var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1).toString() : (date.getMonth() + 1).toString(); //'月'
|
|
var da = date.getDate() < 10 ? '0' + date.getDate().toString() : date.getDate().toString(); //'日'
|
|
var end = year + '-' + month + '-' + da; //当天
|
|
var beg = '2024-01-01'; //当月第一天
|
|
this.range = [beg, end];
|
|
},
|
|
delDZD: function delDZD(item) {
|
|
var that = this;
|
|
uni.showModal({
|
|
title: "提示",
|
|
content: "确定删除此条数据吗?",
|
|
success: function success(res) {
|
|
uni.showLoading({
|
|
title: '加载中...'
|
|
});
|
|
if (res.confirm) {
|
|
that.tui.request('/app/dealingRecord/deleteDealingsRecord', "post", {
|
|
id: item.id
|
|
}, false, true).then(function (res) {
|
|
if (res.code == 200) {
|
|
that.tui.toast('删除成功');
|
|
that.duizhangList = [];
|
|
that.pageNum = 1;
|
|
that.pages = 1;
|
|
that.duizhangdan();
|
|
} else {
|
|
that.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
}
|
|
setTimeout(function (res1) {
|
|
uni.hideLoading();
|
|
}, 500);
|
|
}
|
|
});
|
|
},
|
|
duizhangdan: function duizhangdan() {
|
|
var _this4 = this;
|
|
var url, data;
|
|
if (this.type == 'gysName') {
|
|
url = '/app/bill/getSupplierBill';
|
|
data = {
|
|
supplierId: this.customId,
|
|
shopId: this.shopId,
|
|
pageNum: this.pageNum,
|
|
startDate: this.range[0],
|
|
endDate: this.range[1],
|
|
pageSize: "10"
|
|
};
|
|
} else {
|
|
url = "/app/bill/getCustomerBill";
|
|
data = {
|
|
customerId: this.customId,
|
|
pageNum: this.pageNum,
|
|
pageSize: '10',
|
|
startDate: this.range[0],
|
|
endDate: this.range[1],
|
|
shopId: this.shopId
|
|
};
|
|
}
|
|
this.tui.request(url, "post", data, false, false).then(function (res) {
|
|
if (res.code == 200) {
|
|
_this4.status = 'nomore';
|
|
if (_this4.type == 'gysName') {
|
|
if (_this4.pages == 1) {
|
|
_this4.duizhangList = res.result;
|
|
_this4.duizhangRecords = res.result.supplierBillSaleVos.records;
|
|
} else {
|
|
for (var i = 0; i < res.result.supplierBillSaleVos.records.length; i++) {
|
|
_this4.duizhangRecords.push(res.result.supplierBillSaleVos.records[i]);
|
|
}
|
|
}
|
|
_this4.pages = res.result.supplierBillSaleVos.pages;
|
|
} else {
|
|
for (var _i = 0; _i < res.result.customerBillSaleVos.records.length; _i++) {
|
|
res.result.customerBillSaleVos.records[_i].isOldName = true;
|
|
if (res.result.customerBillSaleVos.records[_i].dealingsUserName != res.result.userName) {
|
|
res.result.customerBillSaleVos.records[_i].isOldName = false;
|
|
}
|
|
}
|
|
if (_this4.pages == 1) {
|
|
_this4.duizhangList = res.result;
|
|
_this4.duizhangRecords = res.result.customerBillSaleVos.records;
|
|
} else {
|
|
for (var _i2 = 0; _i2 < res.result.customerBillSaleVos.records.length; _i2++) {
|
|
_this4.duizhangRecords.push(res.result.customerBillSaleVos.records[_i2]);
|
|
}
|
|
}
|
|
_this4.pages = res.result.customerBillSaleVos.pages;
|
|
}
|
|
} else {
|
|
_this4.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
},
|
|
xiaoshouDetail: function xiaoshouDetail(type, item) {
|
|
if (item) {
|
|
if (type == '1') {
|
|
this.GDList = item.stockLogList1;
|
|
this.$refs.xsdetailPopup.open();
|
|
} else if (type == '2') {
|
|
if (this.type == 'gysName') {
|
|
this.GDList = item.supplierBuyProductDetailLogVos;
|
|
} else {
|
|
this.GDList = item.customerBuyProductDetailLogVos;
|
|
}
|
|
this.$refs.xsdetailPopup.open();
|
|
} else if (type == '3') {
|
|
this.GDList = item.stockLogList1;
|
|
this.$refs.xsdetailPopup.open();
|
|
}
|
|
}
|
|
},
|
|
getBuyDetail: function getBuyDetail() {
|
|
var _this5 = this;
|
|
this.$refs.buyDetailPopup.open('bottom');
|
|
this.tui.request('/app/sale/listPages', "post", {
|
|
userId: this.customId,
|
|
pageVo: {
|
|
pageSize: 10000000,
|
|
pageNumber: 1
|
|
},
|
|
searchStr: "",
|
|
startTime: this.range[0],
|
|
endTime: this.range[1],
|
|
shopId: this.shopId,
|
|
fromWhere: 1
|
|
}, false, false).then(function (res) {
|
|
_this5.status = 'nomore';
|
|
if (res.code == 200) {
|
|
var listData = res.result.records;
|
|
_this5.buyList = new Map();
|
|
for (var i = 0; i < listData.length; i++) {
|
|
for (var j = 0; j < listData[i].saleDetailDTOList.length; j++) {
|
|
if (_this5.buyList.size == 0) {
|
|
//当前没有数据
|
|
_this5.buyList.set(listData[i].saleDetailDTOList[j].productSn, listData[i].saleDetailDTOList[j]);
|
|
_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList = new Map();
|
|
for (var m = 0; m < listData[i].saleDetailDTOList[j].stockLogList1.length; m++) {
|
|
_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).productCount += listData[i].saleDetailDTOList[j].stockLogList1[m].productCount;
|
|
if (_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList.size == 0) {
|
|
_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList.set(listData[i].saleDetailDTOList[j].stockLogList1[m].attributeList, listData[i].saleDetailDTOList[j].stockLogList1[m]);
|
|
} else {
|
|
if (_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList.has(listData[i].saleDetailDTOList[j].stockLogList1[m].attributeList)) {
|
|
_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList.get(listData[i].saleDetailDTOList[j].stockLogList1[m].attributeList).productCount += listData[i].saleDetailDTOList[j].stockLogList1[m].productCount;
|
|
} else {
|
|
_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList.set(listData[i].saleDetailDTOList[j].stockLogList1[m].attributeList, listData[i].saleDetailDTOList[j].stockLogList1[m]);
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
//有数据
|
|
if (_this5.buyList.has(listData[i].saleDetailDTOList[j].productSn)) {
|
|
// 数据相同
|
|
|
|
for (var _m = 0; _m < listData[i].saleDetailDTOList[j].stockLogList1.length; _m++) {
|
|
_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).productCount += listData[i].saleDetailDTOList[j].stockLogList1[_m].productCount;
|
|
if (_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList.has(listData[i].saleDetailDTOList[j].stockLogList1[_m].attributeList)) {
|
|
_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList.get(listData[i].saleDetailDTOList[j].stockLogList1[_m].attributeList).productCount += listData[i].saleDetailDTOList[j].stockLogList1[_m].productCount;
|
|
} else {
|
|
_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList.set(listData[i].saleDetailDTOList[j].stockLogList1[_m].attributeList, listData[i].saleDetailDTOList[j].stockLogList1[_m]);
|
|
}
|
|
}
|
|
} else {
|
|
// 数据不同
|
|
_this5.buyList.set(listData[i].saleDetailDTOList[j].productSn, listData[i].saleDetailDTOList[j]);
|
|
_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList = new Map();
|
|
for (var _m2 = 0; _m2 < listData[i].saleDetailDTOList[j].stockLogList1.length; _m2++) {
|
|
_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).productCount += listData[i].saleDetailDTOList[j].stockLogList1[_m2].productCount;
|
|
if (_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList.size == 0) {
|
|
_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList.set(listData[i].saleDetailDTOList[j].stockLogList1[_m2].attributeList, listData[i].saleDetailDTOList[j].stockLogList1[_m2]);
|
|
} else {
|
|
if (_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList.has(listData[i].saleDetailDTOList[j].stockLogList1[_m2].attributeList)) {
|
|
_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList.get(listData[i].saleDetailDTOList[j].stockLogList1[_m2].attributeList).productCount += listData[i].saleDetailDTOList[j].stockLogList1[_m2].productCount;
|
|
} else {
|
|
_this5.buyList.get(listData[i].saleDetailDTOList[j].productSn).stockLogList.set(listData[i].saleDetailDTOList[j].stockLogList1[_m2].attributeList, listData[i].saleDetailDTOList[j].stockLogList1[_m2]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
_this5.tui.request("/app/return/getReturnSaleListByUserId", "post", {
|
|
userId: _this5.customId,
|
|
startDate: _this5.range[0],
|
|
endDate: _this5.range[1],
|
|
pageNum: 1,
|
|
pageSize: "10000000",
|
|
shopId: _this5.shopId
|
|
}, false, false).then(function (res) {
|
|
_this5.status = 'nomore';
|
|
if (res.code == 200) {
|
|
var returnDetail = res.result.records;
|
|
for (var _i3 = 0; _i3 < returnDetail.length; _i3++) {
|
|
for (var _j = 0; _j < returnDetail[_i3].returnSaleDetailList.length; _j++) {
|
|
if (_this5.buyList.has(returnDetail[_i3].returnSaleDetailList[_j].productSn)) {
|
|
for (var _m3 = 0; _m3 < returnDetail[_i3].returnSaleDetailList[_j].stockLogList1.length; _m3++) {
|
|
if (_this5.buyList.get(returnDetail[_i3].returnSaleDetailList[_j].productSn).stockLogList.has(returnDetail[_i3].returnSaleDetailList[_j].stockLogList1[_m3].attributeList)) {
|
|
if (_this5.buyList.get(returnDetail[_i3].returnSaleDetailList[_j].productSn).stockLogList.get(returnDetail[_i3].returnSaleDetailList[_j].stockLogList1[_m3].attributeList).returnNum == undefined) {
|
|
_this5.buyList.get(returnDetail[_i3].returnSaleDetailList[_j].productSn).stockLogList.get(returnDetail[_i3].returnSaleDetailList[_j].stockLogList1[_m3].attributeList).returnNum = 0;
|
|
}
|
|
_this5.buyList.get(returnDetail[_i3].returnSaleDetailList[_j].productSn).stockLogList.get(returnDetail[_i3].returnSaleDetailList[_j].stockLogList1[_m3].attributeList).returnNum += returnDetail[_i3].returnSaleDetailList[_j].stockLogList1[_m3].productCount;
|
|
_this5.buyList.get(returnDetail[_i3].returnSaleDetailList[_j].productSn).productCount -= returnDetail[_i3].returnSaleDetailList[_j].stockLogList1[_m3].productCount;
|
|
_this5.buyList.get(returnDetail[_i3].returnSaleDetailList[_j].productSn).stockLogList.get(returnDetail[_i3].returnSaleDetailList[_j].stockLogList1[_m3].attributeList).productCount -= returnDetail[_i3].returnSaleDetailList[_j].stockLogList1[_m3].productCount;
|
|
if (_this5.buyList.get(returnDetail[_i3].returnSaleDetailList[_j].productSn).stockLogList.get(returnDetail[_i3].returnSaleDetailList[_j].stockLogList1[_m3].attributeList).productCount <= 0) {
|
|
_this5.buyList.get(returnDetail[_i3].returnSaleDetailList[_j].productSn).stockLogList.delete(returnDetail[_i3].returnSaleDetailList[_j].stockLogList1[_m3].attributeList);
|
|
}
|
|
if (_this5.buyList.get(returnDetail[_i3].returnSaleDetailList[_j].productSn).stockLogList.size == 0) {
|
|
_this5.buyList.delete(returnDetail[_i3].returnSaleDetailList[_j].productSn);
|
|
}
|
|
_this5.$forceUpdate();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
_this5.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
} else {
|
|
_this5.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
},
|
|
getAmount: function getAmount() {
|
|
var _this6 = this;
|
|
this.salePrice = 0;
|
|
this.saleCount = 0;
|
|
this.saleAllCount = 0;
|
|
this.returnPrice = 0;
|
|
this.returnCount = 0;
|
|
this.returnAllCount = 0;
|
|
this.shijiPrice = true;
|
|
if (this.type == 'khName') {
|
|
this.tui.request("/app/customer/getCustomerData", "POST", {
|
|
customerId: this.customId,
|
|
startDate: this.range[0],
|
|
endDate: this.range[1]
|
|
}, false, false).then(function (res1) {
|
|
if (res1.code == 200) {
|
|
if (res1.result != null) {
|
|
_this6.salePrice = Number(res1.result.salePrice);
|
|
_this6.saleCount = res1.result.saleCount;
|
|
_this6.returnPrice = Number(res1.result.saleReturnPrice);
|
|
_this6.returnCount = res1.result.saleReturnCount;
|
|
if (res1.result.productDataVos != null && res1.result.productDataVos.length > 0) {
|
|
for (var i = 0; i < res1.result.productDataVos.length; i++) {
|
|
_this6.saleAllCount += res1.result.productDataVos[i].productCount;
|
|
}
|
|
}
|
|
if (res1.result.returnProductDataVos != null && res1.result.returnProductDataVos.length > 0) {
|
|
for (var _i4 = 0; _i4 < res1.result.returnProductDataVos.length; _i4++) {
|
|
_this6.returnAllCount += res1.result.returnProductDataVos[_i4].productCount;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}).catch(function (res) {});
|
|
} else {
|
|
this.tui.request("/app/supplier/getSupplierData", "POST", {
|
|
supplierId: this.customId,
|
|
startDate: this.range[0],
|
|
endDate: this.range[1]
|
|
}, false, false).then(function (res1) {
|
|
if (res1.code == 200) {
|
|
if (res1.result != null) {
|
|
_this6.salePrice = Number(res1.result.purchasePrice);
|
|
_this6.saleCount = res1.result.purchaseCount;
|
|
_this6.returnPrice = Number(res1.result.purchaseReturnPrice);
|
|
_this6.returnCount = res1.result.purchaseReturnCount;
|
|
if (res1.result.productDataVos != null && res1.result.productDataVos.length > 0) {
|
|
for (var i = 0; i < res1.result.productDataVos.length; i++) {
|
|
_this6.saleAllCount += res1.result.productDataVos[i].productCount;
|
|
}
|
|
}
|
|
if (res1.result.returnProductDataVos != null && res1.result.returnProductDataVos.length > 0) {
|
|
for (var _i5 = 0; _i5 < res1.result.returnProductDataVos.length; _i5++) {
|
|
_this6.returnAllCount += res1.result.returnProductDataVos[_i5].productCount;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}).catch(function (res) {});
|
|
}
|
|
},
|
|
//充值记录撤销
|
|
revokeRecharge: function revokeRecharge(item) {
|
|
var that = this;
|
|
uni.showModal({
|
|
title: "提示",
|
|
content: "确定撤销此条数据吗?",
|
|
success: function success(res) {
|
|
uni.showLoading({
|
|
title: '加载中...'
|
|
});
|
|
if (res.confirm) {
|
|
var pages = getCurrentPages();
|
|
var prevPage = pages[pages.length - 2];
|
|
prevPage.$vm.modelShow = true;
|
|
that.tui.request('/app/debt/revokeDebt', "post", {
|
|
id: item.id,
|
|
remark: ''
|
|
}, false, true).then(function (res) {
|
|
if (res.code == 200) {
|
|
that.tui.toast('撤销成功');
|
|
that.duizhangList = [];
|
|
that.pageNum = 1;
|
|
that.pages = 1;
|
|
that.duizhangdan();
|
|
} else {
|
|
that.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
}
|
|
setTimeout(function (res1) {
|
|
uni.hideLoading();
|
|
}, 500);
|
|
}
|
|
});
|
|
},
|
|
getList: function getList(id) {
|
|
var _this7 = this;
|
|
this.status = 'loading';
|
|
var url, data;
|
|
if (this.type == 'gysName') {
|
|
if (this.current == 1) {
|
|
url = "/app/purchase/getPurchaseListOfSupplier";
|
|
data = {
|
|
supplierId: this.customId,
|
|
pageSize: 10,
|
|
pageNum: this.pageNum,
|
|
startDate: this.range[0],
|
|
endDate: this.range[1]
|
|
};
|
|
} else if (this.current == 2) {
|
|
url = "/app/sale/getSupplierBuyProductLog";
|
|
data = {
|
|
supplierId: this.customId,
|
|
pageSize: 10,
|
|
pageNum: this.pageNum,
|
|
shopId: this.shopId,
|
|
startDate: this.range[0],
|
|
endDate: this.range[1]
|
|
};
|
|
}
|
|
} else {
|
|
if (this.current == 1) {
|
|
url = "/app/sale/listPages";
|
|
data = {
|
|
userId: this.customId,
|
|
pageVo: {
|
|
pageSize: 10,
|
|
pageNumber: this.pageNum
|
|
},
|
|
searchStr: "",
|
|
startTime: this.range[0],
|
|
endTime: this.range[1],
|
|
shopId: this.shopId,
|
|
fromWhere: 1
|
|
};
|
|
} else if (this.current == 2) {
|
|
url = "/app/sale/getCustomerBuyProductLog";
|
|
data = {
|
|
userId: this.customId,
|
|
pageSize: 10,
|
|
startDate: this.range[0],
|
|
endDate: this.range[1],
|
|
pageNum: this.pageNum,
|
|
shopId: this.shopId
|
|
};
|
|
} else if (this.current == 3) {
|
|
url = "/app/return/getReturnSaleListByUserId";
|
|
data = {
|
|
userId: this.customId,
|
|
startDate: this.range[0],
|
|
endDate: this.range[1],
|
|
pageNum: this.pageNum,
|
|
pageSize: "10",
|
|
shopId: this.shopId
|
|
};
|
|
}
|
|
}
|
|
this.tui.request(url, "post", data, false, false).then(function (res) {
|
|
_this7.status = 'nomore';
|
|
if (res.code == 200) {
|
|
// this.list = res.result.records
|
|
if (_this7.pages == 1) {
|
|
_this7.list = res.result.records;
|
|
} else {
|
|
_this7.list = [].concat((0, _toConsumableArray2.default)(_this7.list), (0, _toConsumableArray2.default)(res.result.records));
|
|
}
|
|
_this7.pages = res.result.pages;
|
|
if (_this7.current == 1) {
|
|
if (_this7.type == 'gysName') {
|
|
for (var i = 0; i < _this7.list.length; i++) {
|
|
_this7.list[i].purchase.productCount = 0;
|
|
for (var j = 0; j < _this7.list[i].purchaseDetails.length; j++) {
|
|
for (var m = 0; m < _this7.list[i].purchaseDetails[j].stockLogList1.length; m++) {
|
|
_this7.list[i].purchase.productCount += _this7.list[i].purchaseDetails[j].stockLogList1[m].productCount;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
for (var _i6 = 0; _i6 < _this7.list.length; _i6++) {
|
|
_this7.list[_i6].productCount = 0;
|
|
for (var _j2 = 0; _j2 < _this7.list[_i6].saleDetailDTOList.length; _j2++) {
|
|
_this7.list[_i6].saleDetailDTOList[_j2].productCount = 0;
|
|
for (var _m4 = 0; _m4 < _this7.list[_i6].saleDetailDTOList[_j2].stockLogList1.length; _m4++) {
|
|
_this7.list[_i6].productCount += _this7.list[_i6].saleDetailDTOList[_j2].stockLogList1[_m4].productCount;
|
|
_this7.list[_i6].saleDetailDTOList[_j2].productCount += _this7.list[_i6].saleDetailDTOList[_j2].stockLogList1[_m4].productCount;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
_this7.$forceUpdate();
|
|
} else if (_this7.current == 2) {
|
|
if (_this7.type == 'gysName') {
|
|
for (var _i7 = 0; _i7 < _this7.list.length; _i7++) {
|
|
_this7.list[_i7].productCount = 0;
|
|
for (var _j3 = 0; _j3 < _this7.list[_i7].supplierBuySaleVos.length; _j3++) {
|
|
_this7.list[_i7].supplierBuySaleVos[_j3].productCount = 0;
|
|
for (var _m5 = 0; _m5 < _this7.list[_i7].supplierBuySaleVos[_j3].supplierBuyProductDetailLogVos.length; _m5++) {
|
|
_this7.list[_i7].productCount += _this7.list[_i7].supplierBuySaleVos[_j3].supplierBuyProductDetailLogVos[_m5].productCount;
|
|
_this7.list[_i7].supplierBuySaleVos[_j3].productCount += _this7.list[_i7].supplierBuySaleVos[_j3].supplierBuyProductDetailLogVos[_m5].productCount;
|
|
}
|
|
}
|
|
}
|
|
_this7.$forceUpdate();
|
|
} else {
|
|
for (var _i8 = 0; _i8 < _this7.list.length; _i8++) {
|
|
_this7.list[_i8].productCount = 0;
|
|
for (var _j4 = 0; _j4 < _this7.list[_i8].customerBuySaleVoList.length; _j4++) {
|
|
_this7.list[_i8].customerBuySaleVoList[_j4].productCount = 0;
|
|
for (var _m6 = 0; _m6 < _this7.list[_i8].customerBuySaleVoList[_j4].customerBuyProductDetailLogVos.length; _m6++) {
|
|
_this7.list[_i8].productCount += _this7.list[_i8].customerBuySaleVoList[_j4].customerBuyProductDetailLogVos[_m6].productCount;
|
|
_this7.list[_i8].customerBuySaleVoList[_j4].productCount += _this7.list[_i8].customerBuySaleVoList[_j4].customerBuyProductDetailLogVos[_m6].productCount;
|
|
}
|
|
}
|
|
}
|
|
_this7.$forceUpdate();
|
|
}
|
|
} else if (_this7.current == 3) {
|
|
if (_this7.type == 'gysName') {
|
|
// for (let i = 0; i < this.list.length; i++) {
|
|
// this.list[i].productCount = 0
|
|
// for (let j = 0; j < this.list[i].supplierBuySaleVos.length; j++) {
|
|
// this.list[i].supplierBuySaleVos[j].productCount = 0
|
|
|
|
// for (let m = 0; m < this.list[i].supplierBuySaleVos[j]
|
|
// .supplierBuyProductDetailLogVos.length; m++) {
|
|
// this.list[i].productCount += this.list[i].supplierBuySaleVos[j]
|
|
// .supplierBuyProductDetailLogVos[m].productCount
|
|
// this.list[i].supplierBuySaleVos[j].productCount += this.list[i]
|
|
// .supplierBuySaleVos[j].supplierBuyProductDetailLogVos[m]
|
|
// .productCount
|
|
// }
|
|
// }
|
|
// }
|
|
// this.$forceUpdate()
|
|
} else {
|
|
for (var _i9 = 0; _i9 < _this7.list.length; _i9++) {
|
|
for (var _j5 = 0; _j5 < _this7.list[_i9].returnSaleDetailList.length; _j5++) {
|
|
_this7.list[_i9].returnSaleDetailList[_j5].productCount = 0;
|
|
for (var _m7 = 0; _m7 < _this7.list[_i9].returnSaleDetailList[_j5].stockLogList1.length; _m7++) {
|
|
_this7.list[_i9].returnSaleDetailList[_j5].productCount += _this7.list[_i9].returnSaleDetailList[_j5].stockLogList1[_m7].productCount;
|
|
}
|
|
}
|
|
}
|
|
_this7.$forceUpdate();
|
|
}
|
|
}
|
|
} else {
|
|
_this7.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
},
|
|
clickDetail: function clickDetail(item) {
|
|
this.detailList = item;
|
|
this.$refs.detailPopup.open();
|
|
},
|
|
onClickItem: function onClickItem(e) {
|
|
if (this.current !== e.currentIndex) {
|
|
this.current = e.currentIndex;
|
|
}
|
|
if (e.currentIndex == 0) {
|
|
this.duizhangList = [];
|
|
this.pageNum = 1;
|
|
this.pages = 1;
|
|
this.duizhangdan();
|
|
} else if (e.currentIndex == 1) {
|
|
this.list = [];
|
|
this.pageNum = 1;
|
|
this.getList();
|
|
} else if (e.currentIndex == 2) {
|
|
this.list = [];
|
|
this.pageNum = 1;
|
|
this.getList();
|
|
} else if (e.currentIndex == 3) {
|
|
this.list = [];
|
|
this.pageNum = 1;
|
|
this.getList();
|
|
}
|
|
},
|
|
oneShare: function oneShare(item, type) {
|
|
if (type == 'chongzhi') {
|
|
//客户名,操作人,操作时间,之前欠款,充值金额,本单后余额,店铺id
|
|
this.oneShareData = {
|
|
userName: this.duizhangList.userName,
|
|
createByName: item.createByName,
|
|
createTime: item.createTime,
|
|
lastDebtAmount: item.lastDebtAmount,
|
|
amount: item.amount,
|
|
balanceDue: item.balanceDue,
|
|
shopAddress: uni.getStorageSync('shopAddress'),
|
|
shopRemark: uni.getStorageSync('shopRemark'),
|
|
shopMoblie: uni.getStorageSync('username'),
|
|
shopName: uni.getStorageSync('shopName'),
|
|
dealingsType: item.dealingsType
|
|
};
|
|
this.$refs.sharePopup.open();
|
|
this.isDetail = '1';
|
|
} else if (type == 'xiaoshou') {
|
|
var productCount = 0;
|
|
var returnCount = 0;
|
|
this.oneShareData = {
|
|
shopMoblie: uni.getStorageSync('username'),
|
|
shopName: uni.getStorageSync('shopName'),
|
|
createTime: item.createTime,
|
|
productCount: productCount,
|
|
returnCount: returnCount,
|
|
returnPrice: item.returnSaleTotalAmount == null ? '0' : item.returnSaleTotalAmount,
|
|
totalAmount: item.totalAmount,
|
|
realAmount: item.realAmount,
|
|
alreadyEarn: item.alreadyEarn
|
|
};
|
|
if (item.billReturnSaleDetailVos != null) {
|
|
for (var i = 0; i < item.billReturnSaleDetailVos.length; i++) {
|
|
this.oneShareData.returnCount += item.billReturnSaleDetailVos[i].productCount;
|
|
}
|
|
}
|
|
if (item.billSaleDetailVos) {
|
|
for (var _i10 = 0; _i10 < item.billSaleDetailVos.length; _i10++) {
|
|
this.oneShareData.productCount += item.billSaleDetailVos[_i10].productCount;
|
|
}
|
|
}
|
|
this.$refs.sharePopup.open();
|
|
this.isDetail = '0';
|
|
this.oneShareId = item.saleId;
|
|
} else if (type == 'caigou') {
|
|
this.oneShareData = {
|
|
shopMoblie: uni.getStorageSync('username'),
|
|
shopName: uni.getStorageSync('shopName')
|
|
};
|
|
this.$refs.sharePopup.open();
|
|
this.isDetail = '4';
|
|
this.oneShareId = item.purchaseId;
|
|
} else if (type == 'tuihuo') {
|
|
this.oneShareData = {
|
|
shopMoblie: uni.getStorageSync('username'),
|
|
shopName: uni.getStorageSync('shopName')
|
|
};
|
|
this.$refs.sharePopup.open();
|
|
this.isDetail = '5';
|
|
this.oneShareId = item.purchaseId;
|
|
}
|
|
},
|
|
searchList: function searchList() {
|
|
if (this.current == 0) {
|
|
this.duizhangList = [];
|
|
this.pageNum = 1;
|
|
this.pages = 1;
|
|
this.duizhangdan();
|
|
} else if (this.current == 1) {
|
|
this.list = [];
|
|
this.pageNum = 1;
|
|
this.getList();
|
|
} else if (this.current == 2) {
|
|
this.list = [];
|
|
this.pageNum = 1;
|
|
this.getList();
|
|
} else if (this.current == 3) {
|
|
this.list = [];
|
|
this.pageNum = 1;
|
|
this.getList();
|
|
}
|
|
}
|
|
}
|
|
};
|
|
exports.default = _default;
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 346:
|
|
/*!******************************************************************************************************************!*\
|
|
!*** C:/文档/distribution-uni/package1/index/customAndSupplierProductDetail.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_customAndSupplierProductDetail_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!./customAndSupplierProductDetail.vue?vue&type=style&index=0&lang=scss& */ 347);
|
|
/* 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_customAndSupplierProductDetail_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_customAndSupplierProductDetail_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_customAndSupplierProductDetail_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_customAndSupplierProductDetail_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_customAndSupplierProductDetail_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 347:
|
|
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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/index/customAndSupplierProductDetail.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; }
|
|
|
|
|
|
/***/ })
|
|
|
|
},[[340,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/package1/index/customAndSupplierProductDetail.js.map
|