Commit 3d1dbf1e by cen

Merge branch 'SAAS+V5.0.0-1014' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.0.0-1014

2 parents 777da28d 55f4f46e
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<slot name="header"> <slot name="header">
<view class="popup-top-box flex align-center" v-if="showTitle"> <view class="popup-top-box flex align-center" v-if="showTitle">
<text class="popup-top-box-title">{{ title }}</text> <text class="popup-top-box-title">{{ title }}</text>
<text style="font-size: 0;">{{ otherText }}</text>
<view @click.stop="closePopup"> <view @click.stop="closePopup">
<view class="sprite-icon icon-evaluationClose"></view> <view class="sprite-icon icon-evaluationClose"></view>
</view> </view>
...@@ -81,6 +82,10 @@ export default { ...@@ -81,6 +82,10 @@ export default {
noTitle: { noTitle: {
type: Boolean, type: Boolean,
default: false default: false
},
otherText: {
type: String,
default: ''
} }
}, },
data() { data() {
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</view> </view>
</view> </view>
</view> </view>
<GeneralPopup ref="addAgreementPopup" popupClass="addAgreementPopup" type="center" title="补充协议条款" @confirm="confirmAddAgreement"> <GeneralPopup ref="addAgreementPopup" popupClass="addAgreementPopup" type="center" :otherText="formData.supplementaryClauseText" title="补充协议条款">
<template v-slot:content> <template v-slot:content>
<textarea placeholder="请输入 (200字以内)" v-model="formData.supplementaryClauseText" maxlength="200" /> <textarea placeholder="请输入 (200字以内)" v-model="formData.supplementaryClauseText" maxlength="200" />
</template> </template>
...@@ -323,10 +323,32 @@ export default { ...@@ -323,10 +323,32 @@ export default {
console.log('handleCell', field) console.log('handleCell', field)
that.currentField = field that.currentField = field
if (field.type === 'pdf') { if (field.type === 'pdf') {
that.$nextTick(() => { this.$refs.addAgreementPopup.open().then(() => {
that.$refs.addAgreementPopup.open() uni.showLoading()
// that.$set(that.formData, 'supplementaryClauseText', '3243434') uni.$api.evaluationApi
console.log('this.supplementaryClauseText', that.formData.supplementaryClauseText) .salesAgreementPreview({
evalOrderNo: this.query.evalOrderNo,
supplementaryClauseText: this.formData.supplementaryClauseText
})
.then(res => {
if (res.data.code == 0) {
uni.hideLoading()
this.$refs.addAgreementPopup.closePopup()
this.formFields.forEach(item => {
if (item.key === field.key) {
item.isShowPreview = true
}
})
this.pdfUrl = res.data.data.fileDownloadUrl
console.log('this.pdfUrl', this.pdfUrl)
} else {
uni.hideLoading()
uni.showToast({
title: res.data.msg || '请求失败',
icon: 'none'
})
}
})
}) })
} else if (field.type === 'calendar') { } else if (field.type === 'calendar') {
that.show = true that.show = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!