(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34b99330"],{"254e":function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return i}));var l=a("b775");function o(e){return Object(l["a"])({url:"/coupon/coupon/list",method:"get",params:e})}function s(e){return Object(l["a"])({url:"/coupon/coupon/"+e,method:"get"})}function i(e){return Object(l["a"])({url:"/coupon/coupon/examine",method:"post",data:e})}},"8c90":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{staticClass:"card-layout"},[a("div",{staticClass:"detail-info"},[a("el-row",[a("el-col",{attrs:{span:12}},[e._v("优惠券标题："+e._s(e.detail.couponTitle))])],1),a("el-row",[a("el-col",{attrs:{span:12}},[e._v("优惠券分类："+e._s(e.detail.categoryName))])],1),a("el-row",[a("el-col",{attrs:{span:12}},[e._v("优惠券类型："),a("dict-tag",{staticStyle:{display:"inline-block"},attrs:{options:e.dict.type.coupon_type,value:e.detail.couponType}})],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[e._v("有效期："+e._s("1"===e.detail.validityType?e.detail.validityStartDate+" ~ "+e.detail.validityEndDate:"领取后"+e.detail.validityNum+"天内"))])],1),a("el-row",[a("el-col",{attrs:{span:12}},[e._v("库存："+e._s(e.detail.issued))])],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"detail-label"},[e._v("领券限制：")]),a("div",{staticClass:"detail-value"},[a("div",[e._v("每人总共可领取 "+e._s(-1===e.detail.receiveTotal?"不限制":e.detail.receiveTotal+"张")+" ")]),a("div",[e._v("每人每日可领取 "+e._s(-1===e.detail.receiveDay?"不限制":e.detail.receiveDay+"张")+" ")])])])],1),a("el-row",[a("el-col",{attrs:{span:12}},[e._v("适用门店："+e._s(e.detail.storeName))])],1),a("el-row",[a("el-col",{attrs:{span:12}},[e._v("优惠券照片："),a("ImagePreview",{attrs:{src:e.detail.url||"","src-list":[e.detail.url]}})],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[e._v("使用须知："+e._s(e.detail.remarks))])],1),"team"===e.detail.couponType?a("el-row",[a("el-col",{attrs:{span:12}},[e._v("套餐名称："+e._s(e.detail.mealTitle))])],1):e._e(),"team"===e.detail.couponType?a("el-row",[a("el-col",{attrs:{span:12}},[e._v("套餐原价："+e._s(e.detail.originalPrice)+"元")])],1):e._e(),"team"===e.detail.couponType?a("el-row",[a("el-col",{attrs:{span:12}},[e._v("折扣价："+e._s(e.detail.presentPrice)+"元")])],1):e._e(),"team"===e.detail.couponType?a("el-row",[a("el-col",{attrs:{span:12}},[e._v("备注："+e._s(e.detail.mealRemarks))])],1):e._e(),"team"===e.detail.couponType?e._l(e.detail.couponDetailList,(function(t,l){return a("el-row",{key:l},[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%"}},[a("div",[e._v(e._s(t.category))]),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.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)})):e._e(),a("el-row",[a("el-col",{attrs:{span:12}},[e._v("每日发放限制："+e._s(-1===e.detail.grant?"不限制":e.detail.grant+"张"))])],1)],2)]),a("el-card",{staticClass:"card-layout",staticStyle:{"margin-top":"20px"}},[a("el-form",{ref:"formRef",attrs:{"label-width":"auto",model:e.form}},[a("el-form-item",{attrs:{prop:"examineReason",label:"审核意见"}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.examineReason,callback:function(t){e.$set(e.form,"examineReason",t)},expression:"form.examineReason"}})],1)],1)],1),a("div",{staticClass:"form-bottom-btn"},[a("el-button",{attrs:{type:"primary"},on:{click:e.handlePass}},[e._v("审核通过")]),a("el-button",{attrs:{type:"danger"},on:{click:e.handleUnPass}},[e._v("审核不通过")])],1)],1)},o=[],s=a("254e"),i={name:"CouponAuditAudit",dicts:["coupon_type","examine_status"],data:function(){return{detail:{},form:{examineReason:void 0}}},mounted:function(){this.getDetail()},methods:{getDetail:function(){var e=this;Object(s["b"])(this.$route.query.id).then((function(t){e.detail=t.data}))},handlePass:function(){var e=this;Object(s["a"])({id:this.detail.id,examineStatus:"1"}).then((function(t){e.$message.success("审核完成"),e.$tab.closeOpenPage(),e.$router.push({name:"CouponAudit",params:{refreshTable:!0}})}))},handleUnPass:function(){var e=this;this.form.examineReason?Object(s["a"])({id:this.detail.id,examineStatus:"2",examineReason:this.form.examineReason}).then((function(t){e.$message.success("审核完成"),e.$tab.closeOpenPage(),e.$router.push({name:"CouponAudit",params:{refreshTable:!0}})})):this.$modal.msgError("审核不通过需输入原因")}}},n=i,r=(a("9324"),a("2877")),c=Object(r["a"])(n,l,o,!1,null,"2cddfebe",null);t["default"]=c.exports},9324:function(e,t,a){"use strict";a("c01d")},c01d:function(e,t,a){}}]);