12 |
- webpackJsonp([43],{AwtP:function(t,e){},YEDJ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("FWz8"),l=["顺丰快递","圆通快递","中通快递","韵达快递"],a={name:"deliverOrderList",data:function(){return{list:[],order:{},companyOptions:l}},created:function(){var t=this;this.list=this.$route.query.list,this.list instanceof Array==!1&&(this.list=[]),this.id=this.$route.query.id,Object(r.e)(this.id).then(function(e){t.order=e.data})},filters:{formatProductStatus:function(t){return 1===t?"待发货":2===t?"已发货":3===t?"已退货":4===t?"退货中":" "},formatProductAttr:function(t){if(null==t)return"";for(var e=JSON.parse(t),n="",r=0;r<e.length;r++)n+=e[r].key,n+=":",n+=e[r].value,n+=";";return n}},methods:{cancel:function(){this.$router.back()},confirm:function(){var t=this;this.$confirm("是否要进行发货操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(r.c)(t.list).then(function(e){t.$router.back(),t.$message({type:"success",message:"发货成功!"})})}).catch(function(){t.$message({type:"info",message:"已取消发货"})})}}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-card",{staticClass:"operate-container",attrs:{shadow:"never"}},[n("i",{staticClass:"el-icon-tickets"}),t._v(" "),n("span",[t._v("发货列表")])]),t._v(" "),n("div",{staticClass:"table-container"},[n("el-table",{ref:"deliverOrderTable",staticStyle:{width:"100%"},attrs:{data:t.list,border:""}},[n("el-table-column",{attrs:{label:"订单编号",width:"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.orderSn))]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"收货人",width:"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.receiverName))]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"手机号码",width:"160",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.receiverPhone))]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"邮政编码",width:"160",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.receiverPostCode))]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"收货地址",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.address))]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"配送方式",width:"160",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-select",{attrs:{placeholder:"请选择物流公司",size:"small"},model:{value:e.row.deliveryCompany,callback:function(n){t.$set(e.row,"deliveryCompany",n)},expression:"scope.row.deliveryCompany"}},t._l(t.companyOptions,function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})}))]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"物流单号",width:"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-input",{attrs:{size:"small"},model:{value:e.row.deliverySn,callback:function(n){t.$set(e.row,"deliverySn",n)},expression:"scope.row.deliverySn"}})]}}])})],1),t._v(" "),n("div",{staticStyle:{"margin-top":"20px"}},[n("svg-icon",{staticStyle:{color:"#606266"},attrs:{"icon-class":"marker"}}),t._v(" "),n("span",{staticClass:"font-small"},[t._v("商品信息")])],1),t._v(" "),n("el-table",{ref:"orderItemTable",staticStyle:{width:"100%","margin-top":"20px"},attrs:{data:t.order.orderItemList,border:""}},[n("el-table-column",{attrs:{label:"商品图片",width:"120",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("img",{staticStyle:{height:"80px"},attrs:{src:t.row.productPic}})]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"商品名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("p",[t._v(t._s(e.row.productName))]),t._v(" "),n("p",[t._v("品牌:"+t._s(e.row.productBrand))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("p",[t._v(t._s(t._f("formatProductStatus")(e.row.productStatus)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"价格/货号",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("p",[t._v("价格:¥"+t._s(e.row.productPrice))]),t._v(" "),n("p",[t._v("货号:"+t._s(e.row.productSn))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"属性",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("formatProductAttr")(e.row.productAttr))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"数量",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.productQuantity)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"小计",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n ¥"+t._s(e.row.productPrice*e.row.productQuantity)+"\n ")]}}])})],1),t._v(" "),n("div",{staticStyle:{"margin-top":"15px","text-align":"center"}},[n("el-button",{on:{click:t.cancel}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确定")])],1)],1)],1)},staticRenderFns:[]};var s=n("VU/8")(a,o,!1,function(t){n("AwtP")},null,null);e.default=s.exports}});
- //# sourceMappingURL=43.5d107277e75e89475854.js.map
|