glhcp/server/public/pc/_nuxt/f7f9f7f.js

1 line
7.4 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[15,20],{439:function(e,t,r){"use strict";var o=r(18),n=r(2),l=r(3),c=r(137),f=r(27),m=r(19),d=r(273),v=r(54),h=r(136),x=r(272),_=r(5),w=r(97).f,y=r(45).f,N=r(25).f,I=r(440),E=r(441).trim,$="Number",S=n.Number,k=S.prototype,C=n.TypeError,j=l("".slice),F=l("".charCodeAt),A=function(e){var t=x(e,"number");return"bigint"==typeof t?t:O(t)},O=function(e){var t,r,o,n,l,c,f,code,m=x(e,"number");if(h(m))throw C("Cannot convert a Symbol value to a number");if("string"==typeof m&&m.length>2)if(m=E(m),43===(t=F(m,0))||45===t){if(88===(r=F(m,2))||120===r)return NaN}else if(48===t){switch(F(m,1)){case 66:case 98:o=2,n=49;break;case 79:case 111:o=8,n=55;break;default:return+m}for(c=(l=j(m,2)).length,f=0;f<c;f++)if((code=F(l,f))<48||code>n)return NaN;return parseInt(l,o)}return+m};if(c($,!S(" 0o1")||!S("0b1")||S("+0x1"))){for(var U,M=function(e){var t=arguments.length<1?0:S(A(e)),r=this;return v(k,r)&&_((function(){I(r)}))?d(Object(t),r,M):t},D=o?w(S):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),L=0;D.length>L;L++)m(S,U=D[L])&&!m(M,U)&&N(M,U,y(S,U));M.prototype=k,k.constructor=M,f(n,$,M)}},440:function(e,t,r){var o=r(3);e.exports=o(1..valueOf)},441:function(e,t,r){var o=r(3),n=r(33),l=r(17),c=r(442),f=o("".replace),m="["+c+"]",d=RegExp("^"+m+m+"*"),v=RegExp(m+m+"*$"),h=function(e){return function(t){var r=l(n(t));return 1&e&&(r=f(r,d,"")),2&e&&(r=f(r,v,"")),r}};e.exports={start:h(1),end:h(2),trim:h(3)}},442:function(e,t){e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},455:function(e,t,r){var content=r(468);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(15).default)("368b5a27",content,!0,{sourceMap:!1})},467:function(e,t,r){"use strict";r(455)},468:function(e,t,r){var o=r(14)(!1);o.push([e.i,".v-upload .el-upload--picture-card[data-v-9cabb86c]{width:76px;height:76px;line-height:76px}.v-upload .el-upload-list--picture-card .el-upload-list__item[data-v-9cabb86c]{width:76px;height:76px}",""]),e.exports=o},469:function(e,t,r){"use strict";r.r(t);r(439),r(40);var o=r(188),n={components:{},props:{limit:{type:Number,default:1},isSlot:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},onChange:{type:Function,default:function(){}}},watch:{},data:function(){return{url:o.a.baseUrl}},created:function(){},computed:{},methods:{success:function(e,t,r){this.autoUpload&&(this.$message({message:"上传成功",type:"success"}),this.$emit("success",r))},remove:function(e,t){this.$emit("remove",t)},error:function(e){this.$message({message:"上传失败,请重新上传",type:"error"})},beforeAvatarUpload:function(e){var t=e.name.substring(e.name.lastIndexOf(".")+1);console.log("fdsadsf");var r="jpg"===t,o="png"===t;return r||o?r||o||"jpeg"===t:(this.$message({message:"上传文件只能是 jpg, jpeg, png格式!",type:"warning"}),!1)}}},l=(r(467),r(9)),component=Object(l.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"v-upload"},[r("el-upload",{attrs:{"list-type":"picture-card",action:e.url+"/api/file/formimage",limit:e.limit,"on-success":e.success,"on-error":e.error,"on-remove":e.remove,"on-change":e.onChange,headers:{token:e.$store.state.token},"auto-upload":e.autoUpload,accept:"image/jpg,image/jpeg,image/png","before-upload":e.beforeAvatarUpload}},[e.isSlot?e._t("default"):r("div",[r("div",{staticClass:"muted xs"},[e._v("上传图片")])])],2)],1)}),[],!1,null,"9cabb86c",null);t.default=component.exports},476:function(e,t,r){var content=r(492);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(15).default)("5eb5ac17",content,!0,{sourceMap:!1})},491:function(e,t,r){"use strict";r(476)},492:function(e,t,r){var o=r(14)(!1);o.push([e.i,".input-express .dialog-footer[data-v-13601821]{text-align:center}.input-express .dialog-footer .el-button[data-v-13601821]{width:160px}",""]),e.exports=o},503:function(e,t,r){"use strict";r.r(t);var o=r(6),n=(r(53),r(439),r(11),r(21),{components:{},data:function(){return{showDialog:!1,form:{business:"",number:"",desc:""},rules:{business:[{required:!0,message:"请输入物流公司"}],number:[{required:!0,message:"请输入快递单号"}]},fileList:[]}},props:{value:{type:Boolean,default:!1},aid:{type:[String,Number],default:-1}},methods:{submitForm:function(){var e=this;console.log(this.$refs),this.$refs.inputForm.validate(function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(r){var o,data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=10;break}return o=[],e.fileList.forEach((function(e){o.push(e.response.data)})),data={id:e.aid,express_name:e.form.business,invoice_no:e.form.number,express_remark:e.form.desc,express_image:o.length<=0?"":o[0].base_url},t.next=6,e.$post("after_sale/express",data);case 6:1==t.sent.code&&(e.$message({message:"提交成功",type:"success"}),e.showDialog=!1,e.$emit("success")),t.next=11;break;case 10:return t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},uploadSuccess:function(e){var t=Object.assign([],e);this.fileList=t}},watch:{value:function(e){this.showDialog=e},showDialog:function(e){this.$emit("input",e)}}}),l=n,c=(r(491),r(9)),component=Object(c.a)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"input-express"},[r("el-dialog",{attrs:{title:"填写快递单号",visible:e.showDialog,width:"926px"},on:{"update:visible":function(t){e.showDialog=t}}},[r("el-form",{ref:"inputForm",attrs:{inline:"","label-width":"100px",model:e.form,rules:e.rules}},[r("el-form-item",{attrs:{label:"物流公司:",prop:"business"}},[r("el-input",{attrs:{size:"small",placeholder:"请输入物流公司名称"},model:{value:e.form.business,callback:function(t){e.$set(e.form,"business",t)},expression:"form.business"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"快递单号:",prop:"number"}},[r("el-input",{attrs:{size:"small",placeholder:"请输入快递单号"},model:{value:e.form.number,callback:function(t){e.$set(e.form,"number",t)},expression:"form.number"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"备注说明:",prop:"desc"}},[r("el-input",{staticStyle:{width:"632px"},attrs:{type:"textarea",placeholder:"请输入详细内容,选填",resize:"none",rows:"5"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"上传凭证:",prop:"upload"}},[r("div",{staticClass:"xs muted"},[e._v("请上传快递单号凭证,选填")]),e._v(" "),r("upload",{attrs:{isSlot:"","file-list":e.fileList,limit:3},on:{success:e.uploadSuccess}},[r("div",{staticClass:"column-center",staticStyle:{height:"100%"}},[r("i",{staticClass:"el-icon-camera xs",staticStyle:{"font-size":"24px"}})])])],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")]),e._v(" "),r("el-button",{on:{click:function(t){e.showDialog=!1}}},[e._v("取消")])],1)],1)],1)}),[],!1,null,"13601821",null);t.default=component.exports;installComponents(component,{Upload:r(469).default})}}]);