1 line
34 KiB
JavaScript
1 line
34 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e9950686"],{"0592":function(e,t,n){},2793:function(e,t,n){"use strict";n("0592")},3511:function(e,t,n){"use strict";n("e6d5")},"4fcf":function(e,t,n){"use strict";var i=n("906c"),a=n("a18c"),r=function(e,t){a["a"].push({path:"/record/detail",query:{id:e,num:t}})},s=function(){a["a"].push({path:"/"})},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;a["a"].go(e)},c=function(){a["a"].push({path:"/record/successful"})},u=function(){a["a"].push({path:"/record/succeed"})},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"phone",n={source:t};i["a"].isEmpty(e)||(n.recordId=e),a["a"].push({path:"/record/apply",query:n})},d=function(e){i["a"].isEmpty(e)?s():r(e)},f={login:function(){a["a"].push({path:"/visitor/login"})},record:function(){a["a"].push({path:"/visitor/record"})},result:function(e){a["a"].push({path:"/visitor/result",query:{id:e}})}};t["a"]={Visitor:f,goDetail:r,goHome:s,goBack:o,goRecordSuccessful:c,goRecordSucceed:u,goRecordApply:l,homeDetail:d}},"5a0c":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e=1e3,t=6e4,n=36e5,i="millisecond",a="second",r="minute",s="hour",o="day",c="week",u="month",l="quarter",d="year",f="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},v={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+y(i,2,"0")+":"+y(a,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),a=t.clone().add(i,u),r=n-a<0,s=t.clone().add(i+(r?-1:1),u);return+(-(i+(n-a)/(r?a-s:s-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:d,w:c,d:o,D:f,h:s,m:r,s:a,ms:i,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=g;var x=function(e){return e instanceof $},O=function(e,t,n){var i;if(!e)return b;if("string"==typeof e)w[e]&&(i=e),t&&(w[e]=t,i=e);else{var a=e.name;w[a]=e,i=a}return!n&&i&&(b=i),i||!n&&b},S=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new $(n)},D=v;D.l=O,D.i=x,D.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var $=function(){function g(e){this.$L=O(e.locale,null,!0),this.parse(e)}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(D.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(p);if(i){var a=i[2]-1||0,r=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return D},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return S(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<S(e)},y.$g=function(e,t,n){return D.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,i=!!D.u(t)||t,l=D.p(e),h=function(e,t){var a=D.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return i?a:a.endOf(o)},p=function(e,t){return D.w(n.toDate()[e].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(l){case d:return i?h(1,0):h(31,11);case u:return i?h(1,g):h(0,g+1);case c:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return h(i?y-w:y+(6-w),g);case o:case f:return p(v+"Hours",0);case s:return p(v+"Minutes",1);case r:return p(v+"Seconds",2);case a:return p(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var n,c=D.p(e),l="set"+(this.$u?"UTC":""),h=(n={},n[o]=l+"Date",n[f]=l+"Date",n[u]=l+"Month",n[d]=l+"FullYear",n[s]=l+"Hours",n[r]=l+"Minutes",n[a]=l+"Seconds",n[i]=l+"Milliseconds",n)[c],p=c===o?this.$D+(t-this.$W):t;if(c===u||c===d){var m=this.clone().set(f,1);m.$d[h](p),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[D.p(e)]()},y.add=function(i,l){var f,h=this;i=Number(i);var p=D.p(l),m=function(e){var t=S(h);return D.w(t.date(t.date()+Math.round(e*i)),h)};if(p===u)return this.set(u,this.$M+i);if(p===d)return this.set(d,this.$y+i);if(p===o)return m(1);if(p===c)return m(7);var g=(f={},f[r]=t,f[s]=n,f[a]=e,f)[p]||1,y=this.$d.getTime()+i*g;return D.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var i=e||"YYYY-MM-DDTHH:mm:ssZ",a=D.z(this),r=this.$H,s=this.$m,o=this.$M,c=n.weekdays,u=n.months,l=function(e,n,a,r){return e&&(e[n]||e(t,i))||a[n].substr(0,r)},d=function(e){return D.s(r%12||12,e,"0")},f=n.meridiem||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:D.s(o+1,2,"0"),MMM:l(n.monthsShort,o,u,3),MMMM:l(u,o),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,c,2),ddd:l(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(r),HH:D.s(r,2,"0"),h:d(1),hh:d(2),a:f(r,s,!0),A:f(r,s,!1),m:String(s),mm:D.s(s,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:a};return i.replace(m,(function(e,t){return t||p[e]||a.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(i,f,h){var p,m=D.p(f),g=S(i),y=(g.utcOffset()-this.utcOffset())*t,v=this-g,b=D.m(this,g);return b=(p={},p[d]=b/12,p[u]=b,p[l]=b/3,p[c]=(v-y)/6048e5,p[o]=(v-y)/864e5,p[s]=v/n,p[r]=v/t,p[a]=v/e,p)[m]||v,h?b:D.a(b)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return w[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=O(e,t,!0);return i&&(n.$L=i),n},y.clone=function(){return D.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),T=$.prototype;return S.prototype=T,[["$ms",i],["$s",a],["$m",r],["$H",s],["$W",o],["$M",u],["$y",d],["$D",f]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,$,S),e.$i=!0),S},S.locale=O,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}))},"62e6":function(e,t,n){"use strict";var i=n("5530"),a=n("2c56");t["a"]={sendPhone:function(e){return a["a"].post("/app/apply/send/phone",{phone:e})},fill:function(e){return a["a"].post("/app/apply/fill",Object(i["a"])({},e))},info:function(e){return a["a"].post("/app/apply/phone/info",{id:e})},applyAcquire:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["a"].get("/app/apply/acquire",{params:Object(i["a"])({},e)})},timeList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["a"].get("/app/apply/time",{params:Object(i["a"])({},e)})},playerFill:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["a"].post("/app/apply/player/fill",Object(i["a"])({},e))}}},"7ecb":function(e,t,n){"use strict";n("d521")},"81d5":function(e,t,n){"use strict";var i=n("7b0b"),a=n("23cb"),r=n("07fa");e.exports=function(e){var t=i(this),n=r(t),s=arguments.length,o=a(s>1?arguments[1]:void 0,n),c=s>2?arguments[2]:void 0,u=void 0===c?n:a(c,n);while(u>o)t[o++]=e;return t}},8696:function(e,t,n){"use strict";n("d3b7"),n("e9c4");var i=n("2c56"),a=n("906c");t["a"]={config:function(){return new Promise((function(e){var t=a["a"].parseJSON(sessionStorage.getItem("indexConfig"),null);t?e(t):i["a"].get("/app/index/config").then((function(t){200==t.code?(sessionStorage.setItem("indexConfig",JSON.stringify(t)),e(t)):Object(i["b"])(t)}))}))},applyLimitDay:function(){return new Promise((function(e){i["a"].get("/common/apply_limit_day").then((function(t){200==t.code?e(t.data):Object(i["b"])(t)}))}))},applyPicture:function(){return new Promise((function(e){i["a"].get("/manager/config/show").then((function(t){200==t.code?e(t.data):Object(i["b"])(t)}))}))},systemConfig:function(e){return new Promise((function(t){i["a"].get("/base/system/get_config_one",{params:{key:e}}).then((function(n){200===n.code?(sessionStorage.setItem(e,n.data.configVal),t(n.data.configVal)):t("")}))}))},tabs:function(){return i["a"].get("/app/index/tabs")},auditNumber:function(){return i["a"].get("/app/index/auditNumber")},screen:function(e){return i["a"].get("/app/record/userPageList",{params:e})},note:function(e){return i["a"].post("/app/index/note",{phone:e})},login:function(e,t){return i["a"].post("/app/index/login",{phone:e,verificationCode:t})},passphrase:function(e){return i["a"].post("/app/index/passphrase",e)}}},9586:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=this,n=t.$createElement,i=t._self._c||n;return i("div",{staticStyle:{overflow:"hidden"}},[i("ApplyNotice"),i("flex",{staticClass:"header",attrs:{"align-items":"center",direction:"column",justify:"space-between"}},[i("img",{staticClass:"log_logo",attrs:{src:t.configObj.loginSchoolPicture,alt:""}})]),i("van-button",{staticClass:"button",attrs:{round:"",type:"info"}},[t._v("访问相关信息")]),i("van-form",{on:{submit:t.tijiao}},["play"==this.source?i("div",[i("van-field",{attrs:{rules:[{required:!0}],"error-message-align":"right","input-align":"left","is-link":"",label:"选择时段",placeholder:"请选择访问时间段",readonly:"",required:""},on:{focus:function(){return e.isTimeSheet=!0}},model:{value:t.timeObj.name,callback:function(e){t.$set(t.timeObj,"name",e)},expression:"timeObj.name"}}),i("van-action-sheet",{attrs:{actions:t.timeList,round:!1},on:{select:t.onTimeSelect},model:{value:t.isTimeSheet,callback:function(e){t.isTimeSheet=e},expression:"isTimeSheet"}})],1):i("div",[i("van-field",{attrs:{rules:[{required:!0}],"error-message-align":"right","input-align":"left","is-link":"",label:"访问部门",placeholder:"请选择相关部门",readonly:"",required:""},on:{focus:function(){return t.showActionSheet(1)}},model:{value:t.department.name,callback:function(e){t.$set(t.department,"name",e)},expression:"department.name"}}),i("van-action-sheet",{attrs:{actions:t.bumens,round:!1},on:{select:t.onSelect},model:{value:t.showDepartment,callback:function(e){t.showDepartment=e},expression:"showDepartment"}}),i("van-field",{attrs:{rules:[{required:!0}],"error-message-align":"right","input-align":"left","is-link":"",label:"访问老师",placeholder:"请选择人员姓名",readonly:"",required:""},on:{focus:function(){return t.showActionSheet(2)}},model:{value:t.selectedTeacher.name,callback:function(e){t.$set(t.selectedTeacher,"name",e)},expression:"selectedTeacher.name"}}),i("van-action-sheet",{attrs:{actions:t.teachers,disabled:null!=t.recordId},on:{select:t.teac},model:{value:t.showDepartment2,callback:function(e){t.showDepartment2=e},expression:"showDepartment2"}}),i("div",[i("van-field",{staticClass:"date",attrs:{rules:[{required:!0}],value:t.value1,"input-align":"left","is-link":"",label:"开始时间",placeholder:"请选择开始时间",readonly:"",required:""},on:{click:function(e){t.showPicker1=!0}}}),i("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.showPicker1,callback:function(e){t.showPicker1=e},expression:"showPicker1"}},[i("van-datetime-picker",{attrs:{"columns-order":["year","month","day"],currentDate:t.currentDate,"max-date":t.maxEndDate,"min-date":t.minDate,title:"选择时间",type:"date"},on:{cancel:function(e){t.showPicker1=!1},confirm:function(e){return t.confirmData(e,1)}},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1)],1),i("div",[i("van-field",{staticClass:"date",attrs:{rules:[{required:!0}],value:t.value2,"input-align":"left","is-link":"",label:"结束时间",placeholder:"请选择结束时间",readonly:"",required:""},on:{click:function(e){t.showPicker2=!0}}}),i("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.showPicker2,callback:function(e){t.showPicker2=e},expression:"showPicker2"}},[i("van-datetime-picker",{attrs:{"columns-order":["year","month","day"],currentDate:t.currentDate1,"max-date":t.maxEndDate,"min-date":t.endMinDate,title:"选择时间",type:"date"},on:{cancel:function(e){t.showPicker2=!1},confirm:function(e){return t.confirmData(e,2)}},model:{value:t.currentDate1,callback:function(e){t.currentDate1=e},expression:"currentDate1"}})],1)],1)],1),i("div",{staticClass:"reson_div"},[i("van-field",{staticClass:"reson",attrs:{rules:[{required:!0}],"error-message-align":"left","input-align":"left",label:"访问事由",maxlength:"50",placeholder:"请输入您的访问事由",required:"",rows:"3","show-word-limit":"",type:"textarea"},model:{value:t.message,callback:function(e){t.message=e},expression:"message"}})],1),i("div",{staticClass:"group"},[i("van-button",{staticClass:"button",attrs:{round:"",type:"info"}},[t._v("访客信息")]),i("div",{staticClass:"addPay"},[i("van-field",{attrs:{rules:[{required:!0}],"error-message-align":"right","input-align":"left",label:"访客姓名",placeholder:"请填写姓名",required:""},model:{value:t.usertext,callback:function(e){t.usertext=e},expression:"usertext"}}),i("van-field",{attrs:{readonly:t.readonly,rules:[{required:!0}],"error-message-align":"right","input-align":"left",label:"手机号码",placeholder:"请填写手机号码",required:"",type:"tel"},model:{value:t.tel,callback:function(e){t.tel=e},expression:"tel"}}),i("van-field",{attrs:{rules:[{required:!0}],"error-message-align":"right","input-align":"left","is-link":"",label:"证件类型",placeholder:"请选择",readonly:"",required:""},on:{focus:function(e){t.isIdentityType=!0}},model:{value:t.identityCardText,callback:function(e){t.identityCardText=e},expression:"identityCardText"}}),i("van-action-sheet",{attrs:{actions:t.identityType,round:!1},on:{select:t.onSelect2},model:{value:t.isIdentityType,callback:function(e){t.isIdentityType=e},expression:"isIdentityType"}}),i("van-field",{attrs:{rules:[{required:!0}],"error-message-align":"right","input-align":"left",label:"证件号码",placeholder:"请填写证件号码",required:""},model:{value:t.text1,callback:function(e){t.text1=e},expression:"text1"}}),t._l(t.newsOption,(function(e,n){return i("div",{key:e.id},["input"==e.type?i("van-field",{staticStyle:{"border-bottom":"1px solid rgba(235, 237, 240, 0.431)"},attrs:{type:"text","input-align":"left",label:e.name,placeholder:"请输入"+e.name,required:e.isBt,rules:[{required:e.isBt&&"input"==e.type}]},model:{value:t.newsOption[n].answer,callback:function(e){t.$set(t.newsOption[n],"answer",e)},expression:"newsOption[index].answer"}}):t._e(),"radio"==e.type?i("div",[i("van-field",{staticStyle:{"border-bottom":"1px solid rgba(235, 237, 240, 0.431)"},attrs:{rules:[{required:t.isRequired(e,"radio")}],"error-message-align":"right","input-align":"left","is-link":"",label:e.name,placeholder:"请选择",readonly:"",required:e.isBt},on:{focus:function(e){return t.sheetControl(n)}},model:{value:t.newsOption[n].answer,callback:function(e){t.$set(t.newsOption[n],"answer",e)},expression:"newsOption[index].answer"}}),i("van-action-sheet",{attrs:{actions:[].concat(e.options),round:!1},on:{select:function(e){t.onSelectAcquire(e,n)}},model:{value:t.sheetIsArr[n].isShow,callback:function(e){t.$set(t.sheetIsArr[n],"isShow",e)},expression:"sheetIsArr[index].isShow"}})],1):t._e(),"image"==e.type?i("van-field",{staticClass:"reson",staticStyle:{"border-bottom":"1px solid rgba(235, 237, 240, 0.431)"},attrs:{label:e.name,required:e.isBt},scopedSlots:t._u([{key:"input",fn:function(){return[i("van-uploader",{staticStyle:{"text-align":"left"},attrs:{"max-count":t.isFileNum(e.count),accept:"image/*",multiple:""},model:{value:t.fileImgObj[e.id],callback:function(n){t.$set(t.fileImgObj,e.id,n)},expression:"fileImgObj[item.id]"}})]},proxy:!0}],null,!0)}):t._e()],1)}))],2)],1),t._l(t.visitUpdateDTOList,(function(e,n){return i("div",{key:n},[i("div",{staticClass:"payReduce"},[i("div",[t._v("随同人员("+t._s(n+1)+")")]),i("van-button",{attrs:{"native-type":"button"},on:{click:function(){return t.visitorDelete(n)}}},[t._v("删除")])],1),i("Pays",{staticClass:"pays",attrs:{data:e},on:{child:t.accept}})],1)})),i("div",{staticClass:"paysAdd",on:{click:function(e){return t.addElse()}}},[i("span",[t._v("+增加随同人员")])]),i("van-button",{staticClass:"submit",attrs:{block:"","native-type":"submit",type:"info"}},[t._v(" 提交 ")])],2)],1)},a=[];n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var s=n("5530"),o=(n("159b"),n("b64b"),n("a9e3"),n("d81d"),n("99af"),n("b0c0"),n("a434"),n("ac1f"),n("1276"),n("e9c4"),n("cb29"),n("2c56")),c=n("2241"),u=n("d399"),l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("van-field",{attrs:{label:"随同人员",type:"text",placeholder:"请填写姓名",required:"","input-align":"right","error-message-align":"right",rules:[{required:!0}]},model:{value:e.data.usertext,callback:function(t){e.$set(e.data,"usertext",t)},expression:"data.usertext"}}),n("van-field",{attrs:{type:"tel",label:"手机号码",placeholder:"请填写手机号码",required:"","input-align":"right","error-message-align":"right",rules:[{required:!0}]},model:{value:e.data.tel,callback:function(t){e.$set(e.data,"tel",t)},expression:"data.tel"}}),n("van-field",{attrs:{rules:[{required:!0}],"error-message-align":"right","input-align":"left","is-link":"",label:"证件类型",placeholder:"请选择",readonly:"",required:""},on:{focus:function(t){e.isIdentityType=!0}},model:{value:e.data.identityCardText,callback:function(t){e.$set(e.data,"identityCardText",t)},expression:"data.identityCardText"}}),n("van-action-sheet",{attrs:{actions:e.identityType,round:!1},on:{select:e.onSelect2},model:{value:e.isIdentityType,callback:function(t){e.isIdentityType=t},expression:"isIdentityType"}}),n("van-field",{attrs:{label:"证件号码",placeholder:"请填写证件号码",required:"","input-align":"right","error-message-align":"right",rules:[{required:!0}]},model:{value:e.data.text1,callback:function(t){e.$set(e.data,"text1",t)},expression:"data.text1"}}),e._l(e.newsOptionChildren,(function(t,i){return n("div",{key:t.id},["input"==t.type?n("van-field",{staticStyle:{"border-bottom":"1px solid rgba(235, 237, 240, 0.431)"},attrs:{type:"text",label:t.name,placeholder:"请填写"+t.name,rules:[{required:t.isBt&&"input"==t.type}],required:t.isBt,"input-align":"right"},model:{value:e.newsOptionChildren[i].answer,callback:function(t){e.$set(e.newsOptionChildren[i],"answer",t)},expression:"newsOptionChildren[index].answer"}}):e._e(),"radio"==t.type?n("div",[n("van-field",{staticStyle:{"border-bottom":"1px solid rgba(235, 237, 240, 0.431)"},attrs:{label:t.name,placeholder:"请选择","error-message-align":"right",required:t.isBt,"input-align":"right","is-link":"",readonly:"",rules:[{required:t.isBt&&"radio"==t.type}]},on:{focus:function(t){return e.sheetControl(i)}},model:{value:e.newsOptionChildren[i].answer,callback:function(t){e.$set(e.newsOptionChildren[i],"answer",t)},expression:"newsOptionChildren[index].answer"}}),n("van-action-sheet",{attrs:{round:!1,actions:[].concat(t.options)},on:{select:function(t){e.onSelectAcquire(t,i)}},model:{value:e.sheetIsArr[i].isShow,callback:function(t){e.$set(e.sheetIsArr[i],"isShow",t)},expression:"sheetIsArr[index].isShow"}})],1):e._e(),"image"==t.type?n("van-field",{staticClass:"reson",staticStyle:{"border-bottom":"1px solid rgba(235, 237, 240, 0.431)"},attrs:{label:t.name,required:t.isBt},scopedSlots:e._u([{key:"input",fn:function(){return[n("van-uploader",{staticClass:"reson_img",staticStyle:{"text-align":"left"},attrs:{accept:"image/*",multiple:"","max-count":e.isFileNum(t.count)},model:{value:e.fileImgObj[t.id],callback:function(n){e.$set(e.fileImgObj,t.id,n)},expression:"fileImgObj[item.id]"}})]},proxy:!0}],null,!0)}):e._e()],1)}))],2)},d=[],f=n("8696"),h=n("62e6"),p={name:"Pays",props:["data"],data:function(){return{isIdentityType:!1,identityType:[{id:"sfz",name:"身份证号"},{id:"hzh",name:"护照号"},{id:"other",name:"其他"}],newsOptionChildren:[],fileImgObj:{},sheetIsArr:[]}},created:function(){this.applyAcquireRequest(),this.data.identityCardText="身份证号",this.data.identityCardID="sfz"},watch:{fileImgObj:{handler:function(e){var t=this;this.newsOptionChildren.forEach((function(e,n){var i=Object.keys(t.fileImgObj);"image"==e.type&&i.forEach((function(n,a){e.id==i[a]&&Object(o["c"])(t.fileImgObj[n]).then((function(t){e.answer=t}))}))}))},deep:!0},newsOptionChildren:{handler:function(e){this.$emit("child",e)},deep:!0}},methods:{sheetControl:function(e){this.sheetIsArr.forEach((function(t,n){n==e&&(t.isShow=!0)}))},isFileNum:function(e){return e||1e5},applyAcquireRequest:function(){var e=this;h["a"].applyAcquire().then((function(t){200==t.code&&(e.sheetIsArr=t.data.map((function(e,t){return{isShow:!1}})),e.newsOptionChildren=t.data.map((function(e){if("radio"==e.type){var t=JSON.parse(e.options);return Object(s["a"])(Object(s["a"])({},e),{},{options:t})}return e})))}))},onSelectAcquire:function(e,t){var n=Object(s["a"])({},this.newsOptionChildren[t]);n.answer=e.name,this.newsOptionChildren=this.newsOptionChildren.map((function(e,i){return i==t?n:e})),this.sheetIsArr.forEach((function(e,n){n==t&&(e.isShow=!1)}))},onSelect2:function(e){this.isIdentityType=!1,this.data.identityCardText=e.name,this.data.identityCardID=e.id},onHealthPicRead:function(e){var t=this;Object(o["c"])([e]).then((function(e){t.data.fileListHttp=[e]}))}}},m=p,g=(n("7ecb"),n("2877")),y=Object(g["a"])(m,l,d,!1,null,"667c97f7",null),v=y.exports,b={departPageList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return o["a"].get("/manager/depar/pageList",{params:{length:e}})},teacherPageList:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return o["a"].get("/manager/teacher/pageList",{params:{departId:e,length:t}})}},w=n("906c"),x=n("4fcf"),O=n("5a0c"),S=n.n(O),D=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showBar,expression:"showBar"}]},[n("van-notice-bar",{staticClass:"notice",attrs:{text:e.text,"left-icon":"volume-o"}}),n("div",{staticClass:"holder"})],1)},$=[],T={name:"ApplyNotice",data:function(){return{text:"",showBar:!1}},created:function(){this.getNoticeText()},methods:{getNoticeText:function(){var e=this;f["a"].config().then((function(t){200==t.code&&(e.text=t.data.applyNoticeText,e.showBar=!w["a"].isEmpty(e.text))}))}}},k=T,C=(n("3511"),Object(g["a"])(k,D,$,!1,null,"7d4cc171",null)),I=C.exports,j={name:"Pay",components:{ApplyNotice:I,Pays:v},data:function(){return{visitUpdateDTOList:[],bumenID:"",bumens:[],teachers:[],showPicker1:!1,showPicker2:!1,minDate:new Date,endMinDate:new Date,maxEndDate:new Date,currentDate:new Date,currentDate1:new Date,value1:"",value2:"",department:{},selectedTeacher:{},message:"",usertext:"",tel:"",text1:"",isVaccine:!1,isIdentityType:!1,identityCardText:"身份证号",identityCardID:"sfz",identityType:[{id:"sfz",name:"身份证号"},{id:"hzh",name:"护照号"},{id:"other",name:"其他"}],actions:[{id:1,name:"已接种"},{id:0,name:"未接种"}],showDepartment:!1,showDepartment2:!1,source:w["a"].getParamFormUrl("source","","weixin"),recordId:w["a"].getParamFormUrl("recordId"),readonly:!1,configObj:{loginSchoolPicture:""},newsOption:[],fileImgObj:{},childrenForm:[],sheetIsArr:[],timeList:[],isTimeSheet:!1,timeObj:{id:"",name:""}}},created:function(){this.getApplyLimitDay(),this.config(),this.departPageList(),this.applyAcquireRequest(),this.getTimeList(),this.info()},watch:{fileImgObj:{handler:function(e){var t=this;this.newsOption.forEach((function(e,n){var i=Object.keys(t.fileImgObj);"image"==e.type&&i.forEach((function(n,a){e.id==i[a]&&Object(o["c"])(t.fileImgObj[n]).then((function(t){e.answer=t}))}))}))},deep:!0}},methods:{timeFilter:function(e,t){if(Number(e)){var n=Number(e)-Number(t);return{name:"剩余".concat(n,"人可访问"),flag:e-t==0}}return{name:"人数无限制",flag:!1}},getTimeList:function(){var e=this;h["a"].timeList().then((function(t){200==t.code&&(e.timeList=t.data.map((function(t){return{id:t.id,name:"".concat(t.startTime,"~").concat(t.endTime,"(").concat(e.timeFilter(t.limit,t.remainderCount).name,")"),disabled:e.timeFilter(t.limit,t.remainderCount).flag}})))}))},sheetControl:function(e){this.sheetIsArr.forEach((function(t,n){n==e&&(t.isShow=!0)}))},isRequired:function(e,t){return!(!e.isBt||e.type!=t)},isFileNum:function(e){return e||1e5},accept:function(e){this.childrenForm=e},getApplyLimitDay:function(){var e=this;f["a"].applyLimitDay().then((function(t){e.maxEndDate=S()().add(t-1,"day").toDate()}))},visitorDelete:function(e){var t=this;Object(c["a"])({message:"确定要删除【随同人员("+(e+1)+")】吗?",showCancelButton:!0,cancelButtonText:"取消",confirmButtonText:"确定",beforeClose:function(n,i){"confirm"==n&&t.visitUpdateDTOList.splice(e,1),i()}})},config:function(){var e=this;f["a"].config().then((function(t){200==t.code&&(e.configObj=t.data)}))},addElse:function(){var e,t=this.visitUpdateDTOList.length;if(0!=t){var n=this.visitUpdateDTOList[t-1];w["a"].isEmpty(n.usertext)?Object(u["a"])("请填写随同人员姓名"):11!=(null===(e=n.tel)||void 0===e?void 0:e.length)?Object(u["a"])("请填写正确的随同人员手机号码"):w["a"].isEmpty(n.text1)?Object(u["a"])("请填写证件号码"):this.visitUpdateDTOList.push({})}else this.visitUpdateDTOList.push({})},showActionSheet:function(e){if(w["a"].isEmpty(this.recordId))if(1==e)this.showDepartment=!0;else{if(!this.department.name)return void Object(u["a"])("请先选择部门");this.showDepartment2=!0}},info:function(){var e=this;this.readonly=!w["a"].isEmpty(this.recordId),w["a"].isEmpty(this.recordId)||(u["a"].loading({message:"获取详情中",duration:0}),h["a"].info(this.recordId).then((function(t){200==t.code?(e.department={id:t.data.deparId,name:t.data.departName},e.selectedTeacher={id:t.data.teacherId,name:t.data.teacherName},e.tel=t.data.phone,u["a"].clear(!1)):Object(o["b"])(t)})))},confirmData:function(e,t){1==t?(this.value1=S()(e).format("YYYY-MM-DD"),this.showPicker1=!1,this.endMinDate=e):(this.value2=S()(e).format("YYYY-MM-DD"),this.showPicker2=!1)},onTimeSelect:function(e){this.timeObj={id:e.id,name:e.name.split("(")[0]},this.isTimeSheet=!1},onSelect:function(e){this.selectedTeacher="",this.showDepartment=!1,this.department=e,this.bumenID=e.id,this.teacherList()},teac:function(e){this.showDepartment2=!1,this.selectedTeacher=e},onSelectAcquire:function(e,t){var n=Object(s["a"])({},this.newsOption[t]);n.answer=e.name,this.newsOption=this.newsOption.map((function(e,i){return i==t?n:e})),this.sheetIsArr.forEach((function(e,n){n==t&&(e.isShow=!1)}))},onSelect2:function(e){this.isIdentityType=!1,this.identityCardText=e.name,this.identityCardID=e.id},departPageList:function(){var e=this;b.departPageList().then((function(t){200==t.code?e.bumens=t.data:Object(o["b"])(t)}))},teacherList:function(){var e=this;b.teacherPageList(this.bumenID).then((function(t){200==t.code?e.teachers=t.data:Object(o["b"])(t)}))},isJson:function(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!==r(t)||!t)}catch(n){return!1}},tijiao:function(){var e=this;c["a"].alert({title:"温馨提示",message:"确定提交访客信息吗?",showCancelButton:!0,cancelButtonText:"返回",confirmButtonText:"确定",beforeClose:function(n,i){"confirm"==n?(e.newsOption.forEach((function(t,n){"radio"==t.type&&(e.isJson(t.options)||(t.options=JSON.stringify(t.options)))})),e.childrenForm.forEach((function(t,n){"radio"==t.type&&(e.isJson(t.options)||(t.options=JSON.stringify(t.options)))})),t(),i()):i()}});var t=function(){var t,n;u["a"].loading({duration:0,message:"数据提交中"});var i={id:e.recordId,accessTime:e.value1+" 00:00:00",overTime:e.value2+" 23:59:59",deparId:null===(t=e.department)||void 0===t?void 0:t.id,teacherId:null===(n=e.selectedTeacher)||void 0===n?void 0:n.id,name:e.usertext,reason:e.message,phone:e.tel,identityCard:e.text1,identityType:e.identityCardID,formJson:e.newsOption,timeId:e.timeObj.id,date:e.timeObj.name.substring(0,10),visitUpdateDTOList:e.visitUpdateDTOList.map((function(t){return{identityCard:t.text1,identityType:t.identityCardID,name:t.usertext,phone:t.tel,formJson:e.childrenForm}})),source:e.source};w["a"].isEmpty(i.id)||(i.source="phone"),"play"==e.source?h["a"].playerFill(Object(s["a"])({},i)).then((function(t){104==t.code?(e.getTimeList(),u["a"].fail({message:t.message,duration:2e3})):200==t.code?e.onSubmitSuccess():Object(o["b"])(t)})):h["a"].fill(i).then((function(t){200==t.code?e.onSubmitSuccess():Object(o["b"])(t)}))}},onSubmitSuccess:function(){u["a"].clear(),"play"==this.source?(Object(u["a"])("提交成功"),x["a"].goBack()):"dingding"==this.source?c["a"].alert({message:"记录已提交成功,是否继续申请?",showCancelButton:!0,cancelButtonText:"返回",confirmButtonText:"继续申请",beforeClose:function(e,t){t(),"confirm"!=e?x["a"].goBack():window.location.reload()}}):x["a"].goRecordSuccessful()},applyAcquireRequest:function(){var e=this;h["a"].applyAcquire().then((function(t){200==t.code&&(e.sheetIsArr=t.data.map((function(e,t){return{isShow:!1}})),e.newsOption=t.data.map((function(e){if("radio"==e.type){var t=JSON.parse(e.options);return Object(s["a"])(Object(s["a"])({},e),{},{options:t})}return e})))}))}}},q=j,M=(n("2793"),Object(g["a"])(q,i,a,!1,null,"3d45a78b",null));t["default"]=M.exports},"99af":function(e,t,n){"use strict";var i=n("23e7"),a=n("da84"),r=n("d039"),s=n("e8b5"),o=n("861d"),c=n("7b0b"),u=n("07fa"),l=n("8418"),d=n("65f0"),f=n("1dde"),h=n("b622"),p=n("2d00"),m=h("isConcatSpreadable"),g=9007199254740991,y="Maximum allowed index exceeded",v=a.TypeError,b=p>=51||!r((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),w=f("concat"),x=function(e){if(!o(e))return!1;var t=e[m];return void 0!==t?!!t:s(e)},O=!b||!w;i({target:"Array",proto:!0,forced:O},{concat:function(e){var t,n,i,a,r,s=c(this),o=d(s,0),f=0;for(t=-1,i=arguments.length;t<i;t++)if(r=-1===t?s:arguments[t],x(r)){if(a=u(r),f+a>g)throw v(y);for(n=0;n<a;n++,f++)n in r&&l(o,f,r[n])}else{if(f>=g)throw v(y);l(o,f++,r)}return o.length=f,o}})},a434:function(e,t,n){"use strict";var i=n("23e7"),a=n("da84"),r=n("23cb"),s=n("5926"),o=n("07fa"),c=n("7b0b"),u=n("65f0"),l=n("8418"),d=n("1dde"),f=d("splice"),h=a.TypeError,p=Math.max,m=Math.min,g=9007199254740991,y="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var n,i,a,d,f,v,b=c(this),w=o(b),x=r(e,w),O=arguments.length;if(0===O?n=i=0:1===O?(n=0,i=w-x):(n=O-2,i=m(p(s(t),0),w-x)),w+n-i>g)throw h(y);for(a=u(b,i),d=0;d<i;d++)f=x+d,f in b&&l(a,d,b[f]);if(a.length=i,n<i){for(d=x;d<w-i;d++)f=d+i,v=d+n,f in b?b[v]=b[f]:delete b[v];for(d=w;d>w-i+n;d--)delete b[d-1]}else if(n>i)for(d=w-i;d>x;d--)f=d+i-1,v=d+n-1,f in b?b[v]=b[f]:delete b[v];for(d=0;d<n;d++)b[d+x]=arguments[d+2];return b.length=w-i+n,a}})},b0c0:function(e,t,n){var i=n("83ab"),a=n("5e77").EXISTS,r=n("e330"),s=n("9bf2").f,o=Function.prototype,c=r(o.toString),u=/^\s*function ([^ (]*)/,l=r(u.exec),d="name";i&&!a&&s(o,d,{configurable:!0,get:function(){try{return l(u,c(this))[1]}catch(e){return""}}})},cb29:function(e,t,n){var i=n("23e7"),a=n("81d5"),r=n("44d2");i({target:"Array",proto:!0},{fill:a}),r("fill")},d28b:function(e,t,n){var i=n("746f");i("iterator")},d521:function(e,t,n){},d81d:function(e,t,n){"use strict";var i=n("23e7"),a=n("b727").map,r=n("1dde"),s=r("map");i({target:"Array",proto:!0,forced:!s},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},e01a:function(e,t,n){"use strict";var i=n("23e7"),a=n("83ab"),r=n("da84"),s=n("e330"),o=n("1a2d"),c=n("1626"),u=n("3a9b"),l=n("577e"),d=n("9bf2").f,f=n("e893"),h=r.Symbol,p=h&&h.prototype;if(a&&c(h)&&(!("description"in p)||void 0!==h().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=u(p,this)?new h(e):void 0===e?h():h(e);return""===e&&(m[t]=!0),t};f(g,h),g.prototype=p,p.constructor=g;var y="Symbol(test)"==String(h("test")),v=s(p.toString),b=s(p.valueOf),w=/^Symbol\((.*)\)[^)]+$/,x=s("".replace),O=s("".slice);d(p,"description",{configurable:!0,get:function(){var e=b(this),t=v(e);if(o(m,e))return"";var n=y?O(t,7,-1):x(t,w,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:g})}},e6d5:function(e,t,n){},e9c4:function(e,t,n){var i=n("23e7"),a=n("da84"),r=n("d066"),s=n("2ba4"),o=n("e330"),c=n("d039"),u=a.Array,l=r("JSON","stringify"),d=o(/./.exec),f=o("".charAt),h=o("".charCodeAt),p=o("".replace),m=o(1..toString),g=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,v=/^[\uDC00-\uDFFF]$/,b=function(e,t,n){var i=f(n,t-1),a=f(n,t+1);return d(y,e)&&!d(v,a)||d(v,e)&&!d(y,i)?"\\u"+m(h(e,0),16):e},w=c((function(){return'"\\udf06\\ud834"'!==l("\udf06\ud834")||'"\\udead"'!==l("\udead")}));l&&i({target:"JSON",stat:!0,forced:w},{stringify:function(e,t,n){for(var i=0,a=arguments.length,r=u(a);i<a;i++)r[i]=arguments[i];var o=s(l,null,r);return"string"==typeof o?p(o,g,b):o}})}}]); |