|
@@ -63,7 +63,7 @@
|
|
|
ref="table"
|
|
|
:style="modes=='pages'?{ height: tableHeight+84.5+'px' }:{}"
|
|
|
size="small"
|
|
|
- :row-selection="modes=='pages'?{ columnWidth: 40 }:{ columnWidth: 40, getCheckboxProps: record => ({ props: { disabled: !record.productEntity.purchasePrice || !(record.productEntity.onlineFalg == 1&& record.dealerScopeFlag == 1) } }) }"
|
|
|
+ :row-selection="modes=='pages'?{ columnWidth: 40 }:{ columnWidth: 40, getCheckboxProps: record => ({ props:{disabled: purchaseType&&(purchaseType=='DEALER_UP'||purchaseType=='DEALER_SUPPLIER')&&record.dealerScopeFlag == 0 }}) }"
|
|
|
@rowSelection="rowSelectionFun"
|
|
|
rowKeyName="productSn"
|
|
|
:rowKey="(record) => record.productSn"
|
|
@@ -121,6 +121,10 @@ export default {
|
|
|
modes: {
|
|
|
type: String,
|
|
|
default: 'pages'
|
|
|
+ },
|
|
|
+ purchaseType: {
|
|
|
+ type: String,
|
|
|
+ default: null
|
|
|
}
|
|
|
},
|
|
|
data () {
|