|
|
@@ -185,18 +185,7 @@ Page({
|
|
|
routeObjName: 'customer',
|
|
|
active:0
|
|
|
},
|
|
|
- /**
|
|
|
- * 切换 已出库 未出库
|
|
|
- */
|
|
|
- onChangeTabs(e) {
|
|
|
- let index = e.detail.detail.index
|
|
|
- console.log("qeaqwewa", index)
|
|
|
- console.log("qeaqwewa", e)
|
|
|
- this.setData({
|
|
|
- active:index,
|
|
|
- })
|
|
|
-
|
|
|
- },
|
|
|
+
|
|
|
/**
|
|
|
* 跳转客户详细
|
|
|
*/
|
|
|
@@ -222,32 +211,11 @@ Page({
|
|
|
url: './add/add',
|
|
|
})
|
|
|
},
|
|
|
- /**
|
|
|
- * @desc : 右上角三个小点 点击回调事件
|
|
|
- * @date : 2024/2/1 15:49
|
|
|
- * @author : 王英杰
|
|
|
- */
|
|
|
- open(e) {
|
|
|
- let name = e.detail.name
|
|
|
- let item = e.detail.item
|
|
|
- if(name == 'customerRefund'){ //出库办理
|
|
|
- wx.navigateTo({
|
|
|
- url: '/package-sales/pages/order-billing/customer-collection-refund/customer-collection-refund?form='+ encodeURIComponent(JSON.stringify(item)) +'&page=customer-collection' + '&pageIndex=customer-collection',
|
|
|
- })
|
|
|
- }
|
|
|
- if(name == 'customerRefundList'){ //客户退款
|
|
|
- wx.navigateTo({
|
|
|
- url: '/package-sales/pages/order-billing/customer-collection/refund-record/refund-record?form='+ encodeURIComponent(JSON.stringify(item)) +'&page=customer-collection',
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- },
|
|
|
+
|
|
|
/**
|
|
|
* @desc : 校验
|
|
|
* @date : 2024/2/1 15:49
|
|
|
- * @author : 周兴
|
|
|
+ * @author : 王英杰
|
|
|
*/
|
|
|
openValidData(item, name) {
|
|
|
console.log('item', item, name, item.customerId);
|
|
|
@@ -264,85 +232,12 @@ Page({
|
|
|
/**
|
|
|
* @desc : 查询
|
|
|
* @date : 2024/2/1 15:49
|
|
|
- * @author : 周兴
|
|
|
+ * @author : 王英杰
|
|
|
*/
|
|
|
getData(params) {
|
|
|
console.log('fff', params);
|
|
|
},
|
|
|
|
|
|
- /**
|
|
|
- * 生命周期函数--监听页面加载
|
|
|
- */
|
|
|
- onLoad: function (options) {
|
|
|
- //按钮权限
|
|
|
-
|
|
|
- // let Customer_Follow = common.hasButtonRight(Constants.Customer_Follow) //跟进
|
|
|
- // let Customer_Follow_Task = common.hasButtonRight(Constants.Customer_Follow_Task) //跟进任务
|
|
|
- // let Customer_Order = common.hasButtonRight(Constants.Customer_Order) //销售订单
|
|
|
- // let Customer_Receive = common.hasButtonRight(Constants.Customer_Receive) //客户收款
|
|
|
- // let Customer_Add = common.hasButtonRight(Constants.Customer_Add) //客户新建
|
|
|
-
|
|
|
- this.setData({
|
|
|
- Customer_Follow: true,
|
|
|
- Customer_Follow_Task: true,
|
|
|
- Customer_Order: true,
|
|
|
- Customer_Receive: true,
|
|
|
- Customer_Add: true
|
|
|
-
|
|
|
- })
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- if (JSON.stringify(options) !== '{}') {
|
|
|
-
|
|
|
- if (options.frommine) {
|
|
|
-
|
|
|
- let frommine = JSON.parse(options.frommine)
|
|
|
- var createtime = this.selectComponent('#createtime');
|
|
|
- createtime.data.dataDefaultSearch = util.jumpPageDate(frommine.date.value)
|
|
|
- createtime.data.createTimeType = frommine.date
|
|
|
-
|
|
|
- let keyType = this.selectComponent('#keyType')
|
|
|
- let keyTypeList = keyType.data.moreList
|
|
|
- keyTypeList.forEach(kIt => {
|
|
|
- if (frommine.keyTypeList) {
|
|
|
- if (frommine.keyTypeList.some(it => kIt.id === it)) {
|
|
|
- kIt.infotype = 'info'
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- keyType.setData({
|
|
|
- moreList: keyTypeList
|
|
|
- })
|
|
|
-
|
|
|
- let searchForm = {
|
|
|
- ...this.data.searchForm
|
|
|
- }
|
|
|
- searchForm.keyTypeList = frommine.keyTypeNameList
|
|
|
-
|
|
|
- this.setData({
|
|
|
- active: frommine.active,
|
|
|
- createTimeType: frommine.date,
|
|
|
- searchForm: searchForm,
|
|
|
- searchFormNumber: (frommine.keyTypeNameList && frommine.keyTypeNameList.length > 0) ? 1 : null,
|
|
|
- createTimeSearch: util.jumpPageDate(frommine.date.value),
|
|
|
- staffIds: frommine.staffId ? [frommine.staffId] : [],
|
|
|
- staffNames: frommine.staffNames,
|
|
|
- })
|
|
|
-
|
|
|
- createtime.init()
|
|
|
- }
|
|
|
- } else {
|
|
|
- // this.searchData()
|
|
|
- }
|
|
|
- },
|
|
|
- /**
|
|
|
- * 生命周期函数--监听页面显示
|
|
|
- */
|
|
|
- onShow: function () {
|
|
|
- if (this.data.selectflag) {
|
|
|
- // this.searchData()
|
|
|
- }
|
|
|
- },
|
|
|
+
|
|
|
+
|
|
|
})
|