|
@@ -47,7 +47,7 @@
|
|
<text class="pl">服务费率</text>
|
|
<text class="pl">服务费率</text>
|
|
<text class="pr">{{msg.serviceRate?msg.serviceRate:''}}%</text>
|
|
<text class="pr">{{msg.serviceRate?msg.serviceRate:''}}%</text>
|
|
</view>
|
|
</view>
|
|
- <view class="titleall" >
|
|
|
|
|
|
+ <view class="titleall">
|
|
<text class="pl">服务费</text>
|
|
<text class="pl">服务费</text>
|
|
<text class="pr">{{msg.serviceMoney}}</text>
|
|
<text class="pr">{{msg.serviceMoney}}</text>
|
|
</view>
|
|
</view>
|
|
@@ -62,7 +62,7 @@
|
|
<view class="titleall bod">
|
|
<view class="titleall bod">
|
|
<text class="pl">发票附件</text>
|
|
<text class="pl">发票附件</text>
|
|
<view class="uppic">
|
|
<view class="uppic">
|
|
- <view class="picbox" v-for="item in msg.picList">
|
|
|
|
|
|
+ <view class="picbox" v-for="item in msg.picList">
|
|
<image :src="item" mode="aspectFill" @click="prviewPic(item)"></image>
|
|
<image :src="item" mode="aspectFill" @click="prviewPic(item)"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -71,9 +71,11 @@
|
|
<text class="pl">汇票状态</text>
|
|
<text class="pl">汇票状态</text>
|
|
<text class="pr cls">{{msg.statusText}}</text>
|
|
<text class="pr cls">{{msg.statusText}}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="titleall " style="display: flex;flex-direction: column;">
|
|
|
|
|
|
+ <view class="titleall " style="display: flex;flex-direction: column;">
|
|
<text class="pl">审核反馈</text>
|
|
<text class="pl">审核反馈</text>
|
|
- <textarea :placeholder="placehodertitle" style="background-color: #F6F6F6;width: 675rpx;height: 200rpx;border-radius: 20rpx;padding: 20rpx;box-sizing: border-box;margin:20rpx 0;margin-bottom: 30rpx;" v-model="feedback" :disabled="disabled"></textarea>
|
|
|
|
|
|
+ <textarea :placeholder="placehodertitle"
|
|
|
|
+ style="background-color: #F6F6F6;width: 675rpx;height: 200rpx;border-radius: 20rpx;padding: 20rpx;box-sizing: border-box;margin:20rpx 0;margin-bottom: 30rpx;"
|
|
|
|
+ v-model="feedback" :disabled="disabled"></textarea>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="titleall " v-else>
|
|
<!-- <view class="titleall " v-else>
|
|
<text class="pl">审核反馈</text>
|
|
<text class="pl">审核反馈</text>
|
|
@@ -83,15 +85,15 @@
|
|
v-model="feedback" disabled></textarea>
|
|
v-model="feedback" disabled></textarea>
|
|
</view>
|
|
</view>
|
|
</view> -->
|
|
</view> -->
|
|
-
|
|
|
|
|
|
+
|
|
<view class="titleall " style="justify-content: flex-start;">
|
|
<view class="titleall " style="justify-content: flex-start;">
|
|
<text class="pl psa ">反馈截图</text>
|
|
<text class="pl psa ">反馈截图</text>
|
|
<view class="fanuppic">
|
|
<view class="fanuppic">
|
|
- <view class="picbox" v-if="state==0">
|
|
|
|
|
|
+ <view class="picbox" v-if="state==0">
|
|
<u-upload :fileList="fileList4" @afterRead="afterRead" @delete="deletePic" name="4" multiple
|
|
<u-upload :fileList="fileList4" @afterRead="afterRead" @delete="deletePic" name="4" multiple
|
|
:maxCount="6" :disabled="disabled" :deletable="delablepic"></u-upload>
|
|
:maxCount="6" :disabled="disabled" :deletable="delablepic"></u-upload>
|
|
</view>
|
|
</view>
|
|
- <view class="picbox" v-if="state==1">
|
|
|
|
|
|
+ <view class="picbox" v-if="state==1">
|
|
<u-upload :fileList="fileList4" @afterRead="afterRead" @delete="deletePic" name="4" multiple
|
|
<u-upload :fileList="fileList4" @afterRead="afterRead" @delete="deletePic" name="4" multiple
|
|
:maxCount="fileList4.length" :disabled="disabled" :deletable="delablepic"></u-upload>
|
|
:maxCount="fileList4.length" :disabled="disabled" :deletable="delablepic"></u-upload>
|
|
</view>
|
|
</view>
|
|
@@ -100,24 +102,24 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view style="width: 100%;height: 140rpx;"></view>
|
|
<view style="width: 100%;height: 140rpx;"></view>
|
|
- <view class="newbill flex1" v-if="state==0&&statusText!='待审核'">
|
|
|
|
- <view class="choosebtn">
|
|
|
|
- <view class="delbtn flex1" @click="examineFail()">审核失败</view>
|
|
|
|
- <view class="succbtn flex1" @click="examineSuccess()">审核成功</view>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
|
|
+ <view class="newbill flex1" v-if="state==0&&statusText!='待审核'">
|
|
|
|
+ <view class="choosebtn" v-if="msg.statusText === '成功'? isShow ==1 : isShow == 0 ">
|
|
|
|
+ <view class="delbtn flex1" @click="examineFail()">审核失败</view>
|
|
|
|
+ <view class="succbtn flex1" @click="examineSuccess()">审核成功</view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
<!-- <view class="newbill flex1" @click="tryAgain" v-if="msg.statusText=='未通过'&&state==1">
|
|
<!-- <view class="newbill flex1" @click="tryAgain" v-if="msg.statusText=='未通过'&&state==1">
|
|
<view class="newbillbtn">
|
|
<view class="newbillbtn">
|
|
<text>重新提交</text>
|
|
<text>重新提交</text>
|
|
</view>
|
|
</view>
|
|
</view> -->
|
|
</view> -->
|
|
- <view class="newbill flex1" v-if="msg.statusText=='未通过'&&state==1">
|
|
|
|
|
|
+ <view class="newbill flex1" v-if="msg.statusText=='失败'&&state==1">
|
|
<view class="choosebtn">
|
|
<view class="choosebtn">
|
|
<view class="delbtn flex1" @click="tryAgain()">重新提交</view>
|
|
<view class="delbtn flex1" @click="tryAgain()">重新提交</view>
|
|
<view class="succbtn flex1" @click="addBill()">新增汇票</view>
|
|
<view class="succbtn flex1" @click="addBill()">新增汇票</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -130,97 +132,98 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- id:'',
|
|
|
|
- msg:'',
|
|
|
|
- index:'',
|
|
|
|
- state:0,
|
|
|
|
- fileList4:[],
|
|
|
|
- feedback:'',
|
|
|
|
- disabled:false,
|
|
|
|
- delablepic:true,
|
|
|
|
- placehodertitle:'请输入审核反馈',
|
|
|
|
- contractId:'',
|
|
|
|
- statusText:''
|
|
|
|
|
|
+ //审核成功后隐藏按钮
|
|
|
|
+ isShow:0,
|
|
|
|
+ id: '',
|
|
|
|
+ msg: '',
|
|
|
|
+ index: '',
|
|
|
|
+ state: 0,
|
|
|
|
+ fileList4: [],
|
|
|
|
+ feedback: '',
|
|
|
|
+ disabled: false,
|
|
|
|
+ delablepic: true,
|
|
|
|
+ placehodertitle: '请输入审核反馈',
|
|
|
|
+ contractId: '',
|
|
|
|
+ statusText: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(o) {
|
|
onLoad(o) {
|
|
- that=this
|
|
|
|
|
|
+ that = this
|
|
this.state = this.$store.state.admin
|
|
this.state = this.$store.state.admin
|
|
- if(this.state==1){
|
|
|
|
- this.disabled=true
|
|
|
|
- this.delablepic=false
|
|
|
|
|
|
+ if (this.state == 1) {
|
|
|
|
+ this.disabled = true
|
|
|
|
+ this.delablepic = false
|
|
}
|
|
}
|
|
-
|
|
|
|
- if(o.obj){
|
|
|
|
- let obj=JSON.parse(o.obj)
|
|
|
|
- this.id=obj.id
|
|
|
|
- console.log(obj,6464654)
|
|
|
|
- this.index=obj.index
|
|
|
|
- this.contractId=obj.contractId
|
|
|
|
- this.statusText=obj.statusText
|
|
|
|
- console.log(this.statusText,9999)
|
|
|
|
|
|
+
|
|
|
|
+ if (o.obj) {
|
|
|
|
+ let obj = JSON.parse(o.obj)
|
|
|
|
+ this.id = obj.id
|
|
|
|
+ console.log(obj, 6464654)
|
|
|
|
+ this.index = obj.index
|
|
|
|
+ this.contractId = obj.contractId
|
|
|
|
+ this.statusText = obj.statusText
|
|
|
|
+ console.log(this.statusText, 9999)
|
|
}
|
|
}
|
|
this.init()
|
|
this.init()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- init(){
|
|
|
|
- let id=this.id
|
|
|
|
|
|
+ init() {
|
|
|
|
+ let id = this.id
|
|
uni.showLoading()
|
|
uni.showLoading()
|
|
- uni.$u.http.get(`/api/Contract/contractDraft/${id}`,
|
|
|
|
- {
|
|
|
|
- custom: {
|
|
|
|
- auth: true
|
|
|
|
- }
|
|
|
|
- }).then((res) => {
|
|
|
|
|
|
+ uni.$u.http.get(`/api/Contract/contractDraft/${id}`, {
|
|
|
|
+ custom: {
|
|
|
|
+ auth: true
|
|
|
|
+ }
|
|
|
|
+ }).then((res) => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
- this.msg=res
|
|
|
|
- if(res.feedbackPicList){
|
|
|
|
|
|
+ this.msg = res
|
|
|
|
+ if (res.feedbackPicList) {
|
|
const newData4 = res.feedbackPicList.map((item) => {
|
|
const newData4 = res.feedbackPicList.map((item) => {
|
|
return {
|
|
return {
|
|
url: item,
|
|
url: item,
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
this.fileList4 = newData4
|
|
this.fileList4 = newData4
|
|
}
|
|
}
|
|
- if(this.state==1){
|
|
|
|
- if(res.feedback.length>0){
|
|
|
|
- this.feedback=res.feedback
|
|
|
|
- }else{
|
|
|
|
- this.feedback="无"
|
|
|
|
|
|
+ if (this.state == 1) {
|
|
|
|
+ if (res.feedback.length > 0) {
|
|
|
|
+ this.feedback = res.feedback
|
|
|
|
+ } else {
|
|
|
|
+ this.feedback = "无"
|
|
}
|
|
}
|
|
- }else{
|
|
|
|
- if(res.feedback.length>0){
|
|
|
|
- this.feedback=res.feedback
|
|
|
|
- }else{
|
|
|
|
- this.placehodertitle="请输入审核反馈"
|
|
|
|
|
|
+ } else {
|
|
|
|
+ if (res.feedback.length > 0) {
|
|
|
|
+ this.feedback = res.feedback
|
|
|
|
+ } else {
|
|
|
|
+ this.placehodertitle = "请输入审核反馈"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
this.$toast(err.msg)
|
|
this.$toast(err.msg)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
prviewPic(item) {
|
|
prviewPic(item) {
|
|
- let pics=[]
|
|
|
|
|
|
+ let pics = []
|
|
pics.push(item)
|
|
pics.push(item)
|
|
uni.previewImage({
|
|
uni.previewImage({
|
|
urls: pics,
|
|
urls: pics,
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- tryAgain(){
|
|
|
|
- let obj={
|
|
|
|
- contractId:this.contractId,
|
|
|
|
- id:this.id,
|
|
|
|
- contractDrafts:[this.msg]
|
|
|
|
-
|
|
|
|
|
|
+ tryAgain() {
|
|
|
|
+ let obj = {
|
|
|
|
+ contractId: this.contractId,
|
|
|
|
+ id: this.id,
|
|
|
|
+ contractDrafts: [this.msg]
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url:"/pages/alldeatil/addbill?obj="+JSON.stringify(obj)
|
|
|
|
|
|
+ url: "/pages/alldeatil/addbill?obj=" + JSON.stringify(obj)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
addBill() {
|
|
addBill() {
|
|
@@ -231,35 +234,35 @@
|
|
examineSuccess() {
|
|
examineSuccess() {
|
|
// let ids = []
|
|
// let ids = []
|
|
// ids.push(this.id)
|
|
// ids.push(this.id)
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ console.log(111);
|
|
|
|
+
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
content: "是否审核成功?",
|
|
content: "是否审核成功?",
|
|
success: function(res) {
|
|
success: function(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
-
|
|
|
|
- let form={
|
|
|
|
- id:Number(that.id),
|
|
|
|
|
|
+
|
|
|
|
+ let form = {
|
|
|
|
+ id: Number(that.id),
|
|
approveStatus: 1
|
|
approveStatus: 1
|
|
}
|
|
}
|
|
- if(that.fileList4.length>0){
|
|
|
|
- let feedbackPicList=[]
|
|
|
|
- that.fileList4.forEach(item=>{
|
|
|
|
|
|
+ if (that.fileList4.length > 0) {
|
|
|
|
+ let feedbackPicList = []
|
|
|
|
+ that.fileList4.forEach(item => {
|
|
feedbackPicList.push(item.url)
|
|
feedbackPicList.push(item.url)
|
|
})
|
|
})
|
|
- form.feedbackPicList=feedbackPicList
|
|
|
|
|
|
+ form.feedbackPicList = feedbackPicList
|
|
}
|
|
}
|
|
- let feedback=that.feedback
|
|
|
|
- if(feedback.length>0){
|
|
|
|
- form.feedback=feedback
|
|
|
|
|
|
+ let feedback = that.feedback
|
|
|
|
+ if (feedback.length > 0) {
|
|
|
|
+ form.feedback = feedback
|
|
}
|
|
}
|
|
// ={
|
|
// ={
|
|
// feedback:feedback,
|
|
// feedback:feedback,
|
|
// feedbackPicList:feedbackPicList
|
|
// feedbackPicList:feedbackPicList
|
|
// }
|
|
// }
|
|
uni.showLoading()
|
|
uni.showLoading()
|
|
- uni.$u.http.post('api/Contract/approveContractDraft',form, {
|
|
|
|
|
|
+ uni.$u.http.post('api/Contract/approveContractDraft', form, {
|
|
custom: {
|
|
custom: {
|
|
auth: true
|
|
auth: true
|
|
}
|
|
}
|
|
@@ -268,21 +271,22 @@
|
|
that.editall = false
|
|
that.editall = false
|
|
that.quan = false
|
|
that.quan = false
|
|
that.$toast("操作成功")
|
|
that.$toast("操作成功")
|
|
|
|
+ that.isShow = 1
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
that.init()
|
|
that.init()
|
|
}, 500)
|
|
}, 500)
|
|
-
|
|
|
|
|
|
+
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
that.$toast(err.msg)
|
|
that.$toast(err.msg)
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
} else if (res.cancel) {
|
|
} else if (res.cancel) {
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
examineFail() {
|
|
examineFail() {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
@@ -290,25 +294,25 @@
|
|
content: "是否审核失败?",
|
|
content: "是否审核失败?",
|
|
success: function(res) {
|
|
success: function(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
-
|
|
|
|
- let form={
|
|
|
|
- id:Number(that.id),
|
|
|
|
|
|
+
|
|
|
|
+ let form = {
|
|
|
|
+ id: Number(that.id),
|
|
approveStatus: 2
|
|
approveStatus: 2
|
|
}
|
|
}
|
|
- if(that.fileList4.length>0){
|
|
|
|
- let feedbackPicList=[]
|
|
|
|
- that.fileList4.forEach(item=>{
|
|
|
|
|
|
+ if (that.fileList4.length > 0) {
|
|
|
|
+ let feedbackPicList = []
|
|
|
|
+ that.fileList4.forEach(item => {
|
|
feedbackPicList.push(item.url)
|
|
feedbackPicList.push(item.url)
|
|
})
|
|
})
|
|
- form.feedbackPicList=feedbackPicList
|
|
|
|
|
|
+ form.feedbackPicList = feedbackPicList
|
|
}
|
|
}
|
|
- let feedback=that.feedback
|
|
|
|
- if(feedback.length>0){
|
|
|
|
- form.feedback=feedback
|
|
|
|
|
|
+ let feedback = that.feedback
|
|
|
|
+ if (feedback.length > 0) {
|
|
|
|
+ form.feedback = feedback
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
uni.showLoading()
|
|
uni.showLoading()
|
|
- uni.$u.http.post('api/Contract/approveContractDraft',form, {
|
|
|
|
|
|
+ uni.$u.http.post('api/Contract/approveContractDraft', form, {
|
|
custom: {
|
|
custom: {
|
|
auth: true
|
|
auth: true
|
|
}
|
|
}
|
|
@@ -320,19 +324,19 @@
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
that.init()
|
|
that.init()
|
|
}, 500)
|
|
}, 500)
|
|
-
|
|
|
|
|
|
+
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
that.$toast(err.msg)
|
|
that.$toast(err.msg)
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
} else if (res.cancel) {
|
|
} else if (res.cancel) {
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
// 删除图片
|
|
// 删除图片
|
|
deletePic(event) {
|
|
deletePic(event) {
|
|
@@ -364,7 +368,7 @@
|
|
uploadFilePromise(url) {
|
|
uploadFilePromise(url) {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
let a = uni.uploadFile({
|
|
let a = uni.uploadFile({
|
|
- url:mainUrl + '/api/File', // 仅为示例,非真实的接口地址
|
|
|
|
|
|
+ url: mainUrl + '/api/File', // 仅为示例,非真实的接口地址
|
|
filePath: url,
|
|
filePath: url,
|
|
name: 'File',
|
|
name: 'File',
|
|
header: {
|
|
header: {
|
|
@@ -396,7 +400,7 @@
|
|
padding: 50rpx 20rpx;
|
|
padding: 50rpx 20rpx;
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|
|
background: #fff;
|
|
background: #fff;
|
|
-
|
|
|
|
|
|
+
|
|
.titlename {
|
|
.titlename {
|
|
font-size: 36rpx;
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
@@ -425,12 +429,15 @@
|
|
.ds {
|
|
.ds {
|
|
padding-top: 30rpx;
|
|
padding-top: 30rpx;
|
|
}
|
|
}
|
|
- .psa{
|
|
|
|
|
|
+
|
|
|
|
+ .psa {
|
|
padding-right: 30rpx;
|
|
padding-right: 30rpx;
|
|
}
|
|
}
|
|
- .cls{
|
|
|
|
|
|
+
|
|
|
|
+ .cls {
|
|
color: #68625B;
|
|
color: #68625B;
|
|
}
|
|
}
|
|
|
|
+
|
|
.titleall {
|
|
.titleall {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
@@ -449,26 +456,29 @@
|
|
display: block;
|
|
display: block;
|
|
display: -webkit-box;
|
|
display: -webkit-box;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.uppic {
|
|
.uppic {
|
|
display: flex;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
justify-content: flex-end;
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
+
|
|
.picbox {
|
|
.picbox {
|
|
width: 150rpx;
|
|
width: 150rpx;
|
|
height: 150rpx;
|
|
height: 150rpx;
|
|
margin-left: 20rpx;
|
|
margin-left: 20rpx;
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
|
+
|
|
image {
|
|
image {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .fanuppic{
|
|
|
|
|
|
+
|
|
|
|
+ .fanuppic {
|
|
display: flex;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|