t20-common-lib 0.15.11 → 0.15.12

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": "t20-common-lib",
3
- "version": "0.15.11",
3
+ "version": "0.15.12",
4
4
  "description": "T20",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -100,7 +100,8 @@ export const fileUploadTableMixin = {
100
100
  appno: this.uploadParam.appno,
101
101
  bussValue: this.mapdata[row.type],
102
102
  attno: row.type,
103
- bussId: this.uploadParam?.paymentTemplate === 'REQUEST_PAYOUT' ? '' : this.uploadParam.bussId,
103
+ bussId:
104
+ this.uploadParam && this.uploadParam.paymentTemplate === 'REQUEST_PAYOUT' ? '' : this.uploadParam.bussId,
104
105
  cltno: JSON.parse(sessionStorage.getItem('userInfo') || '{}').cltNo,
105
106
  memo: file.name,
106
107
  recordname: file.name,
@@ -164,7 +165,7 @@ export const fileUploadTableMixin = {
164
165
  if (this.uploadParam.bussValue && this.uploadParam.bussValue.includes(',')) {
165
166
  this.uploadParam.bussValue.split(',').map(async t => {
166
167
  const rr = await getUploadedFile({
167
- bussId: this.uploadParam?.bussId,
168
+ bussId: this.uploadParam && this.uploadParam.bussId,
168
169
  bussValue: t
169
170
  })
170
171
  const data = rr && rr.data != null ? rr.data : rr
@@ -136,12 +136,12 @@ export default {
136
136
  /** 是否展示附件锚点(默认关闭,不影响现有用法) */
137
137
  needFile: {
138
138
  type: Boolean,
139
- default: false
139
+ default: true
140
140
  },
141
141
  /** true 时使用 fileUploadTable 插槽自定义附件区 */
142
142
  needFileDIY: {
143
143
  type: Boolean,
144
- default: true
144
+ default: false
145
145
  },
146
146
  /** 电子档案 / 上传参数,与 Demo DynamicForm uploadParam 一致 */
147
147
  uploadParam: {