askbot-dragon 1.7.76-beta → 1.7.78-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,8 +13,8 @@
13
13
  class="field-item-name">
14
14
  <span
15
15
  v-if="item.fieldId !== 'workorder_description' && item.fieldId !== 'workorder_clientId'">{{ item.formField.name }}</span>
16
- <span v-if="item.fieldId === 'workorder_description'">{{ isBaiLi ? $t('formTemplate.feedbackDes') : $t('formTemplate.orderDes') }}</span>
17
- <span v-if="item.fieldId === 'workorder_clientId'">{{$t('formTemplate.report')}}</span>
16
+ <span v-if="item.fieldId === 'workorder_description'">{{ isBaiLi ? '反馈描述' : '问题描述' }}</span>
17
+ <span v-if="item.fieldId === 'workorder_clientId'">报单人</span>
18
18
  <span style="color: red;padding-left: 5px;padding-right: 5px"
19
19
  v-if="item.fieldId !== '0feca81fce97465da537248c066e4db8' && item.fieldId !== '1d8bd21485834773a6d18eae60013000' && (item.required || isRequiredFn(item.formField))">*</span>
20
20
  <el-tooltip class="item" effect="dark" placement="right-start">
@@ -59,7 +59,7 @@
59
59
  </div>
60
60
  </template>
61
61
  <el-input type="textarea" :rows="2" v-model="item.value"
62
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.inputPlaceholder')"
62
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请输入'"
63
63
  :maxlength="item.formField.extInfo && item.formField.extInfo.maxNum ? item.formField.extInfo.maxNum * 1 : 1000"
64
64
  v-if="item.formField.type === 'TEXTAREA' && item.fieldId !== 'workorder_description'"></el-input>
65
65
  <div v-else-if="item.fieldId === 'workorder_description'">
@@ -79,20 +79,20 @@
79
79
  <file-list-view :attachmentList="attachmentList" @attachDeleteAttch="attachDeleteAttch"></file-list-view>
80
80
  </div>
81
81
  <el-date-picker v-model=item.value type="date"
82
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectDate')"
82
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择日期'"
83
83
  style="width: 100%" v-else-if="item.formField.type === 'DATE_PICKER'">
84
84
  </el-date-picker>
85
85
  <el-time-picker v-model=item.value format="HH:mm"
86
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectTime')"
86
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择时间'"
87
87
  style="width: 100%"
88
88
  v-else-if="item.formField.type === 'TIME_PICKER' && (!item.formField.extInfo.mold || item.formField.extInfo.mold == 'TIME' || getMoldTime(item.formField) == 'TIME')">
89
89
  </el-time-picker>
90
90
  <el-date-picker v-model=item.value type="date" style="width: 100%"
91
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectDate')"
91
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择日期'"
92
92
  v-else-if="item.formField.type === 'TIME_PICKER' && (item.formField.extInfo.mold === 'DATA' || item.formField.extInfo.mold === 'DATE' || getMoldTime(item.formField) == 'DATE')">
93
93
  </el-date-picker>
94
94
  <el-date-picker v-model=item.value
95
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectDateTime')"
95
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择日期时间'"
96
96
  clearable style="width: 100%" type="datetime"
97
97
  v-else-if="item.formField.type === 'TIME_PICKER' && (item.formField.extInfo.mold === 'DATA_TIME' || item.formField.extInfo.mold === 'DATE_TIME' || getMoldTime(item.formField) == 'DATE_TIME')">
98
98
  </el-date-picker>
@@ -122,7 +122,7 @@
122
122
  </div>
123
123
  <div v-else-if="item.formField.type === 'SELECT' || item.formField.type === 'OPTION'">
124
124
  <el-select v-model=item.value
125
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
125
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
126
126
  style="width: 100%" filterable
127
127
  v-if="item.fieldId === 'workorder_clientId' || item.fieldId === 'workorder_statusId' || item.fieldId === 'workorder_priority'">
128
128
  <el-option v-for="(items, index) in selectOptions(item.formField)" :key="index" :label="items.label"
