| | |
| | | value, |
| | | column |
| | | }) => { |
| | | // this.$message.success('focus事件查看控制台') |
| | | // console.log('获取焦点', value, column) |
| | | // this.$refs.userList && this.$refs.userList.resetForm() |
| | | this.$refs.userList.show(this.discussion.articleRange) |
| | | }, |
| | | }, |
| | |
| | | .el-pagination { |
| | | margin-top: 20px; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | selectPersonList(personList) { |
| | | console.log(personList, "++++++++++++") |
| | | this.personList = personList |
| | | let nameList = personList.map(e => { |
| | | return e.name |
| | | }) |
| | | this.froms.userName = nameList.join(",") |
| | | }, |
| | | submit() { |
| | | this.$emit("selectPersonList", this.idsList) |
| | | this.showDialog = false |
| | |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | <div slot="header"> |
| | | <span>审批信息</span> |
| | | </div> |
| | | <avue-form :option="option" :value="form"> |
| | | <avue-form :option="option" :value="form" :upload-after="uploadAfter"> |
| | | |
| | | <template slot-scope="{ row, size, index }" slot="vote"> |
| | | <div>{{ topicTitle }}</div> |
| | |
| | | flow: { |
| | | assigneeName: '', |
| | | }, |
| | | attachment: [], |
| | | startTime: '', |
| | | endTime: '', |
| | | reason: '', |
| | |
| | | trigger: "blur", |
| | | }, ], |
| | | disabled: true |
| | | }, |
| | | { |
| | | disabled: true, |
| | | label: "户室", |
| | | prop: "houseNames", |
| | | tags: true, |
| | | type: "input", |
| | | span: 12, |
| | | remote: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: '请选择户室', |
| | | trigger: 'blur' |
| | | }], |
| | | focus: ({ |
| | | value, |
| | | column |
| | | }) => { |
| | | if (!this.form.districtId) { |
| | | this.$message({ |
| | | type: "error", |
| | | message: "请先选择小区后,再选择户室!", |
| | | }) |
| | | return |
| | | } |
| | | this.$refs.userList.show(this.form.districtId) |
| | | }, |
| | | }, |
| | | { |
| | | label: '维修项目名称', |
| | |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "楼栋", |
| | | prop: "buildingName", |
| | | labelWidth: 140, |
| | | value: '', |
| | | label: "项目分摊方式", |
| | | prop: "allocationWay", |
| | | value: '按建筑面积分摊', |
| | | span: 12, |
| | | row: true, |
| | | disabled: true |
| | |
| | | }, ], |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "项目预算总金额(元)", |
| | | prop: "budgetAmount", |
| | | span: 12, |
| | | hide: true, |
| | | labelWidth: 140, |
| | | type: 'number', |
| | | precision: 2, |
| | | value: '0.00', |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "实际预算金额(元)", |
| | | prop: "actualAmount", |
| | | span: 12, |
| | | hide: true, |
| | | labelWidth: 140, |
| | | type: 'number', |
| | | precision: 2, |
| | | value: '0.00', |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "自筹金额(元)", |
| | | prop: "selfAmount", |
| | | span: 12, |
| | | hide: true, |
| | | labelWidth: 140, |
| | | type: 'number', |
| | | precision: 2, |
| | | value: '0.00', |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "预算应拨付金额(元)", |
| | | prop: "budgetAppropriateAmount", |
| | | span: 12, |
| | | hide: true, |
| | | labelWidth: 140, |
| | | type: 'number', |
| | | precision: 2, |
| | | value: '0.00', |
| | | disabled: true |
| | | }, |
| | | // { |
| | | // label: "项目预算总金额(元)", |
| | | // prop: "budgetAmount", |
| | | // span: 12, |
| | | // hide: true, |
| | | // labelWidth: 140, |
| | | // type: 'number', |
| | | // precision: 2, |
| | | // value: '0.00', |
| | | // disabled: true |
| | | // }, |
| | | // { |
| | | // label: "实际预算金额(元)", |
| | | // prop: "actualAmount", |
| | | // span: 12, |
| | | // hide: true, |
| | | // labelWidth: 140, |
| | | // type: 'number', |
| | | // precision: 2, |
| | | // value: '0.00', |
| | | // disabled: true |
| | | // }, |
| | | // { |
| | | // label: "自筹金额(元)", |
| | | // prop: "selfAmount", |
| | | // span: 12, |
| | | // hide: true, |
| | | // labelWidth: 140, |
| | | // type: 'number', |
| | | // precision: 2, |
| | | // value: '0.00', |
| | | // disabled: true |
| | | // }, |
| | | // { |
| | | // label: "预算应拨付金额(元)", |
| | | // prop: "budgetAppropriateAmount", |
| | | // span: 12, |
| | | // hide: true, |
| | | // labelWidth: 140, |
| | | // type: 'number', |
| | | // precision: 2, |
| | | // value: '0.00', |
| | | // disabled: true |
| | | // }, |
| | | { |
| | | disabled: true, |
| | | display: false, |
| | |
| | | type: "textarea", |
| | | disabled: true |
| | | }, |
| | | // { |
| | | // label: '施工方案附件', |
| | | // prop: 'constructionSchemeUrls', |
| | | // type: 'upload', |
| | | // span: 24, |
| | | // hide: true, |
| | | // labelWidth: 140, |
| | | // multiple: true, |
| | | // // showFileList: true, |
| | | // propsHttp: { |
| | | // res: 'data', |
| | | // name: "originalName", |
| | | // url: "link" |
| | | // }, |
| | | // action: '/api/blade-resource/oss/endpoint/put-file-attach', |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传施工方案", |
| | | // trigger: "blur", |
| | | // }, ], |
| | | // } |
| | | { |
| | | label: '施工方案附件', |
| | | prop: 'constructionSchemeUrls', |
| | | type: 'upload', |
| | | label: "维修资金使用申请审批表", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file1", |
| | | type: "upload", |
| | | dataType: 'object', |
| | | listType: "text", |
| | | props: { |
| | | label: 'fileUrl', |
| | | value: 'fileName' |
| | | }, |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | | name: 'name', |
| | | url: "link", |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | labelWidth: 140, |
| | | multiple: true, |
| | | // showFileList: true, |
| | | propsHttp: { |
| | | res: 'data', |
| | | name: "originalName", |
| | | url: "link" |
| | | disabled: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | label: "申请使用维修资金的报告、附维修部位彩色照片、业委会(物管会)会议纪要(社区意见)", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file2", |
| | | type: "upload", |
| | | dataType: 'object', |
| | | listType: "text", |
| | | props: { |
| | | label: 'fileUrl', |
| | | value: 'fileName' |
| | | }, |
| | | action: '/api/blade-resource/oss/endpoint/put-file-attach', |
| | | rules: [{ |
| | | required: true, |
| | | message: "请上传施工方案", |
| | | trigger: "blur", |
| | | }, ], |
| | | } |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | | name: 'name', |
| | | url: "link", |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | disabled: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | label: "公示单,现场勘察图片、公示照片(公示期7天)", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file3", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | | name: 'name', |
| | | url: "link", |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | disabled: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | label: "维修单位出具的工程款发票(验收合格后以竣工决算审核报告审定金额开具)", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file4", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | | name: 'name', |
| | | url: "link", |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | disabled: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | label: "应急维修需提供专业机构出具的检验检测报告或(乡镇人民政府)街道办事处现场核实意见", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file5", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | | name: 'name', |
| | | url: "link", |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | disabled: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | label: "业主签名表或线上表决记录(应急情况不提供)", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file6", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | | name: 'name', |
| | | url: "link", |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | disabled: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | label: "政府采购资料", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file7", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | | name: 'name', |
| | | url: "link", |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | disabled: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | label: "维修和更新、改造方案、维修项目的协议或合同", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file8", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | | name: 'name', |
| | | url: "link", |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | disabled: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | label: "维修改造工程竣工验收单一式两份(维修完工需经申请人签字);维修项目签证单(超出预算清单内容的需出具签证单)", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file9", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | | name: 'name', |
| | | url: "link", |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | disabled: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | label: "维修项目决算、造价机构出具的决算审价报告", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file10", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | | name: 'name', |
| | | url: "link", |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | disabled: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | label: "业主委员会情况登记表;经办人或代理人证件(复印件),复印件上签名、联系电话", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file11", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | | name: 'name', |
| | | url: "link", |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | disabled: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | ], |
| | | }, |
| | | topictData: [], |
| | |
| | | const data = res.data; |
| | | if (data.success) { |
| | | this.form = data.data; |
| | | if (this.form.attachment) { |
| | | this.form.attachment = JSON.parse(this.form.attachment) |
| | | this.form.attachment.forEach(item => { |
| | | let name = item.name |
| | | this.form[name] = item |
| | | }) |
| | | console.log("*********555***********" + JSON.stringify(this.form)) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | |
| | | <el-button type="danger" @click="handleDisagree">关闭申请</el-button> |
| | | </div> |
| | | |
| | | <deitDiscussion ref="DeitDiscussion"> |
| | | </deitDiscussion> |
| | | <deitDiscussion ref="DeitDiscussion"> </deitDiscussion> |
| | | |
| | | <userList ref="userList" @selectPersonList="selectPersonList"></userList> |
| | | |
| | | </basic-container> |
| | | </template> |
| | |
| | | historyFlowList, |
| | | leaveDetail |
| | | } from "@/api/work/process"; |
| | | import userList from "../../components/userList.vue"; |
| | | |
| | | import { |
| | | getList, |
| | |
| | | import deitDiscussion from "../../components/deitDiscussion.vue" |
| | | export default { |
| | | components: { |
| | | deitDiscussion |
| | | deitDiscussion, |
| | | userList |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | message: "请选择小区", |
| | | trigger: "blur", |
| | | }, ], |
| | | }, |
| | | { |
| | | disabled: true, |
| | | label: "户室", |
| | | prop: "houseNames", |
| | | tags: true, |
| | | type: "input", |
| | | span: 12, |
| | | remote: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: '请选择户室', |
| | | trigger: 'blur' |
| | | }], |
| | | focus: ({ |
| | | value, |
| | | column |
| | | }) => { |
| | | if (!this.form.districtId) { |
| | | this.$message({ |
| | | type: "error", |
| | | message: "请先选择小区后,再选择户室!", |
| | | }) |
| | | return |
| | | } |
| | | this.$refs.userList.show(this.form.districtId) |
| | | }, |
| | | }, |
| | | { |
| | | label: '维修项目名称', |
| | |
| | | viewDisabled: false, |
| | | type: 'select', |
| | | dicUrl: `/api/blade-article/article/getArticleByDistrictId?type=4&eventType=1&districtIdList={{districtId}}`, |
| | | // slot: true, |
| | | formslot: true, |
| | | cascader: ['vote'], |
| | | props: { |
| | |
| | | }, ], |
| | | change: (val) => { |
| | | console.log("val===>", val) |
| | | // console.log("form===>",this.form) |
| | | |
| | | |
| | | } |
| | | }, |
| | | |
| | |
| | | labelWidth: 140, |
| | | type: "textarea", |
| | | }, |
| | | // { |
| | | // label: "批复意见", |
| | | // span: 24, |
| | | // hide: true, |
| | | // prop: "comment", |
| | | // labelWidth: 140, |
| | | // type: "textarea", |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请输入批复意见", |
| | | // trigger: "blur", |
| | | // }, ], |
| | | // }, |
| | | { |
| | | label: '施工方案附件', |
| | | prop: 'constructionSchemeUrls', |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | uploadAfter(res, done, loading, column) { |
| | | console.log(res, column) |
| | | // this.form.attachment = [] |
| | | this.form.attachment.push({ |
| | | fileName: column.label, |
| | | fileUrl: res.link, |
| | | fileType: this.getFileExtension(res.originalName), |
| | | }) |
| | | done() |
| | | // this.$message.success('上传后的方法') |
| | | }, |
| | | |
| | | getFileExtension(filename) { |
| | | var lastDotIndex = filename.lastIndexOf('.'); |
| | | if (lastDotIndex !== -1) { |
| | | return filename.substring(lastDotIndex + 1); |
| | | } |
| | | return ''; |
| | | }, |
| | | |
| | | selectPersonList(personList) { |
| | | console.log(personList, "++++++++++++") |
| | | this.personList = personList |
| | | let houseNameList = personList.map(e => { |
| | | if (e.houseName) { |
| | | return e.houseName |
| | | } |
| | | }) |
| | | this.form.houseName = houseNameList.join(",") |
| | | let addressCodeList = personList.map(e => { |
| | | if (e.addressCode) { |
| | | return e.addressCode |
| | | } |
| | | }) |
| | | this.form.addressCodes = addressCodeList.join(",") |
| | | }, |
| | | handleSubmit(form, done, loading) { |
| | | if (form.constructionSchemeUrls.length > 0) { |
| | | var urls = [] |
| | |
| | | <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel" |
| | | v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" |
| | | @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" |
| | | @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
| | | @current-change="currentChange" @size-change="sizeChange" :upload-after="uploadAfter" |
| | | @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template slot-scope="{ row, size, index }" slot="voteForm"> |
| | | <div>{{ topicTitle }}</div> |
| | | <el-table :data="topictData" v-if="topictData.length"> |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </template> |
| | | |
| | | |
| | | |
| | | <template slot-scope="{ row, size, index }" slot="menu"> |
| | | |
| | |
| | | |
| | | <deitDiscussion ref="DeitDiscussion"> |
| | | </deitDiscussion> |
| | | |
| | | <userList ref="userList" @selectPersonList="selectPersonList"></userList> |
| | | |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | |
| | | add, |
| | | getPropertyCapitalApply |
| | | } from "@/api/property/propertyCapitalApply" |
| | | import userList from "./components/userList.vue"; |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | |
| | | |
| | | export default { |
| | | components: { |
| | | deitDiscussion |
| | | deitDiscussion, |
| | | userList |
| | | }, |
| | | data() { |
| | | return { |
| | | showDialog: false, |
| | | form: { |
| | | // constructionSchemeUrls:[] |
| | | attachment: [] |
| | | }, |
| | | query: {}, |
| | | loading: true, |
| | |
| | | trigger: "blur", |
| | | }, ], |
| | | }, |
| | | |
| | | { |
| | | // display: false, |
| | | label: "户室", |
| | | prop: "houseNames", |
| | | tags: true, |
| | | type: "input", |
| | | // multiple: true, |
| | | span: 12, |
| | | // offset: 8, |
| | | remote: true, |
| | | // hide: true, |
| | | // row: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: '请选择户室', |
| | | trigger: 'blur' |
| | | }], |
| | | focus: ({ |
| | | value, |
| | | column |
| | | }) => { |
| | | if (!this.form.districtId) { |
| | | this.$message({ |
| | | type: "error", |
| | | message: "请先选择小区后,再选择户室!", |
| | | }) |
| | | return |
| | | } |
| | | this.$refs.userList.show(this.form.districtId) |
| | | }, |
| | | }, |
| | | { |
| | | label: '维修项目名称', |
| | | prop: 'name', |
| | |
| | | }, ], |
| | | }, |
| | | { |
| | | label: "楼栋", |
| | | prop: "buildingName", |
| | | value: '', |
| | | label: "项目分摊方式", |
| | | prop: "allocationWay", |
| | | value: '按建筑面积分摊', |
| | | span: 12, |
| | | row: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请输入楼栋", |
| | | trigger: "blur", |
| | | }, ], |
| | | // row: true, |
| | | |
| | | }, |
| | | |
| | | { |
| | | width: 110, |
| | | label: '联系人', |
| | |
| | | value: 7, |
| | | }] |
| | | }, |
| | | { |
| | | label: "项目预算总金额(元)", |
| | | prop: "budgetAmount", |
| | | span: 12, |
| | | hide: true, |
| | | type: 'number', |
| | | precision: 2, |
| | | value: '0.00' |
| | | }, |
| | | { |
| | | label: "实际预算金额(元)", |
| | | prop: "actualAmount", |
| | | span: 12, |
| | | hide: true, |
| | | type: 'number', |
| | | precision: 2, |
| | | value: '0.00' |
| | | }, |
| | | { |
| | | label: "自筹金额(元)", |
| | | prop: "selfAmount", |
| | | span: 12, |
| | | hide: true, |
| | | type: 'number', |
| | | precision: 2, |
| | | value: '0.00' |
| | | }, |
| | | { |
| | | label: "预算应拨付金额(元)", |
| | | prop: "budgetAppropriateAmount", |
| | | span: 12, |
| | | hide: true, |
| | | type: 'number', |
| | | precision: 2, |
| | | value: '0.00' |
| | | }, |
| | | // { |
| | | // label: "项目预算总金额(元)", |
| | | // prop: "budgetAmount", |
| | | // span: 12, |
| | | // hide: true, |
| | | // type: 'number', |
| | | // precision: 2, |
| | | // value: '0.00' |
| | | // }, |
| | | // { |
| | | // label: "实际预算金额(元)", |
| | | // prop: "actualAmount", |
| | | // span: 12, |
| | | // hide: true, |
| | | // type: 'number', |
| | | // precision: 2, |
| | | // value: '0.00' |
| | | // }, |
| | | // { |
| | | // label: "自筹金额(元)", |
| | | // prop: "selfAmount", |
| | | // span: 12, |
| | | // hide: true, |
| | | // type: 'number', |
| | | // precision: 2, |
| | | // value: '0.00' |
| | | // }, |
| | | // { |
| | | // label: "预算应拨付金额(元)", |
| | | // prop: "budgetAppropriateAmount", |
| | | // span: 12, |
| | | // hide: true, |
| | | // type: 'number', |
| | | // precision: 2, |
| | | // value: '0.00' |
| | | // }, |
| | | { |
| | | display: false, |
| | | hide: true, |
| | |
| | | }, ], |
| | | change: (val) => { |
| | | console.log("val===>", val) |
| | | // console.log("form===>",this.form) |
| | | if (val.value && !this.form.id) { |
| | | this.articleRange = val.articleRange; |
| | | // this.showDialog = true; |
| | | // this.getDetail(val.value, val.articleRange) |
| | | } |
| | | |
| | | } |
| | |
| | | // }] |
| | | // }, |
| | | { |
| | | |
| | | label: "维修资金使用申请审批表", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file1", |
| | | type: "upload", |
| | | dataType: 'object', |
| | | listType: "text", |
| | | props: { |
| | | label: 'name', |
| | | value: 'url' |
| | | }, |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请上传文件", |
| | | trigger: "blur", |
| | | }], |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | |
| | | label: "申请使用维修资金的报告、附维修部位彩色照片、业委会(物管会)会议纪要(社区意见)", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file2", |
| | | type: "upload", |
| | | dataType: 'object', |
| | | listType: "text", |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请上传文件", |
| | | trigger: "blur", |
| | | }], |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | |
| | | label: "公示单,现场勘察图片、公示照片(公示期7天)", |
| | | label: "公示单,预算,现场勘察图片、公示照片(公示期7天)", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file3", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请上传文件", |
| | | trigger: "blur", |
| | | }], |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | |
| | | label: "维修单位出具的工程款发票(验收合格后以竣工决算审核报告审定金额开具)", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file4", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请上传文件", |
| | | trigger: "blur", |
| | | }], |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | label: "应急维修需提供专业机构出具的检验检测报告或(乡镇人民政府)街道办事处现场核实意见", |
| | |
| | | prop: "file5", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请上传文件", |
| | | trigger: "blur", |
| | | }], |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | |
| | | label: "业主签名表或线上表决记录(应急情况不提供)", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file6", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请上传文件", |
| | | trigger: "blur", |
| | | }], |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | label: "政府采购资料", |
| | |
| | | prop: "file7", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请上传文件", |
| | | trigger: "blur", |
| | | }], |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | |
| | | label: "维修和更新、改造方案、维修项目的协议或合同", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file8", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请上传文件", |
| | | trigger: "blur", |
| | | }], |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | |
| | | label: "维修改造工程竣工验收单一式两份(维修完工需经申请人签字);维修项目签证单(超出预算清单内容的需出具签证单)", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file9", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请上传文件", |
| | | trigger: "blur", |
| | | }], |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | |
| | | label: "维修项目决算、造价机构出具的决算审价报告", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file10", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请上传文件", |
| | | trigger: "blur", |
| | | }], |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | { |
| | | |
| | | label: "业主委员会情况登记表;经办人或代理人证件(复印件),复印件上签名、联系电话", |
| | | offset: 2, |
| | | labelPosition: "top", |
| | | prop: "file11", |
| | | type: "upload", |
| | | listType: "text", |
| | | dataType: 'object', |
| | | action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | propsHttp: { |
| | | res: "data", |
| | |
| | | }, |
| | | span: 24, |
| | | hide: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请上传文件", |
| | | trigger: "blur", |
| | | }], |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请上传文件", |
| | | // trigger: "blur", |
| | | // }], |
| | | }, |
| | | ], |
| | | }, |
| | | data: [], |
| | | |
| | | optionList: { |
| | | header: false, |
| | | menu: false, |
| | |
| | | }, |
| | | methods: { |
| | | |
| | | uploadAfter(res, done, loading, column) { |
| | | console.log(res, column) |
| | | // this.form.attachment = [] |
| | | this.form.attachment.push({ |
| | | fileName: column.label, |
| | | fileUrl: res.link, |
| | | name: column.prop, |
| | | originalName: res.originalName, |
| | | fileType: this.getFileExtension(res.originalName), |
| | | }) |
| | | done() |
| | | // this.$message.success('上传后的方法') |
| | | }, |
| | | |
| | | getFileExtension(filename) { |
| | | var lastDotIndex = filename.lastIndexOf('.'); |
| | | if (lastDotIndex !== -1) { |
| | | return filename.substring(lastDotIndex + 1); |
| | | } |
| | | return ''; |
| | | }, |
| | | |
| | | selectPersonList(personList) { |
| | | console.log(personList, "++++++++++++") |
| | | this.personList = personList |
| | | let houseNameList = personList.map(e => { |
| | | if (e.houseName) { |
| | | return e.houseName |
| | | } |
| | | }) |
| | | this.form.houseNames = houseNameList.join(",") |
| | | let addressCodeList = personList.map(e => { |
| | | if (e.addressCode) { |
| | | return e.addressCode |
| | | } |
| | | }) |
| | | this.form.addressCodes = addressCodeList.join(",") |
| | | }, |
| | | rowView() { |
| | | this.showDialog = false; |
| | | }, |
| | |
| | | // }) |
| | | // row.constructionSchemeUrls = urls.join(",") |
| | | // } |
| | | console.log("保存+++++++++" + JSON.stringify(row)) |
| | | |
| | | let keys = ["file1", "file2", "file3", "file4", "file5", "file6", "file7", "file8", "file9", "file10", "file11"] |
| | | let files = {}; |
| | | for (let i in row) { |
| | | if (keys.indexOf(i) != -1) { |
| | | // let keys = ["file1", "file2", "file3", "file4", "file5", "file6", "file7", "file8", "file9", "file10", "file11"] |
| | | // let files = []; |
| | | // for (let i in row) { |
| | | // if (keys.indexOf(i) != -1) { |
| | | |
| | | files[i] = row[i]; |
| | | } |
| | | } |
| | | for (let k in files) { |
| | | files[k] = func.join(files[k]) |
| | | if (files[k].length) { |
| | | let urls = []; |
| | | let split = files[k].split(","); |
| | | split.forEach(url => { |
| | | let names = url.split("jczz/"); |
| | | urls.push(names[1]); |
| | | }) |
| | | files[k] = urls.join(",") |
| | | } |
| | | } |
| | | // files.push(row[i]); |
| | | // } |
| | | // } |
| | | // for (let k in files) { |
| | | // files[k] = func.join(files[k]) |
| | | // if (files[k].length) { |
| | | // let urls = []; |
| | | // let split = files[k].split(","); |
| | | // split.forEach(url => { |
| | | // let names = url.split("jczz/"); |
| | | // urls.push(names[1]); |
| | | // }) |
| | | // files[k] = urls.join(",") |
| | | // } |
| | | // } |
| | | |
| | | row.attachment = JSON.stringify(files); |
| | | for (let j in row) { |
| | | if (keys.indexOf(j) != -1) { |
| | | delete row[j]; |
| | | } |
| | | } |
| | | row.attachment = JSON.stringify(row.attachment); |
| | | // for (let j in row) { |
| | | // if (keys.indexOf(j) != -1) { |
| | | // delete row[j]; |
| | | // } |
| | | // } |
| | | console.log("提交===>", row); |
| | | row.propertyFlag = 1 |
| | | add(row).then( |
| | |
| | | * Copyright (c) 2024 by shuishen, All Rights Reserved. |
| | | */ |
| | | module.exports = { |
| | | //路径前缀 |
| | | publicPath: "/", |
| | | lintOnSave: true, |
| | | productionSourceMap: false, |
| | | chainWebpack: (config) => { |
| | | //忽略的打包文件 |
| | | config.externals({ |
| | | vue: "Vue", |
| | | "vue-router": "VueRouter", |
| | | vuex: "Vuex", |
| | | axios: "axios", |
| | | "element-ui": "ELEMENT", |
| | | }) |
| | | const entry = config.entry("app") |
| | | entry.add("babel-polyfill").end() |
| | | entry.add("classlist-polyfill").end() |
| | | entry.add("@/mock").end() |
| | | //路径前缀 |
| | | publicPath: "/", |
| | | lintOnSave: true, |
| | | productionSourceMap: false, |
| | | chainWebpack: (config) => { |
| | | //忽略的打包文件 |
| | | config.externals({ |
| | | vue: "Vue", |
| | | "vue-router": "VueRouter", |
| | | vuex: "Vuex", |
| | | axios: "axios", |
| | | "element-ui": "ELEMENT", |
| | | }) |
| | | const entry = config.entry("app") |
| | | entry.add("babel-polyfill").end() |
| | | entry.add("classlist-polyfill").end() |
| | | entry.add("@/mock").end() |
| | | }, |
| | | css: { |
| | | extract: { |
| | | ignoreOrder: true, |
| | | }, |
| | | css: { |
| | | extract: { |
| | | ignoreOrder: true, |
| | | }, |
| | | //开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理 |
| | | devServer: { |
| | | port: 1888, |
| | | proxy: { |
| | | "/api/blade-resource/oss": { |
| | | //本地服务接口地址 |
| | | // target: "http://192.168.31.188:9528", |
| | | target: "https://srgdjczzxtpt.com:2080/api", |
| | | // target: "https://kt39592615.goho.co", |
| | | // target: "http://z4042833u6.wicp.vip", |
| | | // target: "http://localhost:9528", |
| | | // target: "http://192.168.2.109:9528", |
| | | //远程演示服务地址,可用于直接启动项目 |
| | | //target: 'https://saber.bladex.cn/api', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | pathRewrite: { |
| | | "^/api": "/", |
| | | }, |
| | | }, |
| | | //开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理 |
| | | devServer: { |
| | | port: 1888, |
| | | proxy: { |
| | | "/api": { |
| | | //本地服务接口地址 |
| | | target:"http://192.168.2.111:9528", |
| | | // target: "https://srgdjczzxtpt.com:2080/api", |
| | | // target: "https://kt39592615.goho.co", |
| | | // target: "http://z4042833u6.wicp.vip", |
| | | // target: "http://localhost:9528", |
| | | // target: "http://192.168.2.109:9528", |
| | | //远程演示服务地址,可用于直接启动项目 |
| | | //target: 'https://saber.bladex.cn/api', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | pathRewrite: { |
| | | "^/api": "/", |
| | | }, |
| | | }, |
| | | }, |
| | | "/api": { |
| | | //本地服务接口地址 |
| | | target: "http://192.168.31.188:9528", |
| | | // target: "https://srgdjczzxtpt.com:2080/api", |
| | | // target: "https://kt39592615.goho.co", |
| | | // target: "http://z4042833u6.wicp.vip", |
| | | // target: "http://localhost:9528", |
| | | // target: "http://192.168.2.109:9528", |
| | | //远程演示服务地址,可用于直接启动项目 |
| | | //target: 'https://saber.bladex.cn/api', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | pathRewrite: { |
| | | "^/api": "/", |
| | | }, |
| | | }, |
| | | }, |
| | | }, |
| | | } |