(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c1734a7"],{"254e":function(t,e,a){"use strict";a.d(e,"c",(function(){return i})),a.d(e,"b",(function(){return s})),a.d(e,"a",(function(){return o}));var l=a("b775");function i(t){return Object(l["a"])({url:"/coupon/coupon/list",method:"get",params:t})}function s(t){return Object(l["a"])({url:"/coupon/coupon/"+t,method:"get"})}function o(t){return Object(l["a"])({url:"/coupon/coupon/examine",method:"post",data:t})}},7702:function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-card",{staticClass:"card-layout"},[a("div",{staticClass:"detail-title"},[a("div",[t._v("状态: "),a("dict-tag",{staticStyle:{display:"inline-block"},attrs:{options:t.dict.type.examine_status,value:t.detail.examineStatus}})],1),a("div",{staticStyle:{"margin-left":"120px"}},[t._v("审核时间: "+t._s(t.detail.examineTime))])]),2===t.detail.examineStatus?a("div",{staticStyle:{"margin-top":"10px"}},[t._v(t._s(t.detail.examineReason))]):t._e()]),a("el-card",{staticClass:"card-layout",staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"detail-info"},[a("el-row",[a("el-col",{attrs:{span:12}},[t._v("优惠券标题："+t._s(t.detail.couponTitle))])],1),a("el-row",[a("el-col",{attrs:{span:12}},[t._v("优惠券分类："+t._s(t.detail.categoryName))])],1),a("el-row",[a("el-col",{attrs:{span:12}},[t._v("优惠券类型："),a("dict-tag",{staticStyle:{display:"inline-block"},attrs:{options:t.dict.type.coupon_type,value:t.detail.couponType}})],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[t._v("有效期："+t._s("1"===t.detail.validityType?t.detail.validityStartDate+" ~ "+t.detail.validityEndDate:"领取后"+t.detail.validityNum+"天内"))])],1),a("el-row",[a("el-col",{attrs:{span:12}},[t._v("库存："+t._s(t.detail.issued))])],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"detail-label"},[t._v("领券限制：")]),a("div",{staticClass:"detail-value"},[a("div",[t._v("每人总共可领取 "+t._s(-1===t.detail.receiveTotal?"不限制":t.detail.receiveTotal+"张")+" ")]),a("div",[t._v("每人每日可领取 "+t._s(-1===t.detail.receiveDay?"不限制":t.detail.receiveDay+"张")+" ")])])])],1),a("el-row",[a("el-col",{attrs:{span:12}},[t._v("适用门店："+t._s(t.detail.storeName))])],1),a("el-row",[a("el-col",{attrs:{span:12}},[t._v("优惠券照片："),a("ImagePreview",{attrs:{src:t.detail.url||"","src-list":[t.detail.url]}})],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[t._v("使用须知："+t._s(t.detail.remarks))])],1),"team"===t.detail.couponType?a("el-row",[a("el-col",{attrs:{span:12}},[t._v("套餐名称："+t._s(t.detail.mealTitle))])],1):t._e(),"team"===t.detail.couponType?a("el-row",[a("el-col",{attrs:{span:12}},[t._v("套餐原价："+t._s(t.detail.originalPrice)+"元")])],1):t._e(),"team"===t.detail.couponType?a("el-row",[a("el-col",{attrs:{span:12}},[t._v("折扣价："+t._s(t.detail.presentPrice)+"元")])],1):t._e(),"team"===t.detail.couponType?a("el-row",[a("el-col",{attrs:{span:12}},[t._v("备注："+t._s(t.detail.mealRemarks))])],1):t._e(),"team"===t.detail.couponType?t._l(t.detail.couponDetailList,(function(e,l){return a("el-row",{key:l},[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%"}},[a("div",[t._v(t._s(e.category))]),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,size:"small"}},[a("el-table-column",{attrs:{label:"菜品",prop:"foodName"}}),a("el-table-column",{attrs:{label:"份数",prop:"foodNum"}}),a("el-table-column",{attrs:{label:"价格",prop:"foodPrice"}})],1)],1)])],1)})):t._e(),a("el-row",[a("el-col",{attrs:{span:12}},[t._v("每日发放限制："+t._s(-1===t.detail.grant?"不限制":t.detail.grant+"张"))])],1)],2)])],1)},i=[],s=a("254e"),o={name:"CouponAuditDetail",dicts:["coupon_type","examine_status"],data:function(){return{detail:{}}},mounted:function(){this.getDetail()},methods:{getDetail:function(){var t=this;Object(s["b"])(this.$route.params.id).then((function(e){t.detail=e.data}))}}},n=o,r=(a("7eb1"),a("2877")),c=Object(r["a"])(n,l,i,!1,null,"61a34d33",null);e["default"]=c.exports},"7eb1":function(t,e,a){"use strict";a("efcb")},efcb:function(t,e,a){}}]);