6ec243d6
wuxw
v1.9 点击提交后,成功提示没有...
|
1
|
<template>
|
bc37d685
wuxw
开发完成合同功能
|
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
<div class="contract-change-detail-container">
<el-card class="box-card">
<div slot="header" class="flex justify-between">
<span>{{ $t('contractChangeDetail.contractInfo') }}</span>
<div class="card-header-actions">
<el-button type="primary" size="small" @click="openSelectContractInfoModel">
<i class="el-icon-search"></i>
{{ $t('contractChangeDetail.selectContract') }}
</el-button>
<el-button type="primary" size="small" @click="goBack">
<i class="el-icon-close"></i>
{{ $t('common.back') }}
</el-button>
</div>
</div>
<el-form>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.contractName')">
<span>{{ contractChangeDetailInfo.contractName }}</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.contractCode')">
<span>{{ contractChangeDetailInfo.contractCode }}</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.contractType')">
<span>{{ contractChangeDetailInfo.contractTypeName }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.partyA')">
<span>{{ contractChangeDetailInfo.partyA }}</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.aContacts')">
<span>{{ contractChangeDetailInfo.aContacts }}</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.aLink')">
<span>{{ contractChangeDetailInfo.aLink }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.partyB')">
<span>{{ contractChangeDetailInfo.partyB }}</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.bContacts')">
<span>{{ contractChangeDetailInfo.bContacts }}</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.bLink')">
<span>{{ contractChangeDetailInfo.bLink }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.operator')">
<span>{{ contractChangeDetailInfo.operator }}</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.operatorLink')">
<span>{{ contractChangeDetailInfo.operatorLink }}</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.amount')">
<span>{{ contractChangeDetailInfo.amount }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.startTime')">
<span>{{ contractChangeDetailInfo.startTime }}</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.endTime')">
<span>{{ contractChangeDetailInfo.endTime }}</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="$t('contractChangeDetail.signingTime')">
<span>{{ contractChangeDetailInfo.signingTime }}</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-card>
<!-- 主体变更 -->
<contract-change-main-body v-if="contractChangeDetailInfo.param === 'contractChangeMainBody'"
ref="contractChangeMainBody" @changeMainBody="handlerMainBody" />
<!-- 租期调整 -->
<contract-change-lease v-show="contractChangeDetailInfo.param === 'contractChangeLease'" ref="contractChangeLease"
|
eb48bd86
wuxw
合同功能测试完成
|
116
|
@changeNotify="handlerMainBody" />
|
bc37d685
wuxw
开发完成合同功能
|
117
118
|
<!-- 资产调整 -->
|
eb48bd86
wuxw
合同功能测试完成
|
119
120
|
<contract-change-assets v-show="contractChangeDetailInfo.param === 'contractChangeAssets'"
ref="contractChangeAssets" @changeNotify="handlerMainBody" />
|
bc37d685
wuxw
开发完成合同功能
|
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
<el-card class="box-card">
<div slot="header" class="flex justify-between">
<span>{{ $t('contractChangeDetail.changeRemark') }}</span>
</div>
<el-form>
<el-form-item :label="$t('contractChangeDetail.changeRemark')">
<el-input v-model="newContract.changeRemark" type="textarea" :rows="5"
:placeholder="$t('contractChangeDetail.changeRemarkPlaceholder')"></el-input>
</el-form-item>
</el-form>
</el-card>
<purchase-approvers v-if="contractChangeDetailInfo.audit === '1001'" ref="purchaseApprovers"
:call-back-listener="contractChangeDetail" :call-back-function="notify3" flow-type="60006" />
<el-row>
<el-col :span="22">
<div class="submit-btn-wrapper">
<el-button type="primary" @click="submitChangeContract">
{{ $t('common.submit') }}
</el-button>
</div>
</el-col>
</el-row>
<choose-contract ref="chooseContract" :emitChooseContract="contractChangeDetailInfo"
@chooseContract="chooseContract" />
</div>
</template>
<script>
import { saveContractChangePlan } from '@/api/contract/contractChangeDetailApi'
import ContractChangeMainBody from '@/components/contract/ContractChangeMainBody'
import ContractChangeLease from '@/components/contract/ContractChangeLease'
import ContractChangeAssets from '@/components/contract/ContractChangeAssets'
import PurchaseApprovers from '@/components/contract/purchaseApprovers'
import ChooseContract from '@/components/contract/ChooseContract'
import { getCommunityId } from '@/api/community/communityApi'
|
7d596bb5
wuxw
v1.9 丢掉合同租期变更丢掉房屋...
|
160
161
|
import { queryContractRoom } from '@/api/contract/addContractApi'
|
bc37d685
wuxw
开发完成合同功能
|
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
export default {
name: 'ContractChangeDetailList',
components: {
ContractChangeMainBody,
ContractChangeLease,
ContractChangeAssets,
PurchaseApprovers,
ChooseContract
},
data() {
return {
contractChangeDetailInfo: {
contractId: '',
contractName: '',
contractCode: '',
contractType: '',
contractTypeName: '',
partyA: '',
partyB: '',
aContacts: '',
bContacts: '',
aLink: '',
bLink: '',
operator: '',
operatorLink: '',
amount: '',
startTime: '',
endTime: '',
signingTime: '',
param: '',
planType: '',
rooms: [],
audit: '',
staffName: '',
nextUserId: ''
},
newContract: {
changeRemark: ''
},
communityId: ''
}
},
created() {
this.communityId = getCommunityId()
const param = this.$route.query.param
this.contractChangeDetailInfo.param = param
},
methods: {
openSelectContractInfoModel() {
this.$refs.chooseContract.open()
},
submitChangeContract() {
if (!this.validateForm()) {
return
}
this.newContract.nextUserId = this.contractChangeDetailInfo.nextUserId
this.newContract.staffName = this.contractChangeDetailInfo.staffName
saveContractChangePlan(this.newContract)
.then(response => {
if (response.code === 0) {
|
6ec243d6
wuxw
v1.9 点击提交后,成功提示没有...
|
225
|
this.$message.success(this.$t('common.operationSuccess'))
|
bc37d685
wuxw
开发完成合同功能
|
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
|
this.goBack()
} else {
this.$message.error(response.msg)
}
})
.catch(error => {
console.error('Error submitting contract change:', error)
this.$message.error(this.$t('common.submitFailed'))
})
},
validateForm() {
// 这里添加表单验证逻辑
if (!this.newContract.changeRemark) {
this.$message.error(this.$t('contractChangeDetail.changeRemarkRequired'))
return false
}
return true
},
goBack() {
this.$router.go(-1)
},
handlerMainBody(item) {
|
eb48bd86
wuxw
合同功能测试完成
|
248
|
// const changeRemark = this.newContract.changeRemark
|
bc37d685
wuxw
开发完成合同功能
|
249
|
this.newContract = JSON.parse(JSON.stringify(this.contractChangeDetailInfo))
|
eb48bd86
wuxw
合同功能测试完成
|
250
|
// this.newContract.changeRemark = changeRemark
|
bc37d685
wuxw
开发完成合同功能
|
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
|
if (item['rooms']) {
this.newContract.rooms = item.rooms
}
Object.assign(this.newContract, item)
},
notify3(info) {
this.contractChangeDetailInfo.nextUserId = info.staffId
this.contractChangeDetailInfo.staffName = info.staffName
},
chooseContract(contract) {
this.contractChangeDetailInfo.contractId = contract.contractId
this.contractChangeDetailInfo.contractName = contract.contractName
this.contractChangeDetailInfo.contractCode = contract.contractCode
this.contractChangeDetailInfo.contractType = contract.contractType
this.contractChangeDetailInfo.contractTypeName = contract.contractTypeName
this.contractChangeDetailInfo.partyA = contract.partyA
this.contractChangeDetailInfo.partyB = contract.partyB
this.contractChangeDetailInfo.aContacts = contract.aContacts
this.contractChangeDetailInfo.bContacts = contract.bContacts
this.contractChangeDetailInfo.aLink = contract.aLink
this.contractChangeDetailInfo.bLink = contract.bLink
this.contractChangeDetailInfo.operator = contract.operator
this.contractChangeDetailInfo.operatorLink = contract.operatorLink
this.contractChangeDetailInfo.amount = contract.amount
this.contractChangeDetailInfo.startTime = contract.startTime
this.contractChangeDetailInfo.endTime = contract.endTime
this.contractChangeDetailInfo.signingTime = contract.signingTime
|
7d596bb5
wuxw
v1.9 丢掉合同租期变更丢掉房屋...
|
278
279
280
281
282
283
284
285
286
|
if(this.$refs.contractChangeAssets){
this.$refs.contractChangeAssets.open(this.contractChangeDetailInfo)
}
this.loadContractRooms()
},
async loadContractRooms() {
const res = await queryContractRoom({ contractId: this.contractChangeDetailInfo.contractId, page: 1, row: 500 })
this.contractChangeDetailInfo.rooms = res.data
},
|
bc37d685
wuxw
开发完成合同功能
|
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
|
}
}
</script>
<style lang="scss" scoped>
.contract-change-detail-container {
padding: 20px;
.box-card {
margin-bottom: 20px;
}
.card-header-actions {
float: right;
}
.submit-btn-wrapper {
text-align: right;
margin-top: 20px;
margin-bottom: 20px;
}
.el-form-item {
margin-bottom: 0;
}
}
</style>
|