|
@@ -247,33 +247,52 @@
|
|
|
},
|
|
|
goEntered(item) {
|
|
|
console.log(item)
|
|
|
- if(item.maxTime<31){
|
|
|
- var that=this;
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '距上次提交报告:'+item.maxTime+'天,是否继续录入?',
|
|
|
- success: function (res) {
|
|
|
- if (res.confirm) {
|
|
|
- that.$store.commit('mutationsCategoryList', '');
|
|
|
- that.$store.commit('mutationssuggestList', '')
|
|
|
- uni.navigateTo({
|
|
|
- url: 'entered?shopId=' + item.shopId + '&ShopName=' + item.ShopName + '&Contactor=' + item.Contactor
|
|
|
- })
|
|
|
-
|
|
|
- } else if (res.cancel) {
|
|
|
- console.log('用户点击取消');
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
+ if(item.State){
|
|
|
+ if(item.maxTime<30){
|
|
|
+ var that=this;
|
|
|
+ console.log(item.maxTime)
|
|
|
+ if(item.maxTime == null||item.maxTime===''){
|
|
|
+ that.$store.commit('mutationsCategoryList', '');
|
|
|
+ that.$store.commit('mutationssuggestList', '')
|
|
|
+ uni.navigateTo({
|
|
|
+ url: 'entered?shopId=' + item.shopId + '&ShopName=' + item.ShopName + '&Contactor=' + item.Contactor
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '距上次提交报告:'+item.maxTime+'天,是否继续录入?',
|
|
|
+ success: function (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ that.$store.commit('mutationsCategoryList', '');
|
|
|
+ that.$store.commit('mutationssuggestList', '')
|
|
|
+ uni.navigateTo({
|
|
|
+ url: 'entered?shopId=' + item.shopId + '&ShopName=' + item.ShopName + '&Contactor=' + item.Contactor
|
|
|
+ })
|
|
|
+
|
|
|
+ } else if (res.cancel) {
|
|
|
+ console.log('用户点击取消');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }else{
|
|
|
+ this.$store.commit('mutationsCategoryList', '');
|
|
|
+ this.$store.commit('mutationssuggestList', '')
|
|
|
+ uni.navigateTo({
|
|
|
+ url: 'entered?shopId=' + item.shopId + '&ShopName=' + item.ShopName + '&Contactor=' + item.Contactor
|
|
|
+ })
|
|
|
+ }
|
|
|
}else{
|
|
|
- this.$store.commit('mutationsCategoryList', '');
|
|
|
- this.$store.commit('mutationssuggestList', '')
|
|
|
- uni.navigateTo({
|
|
|
- url: 'entered?shopId=' + item.shopId + '&ShopName=' + item.ShopName + '&Contactor=' + item.Contactor
|
|
|
- })
|
|
|
+ uni.showToast({
|
|
|
+ title: '未查询到检测套餐信息',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000,
|
|
|
+ });
|
|
|
}
|
|
|
+
|
|
|
|
|
|
|
|
|
},
|