1 line
11 KiB
Plaintext
1 line
11 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/Lee/工地打卡小程序/building-sign/pagesB/notick/notick.vue?e615","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesB/notick/notick.vue?ac71","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesB/notick/notick.vue?922c","uni-app:///pagesB/notick/notick.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","tabbar","data","statusHeight","userType","radioList","radioIndex","centerDetail","reasonMsg","ifReason","id","onLoad","onShow","onShareAppMessage","title","path","imageUrl","methods","changeNotickStatus","getEnterDetail","console","submitEv","type","reason","submitApi","uni","url","closeReason"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,eAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAA+H;AAC/H;AAC0D;AACL;;;AAGrD;AACgL;AAChL,gBAAgB,uLAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,6FAAM;AACR,EAAE,sGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,iGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,oMAEN;AACP,KAAK;AACL;AACA,aAAa,kOAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC3CA;AAAA;AAAA;AAAA;AAAoqB,CAAgB,kqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;eCiCxrB;EACAC;IACAC;EACA;EACAC;IACA;MACAC;MAAA;MACAC;MAAA;MACAC;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;IACA;EACA;EACAC;IACA;MACA;IACA;EACA;EACAC;IACA;IACA;EACA;EACAC;IACA;MACAC;MACAC;MACAC;IACA;IACA;IACA;EACA;EACAC;IACA;IACAC;MACA;QACA;MACA;IACA;IAEA;IACAC;MAAA;MACA;QAAAT;MAAA;QACA;UACAU;UACA;QACA;MACA;IACA;IAEA;IACAC;MACA;QACA;UACAX;UACAY;UACAC;QACA;QACA;QACA;MACA;QACA;UACAb;UACAY;QACA;QACA;QACA;MACA;IACA;IAEA;IACAE;MAAA;MACAJ;MACA;QACA;UACA;YACA;UACA;YACA;UACA;UACAK;YACAC;UACA;QACA;UACA;QACA;MACA;IACA;IAEA;IACAC;MACA;MACA;IACA;EACA;AACA;AAAA,2B","file":"pagesB/notick/notick.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesB/notick/notick.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./notick.vue?vue&type=template&id=49e4bd28&scoped=true&\"\nvar renderjs\nimport script from \"./notick.vue?vue&type=script&lang=js&\"\nexport * from \"./notick.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"49e4bd28\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesB/notick/notick.vue\"\nexport default component.exports","export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./notick.vue?vue&type=template&id=49e4bd28&scoped=true&\"","var components\ntry {\n components = {\n statusNav: function () {\n return import(\n /* webpackChunkName: \"components/status-nav/status-nav\" */ \"@/components/status-nav/status-nav.vue\"\n )\n },\n tabbar: function () {\n return import(\n /* webpackChunkName: \"components/tabbar/tabbar\" */ \"@/components/tabbar/tabbar.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n _vm.ifReason = true\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./notick.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./notick.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"pad-x120\">\n\t\t<!-- 头部 -->\n\t\t<status-nav navBarTitle=\"公告管理\"></status-nav>\n\t\t<view class=\"content\" :style=\"{'padding-top':statusHeight+50+'px'}\">\r\n\t\t\t<view class=\"notick-status\">\r\n\t\t\t\t<view class=\"radio-item\" @tap=\"changeNotickStatus(index)\" v-for=\"(item,index) in radioList\" :key=\"index\">\r\n\t\t\t\t\t<view :class=\"radioIndex==index?'checked':''\"></view>\r\n\t\t\t\t\t<view>{{item}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\n\t\t\t<!-- 审核按钮 -->\n\t\t\t<view class=\"enter-detail-btns color-white font30\" v-if=\"centerDetail.status==0\">\n\t\t\t\t<view class=\"btn\" @tap=\"submitEv(1)\">确认</view>\n\t\t\t\t<view class=\"btn\" @tap=\"ifReason=true\">退回</view>\n\t\t\t</view>\n\t\t</view>\r\n\t\t<!-- 退回理由 -->\r\n\t\t<view class=\"pop-up-bg\" v-if=\"ifReason\">\r\n\t\t\t<view class=\"edit-box bg-white\">\r\n\t\t\t\t<image class=\"close-btn\" src=\"/static/icon/icon-close-btn.png\" mode=\"aspectFit\" @tap=\"closeReason\"></image>\r\n\t\t\t\t<view class=\"title font36\">退回理由</view>\r\n\t\t\t\t<!-- 其他显示 -->\r\n\t\t\t\t<input class=\"input font26\" type=\"text\" v-model=\"reasonMsg\" placeholder=\"请输入退回理由\" placeholder-style=\"color:rgba(51,51,51,.4)\">\r\n\t\t\t\t<view class=\"submit-btn font30 color-white\" @tap=\"submitEv(0)\">确认</view>\r\n\t\t\t</view>\r\n\t\t</view>\n\t\t<!-- 尾部 -->\n\t\t<tabbar :userType=\"userType\" current=\"4\"></tabbar>\n\t</view>\n</template>\n<script>\n\timport tabbar from '@/components/tabbar/tabbar';\n\texport default {\n\t\tcomponents:{\n\t\t\ttabbar\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tstatusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度\n\t\t\t\tuserType:'director', //账户类型 工人:worker 负责人:director\r\n\t\t\t\tradioList:['开启','禁用'],\r\n\t\t\t\tradioIndex:0, //当前选择\n\t\t\t\tcenterDetail:{}, //工人信息\r\n\t\t\t\treasonMsg:'', //退回理由\r\n\t\t\t\tifReason:false, //是否退回\n\t\t\t\tid:0, //工人id\n\t\t\t}\n\t\t},\n\t\tonLoad(op) {\n\t\t\tif(op.id){\n\t\t\t\tthis.id = op.id;\n\t\t\t}\n\t\t},\n\t\tonShow() {\n\t\t\t// 获取工人信息\n\t\t\tthis.getEnterDetail();\n\t\t},\r\n\t\tonShareAppMessage(res) {\r\n\t\t\tlet shareObj = {\r\n\t\t\t\ttitle:'工地打卡',\r\n\t\t\t\tpath: '/pages/pagehome/pagehome',\r\n\t\t\t\timageUrl:'/static/share-logo.jpg',\r\n\t\t\t}\r\n\t\t\t// 返回shareObj\r\n\t\t\treturn shareObj;\r\n\t\t},\n\t\tmethods: {\r\n\t\t\t// 改变公告开启状态\r\n\t\t\tchangeNotickStatus(index){\r\n\t\t\t\tif(this.radioIndex !== index){\r\n\t\t\t\t\tthis.radioIndex = index;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\n\t\t\t// 获取工人信息\n\t\t\tgetEnterDetail(){\n\t\t\t\tthis.$requst.post('/api/v1/manager/check-detail',{id:this.id}).then(res=>{\n\t\t\t\t\tif(res.code == 0){\n\t\t\t\t\t\tconsole.log(res,'工人信息');\n\t\t\t\t\t\tthis.centerDetail = res.data;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t\n\t\t\t// 确认&退回\n\t\t\tsubmitEv(type){\r\n\t\t\t\tif(type==0){\r\n\t\t\t\t\tlet params = {\r\n\t\t\t\t\t\tid:this.id,\r\n\t\t\t\t\t\ttype:type,\r\n\t\t\t\t\t\treason:this.reasonMsg\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// 提交\r\n\t\t\t\t\tthis.submitApi(params,type);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tlet params = {\r\n\t\t\t\t\t\tid:this.id,\r\n\t\t\t\t\t\ttype:type\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// 提交\r\n\t\t\t\t\tthis.submitApi(params,type);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// 提交\r\n\t\t\tsubmitApi(params,type){\r\n\t\t\t\tconsole.log(params,type,123)\r\n\t\t\t\tthis.$requst.post('/api/v1/manager/check-info',params).then(res=>{\r\n\t\t\t\t\tif(res.code == 0){\r\n\t\t\t\t\t\tif(type==0){\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('已退回');\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('已确认');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\turl:'/pages/director/enter/enter'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tthis.$toolAll.tools.showToast(res.msg);\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// 关闭退回弹窗\r\n\t\t\tcloseReason(){\r\n\t\t\t\tthis.ifReason = false;\r\n\t\t\t\tthis.reasonMsg = '';\r\n\t\t\t}\n\t\t}\n\t}\n</script>\n<style scoped>\n\t\n</style>"],"sourceRoot":""} |