From 4c1479d740c22d74a50bfd9f2664a6f50d53f889 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Fri, 16 Aug 2024 17:52:27 +0800 Subject: [PATCH] 8yue14tiaoz --- .env.development | 2 +- .env.production | 2 +- .env.prostaging | 2 +- src/const/addProps.js | 4 +- src/const/templateProps.js | 4 +- src/main.js | 4 +- src/utils/createDialog.js | 48 +- src/views/assets/component/addHandle.vue | 4 +- src/views/assets/component/addHandles.vue | 4 +- src/views/assets/component/addHistory.vue | 4 +- src/views/assets/component/addHouse.vue | 4 +- src/views/assets/component/addLand.vue | 4 +- src/views/assets/component/addLease.vue | 4 +- src/views/assets/fileList.vue | 4 +- src/views/assets/files.vue | 4 +- src/views/assets/handle.vue | 4 +- src/views/assets/handleDetail.vue | 4 +- src/views/assets/handleSign.vue | 4 +- src/views/assets/handleSignDetail.vue | 4 +- src/views/assets/handleSignList.vue | 4 +- src/views/assets/house.vue | 4 +- src/views/assets/land.vue | 11 +- src/views/component/detail.vue | 4 +- src/views/component/detailCpn.vue | 6 +- src/views/component/dialog.vue | 4 +- src/views/component/dialogTemplate.vue | 4 +- src/views/component/table.vue | 4 +- src/views/dashboard/components/drawer.vue | 4 +- src/views/dashboard/index.vue | 4 +- src/views/dataShow/leftBottom.vue | 73 ++- src/views/lease/component/addLease.vue | 4 +- src/views/lease/component/addLet.vue | 4 +- src/views/lease/detailLease.vue | 4 +- src/views/lease/detailLet.vue | 6 +- src/views/lease/detailPlan.vue | 4 +- src/views/lease/index.vue | 2 +- src/views/lease/leaseLog.vue | 4 +- src/views/lease/leaseLogDetail.vue | 4 +- src/views/lease/let.vue | 4 +- src/views/lease/sign.vue | 459 +++++++----------- src/views/operate/component/addFile.vue | 4 +- src/views/operate/component/addMenu.vue | 4 +- src/views/operate/file.vue | 4 +- src/views/operate/menu.vue | 4 +- src/views/safety/component/addSafetyPlan.vue | 4 +- src/views/safety/safetyPlan.vue | 4 +- src/views/system/components/formEditor.vue | 2 +- .../system/components/formSlotRender.vue | 18 +- 48 files changed, 360 insertions(+), 415 deletions(-) diff --git a/.env.development b/.env.development index c2030b4..74c1085 100644 --- a/.env.development +++ b/.env.development @@ -4,5 +4,5 @@ ENV='development' # base api VUE_APP_BASE_API=http://wuxiwuye.ali251.langye.net/ VUE_APP_UPLOAD_API=http://wuxiwuye.ali251.langye.net/api/admin/upload-file -VUE_APP_PREVIEW=//view.langye.net:8012/onlinePreview +VUE_APP_PREVIEW=//view.langye.net/preview/onlinePreview diff --git a/.env.production b/.env.production index 2a2b744..84f92f3 100644 --- a/.env.production +++ b/.env.production @@ -4,4 +4,4 @@ ENV = 'production' # base api VUE_APP_BASE_API=http://192.168.1.31:9001/ VUE_APP_UPLOAD_API=http://192.168.1.31:9001/api/admin/upload-file -VUE_APP_PREVIEW=http://192.168.1.31:8012/onlinePreview +VUE_APP_PREVIEW=//view.langye.net/preview/onlinePreview diff --git a/.env.prostaging b/.env.prostaging index a66c205..7a58b6b 100644 --- a/.env.prostaging +++ b/.env.prostaging @@ -10,4 +10,4 @@ ENV = 'prostaging' # base api VUE_APP_BASE_API=http://192.168.221.31:9001/ VUE_APP_UPLOAD_API=http://192.168.221.31:9001/api/admin/upload-file -VUE_APP_PREVIEW=http://192.168.221.31:8012/onlinePreview +VUE_APP_PREVIEW=//view.langye.net/preview/onlinePreview diff --git a/src/const/addProps.js b/src/const/addProps.js index 7c58bf8..88e555e 100644 --- a/src/const/addProps.js +++ b/src/const/addProps.js @@ -50,7 +50,7 @@ export const addPropsMap = new Map([ headers: { Authorization: `Bearer ${getToken()}`, }, - autoUpload: false, + autoUpload: true, multiple: false, limit: 1 }], @@ -59,7 +59,7 @@ export const addPropsMap = new Map([ headers: { Authorization: `Bearer ${getToken()}`, }, - autoUpload: false, + autoUpload: true, multiple: true }], ["textarea", { diff --git a/src/const/templateProps.js b/src/const/templateProps.js index 8b931f1..32ff837 100644 --- a/src/const/templateProps.js +++ b/src/const/templateProps.js @@ -29,7 +29,7 @@ export const templatePropsMap = new Map([ fileList: [ {name: 'food.jpeg', url: ''} ], - autoUpload: false, + autoUpload: true, multiple: false, limit: 1 }], @@ -39,7 +39,7 @@ export const templatePropsMap = new Map([ {name: 'food.jpeg', url: ''}, {name: 'food2.jpeg', url: ''} ], - autoUpload: false, + autoUpload: true, multiple: true }], ["textarea", { diff --git a/src/main.js b/src/main.js index 668d6e8..6282e18 100644 --- a/src/main.js +++ b/src/main.js @@ -81,7 +81,9 @@ Vue.component('my-tinymce',tinymce) import myMap from "@/components/XyMap" Vue.component('my-map',myMap) import afTableColumn from 'af-table-column' -Vue.component('af-table-column',afTableColumn) +Vue.use(afTableColumn,{ + fontSize: 16 +}) Vue.prototype.$integrateData = (target,value) => { for(let i in target){ diff --git a/src/utils/createDialog.js b/src/utils/createDialog.js index 3a8e2be..7f314e2 100644 --- a/src/utils/createDialog.js +++ b/src/utils/createDialog.js @@ -51,7 +51,15 @@ export class CreateDialog { let that = this.self; let props = {}; if (info.edit_input === "file" || info.edit_input === "files") { - props.fileList = this.options.fromFile ? that[this.options.fromFile][info.field] : that.file[info.field]; + if (this.options.fromFile) { + if (typeof this.options.fromFile === 'string') { + props.fileList = that[this.options.fromFile][info.field]; + } else { + props.fileList = this.options.fromFile[info.field]; + } + } else { + props.fileList = that.file[info.field] + } props.beforeUpload = (file) => { if (file.size / 1000 > (50 * 1024)) { that.$message({ @@ -116,24 +124,24 @@ export class CreateDialog { }, "选取文件" ), - h( - "el-button", - { - style: { - "margin-left": "10px", - }, - props: { - size: "small", - type: "success", - }, - on: { - ["click"]: (e) => { - that.$refs[`elEdit_${info.field}`].submit(); - }, - }, - }, - "上传到服务器" - ), + // h( + // "el-button", + // { + // style: { + // "margin-left": "10px", + // }, + // props: { + // size: "small", + // type: "success", + // }, + // on: { + // ["click"]: (e) => { + // that.$refs[`elEdit_${info.field}`].submit(); + // }, + // }, + // }, + // "上传到服务器" + // ), h( "div", { @@ -204,7 +212,7 @@ export class CreateDialog { ...addPropsMap.get(i.edit_input), ...this.extraProps(i), placeholder: i.help, - value: this.options.fromData ? that[this.options.fromData][i.field] : (this.options.disabled ? that.originalForm[i.field] : that.form[i.field]), + value: this.options.fromData ? (typeof this.options.fromData === 'string' ? (that[this.options.fromData][i.field]) : this.options.fromData[i.field]) : (this.options.disabled ? that.originalForm[i.field] : that.form[i.field]), readonly: that.type === "show", //disabled: that.type === 'show', }, diff --git a/src/views/assets/component/addHandle.vue b/src/views/assets/component/addHandle.vue index 3e3f476..2d1a193 100644 --- a/src/views/assets/component/addHandle.vue +++ b/src/views/assets/component/addHandle.vue @@ -232,13 +232,13 @@ export default { diff --git a/src/views/assets/files.vue b/src/views/assets/files.vue index ad28b71..3687a51 100644 --- a/src/views/assets/files.vue +++ b/src/views/assets/files.vue @@ -394,13 +394,13 @@ export default { diff --git a/src/views/assets/handle.vue b/src/views/assets/handle.vue index 43c0625..7bf3124 100644 --- a/src/views/assets/handle.vue +++ b/src/views/assets/handle.vue @@ -665,13 +665,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/assets/handleDetail.vue b/src/views/assets/handleDetail.vue index 266a647..76493fa 100644 --- a/src/views/assets/handleDetail.vue +++ b/src/views/assets/handleDetail.vue @@ -443,13 +443,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/assets/handleSign.vue b/src/views/assets/handleSign.vue index 2458454..215eed3 100644 --- a/src/views/assets/handleSign.vue +++ b/src/views/assets/handleSign.vue @@ -951,13 +951,13 @@ export default { margin-bottom: 10px; } .uploaded-a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } .uploaded-a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/assets/handleSignDetail.vue b/src/views/assets/handleSignDetail.vue index 96ebb3d..825f271 100644 --- a/src/views/assets/handleSignDetail.vue +++ b/src/views/assets/handleSignDetail.vue @@ -563,13 +563,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/assets/handleSignList.vue b/src/views/assets/handleSignList.vue index 057f986..3e0ddc8 100644 --- a/src/views/assets/handleSignList.vue +++ b/src/views/assets/handleSignList.vue @@ -671,13 +671,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/assets/house.vue b/src/views/assets/house.vue index c2729f9..be96705 100644 --- a/src/views/assets/house.vue +++ b/src/views/assets/house.vue @@ -870,13 +870,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/assets/land.vue b/src/views/assets/land.vue index c767b9b..87f0058 100644 --- a/src/views/assets/land.vue +++ b/src/views/assets/land.vue @@ -244,6 +244,7 @@ :btn-width="360" :auths="auths_auth_mixin" :delay-req="true" + :row-style="rowStyle" :destroy-action="destroy" ref="xyTable" :border="true" @@ -660,8 +661,8 @@ export default { customFn: (row) => (
{ (row.xianzhuang == 1 ? '【已处置/拆迁】' : '') } + color: (row.xianzhuang == 2 ? 'red' : '') + }}>{ (row.xianzhuang == 2 ? '【已处置/拆迁】' : '') } { row.name }
) @@ -817,7 +818,7 @@ export default { toHandle (row) { this.$refs['handle'].setRow(row); this.$refs['handle'].show(); - } + }, }, computed: { @@ -875,13 +876,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/component/detail.vue b/src/views/component/detail.vue index a2c7f9e..07e7f8d 100644 --- a/src/views/component/detail.vue +++ b/src/views/component/detail.vue @@ -497,13 +497,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/component/detailCpn.vue b/src/views/component/detailCpn.vue index d4a6746..53622d2 100644 --- a/src/views/component/detailCpn.vue +++ b/src/views/component/detailCpn.vue @@ -1,5 +1,5 @@ @@ -44,7 +70,7 @@ export default { text: "资产总量", num: 36650, tag: "total", - unit: "平方", + unit: "处", icon: "zichan" }, { @@ -55,10 +81,10 @@ export default { icon: "tudi" }, { - text: "汇总数据", + text: "房产资产", num: 8888, - unit: "", - tag: "static", + unit: "平方米", + tag: "house", icon: "fangwu" } ] @@ -72,14 +98,13 @@ export default { const [houses,lands] = this.$store.state.bigdata.assets switch (tag) { case "total": - total += houses.reduce((a,b) => a + parseFloat(b.dengjimianji ?? 0),0) - total += lands.reduce((a,b) => a + parseFloat(b.dengjimianji ?? 0),0) - return total.toFixed(2); + return [lands.length,houses.length]; case "land": - total += lands.reduce((a,b) => a + parseFloat(b.dengjimianji ?? 0),0) + total += lands.reduce((a,b) => a + parseFloat(b.shijimianji ?? 0),0) + return total.toFixed(2); + case "house": + total += houses.reduce((a,b) => a + parseFloat(b.shijimianji ?? 0),0) return total.toFixed(2); - case "static": - return `土地 ${lands.length}处,房产 ${houses.length}处`; default: return total.toFixed(2); } diff --git a/src/views/lease/component/addLease.vue b/src/views/lease/component/addLease.vue index 5e8bc5e..fc502f2 100644 --- a/src/views/lease/component/addLease.vue +++ b/src/views/lease/component/addLease.vue @@ -602,13 +602,13 @@ export default { diff --git a/src/views/lease/leaseLogDetail.vue b/src/views/lease/leaseLogDetail.vue index 13ea9e8..c6f6c0b 100644 --- a/src/views/lease/leaseLogDetail.vue +++ b/src/views/lease/leaseLogDetail.vue @@ -609,13 +609,13 @@ export default { height: 49px; } .uploaded-a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } .uploaded-a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/lease/let.vue b/src/views/lease/let.vue index 04d8ca8..405a24a 100644 --- a/src/views/lease/let.vue +++ b/src/views/lease/let.vue @@ -671,13 +671,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/lease/sign.vue b/src/views/lease/sign.vue index 993b0dd..7609a43 100644 --- a/src/views/lease/sign.vue +++ b/src/views/lease/sign.vue @@ -37,6 +37,10 @@ export default { { show: this.type !== 'change', key: "file" + }, + { + show: this.type === 'change', + key: "buchongwenjian" } ], { @@ -60,7 +64,7 @@ export default { valueFormat: "yyyy-MM", } }), - }, + } ], { disabled: true, @@ -71,6 +75,16 @@ export default { return (
+ + { + let title = new Map([ + ["add", "签订合同"], + ["editor", "修改合同"], + ["change", "合同变更"], + ]); + return title.get(this.type); + })()} on={{['back']: _ => {this.$router.go(-1)}}}> +
- { - this.$router.go(-1); - }, - }} - >

