tableData.tsx 1.56 KB
import { ref } from 'vue';
import { ROLE } from '../../../financeList/type.d';
import { queryNoOptions } from '/@/api/project/order';
import { useOrderInfo } from '/@/hooks/component/order';
import { useOrderStoreWithOut } from '/@/store/modules/order';
import { formatToDate } from '/@/utils/dateUtil';

// 角色
// 业务员- 查看all,编辑-利润分析,报告书
// 跟单员- 查看利润分析(单价和总金额),跟单,质检,编辑
// 质检员- 查看跟单,质检,编辑质检

const innerNoOptions = ref([]);
const projectNoOptions = ref([]);
const orderStore = useOrderStoreWithOut();
// const { productionDepartment: productionDepartmentOptions } = useOrderInfo(orderStore);

/**
 * drawer面板的字段
 */
// 基本信息
export const FIELDS_BASE_INFO = [
  {
    field: 'developmentCopyRmbTotalPrice',
    component: 'Select',
    labelWidth: 150,
    label: '研发复制费合计¥',
    rules: [{ required: true }],
  },
  {
    field: 'projectStartTime',
    component: 'Select',
    labelWidth: 150,
    label: '项目开始时间',
    rules: [{ required: true }],
  },
  {
    field: 'projectEndTime',
    component: 'Select',
    labelWidth: 150,
    label: '项目结束时间',
    rules: [{ required: true }],
  },
  {
    field: 'spainPaidRmbCommission',
    component: 'Select',
    labelWidth: 150,
    label: '西班牙已发提成¥',
    rules: [{ required: true }],
  },
  {
    field: 'paidRmbCommission',
    component: 'Select',
    labelWidth: 150,
    label: '中国团队已发提成¥',
    rules: [{ required: true }],
  },
];