(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-267b8b09"],{"254e":function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"a",(function(){return n}));var a=o("b775");function i(t){return Object(a["a"])({url:"/coupon/coupon/list",method:"get",params:t})}function n(t){return Object(a["a"])({url:"/coupon/coupon/"+t,method:"get"})}},d129:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container"},[o("xy-table",{ref:"tableRef",attrs:{table:t.table,columns:t.columns},scopedSlots:t._u([{key:"couponType",fn:function(e){var a=e.scope;return[o("dict-tag",{attrs:{options:t.dict.type.coupon_type,value:a.row.couponType}})]}},{key:"validityType",fn:function(e){var o=e.scope;return[t._v(" "+t._s("1"===o.row.validityType?o.row.validityStartDate+" ~ "+o.row.validityEndDate:"领取后"+o.row.validityNum+"天内")+" ")]}},{key:"examineStatus",fn:function(e){var a=e.scope;return[o("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[o("xy-status-indicator",{attrs:{status:0===a.row.examineStatus?"warning":1===a.row.examineStatus?"success":2===a.row.examineStatus?"error":"",pulse:""}}),o("dict-tag",{staticStyle:{"margin-left":"4px"},attrs:{options:t.dict.type.examine_status,value:a.row.examineStatus}})],1)]}}])}),o("el-dialog",{attrs:{title:t.title,visible:t.open,width:"500px","append-to-body":""},on:{"update:visible":function(e){t.open=e}}},[o("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"120px"}},[o("el-form-item",{attrs:{label:"分类名称",prop:"categoryName"}},[o("el-input",{attrs:{placeholder:"请输入分类名称"},model:{value:t.form.categoryName,callback:function(e){t.$set(t.form,"categoryName",e)},expression:"form.categoryName"}})],1),o("el-form-item",{attrs:{label:"是否前端展示",prop:"isShow"}},[o("el-radio-group",{model:{value:t.form.isShow,callback:function(e){t.$set(t.form,"isShow",e)},expression:"form.isShow"}},t._l(t.dict.type.classify_isshow,(function(e){return o("el-radio",{key:e.value,attrs:{label:e.value}},[t._v(t._s(e.label))])})),1)],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确 定")]),o("el-button",{on:{click:t.cancel}},[t._v("取 消")])],1)],1)],1)},i=[],n=o("1da1"),r=(o("96cf"),o("254e")),l={name:"CouponAudit",dicts:["coupon_type","examine_status"],data:function(){var t=this;return{open:!1,title:void 0,form:{id:void 0,categoryName:void 0,isShow:"0"},rules:{categoryName:[{required:!0,message:"分类名称不能为空",trigger:"blur"}]},table:{rowKey:"id",data:[],firstColumn:{type:"index"},operator:[{text:"审核",icon:"el-icon-edit",noShow:[{key:"examineStatus",val:[1,2]}],fun:function(e){return t.handleEdit(e)}},{text:"查看",icon:"el-icon-view",noShow:[{key:"examineStatus",val:[0]}],fun:function(e){return t.handleDetail(e)}}],operatorConfig:{width:140},toolbar:[],page:{total:0,pageNum:1,pageSize:10},searchForm:{formLabelWidth:"90px",formData:{couponTitle:void 0,examineStatus:void 0},fieldList:[{prop:"couponTitle",label:"优惠券标题",type:"input"},{prop:"examineStatus",label:"状态",type:"select",options:"examineStatusOptions"}],listOptions:{examineStatusOptions:[]}},request:r["b"]},columns:[{prop:"couponTitle",label:"优惠券标题"},{prop:"couponType",label:"优惠券类型",slotName:"couponType"},{prop:"categoryName",label:"优惠券分类"},{prop:"validityType",label:"有效期",slotName:"validityType",minWidth:200},{prop:"createTime",label:"创建时间"},{prop:"createBy",label:"创建人"},{prop:"examineStatus",label:"状态",slotName:"examineStatus"},{prop:"examinePerson",label:"审核人"},{prop:"examineTime",label:"审核时间"}]}},mounted:function(){this.initOptions()},methods:{initOptions:function(){this.table.searchForm.listOptions.examineStatusOptions=this.dict.type.examine_status},getList:function(){this.$refs.tableRef.getData()},handleAdd:function(){},handleEdit:function(t){},handleDelete:function(t){return Object(n["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()},handleDetail:function(t){this.$router.push({path:"/coupon/couponAuditDetail/"+t.id})}}},s=l,u=o("2877"),p=Object(u["a"])(s,a,i,!1,null,null,null);e["default"]=p.exports}}]);