/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminold/export/js/chunk-2d0a3ae8.0a0b79a3.js.map
{"version":3,"sources":["webpack:///./src/views/promotion/autopromotion.vue?7fb8","webpack:///src/views/promotion/autopromotion.vue","webpack:///./src/views/promotion/autopromotion.vue?df62","webpack:///./src/views/promotion/autopromotion.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","autopromotion","loading","staticClass","model","value","callback","$$v","state","expression","directives","name","rawName","rules","required","message","staticStyle","replace","on","handleSubmit","_v","staticRenderFns","data","$form","createForm","methods","e","preventDefault","validateFields","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACE,MAAM,CAAC,KAAON,EAAIO,gBAAgB,CAACH,EAAG,QAAQ,CAACE,MAAM,CAAC,SAAWN,EAAIQ,UAAU,CAACJ,EAAG,UAAU,CAACK,YAAY,UAAUH,MAAM,CAAC,MAAQ,gDAAgD,CAACF,EAAG,MAAM,CAACK,YAAY,UAAU,CAACL,EAAG,MAAM,CAACK,YAAY,iBAAiB,CAACL,EAAG,MAAM,CAACK,YAAY,4CAA4C,CAACL,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,yBAAyB,CAACF,EAAG,WAAW,CAACE,MAAM,CAAC,KAAO,QAAQ,mBAAmB,OAAO,sBAAsB,IAAII,MAAM,CAACC,MAAOX,EAAS,MAAEY,SAAS,SAAUC,GAAMb,EAAIc,MAAMD,GAAKE,WAAW,YAAY,GAAGX,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,oCAAoC,CAACF,EAAG,iBAAiB,CAACY,WAAW,CAAC,CAACC,KAAK,YAAYC,QAAQ,cAAcP,MAAM,CAAE,mBAAmB,CAAEQ,MAAO,CAAC,CAAEC,UAAU,EAAMC,QAAS,+CAAmDN,WAAW,+GAA+GO,YAAY,CAAC,MAAQ,QAAQhB,MAAM,CAAC,IAAM,MAAM,IAAM,EAAE,IAAM,IAAI,UAAY,SAAUK,GAAS,OAAQA,EAAQ,KAAQ,OAAS,SAAUA,GAAS,OAAOA,EAAMY,QAAQ,IAAK,SAAW,IAAI,UAAU,GAAGnB,EAAG,MAAM,CAACK,YAAY,sBAAsB,CAACL,EAAG,YAAY,CAACK,YAAY,OAAOH,MAAM,CAAC,YAAY,UAAU,KAAO,aAAakB,GAAG,CAAC,MAAQxB,EAAIyB,eAAe,CAACzB,EAAI0B,GAAG,wBAAwB,IAAI,IACn6CC,EAAkB,G,oCCmCtB,GACEV,KAAM,gBACNW,KAFF,WAGI,MAAO,CACLd,OAAN,EACMP,cAAeN,KAAK4B,MAAMC,WAAW7B,KAAM,CAAjD,qBACMO,SAAS,IAGbuB,QAAS,CACPN,aADJ,SACA,cACMO,EAAEC,iBACFhC,KAAKM,cAAc2B,eAAzB,6JACA,EADA,iCAGA,aAHA,SAIA,6BACA,oCACA,wBANA,OAQA,kDARA,mDAYA,iCAEA,sDAGA,wCAjBA,yBAqBA,aArBA,uIA2BE,QAvCF,kLAwCA,+CACA,oBACA,yBACA,gCACA,8CAEA,mBACA,kBA/CA,oGCpCsW,I,YCOlWC,EAAY,eACd,EACApC,EACA4B,GACA,EACA,KACA,WACA,MAIa,aAAAQ,E","file":"js/chunk-2d0a3ae8.0a0b79a3.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-form',{attrs:{\"form\":_vm.autopromotion}},[_c('ASpin',{attrs:{\"spinning\":_vm.loading}},[_c('vx-card',{staticClass:\"mb-base\",attrs:{\"title\":\"تخفیف اتوماتیک یکبار مصرف ویژه مشتریان جدید\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"grid sm:grid-cols-1 md:grid-cols-3 gap-4\"},[_c('a-form-item',{attrs:{\"label\":\"وضعیت تخفیف اتوماتیک\"}},[_c('a-switch',{attrs:{\"size\":\"large\",\"checked-children\":\" \",\"un-checked-children\":\"\"},model:{value:(_vm.state),callback:function ($$v) {_vm.state=$$v},expression:\"state\"}})],1),_c('a-form-item',{attrs:{\"label\":\"درصد تخفیف اتوماتیک روی محصولات\"}},[_c('a-input-number',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:(['discount_percent',{ rules: [{ required: true, message: 'وارد کردن درصد تخفیف اتوماتیک الزامی است' }] } ]),expression:\"['discount_percent',{ rules: [{ required: true, message: 'وارد کردن درصد تخفیف اتوماتیک الزامی است' }] },]\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"dir\":\"ltr\",\"min\":0,\"max\":100,\"formatter\":function (value) { return (value + \"%\"); },\"parser\":function (value) { return value.replace('%', ''); }}})],1)],1)])])])],1),_c('div',{staticClass:\"vx-col w-full flex\"},[_c('vs-button',{staticClass:\"mr-4\",attrs:{\"icon-pack\":\"feather\",\"icon\":\"icon-edit\"},on:{\"click\":_vm.handleSubmit}},[_vm._v(\"ثبت اطلاعات\\n \")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <a-form :form=\"autopromotion\" >\r\n\r\n <ASpin :spinning=\"loading\">\r\n <vx-card title=\"تخفیف اتوماتیک یکبار مصرف ویژه مشتریان جدید\" class=\"mb-base\">\r\n <div class=\"vx-row\">\r\n <div class=\"vx-col w-full\">\r\n <div class=\"grid sm:grid-cols-1 md:grid-cols-3 gap-4\">\r\n <a-form-item label=\"وضعیت تخفیف اتوماتیک\">\r\n <a-switch size=\"large\" checked-children=\" \" un-checked-children=\"\" v-model=\"state\"/>\r\n </a-form-item>\r\n <a-form-item label=\"درصد تخفیف اتوماتیک روی محصولات\">\r\n <a-input-number\r\n dir=\"ltr\"\r\n :min=\"0\"\r\n :max=\"100\"\r\n :formatter=\"value => `${value}%`\"\r\n :parser=\"value => value.replace('%', '')\"\r\n v-decorator=\"['discount_percent',{ rules: [{ required: true, message: 'وارد کردن درصد تخفیف اتوماتیک الزامی است' }] },]\" style=\"width: 100%\"/>\r\n </a-form-item>\r\n </div>\r\n </div>\r\n </div>\r\n </vx-card>\r\n </ASpin>\r\n\r\n <div class=\"vx-col w-full flex\" >\r\n <vs-button icon-pack=\"feather\" icon=\"icon-edit\" @click=\"handleSubmit\" class=\"mr-4\">ثبت اطلاعات\r\n </vs-button>\r\n </div>\r\n </a-form>\r\n</template>\r\n\r\n<script>\r\nimport axios from \"@/axios\";\r\n\r\nexport default {\r\n name: \"autopromotion\",\r\n data () {\r\n return {\r\n state:false,\r\n autopromotion: this.$form.createForm(this, {name: 'coordinated'}),\r\n loading: false,\r\n }\r\n },\r\n methods: {\r\n handleSubmit(e) {\r\n e.preventDefault();\r\n this.autopromotion.validateFields(async (err, values) => {\r\n if (!err) {\r\n try {\r\n this.loading = true;\r\n await axios.put(\"/autopromotion\",{\r\n discount_percent : values.discount_percent,\r\n is_active : this.state?1:0\r\n })\r\n this.$message.info('اطلاعات با موفقیت به ثبت رسید.')\r\n } catch (e) {\r\n //let message='';\r\n //console.log(\"e ==> \" , e.response);\r\n if(e.response.data.errors.mobile)\r\n {\r\n this.$message.error(e.response.data.errors.mobile[0]);\r\n }else\r\n {\r\n this.$message.error('خطا در ثبت اطلاعات.')\r\n }\r\n\r\n } finally {\r\n this.loading = false;\r\n }\r\n }\r\n });\r\n },\r\n },\r\n async mounted() {\r\n await axios.get('/autopromotion').then((res)=>{\r\n console.log(res.data)\r\n this.state = res.data.is_active\r\n this.autopromotion.setFieldsValue({\r\n discount_percent : res.data.discount_percent\r\n })\r\n }).catch((error)=>{\r\n console.log(error)\r\n });\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./autopromotion.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./autopromotion.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./autopromotion.vue?vue&type=template&id=2cc1f7bb&scoped=true&\"\nimport script from \"./autopromotion.vue?vue&type=script&lang=js&\"\nexport * from \"./autopromotion.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2cc1f7bb\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure