|
@@ -7,7 +7,9 @@ const _Http = getApp().globalData.http,
|
|
|
|
|
|
|
|
Component({
|
|
Component({
|
|
|
properties: {
|
|
properties: {
|
|
|
-
|
|
|
|
|
|
|
+ changeContent: {
|
|
|
|
|
+ type: Function
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
options: {
|
|
options: {
|
|
|
addGlobalClass: true
|
|
addGlobalClass: true
|
|
@@ -25,10 +27,11 @@ Component({
|
|
|
"userid": wx.getStorageSync('userMsg').userid,
|
|
"userid": wx.getStorageSync('userMsg').userid,
|
|
|
"sa_customersid": 0,
|
|
"sa_customersid": 0,
|
|
|
"sa_agentsid": 0,
|
|
"sa_agentsid": 0,
|
|
|
- where: {}
|
|
|
|
|
|
|
+ where: {},
|
|
|
|
|
+ hospitalName: ""
|
|
|
},
|
|
},
|
|
|
detail: {},
|
|
detail: {},
|
|
|
- hospitalName: ""
|
|
|
|
|
|
|
+ init: false
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
async getList(init = false) {
|
|
async getList(init = false) {
|
|
@@ -50,9 +53,10 @@ Component({
|
|
|
item.m_saleamount = CNY(item.m_saleamount)
|
|
item.m_saleamount = CNY(item.m_saleamount)
|
|
|
item.m_targetamount = CNY(item.m_targetamount)
|
|
item.m_targetamount = CNY(item.m_targetamount)
|
|
|
this.setData({
|
|
this.setData({
|
|
|
- detail: item
|
|
|
|
|
|
|
+ detail: item,
|
|
|
|
|
+ init: true
|
|
|
})
|
|
})
|
|
|
- console.log(this.data.detail)
|
|
|
|
|
|
|
+ this.triggerEvent("changeContent", content)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
changeDate({
|
|
changeDate({
|
|
@@ -92,8 +96,8 @@ Component({
|
|
|
complete: (res) => {
|
|
complete: (res) => {
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
that.setData({
|
|
that.setData({
|
|
|
- hospitalName: item.enterprisename,
|
|
|
|
|
- "content.sa_customersid": item.sa_customersid
|
|
|
|
|
|
|
+ "content.hospitalName": item.enterprisename,
|
|
|
|
|
+ "content.sa_customersid": item.sa_customersid,
|
|
|
})
|
|
})
|
|
|
that.getData()
|
|
that.getData()
|
|
|
wx.navigateBack()
|
|
wx.navigateBack()
|
|
@@ -105,8 +109,8 @@ Component({
|
|
|
},
|
|
},
|
|
|
clearCallBack(e) {
|
|
clearCallBack(e) {
|
|
|
this.setData({
|
|
this.setData({
|
|
|
- hospitalName:'',
|
|
|
|
|
- "content.sa_customersid": 0
|
|
|
|
|
|
|
+ "content.sa_customersid": 0,
|
|
|
|
|
+ "content.hospitalName": ""
|
|
|
})
|
|
})
|
|
|
this.getData()
|
|
this.getData()
|
|
|
}
|
|
}
|