Forráskód Böngészése

1、修改客户收款跳转

zhoux 1 éve
szülő
commit
16a3cd1eac

+ 2 - 3
api/pages/mst/customer.js

@@ -39,13 +39,12 @@ module.exports = {
       choosecusFrom: { key: 'choosecusFrom', url: '/package-base-select/pages/select-data/select-data', type: 'customerFrom' },
       chooseStaff: { key: 'chooseStaff', url: '/package-base-select/pages/select-data/select-data',type:'staff'  },
       chooseOrg: { key: 'chooseOrg',url: '/package-base-select/pages/select-data/select-data',type:'org' }, 
-      collection:{ key: 'collection', url: '/package-sales/pages/customer-collection/customer-collection', formMode: 'index', idKey: 'cusId', image:'btn-customer-collection.png' }, //跳转客户收款
-
+      collection:{ key: 'collection', url: '/package-sales/pages/customer-collection/add/add', formMode: 'add',formType:'add', idKey: 'cusId', image:'btn-customer-collection.png' }, //跳转客户收款新建
 
       toSaleOrder:{ key: 'toSaleOrder', url: '/package-sales/pages/order-billing/order-billing', formMode: 'index', idKey: 'cusId' } ,
       toSaleOutOrder:{ key: 'toSaleOutOrder', url: '/package-sales/pages/sales-outbound/sales-outbound', formMode: 'index', idKey: 'cusId' } ,
       toSaleOrderReturn:{ key: 'toSaleOrderReturn', url: '/package-sales/pages/order-return/order-return', formMode: 'index', idKey: 'cusId' } ,
-      toReceipt:{ key: 'toReceipt', url: '/package-accounts-manage/pages/receipt/receipt', formMode: 'index', idKey: 'cusId' } ,
+      toReceipt:{ key: 'toReceipt', url: '/package-accounts-manage/pages/receipt/add/add', formMode: 'add',formType:'add', idKey: 'cusId' } ,//跳转收款单新建
       
     }
   }

+ 1 - 1
package-basic-data/pages/customer-list/customer-list.js

@@ -157,7 +157,7 @@ Page({
         ],
       })
     }
-
+    
 
   },
   /**

+ 2 - 0
package-sales/pages/customer-collection/add/add.js

@@ -295,6 +295,7 @@ Page({
   * 生命周期函数--监听页面加载
   */
   loadInit() {
+    console.log('eee',this.data.item,this.data.formType,this.data.formMode);
     let formData = JSON.parse(this.data.formData)
     formData['staff'] = {
       text: app.globalData.user.staffName,
@@ -355,6 +356,7 @@ Page({
       formData.contactPhone = this.data.item.contactPhone
     }
 
+
     this.setData({
       formData: JSON.stringify(formData)
     })