t20-common-lib 0.15.11 → 0.15.13

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.13",
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
@@ -195,7 +195,7 @@ export default {
195
195
  } else if (val === '' || val === null || val === undefined) {
196
196
  this.$emit('update:label', '')
197
197
  }
198
- this.$emit('canGetData', val, option)
198
+ this.$emit('change', option, val)
199
199
  }
200
200
  }
201
201
  }
@@ -128,7 +128,7 @@ export default {
128
128
  },
129
129
  changeFn(val) {
130
130
  let item = this.options.find(t => t.value == val);
131
- this.$emit("change", item)
131
+ this.$emit("change", item, val)
132
132
  },
133
133
  async init() {
134
134
  // 1、JSON模板中有自定义的取自定义的options
@@ -37,6 +37,7 @@
37
37
  :disabled="item.isEditable === 0"
38
38
  :label.sync="formData[group.prop][item.nameProp]"
39
39
  v-bind="item.props"
40
+ @change="(val, option) => $emit('change', { val, option, groupProp: group.prop, item, group })"
40
41
  @dialogChange="obj => $emit('dialog-change', { obj: obj || {}, groupProp: group.prop, item, group })"
41
42
  />
42
43
  <slot
@@ -136,12 +137,12 @@ export default {
136
137
  /** 是否展示附件锚点(默认关闭,不影响现有用法) */
137
138
  needFile: {
138
139
  type: Boolean,
139
- default: false
140
+ default: true
140
141
  },
141
142
  /** true 时使用 fileUploadTable 插槽自定义附件区 */
142
143
  needFileDIY: {
143
144
  type: Boolean,
144
- default: true
145
+ default: false
145
146
  },
146
147
  /** 电子档案 / 上传参数,与 Demo DynamicForm uploadParam 一致 */
147
148
  uploadParam: {