|
@@ -2,6 +2,9 @@
|
|
|
<view class="detail white-wrap">
|
|
|
<image :src="statusImg" mode="aspectFill" class="status-img" v-if="statusImg"></image>
|
|
|
<view class="section white-wrap">
|
|
|
+ <view class="section-title require">归属公司</view>
|
|
|
+ <view :class="opButton.CheckEdit?'section-select-box':null" :style="{color:belongCompany?'#333':'#999'}" @click="handleOperation('showPurpose')">{{belongCompany?belongCompany:'请选择'}}</view>
|
|
|
+ </view><view class="section white-wrap">
|
|
|
<view class="section-title require">用印用途</view>
|
|
|
<view :class="opButton.CheckEdit?'section-select-box':null" :style="{color:newUse?'#333':'#999'}" @click="handleOperation('showPurpose')">{{newUse?newUse:'请选择'}}</view>
|
|
|
</view>
|
|
@@ -102,6 +105,18 @@
|
|
|
<!-- <view class="fix-bottom-wrap" style="text-align: center;" v-if="opButton.Cancel">
|
|
|
<van-button type="info" color="#3385FF" custom-class="btn-big" round @click="handleCancelApply">撤回申请</van-button>
|
|
|
</view> -->
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 归属公司 -->
|
|
|
+ <van-popup :show="showBelongCompanyPop" @close="showBelongCompanyPop=false" position="bottom">
|
|
|
+ <van-picker
|
|
|
+ show-toolbar
|
|
|
+ title="选择归属公司"
|
|
|
+ :columns="belongCompanyOptions"
|
|
|
+ @confirm="handleComfirmBelongCmpany"
|
|
|
+ @cancel="showBelongCompanyPop=false"
|
|
|
+ />
|
|
|
+ </van-popup>
|
|
|
|
|
|
<!-- 用印用途 -->
|
|
|
<van-popup :show="showPurpose" @close="showPurpose=false" position="bottom">
|
|
@@ -186,8 +201,9 @@
|
|
|
apiApprovalPassModify,
|
|
|
apiSealCancelApply,
|
|
|
apiFlowDetail,
|
|
|
- apiSealCheckBackFiles
|
|
|
- } from '@/api/approve/seal.js'
|
|
|
+ apiSealCheckBackFiles,
|
|
|
+ getBelongCompany
|
|
|
+ } from '@/api/approve/seal.js'
|
|
|
import steps from '../components/steps.vue'
|
|
|
import {preViewFile} from '../utils/util.js'
|
|
|
import {uploadFiles} from '@/utils/uploadFile.js'
|
|
@@ -282,7 +298,12 @@
|
|
|
newFileNum:'',
|
|
|
newSealType:[],
|
|
|
newRemark:'',
|
|
|
- oldFile:''
|
|
|
+ oldFile:'',
|
|
|
+
|
|
|
+ //归属公司弹窗
|
|
|
+ showBelongCompanyPop:false,
|
|
|
+ belongCompany:'',
|
|
|
+ belongCompanyOptions:[]
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
@@ -290,6 +311,7 @@
|
|
|
this.ContractApprovalRecordId=options.ContractApprovalRecordId||0
|
|
|
this.SealId=options.SealId||0
|
|
|
this.getDetail()
|
|
|
+ this.getBelongCompanyOptions()
|
|
|
},
|
|
|
onShow() {
|
|
|
uni.$once('updateSealDetail',(data)=>{
|
|
@@ -304,6 +326,12 @@
|
|
|
},1000)
|
|
|
},
|
|
|
methods: {
|
|
|
+ async getBelongCompanyOptions() {
|
|
|
+ const res = await getBelongCompany()
|
|
|
+ if(res.code !==200 ) return
|
|
|
+ this.belongCompanyOptions = res.data || []
|
|
|
+ },
|
|
|
+
|
|
|
// 上传(更新)签回附件
|
|
|
handleUploadCheckFile(){
|
|
|
wx.chooseMessageFile({
|
|
@@ -491,6 +519,12 @@
|
|
|
});
|
|
|
|
|
|
},
|
|
|
+
|
|
|
+ //归属公司选择
|
|
|
+ handleComfirmBelongCmpany(e) {
|
|
|
+ this.belongCompany = e.detail.value;
|
|
|
+ this.showBelongCompanyPop = false;
|
|
|
+ },
|
|
|
|
|
|
handlePurposeConfirm(e){
|
|
|
this.newUse=e.detail.value
|
|
@@ -749,6 +783,7 @@
|
|
|
this.newSealType=res.data.SealDetail.SealType.split(',')
|
|
|
this.temType=res.data.SealDetail.SealType.split(',')
|
|
|
this.newRemark=res.data.SealDetail.Remark
|
|
|
+ this.belongCompany=res.data.SealDetail.AffiliatedCompany
|
|
|
this.processData=res.data.FlowNodeList
|
|
|
this.opButton=res.data.OpButton
|
|
|
this.handleFile(res.data.SealDetail.FileUrls)
|