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 @@
<slot name="header">
<view class="popup-top-box flex align-center" v-if="showTitle">
<text class="popup-top-box-title">{{ title }}</text>
<text style="font-size: 0;">{{ otherText }}</text>
<view @click.stop="closePopup">
<view class="sprite-icon icon-evaluationClose"></view>
</view>
......@@ -81,6 +82,10 @@ export default {
noTitle: {
type: Boolean,
default: false
},
otherText: {
type: String,
default: ''
}
},
data() {
......
......@@ -94,7 +94,7 @@
</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>
<textarea placeholder="请输入 (200字以内)" v-model="formData.supplementaryClauseText" maxlength="200" />
</template>
......@@ -323,10 +323,32 @@ export default {
console.log('handleCell', field)
that.currentField = field
if (field.type === 'pdf') {
that.$nextTick(() => {
that.$refs.addAgreementPopup.open()
// that.$set(that.formData, 'supplementaryClauseText', '3243434')
console.log('this.supplementaryClauseText', that.formData.supplementaryClauseText)
this.$refs.addAgreementPopup.open().then(() => {
uni.showLoading()
uni.$api.evaluationApi
.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') {
that.show = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!