1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesB/repair/repair.vue?b5d6","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesB/repair/repair.vue?055d","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesB/repair/repair.vue?0329","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesB/repair/repair.vue?ae06","uni-app:///pagesB/repair/repair.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,iG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,eAAD,CAAV,C;;;;;;;;;;;;;ACLA;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;AACA;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACgIxrB;AACA;AACA,kBADA,EADA;;AAIA,MAJA,kBAIA;AACA;AACA,2DADA,EACA;AACA,0BAFA,EAEA;AACA,sBAHA,EAGA;AACA,mBAJA,EAIA;AACA,qBALA,EAKA;AACA,WANA,CAMA;AANA;AAQA,GAbA;AAcA,QAdA,kBAcA,EAdA,EAcA;AACA;AACA;AACA;AACA,GAlBA;AAmBA,QAnBA,oBAmBA;AACA;AACA;AACA,GAtBA;AAuBA,mBAvBA,6BAuBA,GAvBA,EAuBA;AACA;AACA,mBADA;AAEA,sCAFA;AAGA,wCAHA;;AAKA;AACA;AACA,GA/BA;AAgCA;AACA;AACA,kBAFA,4BAEA;AACA;AACA;AACA;AACA;AACA;AACA,OALA;AAMA,KATA;;AAWA;AACA,YAZA,oBAYA,IAZA,EAYA;AACA;AACA;AACA,qBADA;AAEA,oBAFA;AAGA,gCAHA;;AAKA;AACA;AACA,OARA,MAQA;AACA;AACA,qBADA;AAEA,oBAFA;;AAIA;AACA;AACA;AACA,KA7BA;;AA+BA;AACA,aAhCA,qBAgCA,MAhCA,EAgCA,IAhCA,EAgCA;AACA;AACA;AACA;AACA;AACA;AACA,WAFA,MAEA;AACA;AACA;AACA;AACA,8CADA;;AAGA,SATA,MASA;AACA;AACA;AACA,OAbA;AAcA,KAhDA;;AAkDA;AACA,eAnDA,yBAmDA;AACA;AACA;AACA,KAtDA,EAhCA,E","file":"pagesB/repair/repair.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesB/repair/repair.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./repair.vue?vue&type=template&id=6ef6be8c&scoped=true&\"\nvar renderjs\nimport script from \"./repair.vue?vue&type=script&lang=js&\"\nexport * from \"./repair.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 \"6ef6be8c\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesB/repair/repair.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!./repair.vue?vue&type=template&id=6ef6be8c&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!./repair.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!./repair.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'}\">\n\t\t\t<!-- 工人信息 -->\n\t\t\t<view class=\"enter-detail font26\">\r\n\t\t\t\t<view class=\"item\">\n\t\t\t\t\t<view class=\"title\">姓名</view>\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.real_name}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.status==0 && centerDetail.real_name!==centerDetail.account.real_name\">\r\n\t\t\t\t\t\t\t{{centerDetail.real_name}}\r\n\t\t\t\t\t\t</text>\r\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"item\">\n\t\t\t\t\t<view class=\"title\">电话</view>\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.mobile}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.status==0 && centerDetail.mobile!==centerDetail.account.mobile\">\r\n\t\t\t\t\t\t\t{{centerDetail.mobile}}\r\n\t\t\t\t\t\t</text>\r\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"item\">\n\t\t\t\t\t<view class=\"title\">身份证</view>\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.card_number}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.status==0 && centerDetail.card_number!==centerDetail.account.card_number\">\r\n\t\t\t\t\t\t\t{{centerDetail.card_number}}\r\n\t\t\t\t\t\t</text>\r\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"item\">\n\t\t\t\t\t<view class=\"title\">紧急联系人</view>\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.emergency_contact}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.status==0 && centerDetail.emergency_contact!==centerDetail.account.emergency_contact\">\r\n\t\t\t\t\t\t\t{{centerDetail.emergency_contact}}\r\n\t\t\t\t\t\t</text>\r\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"item\">\n\t\t\t\t\t<view class=\"title\">联系人电话</view>\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.emergency_phone}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.status==0 && centerDetail.emergency_phone!==centerDetail.account.emergency_phone\">\r\n\t\t\t\t\t\t\t{{centerDetail.emergency_phone}}\r\n\t\t\t\t\t\t</text>\r\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"item\">\n\t\t\t\t\t<view class=\"title\">银行卡户名</view>\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.bank_card_name}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.status==0 && centerDetail.bank_card_name!==centerDetail.account.bank_card_name\">\r\n\t\t\t\t\t\t\t{{centerDetail.bank_card_name}}\r\n\t\t\t\t\t\t</text>\r\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"item\">\n\t\t\t\t\t<view class=\"title\">银行卡号</view>\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.bank_card_number}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.status==0 && centerDetail.bank_card_number!==centerDetail.account.bank_card_number\">\r\n\t\t\t\t\t\t\t{{centerDetail.bank_card_number}}\r\n\t\t\t\t\t\t</text>\r\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"item\">\n\t\t\t\t\t<view class=\"title\">开户行</view>\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.bank_name}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.status==0 && centerDetail.bank_name!==centerDetail.account.bank_name\">\r\n\t\t\t\t\t\t\t{{centerDetail.bank_name}}\r\n\t\t\t\t\t\t</text>\r\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"item\">\n\t\t\t\t\t<view class=\"title\">技术岗位</view>\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.position_name}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.status==0 && centerDetail.position_name!==centerDetail.account.position_name\">\r\n\t\t\t\t\t\t\t{{centerDetail.position_name}}\r\n\t\t\t\t\t\t</text>\r\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"item\">\n\t\t\t\t\t<view class=\"title\">工资</view>\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.pay}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.status==0 && centerDetail.pay!==centerDetail.account.pay\">\r\n\t\t\t\t\t\t\t{{centerDetail.pay}}\r\n\t\t\t\t\t\t</text>元\r\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"item\">\n\t\t\t\t\t<view class=\"title\">加入时间</view>\n\t\t\t\t\t<view class=\"msg font24\">{{centerDetail.created_at}}</view>\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item\" v-if=\"centerDetail.status==-1\">\r\n\t\t\t\t\t<view class=\"title\">审核状态</view>\r\n\t\t\t\t\t<view class=\"msg font24 color-red\">已退回</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=\"2\"></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\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: {\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":""} |