|
|
@@ -545,24 +545,59 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
Consignment() {
|
|
|
- if (!this.info.consignment) {
|
|
|
- this.$refs.refFn.isShow = true;
|
|
|
- } else {
|
|
|
- this.$confirm('寄售将取消上架', '取消寄售', {
|
|
|
+ if (this.userInfo.authStatus === 'SUCCESS') {
|
|
|
+ if (!this.info.consignment) {
|
|
|
+ this.$refs.refFn.isShow = true;
|
|
|
+ } else {
|
|
|
+ this.$confirm('寄售将取消上架', '取消寄售', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ customClass: 'myClass',
|
|
|
+ center: true
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ return this.$http.post(`/asset/cancelConsignment?id=${this.info.id}`);
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ this.$message.success('取消寄售');
|
|
|
+ setTimeout(() => {
|
|
|
+ this.getDetail();
|
|
|
+ }, 1000);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else if (this.userInfo.authStatus === 'PENDING' || this.userInfo.authStatus === 'FAIL') {
|
|
|
+ this.$confirm('用户认证中,是否查看认证状态', '认证', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
customClass: 'myClass',
|
|
|
center: true
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- return this.$http.post(`/asset/cancelConsignment?id=${this.info.id}`);
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- this.$message.success('取消寄售');
|
|
|
+ }).then(() => {
|
|
|
+ this.add();
|
|
|
+ this.$nextTick(() => {
|
|
|
+ // console.log(this.lists);
|
|
|
setTimeout(() => {
|
|
|
- this.getDetail();
|
|
|
+ if (this.userInfo.authStatus !== 'NOT_AUTH' && this.lists == false) {
|
|
|
+ this.add();
|
|
|
+ this.$router.push('/userauthentication');
|
|
|
+ }
|
|
|
+ }, 1000);
|
|
|
+ setTimeout(() => {
|
|
|
+ if (this.userInfo.authStatus !== 'NOT_AUTH' && this.lists == true) {
|
|
|
+ this.add();
|
|
|
+ this.$router.push('/enterpriseauthentication');
|
|
|
+ }
|
|
|
}, 1000);
|
|
|
});
|
|
|
+ });
|
|
|
+ } else if (this.userInfo.authStatus === 'NOT_AUTH') {
|
|
|
+ this.$confirm('未认证不可寄售,是否认证', '认证', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ customClass: 'myClass',
|
|
|
+ center: true
|
|
|
+ }).then(() => {
|
|
|
+ this.$router.push('/authentication');
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
changeShow() {
|
|
|
@@ -617,9 +652,9 @@ export default {
|
|
|
}
|
|
|
)
|
|
|
.then(res => {
|
|
|
- console.log(res);
|
|
|
+ // console.log(res);
|
|
|
this.lists = res.content[0].org;
|
|
|
- console.log(this.lists);
|
|
|
+ // console.log(this.lists);
|
|
|
});
|
|
|
},
|
|
|
send() {
|