权限代码调整

This commit is contained in:
joylink_cuiweidong 2019-12-18 13:29:52 +08:00
parent 0bb46ab432
commit 19606ffd98
3 changed files with 9 additions and 3 deletions

View File

@ -116,5 +116,6 @@ export default {
transferAttribution: 'Transfer attribution',
distributionAttribution: 'Distribution attribution',
goodsAmount:'Goods Amount',
operate:'operate'
operate:'operate',
orderNotPay:'order not pay'
};

View File

@ -115,5 +115,6 @@ export default {
transferAttribution: '转赠归属',
distributionAttribution: '分发归属',
goodsAmount:'商品个数',
operate:'操作'
operate:'操作',
orderNotPay:'该订单未支付'
};

View File

@ -241,7 +241,11 @@ export default {
this.$refs.detail.doShow(data);
},
handleCanDistribute(index, data) {
this.distribute(data.code);
if (data.payStatus == '01') {
this.$messageBox(this.$t('orderAuthor.orderNotPay'));
} else if (data.payStatus == '02' || data.payStatus == '04' ) {
this.distribute(data.code);
}
},
distribute(orderCode) {
getDistributeFromOrder(orderCode).then(response => {