{"version":3,"sources":["webpack:///./src/components/SimpleUploadImage/index.vue?8860","webpack:///./src/components/MoneyForm/index.vue?dc5a","webpack:///./src/components/MoneyForm/index.vue?1b4c","webpack:///./src/components/MoneyForm/index.vue?3d14","webpack:///./src/components/MoneyForm/index.vue","webpack:///./src/views/fund/fundMaintain/moneyFormEdit.vue?95d1","webpack:///./src/views/fund/fundMaintain/moneyFormEdit.vue?c2a5","webpack:///./src/views/fund/fundMaintain/moneyFormEdit.vue?6511","webpack:///./src/views/fund/fundMaintain/moneyFormEdit.vue","webpack:///./src/components/SimpleUploadImage/index.vue?9d04","webpack:///./src/components/SimpleUploadImage/index.vue?2f6b","webpack:///./src/components/SimpleUploadImage/index.vue?7bd2","webpack:///./src/components/SimpleUploadImage/index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","_v","_e","staticClass","attrs","donateItems","scopedSlots","_u","key","fn","scope","row","imageUrl","on","$event","editRow","id","deleteRow","addRow","isShow","model","value","formDonate","callback","$$v","$set","expression","hostType","slot","saveConfig","staticRenderFns","name","undefined","amount","fetchDonateItems","api","donatedAmountConfig","getAll","sourceId","String","dataId","sourceType","then","res","items","$confirm","delete","$message","type","message","get","length","error","update","body","create","success","required","components","SimpleUploadImage","component","$router","back","hostTypeFile","donateType","Fund","$route","params","Number","MoneyForm","uploadParameter","baseURL","headers","handleSuccess","beforeUpload","url","stopPropagation","handleRemove","file","result","$emit","$nextTick","console","log","isLt2M","size","getOU","getTenantId","getToken","default"],"mappings":"kHAAA,yBAAsf,EAAG,G,2DCAzf,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAAEJ,EAAU,OAAEI,EAAG,aAAa,CAACJ,EAAIM,GAAG,aAAaN,EAAIO,KAAMP,EAAU,OAAEI,EAAG,UAAU,CAACI,YAAY,kCAAkC,CAACJ,EAAG,WAAW,CAACK,MAAM,CAAC,K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AuB,2BA3B7B,sCAgCI,MAAO,CAAC7D,SAAU/B,KAAK+B,cAhC3B,GAA+C,QAEC,gBAA7C,eAAM,SAAU,CAACqB,KAAMT,OAAQkD,QAAS,M,0BAGzC,gBADC,eAAK,CAAChC,UAAU,K,+BAIjB,gBADC,eAAK,CAACA,UAAU,EAAOgC,SAAS,K,iCAPd,EAAiB,gBAHrC,eAAU,CACT1D,KAAK,uBAEc,WC3B6X,I,wBCQ9Y6B,EAAY,eACd,EACAlE,EACAoC,GACA,EACA,KACA,WACA,MAIa,OAAA8B,E","file":"js/chunk-6a0395bd.f2284115.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=673a343a&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=673a343a&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.dataId)?_c('el-divider',[_vm._v(\"捐赠金额自定义\")]):_vm._e(),(_vm.dataId)?_c('el-card',{staticClass:\"margin-bottom-20 margin-top-sm\"},[_c('el-table',{attrs:{\"data\":_vm.donateItems,\"border\":\"\",\"stripe\":\"\"}},[_c('el-table-column',{attrs:{\"label\":\"序号\",\"type\":\"index\",\"width\":\"50\"}}),_c('el-table-column',{attrs:{\"label\":\"标题\",\"prop\":\"name\"}}),_c('el-table-column',{attrs:{\"label\":\"捐赠金额\",\"prop\":\"amount\"}}),_c('el-table-column',{attrs:{\"label\":\"图片(建议比例4:3)\",\"prop\":\"amount\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.imageUrl)?_c('img',{attrs:{\"src\":scope.row.imageUrl,\"width\":\"80\",\"height\":\"60\"}}):_vm._e()]}}],null,false,2812558400)}),_c('el-table-column',{attrs:{\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{staticClass:\"btn-add\",attrs:{\"size\":\"medium\"},on:{\"click\":function($event){return _vm.editRow(scope.row.id)}}},[_vm._v(\" 编辑 \")]),_c('el-button',{staticClass:\"btn-add\",attrs:{\"size\":\"medium\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteRow(scope.row.id)}}},[_vm._v(\" 删除 \")])]}}],null,false,2373742951)})],1),_c('el-row',{staticClass:\"text-center margin-top-lg\"},[_c('el-button',{staticClass:\"btn-add\",attrs:{\"size\":\"medium\",\"type\":\"primary\"},on:{\"click\":_vm.addRow}},[_vm._v(\" 添加一行 \")])],1)],1):_vm._e(),_c('el-dialog',{attrs:{\"title\":\"捐赠内容\",\"visible\":_vm.isShow,\"width\":\"500px\"},on:{\"update:visible\":function($event){_vm.isShow=$event}}},[_c('div',{staticClass:\"margin-bottom-20\"},[_vm._v(\"标题(最大长度8个字)\")]),_c('el-input',{staticClass:\"margin-bottom-20\",model:{value:(_vm.formDonate.name),callback:function ($$v) {_vm.$set(_vm.formDonate, \"name\", $$v)},expression:\"formDonate.name\"}}),_c('div',{staticClass:\"margin-bottom-20\"},[_vm._v(\"金额(元)\")]),_c('el-input',{staticClass:\"margin-bottom-20\",attrs:{\"type\":\"number\"},model:{value:(_vm.formDonate.amount),callback:function ($$v) {_vm.$set(_vm.formDonate, \"amount\", $$v)},expression:\"formDonate.amount\"}}),_c('div',{staticClass:\"margin-bottom-20\"},[_vm._v(\"图片\")]),_c('simple-upload-image',{attrs:{\"host-type\":_vm.hostType},model:{value:(_vm.formDonate.imageUrl),callback:function ($$v) {_vm.$set(_vm.formDonate, \"imageUrl\", $$v)},expression:\"formDonate.imageUrl\"}}),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.isShow = false}}},[_vm._v(\"取消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.saveConfig()}}},[_vm._v(\"确认\")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport {Component, Prop, Ref, Vue} from \"vue-property-decorator\";\r\nimport api from \"@/api\";\r\nimport {\r\n AttachmentHostType,\r\n DonatedAmountConfigCreateOrUpdateDto, DonatedAmountConfigSourceType\r\n} from \"@/api/appService\";\r\nimport {ElForm} from \"element-ui/types/form\";\r\nimport SimpleUploadImage from \"@/components/SimpleUploadImage/index.vue\";\r\n\r\n@Component({\r\n components: {\r\n SimpleUploadImage\r\n },\r\n})\r\nexport default class MoneyForm extends Vue {\r\n @Prop({required: true})\r\n dataId!: number;\r\n\r\n @Prop({required: true})\r\n hostType!: AttachmentHostType;\r\n\r\n @Prop({required: true})\r\n sourceType!: DonatedAmountConfigSourceType;\r\n\r\n formDonate: DonatedAmountConfigCreateOrUpdateDto = {\r\n id: 0,\r\n name: undefined,\r\n amount: undefined,\r\n };\r\n\r\n isShow = false;\r\n donateItems: any = [];\r\n\r\n\r\n created() {\r\n this.fetchDonateItems()\r\n }\r\n\r\n fetchDonateItems() {\r\n api.donatedAmountConfig\r\n .getAll({\r\n sourceId: String(this.dataId),\r\n sourceType: this.sourceType\r\n })\r\n .then((res) => {\r\n this.donateItems = res.items;\r\n });\r\n }\r\n\r\n\r\n addRow() {\r\n this.formDonate.id = 0;\r\n this.formDonate.name = undefined;\r\n this.formDonate.amount = undefined;\r\n this.formDonate.imageUrl = undefined;\r\n this.isShow = true\r\n }\r\n\r\n deleteRow(id: number) {\r\n this.$confirm(\"你确定删除吗?\", \"提示\").then(async () => {\r\n await api.donatedAmountConfig.delete({id: id}).then(res => {\r\n this.$message({\r\n type: \"success\",\r\n message: \"删除成功!\"\r\n });\r\n this.fetchDonateItems();\r\n });\r\n });\r\n }\r\n\r\n editRow(id: number) {\r\n this.isShow = true;\r\n this.formDonate.id = id;\r\n api.donatedAmountConfig\r\n .get({id: id})\r\n .then(res => {\r\n this.formDonate = {...res};\r\n });\r\n }\r\n\r\n async saveConfig() {\r\n if (this.formDonate.name && this.formDonate.name.length > 8) {\r\n this.$message.error(\"标题最大长度8个字\");\r\n return\r\n }\r\n if (!this.formDonate.amount) {\r\n this.$message.error(\"请填写金额\");\r\n return\r\n }\r\n if (this.formDonate.amount<=0) {\r\n this.$message.error(\"金额必须大于0\");\r\n return\r\n }\r\n\r\n this.formDonate.sourceType = this.sourceType;\r\n this.formDonate.sourceId = String(this.dataId);\r\n if (this.formDonate.id) {\r\n await api.donatedAmountConfig.update({\r\n body: this.formDonate,\r\n });\r\n } else {\r\n await api.donatedAmountConfig.create({\r\n body: this.formDonate,\r\n });\r\n }\r\n\r\n this.$message.success(\"操作成功\");\r\n this.isShow = false;\r\n this.formDonate.id = 0;\r\n this.formDonate.name = undefined;\r\n this.formDonate.amount = undefined;\r\n this.formDonate.imageUrl = undefined;\r\n this.fetchDonateItems();\r\n }\r\n\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=490d8db3&\"\nimport script from \"./index.vue?vue&type=script&lang=ts&\"\nexport * from \"./index.vue?vue&type=script&lang=ts&\"\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 null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('el-page-header',{attrs:{\"title\":\"返回\",\"content\":\"捐赠金额自定义\"},on:{\"back\":function($event){return _vm.$router.back()}}}),_c('el-row',[_c('el-col',{attrs:{\"span\":12}},[_c('money-form',{attrs:{\"data-id\":_vm.dataId,\"host-type\":_vm.hostTypeFile,\"source-type\":_vm.donateType}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\r\nimport {Component, Ref, Vue} from \"vue-property-decorator\";\r\nimport api from \"@/api\";\r\nimport {\r\n AttachmentHostType,\r\n DonatedAmountConfigCreateOrUpdateDto, DonatedAmountConfigSourceType\r\n} from \"@/api/appService\";\r\nimport {ElForm} from \"element-ui/types/form\";\r\nimport MoneyForm from \"@/components/MoneyForm/index.vue\";\r\n\r\n@Component({\r\n components: {\r\n MoneyForm\r\n },\r\n})\r\nexport default class MoneyFormEdit extends Vue {\r\n @Ref() readonly dataForm!: ElForm;\r\n dataId!: number;\r\n\r\n donateType: DonatedAmountConfigSourceType = DonatedAmountConfigSourceType.Fund;\r\n\r\n get hostTypeFile() {\r\n return AttachmentHostType.Fund;\r\n }\r\n\r\n created() {\r\n if (this.$route.params.id) {\r\n this.dataId = Number(this.$route.params.id);\r\n }\r\n }\r\n\r\n cancel() {\r\n this.$router.back();\r\n }\r\n\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./moneyFormEdit.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./moneyFormEdit.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./moneyFormEdit.vue?vue&type=template&id=2a30c0ab&\"\nimport script from \"./moneyFormEdit.vue?vue&type=script&lang=ts&\"\nexport * from \"./moneyFormEdit.vue?vue&type=script&lang=ts&\"\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 null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-upload',{staticClass:\"avatar-uploader\",attrs:{\"data\":_vm.uploadParameter,\"action\":(_vm.baseURL + \"/api/services/app/Attachment/UploadToOss\"),\"show-file-list\":false,\"headers\":_vm.headers,\"on-success\":_vm.handleSuccess,\"before-upload\":_vm.beforeUpload}},[(_vm.url)?[_c('img',{staticClass:\"avatar\",attrs:{\"src\":_vm.url}}),(_vm.showDelete)?_c('i',{staticClass:\"el-icon-delete\",on:{\"click\":function($event){$event.stopPropagation();return _vm.handleRemove($event)}}}):_vm._e()]:_c('i',{staticClass:\"el-icon-plus avatar-uploader-icon\"})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport {Component, Model, Prop, Vue} from \"vue-property-decorator\";\nimport Base64 from \"@/utils/Base64\";\nimport api from \"@/api\";\nimport {UserModule} from \"@/store/modules/user\";\nimport {AppModule} from \"@/store/modules/app\";\nimport {AttachmentHostType} from \"@/api/appService\";\n\n@Component({\n name:'SimpleUploadImage'\n})\nexport default class SimpleUploadImage extends Vue {\n\n @Model('change', {type: String, default: ''}) url!: string;\n\n @Prop({required: true})\n hostType!: AttachmentHostType;\n\n @Prop({required: false, default: false})\n showDelete!: boolean;\n\n async handleSuccess(res: any, file: any) {\n if (res.success) {\n this.url = res.result.url;\n this.$emit('change', res.result.url)\n this.$nextTick()\n }\n }\n\n async handleRemove() {\n this.$emit('change', '')\n }\n\n get headers() {\n return {\n 'Abp-OrganizationUnitId': UserModule.getOU?.id,\n 'Abp-TenantId': AppModule.getTenantId,\n 'Authorization': `Bearer ${UserModule.getToken}`,\n '.AspNetCore.Culture': 'c=zh-Hans|uic=zh-Hans'\n }\n }\n\n get uploadParameter() {\n return {hostType: this.hostType};\n }\n\n private beforeUpload(file: any) {\n console.log(file);\n const isJPG = file.type === \"image/jpeg\";\n const isLt2M = file.size / 1024 / 1024 < 10;\n if (!isLt2M) {\n this.$message.error(\"上传头像图片大小不能超过 10MB!\");\n return false;\n } else {\n return true;\n }\n }\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=673a343a&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=ts&\"\nexport * from \"./index.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=673a343a&scoped=true&lang=css&\"\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 \"673a343a\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}