mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-15 04:52:50 +00:00
1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b0d26192"],{1184:function(t,e,r){"use strict";r.d(e,"c",(function(){return o})),r.d(e,"d",(function(){return i})),r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return l})),r.d(e,"g",(function(){return c})),r.d(e,"f",(function(){return s})),r.d(e,"e",(function(){return u})),r("99af");var n=r("6b6c");function o(t){return Object(n.a)({url:"marketing/lottery/list",method:"get",params:t})}function i(t){return Object(n.a)({url:"marketing/lottery/factor_info/".concat(t),method:"get"})}function a(t){return Object(n.a)({url:"marketing/lottery/add",method:"post",data:t})}function l(t,e){return Object(n.a)({url:"marketing/lottery/edit/".concat(t),method:"put",data:e})}function c(t){return Object(n.a)({url:"marketing/lottery/set_status/".concat(t.id,"/").concat(t.status),method:"post"})}function s(t){return Object(n.a)({url:"marketing/lottery/record/list",method:"get",params:t})}function u(t){return Object(n.a)({url:"marketing/lottery/record/deliver",method:"post",data:t})}},"2c3e":function(t,e,r){var n=r("da84"),o=r("83ab"),i=r("9f7f").MISSED_STICKY,a=r("c6b6"),l=r("edd0"),c=r("69f3").get,s=RegExp.prototype,u=n.TypeError;o&&i&&l(s,"sticky",{configurable:!0,get:function(){if(this!==s){if("RegExp"===a(this))return!!c(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},"4d63":function(t,e,r){var n=r("83ab"),o=r("da84"),i=r("e330"),a=r("94ca"),l=r("7156"),c=r("9112"),s=r("241c").f,u=r("3a9b"),d=r("44e7"),f=r("577e"),h=r("90d8"),m=r("9f7f"),p=r("aeb0"),v=r("cb2d"),g=r("d039"),y=r("1a2d"),b=r("69f3").enforce,_=r("2626"),x=r("b622"),k=r("fce3"),w=r("107c"),F=x("match"),L=o.RegExp,E=L.prototype,O=o.SyntaxError,j=i(E.exec),T=i("".charAt),M=i("".replace),R=i("".indexOf),S=i("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,$=/a/g,C=/a/g,D=(r=new L($)!==$,m.MISSED_STICKY),P=m.UNSUPPORTED_Y;x=n&&(!r||D||k||w||g((function(){return C[F]=!1,L($)!=$||L(C)==C||"/a/i"!=L($,"i")})));if(a("RegExp",x)){function G(t,e){var r,n,o=u(E,this),i=d(t),a=void 0===e,s=[],m=t;if(!o&&i&&a&&t.constructor===G)return t;if((i||u(E,t))&&(t=t.source,a&&(e=h(m))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),m=t,i=e=k&&"dotAll"in $&&(r=!!e&&-1<R(e,"s"))?M(e,/s/g,""):e,D&&"sticky"in $&&(n=!!e&&-1<R(e,"y"))&&P&&(e=M(e,/y/g,"")),w&&(t=(a=function(t){for(var e,r=t.length,n=0,o="",i=[],a={},l=!1,c=!1,s=0,u="";n<=r;n++){if("\\"===(e=T(t,n)))e+=T(t,++n);else if("]"===e)l=!1;else if(!l)switch(!0){case"["===e:l=!0;break;case"("===e:j(I,S(t,n+1))&&(n+=2,c=!0),o+=e,s++;continue;case">"===e&&c:if(""===u||y(a,u))throw new O("Invalid capture group name");a[u]=!0,c=!(i[i.length]=[u,s]),u="";continue}c?u+=e:o+=e}return[o,i]}(t))[0],s=a[1]),a=l(L(t,e),o?this:E,G),(r||n||s.length)&&(e=b(a),r&&(e.dotAll=!0,e.raw=G(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"===(e=T(t,n))?o+=e+T(t,++n):i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]";return o}(t),i)),n&&(e.sticky=!0),s.length&&(e.groups=s)),t!==m)try{c(a,"source",""===m?"(?:)":m)}catch(t){}return a}for(var z=s(L),N=0;z.length>N;)p(G,L,z[N++]);(E.constructor=G).prototype=E,v(o,"RegExp",G,{constructor:!0})}_("RegExp")},"61f7":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"c",(function(){return c})),r.d(e,"b",(function(){return s}));var n=r("fc11"),o=r("f3f3");function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var r,n,o={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(r in o)new RegExp("(".concat(r,")")).test(e)&&(n=o[r]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?n:("00"+n).substr(n.length)));return e}r("ac1f"),r("00b4"),r("5319"),r("4d63"),r("c607"),r("2c3e"),r("25f0"),r("498a"),r("d3b7"),r("b64b"),r("99af");var a={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function l(t,e){t.message=function(t){return e.replace("%s",t||"")}}function c(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(o.a)({required:!0,message:t,type:"string"},e)}function s(t){return u.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}l(c,"请输入%s"),l(s,"%s格式不正确");var u=Object.keys(a).reduce((function(t,e){return t[e]=function(t){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},a="range"===e?{min:t[0],max:t[1]}:Object(n.a)({},e,t);return Object(o.a)(Object(o.a)({message:r.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},a),i)},l(t[e],a[e]),t}),{})},"9d90":function(t,e,r){},bc60:function(t,e,r){"use strict";var n=r("9d90");r.n(n).a},c607:function(t,e,r){var n=r("da84"),o=r("83ab"),i=r("fce3"),a=r("c6b6"),l=r("edd0"),c=r("69f3").get,s=RegExp.prototype,u=n.TypeError;o&&i&&l(s,"dotAll",{configurable:!0,get:function(){if(this!==s){if("RegExp"===a(this))return!!c(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},ca99:function(t,e,r){"use strict";r.r(e),r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var n=r("0122"),o=r("c964"),i=r("f3f3"),a=(r("a15b"),r("2f62")),l=r("1184"),c=r("61f7"),s=r("f8b7"),u={deliver_name:[{required:!0,type:"string",message:"请选择快递公司",trigger:"select"}],deliver_number:[{required:!0,message:"请输入快递单号",trigger:"blur"}]},d={mark:[{required:!0,message:"请输入备注信息",trigger:"blur"}]};function f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */f=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(e){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i,a,l,c;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),n=new w(n||[]);return o(e,"_invoke",{value:(i=t,a=r,l=n,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return L()}for(l.method=t,l.arg=e;;){var r=l.delegate;if(r&&(r=function t(e,r){var n=r.method,o=e.iterator[n];return void 0===o?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=d(o,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(o=n.arg,o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,l),r)){if(r===h)continue;return r}if("next"===l.method)l.sent=l._sent=l.arg;else if("throw"===l.method){if("suspendedStart"===c)throw c="completed",l.arg;l.dispatchException(l.arg)}else"return"===l.method&&l.abrupt("return",l.arg);if(c="executing",r=d(i,a,l),"normal"===r.type){if(c=l.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:l.done}}"throw"===r.type&&(c="completed",l.method="throw",l.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function m(){}function p(){}function v(){}i={};var g=(s(i,a,(function(){return this})),Object.getPrototypeOf),y=(g=g&&g(g(F([]))),g&&g!==e&&r.call(g,a)&&(i=g),v.prototype=m.prototype=Object.create(i));function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var i;o(this,"_invoke",{value:function(o,a){function l(){return new e((function(i,l){!function o(i,a,l,c){var s;i=d(t[i],t,a);if("throw"!==i.type)return(a=(s=i.arg).value)&&"object"==Object(n.a)(a)&&r.call(a,"__await")?e.resolve(a.__await).then((function(t){o("next",t,l,c)}),(function(t){o("throw",t,l,c)})):e.resolve(a).then((function(t){s.value=t,l(s)}),(function(t){return o("throw",t,l,c)}));c(i.arg)}(o,a,i,l)}))}return i=i?i.then(l,l):l()}})}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function F(t){if(t){var e,n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:L}}function L(){return{value:void 0,done:!0}}return o(y,"constructor",{value:p.prototype=v,configurable:!0}),o(v,"constructor",{value:p,configurable:!0}),p.displayName=s(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,c,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(_.prototype),s(_.prototype,l,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),s(y,c,"Generator"),s(y,a,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=F,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,k(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:F(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}i={name:"lotteryRecordList",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(c.a)(t,"yyyy-MM-dd hh:mm")}},data:function(){return{shipModel:!1,loading:!1,locationList:[],shipForm:{id:"",deliver_name:"",deliver_number:null},markForm:{id:"",mark:""},ruleShip:u,ruleMark:d,fromList:{title:"选择时间",fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},typeList:[{text:"全部",val:""},{text:"未中奖",val:"1"},{text:"积分",val:"2"},{text:"余额",val:"3"},{text:"红包",val:"4"},{text:"优惠券",val:"5"},{text:"商品",val:"6"}],columns1:[{title:"ID",key:"id",width:80},{title:"用户信息",slot:"user",minWidth:90},{title:"奖品信息",slot:"prize",minWidth:130},{title:"抽奖时间",key:"add_time",minWidth:100},{title:"收货信息",slot:"receive_info",minWidth:100},{title:"备注",slot:"mark",minWidth:100},{title:"操作",slot:"action",fixed:"right",minWidth:130}],tableList:[],grid:{xl:7,lg:10,md:12,sm:24,xs:24},tableFrom:{keyword:"",date:[],page:1,limit:15,factor:1},total:0,timeVal:[],modelType:1,lottery_id:"",modelTitle:""}},computed:Object(i.a)(Object(i.a)({},Object(a.d)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),created:function(){this.tableFrom.lottery_id=this.$route.query.id,this.lottery_id=this.$route.query.id,this.getList(),this.getExpressData()},methods:{deliver:function(t,e){this.markForm.id=t.id,this.shipForm.id=t.id,this.shipForm.deliver_name="",this.shipForm.deliver_number="",this.markForm.mark=t.deliver_info.mark,this.modelType=e,this.shipModel=!0},isDeliver:function(t){this.markForm.id=t.id,this.shipForm.id=t.id,this.modelType=1,this.modelTitle="配送信息",this.shipModel=!0,this.shipForm.deliver_name=t.deliver_info.deliver_name,this.shipForm.deliver_number=t.deliver_info.deliver_number},ok:function(t){var e=this;this.$refs[t].validate((function(t){Object(l.e)(1==e.modelType?e.shipForm:e.markForm).then((function(t){e.$Message.success("操作成功"),e.shipModel=!1,e.getList(),e.shipForm={id:"",deliver_name:"",deliver_number:null},e.modelTitle="",e.markForm={id:"",mark:""}})).catch((function(t){e.$Message.error(t.msg)}))}))},cancel:function(){this.modelType=1,this.modelTitle="",this.shipModel=!1},getExpressData:function(){var t=this;Object(s.i)().then(function(){var e=Object(o.a)(f().mark((function e(r){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.locationList=r.data;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},onchangeTime:function(t){this.timeVal=t,this.tableFrom.data=this.timeVal[0]?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList()},selectChange:function(t){this.tableFrom.page=1,this.tableFrom.date=t,this.timeVal=[],this.getList()},selectType:function(t){this.tableFrom.page=1,this.timeVal=[],this.getList()},selectChangeFactor:function(){this.tableFrom.page=1,this.timeVal=[],this.getList()},getList:function(){var t=this;this.loading=!0,Object(l.f)(this.tableFrom).then(function(){var e=Object(o.a)(f().mark((function e(r){var n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.tableList=n.list,t.total=r.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},userSearchs:function(){this.tableFrom.page=1,this.getList()}}},r("bc60"),a=r("2877"),r=Object(a.a)(i,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[r("Form",{ref:"tableFrom",attrs:{model:t.tableFrom,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[r("Row",{attrs:{type:"flex",gutter:24}},[r("Col",[r("FormItem",{attrs:{label:"活动类型:",clearable:""}},[r("RadioGroup",{staticClass:"mr",attrs:{type:"button"},on:{"on-change":function(e){return t.selectChangeFactor()}},model:{value:t.tableFrom.factor,callback:function(e){t.$set(t.tableFrom,"factor",e)},expression:"tableFrom.factor"}},[r("Radio",{attrs:{label:1}},[t._v("积分抽取")]),r("Radio",{attrs:{label:3}},[t._v("订单支付")]),r("Radio",{attrs:{label:4}},[t._v("订单评价")])],1)],1)],1),r("Col",{attrs:{span:"24"}},[r("FormItem",{attrs:{label:"时间选择:"}},[r("RadioGroup",{staticClass:"mr",attrs:{type:"button"},on:{"on-change":function(e){return t.selectChange(t.tableFrom.data)}},model:{value:t.tableFrom.data,callback:function(e){t.$set(t.tableFrom,"data",e)},expression:"tableFrom.data"}},t._l(t.fromList.fromTxt,(function(e,n){return r("Radio",{key:n,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),r("DatePicker",{staticStyle:{width:"200px"},attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{"on-change":t.onchangeTime}})],1)],1),r("Col",{attrs:{span:"24"}},[r("FormItem",{attrs:{label:"奖品类型:"}},[r("RadioGroup",{staticClass:"mr",attrs:{type:"button"},on:{"on-change":function(e){return t.selectType()}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},t._l(t.typeList,(function(e,n){return r("Radio",{key:n,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1)],1)],1),r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"搜索用户:","label-for":"store_name"}},[r("Input",{attrs:{search:"","enter-button":"",placeholder:"请输入用户信息"},on:{"on-search":t.userSearchs},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1)],1)],1)],1),r("Table",{attrs:{columns:t.columns1,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"is_fail",fn:function(t){var e=t.row;return t.index,[1===e.is_fail?r("Icon",{attrs:{type:"md-checkmark",color:"#0092DC",size:"14"}}):r("Icon",{attrs:{type:"md-close",color:"#ed5565",size:"14"}})]}},{key:"user",fn:function(e){var n=e.row;return e.index,[r("span",[t._v(t._s(n.user.nickname)+" ")])]}},{key:"mark",fn:function(e){var n=e.row;return e.index,[r("span",[t._v(t._s(n.deliver_info.mark))])]}},{key:"receive_info",fn:function(e){var n=e.row;return e.index,[n.receive_info.name?r("div",[r("div",[t._v("姓名:"+t._s(n.receive_info.name))]),r("div",[t._v("电话:"+t._s(n.receive_info.phone))]),r("div",[t._v("地址:"+t._s(n.receive_info.address))]),n.receive_info.mark?r("div",[t._v("备注:"+t._s(n.receive_info.mark))]):t._e()]):t._e()]}},{key:"prize",fn:function(e){var n=e.row;return e.index,[r("div",{staticClass:"prize"},[r("img",{attrs:{src:n.prize.image,alt:""}}),r("span",[t._v(t._s(n.prize.name))])])]}},{key:"action",fn:function(e){var n=e.row;return e.index,[6==n.type&&0===n.is_deliver?r("a",{on:{click:function(e){return t.deliver(n,1)}}},[t._v("发货")]):6==n.type&&1===n.is_deliver?r("a",{on:{click:function(e){return t.isDeliver(n)}}},[t._v("配送信息")]):t._e(),6==n.type?r("Divider",{attrs:{type:"vertical"}}):t._e(),r("a",{on:{click:function(e){return t.deliver(n,2)}}},[t._v("备注")])]}}])}),r("div",{staticClass:"acea-row row-right page"},[r("Page",{attrs:{total:t.total,current:t.tableFrom.page,"show-elevator":"","show-total":"","page-size":t.tableFrom.limit},on:{"on-change":t.pageChange}})],1)],1),r("Modal",{attrs:{width:"40%",scrollable:"",closable:"","footer-hide":"",title:t.modelTitle||(1===t.modelType?"发货":"备注"),"mask-closable":!1,"z-index":1},model:{value:t.shipModel,callback:function(e){t.shipModel=e},expression:"shipModel"}},[r("Form",{ref:1===t.modelType?"shipForm":"markForm",attrs:{model:1===t.modelType?t.shipForm:t.markForm,rules:1===t.modelType?t.ruleShip:t.ruleMark,"label-width":80},model:{value:t.shipModel,callback:function(e){t.shipModel=e},expression:"shipModel"}},[1===t.modelType?r("FormItem",{attrs:{label:"快递公司",prop:"deliver_name"}},[r("Select",{model:{value:t.shipForm.deliver_name,callback:function(e){t.$set(t.shipForm,"deliver_name",e)},expression:"shipForm.deliver_name"}},t._l(t.locationList,(function(e){return r("Option",{key:e.id,attrs:{value:e.value}},[t._v(t._s(e.value))])})),1)],1):t._e(),1===t.modelType?r("FormItem",{attrs:{label:"快递单号",prop:"deliver_number"}},[r("Input",{attrs:{placeholder:"请输入快递单号"},model:{value:t.shipForm.deliver_number,callback:function(e){t.$set(t.shipForm,"deliver_number",e)},expression:"shipForm.deliver_number"}}),"顺丰速运"==t.shipForm.deliver_name?r("div",{staticClass:"trips"},[r("p",[t._v("顺丰请输入单号 :收件人或寄件人手机号后四位")]),r("p",[t._v("例如:SF000000000000:3941")])]):t._e()],1):t._e(),2===t.modelType?r("FormItem",{attrs:{label:"备注"}},[r("Input",{attrs:{placeholder:"请输入备注"},model:{value:t.markForm.mark,callback:function(e){t.$set(t.markForm,"mark",e)},expression:"markForm.mark"}})],1):t._e(),r("FormItem",[r("Button",{attrs:{type:"primary"},on:{click:function(e){return t.ok(1===t.modelType?"shipForm":"markForm")}}},[t._v("提交")]),r("Button",{staticStyle:{"margin-left":"8px"},on:{click:function(e){return t.cancel("formValidate")}}},[t._v("关闭")])],1)],1)],1)],1)}),[],!1,null,"35cf4bf8",null),e.default=r.exports},edd0:function(t,e,r){var n=r("13d2"),o=r("9bf2");t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}}}]); |