|
@@ -96,7 +96,11 @@ export default {
|
|
|
components: { STable, VSelect },
|
|
|
props: {
|
|
|
newLoading: Boolean,
|
|
|
- returnReasonList: Array
|
|
|
+ returnReasonList: Array,
|
|
|
+ isShowPrice: {
|
|
|
+ type: Boolean,
|
|
|
+ default: true
|
|
|
+ }
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -161,7 +165,7 @@ export default {
|
|
|
{ title: '退货原因', dataIndex: 'returnReason', width: '10%', align: 'center', scopedSlots: { customRender: 'returnReason' } },
|
|
|
{ slots: { title: 'customTitle' }, scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
|
]
|
|
|
- if (this.$hasPermissions('B_isShowPrice')) { // 售价权限
|
|
|
+ if (this.$hasPermissions('B_isShowPrice') && this.isShowPrice) { // 售价权限
|
|
|
arr.splice(4, 0, { title: '当前售价', dataIndex: 'productPrice', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|
|
|
}
|
|
|
this.columns = arr
|