|
|
@@ -32,7 +32,8 @@ Component({
|
|
|
},
|
|
|
areaList: [],
|
|
|
active: "",
|
|
|
- details: {}
|
|
|
+ details: {},
|
|
|
+ hospitalName: ""
|
|
|
},
|
|
|
methods: {
|
|
|
async getList(init = false) {
|
|
|
@@ -69,11 +70,11 @@ Component({
|
|
|
},
|
|
|
async getData() {
|
|
|
let content = this.data.content
|
|
|
- if (content.sa_saleareaid == 0) await this.getArea().then(res => {
|
|
|
- if (res.length > 0) {
|
|
|
- content.sa_saleareaid = res[0].sa_saleareaid
|
|
|
- }
|
|
|
- })
|
|
|
+ /* if (content.sa_saleareaid == 0) await this.getArea().then(res => {
|
|
|
+ if (res.length > 0) {
|
|
|
+ content.sa_saleareaid = res[0].sa_saleareaid
|
|
|
+ }
|
|
|
+ }) */
|
|
|
_Http.basic({
|
|
|
"id": 2026010714131502,
|
|
|
content
|
|
|
@@ -171,5 +172,50 @@ Component({
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ toSelectHospital(e) {
|
|
|
+ let params = {
|
|
|
+ "content": {
|
|
|
+ "pageNumber": 1,
|
|
|
+ pageTotal: 1,
|
|
|
+ "pageSize": 20,
|
|
|
+ "where": {
|
|
|
+ "condition": "",
|
|
|
+ "sa_saleareaid": ""
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "id": 2026010516151802,
|
|
|
+ }
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/prsx/select/hospital/index?params=${JSON.stringify(params)}&radio=true`,
|
|
|
+ });
|
|
|
+ let that = this;
|
|
|
+ getApp().globalData.handleSelect = function ({
|
|
|
+ item
|
|
|
+ }) {
|
|
|
+ console.log(item)
|
|
|
+ wx.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: `是否确定选择“${item.enterprisename}”`,
|
|
|
+ complete: (res) => {
|
|
|
+ if (res.confirm) {
|
|
|
+ that.setData({
|
|
|
+ hospitalName: item.enterprisename,
|
|
|
+ "content.sa_customersid": item.sa_customersid
|
|
|
+ })
|
|
|
+ that.getData()
|
|
|
+ wx.navigateBack()
|
|
|
+ delete getApp().globalData.handleSelect
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ clearCallBack(e) {
|
|
|
+ this.setData({
|
|
|
+ hospitalName:'',
|
|
|
+ "content.sa_customersid": 0
|
|
|
+ })
|
|
|
+ this.getData()
|
|
|
+ }
|
|
|
}
|
|
|
})
|