|
@@ -13,9 +13,9 @@
|
|
|
<!-- 待审核 -->
|
|
|
</view>
|
|
|
<!-- {{auditList.length > 0 ?auditList[auditList.length - 1].operatorMajorRoleName:""}} -->
|
|
|
- <view class="infoText">待决策人审核</view>
|
|
|
+ <view class="infoText">{{auditInfo.status}}</view>
|
|
|
</view>
|
|
|
- <view class="infoData">{{updateDate}}</view>
|
|
|
+ <view class="infoData">{{auditInfo.updateDate}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- <view class='content1'>
|
|
@@ -115,22 +115,14 @@
|
|
|
</view>
|
|
|
<view v-if='auditInfo.srcList.length>0' class="">
|
|
|
<view style='flex-wrap: wrap;' class="file">
|
|
|
- <image v-for='(item,index) in auditInfo.srcList' @click="previewImageFn(index)" class='fujianImg' :src="item" mode=""></image>
|
|
|
+ <image v-for='(item,index) in auditInfo.srcList' @click="previewImageFn(index)" class='fujianImg'
|
|
|
+ :src="item" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-else class="">
|
|
|
暂无附件
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="content1" v-if="url && url != 'ng'">
|
|
|
- <view class="title ">
|
|
|
- 费用分配附件
|
|
|
- </view>
|
|
|
- <view class="file" @click="openXls">
|
|
|
- <image src="../../../static/img/excle.png" mode="" class="img_css"></image>
|
|
|
- <text class="text_css">明细.xls</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
<view class="content2">
|
|
|
<view class="title row">
|
|
|
流程
|
|
@@ -153,31 +145,11 @@
|
|
|
</view>
|
|
|
<view class="row-line" v-if="index!= auditList.length - 1"></view>
|
|
|
</view>
|
|
|
-
|
|
|
- </view>
|
|
|
- <view v-if='show' class="shade">
|
|
|
- <view class="wrap">
|
|
|
- <view class="alert-top">
|
|
|
- <view class="title">
|
|
|
- {{title}}
|
|
|
- </view>
|
|
|
- <u-icon name="close" class="close" color="#8890B1" @click="close()"></u-icon>
|
|
|
- </view>
|
|
|
- <view class="u-textarea-style">
|
|
|
- <view class="right-bottom">
|
|
|
- {{auditMind.length}}/100个字
|
|
|
- </view>
|
|
|
- <u-input class="" v-model='auditMind' placeholder="请在此输入审核意见" type="textarea" height="414"
|
|
|
- maxlength="100" />
|
|
|
- </view>
|
|
|
- <view @click='close()' class="cancel">取消</view>
|
|
|
- <view @click='passSubmit()' class="confirm">确定</view>
|
|
|
- </view>
|
|
|
+
|
|
|
</view>
|
|
|
<u-toast ref="uToast" />
|
|
|
<view style='padding:10px;' class='flex bottom-btn'>
|
|
|
- <u-button @click='reject' type="error" class="btn1" hover-class='none'>驳回</u-button>
|
|
|
- <u-button @click='pass' type="success" class="btn2">通过</u-button>
|
|
|
+ <u-button @click='fanHui' type="success" class="btn2">返回</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -206,7 +178,9 @@
|
|
|
updateDate: "",
|
|
|
warehouseName: "",
|
|
|
everyCheck: '',
|
|
|
- auditInfo: {srcList:[]},
|
|
|
+ auditInfo: {
|
|
|
+ srcList: []
|
|
|
+ },
|
|
|
id: "",
|
|
|
auditList: [],
|
|
|
url: "11",
|
|
@@ -233,50 +207,6 @@
|
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
|
},
|
|
|
methods: {
|
|
|
- previewImageFn(index) {
|
|
|
- /* 预览图片 */
|
|
|
- uni.previewImage({
|
|
|
- current: index,
|
|
|
- /* 需要是数组 */
|
|
|
- urls: this.auditInfo.srcList,
|
|
|
- /* 默认底部圆点 number顶部数字1234 */
|
|
|
- // indicator:'default',
|
|
|
- indicator: 'number',
|
|
|
- loop: false,
|
|
|
- /* 长按图片底部显示选项 */
|
|
|
- longPressActions: {
|
|
|
- itemList: ['保存图片'],
|
|
|
- itemColor: '#d60000',
|
|
|
- success: data => {
|
|
|
- console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
|
|
|
- /* 保存图片到系统相册 */
|
|
|
- plus.nativeUI.closePreviewImage();
|
|
|
- if(data.tapIndex==0){
|
|
|
- uni.saveImageToPhotosAlbum({
|
|
|
- filePath:this.auditInfo.srcList[data.index],
|
|
|
- success:res=>{
|
|
|
- // console.log(this.userImgList[data.index])
|
|
|
- // console.log(res.path,"res")
|
|
|
- // plus.nativeUI.closePreviewImage();
|
|
|
- plus.nativeUI.closePreviewImage();
|
|
|
- // uni.closePreviewImage()
|
|
|
- plus.nativeUI.toast("保存成功",{background:"#c3002f"});
|
|
|
- // this.$http.showTK({title:"保存成功",duration:500,position:"bottom"})
|
|
|
- },
|
|
|
- fail:err=>{
|
|
|
- console.log(err,"err")
|
|
|
- }
|
|
|
- })
|
|
|
- }else if(data.tapIndex==1){
|
|
|
- this.uniShare()
|
|
|
- }
|
|
|
- },
|
|
|
- fail: err => {
|
|
|
- console.log(err.errMsg);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
openXls() {
|
|
|
if (this.url && this.url != "ng") {
|
|
|
uni.downloadFile({
|
|
@@ -299,49 +229,27 @@
|
|
|
title: "加载中...",
|
|
|
mask: true
|
|
|
})
|
|
|
- this.$api.doRequest('get', '/paymentManagement/selectPaymentManagement', {
|
|
|
- currentPage: 1,
|
|
|
- pageSize: 100,
|
|
|
- searchType: '1', //searchType:1待审核
|
|
|
- warehouseName: this.vesselId,
|
|
|
- managementType: 1
|
|
|
- }).then(res1 => {
|
|
|
- uni.hideLoading()
|
|
|
- if (res1.data.code == 200) {
|
|
|
- this.List = res1.data.data.records
|
|
|
- }
|
|
|
- })
|
|
|
- // this.$api.doRequest('get', '/paymentManagement/getInfo', {
|
|
|
- // id: this.id
|
|
|
- // }).then(res => {
|
|
|
- // if (res.data.code == 200) {
|
|
|
- // uni.showLoading({
|
|
|
- // title: "加载中...",
|
|
|
- // mask: true
|
|
|
- // })
|
|
|
-
|
|
|
- // }
|
|
|
- // })
|
|
|
this.$api.doRequest('post', '/expenseInfo/exportPhone', {
|
|
|
- warehouseName: this.vesselId,
|
|
|
+ id: this.id
|
|
|
}).then(res1 => {
|
|
|
if (res1.data.code == 200) {
|
|
|
this.url = res1.data.data
|
|
|
}
|
|
|
})
|
|
|
- this.$api.doRequest('post', '/paymentManagement/exportPhoneData', {
|
|
|
- warehouseName: this.vesselId,
|
|
|
- searchType: 1
|
|
|
+ this.$api.doRequest('get', '/expenseInfo/ExpenseInfo', {
|
|
|
+ id: this.id
|
|
|
}).then(res1 => {
|
|
|
if (res1.data.code == 200) {
|
|
|
+ debugger
|
|
|
this.auditInfo = res1.data.data
|
|
|
- if(this.auditInfo.addressUrl&&this.auditInfo.addressUrl!=''){
|
|
|
- this.auditInfo.srcList=this.auditInfo.addressUrl.split(',')
|
|
|
- }else{
|
|
|
- this.auditInfo.srcList=[]
|
|
|
+ if (this.auditInfo.addressUrl && this.auditInfo.addressUrl != '') {
|
|
|
+ this.auditInfo.srcList = this.auditInfo.addressUrl.split(',')
|
|
|
+ } else {
|
|
|
+ this.auditInfo.srcList = []
|
|
|
}
|
|
|
this.auditInfo.amountIngPayableTotal1 = helper.convertCurrency(this.auditInfo
|
|
|
.amountIngPayableTotal)
|
|
|
+ uni.hideLoading()
|
|
|
}
|
|
|
})
|
|
|
this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
|
|
@@ -359,167 +267,6 @@
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- close() {
|
|
|
- this.show = false
|
|
|
- },
|
|
|
- pass() {
|
|
|
- this.show = true
|
|
|
- this.title = '审核意见(通过)'
|
|
|
- },
|
|
|
- reject() {
|
|
|
- this.show = true
|
|
|
- this.title = '驳回原因(驳回)'
|
|
|
- },
|
|
|
- //驳回
|
|
|
- // rejectSubmit() {
|
|
|
- // if (!this.auditMind) {
|
|
|
- // this.$api.msg('驳回原因不能为空!')
|
|
|
- // } else {
|
|
|
- // var that = this
|
|
|
- // that.show = false
|
|
|
- // if (this.List.length > 0) {
|
|
|
- // uni.showModal({
|
|
|
- // content: "确定驳回付款申请?",
|
|
|
- // showCancel: true,
|
|
|
- // confirmText: '确定',
|
|
|
- // success: function(res) {
|
|
|
- // if (res.confirm) {
|
|
|
- // that.audit(that.List[0], 0, false, '', '')
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },
|
|
|
- //审核确定
|
|
|
- passSubmit() {
|
|
|
- var that = this
|
|
|
- that.show = false
|
|
|
- if (this.title == '驳回原因(驳回)') {
|
|
|
- // this.rejectSubmit()
|
|
|
- if (!that.auditMind) {
|
|
|
- this.$api.msg('驳回原因不能为空!')
|
|
|
- } else {
|
|
|
- uni.showModal({
|
|
|
- content: "确定驳回付款申请?",
|
|
|
- showCancel: true,
|
|
|
- confirmText: '确定',
|
|
|
- success: function(res) {
|
|
|
- if (res.confirm) {
|
|
|
- uni.showLoading({
|
|
|
- title: "审核中...",
|
|
|
- mask: true
|
|
|
- })
|
|
|
- var count = 0
|
|
|
- // for (let num = 0; num < that.List.length; num++) {
|
|
|
- that.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
- taskId: that.auditInfo.taskId,
|
|
|
- approved: false,
|
|
|
- auditMind: that.auditMind ? that.auditMind : "",
|
|
|
- needReapply: true
|
|
|
- }).then(res => {
|
|
|
- // count++
|
|
|
- // if (count == that.List.length) {
|
|
|
- uni.hideLoading()
|
|
|
- that.$api.msg('审核成功!')
|
|
|
- setTimeout(function() {
|
|
|
- uni.navigateBack();
|
|
|
- }, 2000);
|
|
|
- // }
|
|
|
- })
|
|
|
- // }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- } else {
|
|
|
- var that = this
|
|
|
- this.show = false
|
|
|
- uni.showModal({
|
|
|
- content: "确定通过付款申请?",
|
|
|
- showCancel: true,
|
|
|
- confirmText: '确定',
|
|
|
- success: function(res) {
|
|
|
- if (res.confirm) {
|
|
|
- uni.showLoading({
|
|
|
- title: "审核中...",
|
|
|
- mask: true
|
|
|
- })
|
|
|
- // for (let num = 0; num < that.List.length; num++) {
|
|
|
- // var tmp = 0
|
|
|
- that.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
- taskId: that.auditInfo.taskId,
|
|
|
- approved: true,
|
|
|
- auditMind: that.auditMind ? that.auditMind : "",
|
|
|
- needReapply: false
|
|
|
- }).then(res => {
|
|
|
- // tmp++
|
|
|
- // if (tmp == that.List.length) {
|
|
|
- uni.hideLoading()
|
|
|
- that.$api.msg('审核成功!')
|
|
|
- setTimeout(function() {
|
|
|
- uni.navigateBack();
|
|
|
- }, 2000);
|
|
|
- // }
|
|
|
- })
|
|
|
- // }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- // audit(list, index, status, status2, reason) {
|
|
|
- // uni.showLoading({
|
|
|
- // title: "审核中"
|
|
|
- // })
|
|
|
- // if (this.List.length > 0) {
|
|
|
- // if (status == true && list.status == "已驳回") {
|
|
|
- // this.$api.doRequest('get', '/paymentManagement/api/openAuditFlow', {
|
|
|
- // compId: "2710b21efc1e4393930c5dc800010dc4",
|
|
|
- // id: list.id
|
|
|
- // }).then(res => {
|
|
|
- // if (res.data.code == 200) {
|
|
|
- // this.audit(this.List[index + 1], index + 1, status, status2, reason)
|
|
|
- // }
|
|
|
- // })
|
|
|
- // } else {
|
|
|
- // for (var i = 0; i < this.List.length; i++) {
|
|
|
- // this.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
- // taskId: this.List[i].taskId,
|
|
|
- // approved: status,
|
|
|
- // auditMind: this.auditMind ? this.auditMind : "",
|
|
|
- // needReapply: status2 ? true : false
|
|
|
- // }).then(res => {
|
|
|
- // if (res.data.code == 200) {
|
|
|
- // uni.hideLoading()
|
|
|
- // // this.audit(this.List[index + 1], index + 1, status, status2, reason)
|
|
|
- // this.$api.msg('通过成功')
|
|
|
- // }else{
|
|
|
- // uni.hideLoading()
|
|
|
- // this.$api.msg('审核失败')
|
|
|
- // }
|
|
|
- // })
|
|
|
- // }
|
|
|
-
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // if (status == true) {
|
|
|
- // this.$api.msg('通过成功')
|
|
|
- // } else if (status == false) {
|
|
|
- // this.$api.msg('驳回成功')
|
|
|
- // }
|
|
|
- // let that = this
|
|
|
- // setTimeout(function() {
|
|
|
-
|
|
|
- // if (that.everyCheck) {
|
|
|
- // helper.setAudit(that.list)
|
|
|
- // } else {
|
|
|
- // uni.navigateBack()
|
|
|
- // }
|
|
|
- // uni.hideLoading()
|
|
|
- // }, 1000);
|
|
|
- // }
|
|
|
- // },
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -797,11 +544,12 @@
|
|
|
/deep/.u-input__textarea {
|
|
|
height: 300rpx !important;
|
|
|
}
|
|
|
- .fujianImg{
|
|
|
- width:30%;
|
|
|
- height:80px;
|
|
|
- border-radius:3px;
|
|
|
- border:1px solid #ccc;
|
|
|
- margin:5px;
|
|
|
+
|
|
|
+ .fujianImg {
|
|
|
+ width: 30%;
|
|
|
+ height: 80px;
|
|
|
+ border-radius: 3px;
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ margin: 5px;
|
|
|
}
|
|
|
</style>
|