|
@@ -63,7 +63,7 @@
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- ...financeclaims(['fclaimsList', 'orUpdate', 'dupdate', 'create','fetch','update']),
|
|
|
+ ...financeclaims(['fclaimsList', 'orUpdate', 'dupdate', 'create','fetch','update','publish']),
|
|
|
async searchInfo() {
|
|
|
if (this.id) {
|
|
|
const res = await this.fetch(this.id);
|
|
@@ -106,6 +106,30 @@
|
|
|
}
|
|
|
this.searchInfo();
|
|
|
},
|
|
|
+ async changStatus({data}){
|
|
|
+ let finaldata={};
|
|
|
+ let res;
|
|
|
+ finaldata.finid = data.id;
|
|
|
+ finaldata.userid='测试ID852784956285296352';
|
|
|
+ if(data.status=='0'){
|
|
|
+ finaldata.publish='1';
|
|
|
+ }else{
|
|
|
+ finaldata.publish='0';
|
|
|
+ }
|
|
|
+ res = await this.publish(finaldata);
|
|
|
+ if(res.status='SUCCESS'){
|
|
|
+ this.$message({
|
|
|
+ message: '审核相关操作成功',
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ message: '审核相关操作失败',
|
|
|
+ type: 'error',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.searchInfo();
|
|
|
+ },
|
|
|
// 返回
|
|
|
goBack() {
|
|
|
this.$router.go(-1);
|