chunk-1ad770cc.f0f92246.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1ad770cc","chunk-133c8093"],{"0757":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:"add"===t.type?"新增":"修改",visible:t.visible,width:"800px"},on:{"update:visible":function(e){t.visible=e}}},[i("el-form",{ref:"form",attrs:{inline:"",model:t.info,rules:t.rules}},[i("el-form-item",{attrs:{prop:"下单人手机号",label:"下单人手机号","label-width":"120px"}},[i("el-input",{staticStyle:{width:"240px"},attrs:{maxlength:"11"},model:{value:t.info["下单人手机号"],callback:function(e){t.$set(t.info,"下单人手机号",e)},expression:"info['下单人手机号']"}})],1),t._v(" "),i("el-form-item",{attrs:{prop:"下单人昵称",label:"下单人昵称","label-width":"120px"}},[i("el-input",{staticStyle:{width:"240px"},model:{value:t.info["下单人昵称"],callback:function(e){t.$set(t.info,"下单人昵称",e)},expression:"info['下单人昵称']"}})],1),t._v(" "),i("el-form-item",{attrs:{prop:"T恤总量",label:"T恤总量","label-width":"120px"}},[i("el-input-number",{staticStyle:{width:"240px"},attrs:{min:0},model:{value:t.info["T恤总量"],callback:function(e){t.$set(t.info,"T恤总量",e)},expression:"info['T恤总量']"}})],1),t._v(" "),i("el-form-item",{attrs:{prop:"尺码:L",label:"尺码:L","label-width":"120px"}},[i("el-input-number",{staticStyle:{width:"240px"},attrs:{min:0},model:{value:t.info["尺码:L"],callback:function(e){t.$set(t.info,"尺码:L",e)},expression:"info['尺码:L']"}})],1),t._v(" "),i("el-form-item",{attrs:{prop:"尺码:XL",label:"尺码:XL","label-width":"120px"}},[i("el-input-number",{staticStyle:{width:"240px"},attrs:{min:0},model:{value:t.info["尺码:XL"],callback:function(e){t.$set(t.info,"尺码:XL",e)},expression:"info['尺码:XL']"}})],1),t._v(" "),i("el-form-item",{attrs:{prop:"尺码:3XL",label:"尺码:3XL","label-width":"120px"}},[i("el-input-number",{staticStyle:{width:"240px"},attrs:{min:0},model:{value:t.info["尺码:3XL"],callback:function(e){t.$set(t.info,"尺码:3XL",e)},expression:"info['尺码:3XL']"}})],1),t._v(" "),i("el-form-item",{attrs:{prop:"收货人昵称",label:"收货人昵称","label-width":"120px"}},[i("el-input",{staticStyle:{width:"240px"},model:{value:t.info["收货人昵称"],callback:function(e){t.$set(t.info,"收货人昵称",e)},expression:"info['收货人昵称']"}})],1),t._v(" "),i("el-form-item",{attrs:{prop:"收货人手机号",label:"收货人手机号","label-width":"120px"}},[i("el-input",{staticStyle:{width:"240px"},attrs:{maxlength:"11"},model:{value:t.info["收货人手机号"],callback:function(e){t.$set(t.info,"收货人手机号",e)},expression:"info['收货人手机号']"}})],1),t._v(" "),i("el-form-item",{attrs:{prop:"收货人所在地区",label:"收货人所在地区","label-width":"120px"}},[i("VDistpicker",{staticStyle:{width:"100%"},attrs:{province:t.info["收货人省份"],city:t.info["收货人城市"],area:t.info["收货人地区"]},on:{province:function(e){var i=e.value;return t.info["收货人省份"]=i},city:function(e){var i=e.value;return t.info["收货人城市"]=i},area:function(e){var i=e.value;return t.info["收货人地区"]=i}}})],1),t._v(" "),i("el-form-item",{staticStyle:{width:"100%"},attrs:{prop:"收货人地址",label:"收货人地址","label-width":"120px"}},[i("el-input",{staticStyle:{width:"621px"},attrs:{type:"textarea"},model:{value:t.info["收货人地址"],callback:function(e){t.$set(t.info,"收货人地址",e)},expression:"info['收货人地址']"}})],1)],1),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){return t.$emit("close")}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.comfirm}},[t._v("确 定")])],1)],1)},a=[],l=i("784f"),s=i.n(l),r=i("dea3"),o={"T恤总量":"","下单人手机号":"","下单人昵称":"","尺码:3XL":"","尺码:L":"","尺码:XL":"","已统计T恤":"","序号":"","收货人地区":"","收货人地址":"","收货人城市":"","收货人手机号":"","收货人昵称":"","收货人省份":""},u={components:{VDistpicker:s.a},props:{visible:{type:Boolean,default:!1}},data:function(){return{info:{},type:"",rules:{"下单人手机号":[{required:!0,message:"手机号格式错误",min:11,max:11,trigger:"blur"}],"下单人昵称":[{required:!0,message:"昵称不能为空",min:1,trigger:"blur"}],"T恤总量":[{required:!0,type:"number",min:0}],"尺码:L":[{required:!0,type:"number",min:0}],"尺码:XL":[{required:!0,type:"number",min:0}],"尺码:3XL":[{required:!0,type:"number",min:0}],"收货人手机号":[{required:!0,message:"手机号格式错误",min:11,max:11,trigger:"blur"}],"收货人昵称":[{required:!0,message:"昵称不能为空",min:1,trigger:"blur"}],"收货人省份":[{required:!0,message:"收货人省份不能为空",min:1}],"收货人城市":[{required:!0,message:"收货人城市不能为空",min:1}],"收货人地区":[{required:!0,message:"收货人地区不能为空",min:1}],"收货人地址":[{required:!0,message:"收货人地址不能为空",min:1}]}}},methods:{show:function(t){console.log(t),t?(this.info=t,this.$emit("open"),this.type="upata"):(this.info=o,this.$emit("open"),this.type="add")},comfirm:function(){var t=this;this.$refs.form.validate().then((function(e){t.info["收货人省份"]&&t.info["收货人城市"]&&t.info["收货人地区"]?e&&(console.log(t.info),"add"===t.type?t.$request(Object(r["a"])(t.info),(function(e){t.$emit("close"),t.$emit("reget"),t.$message.success("新增成功!")})):t.$request(Object(r["e"])(t.info),(function(e){t.$emit("close"),t.$emit("reget"),t.$message.success("修改成功!")}))):t.$message.info("请选择地区")})).catch((function(t){return console.log(t)}))}}},c=u,p=i("2877"),d=Object(p["a"])(c,n,a,!1,null,null,null);e["default"]=d.exports},"3c7c":function(t,e,i){"use strict";i("a6e6")},"9b82":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"tshirt"},[i("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.loadingFull,expression:"loadingFull",modifiers:{fullscreen:!0,lock:!0}}]}),t._v(" "),i("div",{staticClass:"search-container"},[i("el-input",{staticStyle:{width:"300px"},attrs:{type:"text",clearable:!0,placeholder:"下单人手机号/昵称"},model:{value:t.listQuery.crown_mobile,callback:function(e){t.$set(t.listQuery,"crown_mobile",e)},expression:"listQuery.crown_mobile"}}),t._v(" "),i("el-input",{staticStyle:{width:"300px"},attrs:{type:"text",clearable:!0,placeholder:"收货人手机号/昵称/姓名"},model:{value:t.listQuery.mobile,callback:function(e){t.$set(t.listQuery,"mobile",e)},expression:"listQuery.mobile"}}),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(e){t.listQuery.page_index=1,t.getList()}}},[t._v("搜索")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.toExport}},[t._v("导出")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.$refs.updateTs.show()}}},[t._v("新增")]),t._v(" "),i("el-badge",{staticClass:"item",attrs:{value:t.res.total}},[i("el-button",{attrs:{size:"mini"}},[t._v("需填写人数")])],1),t._v(" "),i("el-badge",{staticClass:"item",attrs:{value:t.res.write_count}},[i("el-button",{attrs:{size:"mini"}},[t._v("已填写人数")])],1),t._v(" "),i("el-badge",{staticClass:"item",attrs:{value:t.res.surplus_count}},[i("el-button",{attrs:{size:"mini"}},[t._v("未填写人数")])],1),t._v(" "),i("el-badge",{staticClass:"item",attrs:{value:""}},[i("el-button",{attrs:{size:"mini"}},[t._v("填写率 : "+t._s(t.res.percent))])],1),t._v(" "),i("el-badge",{staticClass:"item",attrs:{value:t.res.total_all}},[i("el-button",{attrs:{size:"mini"}},[t._v("总数量")])],1),t._v(" "),i("el-badge",{staticClass:"item",attrs:{value:t.res.total_L}},[i("el-button",{attrs:{size:"mini"}},[t._v("L数量")])],1),t._v(" "),i("el-badge",{staticClass:"item",attrs:{value:t.res.total_XL}},[i("el-button",{attrs:{size:"mini"}},[t._v("XL数量")])],1),t._v(" "),i("el-badge",{staticClass:"item",attrs:{value:t.res.total_3XL}},[i("el-button",{attrs:{size:"mini"}},[t._v("3XL数量")])],1)],1),t._v(" "),t.res.list?i("el-table",{attrs:{data:t.res.list,border:"",stripe:""}},[t._l(Object.keys(t.res.list[0]?t.res.list[0]:{}),(function(t,e){return i("el-table-column",{key:e,attrs:{prop:t,label:t,align:"center"}})})),t._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t.$refs.updateTs.show(JSON.parse(JSON.stringify(n)))}}},[t._v("修改")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){return t.del(n)}}},[t._v("删除")])]}}],null,!1,1483532359)})],2):t._e(),t._v(" "),i("pagination",{attrs:{total:t.res.total||0,limit:t.listQuery.page_size,page:t.listQuery.page_index},on:{pagination:t.changePagination,"update:limit":t.changePagination}}),t._v(" "),i("UpdateTSInfoDialog",{ref:"updateTs",attrs:{visible:t.dialogs.updateTs},on:{open:function(e){t.dialogs.updateTs=!0},close:function(e){t.dialogs.updateTs=!1},reget:function(e){return t.getList()}}})],1)},a=[],l=i("c7eb"),s=(i("96cf"),i("1da1")),r=i("dea3"),o=i("0757"),u={name:"Tshirt",components:{UpdateTSInfoDialog:o["default"]},data:function(){return{loadingFull:!1,listQuery:{page_index:1,page_size:50,crown_mobile:"",mobile:""},res:{},dialogs:{updateTs:!1}}},mounted:function(){this.getList()},methods:{getList:function(){var t=Object(s["a"])(Object(l["a"])().mark((function t(){var e,i,n,a,s,o=this;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loadingFull=!0,e=this.listQuery,i=e.page_index,n=e.page_size,a=e.crown_mobile,s=e.mobile,t.next=4,Object(r["d"])({page_index:i,page_size:n,mobile:s,crown_mobile:a}).then((function(t){o.loadingFull=!1,o.res=t.data})).finally((function(t){o.loadingFull=!1}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),toExport:function(){var t=this;this.$request(Object(r["c"])(),(function(e){var i=e.list;return t.$excel(i,"T恤名单")}))},changePagination:function(t){var e=t.page,i=t.limit;this.listQuery.page_size=i,this.listQuery.page_index=e,this.getList()},del:function(t){var e=this;this.$confirm("确定删除?","提示").then((function(){e.$request(Object(r["b"])(t),(function(){e.getList(),e.dialogs.updateTs=!1,e.$message.success("删除成功!")}))})).catch((function(){return e.$message.info("取消删除")}))}}},c=u,p=(i("3c7c"),i("2877")),d=Object(p["a"])(c,n,a,!1,null,"32f59550",null);e["default"]=d.exports},a6e6:function(t,e,i){},dea3:function(t,e,i){"use strict";i.d(e,"d",(function(){return a})),i.d(e,"c",(function(){return l})),i.d(e,"a",(function(){return s})),i.d(e,"e",(function(){return r})),i.d(e,"b",(function(){return o}));var n=i("b775");function a(t){return Object(n["a"])({url:"/orders/get_t_data",method:"get",params:t})}function l(t){return Object(n["a"])({url:"/orders/get_t_excel",method:"get",params:t})}function s(t){return Object(n["a"])({url:"/orders/add_t",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/orders/update_t",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/orders/delete_t",method:"post",data:t})}}}]);