PointRules.57bbb007.js 8.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PointRules"],{4412:function(e,t,a){},"68b4":function(e,t,a){},7927:function(e,t,a){"use strict";a("4412")},8396:function(e,t,a){"use strict";a("68b4")},a543:function(e,t,a){"use strict";a.r(t);a("498a");var s=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"PointRules","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[t("el-row",{staticClass:"box"},[t("div",{staticClass:"title",staticStyle:{"margin-bottom":"0"}},[t("div",{staticClass:"label"},[t("span")]),e.display["R-Shop-Point-Rules-Update"].show?t("div",{staticClass:"btnTab"},[e.btnType?t("span",[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Save",expression:"'Btn.Save'"}],staticClass:"btn crm_state_blue crm-cursor",on:{click:e.toSave}}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],staticClass:"btn crm_state_red crm-cursor",on:{click:e.cancelSave}})]):t("span",{staticClass:"icon",on:{click:function(t){e.btnType=!0}}},[t("i",{staticClass:"el-icon-edit-outline crm-cursor"})])]):e._e()]),t("el-col",{staticClass:"table",attrs:{span:24}},[t("table",{attrs:{width:"100%",border:"1px"}},[t("tr",{staticClass:"table-title"},[t("td",{directives:[{name:"t",rawName:"v-t",value:"system_info.Label.ShopSymbolType",expression:"'system_info.Label.ShopSymbolType'"}]}),t("td",{directives:[{name:"t",rawName:"v-t",value:"system_info.Label.ShopbelongType",expression:"'system_info.Label.ShopbelongType'"}]}),t("td",{directives:[{name:"t",rawName:"v-t",value:"system_info.Label.ShopTotal",expression:"'system_info.Label.ShopTotal'"}]}),t("td",{directives:[{name:"t",rawName:"v-t",value:"system_info.Label.ShopCustom",expression:"'system_info.Label.ShopCustom'"}]}),t("td",{directives:[{name:"t",rawName:"v-t",value:"system_info.Label.ShopLevelOne",expression:"'system_info.Label.ShopLevelOne'"}]}),t("td",{directives:[{name:"t",rawName:"v-t",value:"system_info.Label.ShopLevelTwo",expression:"'system_info.Label.ShopLevelTwo'"}]}),t("td",{directives:[{name:"t",rawName:"v-t",value:"system_info.Label.ShopLevelThree",expression:"'system_info.Label.ShopLevelThree'"}]}),t("td",{directives:[{name:"t",rawName:"v-t",value:"system_info.Label.ShopLevelFour",expression:"'system_info.Label.ShopLevelFour'"}]})]),e._l(e.mock_tableData.index,(function(a){return t("tr",{key:a.id,staticClass:"table-con"},[t("td",[t("el-select",{staticClass:"crm_search_down table-input",attrs:{disabled:"",size:"",placeholder:e.$t("Placeholder.Choose")},model:{value:a.symbolType,callback:function(t){e.$set(a,"symbolType",t)},expression:"item.symbolType"}},[t("el-option",{attrs:{label:e.$t("system_info.Label.ShopIndexSymbol"),value:3}}),t("el-option",{attrs:{label:e.$t("system_info.Label.ShopOtherSymbol"),value:99}})],1)],1),t("td",[t("el-select",{staticClass:"crm_search_down table-input",attrs:{disabled:"",size:"",placeholder:e.$t("Placeholder.Choose")},model:{value:a.belongType,callback:function(t){e.$set(a,"belongType",t)},expression:"item.belongType"}},[t("el-option",{attrs:{label:e.$t("system_info.Label.ShopCompanyCus"),value:1}}),t("el-option",{attrs:{label:e.$t("system_info.Label.ShopSaleCus"),value:2}}),t("el-option",{attrs:{label:e.$t("system_info.Label.ShopLevelOneCus"),value:3}}),t("el-option",{attrs:{label:e.$t("system_info.Label.ShopLevelTwoCus"),value:4}}),t("el-option",{attrs:{label:e.$t("system_info.Label.ShopLevelThreeCus"),value:5}}),t("el-option",{attrs:{label:e.$t("system_info.Label.ShopLevelFourCus"),value:6}})],1)],1),t("td",[t("el-input",{staticClass:"table-input",attrs:{disabled:!e.btnType,type:"text"},model:{value:a.total,callback:function(t){e.$set(a,"total","string"===typeof t?t.trim():t)},expression:"item.total"}})],1),t("td",[t("el-input",{staticClass:"table-input",attrs:{disabled:!e.btnType,type:"text"},model:{value:a.custom,callback:function(t){e.$set(a,"custom","string"===typeof t?t.trim():t)},expression:"item.custom"}})],1),t("td",[t("el-input",{staticClass:"table-input",attrs:{disabled:!e.btnType,type:"text"},model:{value:a.levelOne,callback:function(t){e.$set(a,"levelOne","string"===typeof t?t.trim():t)},expression:"item.levelOne"}})],1),t("td",[t("el-input",{staticClass:"table-input",attrs:{disabled:!e.btnType,type:"text"},model:{value:a.levelTwo,callback:function(t){e.$set(a,"levelTwo","string"===typeof t?t.trim():t)},expression:"item.levelTwo"}})],1),t("td",[t("el-input",{staticClass:"table-input",attrs:{disabled:!e.btnType,type:"text"},model:{value:a.levelThree,callback:function(t){e.$set(a,"levelThree","string"===typeof t?t.trim():t)},expression:"item.levelThree"}})],1),t("td",[t("el-input",{staticClass:"table-input",attrs:{disabled:!e.btnType,type:"text"},model:{value:a.levelFour,callback:function(t){e.$set(a,"levelFour","string"===typeof t?t.trim():t)},expression:"item.levelFour"}})],1)])})),e._l(e.mock_tableData.other,(function(a){return t("tr",{key:a.id,staticClass:"table-con"},[t("td",[t("el-select",{staticClass:"crm_search_down table-input",attrs:{disabled:"",size:"",placeholder:e.$t("Placeholder.Choose")},model:{value:a.symbolType,callback:function(t){e.$set(a,"symbolType",t)},expression:"item.symbolType"}},[t("el-option",{attrs:{label:e.$t("system_info.Label.ShopIndexSymbol"),value:3}}),t("el-option",{attrs:{label:e.$t("system_info.Label.ShopOtherSymbol"),value:99}})],1)],1),t("td",[t("el-select",{staticClass:"crm_search_down table-input",attrs:{disabled:"",size:"",placeholder:e.$t("Placeholder.Choose")},model:{value:a.belongType,callback:function(t){e.$set(a,"belongType",t)},expression:"item.belongType"}},[t("el-option",{attrs:{label:e.$t("system_info.Label.ShopCompanyCus"),value:1}}),t("el-option",{attrs:{label:e.$t("system_info.Label.ShopSaleCus"),value:2}}),t("el-option",{attrs:{label:e.$t("system_info.Label.ShopLevelOneCus"),value:3}}),t("el-option",{attrs:{label:e.$t("system_info.Label.ShopLevelTwoCus"),value:4}}),t("el-option",{attrs:{label:e.$t("system_info.Label.ShopLevelThreeCus"),value:5}}),t("el-option",{attrs:{label:e.$t("system_info.Label.ShopLevelFourCus"),value:6}})],1)],1),t("td",[t("el-input",{staticClass:"table-input",attrs:{disabled:!e.btnType,type:"text"},model:{value:a.total,callback:function(t){e.$set(a,"total","string"===typeof t?t.trim():t)},expression:"item.total"}})],1),t("td",[t("el-input",{staticClass:"table-input",attrs:{disabled:!e.btnType,type:"text"},model:{value:a.custom,callback:function(t){e.$set(a,"custom","string"===typeof t?t.trim():t)},expression:"item.custom"}})],1),t("td",[t("el-input",{staticClass:"table-input",attrs:{disabled:!e.btnType,type:"text"},model:{value:a.levelOne,callback:function(t){e.$set(a,"levelOne","string"===typeof t?t.trim():t)},expression:"item.levelOne"}})],1),t("td",[t("el-input",{staticClass:"table-input",attrs:{disabled:!e.btnType,type:"text"},model:{value:a.levelTwo,callback:function(t){e.$set(a,"levelTwo","string"===typeof t?t.trim():t)},expression:"item.levelTwo"}})],1),t("td",[t("el-input",{staticClass:"table-input",attrs:{disabled:!e.btnType,type:"text"},model:{value:a.levelThree,callback:function(t){e.$set(a,"levelThree","string"===typeof t?t.trim():t)},expression:"item.levelThree"}})],1),t("td",[t("el-input",{staticClass:"table-input",attrs:{disabled:!e.btnType,type:"text"},model:{value:a.levelFour,callback:function(t){e.$set(a,"levelFour","string"===typeof t?t.trim():t)},expression:"item.levelFour"}})],1)])}))],2)])],1)],1)},l=[],i=a("c14f"),n=a("5530"),o=a("1da1"),r=(a("b64b"),a("da7c")),c=a("f121"),p=a.n(c),u=p.a.Code,b={name:"PointRules",data:function(){return{pictLoading:!1,mock_tableData:{},btnType:!1}},computed:{display:function(){return JSON.parse(this.Session.Get("display",!0))},lang:function(){return this.Session.Get("lang")}},methods:{cancelSave:function(){this.btnType=!1,this.searchFunc()},toSave:function(){var e=this;return Object(o["a"])(Object(i["a"])().m((function t(){var a;return Object(i["a"])().w((function(t){while(1)switch(t.n){case 0:return e.pictLoading=!0,e.mock_tableData.id=1,t.n=1,r["a"].customPointRulesUpdate(Object(n["a"])({},e.mock_tableData));case 1:a=t.v,a.code==u.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.Success")),e.pictLoading=!1,e.cancelSave()):(e.$pigeon.MessageError(a.msg),e.pictLoading=!1);case 2:return t.a(2)}}),t)})))()},searchFunc:function(){var e=this;return Object(o["a"])(Object(i["a"])().m((function t(){var a;return Object(i["a"])().w((function(t){while(1)switch(t.n){case 0:if(e.pictLoading=!0,e.display["R-Shop-Point-Rules-Search"].show){t.n=1;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.a(2);case 1:return t.n=2,r["a"].customPointRulesList({});case 2:a=t.v,a.code==u.StatusOK?(e.mock_tableData=a.data,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(a.msg),e.pictLoading=!1);case 3:return t.a(2)}}),t)})))()}},mounted:function(){this.searchFunc()}},m=b,d=(a("8396"),a("7927"),a("2877")),v=Object(d["a"])(m,s,l,!1,null,"487a6233",null);t["default"]=v.exports}}]);