chunk-7916d209.14b9bf48.js 14 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7916d209"],{"049d":function(e,t,a){"use strict";var r=a("d2be"),n=a.n(r);n.a},"0aed":function(e,t,a){"use strict";a("aaba");var r=a("bf16"),n=a("86d4"),o=a("238a"),i=a("f6b4"),l=a("cb3d"),s=a("8714"),c=l("species"),u=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var a="ab".split(e);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();e.exports=function(e,t,a){var m=l(e),d=!o((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),p=d?!o((function(){var t=!1,a=/a/;return a.exec=function(){return t=!0,null},"split"===e&&(a.constructor={},a.constructor[c]=function(){return a}),a[m](""),!t})):void 0;if(!d||!p||"replace"===e&&!u||"split"===e&&!f){var v=/./[m],h=a(i,m,""[e],(function(e,t,a,r,n){return t.exec===s?d&&!n?{done:!0,value:v.call(t,a,r)}:{done:!0,value:e.call(a,t,r)}:{done:!1}})),b=h[0],g=h[1];r(String.prototype,e,b),n(RegExp.prototype,m,2==t?function(e,t){return g.call(e,this,t)}:function(e){return g.call(e,this)})}}},"2fd4":function(e,t,a){var r=a("fb68"),n=a("75c4"),o=a("cb3d")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==n(e))}},"42b7":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"edit"},[a("p",[e._v("报名信息 > 修改信息 ")]),a("div",{staticClass:"content"},[a("el-form",{attrs:{"label-width":"110px"}},[e.form.subject_item?a("el-form-item",{attrs:{label:"报名身份"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:e.form.subject_item,expression:"form.subject_item"}],staticClass:"gou"},[e._v("✓")]),a("Subject",{attrs:{value:e.form.subject_ids},on:{subChange:e.subChange}})],1):e._e(),a("el-form-item",{attrs:{label:"姓名"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:e.form.name,expression:"form.name"}],staticClass:"gou"},[e._v("✓")]),a("el-input",{attrs:{placeholder:"姓名"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"性别"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:e.form.sex,expression:"form.sex"}],staticClass:"gou"},[e._v("✓")]),a("el-radio-group",{model:{value:e.form.sex,callback:function(t){e.$set(e.form,"sex",t)},expression:"form.sex"}},[a("el-radio",{attrs:{label:"男"}},[e._v("男")]),a("el-radio",{attrs:{label:"女"}},[e._v("女")])],1)],1),a("el-form-item",{attrs:{label:"身份证"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:e.form.idno,expression:"form.idno"}],staticClass:"gou"},[e._v("✓")]),a("el-input",{attrs:{placeholder:"身份证"},model:{value:e.form.idno,callback:function(t){e.$set(e.form,"idno",t)},expression:"form.idno"}})],1),a("el-form-item",{attrs:{label:"手机号"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:e.form.phone,expression:"form.phone"}],staticClass:"gou"},[e._v("✓")]),a("el-input",{model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),a("el-form-item",{attrs:{label:"文化程度"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:e.form.education,expression:"form.education"}],staticClass:"gou"},[e._v("✓")]),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.education,callback:function(t){e.$set(e.form,"education",t)},expression:"form.education"}},e._l(e.edu,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),a("el-form-item",{attrs:{label:"单位全称"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:e.form.company,expression:"form.company"}],staticClass:"gou"},[e._v("✓")]),a("el-input",{model:{value:e.form.company,callback:function(t){e.$set(e.form,"company",t)},expression:"form.company"}})],1),a("el-form-item",{attrs:{label:"发票类型"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.form.bill_type,callback:function(t){e.$set(e.form,"bill_type",t)},expression:"form.bill_type"}},[a("el-option",{attrs:{label:"不需要发票",value:1}}),a("el-option",{attrs:{label:"个人发票",value:2}}),a("el-option",{attrs:{label:"企业发票",value:3}})],1)],1),1!=e.form.bill_type?a("el-form-item",{attrs:{label:"发票方式"}},[a("el-radio",{attrs:{label:"1"},model:{value:e.form.bill_type,callback:function(t){e.$set(e.form,"bill_type",t)},expression:"form.bill_type"}},[e._v("纸质发票")])],1):e._e(),3==e.form.bill_type?a("el-form-item",{attrs:{label:"税号"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:e.form.bill_no,expression:"form.bill_no"}],staticClass:"gou"},[e._v("✓")]),a("el-input",{model:{value:e.form.bill_no,callback:function(t){e.$set(e.form,"bill_no",t)},expression:"form.bill_no"}})],1):e._e(),a("el-form-item",{attrs:{label:"领证方式"}},[a("el-radio-group",{model:{value:e.form.receive_card,callback:function(t){e.$set(e.form,"receive_card",t)},expression:"form.receive_card"}},[a("el-radio",{attrs:{label:"自取"}},[e._v("自取")]),a("el-radio",{attrs:{label:"邮寄"}},[e._v("邮寄(将产生邮寄费用)")])],1)],1),"邮寄"==e.form.receive_card?a("el-form-item",{attrs:{label:"地区"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:e.form.area,expression:"form.area"}],staticClass:"gou"},[e._v("✓")]),a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.form.area,callback:function(t){e.$set(e.form,"area",t)},expression:"form.area"}},[a("el-option",{attrs:{label:"重庆",value:0}})],1)],1):e._e(),"邮寄"==e.form.receive_card?a("el-form-item",{attrs:{label:"详细地址"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:e.form.address,expression:"form.address"}],staticClass:"gou"},[e._v("✓")]),a("el-input",{model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1):e._e(),a("el-form-item",{attrs:{label:""}},[e.form.idnoimg_face?[a("img",{attrs:{width:"150",src:e.form.idnoimg_face,alt:""}}),a("br")]:e._e(),a("el-button",{attrs:{icon:"el-icon-upload",type:"warning"}},[e._v("上传正面照 "),a("input",{attrs:{id:"idnoimg_face",type:"file"},on:{change:function(t){return e.upload("idnoimg_face")}}})])],2),a("el-form-item",{attrs:{label:""}},[e.form.idnoimg_back?[a("img",{attrs:{width:"150",src:e.form.idnoimg_back,alt:""}}),a("br")]:e._e(),a("el-button",{attrs:{icon:"el-icon-upload",type:"warning"}},[e._v("上传反面照 "),a("input",{attrs:{id:"idnoimg_back",type:"file"},on:{change:function(t){return e.upload("idnoimg_back")}}})])],2),a("el-form-item",{attrs:{label:""}},[e.form.halfbody_img?[a("img",{attrs:{width:"150",src:e.form.halfbody_img,alt:""}}),a("br")]:e._e(),a("el-button",{attrs:{icon:"el-icon-upload",type:"warning"}},[e._v("上传上半身照 "),a("input",{attrs:{id:"halfbody_img",type:"file"},on:{change:function(t){return e.upload("halfbody_img")}}})])],2),a("el-form-item",{attrs:{label:""}},[e.form.education_img?[a("img",{attrs:{width:"150",src:e.form.education_img,alt:""}}),a("br")]:e._e(),a("el-button",{attrs:{icon:"el-icon-upload",type:"warning"}},[e._v("上传学历照 "),a("input",{attrs:{id:"education_img",type:"file"},on:{change:function(t){return e.upload("education_img")}}})])],2),"换证"==e.form.train_type||"复审"==e.form.train_type?a("el-form-item",{attrs:{label:""}},[e.form.oldcard_img?[a("img",{attrs:{width:"150",src:e.form.oldcard_img,alt:""}}),a("br")]:e._e(),a("el-button",{attrs:{icon:"el-icon-upload",type:"warning"}},[e._v("上传换证复审证件照 "),a("input",{attrs:{id:"oldcard_img",type:"file"},on:{change:function(t){return e.upload("oldcard_img")}}})])],2):e._e(),a("el-form-item",{attrs:{label:" "}},[a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("修改报名")])],1)],1)],1)])},n=[],o=a("fa7e"),i={components:{Subject:o["a"]},data:function(){return{form:{},radios:1,edu:["小学","初中","高中","大专","本科","硕士","博士"]}},methods:{getData:function(){var e=this;this.$api.getSign({id:this.form.id}).then((function(t){e.form=t.data.data}))},subChange:function(e,t,a){this.form.subject_id=a[a.length-1],this.form.subject_item=e.join("|")},upload:function(e){var t=this,a=document.getElementById(e).files,r=new FormData;r.append("file",a[0]),this.$api.uploadFile(r).then((function(a){if(0==a.data.code){var r=t.form;t.$set(r,e,a.data.data.url),t.$message({message:"上传成功!",type:"success"})}else t.$message.error(a.data.message)}))},save:function(){var e=this,t=this.form;this.$api.updateSign(t).then((function(t){0==t.data.code?(e.$message({message:"修改成功!",type:"success"}),e.$router.go(-1)):e.$message.error(t.data.message)}))}},created:function(){this.$route.query.id&&(this.form.id=this.$route.query.id,this.getData())}},l=i,s=(a("94fc"),a("4023")),c=Object(s["a"])(l,r,n,!1,null,null,null);t["default"]=c.exports},7108:function(e,t,a){"use strict";var r=a("7e23"),n=RegExp.prototype.exec;e.exports=function(e,t){var a=e.exec;if("function"===typeof a){var o=a.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return n.call(e,t)}},8714:function(e,t,a){"use strict";var r=a("f1fe"),n=RegExp.prototype.exec,o=String.prototype.replace,i=n,l="lastIndex",s=function(){var e=/a/,t=/b*/g;return n.call(e,"a"),n.call(t,"a"),0!==e[l]||0!==t[l]}(),c=void 0!==/()??/.exec("")[1],u=s||c;u&&(i=function(e){var t,a,i,u,f=this;return c&&(a=new RegExp("^"+f.source+"$(?!\\s)",r.call(f))),s&&(t=f[l]),i=n.call(f,e),s&&i&&(f[l]=f.global?i.index+i[0].length:t),c&&i&&i.length>1&&o.call(i[0],a,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(i[u]=void 0)})),i}),e.exports=i},"94fc":function(e,t,a){"use strict";var r=a("a2ba"),n=a.n(r);n.a},"9a33":function(e,t,a){"use strict";var r=a("2fd4"),n=a("69b3"),o=a("f63e"),i=a("e754"),l=a("eafa"),s=a("7108"),c=a("8714"),u=a("238a"),f=Math.min,m=[].push,d="split",p="length",v="lastIndex",h=4294967295,b=!u((function(){RegExp(h,"y")}));a("0aed")("split",2,(function(e,t,a,u){var g;return g="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[p]||2!="ab"[d](/(?:ab)*/)[p]||4!="."[d](/(.?)(.?)/)[p]||"."[d](/()()/)[p]>1||""[d](/.?/)[p]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!r(e))return a.call(n,e,t);var o,i,l,s=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?h:t>>>0,b=new RegExp(e.source,u+"g");while(o=c.call(b,n)){if(i=b[v],i>f&&(s.push(n.slice(f,o.index)),o[p]>1&&o.index<n[p]&&m.apply(s,o.slice(1)),l=o[0][p],f=i,s[p]>=d))break;b[v]===o.index&&b[v]++}return f===n[p]?!l&&b.test("")||s.push(""):s.push(n.slice(f)),s[p]>d?s.slice(0,d):s}:"0"[d](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,r){var n=e(this),o=void 0==a?void 0:a[t];return void 0!==o?o.call(a,n,r):g.call(String(n),a,r)},function(e,t){var r=u(g,e,this,t,g!==a);if(r.done)return r.value;var c=n(e),m=String(this),d=o(c,RegExp),p=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(b?"y":"g"),_=new d(b?c:"^(?:"+c.source+")",v),x=void 0===t?h:t>>>0;if(0===x)return[];if(0===m.length)return null===s(_,m)?[m]:[];var y=0,w=0,k=[];while(w<m.length){_.lastIndex=b?w:0;var $,C=s(_,b?m:m.slice(w));if(null===C||($=f(l(_.lastIndex+(b?0:w)),m.length))===y)w=i(m,w,p);else{if(k.push(m.slice(y,w)),k.length===x)return k;for(var j=1;j<=C.length-1;j++)if(k.push(C[j]),k.length===x)return k;w=y=$}}return k.push(m.slice(y)),k}]}))},a2ba:function(e,t,a){},aaba:function(e,t,a){"use strict";var r=a("8714");a("e46b")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},cc57:function(e,t,a){var r=a("064e").f,n=Function.prototype,o=/^\s*function ([^ (]*)/,i="name";i in n||a("149f")&&r(n,i,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},d2be:function(e,t,a){},e754:function(e,t,a){"use strict";var r=a("fc81")(!0);e.exports=function(e,t,a){return t+(a?r(e,t).length:1)}},f1fe:function(e,t,a){"use strict";var r=a("69b3");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},fa7e:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.subject_id?a("span",[a("el-cascader",{staticClass:"sub",attrs:{props:e.props1,clearable:"",placeholder:"请选择作业类别 / 准操项目",options:e.data},on:{change:e.handleChange},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}})],1):a("span",[e.value?a("el-cascader",{staticClass:"sub",attrs:{props:e.props,placeholder:"请选择培训科目 / 作业类别 / 准操项目",options:e.data},on:{change:e.handleChange},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}}):a("el-cascader",{staticClass:"sub",attrs:{props:e.props1,clearable:"",placeholder:"请选择培训科目 / 作业类别 / 准操项目",options:e.data},on:{change:e.handleChange},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}})],1)},n=[],o=(a("9a33"),a("cc57"),{data:function(){return{data:[],value1:[],props:{label:"name",checkStrictly:!0,value:"id"},props1:{label:"name",checkStrictly:!0,value:"name"}}},props:{value:"",subvalue:"",subject_id:""},methods:{getData:function(e){var t=this;this.$api.getSubList().then((function(e){var a=e.data.data;if(t.subject_id)for(var r=0;r<a.length;r++)a[r].id==t.subject_id&&(t.data=a[r].children);else t.data=e.data.data}))},handleChange:function(e){var t="",a=this;if(e.length>=3&&isNaN(e[0])){var r=this.data.filter((function(t){return t.name==e[0]})),n=r[0].children.filter((function(t){return t.name==e[1]})),o=n[0].children.filter((function(t){return t.name==e[2]}));t=o[0].id}setTimeout((function(){var r=document.querySelector(".el-input__inner").value,n=r.split(" / ");console.log(r),a.$emit("subChange",n,t,e)}),100)}},created:function(){this.getData(),this.value&&(this.value1=this.value),this.subvalue&&(this.value1=this.subvalue.split("|"))}}),i=o,l=(a("049d"),a("4023")),s=Object(l["a"])(i,r,n,!1,null,null,null);t["a"]=s.exports},fc81:function(e,t,a){var r=a("ee21"),n=a("f6b4");e.exports=function(e){return function(t,a){var o,i,l=String(n(t)),s=r(a),c=l.length;return s<0||s>=c?e?"":void 0:(o=l.charCodeAt(s),o<55296||o>56319||s+1===c||(i=l.charCodeAt(s+1))<56320||i>57343?e?l.charAt(s):o:e?l.slice(s,s+2):i-56320+(o-55296<<10)+65536)}}}}]);
  2. //# sourceMappingURL=chunk-7916d209.14b9bf48.js.map