You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rcgy_xmf_qrcode/js/chunk-2d237d4c.3295afef.js.map

1 line
24 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"version":3,"sources":["webpack:///./src/views/basic/page/contractManage.vue","webpack:///src/views/basic/page/contractManage.vue","webpack:///./src/views/basic/page/contractManage.vue?48b8","webpack:///./src/views/basic/page/contractManage.vue?ead4"],"names":["render","_vm","this","_c","_self","staticClass","_m","attrs","on","$event","add","_v","ref","config","tableCheck","scopedSlots","_u","key","fn","slotData","data","imgUrls","staticStyle","download","_s","url","slot","handleClick","model","value","activeName","callback","$$v","expression","isEnable","table_row","del","add_vrisible","addClose","addForm","$baseUrl","fileSuccess","wordRemove","handleExceed","wordList","beforeFileUpload","addSubmit","staticRenderFns","loading","ruleForm","fileUrls","rules","required","message","trigger","form_item","type","label","placeholder","width","prop","slotName","thead","table_data","search_item","options","pageNum","size","methods","confirmButtonText","cancelButtonText","then","window","catch","files","console","file","leaseContractInsert","status","leaseContractEnable","id","arr","confirmButtonClass","cancelButtonClass","action","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACJ,EAAIK,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,YAAY,CAACE,YAAY,cAAcE,MAAM,CAAC,KAAO,gBAAgBC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAIS,SAAS,CAACT,EAAIU,GAAG,aAAa,GAAGR,EAAG,MAAM,GAAG,CAACA,EAAG,WAAW,CAACS,IAAI,QAAQL,MAAM,CAAC,OAASN,EAAIY,QAAQ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AC,aAEAC,OACAD,UACA,CACAE,YACAC,gBACAC,oBAIAC,WACA,CACAC,aACAC,aACAC,kBACAC,aACAC,aAEA,CACAJ,YACAC,aACAC,kBACAC,aACAC,gBACAC,yBAIA1B,aACAL,eACAjB,QACAiD,OACA,CACAL,WACAD,aACAG,YAEA,CACAF,aACAG,YACAD,cAEA,CACAF,aACAG,cACAD,aACAH,gBACAzB,gBACA,YACA,KAEA,MAIA,CACA0B,YACAG,kBACAD,cAEA,CACAF,aACAG,kBACAD,cAEA,CACAF,eACAG,eACAD,aACAH,YACAK,iBAGAE,cACAtC,wBACAuC,aACA,CACAR,aACAC,aACAC,kBACAE,aAEA,CACAJ,cACAC,aACAC,kBACAE,cACAK,SACA,CACAR,WACA5B,SAEA,CACA4B,WACA5B,YAOAT,MACA8C,UACAC,YAKAC,SAEA7C,YACA,8BACA8C,uBACAC,sBACAd,iBAGAe,KAAA,KACA,eACAf,eACAH,iBAEAmB,kCAEAC,MAAA,KACA,eACAjB,YACAH,qBAKAZ,iBACA,kDAGAE,kBACA,sBACA,sBACA+B,qBACA,0BAIAhC,aACA,qCAGAG,oBACA8B,eACA,yCACA,2BACA,EACAC,iDAQA,OAPAD,eACA,GACA,2CAEA,GACA,uCAEA,MAEAjE,MACA,sBAGA4B,WACA,2BACA,qBACA,kBAGAQ,YACA,oCAOA,wCACA,eACAO,wBACAG,oBAIA,qBAMA,CACA,UACA,uBAEAqB,2BACA,WACA,eACAxB,kBACAG,iBAEA,4BACA,wBAhBA,eACAA,aACAH,uBAhBA,eACAA,qBACAG,gBAkCA7B,iBACA,WAEAmD,EADA,mBACAA,gBAEAA,KAEA,SACAZ,UACAC,QACAW,UAEA,iCAGA5C,YAEA,WACA,gCAGA,SAIA6C,gBAAAC,aAAA,SACAL,eACA,WACA,eACAtB,kBACAG,iBAEA,4BACA,mBAXA,4BAiBA1C,cACA,kBAGAsB,OACA,aACA,SACA,wCACA6C,6BAEA,oCACAZ,uBACAC,sBACAY,mCACAC,mCAEAZ,KAAA,KACA,kCAEAE,MAAAW,YAEA,qCCtZsX,I,YCOlXC,EAAY,eACd,EACArF,EACA+C,GACA,EACA,KACA,KACA,MAIa,aAAAsC,E","file":"js/chunk-2d237d4c.3295afef.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"main-content\"},[_vm._m(0),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"content-btn\"},[_c('el-button',{staticClass:\"init-button\",attrs:{\"icon\":\"el-icon-plus\"},on:{\"click\":function($event){return _vm.add()}}},[_vm._v(\"新增租赁合同\")])],1),_c('div',{},[_c('VueTable',{ref:\"table\",attrs:{\"config\":_vm.config},on:{\"tableCheck\":_vm.tableCheck},scopedSlots:_vm._u([{key:\"doc\",fn:function(slotData){return [(slotData.data.imgUrls[0])?_c('div',{staticStyle:{\"color\":\"blue\",\"cursor\":\"pointer\"},on:{\"click\":function($event){return _vm.download(slotData.data.imgUrls[0])}}},[_vm._v(\" \"+_vm._s(slotData.data.imgUrls[0].url)+\" \")]):_c('div',[_vm._v(\"无\")])]}}])},[_c('template',{slot:\"tabs\"},[_c('el-tabs',{on:{\"tab-click\":_vm.handleClick},model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:\"activeName\"}},[_c('el-tab-pane',{attrs:{\"label\":\"全部\",\"name\":\"0\"}}),_c('el-tab-pane',{attrs:{\"label\":\"启用\",\"name\":\"1\"}}),_c('el-tab-pane',{attrs:{\"label\":\"停用\",\"name\":\"2\"}})],1)],1),_c('template',{slot:\"footer\"},[_c('div',{staticClass:\"table-footer\"},[_c('button',{on:{\"click\":function($event){return _vm.isEnable(_vm.table_row)}}},[_vm._v(\"启用/停用\")]),_c('button',{on:{\"click\":function($event){return _vm.del(_vm.table_row)}}},[_vm._v(\"删除\")])])])],2)],1),_c('Drawer',{attrs:{\"drawerTitle\":\"新增合同\",\"drawerVrisible\":_vm.add_vrisible},on:{\"drawerClose\":_vm.addClose}},[_c('div',{staticStyle:{\"padding\":\"30px\"}},[_c('FromCard',[_c('template',{slot:\"title\"},[_vm._v(\"合同模板上传\")]),[_c('VueForm',{ref:\"addForm\",attrs:{\"formObj\":_vm.addForm}},[_c('template',{slot:\"fileDocUrl\"},[[_c('el-upload',{attrs:{\"action\":`${_vm.$baseUrl}upload/uploadLeaseContractPdf`,\"on-success\":_vm.fileSuccess,\"on-remove\":_vm.wordRemove,\"on-exceed\":_vm.handleExceed,\"file-list\":_vm.wordList,\"accept\":\".pdf,.PDF\",\"limit\":1,\"before-upload\":_vm.beforeFileUpload}},[_c('el-button',{attrs:{\"icon\":\"el-icon-edit\",\"size\":\"small\"}},[_vm._v(\"上传文件\")]),_c('div',{staticClass:\"el-upload__tip\",attrs:{\"slot\":\"tip\"},slot:\"tip\"},[_c('span',[_vm._v(\"支持扩展名pdf,PDF\")])])],1)]],2)],2)]],2)],1),_c('div',{attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('button',{staticClass:\"btn-orange\",on:{\"click\":function($event){return _vm.addSubmit()}}},[_c('span',[_c('i',{staticClass:\"el-icon-circle-check\"}),_vm._v(\"提交\")])]),_c('button',{staticClass:\"btn-gray\",on:{\"click\":_vm.addClose}},[_c('span',[_vm._v(\"取消\")])])])])],1)])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"main-titel\"},[_c('span',[_vm._v(\"租赁合同管理\")])])\n}]\n\nexport { render, staticRenderFns }","<template>\n <div>\n <div class=\"main-content\">\n <div class=\"main-titel\">\n <span>租赁合同管理</span>\n </div>\n <div class=\"content\">\n <div class=\"content-btn\">\n <el-button\n class=\"init-button\"\n @click=\"add()\"\n icon=\"el-icon-plus\"\n >新增租赁合同</el-button\n >\n </div>\n\n <div class=\"\">\n <VueTable\n ref=\"table\"\n :config=\"config\"\n @tableCheck=\"tableCheck\"\n >\n <!-- slot 下载模板 -->\n <template v-slot:doc=\"slotData\">\n <div\n style=\"color: blue; cursor: pointer\"\n v-if=\"slotData.data.imgUrls[0]\"\n @click=\"download(slotData.data.imgUrls[0])\"\n >\n {{ slotData.data.imgUrls[0].url}}\n </div>\n <div v-else>无</div>\n </template>\n <!-- tabs切换 -->\n <template slot=\"tabs\">\n <el-tabs\n v-model=\"activeName\"\n @tab-click=\"handleClick\"\n >\n <el-tab-pane\n label=\"全部\"\n name=\"0\"\n ></el-tab-pane>\n <el-tab-pane\n label=\"启用\"\n name=\"1\"\n ></el-tab-pane>\n <el-tab-pane\n label=\"停用\"\n name=\"2\"\n ></el-tab-pane>\n </el-tabs>\n </template>\n <template slot=\"footer\">\n <div class=\"table-footer\">\n <!-- <button>编辑</button> -->\n <button @click=\"isEnable(table_row)\">启用/停用</button>\n <button @click=\"del(table_row)\">删除</button>\n </div>\n </template>\n </VueTable>\n </div>\n <!-- 新增 -->\n <Drawer\n drawerTitle=\"新增合同\"\n @drawerClose=\"addClose\"\n :drawerVrisible=\"add_vrisible\"\n >\n <div style=\"padding: 30px\">\n <FromCard>\n <template slot=\"title\">合同模板上传</template>\n <template>\n <VueForm ref=\"addForm\" :formObj=\"addForm\">\n <template slot=\"fileDocUrl\">\n <template>\n <el-upload\n :action=\"`${$baseUrl}upload/uploadLeaseContractPdf`\"\n :on-success=\"fileSuccess\"\n :on-remove=\"wordRemove\"\n :on-exceed=\"handleExceed\"\n :file-list=\"wordList\"\n accept=\".pdf,.PDF\"\n :limit=\"1\"\n :before-upload=\"\n beforeFileUpload\n \"\n >\n <el-button\n icon=\"el-icon-edit\"\n size=\"small\"\n >上传文件</el-button\n >\n <div\n slot=\"tip\"\n class=\"el-upload__tip\"\n >\n <span\n >支持扩展名pdf,PDF</span\n >\n </div>\n </el-upload>\n </template>\n </template>\n </VueForm>\n </template>\n </FromCard>\n </div>\n <div slot=\"footer\">\n <button class=\"btn-orange\" @click=\"addSubmit()\">\n <span>\n <i class=\"el-icon-circle-check\"></i>提交</span\n >\n </button>\n <button class=\"btn-gray\" @click=\"addClose\">\n <span>取消</span>\n </button>\n </div>\n </Drawer>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { leaseContractInsert,leaseContractEnable } from '@/api/basic'\n// import func from 'vue-editor-bridge'\nexport default {\n data() {\n return {\n add_vrisible: false,\n loading: false,\n wordList: [],\n addForm: {\n ruleForm: {\n fileUrls: [],\n },\n rules: {\n fileUrls: [\n {\n required: true,\n message: '请选择文件',\n trigger: 'change'\n }\n ]\n },\n form_item: [\n {\n type: 'Input',\n label: '模板名称',\n placeholder: '请输入',\n width: '100%',\n prop: 'name',\n },\n {\n type: 'Slot',\n label: '上传文件',\n placeholder: '请输入',\n width: '100%',\n prop: 'fileUrls',\n slotName: 'fileDocUrl'\n }\n ]\n },\n table_row: [],\n activeName: '0',\n config: {\n thead: [\n {\n label: '序号',\n type: 'index',\n width: '80'\n },\n {\n label: '模板名称',\n prop: 'name',\n width: 'auto'\n },\n {\n label: '启用状态',\n prop: 'status',\n width: 'auto',\n type: 'function',\n callback: (row, prop) => {\n if (row.status == 1) {\n return '启用'\n } else {\n return '停用'\n }\n }\n },\n {\n label: '创建人',\n prop: 'createName',\n width: 'auto'\n },\n {\n label: '创建时间',\n prop: 'createDate',\n width: 'auto'\n },\n {\n label: '模板预览下载',\n prop: 'imgUrls',\n width: 'auto',\n type: 'slot',\n slotName: 'doc'\n }\n ],\n table_data: [],\n url: 'leaseContractList',\n search_item: [\n {\n type: 'Input',\n label: '模板名称',\n placeholder: '请输入',\n prop: 'name'\n },\n {\n type: 'select',\n label: '启用状态',\n placeholder: '请选择',\n prop: 'status',\n options:[\n {\n label:'启用',\n value:1\n },\n {\n label:'停用',\n value:2\n }\n ]\n },\n\n // Slot\n ],\n data: {\n pageNum: 1,\n size: 10\n }\n }\n }\n },\n methods: {\n // 预览下载\n download(data) {\n this.$confirm('是否预览模板?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n // center: true\n })\n .then(() => {\n this.$message({\n type: 'success',\n message: '预览成功'\n })\n window.open(this.$ImgUrl + data.url)\n })\n .catch(() => {\n this.$message({\n type: 'info',\n message: '已取消预览'\n })\n })\n },\n // word 文件上传成功\n fileSuccess(res, file) {\n this.addForm.ruleForm.fileUrls[0] = file.response.url\n },\n // word 文件上传限制提示\n handleExceed(files, fileList) {\n this.$message.warning(\n `当前限制选择 1 个文件,本次选择了 ${\n files.length\n } 个文件,共选择了 ${files.length + fileList.length} 个文件`\n )\n },\n // 移出\n wordRemove() {\n this.addForm.ruleForm.fileDocUrl = []\n },\n // word 文件上传之前\n beforeFileUpload(file) {\n console.log(file)\n this.addForm.ruleForm.fileDocName = file.name\n const isLt2M = file.size / 1024 / 1024 < 2\n const fileType =\n file.name.endsWith('.pdf') || file.name.endsWith('.PDF')\n console.log(fileType)\n if (!fileType) {\n this.$message.error('上传文件只能是 pdf/PDF 格式!')\n }\n if (!isLt2M) {\n this.$message.error('上传文件大小不能超过 2MB!')\n }\n return fileType && isLt2M\n },\n add() {\n this.add_vrisible = true\n // this.getUserList()\n },\n addClose() {\n this.$refs.addForm.reset()\n this.add_vrisible = false\n this.wordList = []\n },\n // 提交\n addSubmit() {\n if(this.addForm.ruleForm.name==null){\n this.$message({\n message:'模板名称字数不可为空',\n type:'error'\n })\n return\n }\n if(this.addForm.ruleForm.name.length>32){\n this.$message({\n message:'模板名称字数不可超过32位',\n type:'error'\n })\n return\n }\n if (this.wordList == []) {\n this.$message({\n type: 'error',\n message: '请上传文件'\n })\n return\n } else {\n let resData = {\n ...this.addForm.ruleForm\n }\n leaseContractInsert(resData).then((res) => {\n if (res.status) {\n this.$message({\n message: res.message,\n type: 'success'\n })\n this.$refs.table.loadData()\n this.addClose()\n }\n })\n }\n },\n // tabs切换\n handleClick(tab, event) {\n let status = null\n if (this.activeName != 0) {\n status = this.activeName\n } else {\n status = null\n }\n const requestData = {\n pageNum: 1,\n size: 10,\n status: status\n }\n this.$refs.table.requestData(requestData)\n },\n // 启用、停用\n isEnable(data) {\n // console.log(data[0].id);\n if (data.length > 1) {\n this.$message.error('只能操作一条数据')\n return\n }\n if (!data.length) {\n this.$message.error('请选择')\n return\n }else{\n leaseContractEnable({id:data[0].id}).then((res) => {\n console.log(res)\n if (res.status) {\n this.$message({\n message: res.message,\n type: 'success'\n })\n this.$refs.table.loadData()\n this.addClose()\n }\n })\n }\n },\n // 表格选中\n tableCheck(data) {\n this.table_row = data\n },\n // 删除\n del(data) {\n if (data.length) {\n let arr = []\n for (let i = 0; i < this.table_row.length; i++) {\n arr.push(this.table_row[i].id)\n }\n this.$confirm('是否确认删除?删除不可恢复', '删除', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n confirmButtonClass: 'confirmButton',\n cancelButtonClass: 'cancelButton'\n })\n .then(() => {\n this.$refs.table.tableDelete(arr)\n })\n .catch((action) => {})\n } else {\n this.$message.error('请选中需要删除的数据')\n }\n }\n }\n}\n</script>","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/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contractManage.vue?vue&type=script&lang=js&\"; 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/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contractManage.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./contractManage.vue?vue&type=template&id=6d856de9&\"\nimport script from \"./contractManage.vue?vue&type=script&lang=js&\"\nexport * from \"./contractManage.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 null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}