From 1f9090b0b85200ebdb1316d3848b2b1198a65b9c Mon Sep 17 00:00:00 2001 From: guoweilong Date: Thu, 6 Jun 2024 18:15:20 +0800 Subject: [PATCH] fix:修改问题 --- manifest.json | 2 +- pages/charge/visitsAndFees/createaVisit.vue | 28 +++++++++++++++++----------- pages/charge/visitsAndFees/index.vue | 19 ++++++++++--------- utils/dict.js | 2 ++ utils/permission.js | 1 - 5 files changed, 30 insertions(+), 22 deletions(-) diff --git a/manifest.json b/manifest.json index 3dde25e..3b9b09e 100644 --- a/manifest.json +++ b/manifest.json @@ -83,7 +83,7 @@ "disableHostCheck" : true, "proxy" : { "/api" : { - "target" : "http://dz64qt.natappfree.cc", + "target" : "http://192.168.0.8:8001", "changeOrigin" : true, "secure" : true, "pathRewrite" : { diff --git a/pages/charge/visitsAndFees/createaVisit.vue b/pages/charge/visitsAndFees/createaVisit.vue index d440225..017dcc4 100644 --- a/pages/charge/visitsAndFees/createaVisit.vue +++ b/pages/charge/visitsAndFees/createaVisit.vue @@ -11,8 +11,8 @@ - + @@ -20,8 +20,8 @@ + :disabled="operationStatus ==='YD' || item.key === 'billingPersonName'" + :disabledColor="operationStatus==='YD'?'#F5F7FA':'#fff'" border="none"> @@ -75,7 +75,7 @@ - @@ -194,7 +194,7 @@ @close="gsShow = false" keyName="label" @confirm="gsConfirm" @change="changeHandler"> + @cancel="datetimeShow = false" @close="datetimeShow = false" mode="date"> @@ -410,7 +410,7 @@ placeholder: "请输入", type: "input", required: true, - key: "billingPersonName" + key: "billingPersonName", }, { label: '兼职/全职', placeholder: "请选择", @@ -470,11 +470,12 @@ show: true, }, { label: '是否有意向', - // placeholder: "请选择", + placeholder: "请选择", required: true, - type: "radio", + type: "select", key: "isIntent", show: true, + dict: 'sys_cn_yn' }, { label: '房屋情况', placeholder: "请选择", @@ -659,6 +660,7 @@ }, onLoad(data) { + this.init(); console.log(data); if (data.objData) { let obj = JSON.parse(data.objData); @@ -680,7 +682,6 @@ this.operationStatus = "TJ" //添加 } } - this.init() }, methods: { // 编辑或异动需要填充数据 @@ -724,10 +725,15 @@ }, async init() { console.log(this.$store); + // 默认选是 + this.model.isCharged = '是'; + this.model.isVisited = '是'; + this.model.hasDm = '是'; // 查询财年 await this.getCurrentFiscalYear() await this.getCompanyCascader() let nickName = uni.getStorageSync("nickName"); + this.$set(this.model, 'billingPersonName', nickName) // console.log(this.model.billingPersonName); }, @@ -919,7 +925,7 @@ }, // 时间弹出层确认 dateConfirm(e) { - let time = this.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM:ss'); + let time = this.$u.timeFormat(e.value, 'yyyy-mm-dd'); console.log("选择时间", time); this.model[this.currentName] = time; this.datetimeShow = false; diff --git a/pages/charge/visitsAndFees/index.vue b/pages/charge/visitsAndFees/index.vue index 5b9bbda..32b23a9 100644 --- a/pages/charge/visitsAndFees/index.vue +++ b/pages/charge/visitsAndFees/index.vue @@ -63,8 +63,8 @@ 用户:{{item.userName|| "--"}} - - + + @@ -87,25 +87,25 @@ 更多操作 - - 修改 + + 修改 - + 查看详情 - + 拒绝 - + 同意 - + {{item.statusNodeName}} - + @@ -311,6 +311,7 @@ console.log('item', JSON.parse(JSON.stringify(item))); }, onSearch(e) { + this.params.pageNum = 1; this.params.userName = this.keyword; this.initData() console.log("搜索", e); diff --git a/utils/dict.js b/utils/dict.js index f67cc54..a536a95 100644 --- a/utils/dict.js +++ b/utils/dict.js @@ -7,6 +7,8 @@ import store from '@/store' export const DICT_TYPE = { // ========== APP模块 ========== + SYS_YES_NO: 'sys_yes_no', //系统是否 + SYS_CN_YN: 'sys_cn_yn', //系统是否 SYS_PLATE_NAME: 'sys_plate_name', // 板块名称 SYS_HOUSEHOLD_AGE: 'sys_household_age', // 户主年龄 SYS_LIVE_NO: 'sys_live_no', //居住人口 diff --git a/utils/permission.js b/utils/permission.js index 9460e80..5a6559c 100644 --- a/utils/permission.js +++ b/utils/permission.js @@ -10,7 +10,6 @@ export function checkPermi(value) { const permissions = store.getters && store.getters.permissions const permissionDatas = value const all_permission = "*:*:*" - const hasPermission = permissions.some(permission => { return all_permission === permission || permissionDatas.includes(permission) }) -- libgit2 0.21.2