@zscreate/zhxy-app-component 1.0.403 → 1.0.405

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.
@@ -168,7 +168,7 @@
168
168
  <text>{{item.name }}</text>
169
169
  </view>
170
170
  <view v-if="item.options.supportMulti && (verifyLogs && verifyLogs[item.model])" >
171
- <view v-for="(v_log, idx) in verifyLogsList(item.model)" :key="idx" style="position: relative;">
171
+ <view v-for="(v_log, idx) in verifyLogsList(item.model)" :key="idx" class="verify-log-item">
172
172
  <view class="verify-cot">
173
173
  <textarea :value="v_log.note" disabled>
174
174
  </textarea>
@@ -191,7 +191,7 @@
191
191
  </view>
192
192
  </view>
193
193
  </view>
194
- <view style="position: relative;">
194
+ <view class="verify-current-section">
195
195
  <view class="verify-cot" :style="{position:item.model === verifyNode ? 'initial' : 'relative'}">
196
196
  <m-textarea
197
197
  v-if="models[item.model]"
@@ -209,17 +209,9 @@
209
209
  </m-textarea>
210
210
  </view>
211
211
  <!-- 盖章按钮 -->
212
- <view v-if="(item.type === 'hnkj-verify' && item.options.enableSeal || item.type !== 'hnkj-verify') && item.model === verifyNode && sealCache[item.model] && !(models[item.model] && models[item.model].userSeal) && !warpVerifyDisable(item)"
213
- class="verify-seal-btn" @tap="handleVerifySeal(item.model)">
214
- 盖章
215
- </view>
216
- <!-- 当前审核盖章 -->
217
- <view v-if="item.model === verifyNode && models[item.model] && models[item.model].userSeal" class="verify-seal">
218
- <image :src="resolveSealUrl(models[item.model].userSeal)" mode="aspectFit" class="verify-seal__img"></image>
219
- <view v-if="!warpVerifyDisable(item)" class="verify-seal__close" @tap.stop="handleVerifySealClose(item.model)">
220
- <text class="verify-seal__close-text">x</text>
221
- </view>
222
- </view>
212
+ <view v-if="(item.type === 'hnkj-verify' && item.options.enableSeal || item.type !== 'hnkj-verify' && isSubmitOperation(item.model)) && item.model === verifyNode && sealCache[item.model] && !(models[item.model] && models[item.model].userSeal) && !warpVerifyDisable(item)"
213
+ class="verify-seal-btn-wrap">
214
+ <text class="verify-seal-btn" @tap="handleVerifySeal(item.model)">盖章</text>
223
215
  </view>
224
216
  <!-- #ifdef HBSF-MODE -->
225
217
  <view style="display: flex;align-items: center;background-color: #fff;padding: 20rpx 30rpx;" v-if="item.model === verifyNode">
@@ -251,9 +243,13 @@
251
243
  <view class="verify-title">{{ item.options.operationTime }}</view>
252
244
  <view style="flex-shrink: 0" v-if="models[item.model]">{{ models[item.model].operationTime }}</view>
253
245
  </view>
254
- <!-- 回显盖章 -->
255
- <view v-if="item.model !== verifyNode && models[item.model] && models[item.model].userSeal" class="verify-seal">
246
+ <!-- 盖章(当前审核 + 回显) -->
247
+ <view v-if="models[item.model] && models[item.model].userSeal" class="verify-seal">
256
248
  <image :src="resolveSealUrl(models[item.model].userSeal)" mode="aspectFit" class="verify-seal__img"></image>
249
+ <view v-if="item.model === verifyNode && !warpVerifyDisable(item)" class="verify-seal__close" @tap.stop="handleVerifySealClose(item.model)">
250
+ <text class="verify-seal__close-text">x</text>
251
+ </view>
252
+ </view>
257
253
  </view>
258
254
  </view>
259
255
  </template>
@@ -810,10 +806,10 @@ export default {
810
806
  })
811
807
  return
812
808
  }
813
- if (type === 'hnkj-verify') {
814
- const select = this.selectList[widget.model].find(item => item.label === this.suggestType[model])
809
+ if (type === 'hnkj-verify' || type === 'verify') {
810
+ const select = this.selectList[widget.model] && this.selectList[widget.model].find(item => item.label === this.suggestType[model])
815
811
  const { enableSign , enableSeal } = options
816
- if (select.description === 'TIJIAO') {
812
+ if (select && select.description === 'TIJIAO') {
817
813
  this.models[model].loadingSign = true
818
814
  this.getUserSignature().then(res => {
819
815
  if (res.success) {
@@ -828,8 +824,9 @@ export default {
828
824
  this.models[model].loadingSign = false
829
825
  })
830
826
  } else {
831
- this.models[model].userSign = ''
832
- this.models[model].userSeal = ''
827
+ this.$set(this.models[model], 'userSign', '')
828
+ this.$set(this.models[model], 'userSeal', '')
829
+ this.$set(this.models[model], 'userSealPosition', null)
833
830
  this.$set(this.sealCache, model, '')
834
831
  }
835
832
  }
@@ -849,6 +846,11 @@ export default {
849
846
  if (src.startsWith('data:image') || /^https?:\/\//i.test(src)) return src
850
847
  return (this.imgUrl || '') + src
851
848
  },
849
+ isSubmitOperation(model) {
850
+ if (!this.selectList[model] || !this.suggestType[model]) return false
851
+ const select = this.selectList[model].find(item => item.label === this.suggestType[model])
852
+ return select && select.description === 'TIJIAO'
853
+ },
852
854
  scrollToTop(top) {
853
855
  const _this = this
854
856
  this.$nextTick(function() {
@@ -1732,6 +1734,14 @@ $mybottom: 0; //底部按钮
1732
1734
  }
1733
1735
  }
1734
1736
 
1737
+ .verify-log-item {
1738
+ position: relative;
1739
+ }
1740
+
1741
+ .verify-current-section {
1742
+ position: relative;
1743
+ }
1744
+
1735
1745
  .verify-seal {
1736
1746
  position: absolute;
1737
1747
  left: 200rpx;
@@ -1766,9 +1776,13 @@ $mybottom: 0; //底部按钮
1766
1776
  }
1767
1777
 
1768
1778
  .verify-seal-btn {
1779
+ display: inline-block;
1769
1780
  padding: 10rpx 24rpx;
1770
1781
  color: #0599d7;
1771
1782
  font-size: 26rpx;
1783
+ background-color: #fff;
1784
+ }
1785
+ .verify-seal-btn-wrap {
1772
1786
  text-align: right;
1773
1787
  background-color: #fff;
1774
1788
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.403",
3
+ "version": "1.0.405",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",