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ACf,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,GAAMvF,EAAKgG,EAAI,GAC7B,OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,MAAK,WACzC,OAAOJ,EAAoBxF,MAG7BsF,EAAoBW,KAAO,WAAa,OAAO9B,OAAO8B,KAAKZ,IAC3DC,EAAoBtF,GAAK,MACzBkG,EAAOC,QAAUb","sources":["webpack://liman/./src/views/document/documentList.vue?71c8","webpack://liman/src/views/document/documentList.vue","webpack://liman/./src/views/document/documentList.vue?f081","webpack://liman/./src/views/document/documentList.vue","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('x-table',{ref:\"documentTbl\",attrs:{\"model\":_vm.model},scopedSlots:_vm._u([{key:\"creator__first_name\",fn:function(ref){\nvar record = ref.record;\nreturn _c('div',{},[_vm._v(\" \"+_vm._s(record.creator__first_name)+\" \"+_vm._s(record.creator__last_name)+\" \")])}},{key:\"operator\",fn:function(ref){\nvar record = ref.record;\nreturn _c('div',{staticClass:\"grid grid-cols-1 md:grid-cols-3 gap-4\"},[_c('a-tooltip',[_c('template',{slot:\"title\"},[_vm._v(\" نمایش جزئیات \")]),_c('span',{on:{\"click\":function($event){return _vm.toView(record.id)}}},[_c('Icon',{staticClass:\"size-25 cursor-pointer\",attrs:{\"icon\":\"ion:list\"}})],1)],2),_c('a-tooltip',[_c('template',{slot:\"title\"},[_vm._v(\" ویرایش \")]),_c('a-popconfirm',{attrs:{\"title\":\"آیتم ویرایش شود؟\",\"ok-text\":\"بله\",\"cancel-text\":\"خیر\"},on:{\"confirm\":function($event){return _vm.toEdit(record.id)}}},[_c('Icon',{class:\"size-24 cursor-pointer text-success\",attrs:{\"icon\":\"ion:create-outline\"}})],1)],2),_c('a-tooltip',[_c('template',{slot:\"title\"},[_vm._v(\" حذف \")]),_c('a-popconfirm',{attrs:{\"title\":\"آیتم حذف شود؟\",\"ok-text\":\"بله\",\"cancel-text\":\"خیر\"},on:{\"confirm\":function($event){return _vm.deleteItem(record.id)}}},[_c('Icon',{class:\"size-24 cursor-pointer text-danger\",attrs:{\"icon\":\"ion:trash-outline\"}})],1)],2)],1)}}])}),(_vm.initialValue)?_c('a-modal',{attrs:{\"footer\":null},model:{value:(_vm.view),callback:function ($$v) {_vm.view=$$v},expression:\"view\"}},[_c('a-descriptions',{attrs:{\"title\":\"اطلاعات\",\"column\":{ xxl: 3, md: 2, xs: 1 }}},[_c('a-descriptions-item',{attrs:{\"label\":\"شناسه\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.id || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"شماره سند\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.no || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"شماره سند مشتری\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.c_no || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"ثبت کننده\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.creator_obj.full_name)+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"مشتری\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.user_obj.full_name)+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"سپرده\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.deposit ? 'بله' : 'خیر')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"تایید شده\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.accepted ? 'بله' : 'خیر')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"توضیحات\",\"span\":2}},[_vm._v(\" \"+_vm._s(_vm.initialValue.description || '-')+\" \")])],1),_c('h4',[_vm._v(\"آیتم ها\")]),_vm._l((_vm.initialValue.items),function(item){return _c('a-descriptions',{key: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(item.negotiable_obj && item.negotiable_obj.name ? item.negotiable_obj.name : '-')+\" \")]),_vm._l((_vm.documentRowItems),function(row,index){return _c('a-descriptions-item',{key:index,attrs:{\"label\":row}},[_vm._v(\" \"+_vm._s(item[index])+\" \")])})],2)})],2):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <x-table :model=\"model\" ref=\"documentTbl\">\r\n <div slot-scope=\"{record}\" slot=\"creator__first_name\">\r\n {{record.creator__first_name}} {{record.creator__last_name}}\r\n </div>\r\n <div class=\"grid grid-cols-1 md:grid-cols-3 gap-4\" slot=\"operator\" slot-scope=\"{record}\">\r\n <a-tooltip>\r\n <template slot=\"title\">\r\n نمایش جزئیات\r\n </template>\r\n <span @click=\"toView(record.id)\">\r\n <Icon icon=\"ion:list\" class=\"size-25 cursor-pointer\"/>\r\n </span>\r\n </a-tooltip>\r\n <a-tooltip>\r\n <template slot=\"title\">\r\n ویرایش\r\n </template>\r\n <a-popconfirm\r\n title=\"آیتم ویرایش شود؟\"\r\n ok-text=\"بله\"\r\n cancel-text=\"خیر\"\r\n @confirm=\"toEdit(record.id)\"\r\n >\r\n <Icon icon=\"ion:create-outline\" :class=\"`size-24 cursor-pointer text-success`\"/>\r\n </a-popconfirm>\r\n </a-tooltip>\r\n <a-tooltip>\r\n <template slot=\"title\">\r\n حذف\r\n </template>\r\n <a-popconfirm\r\n title=\"آیتم حذف شود؟\"\r\n ok-text=\"بله\"\r\n cancel-text=\"خیر\"\r\n @confirm=\"deleteItem(record.id)\"\r\n >\r\n <Icon icon=\"ion:trash-outline\" :class=\"`size-24 cursor-pointer text-danger`\"/>\r\n </a-popconfirm>\r\n </a-tooltip>\r\n </div>\r\n </x-table>\r\n <a-modal v-model=\"view\" :footer=\"null\" v-if=\"initialValue\">\r\n <a-descriptions title=\"اطلاعات\" :column=\"{ xxl: 3, md: 2, xs: 1 }\">\r\n <a-descriptions-item label=\"شناسه\">\r\n {{ initialValue.id || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"شماره سند\">\r\n {{ initialValue.no || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"شماره سند مشتری\">\r\n {{ initialValue.c_no || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"ثبت کننده\">\r\n {{ initialValue.creator_obj.full_name }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"مشتری\">\r\n {{ initialValue.user_obj.full_name }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"سپرده\">\r\n {{ initialValue.deposit ? 'بله' : 'خیر' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"تایید شده\">\r\n {{ initialValue.accepted ? 'بله' : 'خیر' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"توضیحات\" :span=\"2\">\r\n {{ initialValue.description || '-' }}\r\n </a-descriptions-item>\r\n </a-descriptions>\r\n <h4>آیتم ها</h4>\r\n <a-descriptions class=\"mt-4 p-[10px] rounded-[4px] bg-gray-100\" v-for=\"item in initialValue.items\" :key=\"item.index\" :column=\"{md: 4, xs: 1 }\">\r\n <div slot=\"title\" class=\"flex\">\r\n {{ item.negotiable_obj && item.negotiable_obj.name ? item.negotiable_obj.name : '-' }}\r\n </div>\r\n <a-descriptions-item v-for=\"(row, index) in documentRowItems\" :key=\"index\" :label=\"row\">\r\n {{ item[index] }}\r\n </a-descriptions-item>\r\n </a-descriptions>\r\n </a-modal>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport XTable from '@/components/x-table/XTable.vue'\r\nimport restFull from \"@/mixins/restFull\";\r\n\r\nexport default {\r\n mixins: [restFull],\r\n name: 'documentList',\r\n components: {XTable},\r\n data() {\r\n return {\r\n documentRowItems: {\r\n 'account_obj.shaba': 'حساب بانکی',\r\n negotiable_type: 'نوع',\r\n 'product_obj.name': 'محصول',\r\n weight: 'وزن',\r\n count: 'تعداد',\r\n 'currency_type_obj.name': 'نوع ارز',\r\n amount: 'مقدار',\r\n unit_price: 'قیمت واحد',\r\n name: 'نام',\r\n cutie: 'عیار',\r\n account: 'حساب بانکی',\r\n check_no: 'شماره چک',\r\n check_date: 'تاریخ چک',\r\n wage: 'عیار',\r\n description: 'توضیحات',\r\n }\r\n }\r\n },\r\n}\r\n</script>\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!./documentList.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!./documentList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./documentList.vue?vue&type=template&id=04778393&\"\nimport script from \"./documentList.vue?vue&type=script&lang=js&\"\nexport * from \"./documentList.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 null,\n null\n \n)\n\nexport default component.exports","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","model","scopedSlots","_u","key","fn","record","_v","_s","creator__first_name","creator__last_name","staticClass","slot","on","$event","toView","id","toEdit","class","deleteItem","value","callback","$$v","view","expression","xxl","md","xs","initialValue","no","c_no","creator_obj","full_name","user_obj","deposit","accepted","description","_l","item","index","negotiable_obj","name","row","_e","staticRenderFns","mixins","components","XTable","data","documentRowItems","negotiable_type","weight","count","amount","unit_price","cutie","account","check_no","check_date","wage","component","undefined","computed","$route","params","restfull","meta","restfullPath","customRoute","isCustomRoute","async","default","getData","city","getProvince","province","getCities","methods","$store","commit","$axios","get","parent","Object","assign","error","console","log","values","patch","$ntSuccess","$router","push","post","window","open","focus","setInitialValue","delete","$refs","fetch","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","keys","module","exports"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure