| | |
| | | class="action-btn" |
| | | @click.stop="openOpportunity('addOperation', item)" |
| | | > |
| | | 添加改造内容 |
| | | 添加拜访记录 |
| | | </u-button> |
| | | <u-button |
| | | type="default" |
| | |
| | | const typeMap = { |
| | | '新建': 'info', |
| | | '项目跟踪': 'primary', |
| | | '放弃': 'error', |
| | | '合同签约': 'warning', |
| | | '备案申报': 'primary', |
| | | '项目交付': 'success', |
| | | '项目验收': 'success' |
| | | '项目验收': 'success', |
| | | '项目回款': 'success', |
| | | '回补贴': 'success' |
| | | } |
| | | return typeMap[status] || 'default' |
| | | } |
| | |
| | | const textMap = { |
| | | '新建': '新建', |
| | | '项目跟踪': '项目跟踪', |
| | | '放弃': '放弃', |
| | | '合同签约': '合同签约', |
| | | '备案申报': '备案申报', |
| | | '项目交付': '项目交付', |
| | | '项目验收': '项目验收' |
| | | '项目验收': '项目验收', |
| | | '项目回款': '项目回款', |
| | | '回补贴': '回补贴' |
| | | } |
| | | return textMap[status] || '未知' |
| | | } |
| | |
| | | |
| | | // 打开商机操作页面(新增、编辑、详情、添加描述) |
| | | const openOpportunity = (type, row) => { |
| | | console.log('openOpportunity called with type:', type, 'row:', row) |
| | | try { |
| | | uni.setStorageSync('opportunityOperationType', type) |
| | | if (row) { |