|
@@ -347,56 +347,21 @@ export default {
|
|
|
console.log(res,'res')
|
|
|
if (res.data.code === 200 && res.data.rows.length) {
|
|
|
if (res.data.rows[0].keyValue) {
|
|
|
- self.$api.getbaseprofiletpgetInfo({ goodsId: self.goodsId }).then(result => {
|
|
|
- console.log(result,'result')
|
|
|
- if (result.data.code === 200) {
|
|
|
- if (!result.data.data || (result.data.data.status === 3 && result.data.data.changeStatus === 1)) {
|
|
|
- if (!result.data.data) {
|
|
|
- self.needProfileModal = true
|
|
|
- uni.showModal({
|
|
|
- content: '请前往填写资料',
|
|
|
- cancelText: '返回',
|
|
|
- success: function(resultst) {
|
|
|
- if (resultst.confirm) {
|
|
|
- self.$navTo.togo('/pages2/verify/input', {
|
|
|
- id: self.goodsId
|
|
|
- });
|
|
|
- }
|
|
|
- if (resultst.cancel) {
|
|
|
- uni.navigateBack();
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
- self.needProfileModal = true
|
|
|
- uni.showModal({
|
|
|
- content: '资料审核不通过,请前往重新填写',
|
|
|
- cancelText: '返回',
|
|
|
- success: function(resultst) {
|
|
|
- if (resultst.confirm) {
|
|
|
- self.$navTo.togo('/pages2/verify/input', {
|
|
|
- id: self.goodsId
|
|
|
- });
|
|
|
- }
|
|
|
- if (resultst.cancel) {
|
|
|
- uni.navigateBack();
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- } else if (result.data.data.status === 1 && JSON.parse(res.data.rows[0].keyValue2)[0]) {
|
|
|
- self.$api.getbaseprofileStampgetInfo({ goodsId: self.goodsId }).then(k => {
|
|
|
-
|
|
|
- if (k.data.code === 200) {
|
|
|
- if (!k.data.data || (k.data.data.status === 3 && k.data.data.changeStatus === 1)) {
|
|
|
- if (!k.data.data) {
|
|
|
+ self.$api.getbaseprofiletpId(self.goodsId).then(baseRes => {
|
|
|
+ if(baseRes.data.code === 200) {
|
|
|
+ if(baseRes.data.data) {
|
|
|
+ self.$api.getbaseprofiletpgetInfo({ goodsId: self.goodsId }).then(result => {
|
|
|
+ console.log(result,'result')
|
|
|
+ if (result.data.code === 200) {
|
|
|
+ if (!result.data.data || (result.data.data.status === 3 && result.data.data.changeStatus === 1)) {
|
|
|
+ if (!result.data.data) {
|
|
|
self.needProfileModal = true
|
|
|
uni.showModal({
|
|
|
+ content: '请前往填写资料',
|
|
|
cancelText: '返回',
|
|
|
- content: '请前往填写盖章资料',
|
|
|
success: function(resultst) {
|
|
|
if (resultst.confirm) {
|
|
|
- self.$navTo.togo('/pages2/verify/input2', {
|
|
|
+ self.$navTo.togo('/pages2/verify/input', {
|
|
|
id: self.goodsId
|
|
|
});
|
|
|
}
|
|
@@ -408,11 +373,11 @@ export default {
|
|
|
} else {
|
|
|
self.needProfileModal = true
|
|
|
uni.showModal({
|
|
|
+ content: '资料审核不通过,请前往重新填写',
|
|
|
cancelText: '返回',
|
|
|
- content: '资料盖章审核不通过,请前往重新填写',
|
|
|
success: function(resultst) {
|
|
|
if (resultst.confirm) {
|
|
|
- self.$navTo.togo('/pages2/verify/input2', {
|
|
|
+ self.$navTo.togo('/pages2/verify/input', {
|
|
|
id: self.goodsId
|
|
|
});
|
|
|
}
|
|
@@ -422,12 +387,54 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ } else if (result.data.data.status === 1 && JSON.parse(res.data.rows[0].keyValue2)[0]) {
|
|
|
+ self.$api.getbaseprofileStampgetInfo({ goodsId: self.goodsId }).then(k => {
|
|
|
+
|
|
|
+ if (k.data.code === 200) {
|
|
|
+ if (!k.data.data || (k.data.data.status === 3 && k.data.data.changeStatus === 1)) {
|
|
|
+ if (!k.data.data) {
|
|
|
+ self.needProfileModal = true
|
|
|
+ uni.showModal({
|
|
|
+ cancelText: '返回',
|
|
|
+ content: '请前往填写盖章资料',
|
|
|
+ success: function(resultst) {
|
|
|
+ if (resultst.confirm) {
|
|
|
+ self.$navTo.togo('/pages2/verify/input2', {
|
|
|
+ id: self.goodsId
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (resultst.cancel) {
|
|
|
+ uni.navigateBack();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ self.needProfileModal = true
|
|
|
+ uni.showModal({
|
|
|
+ cancelText: '返回',
|
|
|
+ content: '资料盖章审核不通过,请前往重新填写',
|
|
|
+ success: function(resultst) {
|
|
|
+ if (resultst.confirm) {
|
|
|
+ self.$navTo.togo('/pages2/verify/input2', {
|
|
|
+ id: self.goodsId
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (resultst.cancel) {
|
|
|
+ uni.navigateBack();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
});
|