@@ -130,7 +130,7 @@
130
130
  </el-option>
131
131
  </el-select>
132
132
  <el-select v-model=item.value
133
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
133
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
134
134
  style="width: 100%" filterable v-else @change="changeSelect(item)"
135
135
  :multiple="item.formField.extInfo && item.formField.extInfo.selectType == '多选'">
136
136
  <el-option v-for="(items, index) in optionsLists(item)" :key="index" :label="items.label"
@@ -159,7 +159,7 @@
159
159
  </span>
160
160
  </template>
161
161
  <span
162
- v-else>{{ item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder' )}}</span>
162
+ v-else>{{ item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择' }}</span>
163
163
  </div>
164
164
  <!-- <el-cascader
165
165
  v-model=item.value
@@ -210,7 +210,7 @@
210
210
  </template>
211
211
  <div v-else-if="item.formField.type == 'REF_TEMPLATE' || item.formField.type == 'REF'">
212
212
  <el-select v-model=item.value
213
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
213
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
214
214
  style="width: 100%" filterable
215
215
  :multiple="item.formField.extInfo && item.formField.extInfo.selectType == '多选'"
216
216
  @visible-change="(visible) => { return refTemplateVisibleChange(visible, item) }" collapse-tags
@@ -234,7 +234,7 @@
234
234
  <div v-if="item.formField.type === 'INPUT'" class="form-field-item-value">
235
235
  <van-field v-model=item.value :label=item.formField.name
236
236
  :required="item.required || isRequiredFn(item.formField)" :disabled="disableds"
237
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.inputPlaceholder')"
237
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请输入'"
238
238
  :maxlength="item.formField.extInfo && item.formField.extInfo.maxNum ? item.formField.extInfo.maxNum * 1 : 1000"
239
239
  @blur="typeCheck(item.formField, item)" :type="item.formField.extInfo.inputType === 'NUMBER' ||
240
240
  item.formField.extInfo.inputType === 'RATE' ? 'number' : 'text'">
@@ -270,7 +270,7 @@
270
270
  <div v-else-if="item.formField.type === 'TEXTAREA'" class="form-field-item-value">
271
271
  <van-field v-model=item.value :label=item.formField.name
272
272
  :required="item.required || isRequiredFn(item.formField)" type="textarea" :disabled="disableds"
273
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.inputPlaceholder')"
273
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请输入'"
274
274
  :maxlength="item.formField.extInfo && item.formField.extInfo.maxNum ? item.formField.extInfo.maxNum * 1 : 1000"
275
275
  v-if="item.fieldId !== 'workorder_description'">
276
276
  <template slot="label">
@@ -317,7 +317,7 @@
317
317
  </div>
318
318
  <div v-else-if="item.formField.type === 'DATE_PICKER'" class="form-field-item-value">
319
319
  <van-field readonly clickable name="calendar" :value=dateValue[item.fieldId] :label=item.formField.name
320
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectDate')"
320
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择日期'"
321
321
  :required="item.required || isRequiredFn(item.formField)" @click="dateClick(item.fieldId)"
322
322
  :disabled="disableds" right-icon="van-icon van-icon-arrow van-cell__right-icon">
323
323
  <template slot="label">
@@ -341,7 +341,7 @@
341
341
  class="form-field-item-value">
342
342
  <van-field readonly clickable name="datetimePicker" :required="item.required || isRequiredFn(item.formField)"
343
343
  :value=extInfoFieldValue[item.fieldId] :label=item.formField.name
344
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
344
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
345
345
  @click="timeClick(item.fieldId, item, 'DATE_TIME')" :disabled="disableds"
346
346
  right-icon="van-icon van-icon-arrow van-cell__right-icon">
347
347
  <template slot="label">
@@ -368,7 +368,7 @@
368
368
  class="form-field-item-value">
369
369
  <van-field readonly clickable name="datetimePicker" :required="item.required || isRequiredFn(item.formField)"
370
370
  :value=extInfoFieldValue[item.fieldId] :label=item.formField.name
371
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
371
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
372
372
  @click="timeClick(item.fieldId, item, 'TIME')" :disabled="disableds"
373
373
  right-icon="van-icon van-icon-arrow van-cell__right-icon">
374
374
  <template slot="label">
@@ -394,7 +394,7 @@
394
394
  class="form-field-item-value">
395
395
  <van-field readonly clickable name="datetimePicker" :required="item.required || isRequiredFn(item.formField)"
396
396
  :value=extInfoFieldValue[item.fieldId] :label=item.formField.name
397
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
397
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
398
398
  @click="timeClick(item.fieldId, item, 'DATE')" :disabled="disableds"
399
399
  right-icon="van-icon van-icon-arrow van-cell__right-icon">
400
400
  <template slot="label">
@@ -511,7 +511,7 @@
511
511
  v-if="item.fieldId === 'workorder_clientId' || item.fieldId === 'workorder_statusId' || item.fieldId === 'workorder_priority'">
512
512
  <van-field readonly clickable name="picker" :value=selectValues[item.fieldId]
513
513
  :label="item.fieldId === 'workorder_clientId' ? '报单人' : item.formField.name"
514
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
514
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
515
515
  @click="selectClick(item.fieldId, 'client', item)" :required="item.required || isRequiredFn(item.formField)"
516
516
  :disabled="disableds" @click-right-icon.stop="SelectClear(item.fieldId)"
517
517
  :right-icon="selectValues[item.fieldId] ? 'close' : 'van-icon van-icon-arrow van-cell__right-icon'">
@@ -537,7 +537,7 @@
537
537
  <van-field readonly clickable name="picker"
538
538
  :value="showSelectText(item.formField.extInfo ? (item.formField.extInfo.option || item.formField.extInfo.options) : [], item.value)"
539
539
  :label=item.formField.name
540
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
540
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
541
541
  @click="selectClick(item.fieldId, 'select', item)" :required="item.required || isRequiredFn(item.formField)"
542
542
  :disabled="disableds" @click-right-icon.stop="SelectClear(item.fieldId)"
543
543
  :right-icon="item.value && item.value.length ? 'close' : 'van-icon van-icon-arrow van-cell__right-icon'">
@@ -586,7 +586,7 @@
586
586
  <van-field readonly clickable
587
587
  :value="Array.isArray(extInfoFieldValue[item.fieldId]) ? extInfoFieldValue[item.fieldId].map(v => v.name).join(',') : (extInfoFieldValue[item.fieldId] && extInfoFieldValue[item.fieldId].name ? extInfoFieldValue[item.fieldId].name : '')"
588
588
  :label="item.formField.name" name="picker"
589
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
589
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
590
590
  @click="selectClick(item.fieldId, 'ref', item)" @click-right-icon.stop="SelectClear(item.fieldId)"
591
591
  :required="item.required || isRequiredFn(item.formField)" :disabled="disableds"
592
592
  :right-icon="extInfoFieldValue[item.fieldId] && extInfoFieldValue[item.fieldId].length ? 'close' : 'van-icon van-icon-arrow van-cell__right-icon'" />
@@ -600,7 +600,7 @@
600
600
  label: 'name'
601
601
  }">
602
602
  <template slot="popup-footer" v-if="refNextPage[item.fieldId] && refNextPage[item.fieldId].hasNextPage">
603
- <span @click="lodeMore(item)">{{$t('common.loadMore')}}</span>
603
+ <span @click="lodeMore(item)">加载更多</span>
604
604
  </template>
605
605
  </select-popup>
606
606
  </van-popup>
@@ -610,7 +610,7 @@
610
610
  <van-field readonly clickable name="area"
611
611
  :value="extInfoFieldValue[item.fieldId] && Array.isArray(extInfoFieldValue[item.fieldId]) ? extInfoFieldValue[item.fieldId].map(e => e.label).join('/') : ''"
612
612
  :label=item.formField.name
613
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
613
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
614
614
  @click="openDrawer(item, 'cascader')"
615
615
  :required="item.fieldId !== '0feca81fce97465da537248c066e4db8' && item.fieldId !== '1d8bd21485834773a6d18eae60013000' && (item.required || isRequiredFn(item.formField))"
616
616
  :disabled="disableds" right-icon="van-icon van-icon-arrow van-cell__right-icon">
@@ -722,7 +722,7 @@
722
722
  /* eslint-disable */
723
723
  import { forMatTime } from "./utils/format_date";
724
724
  let that
725
- import { multipartUpload, ossFileUrl } from "../assets/js/AliyunlssUtil";
725
+ import { multipartUpload, ossFileUrl } from "./utils/AliyunIssUtil";
726
726
  import MyEditor from './MyEditor'
727
727
  import myPopup from "./myPopup.vue";
728
728
  import Tree from '../components/tree'
@@ -876,10 +876,6 @@ export default {
876
876
  return ""
877
877
  }
878
878
  },
879
- language:{
880
- type:String,
881
- default:"cn"
882
- },
883
879
  isCustomerService: {
884
880
  type: Boolean,
885
881
  default () {
@@ -1101,7 +1097,7 @@ export default {
1101
1097
  } else {
1102
1098
  this.disableds = false
1103
1099
  }
1104
- this.submitValue = this.submit ? this.$t('common.submited') : this.$t('common.submit')
1100
+ this.submitValue = this.submit ? '已提交' : "提交"
1105
1101
  },
1106
1102
  beforeMount () {
1107
1103
  that.defaultClick()
@@ -1386,11 +1382,11 @@ export default {
1386
1382
  const isLte2M = file.size / 1024 / 1024 <= 8;
1387
1383
  const isSupportedFormat = file.type.indexOf('image') !== -1
1388
1384
  if (!isSupportedFormat) {
1389
- this.$message.error(this.$t('formTemplate.uploadType'));
1385
+ this.$message.error("只能上传图片格式");
1390
1386
  return false
1391
1387
  }
1392
1388
  if (!isLte2M && isSupportedFormat) {
1393
- this.$message.error(this.$t('formTemplate.uploadImageSize'));
1389
+ this.$message.error("上传图片大小不能超过 8MB!");
1394
1390
  return false
1395
1391
  }
1396
1392
  return true
@@ -1399,11 +1395,11 @@ export default {
1399
1395
  const isLte2M = file.size / 1024 / 1024 <= 100;
1400
1396
  const isSupportedFormat = file.type.indexOf('video') !== -1
1401
1397
  if (!isSupportedFormat) {
1402
- this.$message.error(this.$t('formTemplate.uploadVideoType'));
1398
+ this.$message.error("只能上传视频格式");
1403
1399
  return false
1404
1400
  }
1405
1401
  if (!isLte2M && isSupportedFormat) {
1406
- this.$message.error(this.$t('formTemplate.uploadVideoSize'));
1402
+ this.$message.error("上传视频大小不能超过100MB!");
1407
1403
  return false
1408
1404
  }
1409
1405
  return true
@@ -1411,7 +1407,7 @@ export default {
1411
1407
  else if (type === 'ATTACHMENT') {
1412
1408
  const isLte2M = file.size / 1024 / 1024 <= 100;
1413
1409
  if (!isLte2M) {
1414
- this.$message.error(this.$t('formTemplate.uploadFileSize'));
1410
+ this.$message.error("上传附件大小不能超过100MB!");
1415
1411
  return false
1416
1412
  }
1417
1413
  return true
@@ -1428,11 +1424,11 @@ export default {
1428
1424
  const isLte2M = file[i].size / 1024 / 1024 <= 8;
1429
1425
  const isSupportedFormat = file[i].type.indexOf('image') !== -1
1430
1426
  if (!isSupportedFormat) {
1431
- this.$message.error(this.$t('formTemplate.uploadType'));
1427
+ this.$message.error("只能上传图片格式");
1432
1428
  return false
1433
1429
  }
1434
1430
  if (!isLte2M && isSupportedFormat) {
1435
- this.$message.error(this.$t('formTemplate.uploadImageSize'));
1431
+ this.$message.error("上传图片大小不能超过 8MB!");
1436
1432
  return false
1437
1433
  }
1438
1434
  return true
@@ -1441,11 +1437,11 @@ export default {
1441
1437
  const isLte2M = file[i].size / 1024 / 1024 <= 100;
1442
1438
  const isSupportedFormat = file[i].type.indexOf('video') !== -1
1443
1439
  if (!isSupportedFormat) {
1444
- this.$message.error(this.$t('formTemplate.uploadVideoType'));
1440
+ this.$message.error("只能上传视频格式");
1445
1441
  return false
1446
1442
  }
1447
1443
  if (!isLte2M && isSupportedFormat) {
1448
- this.$message.error(this.$t('formTemplate.uploadVideoSize'));
1444
+ this.$message.error("上传视频大小不能超过100MB!");
1449
1445
  return false
1450
1446
  }
1451
1447
  return true
@@ -1453,7 +1449,7 @@ export default {
1453
1449
  else if (type === 'ATTACHMENT') {
1454
1450
  const isLte2M = file[i].size / 1024 / 1024 <= 100;
1455
1451
  if (!isLte2M) {
1456
- this.$message.error(this.$t('formTemplate.uploadFileSize'));
1452
+ this.$message.error("上传附件大小不能超过100MB!");
1457
1453
  return false
1458
1454
  }
1459
1455
  return true
@@ -1465,7 +1461,7 @@ export default {
1465
1461
  if (this.limitNum) {
1466
1462
  num = this.limitNum
1467
1463
  }
1468
- let messageText = this.$t('formTemplate.onlyUpload' )+num+ this.$t('formTemplate.number')
1464
+ let messageText = '仅支持上传' + num + ''
1469
1465
  this.$message.error(messageText);
1470
1466
  return false
1471
1467
  }
@@ -1487,7 +1483,7 @@ export default {
1487
1483
  num = this.limitNum
1488
1484
  }
1489
1485
  if (file.length > num) {
1490
- this.$message.warning(this.$t('formTemplate.onlyUpload' )+ num + this.$t('formTemplate.number'))
1486
+ this.$message.warning('仅支持上传' + num + '张图片')
1491
1487
  return false
1492
1488
  }
1493
1489
  else {
@@ -1689,7 +1685,7 @@ export default {
1689
1685
  this.$set(this.extInfoFieldValue, this.formList.form.formFieldRelation[i].fieldId, [])
1690
1686
  this.loopCascaderSetDefalut(cascadeOptions, this.formList.form.formFieldRelation[i], extInfo.selectType)
1691
1687
  this.loopCascaderSetValue(cascadeOptions, this.formList.form.formFieldRelation[i], extInfo.selectType)
1692
-
1688
+
1693
1689
  }
1694
1690
  if (type === 'DATE_PICKER') {
1695
1691
  if (this.formList.form.formFieldRelation[i].value && this.formList.form.formFieldRelation[i].value !== null && this.formList.form.formFieldRelation[i].value !== '') {
@@ -1978,27 +1974,27 @@ export default {
1978
1974
  if (checkDescription.checkAttachment && this.attachmentList.length == 0) {
1979
1975
  attachmentFlag = false
1980
1976
  }
1981
- let text = this.isBaiLi ? this.$t('formTemplate.feedbackDes') : this.$t('formTemplate.orderDes')
1977
+ let text = this.isBaiLi ? '反馈描述' : '问题描述'
1982
1978
  if (!textFlag) {
1983
- errorText = text + this.$t('formTemplate.textFlag')
1979
+ errorText = text + '必须要有文字'
1984
1980
  }
1985
1981
  if (!imageOrAttachment) {
1986
- errorText = text + this.$t('formTemplate.imageOrAttachment')
1982
+ errorText = text + '必须要有图片或附件'
1987
1983
  }
1988
1984
  if (!imageFlag) {
1989
- errorText = text + this.$t('formTemplate.imageFlag')
1985
+ errorText = text + '必须要有图片'
1990
1986
  }
1991
1987
  if (!attachmentFlag) {
1992
- errorText = text + this.$t('formTemplate.attachmentFlag')
1988
+ errorText = text + '必须要有附件'
1993
1989
  }
1994
1990
  if (!textFlag && (!imageFlag || !attachmentFlag)) {
1995
- errorText = text + this.$t('formTemplate.textFlag') + this.$t('formTemplate.and') + (!imageFlag ? this.$t('formTemplate.image') : this.$t('formTemplate.file'))
1991
+ errorText = text + '必须要有文字和' + (!imageFlag ? '图片' : '附件')
1996
1992
  }
1997
1993
  if (!imageFlag && !attachmentFlag) {
1998
- errorText = text + this.$t('formTemplate.imageFlag') + this.$t('formTemplate.and') + this.$t('formTemplate.file')
1994
+ errorText = text + '必须要有图片和附件'
1999
1995
  }
2000
1996
  if (!imageFlag && !attachmentFlag && !textFlag) {
2001
- errorText = text + this.$t('formTemplate.textFlag') + ',' + this.$t('formTemplate.image') + this.$t('formTemplate.and') + this.$t('formTemplate.file')
1997
+ errorText = text + '必须要有文字、图片和附件'
2002
1998
  }
2003
1999
  if (errorText) {
2004
2000
  this.$message.error(errorText);
@@ -2007,7 +2003,7 @@ export default {
2007
2003
  let d = document.createElement('div')
2008
2004
  d.innerHTML = this.workOrderDestail.value
2009
2005
  if (checkDescription.required && !d.innerText && !this.workOrderDestail.value.includes('img') && this.attachmentList.length == 0) {
2010
- let errorText = this.isBaiLi ? this.$t('formTemplate.feedbackDesRequired') : this.$t('formTemplate.orderDesRequired')
2006
+ let errorText = this.isBaiLi ? '反馈描述是必填的' : '问题描述是必填的'
2011
2007
  this.$message.error(errorText);
2012
2008
  return false
2013
2009
  }
@@ -2021,7 +2017,7 @@ export default {
2021
2017
  return
2022
2018
  }
2023
2019
  if (this.uploadImgQueue || this.attachmentList.some(arrach => { return !arrach.url })) {
2024
- this.$message.warning(this.$t('formTemplate.uploading'))
2020
+ this.$message.warning('文件正在上传,请稍后')
2025
2021
  return
2026
2022
  }
2027
2023
  if (this.workOrderDestail && !this.verificationDescription()) {
@@ -2078,14 +2074,24 @@ export default {
2078
2074
 
2079
2075
  }
2080
2076
  let isRequired = true;
2081
- if (this.mainId == '3e83057a1bd74b79b86859ad619fdbbb' || this.mainId == 'ab0f90737c8b4f2d85ba2157e4473110' || this.mainId == '86dc09da570948d2b4841122d732f373') {
2077
+ if (this.mainId == '3e83057a1bd74b79b86859ad619fdbbb' ||
2078
+ this.mainId == 'ab0f90737c8b4f2d85ba2157e4473110' ||
2079
+ this.mainId == '86dc09da570948d2b4841122d732f373' ||
2080
+ this.mainId == 'e93c327548c94b15a4b2b71bc613ef38' // 银轮主体 id
2081
+ ) {
2082
2082
  isRequired = false
2083
2083
  }
2084
2084
  /*针对蒙牛企业在对话中系统名称字段暂时不做校验*/
2085
+ /* 2025.0228 补充银轮主体相同逻辑 */
2085
2086
  if (this.formShow.form.formFieldRelation[i].display &&
2086
2087
  (this.formShow.form.formFieldRelation[i].required || this.isRequiredFn(this.formShow.form.formFieldRelation[i].formField)) &&
2087
2088
  this.formShow.form.formFieldRelation[i].fieldId !== 'workorder_name' &&
2088
- ((!isRequired && this.formShow.form.formFieldRelation[i].fieldId !== '0feca81fce97465da537248c066e4db8' && this.formShow.form.formFieldRelation[i].fieldId !== '1d8bd21485834773a6d18eae60013000') || isRequired) &&
2089
+ (
2090
+ (!isRequired &&
2091
+ this.formShow.form.formFieldRelation[i].fieldId !== '0feca81fce97465da537248c066e4db8' &&
2092
+ this.formShow.form.formFieldRelation[i].fieldId !== '1d8bd21485834773a6d18eae60013000' &&
2093
+ this.formShow.form.formFieldRelation[i].fieldId !== '0ca7253561bb480cac9e57664e52158b'
2094
+ ) || isRequired) &&
2089
2095
  this.formShow.form.formFieldRelation[i].formField.type !== 'EXPLANATION') {
2090
2096
  let value = "";
2091
2097
  let bool = {}
@@ -2100,7 +2106,7 @@ export default {
2100
2106
  }
2101
2107
  if (this.formShow.form.formFieldRelation[i].relationDisplay && this.formShow.form.formFieldRelation[i].display && this.formShow.form.formFieldRelation[i].fieldId !== 'workorder_description') {
2102
2108
  if (!this.formShow.form.formFieldRelation[i].value || this.strIsNull(this.formShow.form.formFieldRelation[i].value) || bool[this.formShow.form.formFieldRelation[i].fieldId] || (Array.isArray(this.formShow.form.formFieldRelation[i].value) && !this.formShow.form.formFieldRelation[i].value.length)) {
2103
- this.$message.error(this.$t('formTemplate.pleaseImprove' )+ this.formShow.form.formFieldRelation[i].formField.name)
2109
+ this.$message.error('请完善' + this.formShow.form.formFieldRelation[i].formField.name)
2104
2110
  return
2105
2111
  }
2106
2112
  }
@@ -2131,7 +2137,7 @@ export default {
2131
2137
  console.error('formShow', newForm)
2132
2138
  this.$emit('submitClick', newForm)
2133
2139
  this.disableds = true
2134
- this.submitValue = this.$t('common.submited')
2140
+ this.submitValue = '已提交'
2135
2141
  },
2136
2142
  strIsNull (str) {
2137
2143
  if (str == "") return true;
@@ -3509,4 +3515,4 @@ export default {
3509
3515
  height: 100%;
3510
3516
  overflow: hidden;
3511
3517
  }
3512
- </style>
3518
+ </style>
@@ -28,7 +28,7 @@
28
28
  <div class="summaryContent">
29
29
  <span>{{ typedContent }}</span>
30
30
  </div>
31
- <div class="intelligentBottom" v-if="recommendQuestions.length > 0 && !formKnowledgeManagement">
31
+ <div class="intelligentBottom" v-if="recommendQuestions.length > 0">
32
32
  <div class="intelligentQues"
33
33
  v-for="(item, index) in recommendQuestions"
34
34
  :key="index"
@@ -61,10 +61,6 @@ export default {
61
61
  default() {
62
62
  return []
63
63
  }
64
- },
65
- formKnowledgeManagement:{
66
- type: Boolean,
67
- default: false
68
64
  }
69
65
  },
70
66
  methods:{
@@ -301,11 +301,7 @@ export default {
301
301
  },
302
302
  type:String,
303
303
  disable:Boolean,
304
- submit:Boolean,
305
- language:{
306
- type:String,
307
- default:"cn"
308
- }
304
+ submit:Boolean
309
305
  },
310
306
  mounted() {
311
307
  this.isMobile()
@@ -9,7 +9,7 @@
9
9
  >
10
10
  <slot></slot>
11
11
  </div>
12
- <div v-if="device==='PC'&&content.multiple===true && content.cards && content.cards.length > 1" class="clickBtn">
12
+ <div v-if="device==='PC'&&content.multiple===true" class="clickBtn">
13
13
  <div class="preBtn" @click="preClick" style="display: flex">
14
14
  <i class="el-icon-arrow-left" style="font-size: 18px;font-weight:800;align-self: center;margin: auto"></i>
15
15
  </div>