|
@@ -75,10 +75,10 @@
|
|
</div>
|
|
</div>
|
|
<div class="yusa">
|
|
<div class="yusa">
|
|
<el-col :xs="24" :sm="24" :md="14" :lg="14" :xl="10" class="jas">
|
|
<el-col :xs="24" :sm="24" :md="14" :lg="14" :xl="10" class="jas">
|
|
- <el-form ref="form" :model="form" label-width="0px">
|
|
|
|
|
|
+ <el-form ref="form" :model="feed" label-width="0px">
|
|
<span class="sah">审核反馈:</span>
|
|
<span class="sah">审核反馈:</span>
|
|
<el-form-item label="">
|
|
<el-form-item label="">
|
|
- <el-input type="textarea" v-model="form.desc"></el-input>
|
|
|
|
|
|
+ <el-input type="textarea" v-model="feed.feedback"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
</el-form>
|
|
@@ -109,8 +109,9 @@
|
|
<el-button type="primary" style="float: right;margin-right: 10px; " @click="addNewBill"
|
|
<el-button type="primary" style="float: right;margin-right: 10px; " @click="addNewBill"
|
|
v-if="checked==1">新增</el-button>
|
|
v-if="checked==1">新增</el-button>
|
|
<el-button type="primary" style="float: right; " @click="Exports">导出</el-button>
|
|
<el-button type="primary" style="float: right; " @click="Exports">导出</el-button>
|
|
- <el-button type="warning" style="float: right; " v-if="checked==0">审核失败</el-button>
|
|
|
|
- <el-button type="success" style="float: right; " v-if="checked==0">审核成功</el-button>
|
|
|
|
|
|
+ <el-button type="primary" style="float: right; " v-if="checked==0" >恢复</el-button>
|
|
|
|
+ <el-button type="warning" style="float: right; " v-if="checked==0" @click="failed">审核失败</el-button>
|
|
|
|
+ <el-button type="success" style="float: right; " v-if="checked==0" @click="success">审核成功</el-button>
|
|
</div>
|
|
</div>
|
|
</el-card>
|
|
</el-card>
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
@@ -192,7 +193,13 @@
|
|
checked: '',
|
|
checked: '',
|
|
form: '',
|
|
form: '',
|
|
url: [],
|
|
url: [],
|
|
- picList: []
|
|
|
|
|
|
+ picList: [],
|
|
|
|
+ feed:{
|
|
|
|
+ id:'',
|
|
|
|
+ feedback:'',
|
|
|
|
+ feedbackPicList:[],
|
|
|
|
+ approveStatus:''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {},
|
|
created() {},
|
|
@@ -207,15 +214,11 @@
|
|
this.url = this.contract.invoicePicList
|
|
this.url = this.contract.invoicePicList
|
|
this.picList = this.contract.picList
|
|
this.picList = this.contract.picList
|
|
this.list = res.data.contractDraft.result
|
|
this.list = res.data.contractDraft.result
|
|
|
|
+ this.feed.feedbackPicList=this.picList
|
|
|
|
+ this.feed.id=this.$route.query.id
|
|
this.getPageData()
|
|
this.getPageData()
|
|
- // console.log(this.list)
|
|
|
|
})
|
|
})
|
|
- // this.$request({
|
|
|
|
- // url: '/api/Contract/contractDraft/' + id,
|
|
|
|
- // method: 'get'
|
|
|
|
- // }).then((res) => {
|
|
|
|
- // this.list.push(res.data)
|
|
|
|
- // })
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
addNewBill() {
|
|
addNewBill() {
|
|
@@ -270,6 +273,48 @@
|
|
})
|
|
})
|
|
dataConversionUtil.dataToExcel('出票人列表', tableHeader, dataList)
|
|
dataConversionUtil.dataToExcel('出票人列表', tableHeader, dataList)
|
|
this.$message.success('导出成功!');
|
|
this.$message.success('导出成功!');
|
|
|
|
+ },
|
|
|
|
+ success(){
|
|
|
|
+ // this.feed.feedbackPicList=this.picList
|
|
|
|
+ // this.feed.id=this.$route.query.id
|
|
|
|
+ this.feed.approveStatus=1
|
|
|
|
+ this.$request({
|
|
|
|
+ url:'/api/Contract/approveContract',
|
|
|
|
+ method:'post',
|
|
|
|
+ data:this.feed,
|
|
|
|
+ }).then((res)=>{
|
|
|
|
+ if(res.code==200){
|
|
|
|
+ this.$message({
|
|
|
|
+ type:'success',
|
|
|
|
+ message:res.msg
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.$message({
|
|
|
|
+ type:'danger',
|
|
|
|
+ message:'提交失败'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ failed(){
|
|
|
|
+ this.feed.approveStatus=2
|
|
|
|
+ this.$request({
|
|
|
|
+ url:'/api/Contract/approveContract',
|
|
|
|
+ method:'post',
|
|
|
|
+ data:this.feed,
|
|
|
|
+ }).then((res)=>{
|
|
|
|
+ if(res.code==200){
|
|
|
|
+ this.$message({
|
|
|
|
+ type:'success',
|
|
|
|
+ message:res.msg
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.$message({
|
|
|
|
+ type:'danger',
|
|
|
|
+ message:'提交失败'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|