12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289 |
- (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/reimbursementList/submitApply"],{
- /***/ 104:
- /*!********************************************************************************************!*\
- !*** C:/projectCode/dataUniapp/main.js?{"page":"pages%2FreimbursementList%2FsubmitApply"} ***!
- \********************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
- var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 3));
- var _submitApply = _interopRequireDefault(__webpack_require__(/*! ./pages/reimbursementList/submitApply.vue */ 105));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
- createPage(_submitApply.default);
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
- /***/ }),
- /***/ 105:
- /*!*************************************************************************!*\
- !*** C:/projectCode/dataUniapp/pages/reimbursementList/submitApply.vue ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _submitApply_vue_vue_type_template_id_783b5b74_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./submitApply.vue?vue&type=template&id=783b5b74&scoped=true& */ 106);
- /* harmony import */ var _submitApply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./submitApply.vue?vue&type=script&lang=js& */ 108);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _submitApply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _submitApply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony import */ var _submitApply_vue_vue_type_style_index_0_id_783b5b74_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./submitApply.vue?vue&type=style&index=0&id=783b5b74&scoped=true&lang=scss& */ 110);
- /* harmony import */ var _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
- var renderjs
- /* normalize component */
- var component = Object(_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
- _submitApply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
- _submitApply_vue_vue_type_template_id_783b5b74_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
- _submitApply_vue_vue_type_template_id_783b5b74_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
- false,
- null,
- "783b5b74",
- null,
- false,
- _submitApply_vue_vue_type_template_id_783b5b74_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
- renderjs
- )
- component.options.__file = "pages/reimbursementList/submitApply.vue"
- /* harmony default export */ __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /***/ 106:
- /*!********************************************************************************************************************!*\
- !*** C:/projectCode/dataUniapp/pages/reimbursementList/submitApply.vue?vue&type=template&id=783b5b74&scoped=true& ***!
- \********************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_template_id_783b5b74_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./submitApply.vue?vue&type=template&id=783b5b74&scoped=true& */ 107);
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_template_id_783b5b74_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_template_id_783b5b74_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_template_id_783b5b74_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_template_id_783b5b74_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
- /***/ }),
- /***/ 107:
- /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./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--16-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:/projectCode/dataUniapp/pages/reimbursementList/submitApply.vue?vue&type=template&id=783b5b74&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
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- var l1 = !_vm.table_loading
- ? _vm.__map(_vm.data_list, function(item, index) {
- var $orig = _vm.__get_orig(item)
- var g0 = _vm.editFlag ? _vm.multipleIdArr.indexOf(item.self_id) : null
- var g1 =
- _vm.source == "audit" && item.type == 2
- ? _vm.checkList.indexOf(item.id)
- : null
- var l0 =
- _vm.source == "audit" && !(item.type == 2)
- ? _vm.__map(item.list, function(item1, __i9__) {
- var $orig = _vm.__get_orig(item1)
- var g2 = _vm.checkList.indexOf(item1.id)
- return {
- $orig: $orig,
- g2: g2
- }
- })
- : null
- return {
- $orig: $orig,
- g0: g0,
- g1: g1,
- l0: l0
- }
- })
- : null
- var m0 = !_vm.table_loading ? _vm.$formatNum(_vm.amount) : null
- var l2 =
- !_vm.table_loading && _vm.editFlag
- ? _vm.__map(_vm.file_urls, function(item, index) {
- var $orig = _vm.__get_orig(item)
- var g3 = item.indexOf(".pdf")
- return {
- $orig: $orig,
- g3: g3
- }
- })
- : null
- var l3 =
- !_vm.table_loading && !_vm.editFlag
- ? _vm.__map(_vm.file_urls, function(item, index) {
- var $orig = _vm.__get_orig(item)
- var g4 = item.indexOf(".pdf")
- return {
- $orig: $orig,
- g4: g4
- }
- })
- : null
- var l4 =
- !_vm.table_loading &&
- _vm.apply_id &&
- _vm.reimburse_info &&
- _vm.reimburse_info.status != 0
- ? _vm.__map(_vm.reimburse_info.file_submits, function(item, index) {
- var $orig = _vm.__get_orig(item)
- var g5 = item.split("/")
- var g6 = item.split("/")
- var g7 = item.split("/")
- var g8 = item && g5 && g6[g7.length - 1] ? item.split("/") : null
- var g9 = item && g5 && g6[g7.length - 1] ? item.split("/") : null
- return {
- $orig: $orig,
- g5: g5,
- g6: g6,
- g7: g7,
- g8: g8,
- g9: g9
- }
- })
- : null
- var l5 = !_vm.table_loading
- ? _vm.__map(_vm.examine_info, function(item, index) {
- var $orig = _vm.__get_orig(item)
- var g10 =
- item.executors && item.executors.length != 0
- ? item.executors.join(",")
- : null
- return {
- $orig: $orig,
- g10: g10
- }
- })
- : null
- _vm.$mp.data = Object.assign(
- {},
- {
- $root: {
- l1: l1,
- m0: m0,
- l2: l2,
- l3: l3,
- l4: l4,
- l5: l5
- }
- }
- )
- }
- var recyclableRender = false
- var staticRenderFns = []
- render._withStripped = true
- /***/ }),
- /***/ 108:
- /*!**************************************************************************************************!*\
- !*** C:/projectCode/dataUniapp/pages/reimbursementList/submitApply.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 _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./submitApply.vue?vue&type=script&lang=js& */ 109);
- /* harmony import */ var _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /***/ 109:
- /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-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:/projectCode/dataUniapp/pages/reimbursementList/submitApply.vue?vue&type=script&lang=js& ***!
- \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 13));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};} //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var _default =
- {
- data: function data() {
- return {
- real_name: '',
- apply_id: '',
- reimburse_info: {},
- examine_info: {},
- data_list: [],
- amount: 0,
- remarks_audit: '',
- remarks: '',
- source: '',
- p_id: '',
- editFlag: false,
- failFlag: false,
- table_loading: true,
- file_urls: [],
- allSelection: false,
- multipleSelection: [],
- multipleIdArr: [],
- checkList: [],
- commentList: [], //评论列表
- commentStaffList: [], //评论@人员列表
- uploadFileList: [], //上传文件的列表,备注上的添加附件
- orderStatus: '', //审核状态是什么,主要用来看是否是待审核
- showStaffList: false,
- selfFlag: true
- // staffChecked:[],
- };
- },
- onLoad: function onLoad(option) {var _this2 = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:_context.next = 2;return (
- _this2.$onLaunched);case 2:
- _this2.real_name = uni.getStorageSync('userInfo').info.real_name;
- if (option && option.source) {
- _this2.source = option.source;
- }
- if (option && option.status) {
- _this2.orderStatus = option.status;
- }
- if (option && option.p_id) {
- _this2.p_id = option.p_id;
- }
- if (option.page == 'reimbursementPage') {
- if (_this2.apply_id) {
- _this2.reimburseDetailList();
- _this2.commentList_init();
- _this2.eitStaff();
- } else {
- _this2.getReimburseApplyList();
- }
- } else {
- if (option && option.apply_id) {
- _this2.apply_id = option.apply_id;
- _this2.reimburseDetailList();
- _this2.commentList_init();
- _this2.eitStaff();
- } else {
- _this2.editFlag = true;
- _this2.getReimburseApplyList();
- }
- }case 7:case "end":return _context.stop();}}}, _callee);}))();
- },
- methods: {
- deleFile: function deleFile(index) {//删除多余上传的文件,不需要走后台接口
- this.uploadFileList.splice(index, 1);
- },
- uploadFileEventComment: function uploadFileEventComment() {
- var _this = this;
- wx.chooseImage({
- success: function success(res) {
- var tempFilePaths = res.tempFilePaths;
- uni.showLoading({
- title: '加载中' });
- wx.uploadFile({
- url: _this.$rootDocment + _this.$api.manage_fileUpload,
- filePath: tempFilePaths[0],
- name: 'file',
- header: {
- 'sessionKey': uni.getStorageSync('session_key') ? uni.getStorageSync(
- 'session_key') : false },
- formData: {
- 'admin_id': uni.getStorageSync('admin_id'),
- 'ttl': uni.getStorageSync('ttl'),
- 'sign': uni.getStorageSync('sign') },
- success: function success(res) {
- uni.hideLoading();
- var data = res.data;
- _this.uploadFileList.push(JSON.parse(data).rst);
- },
- fail: function fail(err) {
- uni.hideLoading();
- } });
- } });
- },
- remarks_auditBlur: function remarks_auditBlur(e) {
- this.remarks_audit = e.detail.value;
- this.showStaffList = false;
- if (e.detail.value.charAt(e.detail.value.length - 1) == '@') {
- this.showStaffList = true;
- }
- },
- chooseStaff: function chooseStaff(item) {
- if (this.remarks_audit.charAt(this.remarks_audit.length - 1) == '@') {
- this.remarks_audit = this.remarks_audit.substr(0, this.remarks_audit.length - 1);
- }
- this.remarks_audit += '@' + item.staff_name + ' ';
- this.showStaffList = false;
- //先不要删
- // let idx = this.staffChecked.indexOf(item.staff_name)
- // if(idx>-1){
- // this.staffChecked.splice(idx,1)
- // this.remarks_audit = this.remarks_audit.replace('@'+item.staff_name+' ','')
- // item.checked=false
- // }else{
- // this.staffChecked.push(item.staff_name)
- // if(this.remarks_audit.charAt(this.remarks_audit.length-1) == '@'){
- // this.remarks_audit = this.remarks_audit.substr(0,this.remarks_audit.length-1)
- // }
- // this.remarks_audit += '@'+item.staff_name+' '
- // item.checked=true
- // }
- },
- eitStaff: function eitStaff() {var _this3 = this; // 获取@人员列表
- if (this.apply_id == '') {
- uni.showToast({
- title: '无序列号',
- icon: 'none' });
- return false;
- }
- this.staffChecked = [];
- this.$req(this.$api.auditcomment_staffList, 'get', {
- submit_id: this.apply_id },
- function (res) {
- if (res && res.errno == 0) {
- _this3.commentStaffList = res.rst;
- // this.commentStaffList.forEach(i=>{
- // i.checked = false
- // })
- } else if (res.errno != 4002) {
- uni.showToast({
- title: res.err,
- icon: 'none' });
- }
- }), function (err) {
- uni.showToast({
- title: err,
- icon: 'none' });
- };
- },
- commentList_init: function commentList_init() {var _this4 = this; //回复列表
- uni.showLoading({
- title: '加载中' });
- this.$req(this.$api.auditcommentList, 'get', {
- submit_id: this.apply_id,
- page: 1,
- page_size: 500 },
- function (res) {
- if (res && res.errno == 0) {
- _this4.commentList = res.rst.data;
- } else if (res.errno != 4002) {
- uni.showToast({
- title: res.err,
- icon: 'none' });
- }
- uni.hideLoading();
- }), function (err) {
- uni.showToast({
- title: err,
- icon: 'none' });
- uni.hideLoading();
- };
- },
- replyClick: function replyClick() {var _this5 = this; //点击回复
- if (this.remarks_audit == '') {
- uni.showToast({
- title: '回复内容必填',
- icon: 'none' });
- return false;
- }
- uni.showLoading({
- title: '加载中' });
- var filesNow = [];
- this.uploadFileList.forEach(function (item) {
- filesNow.push(item.url);
- }); //格式化文件
- this.$req(this.$api.auditcomment_add, 'post', {
- submit_id: this.apply_id,
- comment: this.remarks_audit,
- file_url: filesNow },
- function (res) {
- if (res && res.errno == 0) {
- _this5.commentList_init();
- _this5.remarks_audit = ' ';
- _this5.uploadFileList = [];
- } else if (res.errno != 4002) {
- uni.showToast({
- title: res.err,
- icon: 'none' });
- }
- uni.hideLoading();
- }), function (err) {
- uni.showToast({
- title: err,
- icon: 'none' });
- uni.hideLoading();
- };
- },
- editClick: function editClick(item, type, isEdit) {
- //type 1其他报销 0直播报销
- if (type == 1) {
- uni.navigateTo({
- url: '../addExpenseFormElse/addExpenseForm?item=' + encodeURIComponent(JSON.stringify(item)) + '&isEdit=' + isEdit + '&page=submitApply' });
- } else {
- // isEdit是否可编辑,0新增,1可编辑,2仅查看
- uni.navigateTo({
- url: '../addExpenseForm/addExpenseForm?item=' + encodeURIComponent(JSON.stringify(item)) + '&isEdit=' + isEdit + '&page=submitApply' });
- }
- },
- checkCheckbox: function checkCheckbox(e) {//核对
- var id = e.currentTarget.dataset.id;
- if (this.checkList.indexOf(id) != -1) {
- this.checkList = this.checkList.filter(function (v) {
- return v != id;
- });
- } else {
- this.checkList.push(id);
- }
- },
- getReimburseApplyList: function getReimburseApplyList() {var _this6 = this;
- uni.showLoading({
- title: '加载中' });
- this.$req(this.$api.reimburseApplyList, 'get', {},
- function (res) {
- uni.hideLoading();
- _this6.table_loading = false;
- if (res && res.errno == 0) {
- _this6.reimburse_info = res.rst.reimburse_info;
- _this6.examine_info = res.rst.examine_info;
- var arr = res.rst.data_list;
- _this6.data_list = [];
- arr.forEach(function (item, index) {
- item.list.forEach(function (item_list) {
- item_list.ischeck = false;
- });
- if (item.type == 2) {
- _this6.data_list = _this6.data_list.concat(item.list);
- } else {
- _this6.data_list.push(item);
- }
- });
- _this6.data_list.forEach(function (item, index) {
- item.self_id = index;
- });
- } else if (res.errno != 4002) {
- uni.showToast({
- title: res.err,
- icon: 'none' });
- }
- }), function (err) {
- _this6.table_loading = false;
- uni.hideLoading();
- };
- },
- handleSelectionChange: function handleSelectionChange(type) {var _this7 = this; //选择
- if (type == 'all') {
- this.allSelection = !this.allSelection;
- if (this.allSelection) {
- this.multipleSelection = this.data_list;
- } else {
- this.multipleSelection = [];
- }
- } else {
- var arr = this.multipleSelection.filter(function (v) {
- return v.self_id == _this7.data_list[type].self_id;
- });
- if (arr.length == 0) {
- this.multipleSelection.push(this.data_list[type]);
- } else {
- this.multipleSelection = this.multipleSelection.filter(function (v) {
- return v.self_id != _this7.data_list[type].self_id;
- });
- }
- }
- this.multipleIdArr = this.multipleSelection.map(function (v) {
- return v.self_id;
- });
- this.amount = 0;
- if (this.multipleSelection && this.multipleSelection.length != 0) {
- this.multipleSelection.forEach(function (item) {
- if (item.type == 2) {
- _this7.amount = parseFloat((_this7.amount + Number(item.amount) + Number(item.toll_fee)).
- toFixed(10));
- } else {
- item.list.forEach(function (item1) {
- _this7.amount = parseFloat((_this7.amount + Number(item1.amount) + Number(item1.
- toll_fee)).toFixed(10));
- });
- }
- });
- }
- },
- removeFile: function removeFile(index) {var _this8 = this; //删除文件
- uni.showModal({
- title: '提示',
- content: '确定要删除该文件?',
- confirmText: '确定',
- success: function success(res) {
- if (res.confirm) {
- _this8.file_urls.splice(index, 1);
- } else if (res.cancel) {}
- } });
- },
- uploadFileEvent: function uploadFileEvent() {
- var _this = this;
- wx.chooseImage({
- success: function success(res) {
- var tempFilePaths = res.tempFilePaths;
- uni.showLoading({
- title: '加载中' });
- wx.uploadFile({
- url: _this.$rootDocment + _this.$api.manage_fileUpload,
- filePath: tempFilePaths[0],
- name: 'file',
- header: {
- 'sessionKey': uni.getStorageSync('session_key') ? uni.getStorageSync(
- 'session_key') : false },
- formData: {
- 'admin_id': uni.getStorageSync('admin_id'),
- 'ttl': uni.getStorageSync('ttl'),
- 'sign': uni.getStorageSync('sign') },
- success: function success(res) {
- uni.hideLoading();
- var data = res.data;
- _this.file_urls.push(JSON.parse(data).rst.url);
- },
- fail: function fail(err) {
- uni.hideLoading();
- console.log(err, 'err');
- } });
- } });
- },
- examineOperate: function examineOperate(status) {var _this9 = this; //审核报销单
- if (status == 2 && this.remarks_audit == '') {
- uni.showToast({
- title: '不通过时,备注为必填项',
- icon: 'none' });
- return false;
- } else {
- uni.showLoading({
- title: '加载中' });
- var filesNow = [];
- this.uploadFileList.forEach(function (item) {
- filesNow.push(item.url);
- }); //格式化文件
- this.$req(this.$api.audit_operate, 'post', {
- process_id: this.p_id,
- status: status,
- remarks: this.remarks_audit,
- file_url: filesNow },
- function (res) {
- uni.hideLoading();
- if (res && res.errno == 0) {
- _this9.goBack(status == 1 ? 2 : 3);
- } else if (res.errno != 4002) {
- uni.showToast({
- title: res.err,
- icon: 'none' });
- }
- }), function (err) {
- uni.hideLoading();
- };
- }
- },
- delReimbSubmit: function delReimbSubmit() {var _this10 = this; //作废报销单
- uni.showModal({
- title: '提示',
- content: '确定要作废此报销单?',
- confirmText: '确定',
- success: function success(res) {
- if (res.confirm) {
- uni.showLoading({
- title: '加载中' });
- _this10.$req(_this10.$api.delReimbSubmit, 'post', {
- id: _this10.apply_id },
- function (res) {
- uni.hideLoading();
- if (res && res.errno == 0) {
- _this10.goBack(0, 'resubmited');
- } else if (res.errno != 4002) {
- uni.showToast({
- title: res.err,
- icon: 'none' });
- }
- }), function (err) {
- uni.hideLoading();
- };
- } else if (res.cancel) {}
- } });
- },
- addSubmit: function addSubmit(status) {var _this11 = this; //提审或保存
- if (!this.multipleSelection || this.multipleSelection.length == 0) {
- uni.showToast({
- title: '请选择您要报销的明细',
- icon: 'none' });
- return;
- }
- var rei_ids = []; //直播报销id数组
- var detail_ids = []; //其他报销明细id数组
- this.multipleSelection.forEach(function (item) {
- if (item.type == 2) {//普通加班
- detail_ids.push(item.id);
- } else if (item.list && item.list.length > 0) {
- rei_ids.push(item.list[0].rei_id);
- }
- });
- if (!this.file_urls || this.file_urls.length == 0) {
- uni.showToast({
- title: '请上传附件',
- icon: 'none' });
- return;
- }
- uni.showLoading({
- title: '加载中' });
- var params = {
- rei_ids: rei_ids,
- detail_ids: detail_ids,
- note: '加班打车', //报销摘要,暂时写死,怕以后回加别的
- remark: this.remarks,
- amount: this.amount,
- file_urls: this.file_urls,
- submit: status };
- var axios_api = this.$api.addReimbSubmit;
- if (this.apply_id) {
- axios_api = this.$api.editReimbSubmit;
- params.id = this.apply_id;
- }
- this.$req(axios_api, 'post', params, function (res) {
- uni.hideLoading();
- if (res && res.errno == 0) {
- if (status == 1 && _this11.reimburse_info.status == 3) {
- _this11.goBack(-9); //驳回重新提审,新增订单
- } else {
- if (_this11.apply_id) {//编辑
- _this11.goBack(status);
- } else {//新增
- _this11.goBack(-9);
- }
- }
- } else if (res.errno != 4002) {
- uni.showToast({
- title: res.err,
- icon: 'none' });
- }
- }), function (err) {
- uni.hideLoading();
- };
- },
- printDOM: function printDOM() {//导出
- uni.showModal({
- title: '提示',
- content: '导出报销详情,请使用手机自带的长截图!',
- showCancel: false,
- confirmText: '我知道了',
- success: function success(res) {
- if (res.confirm) {} else if (res.cancel) {}
- } });
- },
- textareaBlur: function textareaBlur(e) {
- this.remarks = e.detail.value;
- },
- reimburseDetailList: function reimburseDetailList() {var _this12 = this; //报销单详情
- uni.showLoading({
- title: '加载中' });
- this.$req(this.$api.reimburseDetailList, 'get', {
- id: this.apply_id },
- function (res) {
- uni.hideLoading();
- _this12.table_loading = false;
- if (res && res.errno == 0) {
- _this12.reimburse_info = res.rst.reimburse_info;
- _this12.examine_info = res.rst.examine_info;
- if (uni.getStorageSync('userInfo').info.id == _this12.reimburse_info.staff_id) {
- _this12.selfFlag = true;
- } else {
- _this12.selfFlag = false;
- }
- var arr = res.rst.data_list;
- _this12.data_list = [];
- arr.forEach(function (item, index) {
- item.list.forEach(function (item_list) {
- item_list.ischeck = false;
- });
- if (item.type == 2) {
- _this12.data_list = _this12.data_list.concat(item.list);
- } else {
- _this12.data_list.push(item);
- }
- });
- _this12.amount = _this12.reimburse_info.amount;
- _this12.remarks = _this12.reimburse_info.remark;
- // 附件
- if (_this12.reimburse_info.file_urls && _this12.reimburse_info.file_urls.length > 0) {
- _this12.file_urls = _this12.reimburse_info.file_urls;
- }
- //是否可编辑 expenseOverview:报销概览 audit:审核列表
- if (_this12.source != 'expenseOverview' && !_this12.p_id && _this12.source != 'audit' && (!_this12.
- apply_id || _this12.apply_id == '' || _this12.reimburse_info && (_this12.reimburse_info.
- status == 0 || _this12.reimburse_info.
- status == 3))) {//可编辑
- if (_this12.selfFlag) {//是否是本人
- _this12.editFlag = true;
- } else {
- _this12.editFlag = false;
- }
- } else {
- _this12.editFlag = false;
- }
- if (_this12.source != 'expenseOverview' && !_this12.p_id && _this12.source != 'audit' && _this12.
- apply_id && _this12.reimburse_info && _this12.reimburse_info.status == 3 && _this12.
- reimburse_info.is_resubmited != 1) {//是否为驳回状态,且不是审核人员
- _this12.failFlag = true;
- } else {
- _this12.failFlag = false;
- }
- _this12.allSelection = false;
- _this12.handleSelectionChange('all');
- //明细显示回显
- var echo_arr = [];
- _this12.data_list.forEach(function (item, index) {
- item.self_id = index;
- if (item.is_selected == 1) {
- echo_arr.push(item);
- }
- });
- _this12.multipleSelection = echo_arr;
- _this12.multipleIdArr = _this12.multipleSelection.map(function (v) {
- return v.self_id;
- });
- } else if (res.errno != 4002) {
- uni.showToast({
- title: res.err,
- icon: 'none' });
- }
- }), function (err) {
- _this12.table_loading = false;
- uni.hideLoading();
- };
- },
- openFile: function openFile(index, type1, fileurl) {
- var url = '';
- if (type1 == 'file_urls') {
- url = this.file_urls[index];
- } else if (type1 == 'uploadFileList') {
- if (fileurl) {
- url = fileurl;
- } else {
- uni.showToast({
- title: '链接找不到',
- icon: 'none' });
- }
- } else {
- url = this.reimburse_info.file_submits[index];
- }
- url = url.replace(/live-data-center.oss-cn-beijing.aliyuncs.com/, this.$rootDocment.split('/')[this.$rootDocment.split('/').length - 1] + '/oss');
- url = url.replace('http://', 'https://');
- if (url[0] == '/') {
- url = 'https:' + url;
- }
- var name = url.split('/')[url.split('/').length - 1];
- var type = name.split(".")[name.split(".").length - 1];
- var image = ["JPG", "JPEG", "PNG"];
- var file = ["DOC", "XLS", "PPT", "PDF", "DOCX", "XLSX", "PPTX"];
- var urls = [];
- urls.push(url);
- // 如果文件是图片类型
- if (image.indexOf(type.toLocaleUpperCase()) > -1) {
- uni.previewImage({
- urls: urls,
- success: function success() {},
- fail: function fail(e) {
- console.log(e);
- showModalWithText('预览文件失败');
- } });
- }
- // 如果文件是DOC/XLS/PPT/PDF/DOCX/XLSX/PPTX类型
- else if (file.indexOf(type.toLocaleUpperCase()) > -1) {
- uni.showLoading({
- title: '加载中' });
- // 小程序配置的合法域名为https协议
- if (url.indexOf("http") > -1 && url.indexOf("https") === -1) {
- url = url.replace("http", "https");
- }
- uni.downloadFile({
- url: url,
- success: function success(res) {
- uni.hideLoading();
- var filePath = res.tempFilePath;
- uni.openDocument({
- filePath: filePath,
- fileType: type.toLocaleLowerCase(),
- success: function success(res) {
- console.log('打开文档成功');
- // 提示:预览文件失败
- },
- fail: function fail(e) {
- uni.hideLoading();
- console.log(e);
- // 提示:预览文件失败
- uni.showToast({
- title: '预览文件失败',
- icon: 'none' });
- } });
- },
- fail: function fail(err) {
- // 提示:预览文件失败
- uni.showToast({
- title: '预览文件失败',
- icon: 'none' });
- } });
- } else {
- // 提示:此类型文件暂不支持预览
- uni.showToast({
- title: '此类型文件暂不支持预览',
- icon: 'none' });
- }
- },
- goBack: function goBack(status, is_resubmited) {
- var pages = getCurrentPages(); // 当前页面
- var beforePage = pages[pages.length - 2]; // 上一页
- uni.navigateBack({
- success: function success() {
- beforePage.onLoad({ page: 'previousPage', previousPageStatus: status, is_resubmited: is_resubmited }); // 执行上一页的onLoad方法
- } });
- } } };exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
- /***/ }),
- /***/ 110:
- /*!***********************************************************************************************************************************!*\
- !*** C:/projectCode/dataUniapp/pages/reimbursementList/submitApply.vue?vue&type=style&index=0&id=783b5b74&scoped=true&lang=scss& ***!
- \***********************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_style_index_0_id_783b5b74_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../Program Files/hbuildx/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./submitApply.vue?vue&type=style&index=0&id=783b5b74&scoped=true&lang=scss& */ 111);
- /* harmony import */ var _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_style_index_0_id_783b5b74_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_style_index_0_id_783b5b74_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_style_index_0_id_783b5b74_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_style_index_0_id_783b5b74_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_hbuildx_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_submitApply_vue_vue_type_style_index_0_id_783b5b74_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /***/ 111:
- /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./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:/projectCode/dataUniapp/pages/reimbursementList/submitApply.vue?vue&type=style&index=0&id=783b5b74&scoped=true&lang=scss& ***!
- \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- if(false) { var cssReload; }
-
- /***/ })
- },[[104,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/reimbursementList/submitApply.js.map
|