= {
+ outbound_no: 'outbound_list:outbound_no',
+ outbound_time: 'outbound_list:outbound_time',
+ outbound_type: 'outbound_list:outbound_type',
+ total_amount: 'outbound_list:total_amount',
+ consumer_name: 'outbound_list:consumer_name',
+ operator_name: 'outbound_list:operator_name',
+ remark: 'outbound_list:remark',
+ signature_path: 'outbound_list:signature_path',
+ // 明细列
+ sku: 'outbound_list:sku',
+ name: 'outbound_list:name',
+ material_type: 'outbound_list:material_type',
+ category: 'outbound_list:category',
+ spec_model: 'outbound_list:spec_model',
+ quantity: 'outbound_list:quantity',
+ unit_price: 'outbound_list:unit_price',
+ subtotal: 'outbound_list:subtotal',
+}
+
+// 检查列权限
+const hasColumnPermission = (prop: string) => {
+ if (userStore.role === 'SUPER_ADMIN' || userStore.username === 'IRIS') {
+ return true
+ }
+ const code = permissionMap[prop]
+ return code ? userStore.hasPermission(code) : false
+}
const list = ref([])
const total = ref(0)
@@ -198,4 +231,4 @@ onMounted(() => {
background: #f5f7fa;
color: #909399;
}
-
\ No newline at end of file
+