合同变更-原数据

))}
- {/* { - return ( - - ); - }, - }, - { - prop: "yingshou", - label: "应收", - width: 160, - customFn: (row) => { - return ( - - ); - }, - }, - { - prop: "shijidaozhang", - label: "实际到账", - width: 160, - customFn: (row) => { - return ( - - ); - }, - }, - { - prop: "weidaoweiyuanyin", - label: "未到位原因", - width: 180, - customFn: (row) => { - return ( - - ); - }, - }, - { - prop: "shijidaozhangriqi", - label: "租金应到时间", - width: 160, - customFn: (row) => { - return ( - - ); - }, - }, - { - prop: "operate", - label: "操作", - minWidth: 120, - customFn: (row, { $index }) => { - return ( -
- -
- ); - }, - }, - ]} - >
*/}
{oldDialog.render()} @@ -361,15 +239,6 @@ export default { >
- { - this.$router.go(-1); - }, - }} - >

{(() => { let title = new Map([ @@ -616,133 +485,6 @@ export default { ))}

- {/* { - return ( - - ); - }, - }, - { - prop: "yingshou", - label: "应收", - width: 160, - customFn: (row) => { - return ( - - ); - }, - }, - { - prop: "shijidaozhang", - label: "实际到账", - width: 160, - customFn: (row) => { - return ( - - ); - }, - }, - { - prop: "weidaoweiyuanyin", - label: "未到位原因", - width: 180, - customFn: (row) => { - return ( - - ); - }, - }, - { - prop: "shijidaozhangriqi", - label: "租金应到时间", - width: 160, - customFn: (row) => { - return ( - - ); - }, - }, - { - prop: "operate", - label: "操作", - minWidth: 120, - customFn: (row, { $index }) => { - return ( -
- -
- ); - }, - }, - ]} - >
*/}
{dialog.render()} @@ -750,6 +492,147 @@ export default { + { + /* + 历史变更 + */ + } +
+ { + this.logLeases?.map(item => ( + +
+

+ { item.biangengshijian } 变更 +

+
+ +
+
+

资产信息

+
+ +
+ + {/* 租金收取计划 */} +
+
+

+ 租金收取计划 +

+
+ +
+ {item.id_hislease_plans_hislease_id_relation?.map((leasePlan, index) => ( + +
+

+ 租金收取计划{index + 1} +

+
+ +
+ + + + + + + + +
+ + +
+ ))} +
+
+ +
+ { + new CreateDialog(this, + [ + { + show: true, + key: "qiandingnianyue", + label: "签订年月", + render: h("el-date-picker", { + style: { width: "100%" }, + props: { + disable: true, + type: "month", + placeholder: "请选择签订年月", + value: _this.form.qiandingnianyue, + format: "yyyy-MM", + valueFormat: "yyyy-MM", + } + }), + } + ], + { + fromFile: item._file, + fromData: item, + disabled: true + }, + false).render() + } +
+
+ )) + } +
+ { + item._file = {}; + this.formInfo.forEach((i) => { + if (i.edit_input === "file") { + } + if (i.edit_input === "files") { + item._file[i.field] = res[`${i.field}_upload_details`]; + } + }); + }) + this.logLeases = hisLease.data; } this.originalForm = deepCopy(res); this.originalFile = deepCopy(this.file); @@ -1569,13 +1478,13 @@ export default { height: 49px; } .uploaded-a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } .uploaded-a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/operate/component/addFile.vue b/src/views/operate/component/addFile.vue index e6ff64c..ecbeba7 100644 --- a/src/views/operate/component/addFile.vue +++ b/src/views/operate/component/addFile.vue @@ -260,13 +260,13 @@ export default { diff --git a/src/views/operate/menu.vue b/src/views/operate/menu.vue index cfed0e5..2416ae1 100644 --- a/src/views/operate/menu.vue +++ b/src/views/operate/menu.vue @@ -579,13 +579,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/safety/component/addSafetyPlan.vue b/src/views/safety/component/addSafetyPlan.vue index 10913a2..e4d4cc7 100644 --- a/src/views/safety/component/addSafetyPlan.vue +++ b/src/views/safety/component/addSafetyPlan.vue @@ -238,13 +238,13 @@ export default { diff --git a/src/views/system/components/formEditor.vue b/src/views/system/components/formEditor.vue index 50e3610..d358340 100644 --- a/src/views/system/components/formEditor.vue +++ b/src/views/system/components/formEditor.vue @@ -138,7 +138,7 @@ export default { dialogVisible: false, types: [], //输入类型 - rules: [], + rules: {}, }; }, methods: { diff --git a/src/views/system/components/formSlotRender.vue b/src/views/system/components/formSlotRender.vue index b55e97f..cc45e6e 100644 --- a/src/views/system/components/formSlotRender.vue +++ b/src/views/system/components/formSlotRender.vue @@ -24,15 +24,15 @@ export default { type: 'primary' } }, '选取文件'), - h('el-button',{ - style: { - 'margin-left': '10px' - }, - props: { - size: 'small', - type: 'success' - } - }, '上传到服务器'), + // h('el-button',{ + // style: { + // 'margin-left': '10px' + // }, + // props: { + // size: 'small', + // type: 'success' + // } + // }, '上传到服务器'), h('div',{ class: 'el-upload__tip', slot: 'tip'