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KAAK0J,MAAO,GAEdxC,aAAaxG,SACLV,KAAKkK,QAAQxJ,GACnBV,KAAK0J,MAAO,GAEdxC,iBAAiBxG,GACf,IACEV,KAAK8C,OAAOqE,OAAO,cAAc,SAC3BnH,KAAK2I,OAAOC,OAAQ,IAAG5I,KAAK8J,gBAAgBpJ,MAClDV,KAAK0I,WAAW,+BACV1I,KAAK8G,MAAO,GAAE9G,KAAK4J,eAAeoB,QACxC,MAAOzD,GACPF,QAAQC,IAAIC,GANd,QAQEvH,KAAK8C,OAAOqE,OAAO,cAAc,Q,sBCjGzC,IAAI8D,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,IAAIrD,EAAI,IAAIsD,MAAM,uBAAyBN,EAAM,KAEjD,MADAhD,EAAEuD,KAAO,mBACHvD,KAIR,IAAIwD,EAAMV,EAAIE,GAAMzK,EAAKiL,EAAI,GAC7B,OAAOP,EAAoBjD,EAAEwD,EAAI,IAAIH,MAAK,WACzC,OAAOJ,EAAoB1K,MAG7BwK,EAAoBU,KAAO,WAAa,OAAO9K,OAAO8K,KAAKX,IAC3DC,EAAoBxK,GAAK,MACzBmL,EAAOC,QAAUZ,G","sources":["webpack://liman/./src/components/document-factor/generalForm.vue?8694","webpack://liman/src/components/document-factor/generalForm.vue","webpack://liman/./src/components/document-factor/generalForm.vue?f1ce","webpack://liman/./src/components/document-factor/generalForm.vue","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('sedmed-form',{ref:\"generalDocForm\",attrs:{\"items\":_vm.fromItems,\"initial-value\":_vm.initialValue,\"select-options\":_vm.formOptions,\"okText\":(\"\" + (_vm.id ? 'ویرایش' : 'ثبت'))},on:{\"create\":function($event){_vm.create(Object.assign($event,{items: _vm.items}))},\"update\":_vm.update}},[_c('div',{attrs:{\"slot\":\"after\"},slot:\"after\"},[(_vm.items.length > 0)?[_c('h4',[_vm._v(\"آیتم ها\")]),_vm._l((_vm.items),function(item){return _c('a-descriptions',{key:item.id ? item.id : item.index,staticClass:\"mt-4 p-[10px] rounded-[4px] bg-gray-100\",attrs:{\"column\":{md: 4, xs: 1 }}},[_c('div',{staticClass:\"flex\",attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\" \"+_vm._s(_vm.showNegotiable(item.negotiable))+\" \"),_c('span',{on:{\"click\":function($event){return _vm.toEditRow(item)}}},[_c('Icon',{staticClass:\"ml-2 size-24 cursor-pointer text-success\",attrs:{\"icon\":\"ion:create-outline\"}})],1),_c('span',{on:{\"click\":function($event){return _vm.deleteRow(item)}}},[_c('Icon',{staticClass:\"ml-2 size-24 cursor-pointer text-danger\",attrs:{\"icon\":\"ion:trash-outline\"}})],1)]),_vm._l((_vm.documentRowItems),function(row,index){return [(row.label)?_c('a-descriptions-item',{key:index,attrs:{\"label\":row.label}},[_vm._v(\" \"+_vm._s(row.custom && row.custom.options ? _vm.showItem(item[index], row.custom.options) : item[index])+\" \")]):_vm._e()]})],2)})]:_vm._e(),_c('div',{staticClass:\"my-2 w-full\"},[_c('a-button',{staticClass:\"m-auto block\",attrs:{\"type\":\"dashed\"},on:{\"click\":function($event){_vm.addRowModel = true}}},[_vm._v(\" افزودن ردیف \")])],1),_c('a-modal',{attrs:{\"title\":\"افزودن ردیف\",\"closable\":false,\"maskClosable\":false},model:{value:(_vm.addRowModel),callback:function ($$v) {_vm.addRowModel=$$v},expression:\"addRowModel\"}},[_c('template',{slot:\"footer\"},[_c('a-button',{key:\"back\",on:{\"click\":_vm.cancel}},[_vm._v(\" انصراف \")]),_c('a-button',{key:\"submit\",attrs:{\"type\":\"primary\",\"loading\":_vm.$store.state.loading,\"disabled\":!_vm.documentRowType},on:{\"click\":_vm.handelModal}},[(_vm.addRowStep === 1)?[_vm._v(\" تکمیل ردیف \")]:(_vm.rowId)?[_vm._v(\" ویرایش ردیف \")]:[_vm._v(\" ثبت ردیف \")]],2)],1),(_vm.addRowStep === 1)?[_c('div',{staticClass:\"grid grid-cols-3 gap-4 justify-center items-center\"},_vm._l((_vm.negotiable),function(item){return _c('div',{key:item.id,staticClass:\"flex flex-column justify-center items-center p-10 rounded-[4px] cursor-pointer\",class:{'bg-info text-white': _vm.documentRowType === item.id, 'bg-gray-100': _vm.documentRowType !== item.id},on:{\"click\":function($event){return _vm.setNegotiable(item.id)}}},[_c('img',{attrs:{\"src\":item.icon || require('@/assets/images/no-image.png'),\"alt\":item.name}}),_c('div',[_vm._v(_vm._s(item.name))])])}),0)]:[_c('sedmed-form',{ref:\"documentItemForm\",attrs:{\"items\":_vm.documentRowItems,\"initial-value\":_vm.documentRowInitialValue,\"select-options\":_vm.documentRowOptions,\"hasBtn\":false},on:{\"create\":_vm.addEditRow,\"update\":_vm.handleRowSubmit}})]],2)],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <sedmed-form ref=\"generalDocForm\" :items=\"fromItems\" @create=\"create(Object.assign($event,{items}))\" @update=\"update\"\r\n :initial-value=\"initialValue\" :select-options=\"formOptions\"\r\n :okText=\"`${id ? 'ویرایش' : 'ثبت'}`\">\r\n <div slot=\"after\">\r\n <template v-if=\"items.length > 0\">\r\n <h4>آیتم ها</h4>\r\n <a-descriptions class=\"mt-4 p-[10px] rounded-[4px] bg-gray-100\" v-for=\"item in items\" :key=\"item.id ? item.id : item.index\" :column=\"{md: 4, xs: 1 }\">\r\n <div slot=\"title\" class=\"flex\">\r\n {{ showNegotiable(item.negotiable) }}\r\n <span @click=\"toEditRow(item)\">\r\n <Icon icon=\"ion:create-outline\" class=\"ml-2 size-24 cursor-pointer text-success\"/>\r\n </span>\r\n <span @click=\"deleteRow(item)\">\r\n <Icon icon=\"ion:trash-outline\" class=\"ml-2 size-24 cursor-pointer text-danger\"/>\r\n </span>\r\n </div>\r\n <template v-for=\"(row, index) in documentRowItems\">\r\n <a-descriptions-item :key=\"index\" v-if=\"row.label\" :label=\"row.label\">\r\n {{ row.custom && row.custom.options ? showItem(item[index], row.custom.options) : item[index] }}\r\n </a-descriptions-item>\r\n </template>\r\n </a-descriptions>\r\n </template>\r\n <div class=\"my-2 w-full\">\r\n <a-button class=\"m-auto block\" type=\"dashed\" @click=\"addRowModel = true\">\r\n افزودن ردیف\r\n </a-button>\r\n </div>\r\n <a-modal v-model=\"addRowModel\" title=\"افزودن ردیف\" :closable=\"false\" :maskClosable=\"false\">\r\n <template slot=\"footer\">\r\n <a-button key=\"back\" @click=\"cancel\">\r\n انصراف\r\n </a-button>\r\n <a-button key=\"submit\" type=\"primary\" :loading=\"$store.state.loading\" @click=\"handelModal\" :disabled=\"!documentRowType\">\r\n <template v-if=\"addRowStep === 1\">\r\n تکمیل ردیف\r\n </template>\r\n <template v-else-if=\"rowId\">\r\n ویرایش ردیف\r\n </template>\r\n <template v-else>\r\n ثبت ردیف\r\n </template>\r\n </a-button>\r\n </template>\r\n <template v-if=\"addRowStep === 1\">\r\n <div class=\"grid grid-cols-3 gap-4 justify-center items-center\">\r\n <div class=\"flex flex-column justify-center items-center p-10 rounded-[4px] cursor-pointer\"\r\n :class=\"{'bg-info text-white': documentRowType === item.id, 'bg-gray-100': documentRowType !== item.id}\"\r\n v-for=\"item in negotiable\" :key=\"item.id\" @click=\"setNegotiable(item.id)\">\r\n <img :src=\"item.icon || require('@/assets/images/no-image.png')\" :alt=\"item.name\">\r\n <div>{{item.name}}</div>\r\n </div>\r\n </div>\r\n </template>\r\n <template v-else>\r\n <sedmed-form :items=\"documentRowItems\" @create=\"addEditRow\" @update=\"handleRowSubmit\"\r\n :initial-value=\"documentRowInitialValue\" :select-options=\"documentRowOptions\"\r\n :hasBtn=\"false\" ref=\"documentItemForm\"/>\r\n </template>\r\n </a-modal>\r\n </div>\r\n </sedmed-form>\r\n</template>\r\n\r\n<script>\r\nimport restFull from \"@/mixins/restFull\";\r\nimport SedmedForm from '@/components/sedmed-form/sedmed-form.vue'\r\nimport negoTbl from \"@/mixins/negoTbl\";\r\n\r\nexport default {\r\n name: 'generalForm',\r\n components: {\r\n SedmedForm,\r\n },\r\n props: {\r\n type: Number\r\n },\r\n mixins:[restFull, negoTbl],\r\n data() {\r\n return {\r\n fromItems: {\r\n type: {initialValue: this.type, cls: 'hidden', decorator: [{defaultKey: 'required'}]},\r\n no: {label: 'شماره سند', custom: {mode: 'number', min: 0}, itemCls: 'w-full'},\r\n c_no: {label: 'شماره سند مشتری', custom: {mode: 'number', min: 0}, itemCls: 'w-full'},\r\n creator: {\r\n label: 'ثبت کننده',\r\n decorator: [{defaultKey: 'required'}],\r\n custom: {\r\n mode: 'select',\r\n options: 'user',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'full_name'},\r\n },\r\n },\r\n user: {\r\n label: 'مشتری',\r\n decorator: [{defaultKey: 'required'}],\r\n custom: {\r\n mode: 'select',\r\n options: 'user',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'full_name'},\r\n },\r\n },\r\n deposit: {label: 'سپرده', custom: {mode: 'switch'}},\r\n accepted: {label: 'تایید شده', custom: {mode: 'switch'}},\r\n description: {\r\n label: 'توضیحات',\r\n custom: {mode: 'textarea', autoSize: {minRows: 2, maxRows: 3},},\r\n cls: 'md:col-span-3'\r\n },\r\n },\r\n user: [],\r\n negotiableType: [],\r\n product: [],\r\n bankAccount: [],\r\n items: [],\r\n addRowModel: false,\r\n addRowStep: 1,\r\n rowId: undefined,\r\n documentRowType: undefined,\r\n documentRowInitialValue: undefined,\r\n documentRowItems: {\r\n negotiable: {cls: 'hidden', decorator: [{defaultKey: 'required'}]},\r\n negotiable_type: {\r\n label: 'نوع',\r\n custom: {\r\n mode: 'select',\r\n options: 'negotiableType',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'name'},\r\n },\r\n },\r\n product: {\r\n label: 'محصول',\r\n custom: {\r\n mode: 'select',\r\n options: 'product',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'name'},\r\n },\r\n },\r\n weight: {label: 'وزن', custom: {mode: 'number', min: 0}, itemCls: 'w-full'},\r\n count: {label: 'تعداد', custom: {mode: 'number', min: 0}, itemCls: 'w-full'},\r\n currency_type: {\r\n label: 'نوع ارز',\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 },\r\n },\r\n amount: {label: 'مقدار', custom: {mode: 'number', min: 0}, itemCls: 'w-full'},\r\n unit_price: {label: 'قیمت واحد', custom: {mode: 'number', min: 0}, itemCls: 'w-full'},\r\n name: {label: 'نام'},\r\n cutie: {label: 'عیار', custom: {mode: 'number', min: 0}, itemCls: 'w-full'},\r\n account: {\r\n label: 'حساب بانکی',\r\n custom: {\r\n mode: 'select',\r\n options: 'bankAccount',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'name'},\r\n },\r\n },\r\n check_no: {label: 'شماره چک'},\r\n check_date: {label: 'تاریخ چک', custom: {mode: 'date'}},\r\n wage: {label: 'عیار', custom: {mode: 'number', min: 0}, itemCls: 'w-full'},\r\n document: {cls: 'hidden'},\r\n /*explanation: {\r\n label: 'توضیحات',\r\n custom: {mode: 'textarea', autoSize: {minRows: 2, maxRows: 3},},\r\n cls: 'md:col-span-3'\r\n },*/\r\n description: {\r\n label: 'توضیحات',\r\n custom: {mode: 'textarea', autoSize: {minRows: 2, maxRows: 3},},\r\n cls: 'md:col-span-3'\r\n },\r\n }\r\n }\r\n },\r\n computed: {\r\n formOptions() {\r\n return {\r\n user: this.user\r\n }\r\n },\r\n documentRowOptions() {\r\n return {\r\n negotiableType: this.negotiableType,\r\n product: this.product,\r\n bankAccount: this.bankAccount,\r\n currency: this.currency,\r\n }\r\n },\r\n },\r\n watch: {\r\n initialValue(value) {\r\n if (value) this.items = value.items\r\n },\r\n $route(){\r\n this.cancel()\r\n this.$refs.generalDocForm.rest()\r\n this.items = []\r\n }\r\n },\r\n methods: {\r\n // get necessaries\r\n async getUser() {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const { data: {rows} } = await this.$axios.post('/user/table')\r\n this.user = 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 getProduct() {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const { data: {rows} } = await this.$axios.post('/product/table',{limit: 1000})\r\n this.product = 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 getBankAccount() {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const { data: {rows} } = await this.$axios.post('/bank-account/table',{limit: 1000})\r\n this.bankAccount = 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 getNegotiableType(id) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const { data: {rows} } = await this.$axios.post('/negotiable-type/table',{\r\n filters: [{field: 'negotiable', value: id}],\r\n limit: 2000\r\n })\r\n this.negotiableType = 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 // get necessaries\r\n \r\n async addEditRow(values) {\r\n if (this.rowId) {\r\n this.cancel()\r\n const index = this.items.findIndex(x => x.index === this.rowId)\r\n if (index > -1) return this.items[index] = Object.assign(values)\r\n }\r\n this.items.push(Object.assign(values,{index: `item-${this.items.length+1}`}))\r\n this.cancel()\r\n },\r\n async toEditRow(item) {\r\n await this.getNegotiableType(item.negotiable)\r\n this.documentRowItems.negotiable.initialValue = item.negotiable\r\n this.documentRowInitialValue = item\r\n this.rowId = item.id || item.index\r\n this.addRowModel= true\r\n this.documentRowType= item.negotiable\r\n },\r\n async deleteRow(item) {\r\n const type = item.id ? 'id' : 'index'\r\n this.rowId = item[type]\r\n if (item.id) await this.deleteDocumentItem()\r\n const index = this.items.findIndex(x => item[type] === x[type])\r\n if (index > -1) this.items.splice(index,1)\r\n },\r\n async setNegotiable(id){\r\n this.documentRowType = id\r\n this.documentRowItems.negotiable.initialValue = id\r\n await this.getNegotiableType(id)\r\n },\r\n cancel() {\r\n this.addRowModel = false\r\n if (this.$refs.documentItemForm) this.$refs.documentItemForm.rest()\r\n this.addRowStep = 1\r\n this.documentRowInitialValue = undefined\r\n this.documentRowType = undefined\r\n this.rowId = undefined\r\n },\r\n handelModal(e) {\r\n if(this.addRowStep === 1) return this.addRowStep = 2\r\n this.$refs.documentItemForm.handleSubmit(e)\r\n },\r\n showItem(item, options) {\r\n const object = this[options].find(x => x.id == item)\r\n if (object) return object.name\r\n return 'نامشخص'\r\n },\r\n \r\n // on edit page\r\n async handleRowSubmit(values) {\r\n if (this.rowId) {\r\n const result = await this.updateDocumentItem(values)\r\n if (result) {\r\n const index = this.items.findIndex(x => x.id === this.rowId)\r\n if (index > -1) {\r\n this.cancel()\r\n return this.items[index] = result\r\n }\r\n }\r\n }\r\n const result = await this.createDocumentItem(values)\r\n if (result) this.items.push(result)\r\n this.cancel()\r\n },\r\n async updateDocumentItem(values) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const {data} = await this.$axios.patch(`/document-item/${this.rowId}/`, values)\r\n this.$ntSuccess('اطلاعات با موفقیت آپدیت شد')\r\n this.$store.commit('setLoading', false)\r\n return data\r\n } catch (error) {\r\n this.$store.commit('setLoading', false)\r\n console.log(error)\r\n }\r\n },\r\n async createDocumentItem(values) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const {data} = await this.$axios.post('/document-item/', values)\r\n this.$ntSuccess('اطلاعات با موفقیت آپدیت شد')\r\n this.$store.commit('setLoading', false)\r\n return data\r\n } catch (error) {\r\n this.$store.commit('setLoading', false)\r\n console.log(error)\r\n }\r\n },\r\n async deleteDocumentItem() {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n await this.$axios.delete(`/document-item/${this.rowId}/`)\r\n this.$ntSuccess('اطلاعات با موفقیت آپدیت شد')\r\n this.$store.commit('setLoading', false)\r\n return true\r\n } catch (error) {\r\n this.$store.commit('setLoading', false)\r\n console.log(error)\r\n }\r\n },\r\n // on edit page\r\n },\r\n async created() {\r\n await this.getUser()\r\n await this.getNegotiableByType('negotiable')\r\n await this.getProduct()\r\n await this.getNegotiableByType('currency')\r\n await this.getBankAccount()\r\n if (this.id) this.documentRowItems.document.initialValue = this.id\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!./generalForm.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!./generalForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./generalForm.vue?vue&type=template&id=ce60c76a&scoped=true&\"\nimport script from \"./generalForm.vue?vue&type=script&lang=js&\"\nexport * from \"./generalForm.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 \"ce60c76a\",\n null\n \n)\n\nexport default component.exports","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","ref","attrs","fromItems","initialValue","formOptions","id","on","$event","create","Object","assign","items","update","slot","length","_v","_l","item","key","index","staticClass","md","xs","_s","showNegotiable","negotiable","toEditRow","deleteRow","row","label","custom","options","showItem","_e","addRowModel","model","value","callback","$$v","expression","cancel","$store","state","loading","documentRowType","handelModal","addRowStep","class","setNegotiable","icon","name","documentRowItems","documentRowInitialValue","documentRowOptions","addEditRow","handleRowSubmit","staticRenderFns","components","SedmedForm","props","type","Number","mixins","data","cls","decorator","defaultKey","no","mode","min","itemCls","c_no","creator","options_mode","options_key","val","display","user","deposit","accepted","description","autoSize","minRows","maxRows","negotiableType","product","bankAccount","rowId","undefined","negotiable_type","weight","count","currency_type","amount","unit_price","cutie","account","check_no","check_date","wage","document","computed","currency","watch","$route","$refs","generalDocForm","rest","methods","async","commit","rows","console","log","error","limit","filters","field","values","findIndex","x","push","getNegotiableType","deleteDocumentItem","splice","documentItemForm","e","handleSubmit","object","find","result","updateDocumentItem","createDocumentItem","$ntSuccess","$axios","delete","getUser","getNegotiableByType","getProduct","getBankAccount","component","negoTypes","metal","stone","post","op","showCurrency","showMetal","showStone","view","params","restfull","meta","restfullPath","customRoute","isCustomRoute","default","getData","city","getProvince","province","getCities","get","parent","patch","$router","toEdit","window","open","focus","setInitialValue","fetch","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","Error","code","ids","keys","module","exports"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure