|
@@ -14,13 +14,13 @@ Component({
|
|
|
titleCorner: {
|
|
titleCorner: {
|
|
|
type: String,
|
|
type: String,
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 标题图标
|
|
// 标题图标
|
|
|
titleImage: {
|
|
titleImage: {
|
|
|
type: String,
|
|
type: String,
|
|
|
value: 'Vector.png'
|
|
value: 'Vector.png'
|
|
|
},
|
|
},
|
|
|
- statusImageFlag: {
|
|
|
|
|
|
|
+ statusImageFlag: {
|
|
|
//-作废 收款显示隐藏
|
|
//-作废 收款显示隐藏
|
|
|
type: Boolean,
|
|
type: Boolean,
|
|
|
value: false
|
|
value: false
|
|
@@ -55,7 +55,7 @@ Component({
|
|
|
type: Boolean,
|
|
type: Boolean,
|
|
|
value: true
|
|
value: true
|
|
|
},
|
|
},
|
|
|
- flgValidOnFlag:{ //默认显示启用
|
|
|
|
|
|
|
+ flgValidOnFlag: { //默认显示启用
|
|
|
type: Boolean,
|
|
type: Boolean,
|
|
|
value: true
|
|
value: true
|
|
|
},
|
|
},
|
|
@@ -150,13 +150,21 @@ Component({
|
|
|
type: Boolean,
|
|
type: Boolean,
|
|
|
value: false
|
|
value: false
|
|
|
},
|
|
},
|
|
|
|
|
+ contentCardTwoFlg: { //内容是否两个
|
|
|
|
|
+ type: Boolean,
|
|
|
|
|
+ value: false
|
|
|
|
|
+ },
|
|
|
|
|
+ reportNameKey: { //默认跟踪报表
|
|
|
|
|
+ type: String,
|
|
|
|
|
+ value:'track'
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 组件的初始数据
|
|
* 组件的初始数据
|
|
|
*/
|
|
*/
|
|
|
data: {
|
|
data: {
|
|
|
- imageUrl:config.image_url + '/static/img/',
|
|
|
|
|
|
|
+ imageUrl: config.image_url + '/static/img/',
|
|
|
$t: app.globalData.lang,
|
|
$t: app.globalData.lang,
|
|
|
routeUrl: app.globalData['routeUrl'],
|
|
routeUrl: app.globalData['routeUrl'],
|
|
|
item: null,
|
|
item: null,
|
|
@@ -171,9 +179,9 @@ Component({
|
|
|
* @author : 周兴
|
|
* @author : 周兴
|
|
|
* @date : 2024/4/25 11:46
|
|
* @date : 2024/4/25 11:46
|
|
|
*/
|
|
*/
|
|
|
- showTip(e){
|
|
|
|
|
|
|
+ showTip(e) {
|
|
|
let item = e.currentTarget.dataset.item
|
|
let item = e.currentTarget.dataset.item
|
|
|
- if(item.tip){
|
|
|
|
|
|
|
+ if (item.tip) {
|
|
|
wx.showToast({
|
|
wx.showToast({
|
|
|
title: item.tip,
|
|
title: item.tip,
|
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -195,7 +203,7 @@ Component({
|
|
|
* @author : 周兴
|
|
* @author : 周兴
|
|
|
* @date : 2024/2/19 11:46
|
|
* @date : 2024/2/19 11:46
|
|
|
*/
|
|
*/
|
|
|
- _chooseData(index){
|
|
|
|
|
|
|
+ _chooseData(index) {
|
|
|
let list = this.data.list;
|
|
let list = this.data.list;
|
|
|
if (list && list[index]) {
|
|
if (list && list[index]) {
|
|
|
list[index].checked = !list[index].checked
|
|
list[index].checked = !list[index].checked
|
|
@@ -204,8 +212,10 @@ Component({
|
|
|
list: list
|
|
list: list
|
|
|
})
|
|
})
|
|
|
// 勾选数据
|
|
// 勾选数据
|
|
|
- this.triggerEvent("choose", { item:list[index],
|
|
|
|
|
- list: list.filter(it=>it.checked) ,checked:list[index].checked})
|
|
|
|
|
|
|
+ this.triggerEvent("choose", {
|
|
|
|
|
+ item: list[index],
|
|
|
|
|
+ list: list.filter(it => it.checked), checked: list[index].checked
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* @desc : 打电话
|
|
* @desc : 打电话
|
|
@@ -231,9 +241,9 @@ Component({
|
|
|
*/
|
|
*/
|
|
|
toDetail(e) {
|
|
toDetail(e) {
|
|
|
// 相当于勾选
|
|
// 相当于勾选
|
|
|
- if(this.data.chooseFlag){
|
|
|
|
|
|
|
+ if (this.data.chooseFlag) {
|
|
|
this.chooseData(e);
|
|
this.chooseData(e);
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
this.triggerEvent("toDetail", { item: e.currentTarget.dataset.item })
|
|
this.triggerEvent("toDetail", { item: e.currentTarget.dataset.item })
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|