EyEr.bf5e5f6e.js 14 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["EyEr"],{EyEr:function(e,t,r){"use strict";r.r(t);var a=r("QbLZ"),o=r.n(a),l=r("t3Un");var n={data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,total:0,orderList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,shopName:void 0,accountId:void 0,orderId:void 0,dangOrder:void 0,address:void 0,provName:void 0,cityName:void 0,areaName:void 0,orderStatus:void 0,orderStatusName:void 0,payStatus:void 0,payName:void 0,receiverName:void 0,mobile:void 0,receiver:void 0,deleteFlag:void 0,gmtCreate:void 0,gmtUpdate:void 0,userId:void 0,adminId:void 0},form:{},rules:{}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,function(e){return Object(l.a)({method:"get",params:o()({_gp:"admin.shop.shopOrder",_mt:"list"},e)})}(this.queryParams).then(function(t){e.orderList=t.data.data.items,e.total=t.data.data.count,e.loading=!1})},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:void 0,accountId:void 0,orderId:void 0,dangOrder:void 0,address:void 0,provName:void 0,cityName:void 0,areaName:void 0,orderStatus:"0",orderStatusName:void 0,payStatus:"0",payName:void 0,receiverName:void 0,mobile:void 0,receiver:void 0,remark:void 0,deleteFlag:void 0,gmtCreate:void 0,gmtUpdate:void 0,userId:void 0,adminId:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map(function(e){return e.id}),this.single=1!=e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加电商订单表"},handleUpdate:function(e){var t=this;this.reset(),function(e){return Object(l.a)({method:"get",params:{_gp:"admin.shop.shopOrder",_mt:"get",id:e}})}(e.id||this.ids.join(",")).then(function(e){t.form=e.data.data,t.open=!0,t.title="修改电商订单表"})},submitForm:function(){var e=this;this.$refs.form.validate(function(t){t&&(void 0!=e.form.id?function(e){return Object(l.a)({method:"post",params:{_gp:"admin.shop.shopOrder",_mt:"update",shopOrder:e}})}(e.form).then(function(t){t.data?(e.msgSuccess("修改成功"),e.open=!1,e.getList()):e.msgError(t.msg)}):function(e){return Object(l.a)({method:"post",params:{_gp:"admin.shop.shopOrder",_mt:"add",shopOrder:e}})}(e.form).then(function(t){t.data?(e.msgSuccess("新增成功"),e.open=!1,e.getList()):e.msgError(t.msg)}))})},handleDelete:function(e){var t=this,r=e.id||this.ids.join(",");this.$confirm('是否确认删除电商订单表编号为"'+r+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){return function(e){return Object(l.a)({method:"post",params:{_gp:"admin.shop.shopOrder",_mt:"delete",id:e}})}(r)}).then(function(){t.getList(),t.msgSuccess("删除成功")}).catch(function(){})},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有电商订单表数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){return function(e){return Object(l.a)({method:"get",params:o()({_gp:"admin.shop.shopOrder",_mt:"export"},e)})}(t)}).then(function(t){e.download(t.data.data)}).catch(function(){})}}},i=r("KHd+"),s=Object(i.a)(n,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-form",{ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[r("el-form-item",{attrs:{label:"店铺名称",prop:"shopName"}},[r("el-input",{attrs:{placeholder:"请输入店铺名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleQuery(t):null}},model:{value:e.queryParams.shopName,callback:function(t){e.$set(e.queryParams,"shopName",t)},expression:"queryParams.shopName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"当当订单",prop:"dangOrder"}},[r("el-input",{attrs:{placeholder:"请输入当当订单",clearable:"",size:"small"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleQuery(t):null}},model:{value:e.queryParams.dangOrder,callback:function(t){e.$set(e.queryParams,"dangOrder",t)},expression:"queryParams.dangOrder"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"孔网订单",prop:"orderId"}},[r("el-input",{attrs:{placeholder:"请输入孔网订单",clearable:"",size:"small"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleQuery(t):null}},model:{value:e.queryParams.orderId,callback:function(t){e.$set(e.queryParams,"orderId",t)},expression:"queryParams.orderId"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"孔网状态",prop:"orderStatusName"}},[r("el-input",{attrs:{placeholder:"请输入孔网状态",clearable:"",size:"small"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleQuery(t):null}},model:{value:e.queryParams.orderStatusName,callback:function(t){e.$set(e.queryParams,"orderStatusName",t)},expression:"queryParams.orderStatusName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"当当状态",prop:"dangOrderStatus"}},[r("el-input",{attrs:{placeholder:"请输入当当状态",clearable:"",size:"small"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleQuery(t):null}},model:{value:e.queryParams.dangOrderStatus,callback:function(t){e.$set(e.queryParams,"dangOrderStatus",t)},expression:"queryParams.dangOrderStatus"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),e._v(" "),r("el-row",{staticClass:"mb8",attrs:{gutter:10}},[r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["shop:order:remove"],expression:"['shop:order:remove']"}],attrs:{disabled:e.multiple,type:"danger",icon:"el-icon-delete",size:"mini"},on:{click:e.handleDelete}},[e._v("删除")])],1),e._v(" "),r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["shop:order:export"],expression:"['shop:order:export']"}],attrs:{type:"warning",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1)],1),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.orderList},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{type:"index",label:"序号"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.$index<9?r("span",[e._v("0"+e._s(t.$index+1))]):r("span",[e._v(e._s(t.$index+1))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"店铺名称",align:"center",prop:"shopAccount.dangName"}}),e._v(" "),r("el-table-column",{attrs:{label:"孔网订单",align:"center",prop:"orderId"}}),e._v(" "),r("el-table-column",{attrs:{label:"当当订单",align:"center",prop:"dangOrder"}}),e._v(" "),r("el-table-column",{attrs:{type:"index",label:"收件人信息",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.receiverName)+"-"+e._s(t.row.mobile)+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"孔网状态",align:"center",prop:"orderStatusName"}}),e._v(" "),r("el-table-column",{attrs:{label:"当当发货状态",align:"center",prop:"dangOrderStatus",width:"120"}}),e._v(" "),r("el-table-column",{attrs:{label:"孔网下单时间",align:"center",width:"120",prop:"createdTime"}}),e._v(" "),r("el-table-column",{attrs:{label:"快递公司",align:"center",prop:"shippingComName"}}),e._v(" "),r("el-table-column",{attrs:{label:"快递单号",align:"center",prop:"shipmentNum"}}),e._v(" "),r("el-table-column",{attrs:{label:"发货时间",align:"center",prop:"shippingTime"}}),e._v(" "),r("el-table-column",{attrs:{label:"更新时间",align:"center",prop:"gmtUpdate",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.parseTime(t.row.gmtUpdate)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["shop:order:remove"],expression:"['shop:order:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(r){e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),r("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),e._v(" "),r("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px"},on:{"update:visible":function(t){e.open=t}}},[r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"账户表id",prop:"accountId"}},[r("el-input",{attrs:{placeholder:"请输入账户表id"},model:{value:e.form.accountId,callback:function(t){e.$set(e.form,"accountId",t)},expression:"form.accountId"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"当当订单号",prop:"orderId"}},[r("el-input",{attrs:{placeholder:"请输入当当订单号"},model:{value:e.form.orderId,callback:function(t){e.$set(e.form,"orderId",t)},expression:"form.orderId"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"孔网订单号",prop:"dangOrder"}},[r("el-input",{attrs:{placeholder:"请输入孔网订单号"},model:{value:e.form.dangOrder,callback:function(t){e.$set(e.form,"dangOrder",t)},expression:"form.dangOrder"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"详细地址",prop:"address"}},[r("el-input",{attrs:{placeholder:"请输入详细地址"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"省",prop:"provName"}},[r("el-input",{attrs:{placeholder:"请输入省"},model:{value:e.form.provName,callback:function(t){e.$set(e.form,"provName",t)},expression:"form.provName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"市",prop:"cityName"}},[r("el-input",{attrs:{placeholder:"请输入市"},model:{value:e.form.cityName,callback:function(t){e.$set(e.form,"cityName",t)},expression:"form.cityName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"区",prop:"areaName"}},[r("el-input",{attrs:{placeholder:"请输入区"},model:{value:e.form.areaName,callback:function(t){e.$set(e.form,"areaName",t)},expression:"form.areaName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"订单状态"}},[r("el-radio-group",{model:{value:e.form.orderStatus,callback:function(t){e.$set(e.form,"orderStatus",t)},expression:"form.orderStatus"}},[r("el-radio",{attrs:{label:"1"}},[e._v("请选择字典生成")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"订单状态",prop:"orderStatusName"}},[r("el-input",{attrs:{placeholder:"请输入订单状态"},model:{value:e.form.orderStatusName,callback:function(t){e.$set(e.form,"orderStatusName",t)},expression:"form.orderStatusName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"付款状态"}},[r("el-radio-group",{model:{value:e.form.payStatus,callback:function(t){e.$set(e.form,"payStatus",t)},expression:"form.payStatus"}},[r("el-radio",{attrs:{label:"1"}},[e._v("请选择字典生成")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"付款状态",prop:"payName"}},[r("el-input",{attrs:{placeholder:"请输入付款状态"},model:{value:e.form.payName,callback:function(t){e.$set(e.form,"payName",t)},expression:"form.payName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"收件人",prop:"receiverName"}},[r("el-input",{attrs:{placeholder:"请输入收件人"},model:{value:e.form.receiverName,callback:function(t){e.$set(e.form,"receiverName",t)},expression:"form.receiverName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"收件人电话",prop:"mobile"}},[r("el-input",{attrs:{placeholder:"请输入收件人电话"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"收件人详细信息",prop:"receiver"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.receiver,callback:function(t){e.$set(e.form,"receiver",t)},expression:"form.receiver"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"备注",prop:"remark"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"删除标识",prop:"deleteFlag"}},[r("el-input",{attrs:{placeholder:"请输入删除标识"},model:{value:e.form.deleteFlag,callback:function(t){e.$set(e.form,"deleteFlag",t)},expression:"form.deleteFlag"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"",prop:"gmtCreate"}},[r("el-date-picker",{staticStyle:{width:"200px"},attrs:{clearable:"",size:"small",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择"},model:{value:e.form.gmtCreate,callback:function(t){e.$set(e.form,"gmtCreate",t)},expression:"form.gmtCreate"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"",prop:"gmtUpdate"}},[r("el-date-picker",{staticStyle:{width:"200px"},attrs:{clearable:"",size:"small",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择"},model:{value:e.form.gmtUpdate,callback:function(t){e.$set(e.form,"gmtUpdate",t)},expression:"form.gmtUpdate"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"",prop:"userId"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.form.userId,callback:function(t){e.$set(e.form,"userId",t)},expression:"form.userId"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"",prop:"adminId"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.form.adminId,callback:function(t){e.$set(e.form,"adminId",t)},expression:"form.adminId"}})],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:e.cancel}},[e._v("取 消")])],1)],1)],1)},[],!1,null,null,null);s.options.__file="index.vue";t.default=s.exports}}]);