修改发票显示问题和暂存工作台修改
This commit is contained in:
72
pages/workBench/components/tenement/index.js
Normal file
72
pages/workBench/components/tenement/index.js
Normal file
@@ -0,0 +1,72 @@
|
||||
import { alertInfo } from "../../../../utils/index";
|
||||
|
||||
// pages/workBench/components/tenement/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
lifetimes: {
|
||||
ready() {
|
||||
console.log("this.data", this.data)
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
onParkFocus(e) {
|
||||
this.setData({
|
||||
show: true,
|
||||
title: "园区",
|
||||
type: 'park'
|
||||
})
|
||||
},
|
||||
onTenementFocus(e) {
|
||||
const { park } = this.data;
|
||||
if (!park) {
|
||||
alertInfo("请先选择园区")
|
||||
return;
|
||||
}
|
||||
this.setData({
|
||||
show: true,
|
||||
title: "商户",
|
||||
type: 'tenement'
|
||||
})
|
||||
},
|
||||
async init() {
|
||||
|
||||
},
|
||||
onConfirm(e) {
|
||||
const { type, data } = e.detail;
|
||||
switch(type) {
|
||||
case "park":
|
||||
this.setData({
|
||||
park: data.id,
|
||||
parkName: data.name,
|
||||
show: false,
|
||||
})
|
||||
break;
|
||||
}
|
||||
},
|
||||
startKh() {
|
||||
this.setData({
|
||||
kaihuVisible: true
|
||||
})
|
||||
// const { park = '', parkName = '', tenement = '', tenementName = '' } = this.data;
|
||||
// wx.navigateTo({
|
||||
// url: `/pages/workBench/components/tenement/components/createTenement/index?park=${park}&tenement=${tenement}&parkName=${parkName}&${tenementName}=${tenementName}`,
|
||||
// })
|
||||
}
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user