|
|
@@ -56,26 +56,7 @@ Page({
|
|
|
},
|
|
|
],
|
|
|
|
|
|
- cardList: [{
|
|
|
- name: 'wh'
|
|
|
- }, {
|
|
|
- name: 'relation'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'items',
|
|
|
- title: mixins.$t('goodsDetail'), //'商品明细',
|
|
|
- color: '#E4002B',
|
|
|
- controls: [{
|
|
|
- card: 'relation',
|
|
|
- code: 'sourceNo'
|
|
|
- }],
|
|
|
- noWarehouseFlag: true, // 控制是否隐藏去库存按钮
|
|
|
- displayNum: 2
|
|
|
- }, {
|
|
|
- name: 'other',
|
|
|
- title: mixins.$t('otherInfo'), //'其他信息'
|
|
|
- }
|
|
|
- ],
|
|
|
+ cardList: [],
|
|
|
contentObj: {
|
|
|
wh: [{
|
|
|
code: 'supId',
|
|
|
@@ -733,6 +714,51 @@ Page({
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ if (this.data.gradeCode == Constants.gradeCode.STD) {
|
|
|
+ this.setData({
|
|
|
+ cardList: [{
|
|
|
+ name: 'wh'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'items',
|
|
|
+ title: mixins.$t('goodsDetail'), //'商品明细',
|
|
|
+ color: '#E4002B',
|
|
|
+ controls: [{
|
|
|
+ card: 'relation',
|
|
|
+ code: 'sourceNo'
|
|
|
+ }],
|
|
|
+ noWarehouseFlag: true, // 控制是否隐藏去库存按钮
|
|
|
+ displayNum: 2
|
|
|
+ }, {
|
|
|
+ name: 'other',
|
|
|
+ title: mixins.$t('otherInfo'), //'其他信息'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.setData({
|
|
|
+ cardList: [{
|
|
|
+ name: 'wh'
|
|
|
+ }, {
|
|
|
+ name: 'relation'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'items',
|
|
|
+ title: mixins.$t('goodsDetail'), //'商品明细',
|
|
|
+ color: '#E4002B',
|
|
|
+ controls: [{
|
|
|
+ card: 'relation',
|
|
|
+ code: 'sourceNo'
|
|
|
+ }],
|
|
|
+ noWarehouseFlag: true, // 控制是否隐藏去库存按钮
|
|
|
+ displayNum: 2
|
|
|
+ }, {
|
|
|
+ name: 'other',
|
|
|
+ title: mixins.$t('otherInfo'), //'其他信息'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
})
|