Commit 3fabdbc975eaeb7fc9b6ca921f291321c8c4770b
1 parent
78a96911
1
Showing
3 changed files
with
46 additions
and
9 deletions
src/views/DisposalSuggestions/Form.vue
| ... | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | <el-row :gutter="15" class="NCC-dialog-content" v-loading="loading"> |
| 11 | 11 | <el-col :span="10" style="border-right: 1px solid #e6e6e6; height: 400px"> |
| 12 | 12 | <el-row> |
| 13 | - <el-col :span="24" class="form_title"> 巡查上报详情 </el-col> | |
| 13 | + <el-col :span="24" class="form_title">线索详情{{dataForm.disteport}} </el-col> | |
| 14 | 14 | <el-col :span="24"> |
| 15 | 15 | <div class="form-item"> |
| 16 | 16 | <div class="label w-100">问题来源:</div> | ... | ... |
src/views/DisposalSuggestions/HandleForm.vue
| ... | ... | @@ -11,7 +11,7 @@ |
| 11 | 11 | <el-row :gutter="15" class="NCC-dialog-content"> |
| 12 | 12 | <el-col :span="10" style="border-right: 1px solid #e6e6e6; height: 400px;"> |
| 13 | 13 | <el-row> |
| 14 | - <el-col :span="24" class="form_title"> 巡查上报详情 </el-col> | |
| 14 | + <el-col :span="24" class="form_title">线索详情{{dataForm.disteport}}</el-col> | |
| 15 | 15 | <el-col :span="24"> |
| 16 | 16 | <div class="form-item"> |
| 17 | 17 | <div class="label w-100">问题来源:</div> | ... | ... |
src/views/baseInspectionReport/Form.vue
| ... | ... | @@ -9,6 +9,7 @@ |
| 9 | 9 | :modal="false" |
| 10 | 10 | > |
| 11 | 11 | <el-row v-loading="form_loading"> |
| 12 | + <div style="color: #66b1ff;">{{ dataForm.disteport }}</div> | |
| 12 | 13 | <el-row :gutter="15" class="NCC-dialog-content" v-if="!isDetail"> |
| 13 | 14 | <el-form |
| 14 | 15 | ref="elForm" |
| ... | ... | @@ -45,13 +46,7 @@ |
| 45 | 46 | @change="(val) => companyChange(val, 'change')" |
| 46 | 47 | :disabled='!!this.dataForm.id' |
| 47 | 48 | > |
| 48 | - <el-option | |
| 49 | - v-for="item in companyOptions" | |
| 50 | - :key="item.id" | |
| 51 | - :label="item.companyName" | |
| 52 | - :value="item.id" | |
| 53 | - > | |
| 54 | - </el-option> | |
| 49 | + <el-option v-for="item in companyOptions" :key="item.id" :label="item.companyName" :value="item.id"/> | |
| 55 | 50 | </el-select> |
| 56 | 51 | </el-form-item> |
| 57 | 52 | </el-col> |
| ... | ... | @@ -80,6 +75,22 @@ |
| 80 | 75 | </el-radio-group> |
| 81 | 76 | </el-form-item> |
| 82 | 77 | </el-col> |
| 78 | + <!-- 办公地址address、联系人contactUser、联系电话contactPhone --> | |
| 79 | + <el-col :span="24"> | |
| 80 | + <el-form-item label="办公地址" prop="address"> | |
| 81 | + <el-input v-model="dataForm.address" placeholder="请输入办公地址" clearable :style="{ width: '100%' }"></el-input> | |
| 82 | + </el-form-item> | |
| 83 | + </el-col> | |
| 84 | + <el-col :span="24"> | |
| 85 | + <el-form-item label="联系人" prop="contactUser"> | |
| 86 | + <el-input v-model="dataForm.contactUser" placeholder="请输入联系人" clearable :style="{ width: '100%' }"></el-input> | |
| 87 | + </el-form-item> | |
| 88 | + </el-col> | |
| 89 | + <el-col :span="24"> | |
| 90 | + <el-form-item label="联系电话" prop="contactPhone"> | |
| 91 | + <el-input v-model="dataForm.contactPhone" placeholder="请输入联系电话" clearable :style="{ width: '100%' }"></el-input> | |
| 92 | + </el-form-item> | |
| 93 | + </el-col> | |
| 83 | 94 | <el-col :span="24" v-show="dataForm.platformType == '580634746028033285'"> |
| 84 | 95 | <el-form-item label="归属平台" prop="selfMediaPlatformType"> |
| 85 | 96 | <el-radio-group v-model="dataForm.selfMediaPlatformType" :disabled="!!this.dataForm.id"> |
| ... | ... | @@ -181,6 +192,18 @@ |
| 181 | 192 | <div class="label w-120">应用类型:</div> |
| 182 | 193 | <div class="text">{{ dataForm.platformTypeStr || '--' }}</div> |
| 183 | 194 | </el-col> |
| 195 | + <el-col class="form-item"> | |
| 196 | + <div class="label w-120">办公地址:</div> | |
| 197 | + <div class="text">{{ dataForm.address || '--' }}</div> | |
| 198 | + </el-col> | |
| 199 | + <el-col class="form-item"> | |
| 200 | + <div class="label w-120">联系人:</div> | |
| 201 | + <div class="text">{{ dataForm.contactUser || '--' }}</div> | |
| 202 | + </el-col> | |
| 203 | + <el-col class="form-item"> | |
| 204 | + <div class="label w-120">联系电话:</div> | |
| 205 | + <div class="text">{{ dataForm.contactPhone || '--' }}</div> | |
| 206 | + </el-col> | |
| 184 | 207 | <el-col class="form-item" v-if="dataForm.platformType == '580634746028033285'"> |
| 185 | 208 | <div class="label w-120">归属平台:</div> |
| 186 | 209 | <div class="text">{{ dataForm.selfMediaPlatformType || '--' }}</div> |
| ... | ... | @@ -301,6 +324,10 @@ export default { |
| 301 | 324 | reportSourceName: undefined, |
| 302 | 325 | judgmentOpinions: undefined, |
| 303 | 326 | disposalSuggestions: undefined, |
| 327 | + address: undefined, | |
| 328 | + contactUser: undefined, | |
| 329 | + contactPhone: undefined, | |
| 330 | + disteport: undefined | |
| 304 | 331 | }, |
| 305 | 332 | rules: { |
| 306 | 333 | platformName: [ |
| ... | ... | @@ -318,6 +345,13 @@ export default { |
| 318 | 345 | disposalSuggestions: [ |
| 319 | 346 | { required: true, message: "请填写处置结果", trigger: "blur" }, |
| 320 | 347 | ], |
| 348 | + contactPhone: [ | |
| 349 | + { | |
| 350 | + pattern: /^1[3456789]\d{9}$|^0\d{2,3}-?\d{7,8}$/, | |
| 351 | + message: '请输入正确的联系电话', | |
| 352 | + trigger: 'blur' | |
| 353 | + }, | |
| 354 | + ], | |
| 321 | 355 | // otherQuestionType: [ |
| 322 | 356 | // { required: true, message: "请输入其他问题类型", trigger: "blur" }, |
| 323 | 357 | // ], |
| ... | ... | @@ -385,6 +419,9 @@ export default { |
| 385 | 419 | let obj = this.nameOptions.find(v => type == 'blur' ? val == v.fullName : val == v.id); |
| 386 | 420 | this.dataForm.platformName = obj ? obj.id : val; |
| 387 | 421 | this.dataForm.platformType = obj ? this.platformTypeOptions.find(v => v.Id == obj.systemType || v.FullName == obj.systemType).Id : ''; |
| 422 | + this.dataForm.address = obj ? obj.address : ''; | |
| 423 | + this.dataForm.contactUser = obj ? obj.contactUser : ''; | |
| 424 | + this.dataForm.contactPhone = obj ? obj.contactPhone : ''; | |
| 388 | 425 | if(obj && this.dataForm.platformType == '580634746028033285') { |
| 389 | 426 | if(this.mediaPlatList.findIndex(j => j == obj.selfMediaPlatformType) == -1) { |
| 390 | 427 | this.dataForm.selfMediaPlatformType = '其他'; | ... | ... |