de2bd2f9
“wangming”
项目初始化
|
1
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
116
117
118
119
120
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
160
161
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
|
<template>
<div class="flow-form" v-loading="loading">
<div class="com-title">
<h1>合同审批</h1>
<span class="number">流程编码:{{dataForm.billNo}}</span>
</div>
<el-form ref="dataForm" :model="dataForm" :rules="dataRule" label-width="100px"
:disabled="setting.readonly">
<el-row>
<el-col :span="12" v-if="judgeShow('flowTitle')">
<el-form-item label="流程标题" prop="flowTitle">
<el-input v-model="dataForm.flowTitle" placeholder="流程标题"
:disabled="judgeWrite('flowTitle')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('flowUrgent')">
<el-form-item label="紧急程度" prop="flowUrgent">
<el-select v-model="dataForm.flowUrgent" placeholder="选择紧急程度"
:disabled="judgeWrite('flowUrgent')">
<el-option :key="item.value" :label="item.label" :value="item.value"
v-for="item in flowUrgentOptions" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('firstPartyUnit')">
<el-form-item label="甲方单位" prop="firstPartyUnit">
<el-input v-model="dataForm.firstPartyUnit" placeholder="甲方单位"
:disabled="judgeWrite('firstPartyUnit')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('secondPartyUnit')">
<el-form-item label="乙方单位" prop="secondPartyUnit">
<el-input v-model="dataForm.secondPartyUnit" placeholder="乙方单位"
:disabled="judgeWrite('secondPartyUnit')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('firstPartyPerson')">
<el-form-item label="甲方负责人" prop="firstPartyPerson">
<el-input v-model="dataForm.firstPartyPerson" placeholder="甲方负责人"
:disabled="judgeWrite('firstPartyPerson')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('secondPartyPerson')">
<el-form-item label="乙方负责人" prop="secondPartyPerson">
<el-input v-model="dataForm.secondPartyPerson" placeholder="乙方负责人"
:disabled="judgeWrite('secondPartyPerson')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('firstPartyContact')">
<el-form-item label="甲方联系方式" prop="firstPartyContact">
<el-input v-model="dataForm.firstPartyContact" placeholder="甲方联系方式"
:disabled="judgeWrite('firstPartyContact')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('secondPartyContact')">
<el-form-item label="乙方联系方式" prop="secondPartyContact">
<el-input v-model="dataForm.secondPartyContact" placeholder="乙方联系方式"
:disabled="judgeWrite('secondPartyContact')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('contractName')">
<el-form-item label="合同名称" prop="contractName">
<el-input v-model="dataForm.contractName" placeholder="合同名称"
:disabled="judgeWrite('contractName')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('contractClass')">
<el-form-item label="合同分类" prop="contractClass">
<el-input v-model="dataForm.contractClass" placeholder="合同分类"
:disabled="judgeWrite('contractClass')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('contractType')">
<el-form-item label="合同类型" prop="contractType">
<el-input v-model="dataForm.contractType" placeholder="合同类型"
:disabled="judgeWrite('contractType')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('contractId')">
<el-form-item label="合同编码" prop="contractId">
<el-input v-model="dataForm.contractId" placeholder="合同编码"
:disabled="judgeWrite('contractId')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('businessPerson')">
<el-form-item label="业务人员" prop="businessPerson">
<el-input v-model="dataForm.businessPerson" placeholder="业务人员"
:disabled="judgeWrite('businessPerson')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('signingDate')">
<el-form-item label="签约时间" prop="signingDate">
<el-date-picker v-model="dataForm.signingDate" type="datetime" placeholder="选择日期"
value-format="timestamp" format="yyyy-MM-dd HH:mm" :editable='false'
:disabled="judgeWrite('signingDate')">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('startDate')">
<el-form-item label="开始时间" prop="startDate">
<el-date-picker v-model="dataForm.startDate" type="datetime" placeholder="选择日期"
value-format="timestamp" format="yyyy-MM-dd HH:mm" :editable='false'
:disabled="judgeWrite('startDate')">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('endDate')">
<el-form-item label="结束时间" prop="endDate">
<el-date-picker v-model="dataForm.endDate" type="datetime" placeholder="选择日期"
value-format="timestamp" format="yyyy-MM-dd HH:mm" :editable='false'
:disabled="judgeWrite('endDate')">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('incomeAmount')">
<el-form-item label="收入金额" prop="incomeAmount">
<el-input v-model="dataForm.incomeAmount" placeholder="收入金额" type="number"
:disabled="judgeWrite('incomeAmount')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="judgeShow('inputPerson')">
<el-form-item label="填写人员" prop="inputPerson">
<el-input v-model="dataForm.inputPerson" placeholder="填写人员"
:disabled="judgeWrite('inputPerson')"></el-input>
</el-form-item>
</el-col>
<el-col :span="24" v-if="judgeShow('fileJson')">
<el-form-item label="相关附件" prop="fileJson">
<NCC-UploadFz v-model="fileList" type="workFlow" :disabled="judgeWrite('fileJson')" />
</el-form-item>
</el-col>
<el-col :span="24" v-if="judgeShow('primaryCoverage')">
<el-form-item label="主要内容" prop="primaryCoverage">
<el-input v-model="dataForm.primaryCoverage" placeholder="主要内容" type="textarea"
:rows="3" :disabled="judgeWrite('primaryCoverage')" />
</el-form-item>
</el-col>
<el-col :span="24" v-if="judgeShow('description')">
<el-form-item label="备注" prop="description">
<el-input v-model="dataForm.description" placeholder="备注" type="textarea" :rows="3"
:disabled="judgeWrite('description')" />
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</template>
<script>
import comMixin from '../mixin';
export default {
mixins: [comMixin],
name: 'ContractApproval',
data() {
return {
billEnCode: 'WF_ContractApprovalNo',
dataForm: {
flowId: '',
id: '',
billNo: '',
flowTitle: '',
flowUrgent: 1,
firstPartyUnit: '',
secondPartyUnit: '',
firstPartyPerson: '',
secondPartyPerson: '',
firstPartyContact: '',
secondPartyContact: '',
contractName: '',
contractClass: '',
contractId: '',
businessPerson: '',
signingDate: '',
startDate: '',
endDate: '',
incomeAmount: '',
inputPerson: '',
fileJson: '',
primaryCoverage: '',
description: '',
contractType: '',
},
dataRule: {
flowTitle: [
{ required: true, message: '流程标题不能为空', trigger: 'blur' },
],
flowUrgent: [
{ required: true, message: '紧急程度不能为空', trigger: 'change' },
],
contractName: [
{ required: true, message: '合同名称不能为空', trigger: 'blur' },
],
contractId: [
{ required: true, message: '合同编码不能为空', trigger: 'blur' },
],
signingDate: [
{ required: true, message: '签约时间不能为空', trigger: 'change' },
],
startDate: [
{ required: true, message: '开始时间不能为空', trigger: 'change' },
],
endDate: [
{ required: true, message: '结束时间不能为空', trigger: 'change' },
],
}
}
},
methods: {
selfInit(data) {
this.dataForm.flowTitle = this.userInfo.userName + "的合同审批"
}
}
}
</script>
|