You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shipin/public/admin/system_static/js/chunk-fd6d27a0.88f1f998.js

1 line
21 KiB

1 year ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-fd6d27a0"],{"1be5":function(t,e,n){t.exports=n.p+"system_static/img/pcbanner.23f05e2e.png"},"1fa1e":function(t,e,n){t.exports=n.p+"system_static/img/kefu.6c63578f.png"},"31b4":function(t,e,n){"use strict";n("a630"),n("3ca3");var i=n("5530"),a=(n("d3b7"),n("159b"),n("30ba")),r=(a=n.n(a),n("6b6c")),s=n("2f62");a={name:"edit",components:{formCreate:a.a.$form()},computed:Object(i.a)({},Object(s.d)("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,default:!0}},watch:{FromData:function(){this.FromData.rules.forEach((function(t){t.title+=":"}))}},data:function(){return{modals:!1,type:0,loading:!1,fapi:null,config:{form:{labelWidth:"100px"},resetBtn:!1,submitBtn:!1,global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.$message.error(t.msg)}}}}}}},methods:{couponsType:function(){this.$parent.addType(this.type)},formSubmit:function(){this.fapi.submit()},onSubmit:function(t){var e=this;this.loading||(this.loading=!0,Object(r.a)({url:this.FromData.action,method:this.FromData.method,data:t}).then((function(t){e.update&&e.$parent.getList(),e.$message.success(t.msg),e.modals=!1,setTimeout((function(){e.$emit("submitFail"),e.loading=!1}),1e3)})).catch((function(t){e.loading=!1,e.$message.error(t.msg)})))},cancel:function(){this.type=0}}},n("a4bd"),i=n("2877"),s=Object(i.a)(a,(function(){var t=this,e=t._self._c;return t.FromData?e("div",[e("el-dialog",{attrs:{visible:t.modals,title:t.FromData.title,"z-index":1,width:"720px"},on:{"update:visible":function(e){t.modals=e},closed:t.cancel}},[["/marketing/coupon/save.html"===t.FromData.action?e("div",{staticClass:"radio acea-row row-middle"},[e("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),e("el-radio-group",{on:{input:t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("el-radio",{attrs:{label:0}},[t._v("通用券")]),e("el-radio",{attrs:{label:1}},[t._v("品类券")]),e("el-radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(this.FromData.rules),handleIcon:"false"},on:{submit:t.onSubmit},model:{value:t.fapi,callback:function(e){t.fapi=e},expression:"fapi"}}),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.modals=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.formSubmit}},[t._v("确 定")])],1)],2)],1):t._e()}),[],!1,null,"58fdaf03",null);e.a=s.exports},"481e":function(t,e,n){},5547:function(t,e,n){"use strict";n("481e")},8593:function(t,e,n){"use strict";n.d(e,"i",(function(){return a})),n.d(e,"g",(function(){return r})),n.d(e,"h",(function(){return s})),n.d(e,"db",(function(){return o})),n.d(e,"m",(function(){return c})),n.d(e,"k",(function(){return u})),n.d(e,"l",(function(){return l})),n.d(e,"j",(function(){return d})),n.d(e,"L",(function(){return f})),n.d(e,"D",(function(){return m})),n.d(e,"K",(function(){return p})),n.d(e,"I",(function(){return g})),n.d(e,"F",(function(){return b})),n.d(e,"G",(function(){return h})),n.d(e,"H",(function(){return v})),n.d(e,"J",(function(){return _})),n.d(e,"Z",(function(){return O})),n.d(e,"fb",(function(){return j})),n.d(e,"s",(function(){return y})),n.d(e,"c",(function(){return x})),n.d(e,"e",(function(){return C})),n.d(e,"b",(function(){return k})),n.d(e,"d",(function(){return w})),n.d(e,"f",(function(){return P})),n.d(e,"w",(function(){return I})),n.d(e,"u",(function(){return T})),n.d(e,"v",(function(){return E})),n.d(e,"Q",(function(){return L})),n.d(e,"P",(function(){return S})),n.d(e,"R",(function(){return $})),n.d(e,"Y",(function(){return F})),n.d(e,"o",(function(){return G})),n.d(e,"n",(function(){return D})),n.d(e,"U",(function(){return B})),n.d(e,"q",(function(){return U})),n.d(e,"t",(function(){return V})),n.d(e,"V",(function(){return A})),n.d(e,"a",(function(){return M})),n.d(e,"A",(function(){return W})),n.d(e,"cb",(function(){return z})),n.d(e,