1 line
20 KiB
Plaintext
1 line
20 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/wwwroot/building-sign/pagesB/enterDetail/enterDetail.vue?f2b1","webpack:///C:/wwwroot/building-sign/pagesB/enterDetail/enterDetail.vue?e009","webpack:///C:/wwwroot/building-sign/pagesB/enterDetail/enterDetail.vue?3b9a","webpack:///C:/wwwroot/building-sign/pagesB/enterDetail/enterDetail.vue?16a3","uni-app:///pagesB/enterDetail/enterDetail.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","tabbar","data","statusHeight","userType","baseHttps","centerDetail","reasonMsg","ifReason","id","onLoad","onShow","methods","getEnterDetail","console","submitEv","type","reason","submitApi","uni","url","closeReason","previewImageEv","current","urls"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,oBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAoI;AACpI;AAC+D;AACL;;;AAG1D;AAC4K;AAC5K,gBAAgB,sLAAU;AAC1B,EAAE,iFAAM;AACR,EAAE,kGAAM;AACR,EAAE,2GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,sGAAU;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;AAAqpB,CAAgB,kqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;eC0LzqB;EACAC;IACAC;EACA;EACAC;IACA;MACAC;MAAA;MACAC;MAAA;MACAC;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;IACA;EACA;EACAC;IACA;MACA;IACA;IACA;MACA;IACA;IACA;IACA;EACA;EACAC,2BAEA;EACAC;IACA;IACAC;MAAA;MACA;QAAAJ;MAAA;QACA;UACA;UACAK;QACA;MACA;IACA;IAEA;IACAC;MACA;QACA;UACAN;UACAO;UACAC;QACA;QACA;QACA;MACA;QACA;UACAR;UACAO;QACA;QACA;QACA;MACA;IACA;IAEA;IACAE;MAAA;MACA;QACA;UACA;YACA;UACA;YACA;UACA;UACAC;YACAC;UACA;QACA;UACA;QACA;MACA;IACA;IAEA;IACAC;MACA;MACA;IACA;IAEA;IACAC;MACA;MACAH;QACAI;QAAA;QACAC;MACA;IACA;EACA;AACA;AAAA,2B","file":"pagesB/enterDetail/enterDetail.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesB/enterDetail/enterDetail.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./enterDetail.vue?vue&type=template&id=0a1f2b80&scoped=true&\"\nvar renderjs\nimport script from \"./enterDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./enterDetail.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../WEB/Idea/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 \"0a1f2b80\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesB/enterDetail/enterDetail.vue\"\nexport default component.exports","export * from \"-!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./enterDetail.vue?vue&type=template&id=0a1f2b80&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 \"-!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./enterDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./enterDetail.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"pad-x120\">\r\n\t\t<!-- 头部 -->\r\n\t\t<status-nav navBarTitle=\"工人信息\"></status-nav>\r\n\t\t<view class=\"content\" :style=\"{'padding-top':statusHeight+50+'px'}\">\r\n\t\t\t<!-- 工人信息 -->\r\n\t\t\t<view class=\"enter-detail font26\">\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\t<view class=\"item\">\r\n\t\t\t\t\t<view class=\"title\">姓名</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.real_name!==''?centerDetail.account.real_name:centerDetail.real_name}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && 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>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t<view class=\"title\">电话</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.mobile!==''?centerDetail.account.mobile:centerDetail.mobile}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && 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>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t<view class=\"title\">身份证</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.card_number!==''?centerDetail.account.card_number:centerDetail.card_number}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && 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>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item item-other\">\r\n\t\t\t\t\t<view class=\"title\">身份证正面</view>\r\n\t\t\t\t\t<view class=\"msg\">\r\n\t\t\t\t\t\t<image @tap=\"previewImageEv(centerDetail.account.id_front!==''?baseHttps+centerDetail.account.id_front:baseHttps+centerDetail.id_front)\" :src=\"centerDetail.account.id_front!==''?baseHttps+centerDetail.account.id_front:baseHttps+centerDetail.id_front\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t\t<view class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && centerDetail.status==0 && centerDetail.id_front!==centerDetail.account.id_front\">\r\n\t\t\t\t\t\t\t<image @tap=\"previewImageEv(baseHttps+centerDetail.id_front)\" :src=\"baseHttps+centerDetail.id_front\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item item-other\">\r\n\t\t\t\t\t<view class=\"title\">身份证反面</view>\r\n\t\t\t\t\t<view class=\"msg\">\r\n\t\t\t\t\t\t<image @tap=\"previewImageEv(centerDetail.account.id_back!==''?baseHttps+centerDetail.account.id_back:baseHttps+centerDetail.id_back)\" :src=\"centerDetail.account.id_back!==''?baseHttps+centerDetail.account.id_back:baseHttps+centerDetail.id_back\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t\t<view class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && centerDetail.status==0 && centerDetail.id_back!==centerDetail.account.id_back\">\r\n\t\t\t\t\t\t\t<image @tap=\"previewImageEv(baseHttps+centerDetail.id_back)\" :src=\"baseHttps+centerDetail.id_back\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t<view class=\"title\">紧急联系人</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.emergency_contact!==''?centerDetail.account.emergency_contact:centerDetail.emergency_contact}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && 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>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t<view class=\"title\">联系人电话</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.emergency_phone!==''?centerDetail.account.emergency_phone:centerDetail.emergency_phone}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && 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>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t<view class=\"title\">银行卡户名</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.bank_card_name!==''?centerDetail.account.bank_card_name:centerDetail.bank_card_name}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && 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>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t<view class=\"title\">银行卡号</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.bank_card_number!==''?centerDetail.account.bank_card_number:centerDetail.bank_card_number}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && 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>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t<view class=\"title\">开户行</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.bank_name!==''?centerDetail.account.bank_name:centerDetail.bank_name}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && 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>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item item-other\">\r\n\t\t\t\t\t<view class=\"title\">银行卡照片</view>\r\n\t\t\t\t\t<view class=\"msg\">\r\n\t\t\t\t\t\t<image @tap=\"previewImageEv(centerDetail.account.bank_card_img!==''?baseHttps+centerDetail.account.bank_card_img:baseHttps+centerDetail.bank_card_img)\" :src=\"centerDetail.account.bank_card_img!==''?baseHttps+centerDetail.account.bank_card_img:baseHttps+centerDetail.bank_card_img\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t\t<view class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && centerDetail.status==0 && centerDetail.bank_card_img!==centerDetail.account.bank_card_img\">\r\n\t\t\t\t\t\t\t<image @tap=\"previewImageEv(baseHttps+centerDetail.bank_card_img)\" :src=\"baseHttps+centerDetail.bank_card_img\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t<view class=\"title\">技术岗位</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.position_name!==''?centerDetail.account.position_name:centerDetail.position_name}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && 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>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t<view class=\"title\">班组</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.outsource_name!==''?centerDetail.account.outsource_name:centerDetail.outsource_name}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && centerDetail.status==0 && centerDetail.outsource_name!==centerDetail.account.outsource_name\">\r\n\t\t\t\t\t\t\t{{centerDetail.outsource_name}}\r\n\t\t\t\t\t\t</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view class=\"item\" v-if=\"centerDetail.certificate!==''\">\r\n\t\t\t\t\t<view class=\"title\">证书名称</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.certificate}}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t<view class=\"title\">工资</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.pay!==''?centerDetail.account.pay:centerDetail.pay}}\r\n\t\t\t\t\t\t<text class=\"director-arrow\" v-if=\"centerDetail.is_register!==1 && 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>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item item-other\">\r\n\t\t\t\t\t<view class=\"title\">工作经验</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.work_experience}}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t<view class=\"title\">现住地址</view>\r\n\t\t\t\t\t<view class=\"msg font24\">\r\n\t\t\t\t\t\t{{centerDetail.account.province+centerDetail.account.city+centerDetail.account.area+centerDetail.account.address_now}}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t<view class=\"title\">加入时间</view>\r\n\t\t\t\t\t<view class=\"msg font24\">{{centerDetail.created_at}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 审核按钮 -->\r\n\t\t\t<view class=\"enter-detail-btns color-white font30\" v-if=\"centerDetail.status==0\">\r\n\t\t\t\t<view class=\"btn\" @tap=\"submitEv(1)\">确认</view>\r\n\t\t\t\t<view class=\"btn\" @tap=\"ifReason=true\">退回</view>\r\n\t\t\t</view>\r\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>\r\n\t\t<!-- 尾部 -->\r\n\t\t<tabbar :userType=\"userType\" current=\"2\"></tabbar>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport tabbar from '@/components/tabbar/tabbar';\r\n\texport default {\r\n\t\tcomponents:{\r\n\t\t\ttabbar\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tstatusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度\r\n\t\t\t\tuserType:'director', //账户类型 工人:worker 负责人:director\r\n\t\t\t\tbaseHttps:`${getApp().globalData.hostapi}`,\r\n\t\t\t\tcenterDetail:{}, //工人信息\r\n\t\t\t\treasonMsg:'', //退回理由\r\n\t\t\t\tifReason:false, //是否退回\r\n\t\t\t\tid:0, //工人id\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(op) {\r\n\t\t\tif(op.id){\r\n\t\t\t\tthis.id = op.id;\r\n\t\t\t}\r\n\t\t\tif(op.userType){\r\n\t\t\t\tthis.userType = op.userType;\r\n\t\t\t}\r\n\t\t\t// 获取工人信息\r\n\t\t\tthis.getEnterDetail();\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\t\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 获取工人信息\r\n\t\t\tgetEnterDetail(){\r\n\t\t\t\tthis.$requst.post('/api/v1/manager/check-detail',{id:this.id}).then(res=>{\r\n\t\t\t\t\tif(res.code == 0){\r\n\t\t\t\t\t\tthis.centerDetail = res.data;\r\n\t\t\t\t\t\tconsole.log(res,'工人信息',this.centerDetail);\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\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\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},\r\n\t\t\t\r\n\t\t\t// 图片预览\r\n\t\t\tpreviewImageEv(url) {\r\n\t\t\t\t//uniapp预览轮播图\r\n\t\t\t\tuni.previewImage({\r\n\t\t\t\t\tcurrent: 0, //预览图片的下标\r\n\t\t\t\t\turls: [url] //预览图片的地址,必须要数组形式,如果不是数组形式就转换成数组形式就可以\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n<style scoped>\r\n\t\r\n</style>"],"sourceRoot":""} |