Commit d6460ae3 by 无尘

fix: 修改下发设置

parent d864f057
.p-l-35[data-v-73c95a05]{padding-left:35px}
\ No newline at end of file
.p-l-35[data-v-7d05e143]{padding-left:35px}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-781e1496"],{"0db3":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-app-right"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"30px"},nativeOn:{submit:function(e){e.preventDefault()}}},[r("el-form-item",{attrs:{label:"",prop:"days"}},[r("span",{staticClass:"font-14 color-606266"},[e._v("下发时间当月,第 ")]),r("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入",step:1,"step-strictly":!0,min:1,max:28},model:{value:e.ruleForm.days,callback:function(t){e.$set(e.ruleForm,"days",t)},expression:"ruleForm.days"}}),r("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("号")]),r("span",{staticClass:"font-14 color-909399 p-l-35"},[e._v("注:如当月第28天下发,如果现在是1月份,即1月28号下发2月份指标。设置后次日生效")])],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)},a=[],o=r("9f7c"),s=r("d157"),i=o["a"].saveTargetSet,u=o["a"].getTargetSet,c={name:"TargetSet",components:{},props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",userInfo:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")):{staffId:"",staffName:""},ruleForm:{days:""},rules:{days:[{required:!0,message:"请输入",trigger:"blur"}]},loadingBtn:!1}},mounted:function(){var e=this;e.brandId&&e.getData()},methods:{saveSet:Object(s["a"])((function(){var e=this;e.loadingBtn=!0,e.postSave()}),300),postSave:function(){var e=this,t={days:e.ruleForm.days,enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,submitStaffId:e.userInfo.staffId,submitStaffName:e.userInfo.staffName};i(t).then((function(t){e.loadingBtn=!1,e.$message.success("保存成功")})).catch((function(t){e.loadingBtn=!1}))},getData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId};u(t).then((function(t){e.ruleForm.days=t.result.days||""})).catch((function(e){}))}},watch:{brandId:function(e,t){var r=this;e&&r.getData()}}},l=c,f=(r("23e6"),r("2877")),p=Object(f["a"])(l,n,a,!1,null,"73c95a05",null);t["default"]=p.exports},"23e6":function(e,t,r){"use strict";var n=r("68fb"),a=r.n(n);a.a},"28a5":function(e,t,r){"use strict";var n=r("aae3"),a=r("cb7c"),o=r("ebd6"),s=r("0390"),i=r("9def"),u=r("5f1b"),c=r("520a"),l=r("79e5"),f=Math.min,p=[].push,m="split",d="length",g="lastIndex",h=4294967295,v=!l((function(){RegExp(h,"y")}));r("214f")("split",2,(function(e,t,r,l){var b;return b="c"=="abbc"[m](/(b)*/)[1]||4!="test"[m](/(?:)/,-1)[d]||2!="ab"[m](/(?:ab)*/)[d]||4!="."[m](/(.?)(.?)/)[d]||"."[m](/()()/)[d]>1||""[m](/.?/)[d]?function(e,t){var a=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(a,e,t);var o,s,i,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,m=void 0===t?h:t>>>0,v=new RegExp(e.source,l+"g");while(o=c.call(v,a)){if(s=v[g],s>f&&(u.push(a.slice(f,o.index)),o[d]>1&&o.index<a[d]&&p.apply(u,o.slice(1)),i=o[0][d],f=s,u[d]>=m))break;v[g]===o.index&&v[g]++}return f===a[d]?!i&&v.test("")||u.push(""):u.push(a.slice(f)),u[d]>m?u.slice(0,m):u}:"0"[m](void 0,0)[d]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var a=e(this),o=void 0==r?void 0:r[t];return void 0!==o?o.call(r,a,n):b.call(String(a),r,n)},function(e,t){var n=l(b,e,this,t,b!==r);if(n.done)return n.value;var c=a(e),p=String(this),m=o(c,RegExp),d=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),F=new m(v?c:"^(?:"+c.source+")",g),S=void 0===t?h:t>>>0;if(0===S)return[];if(0===p.length)return null===u(F,p)?[p]:[];var y=0,I=0,D=[];while(I<p.length){F.lastIndex=v?I:0;var w,x=u(F,v?p:p.slice(I));if(null===x||(w=f(i(F.lastIndex+(v?0:I)),p.length))===y)I=s(p,I,d);else{if(D.push(p.slice(y,I)),D.length===S)return D;for(var E=1;E<=x.length-1;E++)if(D.push(x[E]),D.length===S)return D;I=y=w}}return D.push(p.slice(y)),D}]}))},"68fb":function(e,t,r){},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("ac6a"),r("456d");var n=r("b775");function a(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var a=e[r];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[r]=function(e,t){return Object(n["a"])(a,e,t)}})),e}},"9f7c":function(e,t,r){"use strict";var n=r("71f6"),a={getTargetList:"/performance/total-performance-list",getStorePerformanceDetail:"/performance/list-store-performance",changeStorePerformanceMonth:"/performance/change-store-month-performance",getStorePerformanceDay:"/performance/list-day-performance",changeStorePerformanceDay:{url:"/performance/save-day-performance",method:"post",useFormData:!0},getStorePerformanceClerk:"/performance/list-clerk-performance",changeStorePerformanceClerk:{url:"/performance/save-clerk-performance",method:"post",useFormData:!0},getYearList:"/setting/get-year-list",getStorePerformanceList:"/setting/list-store-performance",getNoStorePerformanceList:"/setting/list-no-store-performance",saveStorePerformance:{url:"/setting/add-store-performance",method:"post",useFormData:!0,useIntercept:!0},editStorePerformance:{url:"/setting/edit-single-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchEditStorePerformance:{url:"/setting/batch-setting-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchSettingRight:"/setting/batch-setting-right",getTargetSet:"/setting/get-performance-setting",saveTargetSet:{url:"/setting/save-performance-setting",method:"post",useFormData:!0}};a=Object(n["a"])(a,"/hb-app-performance-web"),t["a"]=a},d157:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return o}));r("c5f6"),r("a481"),r("28a5"),r("6b54");function n(e,t){var r,n=t||200;return function(){var t=this,a=arguments;r&&clearTimeout(r),r=setTimeout((function(){r=null,e.apply(t,a)}),n)}}function a(e,t){var r,n,a=t||200;return function(){var t=this,o=arguments,s=+new Date;r&&s-r<a?(clearTimeout(n),n=setTimeout((function(){r=s,e.apply(t,o)}),a)):(r=s,e.apply(t,o))}}function o(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8f209df2"],{"0db3":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-app-right"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"30px"},nativeOn:{submit:function(e){e.preventDefault()}}},[r("el-form-item",{attrs:{label:"",prop:"days"}},[r("span",{staticClass:"font-14 color-606266"},[e._v("下发时间当月,第 ")]),r("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入",step:1,"step-strictly":!0,min:1,max:28},model:{value:e.ruleForm.days,callback:function(t){e.$set(e.ruleForm,"days",t)},expression:"ruleForm.days"}}),r("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("号")]),r("span",{staticClass:"font-14 color-909399 p-l-35"},[e._v("注:如当月第28天下发,如果现在是1月份,即1月28号下发2月份指标。设置后次日生效")])],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)},a=[],o=r("9f7c"),s=r("d157"),i=o["a"].saveTargetSet,u=o["a"].getTargetSet,c={name:"TargetSet",components:{},props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",userInfo:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")):{staffId:"",staffName:""},ruleForm:{days:""},rules:{days:[{required:!0,message:"请输入",trigger:"blur"}]},loadingBtn:!1}},methods:{saveSet:Object(s["a"])((function(){var e=this;e.loadingBtn=!0,e.postSave()}),300),postSave:function(){var e=this,t={days:e.ruleForm.days,enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,submitStaffId:e.userInfo.staffId,submitStaffName:e.userInfo.staffName};i(t).then((function(t){e.loadingBtn=!1,e.$message.success("保存成功")})).catch((function(t){e.loadingBtn=!1}))},getData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId};u(t).then((function(t){e.ruleForm.days=t.result.days||""})).catch((function(e){}))}},watch:{brandId:function(e,t){var r=this;e&&r.getData()}}},l=c,f=(r("c31e"),r("2877")),p=Object(f["a"])(l,n,a,!1,null,"7d05e143",null);t["default"]=p.exports},"28a5":function(e,t,r){"use strict";var n=r("aae3"),a=r("cb7c"),o=r("ebd6"),s=r("0390"),i=r("9def"),u=r("5f1b"),c=r("520a"),l=r("79e5"),f=Math.min,p=[].push,m="split",d="length",g="lastIndex",h=4294967295,v=!l((function(){RegExp(h,"y")}));r("214f")("split",2,(function(e,t,r,l){var F;return F="c"=="abbc"[m](/(b)*/)[1]||4!="test"[m](/(?:)/,-1)[d]||2!="ab"[m](/(?:ab)*/)[d]||4!="."[m](/(.?)(.?)/)[d]||"."[m](/()()/)[d]>1||""[m](/.?/)[d]?function(e,t){var a=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(a,e,t);var o,s,i,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,m=void 0===t?h:t>>>0,v=new RegExp(e.source,l+"g");while(o=c.call(v,a)){if(s=v[g],s>f&&(u.push(a.slice(f,o.index)),o[d]>1&&o.index<a[d]&&p.apply(u,o.slice(1)),i=o[0][d],f=s,u[d]>=m))break;v[g]===o.index&&v[g]++}return f===a[d]?!i&&v.test("")||u.push(""):u.push(a.slice(f)),u[d]>m?u.slice(0,m):u}:"0"[m](void 0,0)[d]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var a=e(this),o=void 0==r?void 0:r[t];return void 0!==o?o.call(r,a,n):F.call(String(a),r,n)},function(e,t){var n=l(F,e,this,t,F!==r);if(n.done)return n.value;var c=a(e),p=String(this),m=o(c,RegExp),d=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),b=new m(v?c:"^(?:"+c.source+")",g),S=void 0===t?h:t>>>0;if(0===S)return[];if(0===p.length)return null===u(b,p)?[p]:[];var y=0,I=0,D=[];while(I<p.length){b.lastIndex=v?I:0;var w,x=u(b,v?p:p.slice(I));if(null===x||(w=f(i(b.lastIndex+(v?0:I)),p.length))===y)I=s(p,I,d);else{if(D.push(p.slice(y,I)),D.length===S)return D;for(var E=1;E<=x.length-1;E++)if(D.push(x[E]),D.length===S)return D;I=y=w}}return D.push(p.slice(y)),D}]}))},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("ac6a"),r("456d");var n=r("b775");function a(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var a=e[r];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[r]=function(e,t){return Object(n["a"])(a,e,t)}})),e}},"9f7c":function(e,t,r){"use strict";var n=r("71f6"),a={getTargetList:"/performance/total-performance-list",getStorePerformanceDetail:"/performance/list-store-performance",changeStorePerformanceMonth:"/performance/change-store-month-performance",getStorePerformanceDay:"/performance/list-day-performance",changeStorePerformanceDay:{url:"/performance/save-day-performance",method:"post",useFormData:!0},getStorePerformanceClerk:"/performance/list-clerk-performance",changeStorePerformanceClerk:{url:"/performance/save-clerk-performance",method:"post",useFormData:!0},getYearList:"/setting/get-year-list",getStorePerformanceList:"/setting/list-store-performance",getNoStorePerformanceList:"/setting/list-no-store-performance",saveStorePerformance:{url:"/setting/add-store-performance",method:"post",useFormData:!0,useIntercept:!0},editStorePerformance:{url:"/setting/edit-single-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchEditStorePerformance:{url:"/setting/batch-setting-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchSettingRight:"/setting/batch-setting-right",getTargetSet:"/setting/get-performance-setting",saveTargetSet:{url:"/setting/save-performance-setting",method:"post",useFormData:!0}};a=Object(n["a"])(a,"/hb-app-performance-web"),t["a"]=a},c31e:function(e,t,r){"use strict";var n=r("dd89"),a=r.n(n);a.a},d157:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return o}));r("c5f6"),r("a481"),r("28a5"),r("6b54");function n(e,t){var r,n=t||200;return function(){var t=this,a=arguments;r&&clearTimeout(r),r=setTimeout((function(){r=null,e.apply(t,a)}),n)}}function a(e,t){var r,n,a=t||200;return function(){var t=this,o=arguments,s=+new Date;r&&s-r<a?(clearTimeout(n),n=setTimeout((function(){r=s,e.apply(t,o)}),a)):(r=s,e.apply(t,o))}}function o(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}},dd89:function(e,t,r){}}]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment