|
@@ -57,23 +57,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- <view class="section white-wrap">
|
|
|
- <view class="section-title require">客户名称(全称)</view>
|
|
|
- <view class="section-select-box" :style="{color:customeName?'#333':'#999'}" @click="showCustome=true" v-if="radioVal==='系统合同'">{{customeName?customeName:'请输入客户名称'}}</view>
|
|
|
- <input type="text" v-model="customeName" placeholder="请输入客户名称" v-else/>
|
|
|
- </view>
|
|
|
- <view class="section white-wrap">
|
|
|
- <view class="section-title require">统一社会信用码</view>
|
|
|
- <input type="text" v-model="CreditCode" placeholder="请填写统一社会信用码" :disabled="radioVal==='系统合同'"/>
|
|
|
- </view>
|
|
|
- <view class="section white-wrap">
|
|
|
- <view class="section-title">实际使用方名称</view>
|
|
|
- <input type="text" v-model="UseCompanyName" placeholder="请填写实际使用方名称" :disabled="radioVal==='系统合同'"/>
|
|
|
- </view>
|
|
|
- <view class="section white-wrap">
|
|
|
- <view class="section-title require">业务类型</view>
|
|
|
- <view class="section-select-box" :style="{color:ServiceType?'#333':'#999'}" @click="handleShowServiceType">{{ServiceType?ServiceType:'请选择业务类型'}}</view>
|
|
|
- </view> -->
|
|
|
<view class="section white-wrap">
|
|
|
<view class="section-title require">文件份数</view>
|
|
|
<input type="number" v-model="fileNum" placeholder="请填写总共盖章文件份数"/>
|
|
@@ -88,11 +71,18 @@
|
|
|
</view>
|
|
|
<view class="section white-wrap" v-if="radioVal==='系统合同'&&ContractfileUrl">
|
|
|
<view class="section-title require">合同附件</view>
|
|
|
- <image src="../static/pdf.png" mode="aspectFill" style="width: 102rpx;height: 120rpx;"></image>
|
|
|
+ <image src="../static/pdf.png" mode="aspectFill" style="width: 102rpx;height: 120rpx;" @click="handlePreviewFiles({type:'pdf',url:ContractfileUrl})"></image>
|
|
|
</view>
|
|
|
<view class="section white-wrap" v-if="radioVal==='上传附件'">
|
|
|
<view class="section-title require">附件上传</view>
|
|
|
- <image :src="img.img" mode="aspectFill" style="width: 102rpx;height: 120rpx;margin:0 10rpx 10rpx 0" v-for="img in fileUrlArr" :key="img"></image>
|
|
|
+ <image
|
|
|
+ :src="img.img"
|
|
|
+ mode="aspectFill"
|
|
|
+ style="width: 102rpx;height: 120rpx;margin:0 10rpx 10rpx 0"
|
|
|
+ v-for="img in fileUrlArr"
|
|
|
+ :key="img"
|
|
|
+ @click="handlePreviewFiles(img)">
|
|
|
+ </image>
|
|
|
<image @click="handleUpload" src="../static/upload-icon.png" mode="aspectFill" style="width: 102rpx;height: 120rpx;margin:0 10rpx 10rpx 0"></image>
|
|
|
</view>
|
|
|
|
|
@@ -179,10 +169,19 @@
|
|
|
import steps from '../components/steps.vue'
|
|
|
import {apiFlowDetail,apiSealAdd,apiSearchCustome,apiSearchContract} from '@/api/approve/seal.js'
|
|
|
import {uploadImg,uploadFiles} from '@/utils/uploadFile.js'
|
|
|
+ import {preViewFile} from '../utils/util.js'
|
|
|
export default{
|
|
|
components:{
|
|
|
steps
|
|
|
},
|
|
|
+ watch:{
|
|
|
+ showCustome(){
|
|
|
+ this.searchCustomeVal=''
|
|
|
+ this.searchCustomeStatus=true
|
|
|
+ this.searchCustomeList=[]
|
|
|
+ this.searchContractList=[]
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
showPurpose:false,//显示用印用途选项
|
|
@@ -221,6 +220,17 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ //预览文件
|
|
|
+ handlePreviewFiles(e){
|
|
|
+ if (e.type === "pdf") {
|
|
|
+ preViewFile(e.url)
|
|
|
+ } else {
|
|
|
+ uni.previewImage({
|
|
|
+ urls: [e.url]
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
//上传附件
|
|
|
async handleUpload(){
|
|
|
const res=await uploadFiles({type:'all'})
|