|
|
@@ -30,15 +30,7 @@ Page({
|
|
|
// 查询条件
|
|
|
searchContent: [],
|
|
|
checked:true, //启用标识
|
|
|
- tagList: [{
|
|
|
- title: mixins.$t("all") //全部
|
|
|
- }, {
|
|
|
- title: mixins.$t("procurementSupplier") //采购供应商
|
|
|
- }, {
|
|
|
- title: mixins.$t("outsourcingSupplier") //外协供应商
|
|
|
- },{
|
|
|
- title: mixins.$t("serviceProvider") // 服务供应商
|
|
|
- }], // 假数据
|
|
|
+ tagList: [], // 假数据
|
|
|
|
|
|
supplierService: app.globalData['supplierService'],
|
|
|
contentObj: {
|
|
|
@@ -105,6 +97,15 @@ Page({
|
|
|
*/
|
|
|
loadInit(){
|
|
|
if(this.data.gradeCode == Constants.gradeCode.PRO){
|
|
|
+ const tagList = [{
|
|
|
+ title: mixins.$t("all") //全部
|
|
|
+ }, {
|
|
|
+ title: mixins.$t("procurementSupplier") //采购供应商
|
|
|
+ }, {
|
|
|
+ title: mixins.$t("outsourcingSupplier") //外协供应商
|
|
|
+ },{
|
|
|
+ title: mixins.$t("serviceProvider") // 服务供应商
|
|
|
+ }]
|
|
|
const footerAmount = {
|
|
|
name: 'payableResidue',
|
|
|
title: mixins.$t('payAmount')
|
|
|
@@ -114,12 +115,24 @@ Page({
|
|
|
}]
|
|
|
this.setData({
|
|
|
footerAmount: footerAmount,
|
|
|
- footerInfo: footerInfo
|
|
|
+ footerInfo: footerInfo,
|
|
|
+ tagList: tagList
|
|
|
})
|
|
|
}else {
|
|
|
- console.log('app.globalData', app.globalData);
|
|
|
+ const filters = app.globalData.menus.filter(it => it.objectCode === "pur-order")
|
|
|
+ if(filters.length > 0){
|
|
|
+ const tagList = [{
|
|
|
+ title: mixins.$t("all") //全部
|
|
|
+ }, {
|
|
|
+ title: mixins.$t("procurementSupplier") //采购供应商
|
|
|
+ }, {
|
|
|
+ title: mixins.$t("outsourcingSupplier") //外协供应商
|
|
|
+ }]
|
|
|
+ this.setData({
|
|
|
+ tagList: tagList
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
/**
|
|
|
* @desc : 左滑 停用回调
|