@lambo-design/workflow-approve 1.0.0-beta.25 → 1.0.0-beta.27

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/workflow-approve",
3
- "version": "1.0.0-beta.25",
3
+ "version": "1.0.0-beta.27",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -12,8 +12,8 @@
12
12
  "devDependencies": {
13
13
  "axios": "^0.24.0",
14
14
  "axios-cache-plugin": "^0.1.0",
15
- "@lambo-design/core": "^4.7.1-beta.140",
16
- "@lambo-design/shared": "^1.0.0-beta.209"
15
+ "@lambo-design/core": "^4.7.1-beta.145",
16
+ "@lambo-design/shared": "^1.0.0-beta.220"
17
17
  },
18
18
  "dependencies": {
19
19
  "bpmn-js": "^7.3.1",
@@ -1930,7 +1930,7 @@ export default {
1930
1930
  }
1931
1931
  if (this.permScope == 'all'){
1932
1932
  this.getRootOrganTree(organTreeType)
1933
- this.getReadingRangeOrgType(permScope, organTreeType)
1933
+ this.ucAdapterType === 'sc' ? this.getReadingRangeOrgType(permScope, organTreeType) : ''
1934
1934
  } else {
1935
1935
  this.getReadingRangeBM(this.permScope, inputValue, this.organTreeType)
1936
1936
  this.getReadingRange(this.permScope, this.organTreeType)
@@ -66,7 +66,7 @@
66
66
  v-else-if="item.auditResult === '80'">跳转指定节点</span>
67
67
  <span style="color: #19be6b; font-size: 13px;"
68
68
  v-else-if="item.auditResult === '90'">驳回指定节点</span>
69
- <span style="color: #ff9900; font-size: 13px;" v-else>待审批</span>
69
+ <span style="color: #ff9900; font-size: 13px;" v-else>{{ '待' + handleName }}</span>
70
70
  </Col>
71
71
  <Col span="12" style="text-align: right">
72
72
  <Button v-if="item.fileList && item.fileList.length > 0" size="small" type="primary" ghost class="urging" @click="openModal(item)">查看附件</Button>
@@ -147,6 +147,10 @@ export default {
147
147
  type: Boolean,
148
148
  default: false
149
149
  },
150
+ handleName: {
151
+ type: String,
152
+ default: "审批"
153
+ },
150
154
  //横竖版样式不同
151
155
  portraitWidth: {
152
156
  type: Number,
@@ -325,9 +329,9 @@ export default {
325
329
  },
326
330
  showDate(item) {
327
331
  if (item.auditResult){
328
- return '处理时间:'
332
+ return `处理时间:${item.auditDate}`
329
333
  }
330
- return '接收时间:'
334
+ return `接收时间:${item.createTime}`
331
335
  }
332
336
  },
333
337
  mounted() {
package/src/portrait.vue CHANGED
@@ -448,6 +448,7 @@ export default {
448
448
  handleName: '',
449
449
  auditOpinionTitle: '',
450
450
  auditResult: '',
451
+ auditGroup: '',
451
452
  custChange: 'auditInfo',
452
453
  auditInfo: "auditInfo",
453
454
  auditProcess: "auditProcess",
@@ -688,6 +689,38 @@ export default {
688
689
  }, label)
689
690
  }
690
691
  })
692
+ column.push({
693
+ title: `附件`, key: 'fileList', minWidth: 200,
694
+ render: (h, { row }) => {
695
+ if (!row.fileList || row.fileList.length === 0) {
696
+ return h('span', '无'); // 如果没有附件,显示“无”
697
+ }
698
+
699
+ //显示所有附件
700
+ return h('div', row.fileList.map(file => {
701
+ return h('a', {
702
+ style: {
703
+ display: 'block',
704
+ marginTop: '5px',
705
+ marginRight:'5px',
706
+ whiteSpace: 'nowrap',
707
+ overflow: 'hidden',
708
+ textOverflow: 'ellipsis',
709
+ maxWidth: '100px',
710
+ },
711
+ attrs: {
712
+ title: file.attachName // 鼠标悬停时显示完整名称
713
+ },
714
+ on: {
715
+ click: () => {
716
+ this.getAttach(file);
717
+ }
718
+ },
719
+ }, file.attachName);
720
+ }));
721
+ }
722
+ })
723
+
691
724
  return column
692
725
  },
693
726
  },
@@ -752,6 +785,7 @@ export default {
752
785
  .then(resp => {
753
786
  let data = resp.data.data.rows
754
787
  self.permScope = data[0].permScope
788
+ self.auditGroup = data[0].auditGroup
755
789
  self.defaultOrganTreeType = data[0].organTreeType ? data[0].organTreeType : '00'
756
790
  self.getNodeOrganTreeType(procType)
757
791
  }).catch(err => {
@@ -791,6 +825,7 @@ export default {
791
825
  ajax.get(self.smartFlowServerContext + "/manage/processDone/getDoneDetail", {params: param}).then(function (resp) {
792
826
  if (resp.data.code === '200') {
793
827
  let rows = resp.data.data.rows
828
+ self.auditGroup = rows[0].auditGroup
794
829
  if (rows.length > 0) {
795
830
  self.hisAuditOpinion = []
796
831
  let taskList = resp.data.data.rows