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KAAKwB,aAAe4H,EACpBpJ,KAAK+H,MAAO,GAERsB,OArDC,SAqDMnD,GAAI,gKACT,EAAKuC,QAAQvC,GADJ,OAEf,EAAK6B,MAAO,EAFG,8CAIXuB,WAzDC,SAyDUpD,GAAI,gKAEjB,EAAKO,OAAOC,OAAO,cAAc,GAFhB,SAGX,EAAKa,OAAOgC,OAAZ,WAAuB,EAAKnB,aAA5B,YAA4ClC,EAA5C,MAHW,cAIjB,EAAK0C,WAAW,yBAJC,SAKX,EAAKY,MAAL,UAAc,EAAKtB,SAAnB,QAAkCuB,QALvB,0DAOjBxC,QAAQC,IAAR,MAPiB,yBASjB,EAAKT,OAAOC,OAAO,cAAc,GAThB,kF,sBCxFzB,IAAIgD,EAAM,CACT,aAAc,CACb,MACA,MAED,gBAAiB,CAChB,MACA,MAED,gBAAiB,CAChB,MACA,MAED,gBAAiB,CAChB,MACA,MAED,gBAAiB,CAChB,KACA,MAED,cAAe,CACd,MACA,MAED,uBAAwB,CACvB,MACA,MAED,kBAAmB,CAClB,KACA,MAED,aAAc,CACb,MACA,MAED,eAAgB,CACf,MACA,MAED,cAAe,CACd,MACA,MAED,eAAgB,CACf,MACA,MAED,aAAc,CACb,MACA,MAED,YAAa,CACZ,MACA,OAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,WAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,KAIR,IAAIG,EAAMX,EAAIE,GAAM1D,EAAKmE,EAAI,GAC7B,OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,MAAK,WACzC,OAAOJ,EAAoB3D,MAG7ByD,EAAoBW,KAAO,WAAa,OAAO7H,OAAO6H,KAAKZ,IAC3DC,EAAoBzD,GAAK,MACzBqE,EAAOC,QAAUb,G","sources":["webpack://liman/./src/views/user/customer/add-edit-customer.vue?d41e","webpack://liman/src/views/user/customer/add-edit-customer.vue","webpack://liman/./src/views/user/customer/add-edit-customer.vue?b14e","webpack://liman/./src/views/user/customer/add-edit-customer.vue","webpack://liman/./src/mixins/city.js","webpack://liman/./src/mixins/negoTbl.js","webpack://liman/./src/mixins/restFull.js","webpack://liman/./src/tableModel|lazy|/^/.*Tbl$/|groupOptions: {}|namespace object"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h4',[_vm._v(\" اطلاعات پایه \")]),_c('a-steps',{attrs:{\"type\":\"navigation\",\"size\":\"small\"},model:{value:(_vm.step),callback:function ($$v) {_vm.step=$$v},expression:\"step\"}},_vm._l((_vm.formsName),function(item){return _c('a-step',{key:item,attrs:{\"title\":item}})}),1),_vm._l((_vm.form),function(item,index){return _c('sedmed-form',{directives:[{name:\"show\",rawName:\"v-show\",value:(index === _vm.step),expression:\"index === step\"}],key:index,ref:\"forms\",refInFor:true,attrs:{\"name\":_vm.formsName[index],\"hasBtn\":false,\"items\":_vm.form[index],\"initial-value\":_vm.initialValue,\"select-options\":index === 1 ? _vm.shopformOptions :index === 4 ? _vm.additionalformOptions : undefined},on:{\"change_province\":_vm.getCities}},[_c('div',{staticClass:\"flex\",attrs:{\"slot\":\"after\"},slot:\"after\"},[(index !== 0)?_c('a-button',{staticClass:\"mr-2\",on:{\"click\":function($event){_vm.step--}}},[_vm._v(\"مرحله قبل\")]):_vm._e(),(index !== 4)?_c('a-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.validate(index, $event)}}},[_vm._v(\"مرحله بعد\")]):_vm._e(),(index === 4)?_c('a-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.validate(-1, $event)}}},[_vm._v(\"ثبت\")]):_vm._e()],1)])})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <h4>\r\n اطلاعات پایه\r\n </h4>\r\n\r\n <a-steps v-model=\"step\" type=\"navigation\" size=\"small\">\r\n <a-step v-for=\"item in formsName\" :key=\"item\" :title=\"item\"/>\r\n </a-steps>\r\n\r\n <sedmed-form v-for=\"(item,index) in form\" :key=\"index\" v-show=\"index === step\" :name=\"formsName[index]\"\r\n :hasBtn=\"false\" :items=\"form[index]\" :initial-value=\"initialValue\"\r\n ref=\"forms\" @change_province=\"getCities\"\r\n :select-options=\"index === 1 ? shopformOptions :index === 4 ? additionalformOptions : undefined\">\r\n <div class=\"flex\" slot=\"after\">\r\n <a-button class=\"mr-2\" @click=\"step--\" v-if=\"index !== 0\">مرحله قبل</a-button>\r\n <a-button type=\"primary\" @click=\"validate(index, $event)\" v-if=\"index !== 4\">مرحله بعد</a-button>\r\n <a-button type=\"primary\" @click=\"validate(-1, $event)\" v-if=\"index === 4\">ثبت</a-button>\r\n </div>\r\n </sedmed-form>\r\n\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport city from '@/mixins/city'\r\nimport defaultFeilds from '@/mixins/defaultFeilds'\r\nimport SedmedForm from '@/components/sedmed-form/sedmed-form.vue'\r\nimport negoTbl from \"@/mixins/negoTbl\"\r\nimport restFull from \"@/mixins/restFull\"\r\n\r\nexport default {\r\n name: 'addEditCustomer',\r\n components: {\r\n SedmedForm,\r\n },\r\n mixins: [city, negoTbl, restFull],\r\n data() {\r\n return {\r\n step: 0,\r\n initialValue: undefined,\r\n\r\n contactFromItems: Object.assign(Object.assign({}, defaultFeilds), {\r\n phone: {label: 'تلفن ثابت', decorator: [{defaultKey: 'phone'}]},\r\n email: {label: 'ایمیل', decorator: [{defaultKey: 'mail'}]},\r\n }),\r\n\r\n shopFromItems: {\r\n shop_name: {label: 'نام فروشگاه', decorator: [{defaultKey: 'required'}]},\r\n aria: {label: 'منطقه', decorator: [{defaultKey: 'required'}]},\r\n postcode: {label: 'کد پستی', decorator: [{defaultKey: 'zip'}]},\r\n province: {\r\n label: 'استان', decorator: [/*{defaultKey: 'required'}*/], getEvent: true,\r\n custom: {\r\n mode: 'select',\r\n options: 'province',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'name'},\r\n filterOption: true,\r\n search: true\r\n },\r\n },\r\n city: {\r\n label: 'شهر', decorator: [/*{defaultKey: 'required'}*/],\r\n custom: {\r\n mode: 'select',\r\n options: 'city',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'name'},\r\n filterOption: true,\r\n search: true\r\n },\r\n },\r\n address: {\r\n label: 'آدرس',\r\n decorator: [/*{defaultKey: 'required'}*/],\r\n custom: {mode: 'textarea', autoSize: {minRows: 3, maxRows: 5},},\r\n cls: 'md:col-span-3'\r\n },\r\n },\r\n\r\n accountFromItems: {\r\n max_debt: {label: 'سقف بدهی', custom: {mode: 'number', min: 0}, itemCls: 'w-full hide-counter'},\r\n max_period: {label: 'سقف مدت', custom: {mode: 'number', min: 0}, itemCls: 'w-full hide-counter'},\r\n economical_number: {label: 'شماره اقتصادی', decorator: [{defaultKey: 'num'}]},\r\n registration_number: {label: 'شماره ثبت', decorator: [{defaultKey: 'num'}]},\r\n },\r\n\r\n additionalFromItems: {\r\n telegram: {label: 'آیدی تلگرام'},\r\n instagram: {label: 'آیدی اینستاگرام'},\r\n whatsapp: {label: 'آیدی واتس اپ'},\r\n web_url: {label: 'آدرس سایت'},\r\n first_currency: {\r\n label: 'نوع ارز اول', decorator: [{defaultKey: 'required'}],\r\n custom: {\r\n mode: 'select',\r\n options: 'currency',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'name'},\r\n filterOption: true,\r\n search: true\r\n },\r\n },\r\n second_currency: {\r\n label: 'نوع ارز دوم', decorator: [{defaultKey: 'required'}],\r\n custom: {\r\n mode: 'select',\r\n options: 'currency',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'name'},\r\n filterOption: true,\r\n search: true\r\n },\r\n },\r\n metal: {\r\n label: 'جنس فلز', decorator: [{defaultKey: 'required'}],\r\n custom: {\r\n mode: 'select',\r\n options: 'metal',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'name'},\r\n filterOption: true,\r\n search: true\r\n },\r\n },\r\n },\r\n\r\n docFromItems: {\r\n national_card_img: {\r\n label: 'تصویر کارت ملی',\r\n custom: {mode: 'upload', type: 'single', urlKey: 'national_card_img_url'},\r\n initialValue: []\r\n },\r\n license_img: {label: 'تصویر جواز', custom: {mode: 'upload', type: 'single', urlKey: 'license_img_url'}, initialValue: []},\r\n doc_img: {\r\n label: 'تصویر سند یا اجاره نامه',\r\n custom: {mode: 'upload', type: 'single', urlKey: 'doc_img_url'},\r\n initialValue: []\r\n },\r\n },\r\n\r\n formsName: ['اطلاعات تماس', 'اطلاعات فروشگاه', 'اطلاعات حساب کاربری', 'مدارک', 'اطلاعات تکمیلی'],\r\n }\r\n },\r\n computed: {\r\n additionalformOptions() {\r\n return {\r\n currency: this.currency,\r\n metal: this.metal,\r\n }\r\n },\r\n shopformOptions() {\r\n return {\r\n province: this.province,\r\n city: this.cities,\r\n }\r\n },\r\n form() {\r\n return [\r\n this.contactFromItems,\r\n this.shopFromItems,\r\n this.accountFromItems,\r\n this.docFromItems,\r\n this.additionalFromItems,\r\n ]\r\n },\r\n },\r\n async created() {\r\n await this.getNegotiableByType('currency')\r\n await this.getNegotiableByType('metal')\r\n },\r\n methods: {\r\n handelSubmit(values) {\r\n const val = Object.assign(values, {full_name: `${values.first_name} ${values.last_name}`})\r\n if (typeof val.city == 'object' && val.city.id && val.city.parent && val.city.parent.id) {\r\n val.province = val.city.parent.id\r\n val.city = val.city.id\r\n }\r\n if (typeof val.city == 'object') val.city = null\r\n if (this.id) return this.update(val)\r\n return this.create(val)\r\n },\r\n validate(index, $event) {\r\n if (index !== -1) {\r\n const returnedData = this.$refs.forms[index].handleSubmit($event)\r\n if (returnedData) return this.step++\r\n } else {\r\n let isCorrect = true\r\n let values = {}\r\n for (let i = 0; i < 5; i++) {\r\n const returnedData = this.$refs.forms[i].handleSubmit($event)\r\n if (!returnedData) {\r\n isCorrect = false\r\n break\r\n }\r\n values = Object.assign(values, returnedData)\r\n }\r\n if (isCorrect) this.handelSubmit(values)\r\n }\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/.pnpm/thread-loader@3.0.4_webpack@5.70.0/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/.pnpm/babel-loader@8.2.3_ed870ac3ba52c4ec230ba2bc3dbb311c/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/.pnpm/@vue+cli-service@5.0.1_c60d37d6f98edb8bb59b38caea4c9fe8/node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./add-edit-customer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/.pnpm/thread-loader@3.0.4_webpack@5.70.0/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/.pnpm/babel-loader@8.2.3_ed870ac3ba52c4ec230ba2bc3dbb311c/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/.pnpm/@vue+cli-service@5.0.1_c60d37d6f98edb8bb59b38caea4c9fe8/node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./add-edit-customer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./add-edit-customer.vue?vue&type=template&id=20a7eae4&scoped=true&\"\nimport script from \"./add-edit-customer.vue?vue&type=script&lang=js&\"\nexport * from \"./add-edit-customer.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/.pnpm/vue-loader@15.9.8_1f9b6d6a8c5e3033a639476f0cf6d876/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"20a7eae4\",\n null\n \n)\n\nexport default component.exports","export default {\r\n data() {\r\n return {\r\n province: [],\r\n cities: [],\r\n }\r\n },\r\n methods: {\r\n async getProvince() {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const { data: {rows} } = await this.$caxios.post('/utility/province/table',{\r\n limit:2000,\r\n filters: [{field: 'level', value: 1}],\r\n })\r\n this.province = rows[0]\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n async getCities(id) {\r\n try {\r\n if (id) {\r\n this.$store.commit('setLoading', true)\r\n const { data: {rows} } = await this.$caxios.post('/utility/province/table',{\r\n filters: [{field: 'parent', value: id}],\r\n limit:2000,\r\n })\r\n this.cities = rows[0]\r\n }\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n },\r\n}\r\n","export default {\r\n data() {\r\n return {\r\n negoTypes: {\r\n currency: 1,\r\n metal: 2,\r\n stone: 3,\r\n negotiable: 4,\r\n },\r\n negotiable: [],\r\n stone: [],\r\n metal: [],\r\n currency: [],\r\n }\r\n },\r\n methods: {\r\n async getNegotiableByType(type) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const { data: {rows} } = await this.$axios.post('/negotiable/table',{\r\n filters: [{field: 'type', op: 'like', value: this.negoTypes[type]}],\r\n limit: 2000\r\n })\r\n this[type] = rows[0]\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n showCurrency(id){\r\n const item = this.currency.find(x => x.id == id)\r\n return item && item.name ? item.name : 'نا معتبر'\r\n },\r\n showMetal(id){\r\n const item = this.metal.find(x => x.id == id)\r\n return item && item.name ? item.name : 'نا معتبر'\r\n },\r\n showStone(id){\r\n const item = this.stone.find(x => x.id == id)\r\n return item && item.name ? item.name : 'نا معتبر'\r\n },\r\n showNegotiable(id){\r\n const item = this.negotiable.find(x => x.id == id)\r\n return item && item.name ? item.name : 'نا معتبر'\r\n },\r\n },\r\n}\r\n","export default {\r\n data() {\r\n return {\r\n initialValue: undefined,\r\n model: undefined,\r\n view: false,\r\n }\r\n },\r\n computed: {\r\n id() {\r\n return this.$route.params.id\r\n },\r\n restfull() {\r\n return this.$route.meta.restfull\r\n },\r\n restfullPath() {\r\n return this.$route.meta.restfullPath || this.$route.meta.restfull\r\n },\r\n customRoute() {\r\n return this.$route.meta.isCustomRoute\r\n },\r\n },\r\n async created() {\r\n const model = await import(`@/tableModel/${this.restfull}Tbl`)\r\n this.model = model.default\r\n if (this.id && !this.customRoute) await this.getData()\r\n if (this.initialValue && this.initialValue.city) {\r\n await this.getProvince()\r\n if (this.initialValue.province) await this.getCities(this.initialValue.province)\r\n }\r\n },\r\n methods: {\r\n async getData(id = undefined) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const {data} = await this.$axios.get(`/${this.restfullPath}/${id || this.id}/`)\r\n if (data && data.city && data.city.id && data.city.parent && data.city.parent.id) {\r\n this.initialValue = Object.assign(data, {\r\n province: data.city.parent.id,\r\n city: data.city.id\r\n })\r\n }\r\n else this.initialValue = data\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n async update(values) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n await this.$axios.patch(`/${this.restfullPath}/${this.id}/`, values)\r\n this.$ntSuccess('اطلاعات با موفقیت آپدیت شد')\r\n await this.$router.push({name: `${this.restfull}_list`})\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n async create(values) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n await this.$axios.post(`/${this.restfullPath}/`, values)\r\n this.$ntSuccess('اطلاعات با موفقیت ثبت شد')\r\n await this.$router.push({name: `${this.restfull}_list`})\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n\r\n\r\n\r\n // list methods\r\n toEdit(id) {\r\n window.open(`/${this.restfull}/edit/${id}`, '_blank').focus()\r\n },\r\n setInitialValue(row) {\r\n this.initialValue = row\r\n this.view = true\r\n },\r\n async toView(id) {\r\n await this.getData(id)\r\n this.view = true\r\n },\r\n async deleteItem(id) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n await this.$axios.delete(`/${this.restfullPath}/${id}/`)\r\n this.$ntSuccess('آیتم با موفقیت حذف شد')\r\n await this.$refs[`${this.restfull}Tbl`].fetch()\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n },\r\n}\r\n","var map = {\n\t\"./brandTbl\": [\n\t\t54660,\n\t\t4660\n\t],\n\t\"./categoryTbl\": [\n\t\t22881,\n\t\t2881\n\t],\n\t\"./constantTbl\": [\n\t\t77041,\n\t\t7041\n\t],\n\t\"./customerTbl\": [\n\t\t61003,\n\t\t1003\n\t],\n\t\"./documentTbl\": [\n\t\t1370,\n\t\t1370\n\t],\n\t\"./factorTbl\": [\n\t\t13159,\n\t\t3159\n\t],\n\t\"./negotiable-typeTbl\": [\n\t\t47429,\n\t\t7429\n\t],\n\t\"./negotiableTbl\": [\n\t\t2941,\n\t\t2941\n\t],\n\t\"./orderTbl\": [\n\t\t56730,\n\t\t6730\n\t],\n\t\"./porsantTbl\": [\n\t\t45693,\n\t\t5693\n\t],\n\t\"./porterTbl\": [\n\t\t63685,\n\t\t3685\n\t],\n\t\"./productTbl\": [\n\t\t44740,\n\t\t4740\n\t],\n\t\"./sasheTbl\": [\n\t\t45868,\n\t\t5868\n\t],\n\t\"./userTbl\": [\n\t\t66896,\n\t\t6896\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 18847;\nmodule.exports = webpackAsyncContext;"],"names":["render","_vm","this","_h","$createElement","_c","_self","_v","attrs","model","value","callback","$$v","step","expression","_l","item","key","index","directives","name","rawName","ref","refInFor","formsName","form","initialValue","shopformOptions","additionalformOptions","undefined","on","getCities","staticClass","slot","$event","_e","validate","staticRenderFns","components","SedmedForm","mixins","data","contactFromItems","Object","assign","phone","label","decorator","defaultKey","email","shopFromItems","shop_name","aria","postcode","province","getEvent","custom","mode","options","options_mode","options_key","val","display","filterOption","search","city","address","autoSize","minRows","maxRows","cls","accountFromItems","max_debt","min","itemCls","max_period","economical_number","registration_number","additionalFromItems","telegram","instagram","whatsapp","web_url","first_currency","second_currency","metal","docFromItems","national_card_img","type","urlKey","license_img","doc_img","computed","currency","cities","methods","handelSubmit","values","full_name","parent","id","update","create","returnedData","isCorrect","component","getProvince","$store","commit","$caxios","post","limit","filters","field","rows","console","log","negoTypes","stone","negotiable","getNegotiableByType","$axios","op","showCurrency","find","x","showMetal","showStone","showNegotiable","view","$route","params","restfull","meta","restfullPath","customRoute","isCustomRoute","created","default","getData","get","patch","$ntSuccess","$router","push","toEdit","window","open","focus","setInitialValue","row","toView","deleteItem","delete","$refs","fetch","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","keys","module","exports"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure