zhaoxiaohai 2 лет назад
Родитель
Сommit
2ce57a75d3
3 измененных файлов с 2 добавлено и 7 удалено
  1. 0 3
      packageA/forecast/index.js
  2. 1 3
      packageA/forecast/record.js
  3. 1 1
      packageA/forecast/reportForms.wxml

+ 0 - 3
packageA/forecast/index.js

@@ -66,10 +66,7 @@ Page({
             } else {
                 const data = {
                     sa_salesforecastbillid: res.data[0].sa_salesforecastbillid,
-                    projectname: item.title,
-                    projectnum: item.billnum,
                     sa_projectid: 0,
-                    address: "",
                     sa_salesforecastmodelid: item.sa_salesforecastmodelid
                 }
                 wx.navigateTo({

+ 1 - 3
packageA/forecast/record.js

@@ -37,13 +37,11 @@ Page({
             wx.navigateTo({
                 url: './detail?id=' + item.sa_salesforecastbillid,
             })
+            console.log(12)
         } else {
             const data = {
                 sa_salesforecastbillid: item.sa_salesforecastbillid,
-                projectname: item.title,
-                projectnum: item.billnum,
                 sa_projectid: 0,
-                address: "",
                 sa_salesforecastmodelid: this.data.content.sa_salesforecastmodelid
             }
             wx.navigateTo({

+ 1 - 1
packageA/forecast/reportForms.wxml

@@ -1,4 +1,4 @@
-<van-sticky>
+<van-sticky wx:if="{{sourceData.projectname}}">
     <view class="head">
         <view class="title line-1">项目:{{sourceData.projectname}}</view>
         <view class="line-1">项目编号:{{sourceData.projectnum}}</view>