|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-newEnroll-enrollJob-index"],{"1ca7":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",[a("v-uni-form",{on:{submit:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t),e.beforeFormSubmit.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"mt10",staticStyle:{"padding-bottom":"120px"}},[a("v-uni-view",{staticClass:"weui-cells__group weui-cells__group_form mt10"},[a("v-uni-view",{staticClass:"weui-cells weui-cells_form"},[e.searchListShow?a("v-uni-view",{staticClass:"weui-cells searchbar-result"},e._l(e.storeArray,(function(t,i){return a("v-uni-view",{key:i,staticClass:"weui-cell weui-cell_active weui-cell_access",attrs:{"data-name":t.aliasName,"data-id":t.id},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.setValue.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"weui-cell__bd weui-cell_primary"},[a("v-uni-view",[e._v(e._s(t.aliasName))])],1)],1)})),1):e._e(),a("v-uni-view",{staticClass:"weui-cell"},[a("v-uni-view",{staticClass:"weui-cell__hd"},[a("v-uni-label",{staticClass:"weui-label c6"},[a("v-uni-text",{staticClass:"cfred"},[e._v("*")]),e._v("报名岗位")],1)],1),a("v-uni-view",{staticClass:"weui-cell__bd"},[a("v-uni-view",{staticStyle:{"text-align":"right",color:"#333"},attrs:{"hover-class":"none","hover-stop-propagation":!1,"data-type":"job"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toJobAndAgencySelect.apply(void 0,arguments)}}},[e.jobName?a("v-uni-view",{attrs:{"hover-class":"none","hover-stop-propagation":!1}},[e._v(e._s(e.jobName)),a("i",{staticClass:"iconfont icon-gengduo1 f16 ml4 dib pr c9",staticStyle:{"line-height":"1"}})]):a("v-uni-view",{staticStyle:{"text-align":"right",color:"#ccc"},attrs:{"hover-class":"none","hover-stop-propagation":!1}},[e._v("请选择岗位"),a("i",{staticClass:"iconfont icon-gengduo1 f16 ml4 dib pr c9",staticStyle:{"line-height":"1"}})])],1)],1)],1),a("v-uni-view",{staticClass:"weui-cell"},[a("v-uni-view",{staticClass:"weui-cell__hd"},[a("v-uni-label",{staticClass:"weui-label c6"},[a("v-uni-text",{staticClass:"cfred"},[e._v("*")]),e._v("面试时间")],1)],1),a("v-uni-view",{staticClass:"weui-cell__bd tr"},[a("v-uni-picker",{staticStyle:{color:"#333"},attrs:{mode:"multiSelector",value:e.dateTime,range:e.dateTimeArray},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeDateTime.apply(void 0,arguments)},columnchange:function(t){arguments[0]=t=e.$handleEvent(t),e.changeDateTimeColumn.apply(void 0,arguments)}}},[e._v(e._s(e.currentTime?e.currentTime:"----")),a("i",{staticClass:"iconfont icon-rili f16 ml4 dib pr c9",staticStyle:{"line-height":"1"}})])],1)],1),a("v-uni-view",{staticClass:"weui-cell"},[a("v-uni-view",{staticClass:"weui-cell__hd"},[a("v-uni-label",{staticClass:"weui-label c6"},[e._v("接待时间")])],1),a("v-uni-view",{staticClass:"weui-cell__bd tr"},[a("v-uni-picker",{staticStyle:{color:"#333"},attrs:{mode:"multiSelector",value:e.dateTime2,range:e.dateTimeArray},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeDateTime2.apply(void 0,arguments)},columnchange:function(t){arguments[0]=t=e.$handleEvent(t),e.changeDateTimeColumn2.apply(void 0,arguments)}}},[e._v(e._s(e.currentTime2?e.currentTime2:"----")),a("i",{staticClass:"iconfont icon-rili f16 ml4 dib pr c9",staticStyle:{"line-height":"1"}})])],1)],1),a("v-uni-view",{staticClass:"weui-cell"},[a("v-uni-view",{staticClass:"weui-cell__hd"},[a("v-uni-label",{staticClass:"weui-label c6"},[e._v("政策")])],1),a("v-uni-view",{staticClass:"weui-cell__bd",staticStyle:{"text-align":"right"}},[a("v-uni-view",{staticStyle:{display:"inline-block","text-align":"left",color:"#333"}},[e._v(e._s(""==e.policy?"-":e.policy))])],1)],1)],1)],1)],1),a("v-uni-view",{staticClass:"btmFix display-flex",staticStyle:{"justify-content":"center"}},[a("v-uni-button",{staticClass:"dtBtnD mr12",attrs:{"data-edit":"2"},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.shrink.apply(void 0,arguments)}}},[e._v("取消")]),a("v-uni-button",{staticClass:"dtBtn ml12",attrs:{type:"primary",loading:e.loading,"hover-class":"button-hover",formType:"submit"}},[e._v("确定")])],1)],1)],1)},o=[]},"3a1c":function(e,t,a){"use strict";var i=a("e79f"),o=a.n(i);o.a},"6aa6":function(e,t,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("d3b7"),a("ac1f"),a("5319");var o=i(a("ade3")),n=a("233b"),r=getApp(),l=a("f786"),s=a("eaac"),c=new Date,d={data:function(){return{showUpload:!0,name:"",loading:!1,idInfo:{},index:-1,agentArray:[],jobArray:[],storeIndex:-1,storeArray:[],dateTimeArray1:null,dateTime1:null,startYear:2022,endYear:2024,currentTime:s.formatDateYMD(c.toLocaleDateString())+" 12:00",currentTime2:s.formatDateYMD(c.toLocaleDateString())+" 12:00",searchListShow:!1,searchKeys:"",searchKeysA:"",inputShowed:!1,inputVal:"",inputShowedA:!1,inputValA:"",storeId:"",agentId:"",agentName:"",storeJobId:"",policy:"",currentImg:"",nationIndex:-1,managerRoleClassify:!1,nationArray:n.nationArray,currentUser:{},jobName:"",switch1Checked:!1,dateTimeArray:"",dateTime:"",dateTimeArray2:"",dateTime2:"",imgSrc:"",type:"",userInfo:{nationality:""}}},onLoad:function(e){console.log(e);var t=uni.getStorageSync("storeJobInfo");if(console.log(t),r.globalData.isNotEmptyCheck(t)&&(this.setData({storeJobId:t.id,jobName:t.jobName,agentId:t.agentId,agentName:t.agentName,currentImg:t.currentImg}),this.getPolicyByStoreJobId(this.storeJobId)),this.setData({managerRoleClassify:r.globalData.loginUserInfo.managerRoleClassify}),r.globalData.isNotEmptyCheck(e.info)&&(this.setData({storeJobId:JSON.parse(e.info).id,jobName:JSON.parse(e.info).jobName,inputVal:JSON.parse(e.info).storeName||JSON.parse(e.info).aliasName,storeId:JSON.parse(e.info).storeId}),this.getPolicyByStoreJobId(this.storeJobId)),r.globalData.isNotEmptyCheck(e.agencyInfo)&&this.setData({agentName:JSON.parse(e.agencyInfo).agencyName,agentId:JSON.parse(e.agencyInfo).id}),r.globalData.isNotEmptyCheck(e.imgUrl)){var a=JSON.parse(e.imgUrl);this.uploadIdcardImg(a)}},onReady:function(){},onShow:function(){var e=l.dateTimePicker(this.startYear,this.endYear,this.currentTime);console.log(e.dateTimeArray);for(var t=0;t<e.dateTimeArray[0].length;t++)e.dateTimeArray[0][t]=e.dateTimeArray[0][t]+"年";for(var a=0;a<e.dateTimeArray[1].length;a++)e.dateTimeArray[1][a]=e.dateTimeArray[1][a]+"月";for(var i=0;i<e.dateTimeArray[2].length;i++)e.dateTimeArray[2][i]=e.dateTimeArray[2][i]+"日";this.setData({dateTimeArray:e.dateTimeArray,dateTime:e.dateTime,dateTimeArray2:e.dateTimeArray,dateTime2:e.dateTime})},onHide:function(e){console.log("isHide"),console.log(e)},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},methods:{shrink:function(){uni.navigateBack({delta:-1})},toJobAndAgencySelect:function(e){console.log(e),console.log(this.userInfo),this.setStorage().then((function(){console.log("--------","isIntonavigation"),uni.navigateTo({url:"../../recordChoice/index?type=".concat(e.currentTarget.dataset.type)})}))},showImg:function(){uni.previewImage({current:this.currentImg,urls:[this.currentImg]})},deleteImg:function(){var e=this;uni.showModal({title:"提示",content:"确定要删除图片吗?",confirmColor:"#ff4400",success:function(t){t.confirm?e.setData({imgSrc:"",showUpload:!0}):t.cancel&&console.log("用户点击取消")}})},bothwayBind:function(e){console.log(e);var t="userInfo.".concat(e.currentTarget.dataset.type);this.setData((0,o.default)({},t,e.detail.value))},beforeFormSubmit:function(e){var t=this;console.log(e),t.setData({loading:!0}),setTimeout((function(){t.formSubmit(e)}),1)},setStorage:function(){var e=this;return uni.removeStorageSync("townsManInfoJob"),new Promise((function(t,a){console.log(e.storeJobId);var i={currentTime:e.currentTime,currentTime2:e.currentTime2,storeJobId:e.storeJobId,jobName:e.jobName,agentId:e.agentId,agentName:e.agentName};console.log(i),uni.setStorage({key:"townsManInfoJob",data:i}),console.log(uni.getStorageSync("townsManInfoJob")),t()}))},formSubmit:function(e){var t=this;console.log(e),t.setData({loading:!0}),uni.showLoading({title:"提交中...",mask:!0}),console.log(t.idInfo),new Promise((function(e,a){var i={};i["storeJobId"]=t.storeJobId,i["policy"]=t.policy,i["interviewTime"]=t.currentTime,i["receptionTime"]=t.currentTime2,e(i)})).then((function(e){console.log(e),uni.removeStorageSync("townsManInfoJob"),new Promise((function(e,a){console.log(t.storeJobId);var i={currentTime:t.currentTime,currentTime2:t.currentTime2,storeJobId:t.storeJobId,jobName:t.jobName,agentName:t.agentName,policy:t.policy};console.log(i),uni.setStorage({key:"townsManInfoJob",data:i}),console.log(uni.getStorageSync("townsManInfoJob")),e()})).then((function(){uni.redirectTo({url:"../../newEnroll/index"})})),uni.hideLoading({success:function(e){}})}))},inputTyping:function(e){this.setData({inputVal:e.detail.value}),e.detail.value.length>0?(this.setData({searchListShow:!0}),this.getStoreList(e.detail.value)):this.setData({searchListShow:!1})},getStoreList:function(e){console.log(e);var t=this;t.searchKeys=e,uni.request({url:r.globalData.ip+"/store/getAllStoreAliasName",data:{keys:e},header:r.globalData.headers,method:"GET",success:function(e){console.log(e),200==e.data.status&&t.setData({storeArray:e.data.data})},fail:function(e){}})},setValue:function(e){var t=e.currentTarget.dataset.name,a=e.currentTarget.dataset.id;console.log(a),this.setData({inputVal:t,storeId:a,searchListShow:!1}),this.getJobList(a)},getJobList:function(e){var t=this;return new Promise((function(a,i){uni.request({url:r.globalData.ip+"/store/job/getJobNameByStoreId",data:{storeId:e},header:r.globalData.headers,method:"GET",success:function(e){console.log(e),200==e.data.status&&(t.setData({jobArray:e.data.data}),a())},fail:function(e){}})}))},bindPickerChangeNation:function(e){console.log("picker发送选择改变,携带值为",e.detail.value);var t=this.nationArray[e.detail.value].name;this.setData((0,o.default)({nationIndex:e.detail.value},"userInfo.nationality",t))},getPolicyByStoreJobId:function(e){var t=this;uni.request({url:r.globalData.ip+"/store/job/getPolicyByStoreJobId",data:{storeJobId:e},header:r.globalData.headers,method:"GET",success:function(e){console.log(e),200==e.data.status&&t.setData({policy:e.data.data})},fail:function(e){console.log(e)}})},changeDateTime:function(e){var t=this.dateTimeArray,a=e.detail.value;this.setData({currentTime:t[0][a[0]].replace("年","")+"-"+t[1][a[1]].replace("月","")+"-"+t[2][a[2]].replace("日","")+" "+t[3][a[3]]}),console.log(this.dateTimeArray)},changeDateTimeColumn:function(e){var t=this.dateTime,a=this.dateTimeArray;t[e.detail.column]=e.detail.value,a[2]=l.getMonthDay(a[0][t[0]],a[1][t[1]]);for(var i=0;i<a[2].length;i++)a[2][i]=a[2][i]+"日";this.setData({dateTimeArray:a,dateTime:t})},changeDateTime2:function(e){var t=this.dateTimeArray,a=e.detail.value;this.setData({currentTime2:t[0][a[0]].replace("年","")+"-"+t[1][a[1]].replace("月","")+"-"+t[2][a[2]].replace("日","")+" "+t[3][a[3]]}),console.log(this.dateTimeArray)},changeDateTimeColumn2:function(e){var t=this.dateTime2,a=this.dateTimeArray;t[e.detail.column]=e.detail.value,a[2]=l.getMonthDay(a[0][t[0]],a[1][t[1]]);for(var i=0;i<a[2].length;i++)a[2][i]=a[2][i]+"日";this.setData({dateTimeArray:a,dateTime2:t})},onShareAppMessage1:function(){}}};t.default=d},"7ff5":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,".weui-cells__group_form[data-v-9e366216]{margin-top:0}.weui-cells__group_form .weui-label[data-v-9e366216]{color:rgba(0,0,0,.65)}.weui-input[data-v-9e366216]::-webkit-input-placeholder{color:#ccc}.weui-input[data-v-9e366216]::placeholder{color:#ccc}.weui-cells__group_form .weui-cell[data-v-9e366216]{align-items:center;padding:0 16px!important;min-height:56px;line-height:56px;overflow:hidden}.weui-cells__group_form .weui-cells[data-v-9e366216]:after,\n.weui-cells__group_form .weui-cell[data-v-9e366216]:before,\n.weui-cells__group_form .weui-cells[data-v-9e366216]:before{left:10px;right:10px}.br8[data-v-9e366216]{border-radius:8px}.weui-cells__group_form .weui-cell__hd[data-v-9e366216]{padding-right:0}.weui-cells__group_form .weui-cell.weui-cell_vcode[data-v-9e366216]{padding:11px 10px}.weui-input[data-v-9e366216]{\n /* min-width: 250px; */min-height:22px;height:22px;line-height:22px}.weui-uploader__file[data-v-9e366216],\n.weui-uploader__input-box[data-v-9e366216]{\n /* width: calc((100vw - 105px - 40px) / 3);\n height: calc((100vw - 105px - 40px) / 3); */border-radius:4px;width:76px;height:76px;margin-right:11px}.weui-cells__group_form .weui-vcode-btn[data-v-9e366216]{width:68px;height:26px;background-color:#fff;border-radius:13px;font-size:14px;color:#027aff;text-align:center;padding:0;font-weight:400;line-height:26px}.weui-label.c085[data-v-9e366216]{color:#333\n /* font-weight: 500; */}.weui-cell[data-v-9e366216]{align-items:flex-start}.weui-cells__group_form .weui-cells[data-v-9e366216]:before{border-top:0}.weui-cell.weui-cell_active.weui-cell_access[data-v-9e366216]{padding:12px 10px}uni-button[disabled][data-v-9e366216]:not([type]){background-color:#ddd}.searchbar-result[data-v-9e366216]{position:absolute;z-index:9;width:calc(100% - 20px);max-height:200px;overflow:auto}.weui-cells[data-v-9e366216]:after,\n.weui-cells[data-v-9e366216]:before{height:0;border-top:0;border-bottom:0}.weui-input[data-v-9e366216]{text-align:right}.topViewN[data-v-9e366216]{height:66px;background:#fff4f1;border:1px solid #ff8255;border-radius:6px;display:flex;padding:0 16px;line-height:66px}.weui-cell__bd[data-v-9e366216]{color:#666}.imgSpanIcon[data-v-9e366216]{width:23px;height:18px}.imgSpanIcon1[data-v-9e366216]{width:22px;height:22px;position:absolute;right:-11px;top:-11px}.topImg[data-v-9e366216]{position:absolute;width:100px;height:100px;background:rgba(0,0,0,.48);border-radius:4px}uni-button.newBtn[data-v-9e366216]{width:200px;background-color:var(--color-ysd)}.quickapply[data-v-9e366216]{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:54px;margin-bottom:0;padding:12px 10px 12px 14px;\n /* padding-bottom: 48px; */background-color:#fff;border-radius:6px}.quickapply .upload .t-icon[data-v-9e366216]{width:46px;height:46px;margin-right:10px;background-repeat:no-repeat}.quickapply .upload[data-v-9e366216]{display:flex;align-items:center}.quickapply .info uni-view[data-v-9e366216]:first-child{font-size:17px;font-weight:500;color:#333}.quickapply .info uni-view[data-v-9e366216]:last-child{font-size:14px;color:#ccc}.quickapply .idCardPreview[data-v-9e366216],\n.quickapply .idCardPreview uni-image[data-v-9e366216]{width:28px;height:28px;border-radius:2px}.quickapply .idCardPreview .t-icon[data-v-9e366216]{width:100%;height:100%}.input__placeholder[data-v-9e366216]{color:#ccc}.weui-input[data-v-9e366216]{color:#333}.weui-uploader__input-box[data-v-9e366216]:before{width:2px;height:24px}.weui-uploader__input-box[data-v-9e366216]:after{width:24px;height:2px}.weui-uploader__img[data-v-9e366216]{border-radius:4px}.weui-uploader__file .delImg[data-v-9e366216]{position:absolute;right:-6px;top:-6px;z-index:99}.weui-uploader__bd[data-v-9e366216]{overflow:inherit}.rightPz[data-v-9e366216]{position:relative;width:32px;height:29px;margin-left:10px;background-repeat:no-repeat;background-size:cover}.weui-cell.name[data-v-9e366216]{padding:7px 16px;display:flex;align-items:center;position:relative}.weui-cell.name .idcardImg[data-v-9e366216]{position:absolute;left:70px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:99}.weui-cell.sex[data-v-9e366216]{\n /* padding: 10px 16px; */height:56px}.weui-cell.imgupdata[data-v-9e366216]{justify-content:space-between}.wbv0 .f16.c3.mb8[data-v-9e366216]{display:flex}.over3[data-v-9e366216]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis}.wbv0.weui-dialog__bd[data-v-9e366216]{display:inline;max-height:400px;overflow:auto}.weui-dialog__title[data-v-9e366216]{font-weight:700}.hasHigh[data-v-9e366216]{height:calc(100vh - 210px)}.weui-dialog[data-v-9e366216]{top:calc(50% - 60px)}.heiover[data-v-9e366216]{height:0;overflow:hidden}.remark[data-v-9e366216]{padding:15px 16px;align-items:center}.uploadImgBox[data-v-9e366216]{display:flex;justify-content:start;font-display:row;align-items:center;padding-left:10px;\n /* padding-bottom: 12px; */width:calc(100vw - 40px)}.uploadImgSubBox[data-v-9e366216]{width:60px;height:60px;position:relative;margin-top:16px;margin-right:9px;border-radius:4px\n /* overflow: hidden; */}.uploadImgSubBox uni-image[data-v-9e366216]{\n /* object-fit: contain; */width:60px;height:60px}.uploadImgSubBox .close[data-v-9e366216]{position:absolute;width:18px;height:18px;right:-6px;top:-6px;z-index:99;background-color:#666;color:#fff;font-size:8px;text-align:center;line-height:18px;border-radius:50%}uni-page-body[data-v-9e366216]{font-size:16px}",""]),e.exports=t},c93c:function(e,t,a){"use strict";a.r(t);var i=a("6aa6"),o=a.n(i);for(var n in i)["default"].indexOf(n)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(n);t["default"]=o.a},e79f:function(e,t,a){var i=a("7ff5");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=a("4f06").default;o("aeb1f22c",i,!0,{sourceMap:!1,shadowMode:!1})},f786:function(e,t,a){function i(e){return e<10?"0"+e:""+e}function o(e,t){e=e||0,t=t||1;for(var a=[],o=e;o<=t;o++)a.push(i(o));return a}function n(e,t){console.log(e,t),e=e.replace("年",""),t=t.replace("月",""),console.log(e,t);var a=e%400==0||e%4==0&&e%100!=0,i=null;switch(t){case"01":case"03":case"05":case"07":case"08":case"10":case"12":i=o(1,31);break;case"04":case"06":case"09":case"11":i=o(1,30);break;case"02":i=o(1,a?29:28);break;default:i="月份格式不正确,请重新输入!"}return i}a("14d9"),a("ac1f"),a("5319"),a("d3b7"),a("c975"),e.exports={dateTimePicker:function(e,t,a,r){var l=[];a&&(l=function(e){console.log("获取时间 56"),console.log(e);var t=new Date(e.replace(/\-/g,"/"));console.log(t);var a=i(t.getFullYear()),o=i(t.getMonth()+1),n=i(t.getDate()),r=i(t.getHours()),l=i(t.getMinutes());return i(t.getSeconds()),console.log(a),[a,o,n,r,l]}(a));var s=[],c=[[],[],[],[]],d=e||2020,u=t||2025,p=a?l:function(){var e=new Date,t=i(e.getFullYear()),a=i(e.getMonth()+1),o=i(e.getDate()),n=i(e.getHours()),r=i(e.getMinutes());return i(e.getSeconds()),[t,a,o,n,r]}();return c[0]=o(d,u),c[1]=o(1,12),c[2]=n(p[0],p[1]),console.log(r),"noTime"!=r&&(c[3]=["06:00","06:30","07:00","07:30","08:00","08:30","09:00","09:30","10:00","10:30","11:00","11:30","12:00","12:30","13:00","13:30","14:00","14:30","15:00","15:30","16:00","16:30","17:00","17:30","18:00","18:30","19:00","19:30"]),c.forEach((function(e,t){3!=t?s.push(e.indexOf(p[t])):""!=p[3]?s.push(c[3].indexOf(p[3]+":"+p[4])):s.push(12)})),{dateTimeArray:c,dateTime:s}},getMonthDay:n}},f8e7:function(e,t,a){"use strict";a.r(t);var i=a("1ca7"),o=a("c93c");for(var n in o)["default"].indexOf(n)<0&&function(e){a.d(t,e,(function(){return o[e]}))}(n);a("3a1c");var r=a("f0c5"),l=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"9e366216",null,!1,i["a"],void 0);t["default"]=l.exports}}]); |