Commit c4c7f26339f5a526e85804f752e60218511ee771

Authored by zhongnanhuang
2 parents 642d0aa2 59db6e31

feat: update 与金蝶功能分支合并

src/pages/Order/components/KingdeeCustomerModal.tsx 0 → 100644
  1 +import {
  2 + postKingdeeRepCustomerDetail,
  3 + postKingdeeRepCustomerSave,
  4 +} from '@/services';
  5 +import { getTeacherCustomFieldNumber } from '@/utils/kingdee';
  6 +import { CloseCircleOutlined } from '@ant-design/icons';
  7 +import {
  8 + ModalForm,
  9 + ProFormGroup,
  10 + ProFormList,
  11 + ProFormText,
  12 +} from '@ant-design/pro-components';
  13 +import { Form, message } from 'antd';
  14 +
  15 +// import { cloneDeep } from 'lodash';
  16 +export default ({ setVisible, data, onClose }) => {
  17 + const [form] = Form.useForm();
  18 + console.log(data);
  19 +
  20 + /**
  21 + * 回显客户信息
  22 + * @param id
  23 + */
  24 + async function queryAndShowCustomer(id: any) {
  25 + //查询客户信息
  26 + let res = await postKingdeeRepCustomerDetail({
  27 + data: {
  28 + id: id,
  29 + },
  30 + });
  31 +
  32 + if (res) {
  33 + form.setFieldValue('name', res.name);
  34 + form.setFieldValue('id', res.id);
  35 + form.setFieldValue('contact_persons', res.bomentity);
  36 + let customFiledNumber = await getTeacherCustomFieldNumber();
  37 + form.setFieldValue('teacherName', res.custom_field[customFiledNumber]);
  38 + }
  39 + }
  40 +
  41 + if (data) {
  42 + //修改
  43 + if (data.id) {
  44 + queryAndShowCustomer(data.id);
  45 + } else {
  46 + //新增
  47 + form.setFieldValue('name', data.name);
  48 + form.setFieldValue('contact_persons', [{}]);
  49 + }
  50 + }
  51 + return (
  52 + <>
  53 + <ModalForm
  54 + width={900}
  55 + open
  56 + title="客户信息"
  57 + form={form}
  58 + autoFocusFirstInput
  59 + modalProps={{
  60 + okText: '保存',
  61 + cancelText: '取消',
  62 + destroyOnClose: true,
  63 + onCancel: () => {
  64 + setVisible(false);
  65 + },
  66 + }}
  67 + onFinish={async (values) => {
  68 + //查询客户自定义字段,课题组
  69 + let custom_field_umber = await getTeacherCustomFieldNumber();
  70 +
  71 + if (custom_field_umber) {
  72 + let customFieldObj = {};
  73 + customFieldObj[custom_field_umber] = values.teacherName;
  74 + values.custom_field = customFieldObj;
  75 + }
  76 + let customSaveRes = await postKingdeeRepCustomerSave({
  77 + data: values,
  78 + });
  79 + if (customSaveRes) {
  80 + let id_number_map = customSaveRes.id_number_map;
  81 + let ids = customSaveRes.ids;
  82 + if (id_number_map && ids) {
  83 + message.success('保存成功');
  84 + let id = ids[0];
  85 + onClose(id);
  86 + }
  87 + }
  88 + }}
  89 + onOpenChange={setVisible}
  90 + >
  91 + <ProFormText key="key" name="id" label="id" placeholder="id" hidden />
  92 + <ProFormGroup key="group">
  93 + <ProFormText
  94 + name="name"
  95 + width="md"
  96 + label="客户名称"
  97 + initialValue={data}
  98 + placeholder="请输入客户名称"
  99 + rules={[
  100 + {
  101 + required: true,
  102 + pattern: new RegExp('^.+-.+$'),
  103 + message:
  104 + '格式错误,请按照:“单位-名称” 命名,若无单位可写:“无-名称”',
  105 + },
  106 + { required: true, message: '客户名称必填' },
  107 + ]}
  108 + />
  109 + <ProFormText
  110 + name="teacherName"
  111 + width="md"
  112 + label="课题组老师"
  113 + placeholder="请输入课题组老师"
  114 + rules={[
  115 + { required: true, message: '课题组老师必填,若没有请填“无”' },
  116 + ]}
  117 + />
  118 + </ProFormGroup>
  119 +
  120 + <ProFormList
  121 + creatorButtonProps={{ disabled: false }}
  122 + name="contact_persons"
  123 + label="联系人信息"
  124 + actionGuard={{
  125 + beforeRemoveRow: async () => {
  126 + return new Promise((resolve) => {
  127 + let contactPersons = form.getFieldValue('contact_persons');
  128 + if (contactPersons.length === 1) {
  129 + message.error('至少要有一个联系人');
  130 + resolve(false);
  131 + return;
  132 + }
  133 + resolve(true);
  134 + });
  135 + },
  136 + }}
  137 + deleteIconProps={{
  138 + Icon: CloseCircleOutlined,
  139 + tooltipText: '不需要这行了',
  140 + }}
  141 + >
  142 + <ProFormGroup key="group">
  143 + {[
  144 + <ProFormText
  145 + key="key"
  146 + name="id"
  147 + label="id"
  148 + placeholder="id"
  149 + hidden
  150 + />,
  151 + <ProFormText
  152 + key="key"
  153 + name="contact_person"
  154 + label="收货人姓名"
  155 + placeholder="联系人姓名"
  156 + rules={[{ required: true, message: '收货人姓名必填' }]}
  157 + />,
  158 + <ProFormText
  159 + key="key"
  160 + name="mobile"
  161 + label="联系方式"
  162 + placeholder="联系方式"
  163 + rules={[{ required: true, message: '联系方式必填' }]}
  164 + />,
  165 + <ProFormText
  166 + key="key"
  167 + name="contact_address"
  168 + label="收货地址"
  169 + width="md"
  170 + placeholder="请输入收货地址"
  171 + rules={[{ required: true, message: '收货地址必填' }]}
  172 + />,
  173 + ]}
  174 + </ProFormGroup>
  175 + </ProFormList>
  176 + </ModalForm>
  177 + </>
  178 + );
  179 +};
... ...
src/pages/Order/components/OrderDrawer copy.tsx 0 → 100644
  1 +import { RESPONSE_CODE } from '@/constants/enum';
  2 +import {
  3 + postKingdeeRepCustomer,
  4 + postKingdeeRepCustomerDetail,
  5 + postKingdeeRepMaterial,
  6 + postKingdeeRepMaterialUnit,
  7 + postKingdeeRepMeasureUnit,
  8 + postServiceOrderAddOrder,
  9 + postServiceOrderQuerySalesCode,
  10 + postServiceOrderUpdateOrder,
  11 +} from '@/services';
  12 +import {
  13 + enumToSelect,
  14 + getAliYunOSSFileNameFromUrl,
  15 + getUserInfo,
  16 +} from '@/utils';
  17 +import { getTeacherCustomFieldNumber } from '@/utils/kingdee';
  18 +import {
  19 + DrawerForm,
  20 + FormListActionType,
  21 + ProCard,
  22 + ProFormDateTimePicker,
  23 + ProFormDigit,
  24 + ProFormList,
  25 + ProFormSelect,
  26 + ProFormText,
  27 + ProFormTextArea,
  28 + ProFormUploadDragger,
  29 +} from '@ant-design/pro-components';
  30 +import { Button, Form, message } from 'antd';
  31 +import { cloneDeep } from 'lodash';
  32 +import { useEffect, useRef, useState } from 'react';
  33 +import {
  34 + INVOCING_STATUS_OPTIONS,
  35 + INVOCING_STATUS_OPTIONS_OLD,
  36 + PAYMENT_CHANNEL_OPTIONS,
  37 + PAYMENT_METHOD_OPTIONS,
  38 + PRODUCT_BELONG_DEPARTMENT_OPTIONS,
  39 +} from '../constant';
  40 +import KingdeeCustomerModal from './KingdeeCustomerModal';
  41 +
  42 +export default ({ onClose, data, subOrders, orderOptType }) => {
  43 + const [invoicingStatus, setInvoicingStatus] = useState('');
  44 + const [salesCodeOptions, setSalesCodeOptions] = useState([]);
  45 + const [customer, setCustomer] = useState({});
  46 + const [kingdeeCstomerModalVisible, setKingdeeCstomerModalVisible] =
  47 + useState(false);
  48 + const [
  49 + productParametersDisabledFlagList,
  50 + setProductParametersDisabledFlagList,
  51 + ] = useState([]);
  52 + // const [productInvStockOptionsList, setProductInvStockOptionsList] = useState(
  53 + // [],
  54 + // ); //商品的仓库选项
  55 + const [productUnitOptionsList, setProductUnitOptionsList] = useState([]); //商品的单位选项
  56 + const [productCustomerContactOptions, setProductCustomerContactOptions] =
  57 + useState([]); //客户的收货人选项
  58 + const [form] = Form.useForm<{
  59 + salesCode: '';
  60 + customerName: '';
  61 + customerContactNumber: '';
  62 + institution: '';
  63 + institutionContactName: '';
  64 + customerShippingAddress: '';
  65 + totalPayment: '';
  66 + paymentChannel: '';
  67 + paymentMethod: '';
  68 + productBelongBusiness: '';
  69 + invoicingStatus: '';
  70 + invoiceIdentificationNumber: '';
  71 + invoicingTime: '';
  72 + bank: '';
  73 + bankAccountNumber: '';
  74 + deleteSubOrderLists: [];
  75 + notes: '';
  76 + list: [
  77 + {
  78 + productCode: '';
  79 + productName: '';
  80 + quantity: '';
  81 + productPrice: '';
  82 + parameters: '';
  83 + subOrderPayment: '';
  84 + unit: '';
  85 + serialNumber: '';
  86 + notes: '';
  87 + },
  88 + ];
  89 + }>();
  90 +
  91 + let originSubOrders = cloneDeep(subOrders);
  92 + /**
  93 + * 获取当前的操作类型boolean值
  94 + * @param type 操作类型,如果与当前匹配返回true
  95 + */
  96 + function optType(type: string) {
  97 + return orderOptType === type;
  98 + }
  99 +
  100 + /**
  101 + *
  102 + * @returns 获取开票选项
  103 + */
  104 + function getInvoicingSelect() {
  105 + if (optType('edit')) {
  106 + return enumToSelect(INVOCING_STATUS_OPTIONS_OLD);
  107 + }
  108 + return enumToSelect(INVOCING_STATUS_OPTIONS);
  109 + }
  110 +
  111 + const fileList: any = [];
  112 +
  113 + const getSalesCodeOptions = async () => {
  114 + const res = await postServiceOrderQuerySalesCode();
  115 + let options = res.data?.map((item) => {
  116 + return {
  117 + label: item.userName,
  118 + value: item.userName,
  119 + number: item.number,
  120 + };
  121 + });
  122 + setSalesCodeOptions(options);
  123 +
  124 + if (optType('copy') || optType('edit')) {
  125 + let includeFlag = false;
  126 + //销售代码校验,如果是旧的销售代码,则提示并清空
  127 + for (let option of options) {
  128 + if (option.value === data.salesCode) {
  129 + includeFlag = true;
  130 + }
  131 + }
  132 + if (!includeFlag) {
  133 + form.resetFields(['salesCode']);
  134 + message.warning('检测到销售代码为旧的,已清空,请重新选择');
  135 + }
  136 + }
  137 + };
  138 +
  139 + //复制的时候,如果是不需要开票,要把开票信息清空
  140 + if (optType('copy') && data.invoicingStatus === 'UN_INVOICE') {
  141 + data.invoiceIdentificationNumber = undefined;
  142 + }
  143 +
  144 + if (subOrders !== undefined && subOrders.length > 0) {
  145 + data.list = subOrders;
  146 + }
  147 +
  148 + const actionRef = useRef<
  149 + FormListActionType<{
  150 + name: string;
  151 + }>
  152 + >();
  153 +
  154 + useEffect(() => {
  155 + form.setFieldsValue({ ...data });
  156 + //如果是新建,需要清空list
  157 + if (optType('add')) {
  158 + form.resetFields(['list']);
  159 + }
  160 + }, [data]);
  161 +
  162 + /**
  163 + * 选择客户后自动为收货人Select添加选项,填充课题组和单位信息
  164 + * @param option 客户选项
  165 + */
  166 + async function autoFillCustomerContactSelectOptions(customerId: any) {
  167 + //查询单位详细信息
  168 + let res = await postKingdeeRepCustomerDetail({
  169 + data: {
  170 + id: customerId,
  171 + },
  172 + });
  173 +
  174 + //erp客户名称
  175 + form.setFieldValue('erpCustomerName', res?.name);
  176 +
  177 + //重新设置当前option
  178 + form.setFieldValue('erpCustomerId', {
  179 + label: res?.name,
  180 + value: res?.id,
  181 + id: res?.id,
  182 + });
  183 +
  184 + //查询客户自定义字段,课题组
  185 + let entity_number = await getTeacherCustomFieldNumber();
  186 +
  187 + //在单位详细信息中拿到自定义字段的值
  188 + let customField = res?.custom_field;
  189 + if (customField) {
  190 + let teacherName = customField[entity_number];
  191 + //填充到课题组老师表单字段中
  192 + form.setFieldValue('institutionContactName', teacherName);
  193 + }
  194 +
  195 + //单位名称,从客户名称中获取,客户名称规则<单位名称>-<联系人名称和电话>
  196 + let namePortions = res?.name?.split('-');
  197 + if (namePortions && namePortions.length >= 2) {
  198 + form.setFieldValue('institution', namePortions[0]);
  199 + }
  200 +
  201 + //如果原来的收货信息没有包含在这次查询出来的收货人选项中,那么清除原来的收货人信息
  202 + let existFlag = false;
  203 +
  204 + //填充收货人选项
  205 + let newProductCustomerContactOptions = res?.bomentity?.map((item) => {
  206 + let address =
  207 + item.contact_person + ',' + item.mobile + ',' + item.contact_address;
  208 + if (address === data.contactAddress) {
  209 + existFlag = true;
  210 + }
  211 + return { ...item, label: address, value: address };
  212 + });
  213 +
  214 + setProductCustomerContactOptions(newProductCustomerContactOptions);
  215 +
  216 + if (!existFlag) {
  217 + //清空原来的收货人信息
  218 + form.setFieldValue('customerShippingAddress', undefined);
  219 + form.setFieldValue('customerContactNumber', undefined);
  220 + form.setFieldValue('customerName', undefined);
  221 + form.setFieldValue('erpCustomerAddress', undefined);
  222 + }
  223 + }
  224 +
  225 + /**
  226 + * 回显金蝶信息
  227 + */
  228 + async function showKindeeInfo() {
  229 + //客户信息
  230 + if (data.customerId) {
  231 + //客户回显
  232 + autoFillCustomerContactSelectOptions(data.customerId);
  233 + }
  234 +
  235 + //商品单位回显
  236 + let list = data?.subOrderInformationLists;
  237 + if (list) {
  238 + let newProductUnitOptionsList = [...productUnitOptionsList];
  239 + for (let i = 0; i < list.length; i++) {
  240 + newProductUnitOptionsList[i] = [
  241 + { label: list[i].unit, value: list[i].unitId },
  242 + ];
  243 + }
  244 + setProductUnitOptionsList(newProductUnitOptionsList);
  245 + }
  246 + }
  247 +
  248 + /**
  249 + *
  250 + * @param option 商品名称所对应的商品数据
  251 + * @param currentRowData list中当前行的数据
  252 + */
  253 + async function autoFillProductInfo(
  254 + option: any,
  255 + currentRowData: any,
  256 + index: any,
  257 + ) {
  258 + let newProductParametersDisabledFlagList = [
  259 + ...productParametersDisabledFlagList,
  260 + ];
  261 + let newProductUnitOptionsList = [...productUnitOptionsList];
  262 + newProductUnitOptionsList[index] = [];
  263 +
  264 + //是新增商品
  265 + if (option.type === 'add') {
  266 + //商品参数开放权限可以编辑
  267 + newProductParametersDisabledFlagList[index] = false;
  268 +
  269 + //清空商品信息
  270 + let copyList = form.getFieldValue('list');
  271 + let currentData = copyList[index];
  272 + currentData.productCode = undefined;
  273 + currentData.parameters = undefined;
  274 + currentData.unit = undefined;
  275 + currentData.subOrderPayment = undefined;
  276 + currentData.quantity = undefined;
  277 + currentData.notes = undefined;
  278 + currentData.productPrice = undefined;
  279 + form.setFieldValue('list', copyList);
  280 +
  281 + //查询计量单价列表
  282 + let res = await postKingdeeRepMeasureUnit({ data: {} });
  283 + if (res && res?.rows) {
  284 + for (let row of res?.rows) {
  285 + newProductUnitOptionsList[index].push({
  286 + label: row.name,
  287 + value: row.id,
  288 + });
  289 + }
  290 + }
  291 + } else {
  292 + //选择的是已有的商品,进行内容自动填充
  293 + let copyList = form.getFieldValue('list');
  294 + let currentData = copyList[index];
  295 + currentData.productCode = option?.number;
  296 + currentData.parameters = option?.model;
  297 + currentData.unit = option?.base_unit_name;
  298 +
  299 + //商品id
  300 + currentData.materialId = option?.id;
  301 +
  302 + //单位
  303 + currentData.unit = option.base_unit_name;
  304 + currentData.unitId = option.base_unit_id;
  305 +
  306 + form.setFieldValue('list', copyList);
  307 +
  308 + //商品所在的仓库选项填充
  309 + // let res = await postKingdeeRepMaterialStock({
  310 + // data: {
  311 + // material_id: option.id,
  312 + // },
  313 + // });
  314 + // let newProductInvStockOptionsList = [...productInvStockOptionsList];
  315 + // newProductInvStockOptionsList[index] = res?.rows?.map((item) => {
  316 + // return { label: item.inv_stock, value: item.inv_stock_id };
  317 + // });
  318 + // setProductInvStockOptionsList(newProductInvStockOptionsList);
  319 +
  320 + //商品单位填充,查询商品单位列表
  321 + let res = await postKingdeeRepMaterialUnit({
  322 + data: { material_id: option.id },
  323 + });
  324 + if (res && res.rows) {
  325 + for (let row of res.rows) {
  326 + newProductUnitOptionsList[index].push({
  327 + label: row.unit_name,
  328 + value: row.unit_id,
  329 + });
  330 + }
  331 + }
  332 + //商品参数不允许编辑
  333 + newProductParametersDisabledFlagList[index] = true;
  334 + }
  335 +
  336 + setProductParametersDisabledFlagList(newProductParametersDisabledFlagList);
  337 + setProductUnitOptionsList(newProductUnitOptionsList);
  338 + }
  339 +
  340 + /**
  341 + * 选择收货人后自动填充信息
  342 + * @param option 收货人信息
  343 + */
  344 + async function autoFillCustomerInfo(option: any) {
  345 + form.setFieldValue('customerShippingAddress', option.contact_address);
  346 + form.setFieldValue('customerContactNumber', option.mobile);
  347 + form.setFieldValue('customerName', option.contact_person);
  348 +
  349 + //erp收货地址:需要与客户联系人中的地址一样:姓名,手机号,地址
  350 + form.setFieldValue('contactAddress', option.value);
  351 + }
  352 +
  353 + /**
  354 + * 填充销售代表的信息
  355 + * @param option
  356 + */
  357 + function autoFillSalesInfo(option: any) {
  358 + console.log(option);
  359 + //销售代表对应职员编码填充
  360 + form.setFieldValue('empNumber', option.number);
  361 + }
  362 +
  363 + /**
  364 + * 选择商品单位后自动填充
  365 + * @param option
  366 + * @param index
  367 + */
  368 + function autoFillUnit(option: any, index: any) {
  369 + let copyList = form.getFieldValue('list');
  370 + let currentData = copyList[index];
  371 + currentData.unit = option?.label;
  372 + form.setFieldValue('list', copyList);
  373 + }
  374 +
  375 + /**
  376 + * 计算子订单金额
  377 + * @param listMeta 当前商品信息
  378 + */
  379 + function computeSubOrderPayment(listMeta: any) {
  380 + let quantity = listMeta?.record?.quantity;
  381 + let productPrice = listMeta?.record?.productPrice;
  382 + quantity = quantity === '' || quantity === undefined ? 0 : quantity;
  383 + productPrice =
  384 + productPrice === '' || productPrice === undefined ? 0 : productPrice;
  385 +
  386 + listMeta.subOrderPayment = quantity * productPrice;
  387 + let list = form.getFieldValue('list');
  388 + list[listMeta?.index].subOrderPayment = quantity * productPrice;
  389 + form.setFieldValue('list', list);
  390 + }
  391 +
  392 + /**
  393 + * 计算支付总额
  394 + */
  395 + function computeTotalPayment() {
  396 + let list = form.getFieldValue('list');
  397 + let totalPayment = 0;
  398 + list?.forEach((subOrder: any) => {
  399 + let subOrderPayment = subOrder?.subOrderPayment;
  400 + if (subOrderPayment === '' || subOrderPayment === undefined) {
  401 + totalPayment += 0;
  402 + } else {
  403 + totalPayment += subOrderPayment;
  404 + }
  405 + });
  406 + form.setFieldValue('totalPayment', totalPayment);
  407 + }
  408 +
  409 + useEffect(() => {
  410 + getSalesCodeOptions();
  411 + showKindeeInfo();
  412 + }, []);
  413 +
  414 + useEffect(() => {
  415 + // 在组件挂载或数据变化时,更新组件状态
  416 + if (data) {
  417 + setInvoicingStatus(data.invoicingStatus);
  418 + }
  419 + }, [data]);
  420 +
  421 + // let mainInfoDisbled = optType('edit');
  422 + if (optType('edit') || optType('copy')) {
  423 + //如果是复制,需要开票,不回显是否需要开票字段
  424 + if (optType('copy')) {
  425 + if (data.invoicingStatus === 'INVOICED') {
  426 + data.invoicingStatus = undefined;
  427 + }
  428 + }
  429 + //订单修改和新增的子订单列表命名是list
  430 + data.list = data.subOrderInformationLists;
  431 + //主订单事业部默认显示子订单第一条的事业部
  432 + data.productBelongBusiness = data.list[0].productBelongBusiness;
  433 + data.paymentMethod = data.list[0].paymentMethod;
  434 + data.paymentChannel = data.list[0].paymentChannel;
  435 + data.invoicingStatus = data.list[0].invoicingStatus;
  436 +
  437 + data.list = data.list?.map((item) => {
  438 + item.filePaths = item.listAnnex?.map((path) => {
  439 + let i = 0;
  440 + return {
  441 + uid: i++,
  442 + name: getAliYunOSSFileNameFromUrl(path),
  443 + status: 'uploaded',
  444 + url: path,
  445 + response: { data: [path] },
  446 + };
  447 + });
  448 + return item;
  449 + });
  450 + }
  451 +
  452 + return (
  453 + <>
  454 + <DrawerForm<{
  455 + deleteSubOrderLists: any;
  456 + name: string;
  457 + company: string;
  458 + }>
  459 + open
  460 + width="35%"
  461 + title={optType('add') || optType('copy') ? '新建订单' : '修改订单'}
  462 + resize={{
  463 + onResize() {
  464 + console.log('resize!');
  465 + },
  466 + maxWidth: window.innerWidth * 0.8,
  467 + minWidth: 400,
  468 + }}
  469 + // layout="horizontal"
  470 + // labelCol={{ span: 8 }}
  471 + form={form}
  472 + autoFocusFirstInput
  473 + drawerProps={{
  474 + destroyOnClose: true,
  475 + maskClosable: false,
  476 + }}
  477 + submitTimeout={2000}
  478 + onFinish={async (values) => {
  479 + let res = {};
  480 + //附件处理
  481 + let list = values.list;
  482 + // console.log(list);
  483 + list = list.map((item) => {
  484 + item.filePaths = item.filePaths?.map((file) => {
  485 + console.log(file);
  486 + return { url: file.response.data[0] };
  487 + });
  488 + return item;
  489 + });
  490 +
  491 + values.list = list;
  492 + values.institution = values.institution?.trim();
  493 + values.institutionContactName = values.institutionContactName?.trim();
  494 +
  495 + if (typeof values.erpCustomerId !== 'string') {
  496 + values.erpCustomerId = values.erpCustomerId?.id;
  497 + }
  498 +
  499 + if (optType('add') || optType('copy')) {
  500 + res = await postServiceOrderAddOrder({ data: values });
  501 + } else {
  502 + //计算已删除的子订单id
  503 + const originIds = originSubOrders.map((item) => {
  504 + return item.id;
  505 + });
  506 + const curIds = form.getFieldValue('list')?.map((item) => {
  507 + return item.id;
  508 + });
  509 + let diff = originIds.filter((item) => !curIds.includes(item));
  510 + values.deleteSubOrderLists = diff;
  511 + res = await postServiceOrderUpdateOrder({ data: values });
  512 + }
  513 +
  514 + if (res.result === RESPONSE_CODE.SUCCESS) {
  515 + message.success(res.message);
  516 + // 不返回不会关闭弹框
  517 + onClose(true);
  518 + return true;
  519 + }
  520 + }}
  521 + onOpenChange={(val) => {
  522 + return !val && onClose();
  523 + }}
  524 + >
  525 + <h2>订单基本信息</h2>
  526 + <ProFormText
  527 + key="id"
  528 + name="id"
  529 + width="lg"
  530 + disabled
  531 + label="id"
  532 + placeholder="id"
  533 + hidden
  534 + />
  535 +
  536 + <ProFormText
  537 + key="empNumber"
  538 + name="empNumber"
  539 + width="lg"
  540 + label="销售职员编码"
  541 + placeholder="销售职员编码"
  542 + hidden
  543 + />
  544 +
  545 + <ProFormSelect
  546 + name="salesCode"
  547 + key="salesCode"
  548 + width="lg"
  549 + showSearch
  550 + label="销售代表"
  551 + placeholder="请输入销售代表"
  552 + rules={[{ required: true, message: '销售代表必填' }]}
  553 + options={salesCodeOptions}
  554 + onChange={(_, option) => {
  555 + autoFillSalesInfo(option);
  556 + }}
  557 + // disabled={mainInfoDisbled}
  558 + />
  559 + <ProFormText
  560 + key="erpCustomerName"
  561 + name="erpCustomerName"
  562 + hidden
  563 + ></ProFormText>
  564 +
  565 + <ProFormText
  566 + key="contactAddress"
  567 + name="contactAddress"
  568 + hidden
  569 + ></ProFormText>
  570 +
  571 + <ProFormSelect
  572 + name="erpCustomerId"
  573 + key="erpCustomerId"
  574 + width="lg"
  575 + showSearch
  576 + label={
  577 + <>
  578 + <span>客户</span>
  579 + <span
  580 + className="pl-2 text-xs text-[#1677ff] cursor-pointer"
  581 + onClick={() => {
  582 + let customerId = form.getFieldValue('erpCustomerId');
  583 + if (typeof customerId === 'string') {
  584 + setCustomer({ ...customer, id: customerId });
  585 + } else {
  586 + setCustomer({ ...customer, id: customerId.id });
  587 + }
  588 + setKingdeeCstomerModalVisible(true);
  589 + }}
  590 + >
  591 + 编辑客户信息
  592 + </span>
  593 + </>
  594 + }
  595 + placeholder="请选择客户"
  596 + rules={[{ required: true, message: '客户必填' }]}
  597 + onChange={(_, option) => {
  598 + //新增客户
  599 + if (option.type === 'add') {
  600 + setCustomer({ name: option.name });
  601 + setKingdeeCstomerModalVisible(true);
  602 + return;
  603 + }
  604 + autoFillCustomerContactSelectOptions(option.id);
  605 + }}
  606 + initialValue={{
  607 + label: data?.erpCustomerName,
  608 + value: data?.customerId,
  609 + id: data?.customerId,
  610 + }}
  611 + fieldProps={{
  612 + optionItemRender(item) {
  613 + if (item.type === 'add') {
  614 + return (
  615 + <div title={item.name + '(新增客户)'}>
  616 + <span style={{ color: '#333333' }}>{item.name}</span>
  617 + {' | '}
  618 + <span style={{ color: 'orange' }}>自定义</span>
  619 + </div>
  620 + );
  621 + }
  622 + return (
  623 + <div
  624 + title={
  625 + item.name +
  626 + ' | ' +
  627 + item.customerContactNumber +
  628 + ' | ' +
  629 + (item.customerShippingAddress === undefined
  630 + ? '无地址'
  631 + : item.customerShippingAddress) +
  632 + ' | ' +
  633 + item.institutionContactName +
  634 + ' | ' +
  635 + item.institution
  636 + }
  637 + >
  638 + <span style={{ color: '#333333' }}>{item.name}</span>
  639 + </div>
  640 + );
  641 + },
  642 + }}
  643 + debounceTime={1000}
  644 + request={async (value, {}) => {
  645 + const keywords = value.keyWords;
  646 + const res = await postKingdeeRepCustomer({
  647 + data: { search: keywords },
  648 + });
  649 + let options = res?.rows?.map((c: any) => {
  650 + return {
  651 + ...c,
  652 + label: c.name,
  653 + value: c.id,
  654 + key: c.id,
  655 + };
  656 + });
  657 +
  658 + //第一个商品默认为要新增客户
  659 + if (keywords.trim() !== '') {
  660 + options.unshift({
  661 + name: keywords,
  662 + type: 'add',
  663 + label: keywords,
  664 + value: 3.1415926,
  665 + key: keywords,
  666 + });
  667 + }
  668 + return options;
  669 + }}
  670 + />
  671 + <ProFormSelect
  672 + key="customerName"
  673 + label="收货人"
  674 + width="lg"
  675 + showSearch
  676 + name="customerName"
  677 + placeholder="请选择收货人"
  678 + rules={[{ required: true, message: '收货人必填' }]}
  679 + onChange={(_, option) => {
  680 + autoFillCustomerInfo(option);
  681 + }}
  682 + initialValue={data.contactAddress}
  683 + options={productCustomerContactOptions}
  684 + />
  685 + <ProFormText
  686 + width="lg"
  687 + key="customerContactNumber"
  688 + name="customerContactNumber"
  689 + label="联系方式"
  690 + placeholder="请输入联系方式"
  691 + rules={[{ required: true, message: '联系方式必填' }]}
  692 + disabled
  693 + />
  694 + <ProFormText
  695 + width="lg"
  696 + key="institution"
  697 + name="institution"
  698 + label="单位"
  699 + placeholder="请输入单位"
  700 + rules={[{ required: true, message: '单位必填' }]}
  701 + disabled
  702 + />
  703 + <ProFormText
  704 + width="lg"
  705 + key="institutionContactName"
  706 + name="institutionContactName"
  707 + label="课题组"
  708 + placeholder="请输入课题组"
  709 + rules={[{ required: true, message: '课题组必填' }]}
  710 + disabled
  711 + />
  712 + <ProFormTextArea
  713 + width="lg"
  714 + key="customerShippingAddress"
  715 + name="customerShippingAddress"
  716 + label="收货地址"
  717 + placeholder="请输入收货地址"
  718 + rules={[{ required: true, message: '收货地址必填' }]}
  719 + disabled
  720 + />
  721 + <div id="total-payment">
  722 + <ProFormDigit
  723 + name="totalPayment"
  724 + width="lg"
  725 + key="totalPayment"
  726 + label="支付总额(¥)"
  727 + rules={[{ required: true, message: '支付总额必填' }]}
  728 + tooltip="点击计算,合计所有子订单金额"
  729 + fieldProps={{
  730 + addonAfter: (
  731 + <Button
  732 + className="rounded-l-none"
  733 + type="primary"
  734 + onClick={computeTotalPayment}
  735 + >
  736 + 计算
  737 + </Button>
  738 + ),
  739 + }}
  740 + // disabled={mainInfoDisbled}
  741 + />
  742 + </div>
  743 +
  744 + <ProFormSelect
  745 + placeholder="请输入支付渠道"
  746 + name="paymentChannel"
  747 + width="lg"
  748 + key="paymentChannel"
  749 + label="支付渠道"
  750 + options={enumToSelect(PAYMENT_CHANNEL_OPTIONS)}
  751 + rules={[{ required: true, message: '支付渠道必填' }]}
  752 + // disabled={mainInfoDisbled}
  753 + />
  754 + <ProFormSelect
  755 + placeholder="请输入支付方式"
  756 + name="paymentMethod"
  757 + width="lg"
  758 + key="paymentMethod"
  759 + label="支付方式"
  760 + options={enumToSelect(PAYMENT_METHOD_OPTIONS)}
  761 + rules={[{ required: true, message: '支付方式必填' }]}
  762 + // disabled={mainInfoDisbled}
  763 + />
  764 + <ProFormSelect
  765 + placeholder="选择是否需要开票"
  766 + name="invoicingStatus"
  767 + width="lg"
  768 + key="invoicingStatus"
  769 + label="是否需要开票"
  770 + options={getInvoicingSelect()}
  771 + // disabled={mainInfoDisbled}
  772 + onChange={(_, option) => {
  773 + setInvoicingStatus(option.value);
  774 + if (option.value === 'UN_INVOICE') {
  775 + form.setFieldValue('invoiceIdentificationNumber', undefined);
  776 + form.setFieldValue('bank', undefined);
  777 + form.setFieldValue('bankAccountNumber', undefined);
  778 + }
  779 + }}
  780 + rules={[{ required: true, message: '是否需要开票必填' }]}
  781 + />
  782 + <ProFormText
  783 + width="lg"
  784 + name="invoiceIdentificationNumber"
  785 + label="开票信息"
  786 + key="invoiceIdentificationNumber"
  787 + // disabled={mainInfoDisbled}
  788 + hidden={invoicingStatus === 'UN_INVOICE'}
  789 + placeholder="请输入开票信息"
  790 + rules={[
  791 + {
  792 + required: invoicingStatus === 'UN_INVOICE' ? false : true,
  793 + message: '开票信息必填',
  794 + },
  795 + ]}
  796 + />
  797 +
  798 + {getUserInfo().roleSmallVO?.code === 'admin' ? (
  799 + <ProFormDateTimePicker
  800 + width="lg"
  801 + key="invoicingTime"
  802 + name="invoicingTime"
  803 + // disabled={mainInfoDisbled}
  804 + hidden={invoicingStatus === 'UN_INVOICE'}
  805 + label="开票时间"
  806 + placeholder="请输入开票时间"
  807 + />
  808 + ) : (
  809 + ''
  810 + )}
  811 + <ProFormText
  812 + width="lg"
  813 + name="bank"
  814 + key="bank"
  815 + label="开户银行"
  816 + // disabled={mainInfoDisbled}
  817 + hidden={invoicingStatus === 'UN_INVOICE'}
  818 + placeholder="请输入开户银行"
  819 + />
  820 + <ProFormText
  821 + width="lg"
  822 + key="bankAccountNumber"
  823 + name="bankAccountNumber"
  824 + hidden={invoicingStatus === 'UN_INVOICE'}
  825 + label="银行账号"
  826 + // disabled={mainInfoDisbled}
  827 + placeholder="请输入银行账号"
  828 + />
  829 + <ProFormTextArea
  830 + width="lg"
  831 + name="notes"
  832 + label="备注"
  833 + key="notes"
  834 + // disabled={mainInfoDisbled}
  835 + placeholder="请输入备注"
  836 + rules={[
  837 + {
  838 + max: 120, // 最大长度为120个字符
  839 + message: '备注不能超过120个字符',
  840 + },
  841 + ]}
  842 + />
  843 +
  844 + <h2>商品信息</h2>
  845 + <ProFormList
  846 + creatorButtonProps={{ disabled: false }}
  847 + name="list"
  848 + label=""
  849 + copyIconProps={false} //复制按钮不显示
  850 + initialValue={[
  851 + {
  852 + productCode: '',
  853 + productName: '',
  854 + quantity: '',
  855 + productPrice: '',
  856 + parameters: '',
  857 + subOrderPayment: '',
  858 + },
  859 + ]}
  860 + actionGuard={{
  861 + beforeRemoveRow: async (index) => {
  862 + return new Promise((resolve) => {
  863 + if (index === 0) {
  864 + message.error('第一行数据不能删除');
  865 + resolve(false);
  866 + return;
  867 + }
  868 + resolve(true);
  869 + });
  870 + },
  871 + }}
  872 + itemRender={(doms, listMeta) => {
  873 + if (optType('edit')) {
  874 + let i = 0;
  875 + let defaultFileList = listMeta.record?.listAnnex?.map((annex) => {
  876 + return {
  877 + uid: i++,
  878 + name: annex,
  879 + status: 'uploaded',
  880 + url: annex,
  881 + response: { data: [annex] },
  882 + };
  883 + });
  884 + fileList[listMeta.index] = defaultFileList;
  885 + }
  886 + let itemFileList = fileList[listMeta.index];
  887 + return (
  888 + <ProCard
  889 + bordered
  890 + extra={doms.action}
  891 + title={'商品' + (listMeta.index + 1)}
  892 + style={{
  893 + marginBlockEnd: 8,
  894 + }}
  895 + >
  896 + {[
  897 + <ProFormText
  898 + key={'material' + listMeta.index}
  899 + name="materialId"
  900 + hidden
  901 + ></ProFormText>,
  902 + <ProFormSelect
  903 + key="key"
  904 + label="商品名称"
  905 + width="lg"
  906 + showSearch
  907 + name="productName"
  908 + // options={options}
  909 + placeholder="请搜索商品"
  910 + rules={[{ required: true, message: '商品名称必填' }]}
  911 + onChange={(_, option) => {
  912 + autoFillProductInfo(option, listMeta, listMeta.index);
  913 + }}
  914 + initialValue={{
  915 + label: listMeta?.record?.productName,
  916 + value: listMeta?.record?.materialId,
  917 + }}
  918 + fieldProps={{
  919 + optionItemRender(item) {
  920 + if (item.type === 'add') {
  921 + return (
  922 + <div title={item.name + '(新增商品信息)'}>
  923 + <span style={{ color: '#333333' }}>
  924 + {item.label}
  925 + </span>
  926 + {' | '}
  927 + <span style={{ color: 'orange' }}>新增商品</span>
  928 + </div>
  929 + );
  930 + }
  931 + return (
  932 + <div
  933 + title={
  934 + item.label +
  935 + ' | ' +
  936 + (item.model === undefined
  937 + ? '无参数'
  938 + : item.model) +
  939 + ' | ' +
  940 + item.base_unit_name
  941 + }
  942 + >
  943 + <span style={{ color: '#333333' }}>
  944 + {item.label}
  945 + </span>
  946 + {' | '}
  947 + <span style={{ color: '#339999' }}>
  948 + {item.model === undefined ? '无参数' : item.model}
  949 + </span>
  950 + {' | '}
  951 + <span style={{ color: '#666666' }}>
  952 + {item.base_unit_name === undefined
  953 + ? '无单位'
  954 + : item.base_unit_name}
  955 + </span>
  956 + </div>
  957 + );
  958 + },
  959 + }}
  960 + debounceTime={1000}
  961 + request={async (value) => {
  962 + const keywords = value.keyWords;
  963 + const res = await postKingdeeRepMaterial({
  964 + data: { search: keywords },
  965 + });
  966 + let options = res?.rows?.map((p: any) => {
  967 + return {
  968 + ...p,
  969 + label: p.name,
  970 + value: p.id + '|' + p.name,
  971 + key: p.id,
  972 + };
  973 + });
  974 +
  975 + //第一个商品默认为要新增的商品
  976 + if (keywords.trim() !== '') {
  977 + options.unshift({
  978 + productName: keywords,
  979 + type: 'add',
  980 + label: keywords,
  981 + value: 13 + '|' + keywords,
  982 + key: keywords,
  983 + });
  984 + }
  985 + return options;
  986 + }}
  987 + />,
  988 + <ProFormText
  989 + key={'productCode' + listMeta.index}
  990 + width="lg"
  991 + name="productCode"
  992 + disabled
  993 + label={
  994 + <>
  995 + <span>商品编码</span>
  996 + <span className="pl-2 text-xs text-gray-400">
  997 + 新增商品时,商品编码由系统自动生成
  998 + </span>
  999 + </>
  1000 + }
  1001 + placeholder="商品编码"
  1002 + />,
  1003 + // <ProFormSelect
  1004 + // key="inv_stock"
  1005 + // placeholder="请选择仓库"
  1006 + // name="invStockId"
  1007 + // width="lg"
  1008 + // label="仓库"
  1009 + // options={productInvStockOptionsList[listMeta.index]}
  1010 + // />,
  1011 + <ProFormText
  1012 + key={'parameters' + listMeta.index}
  1013 + width="lg"
  1014 + name="parameters"
  1015 + label="商品参数"
  1016 + placeholder="请输入商品参数"
  1017 + rules={[{ required: true, message: '商品参数必填' }]}
  1018 + disabled={
  1019 + productParametersDisabledFlagList[listMeta.index] !==
  1020 + false
  1021 + }
  1022 + />,
  1023 + <ProFormDigit
  1024 + key={'quantity' + listMeta.index}
  1025 + width="lg"
  1026 + name="quantity"
  1027 + label="商品数量"
  1028 + fieldProps={{
  1029 + onChange: (value) => {
  1030 + listMeta.record.quantity = value;
  1031 + computeSubOrderPayment(listMeta);
  1032 + },
  1033 + }}
  1034 + placeholder="请输入商品数量"
  1035 + rules={[{ required: true, message: '商品数量必填' }]}
  1036 + />,
  1037 +
  1038 + <ProFormDigit
  1039 + key={'productPrice' + listMeta.index}
  1040 + width="lg"
  1041 + name="productPrice"
  1042 + label="商品单价"
  1043 + fieldProps={{
  1044 + onChange: (value) => {
  1045 + listMeta.record.productPrice = value;
  1046 + computeSubOrderPayment(listMeta);
  1047 + },
  1048 + }}
  1049 + placeholder="请输入商品单价"
  1050 + rules={[{ required: true, message: '商品单价必填' }]}
  1051 + />,
  1052 +
  1053 + <ProFormSelect
  1054 + key="unitId"
  1055 + placeholder="请选择单位"
  1056 + name="unitId"
  1057 + width="lg"
  1058 + label="单位"
  1059 + showSearch
  1060 + onChange={(_, option) => {
  1061 + autoFillUnit(option, listMeta.index);
  1062 + }}
  1063 + options={productUnitOptionsList[listMeta.index]}
  1064 + rules={[{ required: true, message: '商品单位必填' }]}
  1065 + />,
  1066 + <ProFormText
  1067 + key={'unit' + listMeta.index}
  1068 + width="lg"
  1069 + name="unit"
  1070 + label="商品单位"
  1071 + placeholder="请输入商品单位"
  1072 + rules={[{ required: true, message: '商品单位必填' }]}
  1073 + hidden
  1074 + />,
  1075 +
  1076 + <ProFormDigit
  1077 + width="lg"
  1078 + key={'subOrderPayment' + listMeta.index}
  1079 + name="subOrderPayment"
  1080 + label="子订单金额"
  1081 + placeholder="请输入子订单金额"
  1082 + tooltip="商品数量和单价变化后会自动计算子订单金额"
  1083 + rules={[{ required: true, message: '子订单金额必填' }]}
  1084 + />,
  1085 + <ProFormSelect
  1086 + key={'productBelongBusiness' + listMeta.index}
  1087 + placeholder="请输入所属事业部"
  1088 + name="productBelongBusiness"
  1089 + width="lg"
  1090 + label="所属事业部"
  1091 + options={enumToSelect(PRODUCT_BELONG_DEPARTMENT_OPTIONS)}
  1092 + initialValue={'EXPERIMENTAL_CONSUMABLES'}
  1093 + rules={[{ required: true, message: '所属事业部必填' }]}
  1094 + // disabled={mainInfoDisbled}
  1095 + />,
  1096 + <ProFormTextArea
  1097 + key={'notes' + listMeta.index}
  1098 + width="lg"
  1099 + name="notes"
  1100 + label={
  1101 + <div>
  1102 + <span>备注</span>
  1103 + <span className="pl-2 text-xs text-gray-400">
  1104 + 备注将体现在出货单上,请将需要仓管看见的信息写在备注上,例如需要开收据等信息。
  1105 + </span>
  1106 + </div>
  1107 + }
  1108 + placeholder="请输入备注"
  1109 + rules={[
  1110 + {
  1111 + max: 120, // 最大长度为120个字符
  1112 + message: '备注不能超过120个字符',
  1113 + },
  1114 + ]}
  1115 + />,
  1116 + <>
  1117 + <ProFormUploadDragger
  1118 + key={'filePaths' + listMeta.index}
  1119 + label="附件"
  1120 + name="filePaths"
  1121 + action="/api/service/order/fileProcess"
  1122 + fieldProps={{
  1123 + headers: {
  1124 + Authorization: localStorage.getItem('token'),
  1125 + },
  1126 + itemFileList,
  1127 + }}
  1128 + />
  1129 + </>,
  1130 + ]}
  1131 + </ProCard>
  1132 + );
  1133 + }}
  1134 + actionRef={actionRef}
  1135 + ></ProFormList>
  1136 + </DrawerForm>
  1137 +
  1138 + {kingdeeCstomerModalVisible && (
  1139 + <KingdeeCustomerModal
  1140 + setVisible={setKingdeeCstomerModalVisible}
  1141 + data={customer}
  1142 + onClose={(customerId: any) => {
  1143 + setKingdeeCstomerModalVisible(false);
  1144 + //回显已经新建好的客户
  1145 + autoFillCustomerContactSelectOptions(customerId);
  1146 + }}
  1147 + />
  1148 + )}
  1149 + </>
  1150 + );
  1151 +};
... ...
src/pages/Order/components/OrderDrawer.tsx
1 1 import { RESPONSE_CODE } from '@/constants/enum';
2 2 import {
  3 + postKingdeeRepCustomer,
  4 + postKingdeeRepCustomerDetail,
  5 + postKingdeeRepMaterial,
  6 + postKingdeeRepMaterialUnit,
  7 + postKingdeeRepMeasureUnit,
3 8 postServiceOrderAddOrder,
4 9 postServiceOrderAfterSalesQuerySnapshotOrder,
5 10 postServiceOrderApplyAfterSales,
6   - postServiceOrderQueryCustomerNameInformation,
7   - postServiceOrderQueryProductInformation,
8 11 postServiceOrderQuerySalesCode,
9 12 postServiceOrderUpdateOrder,
10 13 } from '@/services';
... ... @@ -15,6 +18,7 @@ import {
15 18 getAliYunOSSFileNameFromUrl,
16 19 getUserInfo,
17 20 } from '@/utils';
  21 +import { getTeacherCustomFieldNumber } from '@/utils/kingdee';
18 22 import {
19 23 DrawerForm,
20 24 FormListActionType,
... ... @@ -38,12 +42,26 @@ import {
38 42 PAYMENT_METHOD_OPTIONS,
39 43 PRODUCT_BELONG_DEPARTMENT_OPTIONS,
40 44 } from '../constant';
  45 +import KingdeeCustomerModal from './KingdeeCustomerModal';
41 46  
42 47 export default ({ onClose, data, subOrders, orderOptType }) => {
43 48 const [invoicingStatus, setInvoicingStatus] = useState('');
44 49 const [salesCodeOptions, setSalesCodeOptions] = useState([]);
45 50 const [submitBtnLoading, setSubmitBtnLoading] = useState(false);
46 51 const [drawerTitle, setDrawerTitle] = useState('');
  52 + const [customer, setCustomer] = useState({});
  53 + const [kingdeeCstomerModalVisible, setKingdeeCstomerModalVisible] =
  54 + useState(false);
  55 + const [
  56 + productParametersDisabledFlagList,
  57 + setProductParametersDisabledFlagList,
  58 + ] = useState([]);
  59 + // const [productInvStockOptionsList, setProductInvStockOptionsList] = useState(
  60 + // [],
  61 + // ); //商品的仓库选项
  62 + const [productUnitOptionsList, setProductUnitOptionsList] = useState([]); //商品的单位选项
  63 + const [productCustomerContactOptions, setProductCustomerContactOptions] =
  64 + useState([]); //客户的收货人选项
47 65 const [form] = Form.useForm<{
48 66 salesCode: '';
49 67 customerName: '';
... ... @@ -95,7 +113,11 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
95 113 const getSalesCodeOptions = async () => {
96 114 const res = await postServiceOrderQuerySalesCode();
97 115 let options = res.data?.map((item) => {
98   - return { label: item.userName, value: item.userName };
  116 + return {
  117 + label: item.userName,
  118 + value: item.userName,
  119 + number: item.number,
  120 + };
99 121 });
100 122 setSalesCodeOptions(options);
101 123  
... ... @@ -107,6 +129,7 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
107 129 includeFlag = true;
108 130 }
109 131 }
  132 + console.log(includeFlag);
110 133 if (!includeFlag) {
111 134 form.resetFields(['salesCode']);
112 135 message.warning('检测到销售代码为旧的,已清空,请重新选择');
... ... @@ -115,6 +138,92 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
115 138 };
116 139  
117 140 /**
  141 + * 选择客户后自动为收货人Select添加选项,填充课题组和单位信息
  142 + * @param option 客户选项
  143 + */
  144 + async function autoFillCustomerContactSelectOptions(customerId: any) {
  145 + //查询单位详细信息
  146 + let res = await postKingdeeRepCustomerDetail({
  147 + data: {
  148 + id: customerId,
  149 + },
  150 + });
  151 +
  152 + //erp客户名称
  153 + form.setFieldValue('erpCustomerName', res?.name);
  154 +
  155 + //重新设置当前option
  156 + form.setFieldValue('erpCustomerId', {
  157 + label: res?.name,
  158 + value: res?.id,
  159 + id: res?.id,
  160 + });
  161 +
  162 + //查询客户自定义字段,课题组
  163 + let entity_number = await getTeacherCustomFieldNumber();
  164 +
  165 + //在单位详细信息中拿到自定义字段的值
  166 + let customField = res?.custom_field;
  167 + if (customField) {
  168 + let teacherName = customField[entity_number];
  169 + //填充到课题组老师表单字段中
  170 + form.setFieldValue('institutionContactName', teacherName);
  171 + }
  172 +
  173 + //单位名称,从客户名称中获取,客户名称规则<单位名称>-<联系人名称和电话>
  174 + let namePortions = res?.name?.split('-');
  175 + if (namePortions && namePortions.length >= 2) {
  176 + form.setFieldValue('institution', namePortions[0]);
  177 + }
  178 +
  179 + //如果原来的收货信息没有包含在这次查询出来的收货人选项中,那么清除原来的收货人信息
  180 + let existFlag = false;
  181 +
  182 + //填充收货人选项
  183 + let newProductCustomerContactOptions = res?.bomentity?.map((item) => {
  184 + let address =
  185 + item.contact_person + ',' + item.mobile + ',' + item.contact_address;
  186 + if (address === data.contactAddress) {
  187 + existFlag = true;
  188 + }
  189 + return { ...item, label: address, value: address };
  190 + });
  191 +
  192 + setProductCustomerContactOptions(newProductCustomerContactOptions);
  193 +
  194 + if (!existFlag) {
  195 + //清空原来的收货人信息
  196 + form.setFieldValue('customerShippingAddress', undefined);
  197 + form.setFieldValue('customerContactNumber', undefined);
  198 + form.setFieldValue('customerName', undefined);
  199 + form.setFieldValue('erpCustomerAddress', undefined);
  200 + }
  201 + }
  202 +
  203 + /**
  204 + * 回显金蝶信息
  205 + */
  206 + async function showKindeeInfo() {
  207 + //客户信息
  208 + if (data.customerId) {
  209 + //客户回显
  210 + autoFillCustomerContactSelectOptions(data.customerId);
  211 + }
  212 +
  213 + //商品单位回显
  214 + let list = data?.subOrderInformationLists;
  215 + if (list) {
  216 + let newProductUnitOptionsList = [...productUnitOptionsList];
  217 + for (let i = 0; i < list.length; i++) {
  218 + newProductUnitOptionsList[i] = [
  219 + { label: list[i].unit, value: list[i].unitId },
  220 + ];
  221 + }
  222 + setProductUnitOptionsList(newProductUnitOptionsList);
  223 + }
  224 + }
  225 +
  226 + /**
118 227 * 构建回显数据
119 228 */
120 229 function buildOrderData() {
... ... @@ -167,6 +276,7 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
167 276 }
168 277  
169 278 getSalesCodeOptions();
  279 + showKindeeInfo();
170 280 }
171 281  
172 282 async function getOldOrderData(id: any) {
... ... @@ -222,36 +332,144 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
222 332 }>
223 333 >();
224 334  
  335 + useEffect(() => {
  336 + form.setFieldsValue({ ...data });
  337 + //如果是新建,需要清空list
  338 + if (optType('add')) {
  339 + form.resetFields(['list']);
  340 + }
  341 + }, [data]);
  342 +
225 343 /**
226 344 *
227 345 * @param option 商品名称所对应的商品数据
228 346 * @param currentRowData list中当前行的数据
229 347 */
230   - function autoFillProductInfo(option: any, currentRowData: any, index: any) {
231   - let copyList = form.getFieldValue('list');
232   - let currentData = copyList[index];
233   - currentData.productCode = option?.productCode;
234   - currentData.parameters = option?.specifications;
235   - currentData.unit = option?.unit;
236   - form.setFieldValue('list', copyList);
  348 + async function autoFillProductInfo(
  349 + option: any,
  350 + currentRowData: any,
  351 + index: any,
  352 + ) {
  353 + let newProductParametersDisabledFlagList = [
  354 + ...productParametersDisabledFlagList,
  355 + ];
  356 + let newProductUnitOptionsList = [...productUnitOptionsList];
  357 + newProductUnitOptionsList[index] = [];
  358 +
  359 + //是新增商品
  360 + if (option.type === 'add') {
  361 + //商品参数开放权限可以编辑
  362 + newProductParametersDisabledFlagList[index] = false;
  363 +
  364 + //清空商品信息
  365 + let copyList = form.getFieldValue('list');
  366 + let currentData = copyList[index];
  367 + currentData.productCode = undefined;
  368 + currentData.parameters = undefined;
  369 + currentData.unit = undefined;
  370 + currentData.subOrderPayment = undefined;
  371 + currentData.quantity = undefined;
  372 + currentData.notes = undefined;
  373 + currentData.productPrice = undefined;
  374 + form.setFieldValue('list', copyList);
  375 +
  376 + //todo 查询计量单价列表
  377 + if (false) {
  378 + let res = await postKingdeeRepMeasureUnit({ data: {} });
  379 + if (res && res?.rows) {
  380 + for (let row of res?.rows) {
  381 + newProductUnitOptionsList[index].push({
  382 + label: row.name,
  383 + value: row.id,
  384 + });
  385 + }
  386 + }
  387 + }
  388 + } else {
  389 + //选择的是已有的商品,进行内容自动填充
  390 + let copyList = form.getFieldValue('list');
  391 + let currentData = copyList[index];
  392 + currentData.productCode = option?.number;
  393 + currentData.parameters = option?.model;
  394 + currentData.unit = option?.base_unit_name;
  395 +
  396 + //商品id
  397 + currentData.materialId = option?.id;
  398 +
  399 + //单位
  400 + currentData.unit = option.base_unit_name;
  401 + currentData.unitId = option.base_unit_id;
  402 +
  403 + form.setFieldValue('list', copyList);
  404 +
  405 + //商品所在的仓库选项填充
  406 + // let res = await postKingdeeRepMaterialStock({
  407 + // data: {
  408 + // material_id: option.id,
  409 + // },
  410 + // });
  411 + // let newProductInvStockOptionsList = [...productInvStockOptionsList];
  412 + // newProductInvStockOptionsList[index] = res?.rows?.map((item) => {
  413 + // return { label: item.inv_stock, value: item.inv_stock_id };
  414 + // });
  415 + // setProductInvStockOptionsList(newProductInvStockOptionsList);
  416 +
  417 + //商品单位填充,查询商品单位列表
  418 + let res = await postKingdeeRepMaterialUnit({
  419 + data: { material_id: option.id },
  420 + });
  421 + if (res && res.rows) {
  422 + for (let row of res.rows) {
  423 + newProductUnitOptionsList[index].push({
  424 + label: row.unit_name,
  425 + value: row.unit_id,
  426 + });
  427 + }
  428 + }
  429 + //商品参数不允许编辑
  430 + newProductParametersDisabledFlagList[index] = true;
  431 + }
  432 +
  433 + setProductParametersDisabledFlagList(newProductParametersDisabledFlagList);
  434 + setProductUnitOptionsList(newProductUnitOptionsList);
237 435 }
238 436  
239 437 /**
240 438 * 选择收货人后自动填充信息
241 439 * @param option 收货人信息
242 440 */
243   - function autoFillCustomerInfo(option: any) {
244   - form.setFieldValue('institution', option.institution);
245   - form.setFieldValue('institutionContactName', option.institutionContactName);
246   - form.setFieldValue(
247   - 'customerShippingAddress',
248   - option.customerShippingAddress,
249   - );
250   - form.setFieldValue('customerContactNumber', option.customerContactNumber);
251   - form.setFieldValue('customerName', option.customerName);
  441 + async function autoFillCustomerInfo(option: any) {
  442 + form.setFieldValue('customerShippingAddress', option.contact_address);
  443 + form.setFieldValue('customerContactNumber', option.mobile);
  444 + form.setFieldValue('customerName', option.contact_person);
  445 +
  446 + //erp收货地址:需要与客户联系人中的地址一样:姓名,手机号,地址
  447 + form.setFieldValue('contactAddress', option.value);
  448 + }
  449 +
  450 + /**
  451 + * 填充销售代表的信息
  452 + * @param option
  453 + */
  454 + function autoFillSalesInfo(option: any) {
  455 + console.log(option);
  456 + //销售代表对应职员编码填充
  457 + form.setFieldValue('empNumber', option.number);
252 458 }
253 459  
254 460 /**
  461 + * todo 选择商品单位后自动填充
  462 + * @param option
  463 + * @param index
  464 + */
  465 + // function autoFillUnit(option: any, index: any) {
  466 + // let copyList = form.getFieldValue('list');
  467 + // let currentData = copyList[index];
  468 + // currentData.unit = option?.label;
  469 + // form.setFieldValue('list', copyList);
  470 + // }
  471 +
  472 + /**
255 473 * 计算子订单金额
256 474 * @param listMeta 当前商品信息
257 475 */
... ... @@ -294,685 +512,760 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
294 512 }, []);
295 513  
296 514 return (
297   - <DrawerForm<{
298   - deleteSubOrderLists: any;
299   - name: string;
300   - company: string;
301   - }>
302   - open
303   - width="35%"
304   - title={drawerTitle}
305   - resize={{
306   - onResize() {
307   - console.log('resize!');
308   - },
309   - maxWidth: window.innerWidth * 0.8,
310   - minWidth: 400,
311   - }}
312   - submitter={{
313   - render: (props) => {
314   - return [
315   - <Button
316   - key="cancel"
317   - onClick={() => {
318   - onClose();
319   - }}
320   - >
321   - 取消
322   - </Button>,
323   - <Button
324   - key="ok"
325   - type="primary"
326   - loading={submitBtnLoading}
327   - disabled={optType('after-sales-check')}
328   - onClick={() => {
329   - setSubmitBtnLoading(true);
330   - props.submit();
331   - }}
332   - >
333   - 确定
334   - </Button>,
335   - ];
336   - },
337   - }}
338   - form={form}
339   - autoFocusFirstInput
340   - drawerProps={{
341   - destroyOnClose: true,
342   - maskClosable: false,
343   - }}
344   - submitTimeout={2000}
345   - onFinish={async (values) => {
346   - let res = {};
347   - //附件处理
348   - let list = values.list;
349   - // console.log(list);
350   - list = list.map((item) => {
351   - item.filePaths = item.filePaths?.map((file) => {
352   - console.log(file);
353   - return { url: file.response.data[0] };
  515 + <>
  516 + <DrawerForm<{
  517 + deleteSubOrderLists: any;
  518 + name: string;
  519 + company: string;
  520 + }>
  521 + open
  522 + width="35%"
  523 + title={drawerTitle}
  524 + resize={{
  525 + onResize() {
  526 + console.log('resize!');
  527 + },
  528 + maxWidth: window.innerWidth * 0.8,
  529 + minWidth: 400,
  530 + }}
  531 + submitter={{
  532 + render: (props) => {
  533 + return [
  534 + <Button
  535 + key="cancel"
  536 + onClick={() => {
  537 + onClose();
  538 + }}
  539 + >
  540 + 取消
  541 + </Button>,
  542 + <Button
  543 + key="ok"
  544 + type="primary"
  545 + loading={submitBtnLoading}
  546 + disabled={optType('after-sales-check')}
  547 + onClick={() => {
  548 + setSubmitBtnLoading(true);
  549 + props.submit();
  550 + }}
  551 + >
  552 + 确定
  553 + </Button>,
  554 + ];
  555 + },
  556 + }}
  557 + form={form}
  558 + autoFocusFirstInput
  559 + drawerProps={{
  560 + destroyOnClose: true,
  561 + maskClosable: false,
  562 + }}
  563 + submitTimeout={2000}
  564 + onFinish={async (values) => {
  565 + let res = {};
  566 + //附件处理
  567 + let list = values.list;
  568 + // console.log(list);
  569 + list = list.map((item) => {
  570 + item.filePaths = item.filePaths?.map((file) => {
  571 + console.log(file);
  572 + return { url: file.response.data[0] };
  573 + });
  574 + return item;
354 575 });
355   - return item;
356   - });
357 576  
358   - values.list = list;
359   - values.institution = values.institution?.trim();
360   - values.institutionContactName = values.institutionContactName?.trim();
  577 + values.list = list;
  578 + values.institution = values.institution?.trim();
  579 + values.institutionContactName = values.institutionContactName?.trim();
361 580  
362   - //新增
363   - if (optType('add') || optType('copy')) {
364   - res = await postServiceOrderAddOrder({ data: values });
365   - }
366   - //修改或者申请售后
367   - if (optType('edit') || optType('after-sales')) {
368   - //计算已删除的子订单id
369   - const originIds = originSubOrders.map((item) => {
370   - return item.id;
371   - });
372   - const curIds = form.getFieldValue('list')?.map((item) => {
373   - return item.id;
374   - });
375   - let diff = originIds.filter((item) => !curIds.includes(item));
376   - values.deleteSubOrderLists = diff;
377   -
378   - if (optType('edit')) {
379   - res = await postServiceOrderUpdateOrder({ data: values });
  581 + if (typeof values.erpCustomerId !== 'string') {
  582 + values.erpCustomerId = values.erpCustomerId?.id;
380 583 }
381 584  
382   - if (optType('after-sales')) {
383   - values.filePaths = values.filePaths?.map((file) => {
384   - return { url: file.response.data[0] };
385   - });
386   - res = await postServiceOrderApplyAfterSales({ data: values });
  585 + //新增
  586 + if (optType('add') || optType('copy')) {
  587 + res = await postServiceOrderAddOrder({ data: values });
387 588 }
388   - }
  589 + //修改或者申请售后
  590 + if (optType('edit') || optType('after-sales')) {
  591 + //计算已删除的子订单id
  592 + const originIds = originSubOrders.map((item) => {
  593 + return item.id;
  594 + });
  595 + const curIds = form.getFieldValue('list')?.map((item) => {
  596 + return item.id;
  597 + });
  598 + let diff = originIds.filter((item) => !curIds.includes(item));
  599 + values.deleteSubOrderLists = diff;
389 600  
390   - if (res.result === RESPONSE_CODE.SUCCESS) {
391   - message.success(res.message);
392   - // 不返回不会关闭弹框
393   - onClose(true);
394   - return true;
395   - }
  601 + if (optType('edit')) {
  602 + res = await postServiceOrderUpdateOrder({ data: values });
  603 + }
396 604  
397   - setSubmitBtnLoading(false);
398   - }}
399   - onOpenChange={(val) => {
400   - return !val && onClose();
401   - }}
402   - >
403   - {optType('after-sales') ? (
404   - <>
405   - <h2>售后信息</h2>
406   - <ProFormSelect
407   - key="key"
408   - label="售后方案"
409   - width="lg"
410   - showSearch
411   - name="afterSalesPlan"
412   - options={enumToSelect(AFTE_SALES_PLAN_OPTIONS)}
413   - placeholder="请搜索"
414   - rules={[{ required: true, message: '售后方案必填' }]}
415   - ></ProFormSelect>
416   - <ProFormTextArea
417   - width="lg"
418   - label="售后原因"
419   - name="afterSalesNotes"
420   - rules={[{ required: true, message: '售后原因必填' }]}
421   - />
422   - <ProFormUploadDragger
423   - key="filePaths"
424   - label="售后附件"
425   - name="filePaths"
426   - action="/api/service/order/fileProcess"
427   - fieldProps={{
428   - headers: { Authorization: localStorage.getItem('token') },
429   - }}
430   - />
431   - </>
432   - ) : (
433   - ''
434   - )}
  605 + if (optType('after-sales')) {
  606 + values.filePaths = values.filePaths?.map((file) => {
  607 + return { url: file.response.data[0] };
  608 + });
  609 + res = await postServiceOrderApplyAfterSales({ data: values });
  610 + }
  611 + }
435 612  
436   - <h2>订单基本信息</h2>
437   - <ProFormText
438   - key="id"
439   - name="id"
440   - width="lg"
441   - disabled
442   - label="id"
443   - placeholder="id"
444   - hidden
445   - />
446   - <ProFormSelect
447   - name="salesCode"
448   - key="salesCode"
449   - width="lg"
450   - showSearch
451   - label="销售代表"
452   - placeholder="请输入销售代表"
453   - rules={[{ required: true, message: '销售代表必填' }]}
454   - options={salesCodeOptions}
455   - disabled={optType('after-sales-check')}
456   - />
457   - <ProFormSelect
458   - key="customerName"
459   - label="收货人"
460   - width="lg"
461   - showSearch
462   - name="customerName"
463   - // options={options}
464   - placeholder="请输入收货人"
465   - disabled={optType('after-sales-check')}
466   - rules={[{ required: true, message: '收货人必填' }]}
467   - onChange={(_, option) => {
468   - autoFillCustomerInfo(option);
  613 + if (res.result === RESPONSE_CODE.SUCCESS) {
  614 + message.success(res.message);
  615 + // 不返回不会关闭弹框
  616 + onClose(true);
  617 + return true;
  618 + }
  619 +
  620 + setSubmitBtnLoading(false);
  621 + }}
  622 + onOpenChange={(val) => {
  623 + return !val && onClose();
469 624 }}
470   - fieldProps={{
471   - optionItemRender(item) {
472   - if (item.type === 'add') {
  625 + >
  626 + {optType('after-sales') ? (
  627 + <>
  628 + <h2>售后信息</h2>
  629 + <ProFormSelect
  630 + key="key"
  631 + label="售后方案"
  632 + width="lg"
  633 + showSearch
  634 + name="afterSalesPlan"
  635 + options={enumToSelect(AFTE_SALES_PLAN_OPTIONS)}
  636 + placeholder="请搜索"
  637 + rules={[{ required: true, message: '售后方案必填' }]}
  638 + ></ProFormSelect>
  639 + <ProFormTextArea
  640 + width="lg"
  641 + label="售后原因"
  642 + name="afterSalesNotes"
  643 + rules={[{ required: true, message: '售后原因必填' }]}
  644 + />
  645 + <ProFormUploadDragger
  646 + key="filePaths"
  647 + label="售后附件"
  648 + name="filePaths"
  649 + action="/api/service/order/fileProcess"
  650 + fieldProps={{
  651 + headers: { Authorization: localStorage.getItem('token') },
  652 + }}
  653 + />
  654 + </>
  655 + ) : (
  656 + ''
  657 + )}
  658 +
  659 + <h2>订单基本信息</h2>
  660 + <ProFormText
  661 + key="id"
  662 + name="id"
  663 + width="lg"
  664 + disabled
  665 + label="id"
  666 + placeholder="id"
  667 + hidden
  668 + />
  669 + <ProFormText
  670 + key="empNumber"
  671 + name="empNumber"
  672 + width="lg"
  673 + label="销售职员编码"
  674 + placeholder="销售职员编码"
  675 + hidden
  676 + />
  677 + <ProFormSelect
  678 + name="salesCode"
  679 + key="salesCode"
  680 + width="lg"
  681 + showSearch
  682 + label="销售代表"
  683 + placeholder="请输入销售代表"
  684 + rules={[{ required: true, message: '销售代表必填' }]}
  685 + options={salesCodeOptions}
  686 + onChange={(_, option) => {
  687 + autoFillSalesInfo(option);
  688 + }}
  689 + disabled={optType('after-sales-check')}
  690 + />
  691 + <ProFormText
  692 + key="erpCustomerName"
  693 + name="erpCustomerName"
  694 + hidden
  695 + ></ProFormText>
  696 +
  697 + <ProFormText
  698 + key="contactAddress"
  699 + name="contactAddress"
  700 + hidden
  701 + ></ProFormText>
  702 +
  703 + <ProFormSelect
  704 + name="erpCustomerId"
  705 + key="erpCustomerId"
  706 + width="lg"
  707 + showSearch
  708 + label={
  709 + <>
  710 + <span>客户</span>
  711 + <span
  712 + className="pl-2 text-xs text-[#1677ff] cursor-pointer"
  713 + onClick={() => {
  714 + let customerId = form.getFieldValue('erpCustomerId');
  715 + if (typeof customerId === 'string') {
  716 + setCustomer({ ...customer, id: customerId });
  717 + } else {
  718 + setCustomer({ ...customer, id: customerId.id });
  719 + }
  720 + setKingdeeCstomerModalVisible(true);
  721 + }}
  722 + >
  723 + 编辑客户信息
  724 + </span>
  725 + </>
  726 + }
  727 + placeholder="请选择客户"
  728 + rules={[{ required: true, message: '客户必填' }]}
  729 + onChange={(_, option) => {
  730 + //新增客户
  731 + if (option.type === 'add') {
  732 + setCustomer({ name: option.name });
  733 + setKingdeeCstomerModalVisible(true);
  734 + return;
  735 + }
  736 + autoFillCustomerContactSelectOptions(option.id);
  737 + }}
  738 + initialValue={{
  739 + label: data?.erpCustomerName,
  740 + value: data?.customerId,
  741 + id: data?.customerId,
  742 + }}
  743 + fieldProps={{
  744 + optionItemRender(item) {
  745 + if (item.type === 'add') {
  746 + return (
  747 + <div title={item.name + '(新增客户)'}>
  748 + <span style={{ color: '#333333' }}>{item.name}</span>
  749 + {' | '}
  750 + <span style={{ color: 'orange' }}>自定义</span>
  751 + </div>
  752 + );
  753 + }
473 754 return (
474   - <div title={item.customerName + '(新增商品信息)'}>
475   - <span style={{ color: '#333333' }}>{item.customerName}</span>
476   - {' | '}
477   - <span style={{ color: 'orange' }}>自定义</span>
  755 + <div
  756 + title={
  757 + item.name +
  758 + ' | ' +
  759 + item.customerContactNumber +
  760 + ' | ' +
  761 + (item.customerShippingAddress === undefined
  762 + ? '无地址'
  763 + : item.customerShippingAddress) +
  764 + ' | ' +
  765 + item.institutionContactName +
  766 + ' | ' +
  767 + item.institution
  768 + }
  769 + >
  770 + <span style={{ color: '#333333' }}>{item.name}</span>
478 771 </div>
479 772 );
  773 + },
  774 + }}
  775 + debounceTime={1000}
  776 + request={async (value, {}) => {
  777 + const keywords = value.keyWords;
  778 + const res = await postKingdeeRepCustomer({
  779 + data: { search: keywords },
  780 + });
  781 + let options = res?.rows?.map((c: any) => {
  782 + return {
  783 + ...c,
  784 + label: c.name,
  785 + value: c.id,
  786 + key: c.id,
  787 + };
  788 + });
  789 +
  790 + //第一个商品默认为要新增客户
  791 + if (keywords.trim() !== '') {
  792 + options.unshift({
  793 + name: keywords,
  794 + type: 'add',
  795 + label: keywords,
  796 + value: 3.1415926,
  797 + key: keywords,
  798 + });
480 799 }
481   - return (
482   - <div
483   - title={
484   - item.customerName +
485   - ' | ' +
486   - item.customerContactNumber +
487   - ' | ' +
488   - (item.customerShippingAddress === undefined
489   - ? '无地址'
490   - : item.customerShippingAddress) +
491   - ' | ' +
492   - item.institutionContactName +
493   - ' | ' +
494   - item.institution
495   - }
496   - >
497   - <span style={{ color: '#333333' }}>{item.customerName}</span>
498   - {' | '}
499   - <span style={{ color: '#339999' }}>
500   - {item.customerContactNumber === undefined
501   - ? '无电话号码'
502   - : item.customerContactNumber}
503   - </span>
504   - {' | '}
505   - <span style={{ color: '#666666' }}>
506   - {item.customerShippingAddress === undefined
507   - ? '无地址'
508   - : item.customerShippingAddress}
509   - </span>
510   - {' | '}
511   - <span style={{ color: '#666666' }}>
512   - {item.institutionContactName === undefined
513   - ? '无课题组'
514   - : item.institutionContactName}
515   - </span>
516   - {' | '}
517   - <span style={{ color: '#666666' }}>
518   - {item.institution === undefined ? '无单位' : item.institution}
519   - </span>
520   - </div>
521   - );
522   - },
523   - }}
524   - request={async (value, { params }) => {
525   - const keywords = value.keyWords;
526   - const { data } = await postServiceOrderQueryCustomerNameInformation({
527   - data: { customerName: keywords },
528   - params: params,
529   - });
530   - let options = data.map((c: any) => {
531   - return {
532   - ...c,
533   - label: c.customerName,
534   - value: c.id,
535   - key: c.id,
536   - };
537   - });
  800 + return options;
  801 + }}
  802 + />
  803 + <ProFormSelect
  804 + key="customerName"
  805 + label="收货人"
  806 + width="lg"
  807 + showSearch
  808 + name="customerName"
  809 + placeholder="请选择收货人"
  810 + rules={[{ required: true, message: '收货人必填' }]}
  811 + onChange={(_, option) => {
  812 + autoFillCustomerInfo(option);
  813 + }}
  814 + initialValue={data.contactAddress}
  815 + options={productCustomerContactOptions}
  816 + />
538 817  
539   - //第一个商品默认为要新增的商品
540   - if (keywords.trim() !== '') {
541   - options.unshift({
542   - customerName: keywords,
543   - type: 'add',
544   - label: keywords,
545   - value: 3.1415926,
546   - key: keywords,
547   - });
548   - }
549   - return options;
550   - }}
551   - />
552   - <ProFormText
553   - width="lg"
554   - key="customerContactNumber"
555   - name="customerContactNumber"
556   - label="联系方式"
557   - placeholder="请输入联系方式"
558   - rules={[{ required: true, message: '联系方式必填' }]}
559   - disabled={optType('after-sales-check')}
560   - />
561   - <ProFormText
562   - width="lg"
563   - key="institution"
564   - name="institution"
565   - label="单位"
566   - placeholder="请输入单位"
567   - rules={[{ required: true, message: '单位必填' }]}
568   - disabled={optType('after-sales-check')}
569   - />
570   - <ProFormText
571   - width="lg"
572   - key="institutionContactName"
573   - name="institutionContactName"
574   - label="课题组"
575   - placeholder="请输入课题组"
576   - rules={[{ required: true, message: '课题组必填' }]}
577   - disabled={optType('after-sales-check')}
578   - />
579   - <ProFormTextArea
580   - width="lg"
581   - key="customerShippingAddress"
582   - name="customerShippingAddress"
583   - label="收货地址"
584   - placeholder="请输入收货地址"
585   - rules={[{ required: true, message: '收货地址必填' }]}
586   - disabled={optType('after-sales-check')}
587   - />
588   - <div id="total-payment">
589   - <ProFormDigit
590   - name="totalPayment"
  818 + <ProFormText
591 819 width="lg"
592   - key="totalPayment"
593   - label="支付总额(¥)"
594   - rules={[{ required: true, message: '支付总额必填' }]}
595   - tooltip="点击计算,合计所有子订单金额"
596   - disabled={optType('after-sales-check')}
597   - fieldProps={{
598   - addonAfter: (
599   - <Button
600   - className="rounded-l-none"
601   - type="primary"
602   - onClick={computeTotalPayment}
603   - disabled={optType('after-sales-check')}
604   - >
605   - 计算
606   - </Button>
607   - ),
  820 + key="customerContactNumber"
  821 + name="customerContactNumber"
  822 + label="联系方式"
  823 + placeholder="请输入联系方式"
  824 + rules={[{ required: true, message: '联系方式必填' }]}
  825 + disabled
  826 + />
  827 + <ProFormText
  828 + width="lg"
  829 + key="institution"
  830 + name="institution"
  831 + label="单位"
  832 + placeholder="请输入单位"
  833 + rules={[{ required: true, message: '单位必填' }]}
  834 + disabled
  835 + />
  836 + <ProFormText
  837 + width="lg"
  838 + key="institutionContactName"
  839 + name="institutionContactName"
  840 + label="课题组"
  841 + placeholder="请输入课题组"
  842 + rules={[{ required: true, message: '课题组必填' }]}
  843 + disabled
  844 + />
  845 + <ProFormTextArea
  846 + width="lg"
  847 + key="customerShippingAddress"
  848 + name="customerShippingAddress"
  849 + label="收货地址"
  850 + placeholder="请输入收货地址"
  851 + rules={[{ required: true, message: '收货地址必填' }]}
  852 + disabled
  853 + />
  854 + <div id="total-payment">
  855 + <ProFormDigit
  856 + name="totalPayment"
  857 + width="lg"
  858 + key="totalPayment"
  859 + label="支付总额(¥)"
  860 + rules={[{ required: true, message: '支付总额必填' }]}
  861 + tooltip="点击计算,合计所有子订单金额"
  862 + fieldProps={{
  863 + addonAfter: (
  864 + <Button
  865 + className="rounded-l-none"
  866 + type="primary"
  867 + onClick={computeTotalPayment}
  868 + >
  869 + 计算
  870 + </Button>
  871 + ),
  872 + }}
  873 + // disabled={mainInfoDisbled}
  874 + />
  875 + </div>
  876 +
  877 + <ProFormSelect
  878 + placeholder="请输入支付渠道"
  879 + name="paymentChannel"
  880 + width="lg"
  881 + key="paymentChannel"
  882 + label="支付渠道"
  883 + options={enumToSelect(PAYMENT_CHANNEL_OPTIONS)}
  884 + rules={[{ required: true, message: '支付渠道必填' }]}
  885 + // disabled={mainInfoDisbled}
  886 + />
  887 + <ProFormSelect
  888 + placeholder="请输入支付方式"
  889 + name="paymentMethod"
  890 + width="lg"
  891 + key="paymentMethod"
  892 + label="支付方式"
  893 + options={enumToSelect(PAYMENT_METHOD_OPTIONS)}
  894 + rules={[{ required: true, message: '支付方式必填' }]}
  895 + // disabled={mainInfoDisbled}
  896 + />
  897 + <ProFormSelect
  898 + placeholder="选择是否需要开票"
  899 + name="invoicingStatus"
  900 + width="lg"
  901 + key="invoicingStatus"
  902 + label="是否需要开票"
  903 + options={getInvoicingSelect()}
  904 + // disabled={mainInfoDisbled}
  905 + onChange={(_, option) => {
  906 + setInvoicingStatus(option.value);
  907 + if (option.value === 'UN_INVOICE') {
  908 + form.setFieldValue('invoiceIdentificationNumber', undefined);
  909 + form.setFieldValue('bank', undefined);
  910 + form.setFieldValue('bankAccountNumber', undefined);
  911 + }
608 912 }}
  913 + rules={[{ required: true, message: '是否需要开票必填' }]}
  914 + />
  915 + <ProFormText
  916 + width="lg"
  917 + name="invoiceIdentificationNumber"
  918 + label="开票信息"
  919 + key="invoiceIdentificationNumber"
609 920 // disabled={mainInfoDisbled}
  921 + hidden={invoicingStatus === 'UN_INVOICE'}
  922 + placeholder="请输入开票信息"
  923 + rules={[
  924 + {
  925 + required: invoicingStatus === 'UN_INVOICE' ? false : true,
  926 + message: '开票信息必填',
  927 + },
  928 + ]}
610 929 />
611   - </div>
612   -
613   - <ProFormSelect
614   - placeholder="请输入支付渠道"
615   - name="paymentChannel"
616   - width="lg"
617   - key="paymentChannel"
618   - label="支付渠道"
619   - options={enumToSelect(PAYMENT_CHANNEL_OPTIONS)}
620   - rules={[{ required: true, message: '支付渠道必填' }]}
621   - disabled={optType('after-sales-check')}
622   - />
623   - <ProFormSelect
624   - placeholder="请输入支付方式"
625   - name="paymentMethod"
626   - width="lg"
627   - key="paymentMethod"
628   - label="支付方式"
629   - options={enumToSelect(PAYMENT_METHOD_OPTIONS)}
630   - rules={[{ required: true, message: '支付方式必填' }]}
631   - disabled={optType('after-sales-check')}
632   - />
633   - <ProFormSelect
634   - placeholder="选择是否需要开票"
635   - name="invoicingStatus"
636   - width="lg"
637   - key="invoicingStatus"
638   - label="是否需要开票"
639   - options={getInvoicingSelect()}
640   - disabled={optType('after-sales-check')}
641   - onChange={(_, option) => {
642   - setInvoicingStatus(option.value);
643   - if (option.value === 'UN_INVOICE') {
644   - form.setFieldValue('invoiceIdentificationNumber', undefined);
645   - form.setFieldValue('bank', undefined);
646   - form.setFieldValue('bankAccountNumber', undefined);
647   - }
648   - }}
649   - rules={[{ required: true, message: '是否需要开票必填' }]}
650   - />
651   - <ProFormText
652   - width="lg"
653   - name="invoiceIdentificationNumber"
654   - label="开票信息"
655   - key="invoiceIdentificationNumber"
656   - disabled={optType('after-sales-check')}
657   - hidden={invoicingStatus === 'UN_INVOICE'}
658   - placeholder="请输入开票信息"
659   - rules={[
660   - {
661   - required: invoicingStatus === 'UN_INVOICE' ? false : true,
662   - message: '开票信息必填',
663   - },
664   - ]}
665   - />
666 930  
667   - {getUserInfo().roleSmallVO?.code === 'admin' ? (
668   - <ProFormDateTimePicker
  931 + {getUserInfo().roleSmallVO?.code === 'admin' ? (
  932 + <ProFormDateTimePicker
  933 + width="lg"
  934 + key="invoicingTime"
  935 + name="invoicingTime"
  936 + // disabled={mainInfoDisbled}
  937 + hidden={invoicingStatus === 'UN_INVOICE'}
  938 + label="开票时间"
  939 + placeholder="请输入开票时间"
  940 + />
  941 + ) : (
  942 + ''
  943 + )}
  944 + <ProFormText
669 945 width="lg"
670   - key="invoicingTime"
671   - name="invoicingTime"
672   - disabled={optType('after-sales-check')}
  946 + name="bank"
  947 + key="bank"
  948 + label="开户银行"
  949 + // disabled={mainInfoDisbled}
673 950 hidden={invoicingStatus === 'UN_INVOICE'}
674   - label="开票时间"
675   - placeholder="请输入开票时间"
  951 + placeholder="请输入开户银行"
676 952 />
677   - ) : (
678   - ''
679   - )}
680   - <ProFormText
681   - width="lg"
682   - name="bank"
683   - key="bank"
684   - label="开户银行"
685   - disabled={optType('after-sales-check')}
686   - hidden={invoicingStatus === 'UN_INVOICE'}
687   - placeholder="请输入开户银行"
688   - />
689   - <ProFormText
690   - width="lg"
691   - key="bankAccountNumber"
692   - name="bankAccountNumber"
693   - hidden={invoicingStatus === 'UN_INVOICE'}
694   - label="银行账号"
695   - disabled={optType('after-sales-check')}
696   - placeholder="请输入银行账号"
697   - />
698   - <ProFormTextArea
699   - width="lg"
700   - name="notes"
701   - label="备注"
702   - key="notes"
703   - disabled={optType('after-sales-check')}
704   - placeholder="请输入备注"
705   - rules={[
706   - {
707   - max: 120, // 最大长度为120个字符
708   - message: '备注不能超过120个字符',
709   - },
710   - ]}
711   - />
712   -
713   - <h2>商品信息</h2>
714   - <ProFormList
715   - creatorButtonProps={{ disabled: optType('after-sales-check') }}
716   - name="list"
717   - label=""
718   - copyIconProps={false} //复制按钮不显示
719   - initialValue={[
720   - {
721   - productCode: '',
722   - productName: '',
723   - quantity: '',
724   - productPrice: '',
725   - parameters: '',
726   - subOrderPayment: '',
727   - },
728   - ]}
729   - actionGuard={{
730   - beforeRemoveRow: async () => {
731   - return new Promise((resolve) => {
732   - let list = form.getFieldValue('list');
733   - if (list?.length === 1) {
734   - message.error('删除失败,至少要有一个商品');
735   - resolve(false);
736   - return;
737   - }
738   - resolve(true);
739   - });
740   - },
741   - }}
742   - itemRender={(doms, listMeta) => {
743   - if (optType('edit')) {
744   - let i = 0;
745   - let defaultFileList = listMeta.record?.listAnnex?.map((annex) => {
746   - return {
747   - uid: i++,
748   - name: annex,
749   - status: 'uploaded',
750   - url: annex,
751   - response: { data: [annex] },
752   - };
753   - });
754   - fileList[listMeta.index] = defaultFileList;
755   - }
756   - let itemFileList = fileList[listMeta.index];
757   - return (
758   - <ProCard
759   - bordered
760   - extra={doms.action}
761   - title={'商品' + (listMeta.index + 1)}
762   - style={{
763   - marginBlockEnd: 8,
764   - }}
765   - >
766   - {[
767   - <ProFormSelect
768   - key="key"
769   - label="商品名称"
770   - width="lg"
771   - showSearch
772   - name="productName"
773   - // options={options}
774   - placeholder="请搜索商品"
775   - rules={[{ required: true, message: '商品名称必填' }]}
776   - onChange={(_, option) => {
777   - autoFillProductInfo(option, listMeta, listMeta.index);
778   - }}
779   - disabled={optType('after-sales-check')}
780   - fieldProps={{
781   - optionItemRender(item) {
782   - if (item.type === 'add') {
  953 + <ProFormText
  954 + width="lg"
  955 + key="bankAccountNumber"
  956 + name="bankAccountNumber"
  957 + hidden={invoicingStatus === 'UN_INVOICE'}
  958 + label="银行账号"
  959 + // disabled={mainInfoDisbled}
  960 + placeholder="请输入银行账号"
  961 + />
  962 + <ProFormTextArea
  963 + width="lg"
  964 + name="notes"
  965 + label="备注"
  966 + key="notes"
  967 + // disabled={mainInfoDisbled}
  968 + placeholder="请输入备注"
  969 + rules={[
  970 + {
  971 + max: 120, // 最大长度为120个字符
  972 + message: '备注不能超过120个字符',
  973 + },
  974 + ]}
  975 + />
  976 +
  977 + <h2>商品信息</h2>
  978 + <ProFormList
  979 + creatorButtonProps={{ disabled: false }}
  980 + name="list"
  981 + label=""
  982 + copyIconProps={false} //复制按钮不显示
  983 + initialValue={[
  984 + {
  985 + productCode: '',
  986 + productName: '',
  987 + quantity: '',
  988 + productPrice: '',
  989 + parameters: '',
  990 + subOrderPayment: '',
  991 + },
  992 + ]}
  993 + actionGuard={{
  994 + beforeRemoveRow: async (index) => {
  995 + return new Promise((resolve) => {
  996 + if (index === 0) {
  997 + message.error('第一行数据不能删除');
  998 + resolve(false);
  999 + return;
  1000 + }
  1001 + resolve(true);
  1002 + });
  1003 + },
  1004 + }}
  1005 + itemRender={(doms, listMeta) => {
  1006 + if (optType('edit')) {
  1007 + let i = 0;
  1008 + let defaultFileList = listMeta.record?.listAnnex?.map((annex) => {
  1009 + return {
  1010 + uid: i++,
  1011 + name: annex,
  1012 + status: 'uploaded',
  1013 + url: annex,
  1014 + response: { data: [annex] },
  1015 + };
  1016 + });
  1017 + fileList[listMeta.index] = defaultFileList;
  1018 + }
  1019 + let itemFileList = fileList[listMeta.index];
  1020 + return (
  1021 + <ProCard
  1022 + bordered
  1023 + extra={doms.action}
  1024 + title={'商品' + (listMeta.index + 1)}
  1025 + style={{
  1026 + marginBlockEnd: 8,
  1027 + }}
  1028 + >
  1029 + {[
  1030 + <ProFormText
  1031 + key={'material' + listMeta.index}
  1032 + name="materialId"
  1033 + hidden
  1034 + ></ProFormText>,
  1035 + <ProFormSelect
  1036 + key="key"
  1037 + label="商品名称"
  1038 + width="lg"
  1039 + showSearch
  1040 + name="productName"
  1041 + // options={options}
  1042 + placeholder="请搜索商品"
  1043 + rules={[{ required: true, message: '商品名称必填' }]}
  1044 + onChange={(_, option) => {
  1045 + autoFillProductInfo(option, listMeta, listMeta.index);
  1046 + }}
  1047 + initialValue={{
  1048 + label: listMeta?.record?.productName,
  1049 + value: listMeta?.record?.materialId,
  1050 + }}
  1051 + fieldProps={{
  1052 + optionItemRender(item) {
  1053 + if (item.type === 'add') {
  1054 + return (
  1055 + <div title={item.name + '(新增商品信息)'}>
  1056 + <span style={{ color: '#333333' }}>
  1057 + {item.label}
  1058 + </span>
  1059 + {' | '}
  1060 + <span style={{ color: 'orange' }}>新增商品</span>
  1061 + </div>
  1062 + );
  1063 + }
783 1064 return (
784   - <div title={item.productName + '(新增商品信息)'}>
  1065 + <div
  1066 + title={
  1067 + item.label +
  1068 + ' | ' +
  1069 + (item.model === undefined
  1070 + ? '无参数'
  1071 + : item.model) +
  1072 + ' | ' +
  1073 + item.base_unit_name
  1074 + }
  1075 + >
785 1076 <span style={{ color: '#333333' }}>
786   - {item.productName}
  1077 + {item.label}
787 1078 </span>
788 1079 {' | '}
789   - <span style={{ color: 'orange' }}>新增商品</span>
  1080 + <span style={{ color: '#339999' }}>
  1081 + {item.model === undefined ? '无参数' : item.model}
  1082 + </span>
  1083 + {' | '}
  1084 + <span style={{ color: '#666666' }}>
  1085 + {item.base_unit_name === undefined
  1086 + ? '无单位'
  1087 + : item.base_unit_name}
  1088 + </span>
790 1089 </div>
791 1090 );
792   - }
793   - return (
794   - <div
795   - title={
796   - item.label +
797   - ' | ' +
798   - (item.specifications === undefined
799   - ? '无参数'
800   - : item.specifications) +
801   - ' | ' +
802   - item.unit
803   - }
804   - >
805   - <span style={{ color: '#333333' }}>{item.label}</span>
806   - {' | '}
807   - <span style={{ color: '#339999' }}>
808   - {item.specifications === undefined
809   - ? '无参数'
810   - : item.specifications}
811   - </span>
812   - {' | '}
813   - <span style={{ color: '#666666' }}>
814   - {item.unit === undefined ? '无单位' : item.unit}
815   - </span>
816   - </div>
817   - );
818   - },
819   - }}
820   - request={async (value, { params }) => {
821   - const keywords = value.keyWords;
822   - const { data } =
823   - await postServiceOrderQueryProductInformation({
824   - data: { productName: keywords },
825   - params: params,
  1091 + },
  1092 + }}
  1093 + debounceTime={1000}
  1094 + request={async (value) => {
  1095 + const keywords = value.keyWords;
  1096 + const res = await postKingdeeRepMaterial({
  1097 + data: { search: keywords },
826 1098 });
827   - let options = data.map((p: any) => {
828   - return {
829   - ...p,
830   - label: p.productName,
831   - value: p.id + '|' + p.productName,
832   - key: p.id,
833   - };
834   - });
835   -
836   - //第一个商品默认为要新增的商品
837   - if (keywords.trim() !== '') {
838   - options.unshift({
839   - productName: keywords,
840   - type: 'add',
841   - label: keywords,
842   - value: 13 + '|' + keywords,
843   - key: keywords,
  1099 + let options = res?.rows?.map((p: any) => {
  1100 + return {
  1101 + ...p,
  1102 + label: p.name,
  1103 + value: p.id + '|' + p.name,
  1104 + key: p.id,
  1105 + };
844 1106 });
  1107 +
  1108 + //第一个商品默认为要新增的商品
  1109 + if (keywords.trim() !== '') {
  1110 + options.unshift({
  1111 + productName: keywords,
  1112 + type: 'add',
  1113 + label: keywords,
  1114 + value: 13 + '|' + keywords,
  1115 + key: keywords,
  1116 + });
  1117 + }
  1118 + return options;
  1119 + }}
  1120 + />,
  1121 + <ProFormText
  1122 + key={'productCode' + listMeta.index}
  1123 + width="lg"
  1124 + name="productCode"
  1125 + disabled
  1126 + label={
  1127 + <>
  1128 + <span>商品编码</span>
  1129 + <span className="pl-2 text-xs text-gray-400">
  1130 + 新增商品时,商品编码由系统自动生成
  1131 + </span>
  1132 + </>
845 1133 }
846   - return options;
847   - }}
848   - />,
849   - <ProFormText
850   - key={'productCode' + listMeta.index}
851   - width="lg"
852   - name="productCode"
853   - disabled
854   - label={
855   - <>
856   - <span>商品编码</span>
857   - <span className="pl-2 text-xs text-gray-400">
858   - 新增商品时,商品编码由系统自动生成
859   - </span>
860   - </>
861   - }
862   - placeholder="未输入商品名称"
863   - />,
864   - <ProFormText
865   - key={'parameters' + listMeta.index}
866   - width="lg"
867   - name="parameters"
868   - label="商品参数"
869   - placeholder="请输入商品参数"
870   - disabled={optType('after-sales-check')}
871   - rules={[{ required: true, message: '商品参数必填' }]}
872   - />,
873   - <ProFormDigit
874   - key={'quantity' + listMeta.index}
875   - width="lg"
876   - name="quantity"
877   - label="商品数量"
878   - fieldProps={{
879   - onChange: (value) => {
880   - listMeta.record.quantity = value;
881   - computeSubOrderPayment(listMeta);
882   - },
883   - precision: 0,
884   - }}
885   - placeholder="请输入商品数量"
886   - disabled={optType('after-sales-check')}
887   - rules={[{ required: true, message: '商品数量必填' }]}
888   - />,
889   - <ProFormDigit
890   - key={'productPrice' + listMeta.index}
891   - width="lg"
892   - name="productPrice"
893   - label="商品单价"
894   - fieldProps={{
895   - onChange: (value) => {
896   - listMeta.record.productPrice = value;
897   - computeSubOrderPayment(listMeta);
898   - },
899   - precision: 2,
900   - }}
901   - placeholder="请输入商品单价"
902   - disabled={optType('after-sales-check')}
903   - rules={[{ required: true, message: '商品单价必填' }]}
904   - />,
905   - <ProFormText
906   - key={'unit' + listMeta.index}
907   - width="lg"
908   - name="unit"
909   - label="商品单位"
910   - placeholder="请输入商品单位"
911   - disabled={optType('after-sales-check')}
912   - rules={[{ required: true, message: '商品单位必填' }]}
913   - />,
914   -
915   - <ProFormDigit
916   - width="lg"
917   - key={'subOrderPayment' + listMeta.index}
918   - name="subOrderPayment"
919   - label="子订单金额"
920   - placeholder="请输入子订单金额"
921   - tooltip="商品数量和单价变化后会自动计算子订单金额"
922   - disabled={optType('after-sales-check')}
923   - rules={[{ required: true, message: '子订单金额必填' }]}
924   - />,
925   - <ProFormSelect
926   - key={'productBelongBusiness' + listMeta.index}
927   - placeholder="请输入所属事业部"
928   - name="productBelongBusiness"
929   - width="lg"
930   - label="所属事业部"
931   - options={enumToSelect(PRODUCT_BELONG_DEPARTMENT_OPTIONS)}
932   - initialValue={'EXPERIMENTAL_CONSUMABLES'}
933   - rules={[{ required: true, message: '所属事业部必填' }]}
934   - disabled={optType('after-sales-check')}
935   - />,
936   - <ProFormTextArea
937   - key={'notes' + listMeta.index}
938   - width="lg"
939   - name="notes"
940   - disabled={optType('after-sales-check')}
941   - label={
942   - <div>
943   - <span>备注</span>
944   - <span className="pl-2 text-xs text-gray-400">
945   - 备注将体现在出货单上,请将需要仓管看见的信息写在备注上,例如需要开收据等信息。
946   - </span>
947   - </div>
948   - }
949   - placeholder="请输入备注"
950   - rules={[
951   - {
952   - max: 120, // 最大长度为120个字符
953   - message: '备注不能超过120个字符',
954   - },
955   - ]}
956   - />,
957   - <>
958   - <ProFormUploadDragger
959   - key={'filePaths' + listMeta.index}
960   - label="附件"
961   - name="filePaths"
962   - action="/api/service/order/fileProcess"
963   - disabled={optType('after-sales-check')}
  1134 + placeholder="未输入商品名称"
  1135 + />,
  1136 + // <ProFormSelect
  1137 + // key="inv_stock"
  1138 + // placeholder="请选择仓库"
  1139 + // name="invStockId"
  1140 + // width="lg"
  1141 + // label="仓库"
  1142 + // options={productInvStockOptionsList[listMeta.index]}
  1143 + // />,
  1144 + <ProFormText
  1145 + key={'parameters' + listMeta.index}
  1146 + width="lg"
  1147 + name="parameters"
  1148 + label="商品参数"
  1149 + placeholder="请输入商品参数"
  1150 + rules={[{ required: true, message: '商品参数必填' }]}
  1151 + disabled={
  1152 + productParametersDisabledFlagList[listMeta.index] !==
  1153 + false
  1154 + }
  1155 + />,
  1156 + <ProFormDigit
  1157 + key={'quantity' + listMeta.index}
  1158 + width="lg"
  1159 + name="quantity"
  1160 + label="商品数量"
964 1161 fieldProps={{
965   - headers: { Authorization: localStorage.getItem('token') },
966   - itemFileList,
  1162 + onChange: (value) => {
  1163 + listMeta.record.quantity = value;
  1164 + computeSubOrderPayment(listMeta);
  1165 + },
967 1166 }}
968   - />
969   - </>,
970   - ]}
971   - </ProCard>
972   - );
973   - }}
974   - actionRef={actionRef}
975   - ></ProFormList>
976   - </DrawerForm>
  1167 + placeholder="请输入商品数量"
  1168 + rules={[{ required: true, message: '商品数量必填' }]}
  1169 + />,
  1170 + <ProFormDigit
  1171 + key={'productPrice' + listMeta.index}
  1172 + width="lg"
  1173 + name="productPrice"
  1174 + label="商品单价"
  1175 + fieldProps={{
  1176 + onChange: (value) => {
  1177 + listMeta.record.productPrice = value;
  1178 + computeSubOrderPayment(listMeta);
  1179 + },
  1180 + }}
  1181 + placeholder="请输入商品单价"
  1182 + rules={[{ required: true, message: '商品单价必填' }]}
  1183 + />,
  1184 + <ProFormText
  1185 + key={'unit' + listMeta.index}
  1186 + width="lg"
  1187 + name="unit"
  1188 + label="商品单位"
  1189 + placeholder="请输入商品单位"
  1190 + disabled={optType('after-sales-check')}
  1191 + rules={[{ required: true, message: '商品单位必填' }]}
  1192 + />,
  1193 +
  1194 + <ProFormDigit
  1195 + width="lg"
  1196 + key={'subOrderPayment' + listMeta.index}
  1197 + name="subOrderPayment"
  1198 + label="子订单金额"
  1199 + placeholder="请输入子订单金额"
  1200 + tooltip="商品数量和单价变化后会自动计算子订单金额"
  1201 + disabled={optType('after-sales-check')}
  1202 + rules={[{ required: true, message: '子订单金额必填' }]}
  1203 + />,
  1204 + <ProFormSelect
  1205 + key={'productBelongBusiness' + listMeta.index}
  1206 + placeholder="请输入所属事业部"
  1207 + name="productBelongBusiness"
  1208 + width="lg"
  1209 + label="所属事业部"
  1210 + options={enumToSelect(PRODUCT_BELONG_DEPARTMENT_OPTIONS)}
  1211 + initialValue={'EXPERIMENTAL_CONSUMABLES'}
  1212 + rules={[{ required: true, message: '所属事业部必填' }]}
  1213 + disabled={optType('after-sales-check')}
  1214 + />,
  1215 + <ProFormTextArea
  1216 + key={'notes' + listMeta.index}
  1217 + width="lg"
  1218 + name="notes"
  1219 + disabled={optType('after-sales-check')}
  1220 + label={
  1221 + <div>
  1222 + <span>备注</span>
  1223 + <span className="pl-2 text-xs text-gray-400">
  1224 + 备注将体现在出货单上,请将需要仓管看见的信息写在备注上,例如需要开收据等信息。
  1225 + </span>
  1226 + </div>
  1227 + }
  1228 + placeholder="请输入备注"
  1229 + rules={[
  1230 + {
  1231 + max: 120, // 最大长度为120个字符
  1232 + message: '备注不能超过120个字符',
  1233 + },
  1234 + ]}
  1235 + />,
  1236 + <>
  1237 + <ProFormUploadDragger
  1238 + key={'filePaths' + listMeta.index}
  1239 + label="附件"
  1240 + name="filePaths"
  1241 + action="/api/service/order/fileProcess"
  1242 + disabled={optType('after-sales-check')}
  1243 + fieldProps={{
  1244 + headers: {
  1245 + Authorization: localStorage.getItem('token'),
  1246 + },
  1247 + itemFileList,
  1248 + }}
  1249 + />
  1250 + </>,
  1251 + ]}
  1252 + </ProCard>
  1253 + );
  1254 + }}
  1255 + actionRef={actionRef}
  1256 + ></ProFormList>
  1257 + </DrawerForm>
  1258 + {kingdeeCstomerModalVisible && (
  1259 + <KingdeeCustomerModal
  1260 + setVisible={setKingdeeCstomerModalVisible}
  1261 + data={customer}
  1262 + onClose={(customerId: any) => {
  1263 + setKingdeeCstomerModalVisible(false);
  1264 + //回显已经新建好的客户
  1265 + autoFillCustomerContactSelectOptions(customerId);
  1266 + }}
  1267 + />
  1268 + )}
  1269 + </>
977 1270 );
978 1271 };
... ...
src/pages/Order/index.tsx
1 1 import ButtonConfirm from '@/components/ButtomConfirm';
2 2 import { RESPONSE_CODE } from '@/constants/enum';
3 3 import {
  4 + postKingdeeRepSalBillOutbound,
  5 + postKingdeeRepSalOrderSave,
4 6 postServiceOrderNoNeedSend,
5 7 postServiceOrderOrderCancel,
6 8 postServiceOrderProcureOrder,
... ... @@ -1988,6 +1990,50 @@ const OrderPage = () =&gt; {
1988 1990 ''
1989 1991 )} */}
1990 1992  
  1993 + {record.mainPath?.includes('salOrderSave') ? (
  1994 + <ButtonConfirm
  1995 + className="p-0"
  1996 + title="是否推送至金蝶ERP?"
  1997 + text="推送ERP"
  1998 + onConfirm={async () => {
  1999 + let res = await postKingdeeRepSalOrderSave({
  2000 + data: {
  2001 + id: record.id,
  2002 + },
  2003 + });
  2004 +
  2005 + if (res && res.result === RESPONSE_CODE.SUCCESS) {
  2006 + message.success('推送成功');
  2007 + mainTableRef.current.reload();
  2008 + }
  2009 + }}
  2010 + />
  2011 + ) : (
  2012 + ''
  2013 + )}
  2014 +
  2015 + {record.mainPath?.includes('salBillOutbound') ? (
  2016 + <ButtonConfirm
  2017 + className="p-0"
  2018 + title="是否下推金蝶ERP出库单?"
  2019 + text="下推出库"
  2020 + onConfirm={async () => {
  2021 + let res = await postKingdeeRepSalBillOutbound({
  2022 + data: {
  2023 + id: record.id,
  2024 + },
  2025 + });
  2026 +
  2027 + if (res && res.result === RESPONSE_CODE.SUCCESS) {
  2028 + message.success('下推成功');
  2029 + mainTableRef.current.reload();
  2030 + }
  2031 + }}
  2032 + />
  2033 + ) : (
  2034 + ''
  2035 + )}
  2036 +
1991 2037 {record.mainPath?.includes('orderCancel') ? (
1992 2038 <ButtonConfirm
1993 2039 className="p-0"
... ...
src/services/definition.ts
... ... @@ -324,6 +324,63 @@ export interface AuditVO {
324 324 total?: number;
325 325 }
326 326  
  327 +export interface BillEntry {
  328 + auditLock?: boolean;
  329 + baseEntityNumber?: string;
  330 + defValue?: string;
  331 + displayName?: string;
  332 + entityNumber?: string;
  333 + /** @format int32 */
  334 + fieldType?: number;
  335 + id?: string;
  336 + mustInput?: boolean;
  337 + number?: string;
  338 + typeId?: string;
  339 +}
  340 +
  341 +export interface Bomentity {
  342 + birthday?: string;
  343 + contactAddress?: string;
  344 + contactCityId?: string;
  345 + contactCityName?: string;
  346 + contactCityNumber?: string;
  347 + contactCountryId?: string;
  348 + contactCountryName?: string;
  349 + contactCountryNumber?: string;
  350 + contactDistrictId?: string;
  351 + contactDistrictName?: string;
  352 + contactDistrictNumber?: string;
  353 + contactPerson?: string;
  354 + contactProvinceId?: string;
  355 + contactProvinceName?: string;
  356 + contactProvinceNumber?: string;
  357 + email?: string;
  358 + gender?: string;
  359 + groupNumber?: string;
  360 + id?: string;
  361 + isDefaultLinkman?: boolean;
  362 + mobile?: string;
  363 + phone?: string;
  364 + qq?: string;
  365 + rate?: string;
  366 + seq?: string;
  367 + wechat?: string;
  368 +}
  369 +
  370 +export interface CancelInvoiceAndBankStatementDto {
  371 + /**
  372 + * @description
  373 + * 取消关联的银行流水id集合
  374 + */
  375 + cancelId?: Array<number>;
  376 + /**
  377 + * @description
  378 + * 发票id
  379 + * @format int64
  380 + */
  381 + invoiceId?: number;
  382 +}
  383 +
327 384 export interface CaptchaMessageVO {
328 385 /** @format int32 */
329 386 current?: number;
... ... @@ -337,6 +394,187 @@ export interface CaptchaMessageVO {
337 394 type?: string;
338 395 }
339 396  
  397 +export interface Contactperson {
  398 + birthday?: string;
  399 + contactAddress?: string;
  400 + contactCityId?: string;
  401 + contactCountryId?: string;
  402 + contactDistrictId?: string;
  403 + contactPerson?: string;
  404 + contactProvinceId?: string;
  405 + email?: string;
  406 + /** @format int32 */
  407 + gender?: number;
  408 + id?: string;
  409 + isDefaultLinkman?: boolean;
  410 + mobile?: string;
  411 + phone?: string;
  412 + qq?: string;
  413 + wechat?: string;
  414 +}
  415 +
  416 +export interface CustomField {
  417 + baseEntityNumber?: string;
  418 + comboItems?: Array<Item>;
  419 + defValue?: string;
  420 + displayName?: string;
  421 + /** @format int32 */
  422 + fieldType?: number;
  423 + id?: string;
  424 + mustInput?: boolean;
  425 + number?: string;
  426 +}
  427 +
  428 +export interface CustomFieldRes {
  429 + head?: Array<CustomField>;
  430 + instantPayFromToEntry?: Array<BillEntry>;
  431 + materialEntity?: Array<CustomField>;
  432 + payFromToEntry?: Array<BillEntry>;
  433 +}
  434 +
  435 +export interface CustomerCustomerListReq {
  436 + clevel?: string;
  437 + contactPersonMain?: string;
  438 + createEndTime?: string;
  439 + createStartTime?: string;
  440 + customerMaturity?: string;
  441 + /** @format int32 */
  442 + enable?: number;
  443 + group?: Array<string>;
  444 + isDataPerm?: boolean;
  445 + mobileMain?: string;
  446 + modifyEndTime?: string;
  447 + modifyStartTime?: string;
  448 + orderBy?: string;
  449 + page?: string;
  450 + pageSize?: string;
  451 + saleDeptId?: string;
  452 + salerId?: string;
  453 + search?: string;
  454 + showAlarm?: boolean;
  455 + showBusinessTime?: boolean;
  456 + showContactDetail?: boolean;
  457 + showDebt?: boolean;
  458 + showTraceInfo?: boolean;
  459 + showUnVisitDays?: boolean;
  460 + traceEndDate?: string;
  461 + traceStartDate?: string;
  462 +}
  463 +
  464 +export interface CustomerDetailDto {
  465 + id?: string;
  466 + number?: string;
  467 + showBusinessTime?: boolean;
  468 + showDebt?: boolean;
  469 + showPeriod?: boolean;
  470 + showUnVisitDays?: boolean;
  471 +}
  472 +
  473 +export interface CustomerDetailRes {
  474 + accountOpenAddr?: string;
  475 + addr?: string;
  476 + bank?: string;
  477 + bankAccount?: string;
  478 + bomentity?: Array<Bomentity>;
  479 + cityId?: string;
  480 + cityName?: string;
  481 + cityNumber?: string;
  482 + clevelId?: string;
  483 + clevelName?: string;
  484 + clevelNumber?: string;
  485 + countryId?: string;
  486 + countryName?: string;
  487 + countryNumber?: string;
  488 + createTime?: string;
  489 + createrFieldName?: string;
  490 + customField?: {
  491 + [propertyName: string]: string;
  492 + };
  493 + districtId?: string;
  494 + districtName?: string;
  495 + districtNumber?: string;
  496 + enable?: string;
  497 + groupId?: string;
  498 + groupName?: string;
  499 + groupNumber?: string;
  500 + id?: string;
  501 + invoiceName?: string;
  502 + invoiceType?: string;
  503 + modifyTime?: string;
  504 + name?: string;
  505 + number?: string;
  506 + provinceId?: string;
  507 + provinceName?: string;
  508 + provinceNumber?: string;
  509 + rate?: string;
  510 + remark?: string;
  511 + saleDeptId?: string;
  512 + saleDeptName?: string;
  513 + saleDeptNumber?: string;
  514 + salerId?: string;
  515 + salerName?: string;
  516 + salerNumber?: string;
  517 + taxpayerNo?: string;
  518 +}
  519 +
  520 +export interface CustomerListRes {
  521 + count?: string;
  522 + /** @format int32 */
  523 + currentPage?: number;
  524 + /** @format int32 */
  525 + currentPageSize?: number;
  526 + /** @format int32 */
  527 + page?: number;
  528 + /** @format int32 */
  529 + pageSize?: number;
  530 + rows?: Array<CustomerListResRow>;
  531 + /** @format int32 */
  532 + totalPage?: number;
  533 +}
  534 +
  535 +export interface CustomerListResRow {
  536 + clevelId?: string;
  537 + enable?: string;
  538 + groupName?: string;
  539 + id?: string;
  540 + name?: string;
  541 + number?: string;
  542 + remark?: string;
  543 +}
  544 +
  545 +export interface CustomerSaveReq {
  546 + accountOpenAddr?: string;
  547 + addr?: string;
  548 + bank?: string;
  549 + bankAccount?: string;
  550 + cityId?: string;
  551 + clevelId?: string;
  552 + contactPersons?: Array<Contactperson>;
  553 + countryId?: string;
  554 + customField?: {
  555 + [propertyName: string]: string;
  556 + };
  557 + districtId?: string;
  558 + groupId?: string;
  559 + groupNumber?: string;
  560 + id?: string;
  561 + ignoreWarn?: boolean;
  562 + invoiceName?: string;
  563 + /** @format int32 */
  564 + invoiceType?: number;
  565 + mulLabel?: Array<Mullabel>;
  566 + name?: string;
  567 + number?: string;
  568 + provinceId?: string;
  569 + rate?: string;
  570 + remark?: string;
  571 + saleDeptId?: string;
  572 + saleDeptNumber?: string;
  573 + salerId?: string;
  574 + salerNumber?: string;
  575 + taxpayerNo?: string;
  576 +}
  577 +
340 578 export interface DictionaryQueryVO {
341 579 /** @format int32 */
342 580 current?: number;
... ... @@ -366,10 +604,188 @@ export interface DictionaryVO {
366 604 sort?: number;
367 605 }
368 606  
  607 +export interface Entry {
  608 + bankAccount?: string;
  609 + bankName?: string;
  610 + birthInsurance?: string;
  611 + birthInsuranceC?: string;
  612 + childrenCare?: string;
  613 + childrenEdu?: string;
  614 + continueEdu?: string;
  615 + depId?: string;
  616 + empId?: string;
  617 + empInjuryInsurance?: string;
  618 + empInjuryInsuranceC?: string;
  619 + hireDate?: string;
  620 + housingLoan?: string;
  621 + housingRent?: string;
  622 + hpf?: string;
  623 + hpfC?: string;
  624 + idNumber?: string;
  625 + medicalInsurance?: string;
  626 + medicalInsuranceC?: string;
  627 + mobile?: string;
  628 + oldInsurance?: string;
  629 + oldInsuranceC?: string;
  630 + payAmount?: string;
  631 + saItemList?: Array<ItemSaItem>;
  632 + specialDeductTotal?: string;
  633 + supportElderly?: string;
  634 + taxaMount?: string;
  635 + unEmpInsurance?: string;
  636 + unEmpInsuranceC?: string;
  637 +}
  638 +
369 639 export interface FilePathDto {
370 640 url?: string;
371 641 }
372 642  
  643 +export interface InventoryMaterialStockReq {
  644 + auxPropId?: string;
  645 + isShowStockPosition?: boolean;
  646 + isShowZeroImQty?: boolean;
  647 + materialId?: string;
  648 +}
  649 +
  650 +export interface Item {
  651 + billDate?: string;
  652 + billNo?: string;
  653 + entryList?: Array<Entry>;
  654 + id?: string;
  655 + remark?: string;
  656 +}
  657 +
  658 +export interface ItemSaItem {
  659 + itemId?: string;
  660 + itemValue?: string;
  661 +}
  662 +
  663 +export interface MaterialListReply {
  664 + count?: string;
  665 + /** @format int32 */
  666 + currentPage?: number;
  667 + /** @format int32 */
  668 + currentPageSize?: number;
  669 + /** @format int32 */
  670 + page?: number;
  671 + /** @format int32 */
  672 + pageSize?: number;
  673 + rows?: Array<MaterialListReplyRow>;
  674 + /** @format int32 */
  675 + totalPage?: number;
  676 +}
  677 +
  678 +export interface MaterialListReplyRow {
  679 + barcode?: string;
  680 + baseUnitId?: string;
  681 + baseUnitName?: string;
  682 + baseUnitNumber?: string;
  683 + brandId?: string;
  684 + brandName?: string;
  685 + brandNumber?: string;
  686 + checkType?: string;
  687 + helpCode?: string;
  688 + id?: string;
  689 + isAsstAttr?: boolean;
  690 + isBatch?: boolean;
  691 + isKfPeriod?: boolean;
  692 + isMultiUnit?: boolean;
  693 + isSerial?: boolean;
  694 + isShowAuxBarcode?: boolean;
  695 + isWeight?: boolean;
  696 + model?: string;
  697 + mulLabel?: Array<Mullabel>;
  698 + name?: string;
  699 + number?: string;
  700 + parentId?: string;
  701 + parentName?: string;
  702 + parentNumber?: string;
  703 + producingPace?: string;
  704 + remark?: string;
  705 + units?: Array<Unit>;
  706 + url?: string;
  707 +}
  708 +
  709 +export interface MaterialMaterialListReq {
  710 + createEndTime?: string;
  711 + createStartTime?: string;
  712 + enable?: string;
  713 + ids?: Array<string>;
  714 + isDataPerm?: boolean;
  715 + modifyEndTime?: string;
  716 + modifyStartTime?: string;
  717 + page?: string;
  718 + pageSize?: string;
  719 + parent?: Array<string>;
  720 + search?: string;
  721 + showUnits?: boolean;
  722 +}
  723 +
  724 +export interface MaterialStockRes {
  725 + rows?: Array<MaterialStockRow>;
  726 +}
  727 +
  728 +export interface MaterialStockRow {
  729 + invBaseUnit?: string;
  730 + invImQty?: string;
  731 + invQty?: string;
  732 + invStock?: string;
  733 + invStockId?: string;
  734 + invStockPosition?: string;
  735 +}
  736 +
  737 +export interface MaterialUnitListRes {
  738 + count?: string;
  739 + /** @format int32 */
  740 + currentPage?: number;
  741 + /** @format int32 */
  742 + currentPageSize?: number;
  743 + /** @format int32 */
  744 + page?: number;
  745 + /** @format int32 */
  746 + pageSize?: number;
  747 + rows?: Array<MaterialUnitListResRow>;
  748 + /** @format int32 */
  749 + totalPage?: number;
  750 +}
  751 +
  752 +export interface MaterialUnitListResRow {
  753 + /** @format double */
  754 + coefficient?: number;
  755 + conversionUnitId?: string;
  756 + conversionUnitName?: string;
  757 + id?: string;
  758 + /** @format int32 */
  759 + index?: number;
  760 + isDefault?: boolean;
  761 + isFloat?: boolean;
  762 + materialId?: string;
  763 + unitId?: string;
  764 + unitName?: string;
  765 +}
  766 +
  767 +export interface MeasureUnitListRes {
  768 + count?: string;
  769 + /** @format int32 */
  770 + currentPage?: number;
  771 + /** @format int32 */
  772 + currentPageSize?: number;
  773 + /** @format int32 */
  774 + page?: number;
  775 + /** @format int32 */
  776 + pageSize?: number;
  777 + rows?: Array<MeasureUnitListResRow>;
  778 + /** @format int32 */
  779 + totalPage?: number;
  780 +}
  781 +
  782 +export interface MeasureUnitListResRow {
  783 + id?: string;
  784 + name?: string;
  785 + number?: string;
  786 + precision?: string;
  787 +}
  788 +
373 789 export interface ModelAndView {
374 790 empty?: boolean;
375 791 model?: any;
... ... @@ -382,6 +798,12 @@ export interface ModelAndView {
382 798 viewName?: string;
383 799 }
384 800  
  801 +export interface Mullabel {
  802 + id?: string;
  803 + name?: string;
  804 + number?: string;
  805 +}
  806 +
385 807 export interface OrderAddVO {
386 808 baseInfo?: OrderBaseInfoVO;
387 809 inspectionStageInfo?: OrderInspectionStageVO;
... ... @@ -761,6 +1183,185 @@ export interface QueryAnnexDto {
761 1183 subId?: number;
762 1184 }
763 1185  
  1186 +export interface QueryBankStatementDto {
  1187 + /**
  1188 + * @description
  1189 + * 帐号名称
  1190 + */
  1191 + accountName?: string;
  1192 + /**
  1193 + * @description
  1194 + * 账号
  1195 + */
  1196 + accountNumber?: string;
  1197 + /**
  1198 + * @description
  1199 + * 实付金额
  1200 + */
  1201 + actualPaymentAmount?: number;
  1202 + /**
  1203 + * @description
  1204 + * 余额
  1205 + */
  1206 + balance?: number;
  1207 + /**
  1208 + * @description
  1209 + * 银行订单号
  1210 + */
  1211 + bankOrderNumber?: string;
  1212 + /**
  1213 + * @description
  1214 + * 交易日-开始
  1215 + * @format date
  1216 + */
  1217 + beginTransactionDate?: string;
  1218 + /**
  1219 + * @description
  1220 + * 起息日-开始
  1221 + * @format date
  1222 + */
  1223 + beginValueDate?: string;
  1224 + /**
  1225 + * @description
  1226 + * 借方金额
  1227 + */
  1228 + borrowedAmount?: number;
  1229 + /**
  1230 + * @description
  1231 + * 收银员
  1232 + */
  1233 + cashier?: string;
  1234 + /**
  1235 + * @description
  1236 + * 收款渠道
  1237 + */
  1238 + collectionChannel?: string;
  1239 + /**
  1240 + * @description
  1241 + * 币种
  1242 + */
  1243 + currency?: string;
  1244 + /** @format int32 */
  1245 + current?: number;
  1246 + /**
  1247 + * @description
  1248 + * 交易日-结束
  1249 + * @format date
  1250 + */
  1251 + endTransactionDate?: string;
  1252 + /**
  1253 + * @description
  1254 + * 起息日-结束
  1255 + * @format date
  1256 + */
  1257 + endValueDate?: string;
  1258 + /**
  1259 + * @description
  1260 + * 扩展摘要
  1261 + */
  1262 + extendedSummary?: string;
  1263 + /**
  1264 + * @description
  1265 + * id
  1266 + * @format int64
  1267 + */
  1268 + id?: number;
  1269 + /**
  1270 + * @description
  1271 + * 贷方金额
  1272 + */
  1273 + loanAmount?: number;
  1274 + /**
  1275 + * @description
  1276 + * 商户订单号
  1277 + */
  1278 + merchantOrderNumber?: string;
  1279 + /** @format int32 */
  1280 + pageSize?: number;
  1281 + /**
  1282 + * @description
  1283 + * 收(付)方账号
  1284 + */
  1285 + payeePayerAccountNumber?: string;
  1286 + /**
  1287 + * @description
  1288 + * 收(付)方开户行地址
  1289 + */
  1290 + payeePayerBankAddress?: string;
  1291 + /**
  1292 + * @description
  1293 + * 收(付)方开户行行号
  1294 + */
  1295 + payeePayerBankBranchCode?: string;
  1296 + /**
  1297 + * @description
  1298 + * 收(付)方开户行名
  1299 + */
  1300 + payeePayerBankName?: string;
  1301 + /**
  1302 + * @description
  1303 + * 收(付)方名称
  1304 + */
  1305 + payeePayerName?: string;
  1306 + /**
  1307 + * @description
  1308 + * 收(付)方单位
  1309 + */
  1310 + payeePayerUnit?: string;
  1311 + /**
  1312 + * @description
  1313 + * 支付类型
  1314 + */
  1315 + paymentType?: string;
  1316 + /**
  1317 + * @description
  1318 + * 附言
  1319 + */
  1320 + remarkNote?: string;
  1321 + /**
  1322 + * @description
  1323 + * 流水号
  1324 + */
  1325 + serialNumber?: string;
  1326 + /**
  1327 + * @description
  1328 + * 状态
  1329 + */
  1330 + status?: string;
  1331 + /**
  1332 + * @description
  1333 + * 摘要
  1334 + */
  1335 + summary?: string;
  1336 + /**
  1337 + * @description
  1338 + * 第三方订单号
  1339 + */
  1340 + thirdPartyOrderNumber?: string;
  1341 + /** @format int32 */
  1342 + total?: number;
  1343 + /**
  1344 + * @description
  1345 + * 交易金额
  1346 + */
  1347 + transactionAmount?: number;
  1348 + /**
  1349 + * @description
  1350 + * 交易分析码
  1351 + */
  1352 + transactionAnalysisCode?: string;
  1353 + /**
  1354 + * @description
  1355 + * 交易行所
  1356 + */
  1357 + transactionBankBranch?: string;
  1358 + /**
  1359 + * @description
  1360 + * 交易类型
  1361 + */
  1362 + transactionType?: string;
  1363 +}
  1364 +
764 1365 export interface QueryCustomerInformationDto {
765 1366 /**
766 1367 * @description
... ... @@ -792,6 +1393,15 @@ export interface QueryHistoryRecordDto {
792 1393 isDeleteQueryOrder?: boolean;
793 1394 }
794 1395  
  1396 +export interface QueryInvoiceDetailDto {
  1397 + /**
  1398 + * @description
  1399 + * 发票id
  1400 + * @format int64
  1401 + */
  1402 + invoiceId?: number;
  1403 +}
  1404 +
795 1405 export interface QueryMainOrderDto {
796 1406 /**
797 1407 * @description
... ... @@ -830,6 +1440,17 @@ export interface ResetPwdVO {
830 1440 userId?: number;
831 1441 }
832 1442  
  1443 +export interface SalOrderSaveDto {
  1444 + id?: string;
  1445 +}
  1446 +
  1447 +export interface SaveReply {
  1448 + idNumberMap?: {
  1449 + [propertyName: string]: string;
  1450 + };
  1451 + ids?: Array<string>;
  1452 +}
  1453 +
833 1454 export interface ServerResult {
834 1455 data?: any;
835 1456 message?: string;
... ... @@ -860,6 +1481,73 @@ export interface SysLogQueryVO {
860 1481 username?: string;
861 1482 }
862 1483  
  1484 +export interface SystemCustomFieldReq {
  1485 + entityNumber?: string;
  1486 +}
  1487 +
  1488 +export interface Unit {
  1489 + /** @format float */
  1490 + coefficient?: number;
  1491 + conversionUnitConversionType?: string;
  1492 + conversionUnitCreatetime?: string;
  1493 + conversionUnitDisableDate?: string;
  1494 + conversionUnitEnable?: string;
  1495 + conversionUnitId?: string;
  1496 + conversionUnitIsLeaf?: boolean;
  1497 + /** @format int32 */
  1498 + conversionUnitLevel?: number;
  1499 + conversionUnitLongNumber?: string;
  1500 + conversionUnitModifyTime?: string;
  1501 + conversionUnitName?: string;
  1502 + conversionUnitNumber?: string;
  1503 + conversionUnitPrecision?: string;
  1504 + conversionUnitPrecisionAccount?: string;
  1505 + id?: string;
  1506 + /** @format int32 */
  1507 + index?: number;
  1508 + isDefault?: boolean;
  1509 + isFloat?: boolean;
  1510 + materialId?: string;
  1511 + unitConversionType?: string;
  1512 + unitCreateTime?: string;
  1513 + unitDisableDate?: string;
  1514 + unitEnable?: string;
  1515 + unitId?: string;
  1516 + unitIsLeaf?: boolean;
  1517 + /** @format int32 */
  1518 + unitLevel?: number;
  1519 + unitLongNumber?: string;
  1520 + unitModifyTime?: string;
  1521 + unitNumber?: string;
  1522 + unitPrecision?: string;
  1523 + /** @format int32 */
  1524 + unitPrecisionAccount?: number;
  1525 + unitidName?: string;
  1526 +}
  1527 +
  1528 +export interface UnitMaterialUnitListReq {
  1529 + createEndTime?: string;
  1530 + createStartTime?: string;
  1531 + materialId?: Array<string>;
  1532 + modifyEndTime?: string;
  1533 + modifyStartTime?: string;
  1534 + page?: string;
  1535 + pageSize?: string;
  1536 + search?: string;
  1537 + unPage?: string;
  1538 +}
  1539 +
  1540 +export interface UnitMeasureUnitListReq {
  1541 + createEndTime?: string;
  1542 + createStartTime?: string;
  1543 + enable?: string;
  1544 + modifyEndTime?: string;
  1545 + modifyStartTime?: string;
  1546 + page?: string;
  1547 + pageSize?: string;
  1548 + search?: string;
  1549 +}
  1550 +
863 1551 export interface UpdateHirePurchase {
864 1552 /**
865 1553 * @description
... ... @@ -884,6 +1572,20 @@ export interface UpdateHirePurchase {
884 1572 updateTime?: string;
885 1573 }
886 1574  
  1575 +export interface UpdateHirePurchaseDto {
  1576 + /**
  1577 + * @description
  1578 + * 修改分期付款集合
  1579 + */
  1580 + list?: Array<UpdateHirePurchase>;
  1581 + /**
  1582 + * @description
  1583 + * 主订单id
  1584 + * @format int64
  1585 + */
  1586 + mainOrderId?: number;
  1587 +}
  1588 +
887 1589 export interface UpdatePwdVO {
888 1590 confirmPassword?: string;
889 1591 password?: string;
... ...
src/services/request.ts
... ... @@ -22,10 +22,23 @@ import type {
22 22 AdminUserRegisterVO,
23 23 AdminUserVO,
24 24 AuditVO,
  25 + CancelInvoiceAndBankStatementDto,
25 26 CaptchaMessageVO,
  27 + CustomFieldRes,
  28 + CustomerCustomerListReq,
  29 + CustomerDetailDto,
  30 + CustomerDetailRes,
  31 + CustomerListRes,
  32 + CustomerSaveReq,
26 33 DictionaryQueryVO,
27 34 DictionaryVO,
28 35 Dto,
  36 + InventoryMaterialStockReq,
  37 + MaterialListReply,
  38 + MaterialMaterialListReq,
  39 + MaterialStockRes,
  40 + MaterialUnitListRes,
  41 + MeasureUnitListRes,
29 42 ModelAndView,
30 43 OrderAddVO,
31 44 OrderAuditLogQueryVO,
... ... @@ -41,13 +54,21 @@ import type {
41 54 ProductInformationDto,
42 55 QueryAfterSalesInfoSnapshotDto,
43 56 QueryAnnexDto,
  57 + QueryBankStatementDto,
44 58 QueryCustomerInformationDto,
45 59 QueryHistoryRecordDto,
  60 + QueryInvoiceDetailDto,
46 61 QueryMainOrderDto,
47 62 QueryReportFormsDto,
48 63 ResetPwdVO,
  64 + SalOrderSaveDto,
  65 + SaveReply,
49 66 ServerResult,
50 67 SysLogQueryVO,
  68 + SystemCustomFieldReq,
  69 + UnitMaterialUnitListReq,
  70 + UnitMeasureUnitListReq,
  71 + UpdateHirePurchaseDto,
51 72 UpdatePwdVO,
52 73 } from './definition';
53 74  
... ... @@ -565,27 +586,27 @@ export const patchError = /* #__PURE__ */ (() =&gt; {
565 586 return request;
566 587 })();
567 588  
568   -/** @description request parameter type for postOfficialWebsiteUploadAliOss */
569   -export interface PostOfficialWebsiteUploadAliOssOption {
  589 +/** @description request parameter type for postKingdeeRepCustomer */
  590 +export interface PostKingdeeRepCustomerOption {
570 591 /**
571 592 * @description
572   - * files
  593 + * req
573 594 */
574   - formData: {
  595 + body: {
575 596 /**
576 597 @description
577   - files */
578   - files: Array<File>;
  598 + req */
  599 + req: CustomerCustomerListReq;
579 600 };
580 601 }
581 602  
582   -/** @description response type for postOfficialWebsiteUploadAliOss */
583   -export interface PostOfficialWebsiteUploadAliOssResponse {
  603 +/** @description response type for postKingdeeRepCustomer */
  604 +export interface PostKingdeeRepCustomerResponse {
584 605 /**
585 606 * @description
586 607 * OK
587 608 */
588   - 200: ServerResult;
  609 + 200: CustomerListRes;
589 610 /**
590 611 * @description
591 612 * Created
... ... @@ -608,25 +629,25 @@ export interface PostOfficialWebsiteUploadAliOssResponse {
608 629 404: any;
609 630 }
610 631  
611   -export type PostOfficialWebsiteUploadAliOssResponseSuccess =
612   - PostOfficialWebsiteUploadAliOssResponse[200];
  632 +export type PostKingdeeRepCustomerResponseSuccess =
  633 + PostKingdeeRepCustomerResponse[200];
613 634 /**
614 635 * @description
615   - * 为官网提供上传文件的接口
616   - * @tags 官网
  636 + * listCustomers
  637 + * @tags kingdee-erp-controller
617 638 * @produces *
618 639 * @consumes application/json
619 640 */
620   -export const postOfficialWebsiteUploadAliOss = /* #__PURE__ */ (() => {
  641 +export const postKingdeeRepCustomer = /* #__PURE__ */ (() => {
621 642 const method = 'post';
622   - const url = '/official/website/uploadAliOss';
  643 + const url = '/kingdee/rep/customer';
623 644 function request(
624   - option: PostOfficialWebsiteUploadAliOssOption,
625   - ): Promise<PostOfficialWebsiteUploadAliOssResponseSuccess> {
  645 + option: PostKingdeeRepCustomerOption,
  646 + ): Promise<PostKingdeeRepCustomerResponseSuccess> {
626 647 return requester(request.url, {
627 648 method: request.method,
628 649 ...option,
629   - }) as unknown as Promise<PostOfficialWebsiteUploadAliOssResponseSuccess>;
  650 + }) as unknown as Promise<PostKingdeeRepCustomerResponseSuccess>;
630 651 }
631 652  
632 653 /** http method */
... ... @@ -636,27 +657,27 @@ export const postOfficialWebsiteUploadAliOss = /* #__PURE__ */ (() =&gt; {
636 657 return request;
637 658 })();
638 659  
639   -/** @description request parameter type for postOrderErpApplyList */
640   -export interface PostOrderErpApplyListOption {
  660 +/** @description request parameter type for postKingdeeRepCustomerDetail */
  661 +export interface PostKingdeeRepCustomerDetailOption {
641 662 /**
642 663 * @description
643   - * orderFieldLockApplyQueryVO
  664 + * dto
644 665 */
645 666 body: {
646 667 /**
647 668 @description
648   - orderFieldLockApplyQueryVO */
649   - orderFieldLockApplyQueryVO: OrderFieldLockApplyQueryVO;
  669 + dto */
  670 + dto: CustomerDetailDto;
650 671 };
651 672 }
652 673  
653   -/** @description response type for postOrderErpApplyList */
654   -export interface PostOrderErpApplyListResponse {
  674 +/** @description response type for postKingdeeRepCustomerDetail */
  675 +export interface PostKingdeeRepCustomerDetailResponse {
655 676 /**
656 677 * @description
657 678 * OK
658 679 */
659   - 200: ServerResult;
  680 + 200: CustomerDetailRes;
660 681 /**
661 682 * @description
662 683 * Created
... ... @@ -679,25 +700,25 @@ export interface PostOrderErpApplyListResponse {
679 700 404: any;
680 701 }
681 702  
682   -export type PostOrderErpApplyListResponseSuccess =
683   - PostOrderErpApplyListResponse[200];
  703 +export type PostKingdeeRepCustomerDetailResponseSuccess =
  704 + PostKingdeeRepCustomerDetailResponse[200];
684 705 /**
685 706 * @description
686   - * 分页查询
687   - * @tags 用户订单-字段锁定申请(忽略)
  707 + * getCustomerDetail
  708 + * @tags kingdee-erp-controller
688 709 * @produces *
689 710 * @consumes application/json
690 711 */
691   -export const postOrderErpApplyList = /* #__PURE__ */ (() => {
  712 +export const postKingdeeRepCustomerDetail = /* #__PURE__ */ (() => {
692 713 const method = 'post';
693   - const url = '/order/erp/apply/list';
  714 + const url = '/kingdee/rep/customerDetail';
694 715 function request(
695   - option: PostOrderErpApplyListOption,
696   - ): Promise<PostOrderErpApplyListResponseSuccess> {
  716 + option: PostKingdeeRepCustomerDetailOption,
  717 + ): Promise<PostKingdeeRepCustomerDetailResponseSuccess> {
697 718 return requester(request.url, {
698 719 method: request.method,
699 720 ...option,
700   - }) as unknown as Promise<PostOrderErpApplyListResponseSuccess>;
  721 + }) as unknown as Promise<PostKingdeeRepCustomerDetailResponseSuccess>;
701 722 }
702 723  
703 724 /** http method */
... ... @@ -707,27 +728,27 @@ export const postOrderErpApplyList = /* #__PURE__ */ (() =&gt; {
707 728 return request;
708 729 })();
709 730  
710   -/** @description request parameter type for postOrderErpAuditAuditList */
711   -export interface PostOrderErpAuditAuditListOption {
  731 +/** @description request parameter type for postKingdeeRepCustomerSave */
  732 +export interface PostKingdeeRepCustomerSaveOption {
712 733 /**
713 734 * @description
714   - * queryVO
  735 + * req
715 736 */
716 737 body: {
717 738 /**
718 739 @description
719   - queryVO */
720   - queryVO: OrderFieldLockApplyQueryVO;
  740 + req */
  741 + req: CustomerSaveReq;
721 742 };
722 743 }
723 744  
724   -/** @description response type for postOrderErpAuditAuditList */
725   -export interface PostOrderErpAuditAuditListResponse {
  745 +/** @description response type for postKingdeeRepCustomerSave */
  746 +export interface PostKingdeeRepCustomerSaveResponse {
726 747 /**
727 748 * @description
728 749 * OK
729 750 */
730   - 200: ServerResult;
  751 + 200: SaveReply;
731 752 /**
732 753 * @description
733 754 * Created
... ... @@ -750,25 +771,25 @@ export interface PostOrderErpAuditAuditListResponse {
750 771 404: any;
751 772 }
752 773  
753   -export type PostOrderErpAuditAuditListResponseSuccess =
754   - PostOrderErpAuditAuditListResponse[200];
  774 +export type PostKingdeeRepCustomerSaveResponseSuccess =
  775 + PostKingdeeRepCustomerSaveResponse[200];
755 776 /**
756 777 * @description
757   - * 已审批列表
758   - * @tags 审批管理
  778 + * getCustomerDetail
  779 + * @tags kingdee-erp-controller
759 780 * @produces *
760 781 * @consumes application/json
761 782 */
762   -export const postOrderErpAuditAuditList = /* #__PURE__ */ (() => {
  783 +export const postKingdeeRepCustomerSave = /* #__PURE__ */ (() => {
763 784 const method = 'post';
764   - const url = '/order/erp/audit/audit_list';
  785 + const url = '/kingdee/rep/customerSave';
765 786 function request(
766   - option: PostOrderErpAuditAuditListOption,
767   - ): Promise<PostOrderErpAuditAuditListResponseSuccess> {
  787 + option: PostKingdeeRepCustomerSaveOption,
  788 + ): Promise<PostKingdeeRepCustomerSaveResponseSuccess> {
768 789 return requester(request.url, {
769 790 method: request.method,
770 791 ...option,
771   - }) as unknown as Promise<PostOrderErpAuditAuditListResponseSuccess>;
  792 + }) as unknown as Promise<PostKingdeeRepCustomerSaveResponseSuccess>;
772 793 }
773 794  
774 795 /** http method */
... ... @@ -778,27 +799,27 @@ export const postOrderErpAuditAuditList = /* #__PURE__ */ (() =&gt; {
778 799 return request;
779 800 })();
780 801  
781   -/** @description request parameter type for postOrderErpAuditDoAudit */
782   -export interface PostOrderErpAuditDoAuditOption {
  802 +/** @description request parameter type for postKingdeeRepMaterial */
  803 +export interface PostKingdeeRepMaterialOption {
783 804 /**
784 805 * @description
785   - * auditVO
  806 + * req
786 807 */
787 808 body: {
788 809 /**
789 810 @description
790   - auditVO */
791   - auditVO: AuditVO;
  811 + req */
  812 + req: MaterialMaterialListReq;
792 813 };
793 814 }
794 815  
795   -/** @description response type for postOrderErpAuditDoAudit */
796   -export interface PostOrderErpAuditDoAuditResponse {
  816 +/** @description response type for postKingdeeRepMaterial */
  817 +export interface PostKingdeeRepMaterialResponse {
797 818 /**
798 819 * @description
799 820 * OK
800 821 */
801   - 200: ServerResult;
  822 + 200: MaterialListReply;
802 823 /**
803 824 * @description
804 825 * Created
... ... @@ -821,25 +842,25 @@ export interface PostOrderErpAuditDoAuditResponse {
821 842 404: any;
822 843 }
823 844  
824   -export type PostOrderErpAuditDoAuditResponseSuccess =
825   - PostOrderErpAuditDoAuditResponse[200];
  845 +export type PostKingdeeRepMaterialResponseSuccess =
  846 + PostKingdeeRepMaterialResponse[200];
826 847 /**
827 848 * @description
828   - * 审核
829   - * @tags 审批管理
  849 + * listMaterial
  850 + * @tags kingdee-erp-controller
830 851 * @produces *
831 852 * @consumes application/json
832 853 */
833   -export const postOrderErpAuditDoAudit = /* #__PURE__ */ (() => {
  854 +export const postKingdeeRepMaterial = /* #__PURE__ */ (() => {
834 855 const method = 'post';
835   - const url = '/order/erp/audit/do_audit';
  856 + const url = '/kingdee/rep/material';
836 857 function request(
837   - option: PostOrderErpAuditDoAuditOption,
838   - ): Promise<PostOrderErpAuditDoAuditResponseSuccess> {
  858 + option: PostKingdeeRepMaterialOption,
  859 + ): Promise<PostKingdeeRepMaterialResponseSuccess> {
839 860 return requester(request.url, {
840 861 method: request.method,
841 862 ...option,
842   - }) as unknown as Promise<PostOrderErpAuditDoAuditResponseSuccess>;
  863 + }) as unknown as Promise<PostKingdeeRepMaterialResponseSuccess>;
843 864 }
844 865  
845 866 /** http method */
... ... @@ -849,27 +870,27 @@ export const postOrderErpAuditDoAudit = /* #__PURE__ */ (() =&gt; {
849 870 return request;
850 871 })();
851 872  
852   -/** @description request parameter type for postOrderErpAuditListByPage */
853   -export interface PostOrderErpAuditListByPageOption {
  873 +/** @description request parameter type for postKingdeeRepMaterialStock */
  874 +export interface PostKingdeeRepMaterialStockOption {
854 875 /**
855 876 * @description
856   - * queryVO
  877 + * req
857 878 */
858 879 body: {
859 880 /**
860 881 @description
861   - queryVO */
862   - queryVO: OrderFieldLockApplyQueryVO;
  882 + req */
  883 + req: InventoryMaterialStockReq;
863 884 };
864 885 }
865 886  
866   -/** @description response type for postOrderErpAuditListByPage */
867   -export interface PostOrderErpAuditListByPageResponse {
  887 +/** @description response type for postKingdeeRepMaterialStock */
  888 +export interface PostKingdeeRepMaterialStockResponse {
868 889 /**
869 890 * @description
870 891 * OK
871 892 */
872   - 200: ServerResult;
  893 + 200: MaterialStockRes;
873 894 /**
874 895 * @description
875 896 * Created
... ... @@ -892,25 +913,25 @@ export interface PostOrderErpAuditListByPageResponse {
892 913 404: any;
893 914 }
894 915  
895   -export type PostOrderErpAuditListByPageResponseSuccess =
896   - PostOrderErpAuditListByPageResponse[200];
  916 +export type PostKingdeeRepMaterialStockResponseSuccess =
  917 + PostKingdeeRepMaterialStockResponse[200];
897 918 /**
898 919 * @description
899   - * 分页查询
900   - * @tags 审批管理
  920 + * listMaterialStock
  921 + * @tags kingdee-erp-controller
901 922 * @produces *
902 923 * @consumes application/json
903 924 */
904   -export const postOrderErpAuditListByPage = /* #__PURE__ */ (() => {
  925 +export const postKingdeeRepMaterialStock = /* #__PURE__ */ (() => {
905 926 const method = 'post';
906   - const url = '/order/erp/audit/list_by_page';
  927 + const url = '/kingdee/rep/materialStock';
907 928 function request(
908   - option: PostOrderErpAuditListByPageOption,
909   - ): Promise<PostOrderErpAuditListByPageResponseSuccess> {
  929 + option: PostKingdeeRepMaterialStockOption,
  930 + ): Promise<PostKingdeeRepMaterialStockResponseSuccess> {
910 931 return requester(request.url, {
911 932 method: request.method,
912 933 ...option,
913   - }) as unknown as Promise<PostOrderErpAuditListByPageResponseSuccess>;
  934 + }) as unknown as Promise<PostKingdeeRepMaterialStockResponseSuccess>;
914 935 }
915 936  
916 937 /** http method */
... ... @@ -920,27 +941,27 @@ export const postOrderErpAuditListByPage = /* #__PURE__ */ (() =&gt; {
920 941 return request;
921 942 })();
922 943  
923   -/** @description request parameter type for postOrderErpAuditLogListByPage */
924   -export interface PostOrderErpAuditLogListByPageOption {
  944 +/** @description request parameter type for postKingdeeRepMaterialUnit */
  945 +export interface PostKingdeeRepMaterialUnitOption {
925 946 /**
926 947 * @description
927   - * orderAuditLogQueryVO
  948 + * req
928 949 */
929 950 body: {
930 951 /**
931 952 @description
932   - orderAuditLogQueryVO */
933   - orderAuditLogQueryVO: OrderAuditLogQueryVO;
  953 + req */
  954 + req: UnitMaterialUnitListReq;
934 955 };
935 956 }
936 957  
937   -/** @description response type for postOrderErpAuditLogListByPage */
938   -export interface PostOrderErpAuditLogListByPageResponse {
  958 +/** @description response type for postKingdeeRepMaterialUnit */
  959 +export interface PostKingdeeRepMaterialUnitResponse {
939 960 /**
940 961 * @description
941 962 * OK
942 963 */
943   - 200: ServerResult;
  964 + 200: MaterialUnitListRes;
944 965 /**
945 966 * @description
946 967 * Created
... ... @@ -963,25 +984,25 @@ export interface PostOrderErpAuditLogListByPageResponse {
963 984 404: any;
964 985 }
965 986  
966   -export type PostOrderErpAuditLogListByPageResponseSuccess =
967   - PostOrderErpAuditLogListByPageResponse[200];
  987 +export type PostKingdeeRepMaterialUnitResponseSuccess =
  988 + PostKingdeeRepMaterialUnitResponse[200];
968 989 /**
969 990 * @description
970   - * 分页查询
971   - * @tags 用户订单审批日志
  991 + * getMaterialDetail
  992 + * @tags kingdee-erp-controller
972 993 * @produces *
973 994 * @consumes application/json
974 995 */
975   -export const postOrderErpAuditLogListByPage = /* #__PURE__ */ (() => {
  996 +export const postKingdeeRepMaterialUnit = /* #__PURE__ */ (() => {
976 997 const method = 'post';
977   - const url = '/order/erp/audit/log/list_by_page';
  998 + const url = '/kingdee/rep/materialUnit';
978 999 function request(
979   - option: PostOrderErpAuditLogListByPageOption,
980   - ): Promise<PostOrderErpAuditLogListByPageResponseSuccess> {
  1000 + option: PostKingdeeRepMaterialUnitOption,
  1001 + ): Promise<PostKingdeeRepMaterialUnitResponseSuccess> {
981 1002 return requester(request.url, {
982 1003 method: request.method,
983 1004 ...option,
984   - }) as unknown as Promise<PostOrderErpAuditLogListByPageResponseSuccess>;
  1005 + }) as unknown as Promise<PostKingdeeRepMaterialUnitResponseSuccess>;
985 1006 }
986 1007  
987 1008 /** http method */
... ... @@ -991,27 +1012,27 @@ export const postOrderErpAuditLogListByPage = /* #__PURE__ */ (() =&gt; {
991 1012 return request;
992 1013 })();
993 1014  
994   -/** @description request parameter type for postOrderErpAuditLogQueryById */
995   -export interface PostOrderErpAuditLogQueryByIdOption {
  1015 +/** @description request parameter type for postKingdeeRepMeasureUnit */
  1016 +export interface PostKingdeeRepMeasureUnitOption {
996 1017 /**
997 1018 * @description
998   - * orderAuditLogQueryVO
  1019 + * req
999 1020 */
1000 1021 body: {
1001 1022 /**
1002 1023 @description
1003   - orderAuditLogQueryVO */
1004   - orderAuditLogQueryVO: OrderAuditLogQueryVO;
  1024 + req */
  1025 + req: UnitMeasureUnitListReq;
1005 1026 };
1006 1027 }
1007 1028  
1008   -/** @description response type for postOrderErpAuditLogQueryById */
1009   -export interface PostOrderErpAuditLogQueryByIdResponse {
  1029 +/** @description response type for postKingdeeRepMeasureUnit */
  1030 +export interface PostKingdeeRepMeasureUnitResponse {
1010 1031 /**
1011 1032 * @description
1012 1033 * OK
1013 1034 */
1014   - 200: ServerResult;
  1035 + 200: MeasureUnitListRes;
1015 1036 /**
1016 1037 * @description
1017 1038 * Created
... ... @@ -1034,25 +1055,25 @@ export interface PostOrderErpAuditLogQueryByIdResponse {
1034 1055 404: any;
1035 1056 }
1036 1057  
1037   -export type PostOrderErpAuditLogQueryByIdResponseSuccess =
1038   - PostOrderErpAuditLogQueryByIdResponse[200];
  1058 +export type PostKingdeeRepMeasureUnitResponseSuccess =
  1059 + PostKingdeeRepMeasureUnitResponse[200];
1039 1060 /**
1040 1061 * @description
1041   - * 通过主键查询单条数据
1042   - * @tags 用户订单审批日志
  1062 + * getCustomerDetail
  1063 + * @tags kingdee-erp-controller
1043 1064 * @produces *
1044 1065 * @consumes application/json
1045 1066 */
1046   -export const postOrderErpAuditLogQueryById = /* #__PURE__ */ (() => {
  1067 +export const postKingdeeRepMeasureUnit = /* #__PURE__ */ (() => {
1047 1068 const method = 'post';
1048   - const url = '/order/erp/audit/log/query_by_id';
  1069 + const url = '/kingdee/rep/measureUnit';
1049 1070 function request(
1050   - option: PostOrderErpAuditLogQueryByIdOption,
1051   - ): Promise<PostOrderErpAuditLogQueryByIdResponseSuccess> {
  1071 + option: PostKingdeeRepMeasureUnitOption,
  1072 + ): Promise<PostKingdeeRepMeasureUnitResponseSuccess> {
1052 1073 return requester(request.url, {
1053 1074 method: request.method,
1054 1075 ...option,
1055   - }) as unknown as Promise<PostOrderErpAuditLogQueryByIdResponseSuccess>;
  1076 + }) as unknown as Promise<PostKingdeeRepMeasureUnitResponseSuccess>;
1056 1077 }
1057 1078  
1058 1079 /** http method */
... ... @@ -1062,22 +1083,22 @@ export const postOrderErpAuditLogQueryById = /* #__PURE__ */ (() =&gt; {
1062 1083 return request;
1063 1084 })();
1064 1085  
1065   -/** @description request parameter type for postOrderErpAuditWaitAuditList */
1066   -export interface PostOrderErpAuditWaitAuditListOption {
  1086 +/** @description request parameter type for postKingdeeRepSalBillOutbound */
  1087 +export interface PostKingdeeRepSalBillOutboundOption {
1067 1088 /**
1068 1089 * @description
1069   - * queryVO
  1090 + * salOrderSaveDto
1070 1091 */
1071 1092 body: {
1072 1093 /**
1073 1094 @description
1074   - queryVO */
1075   - queryVO: OrderFieldLockApplyQueryVO;
  1095 + salOrderSaveDto */
  1096 + salOrderSaveDto: SalOrderSaveDto;
1076 1097 };
1077 1098 }
1078 1099  
1079   -/** @description response type for postOrderErpAuditWaitAuditList */
1080   -export interface PostOrderErpAuditWaitAuditListResponse {
  1100 +/** @description response type for postKingdeeRepSalBillOutbound */
  1101 +export interface PostKingdeeRepSalBillOutboundResponse {
1081 1102 /**
1082 1103 * @description
1083 1104 * OK
... ... @@ -1105,25 +1126,25 @@ export interface PostOrderErpAuditWaitAuditListResponse {
1105 1126 404: any;
1106 1127 }
1107 1128  
1108   -export type PostOrderErpAuditWaitAuditListResponseSuccess =
1109   - PostOrderErpAuditWaitAuditListResponse[200];
  1129 +export type PostKingdeeRepSalBillOutboundResponseSuccess =
  1130 + PostKingdeeRepSalBillOutboundResponse[200];
1110 1131 /**
1111 1132 * @description
1112   - * 待审批列表
1113   - * @tags 审批管理
  1133 + * salBillOutbound
  1134 + * @tags kingdee-erp-controller
1114 1135 * @produces *
1115 1136 * @consumes application/json
1116 1137 */
1117   -export const postOrderErpAuditWaitAuditList = /* #__PURE__ */ (() => {
  1138 +export const postKingdeeRepSalBillOutbound = /* #__PURE__ */ (() => {
1118 1139 const method = 'post';
1119   - const url = '/order/erp/audit/wait_audit_list';
  1140 + const url = '/kingdee/rep/salBillOutbound';
1120 1141 function request(
1121   - option: PostOrderErpAuditWaitAuditListOption,
1122   - ): Promise<PostOrderErpAuditWaitAuditListResponseSuccess> {
  1142 + option: PostKingdeeRepSalBillOutboundOption,
  1143 + ): Promise<PostKingdeeRepSalBillOutboundResponseSuccess> {
1123 1144 return requester(request.url, {
1124 1145 method: request.method,
1125 1146 ...option,
1126   - }) as unknown as Promise<PostOrderErpAuditWaitAuditListResponseSuccess>;
  1147 + }) as unknown as Promise<PostKingdeeRepSalBillOutboundResponseSuccess>;
1127 1148 }
1128 1149  
1129 1150 /** http method */
... ... @@ -1133,22 +1154,22 @@ export const postOrderErpAuditWaitAuditList = /* #__PURE__ */ (() =&gt; {
1133 1154 return request;
1134 1155 })();
1135 1156  
1136   -/** @description request parameter type for postOrderErpAuthLoginByPhone */
1137   -export interface PostOrderErpAuthLoginByPhoneOption {
  1157 +/** @description request parameter type for postKingdeeRepSalOrderSave */
  1158 +export interface PostKingdeeRepSalOrderSaveOption {
1138 1159 /**
1139 1160 * @description
1140   - * loginByPhoneVO
  1161 + * salOrderSaveDto
1141 1162 */
1142 1163 body: {
1143 1164 /**
1144 1165 @description
1145   - loginByPhoneVO */
1146   - loginByPhoneVO: AdminUserLoginByPhoneVO;
  1166 + salOrderSaveDto */
  1167 + salOrderSaveDto: SalOrderSaveDto;
1147 1168 };
1148 1169 }
1149 1170  
1150   -/** @description response type for postOrderErpAuthLoginByPhone */
1151   -export interface PostOrderErpAuthLoginByPhoneResponse {
  1171 +/** @description response type for postKingdeeRepSalOrderSave */
  1172 +export interface PostKingdeeRepSalOrderSaveResponse {
1152 1173 /**
1153 1174 * @description
1154 1175 * OK
... ... @@ -1176,25 +1197,25 @@ export interface PostOrderErpAuthLoginByPhoneResponse {
1176 1197 404: any;
1177 1198 }
1178 1199  
1179   -export type PostOrderErpAuthLoginByPhoneResponseSuccess =
1180   - PostOrderErpAuthLoginByPhoneResponse[200];
  1200 +export type PostKingdeeRepSalOrderSaveResponseSuccess =
  1201 + PostKingdeeRepSalOrderSaveResponse[200];
1181 1202 /**
1182 1203 * @description
1183   - * 手机登录
1184   - * @tags login-controller
  1204 + * salOrderSave
  1205 + * @tags kingdee-erp-controller
1185 1206 * @produces *
1186 1207 * @consumes application/json
1187 1208 */
1188   -export const postOrderErpAuthLoginByPhone = /* #__PURE__ */ (() => {
  1209 +export const postKingdeeRepSalOrderSave = /* #__PURE__ */ (() => {
1189 1210 const method = 'post';
1190   - const url = '/order/erp/auth/login_by_phone';
  1211 + const url = '/kingdee/rep/salOrderSave';
1191 1212 function request(
1192   - option: PostOrderErpAuthLoginByPhoneOption,
1193   - ): Promise<PostOrderErpAuthLoginByPhoneResponseSuccess> {
  1213 + option: PostKingdeeRepSalOrderSaveOption,
  1214 + ): Promise<PostKingdeeRepSalOrderSaveResponseSuccess> {
1194 1215 return requester(request.url, {
1195 1216 method: request.method,
1196 1217 ...option,
1197   - }) as unknown as Promise<PostOrderErpAuthLoginByPhoneResponseSuccess>;
  1218 + }) as unknown as Promise<PostKingdeeRepSalOrderSaveResponseSuccess>;
1198 1219 }
1199 1220  
1200 1221 /** http method */
... ... @@ -1204,27 +1225,27 @@ export const postOrderErpAuthLoginByPhone = /* #__PURE__ */ (() =&gt; {
1204 1225 return request;
1205 1226 })();
1206 1227  
1207   -/** @description request parameter type for postOrderErpAuthLoginByPwd */
1208   -export interface PostOrderErpAuthLoginByPwdOption {
  1228 +/** @description request parameter type for postKingdeeRepSystemCustomField */
  1229 +export interface PostKingdeeRepSystemCustomFieldOption {
1209 1230 /**
1210 1231 * @description
1211   - * loginByPwdVO
  1232 + * req
1212 1233 */
1213 1234 body: {
1214 1235 /**
1215 1236 @description
1216   - loginByPwdVO */
1217   - loginByPwdVO: AdminUserLoginByPwdVO;
  1237 + req */
  1238 + req: SystemCustomFieldReq;
1218 1239 };
1219 1240 }
1220 1241  
1221   -/** @description response type for postOrderErpAuthLoginByPwd */
1222   -export interface PostOrderErpAuthLoginByPwdResponse {
  1242 +/** @description response type for postKingdeeRepSystemCustomField */
  1243 +export interface PostKingdeeRepSystemCustomFieldResponse {
1223 1244 /**
1224 1245 * @description
1225 1246 * OK
1226 1247 */
1227   - 200: ServerResult;
  1248 + 200: CustomFieldRes;
1228 1249 /**
1229 1250 * @description
1230 1251 * Created
... ... @@ -1247,25 +1268,25 @@ export interface PostOrderErpAuthLoginByPwdResponse {
1247 1268 404: any;
1248 1269 }
1249 1270  
1250   -export type PostOrderErpAuthLoginByPwdResponseSuccess =
1251   - PostOrderErpAuthLoginByPwdResponse[200];
  1271 +export type PostKingdeeRepSystemCustomFieldResponseSuccess =
  1272 + PostKingdeeRepSystemCustomFieldResponse[200];
1252 1273 /**
1253 1274 * @description
1254   - * 用户登录
1255   - * @tags login-controller
  1275 + * listCustomFields
  1276 + * @tags kingdee-erp-controller
1256 1277 * @produces *
1257 1278 * @consumes application/json
1258 1279 */
1259   -export const postOrderErpAuthLoginByPwd = /* #__PURE__ */ (() => {
  1280 +export const postKingdeeRepSystemCustomField = /* #__PURE__ */ (() => {
1260 1281 const method = 'post';
1261   - const url = '/order/erp/auth/login_by_pwd';
  1282 + const url = '/kingdee/rep/systemCustomField';
1262 1283 function request(
1263   - option: PostOrderErpAuthLoginByPwdOption,
1264   - ): Promise<PostOrderErpAuthLoginByPwdResponseSuccess> {
  1284 + option: PostKingdeeRepSystemCustomFieldOption,
  1285 + ): Promise<PostKingdeeRepSystemCustomFieldResponseSuccess> {
1265 1286 return requester(request.url, {
1266 1287 method: request.method,
1267 1288 ...option,
1268   - }) as unknown as Promise<PostOrderErpAuthLoginByPwdResponseSuccess>;
  1289 + }) as unknown as Promise<PostKingdeeRepSystemCustomFieldResponseSuccess>;
1269 1290 }
1270 1291  
1271 1292 /** http method */
... ... @@ -1275,8 +1296,22 @@ export const postOrderErpAuthLoginByPwd = /* #__PURE__ */ (() =&gt; {
1275 1296 return request;
1276 1297 })();
1277 1298  
1278   -/** @description response type for postOrderErpAuthLoginOut */
1279   -export interface PostOrderErpAuthLoginOutResponse {
  1299 +/** @description request parameter type for postOfficialWebsiteUploadAliOss */
  1300 +export interface PostOfficialWebsiteUploadAliOssOption {
  1301 + /**
  1302 + * @description
  1303 + * files
  1304 + */
  1305 + formData: {
  1306 + /**
  1307 + @description
  1308 + files */
  1309 + files: Array<File>;
  1310 + };
  1311 +}
  1312 +
  1313 +/** @description response type for postOfficialWebsiteUploadAliOss */
  1314 +export interface PostOfficialWebsiteUploadAliOssResponse {
1280 1315 /**
1281 1316 * @description
1282 1317 * OK
... ... @@ -1304,22 +1339,25 @@ export interface PostOrderErpAuthLoginOutResponse {
1304 1339 404: any;
1305 1340 }
1306 1341  
1307   -export type PostOrderErpAuthLoginOutResponseSuccess =
1308   - PostOrderErpAuthLoginOutResponse[200];
  1342 +export type PostOfficialWebsiteUploadAliOssResponseSuccess =
  1343 + PostOfficialWebsiteUploadAliOssResponse[200];
1309 1344 /**
1310 1345 * @description
1311   - * 退出登录
1312   - * @tags login-controller
  1346 + * 为官网提供上传文件的接口
  1347 + * @tags 官网
1313 1348 * @produces *
1314 1349 * @consumes application/json
1315 1350 */
1316   -export const postOrderErpAuthLoginOut = /* #__PURE__ */ (() => {
  1351 +export const postOfficialWebsiteUploadAliOss = /* #__PURE__ */ (() => {
1317 1352 const method = 'post';
1318   - const url = '/order/erp/auth/login_out';
1319   - function request(): Promise<PostOrderErpAuthLoginOutResponseSuccess> {
  1353 + const url = '/official/website/uploadAliOss';
  1354 + function request(
  1355 + option: PostOfficialWebsiteUploadAliOssOption,
  1356 + ): Promise<PostOfficialWebsiteUploadAliOssResponseSuccess> {
1320 1357 return requester(request.url, {
1321 1358 method: request.method,
1322   - }) as unknown as Promise<PostOrderErpAuthLoginOutResponseSuccess>;
  1359 + ...option,
  1360 + }) as unknown as Promise<PostOfficialWebsiteUploadAliOssResponseSuccess>;
1323 1361 }
1324 1362  
1325 1363 /** http method */
... ... @@ -1329,22 +1367,22 @@ export const postOrderErpAuthLoginOut = /* #__PURE__ */ (() =&gt; {
1329 1367 return request;
1330 1368 })();
1331 1369  
1332   -/** @description request parameter type for postOrderErpAuthPasswordModify */
1333   -export interface PostOrderErpAuthPasswordModifyOption {
  1370 +/** @description request parameter type for postOrderErpApplyList */
  1371 +export interface PostOrderErpApplyListOption {
1334 1372 /**
1335 1373 * @description
1336   - * modifyPwdVO
  1374 + * orderFieldLockApplyQueryVO
1337 1375 */
1338 1376 body: {
1339 1377 /**
1340 1378 @description
1341   - modifyPwdVO */
1342   - modifyPwdVO: AdminUserModifyPwdVO;
  1379 + orderFieldLockApplyQueryVO */
  1380 + orderFieldLockApplyQueryVO: OrderFieldLockApplyQueryVO;
1343 1381 };
1344 1382 }
1345 1383  
1346   -/** @description response type for postOrderErpAuthPasswordModify */
1347   -export interface PostOrderErpAuthPasswordModifyResponse {
  1384 +/** @description response type for postOrderErpApplyList */
  1385 +export interface PostOrderErpApplyListResponse {
1348 1386 /**
1349 1387 * @description
1350 1388 * OK
... ... @@ -1372,25 +1410,25 @@ export interface PostOrderErpAuthPasswordModifyResponse {
1372 1410 404: any;
1373 1411 }
1374 1412  
1375   -export type PostOrderErpAuthPasswordModifyResponseSuccess =
1376   - PostOrderErpAuthPasswordModifyResponse[200];
  1413 +export type PostOrderErpApplyListResponseSuccess =
  1414 + PostOrderErpApplyListResponse[200];
1377 1415 /**
1378 1416 * @description
1379   - * 用户登录
1380   - * @tags login-controller
  1417 + * 分页查询
  1418 + * @tags 用户订单-字段锁定申请(忽略)
1381 1419 * @produces *
1382 1420 * @consumes application/json
1383 1421 */
1384   -export const postOrderErpAuthPasswordModify = /* #__PURE__ */ (() => {
  1422 +export const postOrderErpApplyList = /* #__PURE__ */ (() => {
1385 1423 const method = 'post';
1386   - const url = '/order/erp/auth/password_modify';
  1424 + const url = '/order/erp/apply/list';
1387 1425 function request(
1388   - option: PostOrderErpAuthPasswordModifyOption,
1389   - ): Promise<PostOrderErpAuthPasswordModifyResponseSuccess> {
  1426 + option: PostOrderErpApplyListOption,
  1427 + ): Promise<PostOrderErpApplyListResponseSuccess> {
1390 1428 return requester(request.url, {
1391 1429 method: request.method,
1392 1430 ...option,
1393   - }) as unknown as Promise<PostOrderErpAuthPasswordModifyResponseSuccess>;
  1431 + }) as unknown as Promise<PostOrderErpApplyListResponseSuccess>;
1394 1432 }
1395 1433  
1396 1434 /** http method */
... ... @@ -1400,22 +1438,22 @@ export const postOrderErpAuthPasswordModify = /* #__PURE__ */ (() =&gt; {
1400 1438 return request;
1401 1439 })();
1402 1440  
1403   -/** @description request parameter type for postOrderErpAuthPhoneRegister */
1404   -export interface PostOrderErpAuthPhoneRegisterOption {
  1441 +/** @description request parameter type for postOrderErpAuditAuditList */
  1442 +export interface PostOrderErpAuditAuditListOption {
1405 1443 /**
1406 1444 * @description
1407   - * registerVO
  1445 + * queryVO
1408 1446 */
1409 1447 body: {
1410 1448 /**
1411 1449 @description
1412   - registerVO */
1413   - registerVO: AdminUserRegisterVO;
  1450 + queryVO */
  1451 + queryVO: OrderFieldLockApplyQueryVO;
1414 1452 };
1415 1453 }
1416 1454  
1417   -/** @description response type for postOrderErpAuthPhoneRegister */
1418   -export interface PostOrderErpAuthPhoneRegisterResponse {
  1455 +/** @description response type for postOrderErpAuditAuditList */
  1456 +export interface PostOrderErpAuditAuditListResponse {
1419 1457 /**
1420 1458 * @description
1421 1459 * OK
... ... @@ -1443,25 +1481,25 @@ export interface PostOrderErpAuthPhoneRegisterResponse {
1443 1481 404: any;
1444 1482 }
1445 1483  
1446   -export type PostOrderErpAuthPhoneRegisterResponseSuccess =
1447   - PostOrderErpAuthPhoneRegisterResponse[200];
  1484 +export type PostOrderErpAuditAuditListResponseSuccess =
  1485 + PostOrderErpAuditAuditListResponse[200];
1448 1486 /**
1449 1487 * @description
1450   - * 手机注册
1451   - * @tags login-controller
  1488 + * 已审批列表
  1489 + * @tags 审批管理
1452 1490 * @produces *
1453 1491 * @consumes application/json
1454 1492 */
1455   -export const postOrderErpAuthPhoneRegister = /* #__PURE__ */ (() => {
  1493 +export const postOrderErpAuditAuditList = /* #__PURE__ */ (() => {
1456 1494 const method = 'post';
1457   - const url = '/order/erp/auth/phone_register';
  1495 + const url = '/order/erp/audit/audit_list';
1458 1496 function request(
1459   - option: PostOrderErpAuthPhoneRegisterOption,
1460   - ): Promise<PostOrderErpAuthPhoneRegisterResponseSuccess> {
  1497 + option: PostOrderErpAuditAuditListOption,
  1498 + ): Promise<PostOrderErpAuditAuditListResponseSuccess> {
1461 1499 return requester(request.url, {
1462 1500 method: request.method,
1463 1501 ...option,
1464   - }) as unknown as Promise<PostOrderErpAuthPhoneRegisterResponseSuccess>;
  1502 + }) as unknown as Promise<PostOrderErpAuditAuditListResponseSuccess>;
1465 1503 }
1466 1504  
1467 1505 /** http method */
... ... @@ -1471,22 +1509,22 @@ export const postOrderErpAuthPhoneRegister = /* #__PURE__ */ (() =&gt; {
1471 1509 return request;
1472 1510 })();
1473 1511  
1474   -/** @description request parameter type for postOrderErpAuthSendPasswordRecoverMail */
1475   -export interface PostOrderErpAuthSendPasswordRecoverMailOption {
  1512 +/** @description request parameter type for postOrderErpAuditDoAudit */
  1513 +export interface PostOrderErpAuditDoAuditOption {
1476 1514 /**
1477 1515 * @description
1478   - * recoverEmailVO
  1516 + * auditVO
1479 1517 */
1480 1518 body: {
1481 1519 /**
1482 1520 @description
1483   - recoverEmailVO */
1484   - recoverEmailVO: AdminUserPasswordRecoverEmailVO;
  1521 + auditVO */
  1522 + auditVO: AuditVO;
1485 1523 };
1486 1524 }
1487 1525  
1488   -/** @description response type for postOrderErpAuthSendPasswordRecoverMail */
1489   -export interface PostOrderErpAuthSendPasswordRecoverMailResponse {
  1526 +/** @description response type for postOrderErpAuditDoAudit */
  1527 +export interface PostOrderErpAuditDoAuditResponse {
1490 1528 /**
1491 1529 * @description
1492 1530 * OK
... ... @@ -1514,25 +1552,25 @@ export interface PostOrderErpAuthSendPasswordRecoverMailResponse {
1514 1552 404: any;
1515 1553 }
1516 1554  
1517   -export type PostOrderErpAuthSendPasswordRecoverMailResponseSuccess =
1518   - PostOrderErpAuthSendPasswordRecoverMailResponse[200];
  1555 +export type PostOrderErpAuditDoAuditResponseSuccess =
  1556 + PostOrderErpAuditDoAuditResponse[200];
1519 1557 /**
1520 1558 * @description
1521   - * sendPasswordRecoverMail
1522   - * @tags login-controller
  1559 + * 审核
  1560 + * @tags 审批管理
1523 1561 * @produces *
1524 1562 * @consumes application/json
1525 1563 */
1526   -export const postOrderErpAuthSendPasswordRecoverMail = /* #__PURE__ */ (() => {
  1564 +export const postOrderErpAuditDoAudit = /* #__PURE__ */ (() => {
1527 1565 const method = 'post';
1528   - const url = '/order/erp/auth/send_password_recover_mail';
  1566 + const url = '/order/erp/audit/do_audit';
1529 1567 function request(
1530   - option: PostOrderErpAuthSendPasswordRecoverMailOption,
1531   - ): Promise<PostOrderErpAuthSendPasswordRecoverMailResponseSuccess> {
  1568 + option: PostOrderErpAuditDoAuditOption,
  1569 + ): Promise<PostOrderErpAuditDoAuditResponseSuccess> {
1532 1570 return requester(request.url, {
1533 1571 method: request.method,
1534 1572 ...option,
1535   - }) as unknown as Promise<PostOrderErpAuthSendPasswordRecoverMailResponseSuccess>;
  1573 + }) as unknown as Promise<PostOrderErpAuditDoAuditResponseSuccess>;
1536 1574 }
1537 1575  
1538 1576 /** http method */
... ... @@ -1542,8 +1580,22 @@ export const postOrderErpAuthSendPasswordRecoverMail = /* #__PURE__ */ (() =&gt; {
1542 1580 return request;
1543 1581 })();
1544 1582  
1545   -/** @description response type for postOrderErpCaptchaGetImgCaptchaCode */
1546   -export interface PostOrderErpCaptchaGetImgCaptchaCodeResponse {
  1583 +/** @description request parameter type for postOrderErpAuditListByPage */
  1584 +export interface PostOrderErpAuditListByPageOption {
  1585 + /**
  1586 + * @description
  1587 + * queryVO
  1588 + */
  1589 + body: {
  1590 + /**
  1591 + @description
  1592 + queryVO */
  1593 + queryVO: OrderFieldLockApplyQueryVO;
  1594 + };
  1595 +}
  1596 +
  1597 +/** @description response type for postOrderErpAuditListByPage */
  1598 +export interface PostOrderErpAuditListByPageResponse {
1547 1599 /**
1548 1600 * @description
1549 1601 * OK
... ... @@ -1571,22 +1623,25 @@ export interface PostOrderErpCaptchaGetImgCaptchaCodeResponse {
1571 1623 404: any;
1572 1624 }
1573 1625  
1574   -export type PostOrderErpCaptchaGetImgCaptchaCodeResponseSuccess =
1575   - PostOrderErpCaptchaGetImgCaptchaCodeResponse[200];
  1626 +export type PostOrderErpAuditListByPageResponseSuccess =
  1627 + PostOrderErpAuditListByPageResponse[200];
1576 1628 /**
1577 1629 * @description
1578   - * 获取图片验证码
1579   - * @tags 验证码
  1630 + * 分页查询
  1631 + * @tags 审批管理
1580 1632 * @produces *
1581 1633 * @consumes application/json
1582 1634 */
1583   -export const postOrderErpCaptchaGetImgCaptchaCode = /* #__PURE__ */ (() => {
  1635 +export const postOrderErpAuditListByPage = /* #__PURE__ */ (() => {
1584 1636 const method = 'post';
1585   - const url = '/order/erp/captcha/get_img_captcha_code';
1586   - function request(): Promise<PostOrderErpCaptchaGetImgCaptchaCodeResponseSuccess> {
  1637 + const url = '/order/erp/audit/list_by_page';
  1638 + function request(
  1639 + option: PostOrderErpAuditListByPageOption,
  1640 + ): Promise<PostOrderErpAuditListByPageResponseSuccess> {
1587 1641 return requester(request.url, {
1588 1642 method: request.method,
1589   - }) as unknown as Promise<PostOrderErpCaptchaGetImgCaptchaCodeResponseSuccess>;
  1643 + ...option,
  1644 + }) as unknown as Promise<PostOrderErpAuditListByPageResponseSuccess>;
1590 1645 }
1591 1646  
1592 1647 /** http method */
... ... @@ -1596,22 +1651,22 @@ export const postOrderErpCaptchaGetImgCaptchaCode = /* #__PURE__ */ (() =&gt; {
1596 1651 return request;
1597 1652 })();
1598 1653  
1599   -/** @description request parameter type for postOrderErpCaptchaSendCaptchaCode */
1600   -export interface PostOrderErpCaptchaSendCaptchaCodeOption {
  1654 +/** @description request parameter type for postOrderErpAuditLogListByPage */
  1655 +export interface PostOrderErpAuditLogListByPageOption {
1601 1656 /**
1602 1657 * @description
1603   - * msgVo
  1658 + * orderAuditLogQueryVO
1604 1659 */
1605 1660 body: {
1606 1661 /**
1607 1662 @description
1608   - msgVo */
1609   - msgVo: CaptchaMessageVO;
  1663 + orderAuditLogQueryVO */
  1664 + orderAuditLogQueryVO: OrderAuditLogQueryVO;
1610 1665 };
1611 1666 }
1612 1667  
1613   -/** @description response type for postOrderErpCaptchaSendCaptchaCode */
1614   -export interface PostOrderErpCaptchaSendCaptchaCodeResponse {
  1668 +/** @description response type for postOrderErpAuditLogListByPage */
  1669 +export interface PostOrderErpAuditLogListByPageResponse {
1615 1670 /**
1616 1671 * @description
1617 1672 * OK
... ... @@ -1639,25 +1694,25 @@ export interface PostOrderErpCaptchaSendCaptchaCodeResponse {
1639 1694 404: any;
1640 1695 }
1641 1696  
1642   -export type PostOrderErpCaptchaSendCaptchaCodeResponseSuccess =
1643   - PostOrderErpCaptchaSendCaptchaCodeResponse[200];
  1697 +export type PostOrderErpAuditLogListByPageResponseSuccess =
  1698 + PostOrderErpAuditLogListByPageResponse[200];
1644 1699 /**
1645 1700 * @description
1646   - * 获取验证码
1647   - * @tags 验证码
  1701 + * 分页查询
  1702 + * @tags 用户订单审批日志
1648 1703 * @produces *
1649 1704 * @consumes application/json
1650 1705 */
1651   -export const postOrderErpCaptchaSendCaptchaCode = /* #__PURE__ */ (() => {
  1706 +export const postOrderErpAuditLogListByPage = /* #__PURE__ */ (() => {
1652 1707 const method = 'post';
1653   - const url = '/order/erp/captcha/send_captcha_code';
  1708 + const url = '/order/erp/audit/log/list_by_page';
1654 1709 function request(
1655   - option: PostOrderErpCaptchaSendCaptchaCodeOption,
1656   - ): Promise<PostOrderErpCaptchaSendCaptchaCodeResponseSuccess> {
  1710 + option: PostOrderErpAuditLogListByPageOption,
  1711 + ): Promise<PostOrderErpAuditLogListByPageResponseSuccess> {
1657 1712 return requester(request.url, {
1658 1713 method: request.method,
1659 1714 ...option,
1660   - }) as unknown as Promise<PostOrderErpCaptchaSendCaptchaCodeResponseSuccess>;
  1715 + }) as unknown as Promise<PostOrderErpAuditLogListByPageResponseSuccess>;
1661 1716 }
1662 1717  
1663 1718 /** http method */
... ... @@ -1667,22 +1722,22 @@ export const postOrderErpCaptchaSendCaptchaCode = /* #__PURE__ */ (() =&gt; {
1667 1722 return request;
1668 1723 })();
1669 1724  
1670   -/** @description request parameter type for putOrderErpDepts */
1671   -export interface PutOrderErpDeptsOption {
  1725 +/** @description request parameter type for postOrderErpAuditLogQueryById */
  1726 +export interface PostOrderErpAuditLogQueryByIdOption {
1672 1727 /**
1673 1728 * @description
1674   - * deptVO
  1729 + * orderAuditLogQueryVO
1675 1730 */
1676 1731 body: {
1677 1732 /**
1678 1733 @description
1679   - deptVO */
1680   - deptVO: AdminDeptVO;
  1734 + orderAuditLogQueryVO */
  1735 + orderAuditLogQueryVO: OrderAuditLogQueryVO;
1681 1736 };
1682 1737 }
1683 1738  
1684   -/** @description response type for putOrderErpDepts */
1685   -export interface PutOrderErpDeptsResponse {
  1739 +/** @description response type for postOrderErpAuditLogQueryById */
  1740 +export interface PostOrderErpAuditLogQueryByIdResponse {
1686 1741 /**
1687 1742 * @description
1688 1743 * OK
... ... @@ -1710,24 +1765,25 @@ export interface PutOrderErpDeptsResponse {
1710 1765 404: any;
1711 1766 }
1712 1767  
1713   -export type PutOrderErpDeptsResponseSuccess = PutOrderErpDeptsResponse[200];
  1768 +export type PostOrderErpAuditLogQueryByIdResponseSuccess =
  1769 + PostOrderErpAuditLogQueryByIdResponse[200];
1714 1770 /**
1715 1771 * @description
1716   - * 修改部门
1717   - * @tags 系统:部门管理
  1772 + * 通过主键查询单条数据
  1773 + * @tags 用户订单审批日志
1718 1774 * @produces *
1719 1775 * @consumes application/json
1720 1776 */
1721   -export const putOrderErpDepts = /* #__PURE__ */ (() => {
1722   - const method = 'put';
1723   - const url = '/order/erp/depts';
  1777 +export const postOrderErpAuditLogQueryById = /* #__PURE__ */ (() => {
  1778 + const method = 'post';
  1779 + const url = '/order/erp/audit/log/query_by_id';
1724 1780 function request(
1725   - option: PutOrderErpDeptsOption,
1726   - ): Promise<PutOrderErpDeptsResponseSuccess> {
  1781 + option: PostOrderErpAuditLogQueryByIdOption,
  1782 + ): Promise<PostOrderErpAuditLogQueryByIdResponseSuccess> {
1727 1783 return requester(request.url, {
1728 1784 method: request.method,
1729 1785 ...option,
1730   - }) as unknown as Promise<PutOrderErpDeptsResponseSuccess>;
  1786 + }) as unknown as Promise<PostOrderErpAuditLogQueryByIdResponseSuccess>;
1731 1787 }
1732 1788  
1733 1789 /** http method */
... ... @@ -1737,8 +1793,8 @@ export const putOrderErpDepts = /* #__PURE__ */ (() =&gt; {
1737 1793 return request;
1738 1794 })();
1739 1795  
1740   -/** @description request parameter type for deleteOrderErpDepts */
1741   -export interface DeleteOrderErpDeptsOption {
  1796 +/** @description request parameter type for postOrderErpAuditWaitAuditList */
  1797 +export interface PostOrderErpAuditWaitAuditListOption {
1742 1798 /**
1743 1799 * @description
1744 1800 * queryVO
... ... @@ -1747,12 +1803,12 @@ export interface DeleteOrderErpDeptsOption {
1747 1803 /**
1748 1804 @description
1749 1805 queryVO */
1750   - queryVO: AdminDeptQueryVO;
  1806 + queryVO: OrderFieldLockApplyQueryVO;
1751 1807 };
1752 1808 }
1753 1809  
1754   -/** @description response type for deleteOrderErpDepts */
1755   -export interface DeleteOrderErpDeptsResponse {
  1810 +/** @description response type for postOrderErpAuditWaitAuditList */
  1811 +export interface PostOrderErpAuditWaitAuditListResponse {
1756 1812 /**
1757 1813 * @description
1758 1814 * OK
... ... @@ -1760,9 +1816,9 @@ export interface DeleteOrderErpDeptsResponse {
1760 1816 200: ServerResult;
1761 1817 /**
1762 1818 * @description
1763   - * No Content
  1819 + * Created
1764 1820 */
1765   - 204: any;
  1821 + 201: any;
1766 1822 /**
1767 1823 * @description
1768 1824 * Unauthorized
... ... @@ -1773,26 +1829,32 @@ export interface DeleteOrderErpDeptsResponse {
1773 1829 * Forbidden
1774 1830 */
1775 1831 403: any;
  1832 + /**
  1833 + * @description
  1834 + * Not Found
  1835 + */
  1836 + 404: any;
1776 1837 }
1777 1838  
1778   -export type DeleteOrderErpDeptsResponseSuccess =
1779   - DeleteOrderErpDeptsResponse[200];
  1839 +export type PostOrderErpAuditWaitAuditListResponseSuccess =
  1840 + PostOrderErpAuditWaitAuditListResponse[200];
1780 1841 /**
1781 1842 * @description
1782   - * 删除部门
1783   - * @tags 系统:部门管理
  1843 + * 待审批列表
  1844 + * @tags 审批管理
1784 1845 * @produces *
  1846 + * @consumes application/json
1785 1847 */
1786   -export const deleteOrderErpDepts = /* #__PURE__ */ (() => {
1787   - const method = 'delete';
1788   - const url = '/order/erp/depts';
  1848 +export const postOrderErpAuditWaitAuditList = /* #__PURE__ */ (() => {
  1849 + const method = 'post';
  1850 + const url = '/order/erp/audit/wait_audit_list';
1789 1851 function request(
1790   - option: DeleteOrderErpDeptsOption,
1791   - ): Promise<DeleteOrderErpDeptsResponseSuccess> {
  1852 + option: PostOrderErpAuditWaitAuditListOption,
  1853 + ): Promise<PostOrderErpAuditWaitAuditListResponseSuccess> {
1792 1854 return requester(request.url, {
1793 1855 method: request.method,
1794 1856 ...option,
1795   - }) as unknown as Promise<DeleteOrderErpDeptsResponseSuccess>;
  1857 + }) as unknown as Promise<PostOrderErpAuditWaitAuditListResponseSuccess>;
1796 1858 }
1797 1859  
1798 1860 /** http method */
... ... @@ -1802,22 +1864,22 @@ export const deleteOrderErpDepts = /* #__PURE__ */ (() =&gt; {
1802 1864 return request;
1803 1865 })();
1804 1866  
1805   -/** @description request parameter type for postOrderErpDeptsAdd */
1806   -export interface PostOrderErpDeptsAddOption {
  1867 +/** @description request parameter type for postOrderErpAuthLoginByPhone */
  1868 +export interface PostOrderErpAuthLoginByPhoneOption {
1807 1869 /**
1808 1870 * @description
1809   - * deptVO
  1871 + * loginByPhoneVO
1810 1872 */
1811 1873 body: {
1812 1874 /**
1813 1875 @description
1814   - deptVO */
1815   - deptVO: AdminDeptVO;
  1876 + loginByPhoneVO */
  1877 + loginByPhoneVO: AdminUserLoginByPhoneVO;
1816 1878 };
1817 1879 }
1818 1880  
1819   -/** @description response type for postOrderErpDeptsAdd */
1820   -export interface PostOrderErpDeptsAddResponse {
  1881 +/** @description response type for postOrderErpAuthLoginByPhone */
  1882 +export interface PostOrderErpAuthLoginByPhoneResponse {
1821 1883 /**
1822 1884 * @description
1823 1885 * OK
... ... @@ -1845,25 +1907,25 @@ export interface PostOrderErpDeptsAddResponse {
1845 1907 404: any;
1846 1908 }
1847 1909  
1848   -export type PostOrderErpDeptsAddResponseSuccess =
1849   - PostOrderErpDeptsAddResponse[200];
  1910 +export type PostOrderErpAuthLoginByPhoneResponseSuccess =
  1911 + PostOrderErpAuthLoginByPhoneResponse[200];
1850 1912 /**
1851 1913 * @description
1852   - * 新增部门
1853   - * @tags 系统:部门管理
  1914 + * 手机登录
  1915 + * @tags login-controller
1854 1916 * @produces *
1855 1917 * @consumes application/json
1856 1918 */
1857   -export const postOrderErpDeptsAdd = /* #__PURE__ */ (() => {
  1919 +export const postOrderErpAuthLoginByPhone = /* #__PURE__ */ (() => {
1858 1920 const method = 'post';
1859   - const url = '/order/erp/depts/add';
  1921 + const url = '/order/erp/auth/login_by_phone';
1860 1922 function request(
1861   - option: PostOrderErpDeptsAddOption,
1862   - ): Promise<PostOrderErpDeptsAddResponseSuccess> {
  1923 + option: PostOrderErpAuthLoginByPhoneOption,
  1924 + ): Promise<PostOrderErpAuthLoginByPhoneResponseSuccess> {
1863 1925 return requester(request.url, {
1864 1926 method: request.method,
1865 1927 ...option,
1866   - }) as unknown as Promise<PostOrderErpDeptsAddResponseSuccess>;
  1928 + }) as unknown as Promise<PostOrderErpAuthLoginByPhoneResponseSuccess>;
1867 1929 }
1868 1930  
1869 1931 /** http method */
... ... @@ -1873,22 +1935,22 @@ export const postOrderErpDeptsAdd = /* #__PURE__ */ (() =&gt; {
1873 1935 return request;
1874 1936 })();
1875 1937  
1876   -/** @description request parameter type for postOrderErpDeptsListByPage */
1877   -export interface PostOrderErpDeptsListByPageOption {
  1938 +/** @description request parameter type for postOrderErpAuthLoginByPwd */
  1939 +export interface PostOrderErpAuthLoginByPwdOption {
1878 1940 /**
1879 1941 * @description
1880   - * queryVO
  1942 + * loginByPwdVO
1881 1943 */
1882 1944 body: {
1883 1945 /**
1884 1946 @description
1885   - queryVO */
1886   - queryVO: AdminDeptQueryVO;
  1947 + loginByPwdVO */
  1948 + loginByPwdVO: AdminUserLoginByPwdVO;
1887 1949 };
1888 1950 }
1889 1951  
1890   -/** @description response type for postOrderErpDeptsListByPage */
1891   -export interface PostOrderErpDeptsListByPageResponse {
  1952 +/** @description response type for postOrderErpAuthLoginByPwd */
  1953 +export interface PostOrderErpAuthLoginByPwdResponse {
1892 1954 /**
1893 1955 * @description
1894 1956 * OK
... ... @@ -1916,25 +1978,25 @@ export interface PostOrderErpDeptsListByPageResponse {
1916 1978 404: any;
1917 1979 }
1918 1980  
1919   -export type PostOrderErpDeptsListByPageResponseSuccess =
1920   - PostOrderErpDeptsListByPageResponse[200];
  1981 +export type PostOrderErpAuthLoginByPwdResponseSuccess =
  1982 + PostOrderErpAuthLoginByPwdResponse[200];
1921 1983 /**
1922 1984 * @description
1923   - * 查询部门
1924   - * @tags 系统:部门管理
  1985 + * 用户登录
  1986 + * @tags login-controller
1925 1987 * @produces *
1926 1988 * @consumes application/json
1927 1989 */
1928   -export const postOrderErpDeptsListByPage = /* #__PURE__ */ (() => {
  1990 +export const postOrderErpAuthLoginByPwd = /* #__PURE__ */ (() => {
1929 1991 const method = 'post';
1930   - const url = '/order/erp/depts/list_by_page';
  1992 + const url = '/order/erp/auth/login_by_pwd';
1931 1993 function request(
1932   - option: PostOrderErpDeptsListByPageOption,
1933   - ): Promise<PostOrderErpDeptsListByPageResponseSuccess> {
  1994 + option: PostOrderErpAuthLoginByPwdOption,
  1995 + ): Promise<PostOrderErpAuthLoginByPwdResponseSuccess> {
1934 1996 return requester(request.url, {
1935 1997 method: request.method,
1936 1998 ...option,
1937   - }) as unknown as Promise<PostOrderErpDeptsListByPageResponseSuccess>;
  1999 + }) as unknown as Promise<PostOrderErpAuthLoginByPwdResponseSuccess>;
1938 2000 }
1939 2001  
1940 2002 /** http method */
... ... @@ -1944,22 +2006,8 @@ export const postOrderErpDeptsListByPage = /* #__PURE__ */ (() =&gt; {
1944 2006 return request;
1945 2007 })();
1946 2008  
1947   -/** @description request parameter type for postOrderErpDictionaryAdd */
1948   -export interface PostOrderErpDictionaryAddOption {
1949   - /**
1950   - * @description
1951   - * dictionaryVO
1952   - */
1953   - body: {
1954   - /**
1955   - @description
1956   - dictionaryVO */
1957   - dictionaryVO: DictionaryVO;
1958   - };
1959   -}
1960   -
1961   -/** @description response type for postOrderErpDictionaryAdd */
1962   -export interface PostOrderErpDictionaryAddResponse {
  2009 +/** @description response type for postOrderErpAuthLoginOut */
  2010 +export interface PostOrderErpAuthLoginOutResponse {
1963 2011 /**
1964 2012 * @description
1965 2013 * OK
... ... @@ -1987,25 +2035,22 @@ export interface PostOrderErpDictionaryAddResponse {
1987 2035 404: any;
1988 2036 }
1989 2037  
1990   -export type PostOrderErpDictionaryAddResponseSuccess =
1991   - PostOrderErpDictionaryAddResponse[200];
  2038 +export type PostOrderErpAuthLoginOutResponseSuccess =
  2039 + PostOrderErpAuthLoginOutResponse[200];
1992 2040 /**
1993 2041 * @description
1994   - * 新增字典
1995   - * @tags 系统:字典管理
  2042 + * 退出登录
  2043 + * @tags login-controller
1996 2044 * @produces *
1997 2045 * @consumes application/json
1998 2046 */
1999   -export const postOrderErpDictionaryAdd = /* #__PURE__ */ (() => {
  2047 +export const postOrderErpAuthLoginOut = /* #__PURE__ */ (() => {
2000 2048 const method = 'post';
2001   - const url = '/order/erp/dictionary/add';
2002   - function request(
2003   - option: PostOrderErpDictionaryAddOption,
2004   - ): Promise<PostOrderErpDictionaryAddResponseSuccess> {
  2049 + const url = '/order/erp/auth/login_out';
  2050 + function request(): Promise<PostOrderErpAuthLoginOutResponseSuccess> {
2005 2051 return requester(request.url, {
2006 2052 method: request.method,
2007   - ...option,
2008   - }) as unknown as Promise<PostOrderErpDictionaryAddResponseSuccess>;
  2053 + }) as unknown as Promise<PostOrderErpAuthLoginOutResponseSuccess>;
2009 2054 }
2010 2055  
2011 2056 /** http method */
... ... @@ -2015,22 +2060,22 @@ export const postOrderErpDictionaryAdd = /* #__PURE__ */ (() =&gt; {
2015 2060 return request;
2016 2061 })();
2017 2062  
2018   -/** @description request parameter type for postOrderErpDictionaryDelete */
2019   -export interface PostOrderErpDictionaryDeleteOption {
  2063 +/** @description request parameter type for postOrderErpAuthPasswordModify */
  2064 +export interface PostOrderErpAuthPasswordModifyOption {
2020 2065 /**
2021 2066 * @description
2022   - * queryVO
  2067 + * modifyPwdVO
2023 2068 */
2024 2069 body: {
2025 2070 /**
2026 2071 @description
2027   - queryVO */
2028   - queryVO: DictionaryQueryVO;
  2072 + modifyPwdVO */
  2073 + modifyPwdVO: AdminUserModifyPwdVO;
2029 2074 };
2030 2075 }
2031 2076  
2032   -/** @description response type for postOrderErpDictionaryDelete */
2033   -export interface PostOrderErpDictionaryDeleteResponse {
  2077 +/** @description response type for postOrderErpAuthPasswordModify */
  2078 +export interface PostOrderErpAuthPasswordModifyResponse {
2034 2079 /**
2035 2080 * @description
2036 2081 * OK
... ... @@ -2058,25 +2103,25 @@ export interface PostOrderErpDictionaryDeleteResponse {
2058 2103 404: any;
2059 2104 }
2060 2105  
2061   -export type PostOrderErpDictionaryDeleteResponseSuccess =
2062   - PostOrderErpDictionaryDeleteResponse[200];
  2106 +export type PostOrderErpAuthPasswordModifyResponseSuccess =
  2107 + PostOrderErpAuthPasswordModifyResponse[200];
2063 2108 /**
2064 2109 * @description
2065   - * 删除字典
2066   - * @tags 系统:字典管理
  2110 + * 用户登录
  2111 + * @tags login-controller
2067 2112 * @produces *
2068 2113 * @consumes application/json
2069 2114 */
2070   -export const postOrderErpDictionaryDelete = /* #__PURE__ */ (() => {
  2115 +export const postOrderErpAuthPasswordModify = /* #__PURE__ */ (() => {
2071 2116 const method = 'post';
2072   - const url = '/order/erp/dictionary/delete';
  2117 + const url = '/order/erp/auth/password_modify';
2073 2118 function request(
2074   - option: PostOrderErpDictionaryDeleteOption,
2075   - ): Promise<PostOrderErpDictionaryDeleteResponseSuccess> {
  2119 + option: PostOrderErpAuthPasswordModifyOption,
  2120 + ): Promise<PostOrderErpAuthPasswordModifyResponseSuccess> {
2076 2121 return requester(request.url, {
2077 2122 method: request.method,
2078 2123 ...option,
2079   - }) as unknown as Promise<PostOrderErpDictionaryDeleteResponseSuccess>;
  2124 + }) as unknown as Promise<PostOrderErpAuthPasswordModifyResponseSuccess>;
2080 2125 }
2081 2126  
2082 2127 /** http method */
... ... @@ -2086,22 +2131,22 @@ export const postOrderErpDictionaryDelete = /* #__PURE__ */ (() =&gt; {
2086 2131 return request;
2087 2132 })();
2088 2133  
2089   -/** @description request parameter type for postOrderErpDictionaryEdit */
2090   -export interface PostOrderErpDictionaryEditOption {
  2134 +/** @description request parameter type for postOrderErpAuthPhoneRegister */
  2135 +export interface PostOrderErpAuthPhoneRegisterOption {
2091 2136 /**
2092 2137 * @description
2093   - * dictionaryVO
  2138 + * registerVO
2094 2139 */
2095 2140 body: {
2096 2141 /**
2097 2142 @description
2098   - dictionaryVO */
2099   - dictionaryVO: DictionaryVO;
  2143 + registerVO */
  2144 + registerVO: AdminUserRegisterVO;
2100 2145 };
2101 2146 }
2102 2147  
2103   -/** @description response type for postOrderErpDictionaryEdit */
2104   -export interface PostOrderErpDictionaryEditResponse {
  2148 +/** @description response type for postOrderErpAuthPhoneRegister */
  2149 +export interface PostOrderErpAuthPhoneRegisterResponse {
2105 2150 /**
2106 2151 * @description
2107 2152 * OK
... ... @@ -2129,25 +2174,25 @@ export interface PostOrderErpDictionaryEditResponse {
2129 2174 404: any;
2130 2175 }
2131 2176  
2132   -export type PostOrderErpDictionaryEditResponseSuccess =
2133   - PostOrderErpDictionaryEditResponse[200];
  2177 +export type PostOrderErpAuthPhoneRegisterResponseSuccess =
  2178 + PostOrderErpAuthPhoneRegisterResponse[200];
2134 2179 /**
2135 2180 * @description
2136   - * 修改字典
2137   - * @tags 系统:字典管理
  2181 + * 手机注册
  2182 + * @tags login-controller
2138 2183 * @produces *
2139 2184 * @consumes application/json
2140 2185 */
2141   -export const postOrderErpDictionaryEdit = /* #__PURE__ */ (() => {
  2186 +export const postOrderErpAuthPhoneRegister = /* #__PURE__ */ (() => {
2142 2187 const method = 'post';
2143   - const url = '/order/erp/dictionary/edit';
  2188 + const url = '/order/erp/auth/phone_register';
2144 2189 function request(
2145   - option: PostOrderErpDictionaryEditOption,
2146   - ): Promise<PostOrderErpDictionaryEditResponseSuccess> {
  2190 + option: PostOrderErpAuthPhoneRegisterOption,
  2191 + ): Promise<PostOrderErpAuthPhoneRegisterResponseSuccess> {
2147 2192 return requester(request.url, {
2148 2193 method: request.method,
2149 2194 ...option,
2150   - }) as unknown as Promise<PostOrderErpDictionaryEditResponseSuccess>;
  2195 + }) as unknown as Promise<PostOrderErpAuthPhoneRegisterResponseSuccess>;
2151 2196 }
2152 2197  
2153 2198 /** http method */
... ... @@ -2157,22 +2202,22 @@ export const postOrderErpDictionaryEdit = /* #__PURE__ */ (() =&gt; {
2157 2202 return request;
2158 2203 })();
2159 2204  
2160   -/** @description request parameter type for postOrderErpDictionaryGetAll */
2161   -export interface PostOrderErpDictionaryGetAllOption {
  2205 +/** @description request parameter type for postOrderErpAuthSendPasswordRecoverMail */
  2206 +export interface PostOrderErpAuthSendPasswordRecoverMailOption {
2162 2207 /**
2163 2208 * @description
2164   - * queryVO
  2209 + * recoverEmailVO
2165 2210 */
2166 2211 body: {
2167 2212 /**
2168 2213 @description
2169   - queryVO */
2170   - queryVO: DictionaryQueryVO;
  2214 + recoverEmailVO */
  2215 + recoverEmailVO: AdminUserPasswordRecoverEmailVO;
2171 2216 };
2172 2217 }
2173 2218  
2174   -/** @description response type for postOrderErpDictionaryGetAll */
2175   -export interface PostOrderErpDictionaryGetAllResponse {
  2219 +/** @description response type for postOrderErpAuthSendPasswordRecoverMail */
  2220 +export interface PostOrderErpAuthSendPasswordRecoverMailResponse {
2176 2221 /**
2177 2222 * @description
2178 2223 * OK
... ... @@ -2200,25 +2245,25 @@ export interface PostOrderErpDictionaryGetAllResponse {
2200 2245 404: any;
2201 2246 }
2202 2247  
2203   -export type PostOrderErpDictionaryGetAllResponseSuccess =
2204   - PostOrderErpDictionaryGetAllResponse[200];
  2248 +export type PostOrderErpAuthSendPasswordRecoverMailResponseSuccess =
  2249 + PostOrderErpAuthSendPasswordRecoverMailResponse[200];
2205 2250 /**
2206 2251 * @description
2207   - * 获取所有字典
2208   - * @tags 系统:字典管理
  2252 + * sendPasswordRecoverMail
  2253 + * @tags login-controller
2209 2254 * @produces *
2210 2255 * @consumes application/json
2211 2256 */
2212   -export const postOrderErpDictionaryGetAll = /* #__PURE__ */ (() => {
  2257 +export const postOrderErpAuthSendPasswordRecoverMail = /* #__PURE__ */ (() => {
2213 2258 const method = 'post';
2214   - const url = '/order/erp/dictionary/get_all';
  2259 + const url = '/order/erp/auth/send_password_recover_mail';
2215 2260 function request(
2216   - option: PostOrderErpDictionaryGetAllOption,
2217   - ): Promise<PostOrderErpDictionaryGetAllResponseSuccess> {
  2261 + option: PostOrderErpAuthSendPasswordRecoverMailOption,
  2262 + ): Promise<PostOrderErpAuthSendPasswordRecoverMailResponseSuccess> {
2218 2263 return requester(request.url, {
2219 2264 method: request.method,
2220 2265 ...option,
2221   - }) as unknown as Promise<PostOrderErpDictionaryGetAllResponseSuccess>;
  2266 + }) as unknown as Promise<PostOrderErpAuthSendPasswordRecoverMailResponseSuccess>;
2222 2267 }
2223 2268  
2224 2269 /** http method */
... ... @@ -2228,22 +2273,8 @@ export const postOrderErpDictionaryGetAll = /* #__PURE__ */ (() =&gt; {
2228 2273 return request;
2229 2274 })();
2230 2275  
2231   -/** @description request parameter type for postOrderErpDictionaryListByPage */
2232   -export interface PostOrderErpDictionaryListByPageOption {
2233   - /**
2234   - * @description
2235   - * queryVO
2236   - */
2237   - body: {
2238   - /**
2239   - @description
2240   - queryVO */
2241   - queryVO: DictionaryQueryVO;
2242   - };
2243   -}
2244   -
2245   -/** @description response type for postOrderErpDictionaryListByPage */
2246   -export interface PostOrderErpDictionaryListByPageResponse {
  2276 +/** @description response type for postOrderErpCaptchaGetImgCaptchaCode */
  2277 +export interface PostOrderErpCaptchaGetImgCaptchaCodeResponse {
2247 2278 /**
2248 2279 * @description
2249 2280 * OK
... ... @@ -2271,25 +2302,22 @@ export interface PostOrderErpDictionaryListByPageResponse {
2271 2302 404: any;
2272 2303 }
2273 2304  
2274   -export type PostOrderErpDictionaryListByPageResponseSuccess =
2275   - PostOrderErpDictionaryListByPageResponse[200];
  2305 +export type PostOrderErpCaptchaGetImgCaptchaCodeResponseSuccess =
  2306 + PostOrderErpCaptchaGetImgCaptchaCodeResponse[200];
2276 2307 /**
2277 2308 * @description
2278   - * 查询字典列表
2279   - * @tags 系统:字典管理
  2309 + * 获取图片验证码
  2310 + * @tags 验证码
2280 2311 * @produces *
2281 2312 * @consumes application/json
2282 2313 */
2283   -export const postOrderErpDictionaryListByPage = /* #__PURE__ */ (() => {
  2314 +export const postOrderErpCaptchaGetImgCaptchaCode = /* #__PURE__ */ (() => {
2284 2315 const method = 'post';
2285   - const url = '/order/erp/dictionary/list_by_page';
2286   - function request(
2287   - option: PostOrderErpDictionaryListByPageOption,
2288   - ): Promise<PostOrderErpDictionaryListByPageResponseSuccess> {
  2316 + const url = '/order/erp/captcha/get_img_captcha_code';
  2317 + function request(): Promise<PostOrderErpCaptchaGetImgCaptchaCodeResponseSuccess> {
2289 2318 return requester(request.url, {
2290 2319 method: request.method,
2291   - ...option,
2292   - }) as unknown as Promise<PostOrderErpDictionaryListByPageResponseSuccess>;
  2320 + }) as unknown as Promise<PostOrderErpCaptchaGetImgCaptchaCodeResponseSuccess>;
2293 2321 }
2294 2322  
2295 2323 /** http method */
... ... @@ -2299,8 +2327,22 @@ export const postOrderErpDictionaryListByPage = /* #__PURE__ */ (() =&gt; {
2299 2327 return request;
2300 2328 })();
2301 2329  
2302   -/** @description response type for getOrderErpIndexChartData */
2303   -export interface GetOrderErpIndexChartDataResponse {
  2330 +/** @description request parameter type for postOrderErpCaptchaSendCaptchaCode */
  2331 +export interface PostOrderErpCaptchaSendCaptchaCodeOption {
  2332 + /**
  2333 + * @description
  2334 + * msgVo
  2335 + */
  2336 + body: {
  2337 + /**
  2338 + @description
  2339 + msgVo */
  2340 + msgVo: CaptchaMessageVO;
  2341 + };
  2342 +}
  2343 +
  2344 +/** @description response type for postOrderErpCaptchaSendCaptchaCode */
  2345 +export interface PostOrderErpCaptchaSendCaptchaCodeResponse {
2304 2346 /**
2305 2347 * @description
2306 2348 * OK
... ... @@ -2308,6 +2350,11 @@ export interface GetOrderErpIndexChartDataResponse {
2308 2350 200: ServerResult;
2309 2351 /**
2310 2352 * @description
  2353 + * Created
  2354 + */
  2355 + 201: any;
  2356 + /**
  2357 + * @description
2311 2358 * Unauthorized
2312 2359 */
2313 2360 401: any;
... ... @@ -2323,21 +2370,25 @@ export interface GetOrderErpIndexChartDataResponse {
2323 2370 404: any;
2324 2371 }
2325 2372  
2326   -export type GetOrderErpIndexChartDataResponseSuccess =
2327   - GetOrderErpIndexChartDataResponse[200];
  2373 +export type PostOrderErpCaptchaSendCaptchaCodeResponseSuccess =
  2374 + PostOrderErpCaptchaSendCaptchaCodeResponse[200];
2328 2375 /**
2329 2376 * @description
2330   - * 首页订单趋势
2331   - * @tags 首页
  2377 + * 获取验证码
  2378 + * @tags 验证码
2332 2379 * @produces *
  2380 + * @consumes application/json
2333 2381 */
2334   -export const getOrderErpIndexChartData = /* #__PURE__ */ (() => {
2335   - const method = 'get';
2336   - const url = '/order/erp/index/chartData';
2337   - function request(): Promise<GetOrderErpIndexChartDataResponseSuccess> {
  2382 +export const postOrderErpCaptchaSendCaptchaCode = /* #__PURE__ */ (() => {
  2383 + const method = 'post';
  2384 + const url = '/order/erp/captcha/send_captcha_code';
  2385 + function request(
  2386 + option: PostOrderErpCaptchaSendCaptchaCodeOption,
  2387 + ): Promise<PostOrderErpCaptchaSendCaptchaCodeResponseSuccess> {
2338 2388 return requester(request.url, {
2339 2389 method: request.method,
2340   - }) as unknown as Promise<GetOrderErpIndexChartDataResponseSuccess>;
  2390 + ...option,
  2391 + }) as unknown as Promise<PostOrderErpCaptchaSendCaptchaCodeResponseSuccess>;
2341 2392 }
2342 2393  
2343 2394 /** http method */
... ... @@ -2347,8 +2398,22 @@ export const getOrderErpIndexChartData = /* #__PURE__ */ (() =&gt; {
2347 2398 return request;
2348 2399 })();
2349 2400  
2350   -/** @description response type for getOrderErpIndexData */
2351   -export interface GetOrderErpIndexDataResponse {
  2401 +/** @description request parameter type for putOrderErpDepts */
  2402 +export interface PutOrderErpDeptsOption {
  2403 + /**
  2404 + * @description
  2405 + * deptVO
  2406 + */
  2407 + body: {
  2408 + /**
  2409 + @description
  2410 + deptVO */
  2411 + deptVO: AdminDeptVO;
  2412 + };
  2413 +}
  2414 +
  2415 +/** @description response type for putOrderErpDepts */
  2416 +export interface PutOrderErpDeptsResponse {
2352 2417 /**
2353 2418 * @description
2354 2419 * OK
... ... @@ -2356,6 +2421,11 @@ export interface GetOrderErpIndexDataResponse {
2356 2421 200: ServerResult;
2357 2422 /**
2358 2423 * @description
  2424 + * Created
  2425 + */
  2426 + 201: any;
  2427 + /**
  2428 + * @description
2359 2429 * Unauthorized
2360 2430 */
2361 2431 401: any;
... ... @@ -2371,21 +2441,24 @@ export interface GetOrderErpIndexDataResponse {
2371 2441 404: any;
2372 2442 }
2373 2443  
2374   -export type GetOrderErpIndexDataResponseSuccess =
2375   - GetOrderErpIndexDataResponse[200];
  2444 +export type PutOrderErpDeptsResponseSuccess = PutOrderErpDeptsResponse[200];
2376 2445 /**
2377 2446 * @description
2378   - * 首页统计数据
2379   - * @tags 首页
  2447 + * 修改部门
  2448 + * @tags 系统:部门管理
2380 2449 * @produces *
  2450 + * @consumes application/json
2381 2451 */
2382   -export const getOrderErpIndexData = /* #__PURE__ */ (() => {
2383   - const method = 'get';
2384   - const url = '/order/erp/index/data';
2385   - function request(): Promise<GetOrderErpIndexDataResponseSuccess> {
  2452 +export const putOrderErpDepts = /* #__PURE__ */ (() => {
  2453 + const method = 'put';
  2454 + const url = '/order/erp/depts';
  2455 + function request(
  2456 + option: PutOrderErpDeptsOption,
  2457 + ): Promise<PutOrderErpDeptsResponseSuccess> {
2386 2458 return requester(request.url, {
2387 2459 method: request.method,
2388   - }) as unknown as Promise<GetOrderErpIndexDataResponseSuccess>;
  2460 + ...option,
  2461 + }) as unknown as Promise<PutOrderErpDeptsResponseSuccess>;
2389 2462 }
2390 2463  
2391 2464 /** http method */
... ... @@ -2395,22 +2468,22 @@ export const getOrderErpIndexData = /* #__PURE__ */ (() =&gt; {
2395 2468 return request;
2396 2469 })();
2397 2470  
2398   -/** @description request parameter type for postOrderErpJobsAdd */
2399   -export interface PostOrderErpJobsAddOption {
  2471 +/** @description request parameter type for deleteOrderErpDepts */
  2472 +export interface DeleteOrderErpDeptsOption {
2400 2473 /**
2401 2474 * @description
2402   - * jobVO
  2475 + * queryVO
2403 2476 */
2404 2477 body: {
2405 2478 /**
2406 2479 @description
2407   - jobVO */
2408   - jobVO: AdminJobVO;
  2480 + queryVO */
  2481 + queryVO: AdminDeptQueryVO;
2409 2482 };
2410 2483 }
2411 2484  
2412   -/** @description response type for postOrderErpJobsAdd */
2413   -export interface PostOrderErpJobsAddResponse {
  2485 +/** @description response type for deleteOrderErpDepts */
  2486 +export interface DeleteOrderErpDeptsResponse {
2414 2487 /**
2415 2488 * @description
2416 2489 * OK
... ... @@ -2418,9 +2491,9 @@ export interface PostOrderErpJobsAddResponse {
2418 2491 200: ServerResult;
2419 2492 /**
2420 2493 * @description
2421   - * Created
  2494 + * No Content
2422 2495 */
2423   - 201: any;
  2496 + 204: any;
2424 2497 /**
2425 2498 * @description
2426 2499 * Unauthorized
... ... @@ -2431,32 +2504,26 @@ export interface PostOrderErpJobsAddResponse {
2431 2504 * Forbidden
2432 2505 */
2433 2506 403: any;
2434   - /**
2435   - * @description
2436   - * Not Found
2437   - */
2438   - 404: any;
2439 2507 }
2440 2508  
2441   -export type PostOrderErpJobsAddResponseSuccess =
2442   - PostOrderErpJobsAddResponse[200];
  2509 +export type DeleteOrderErpDeptsResponseSuccess =
  2510 + DeleteOrderErpDeptsResponse[200];
2443 2511 /**
2444 2512 * @description
2445   - * 新增岗位
2446   - * @tags 系统:岗位管理
  2513 + * 删除部门
  2514 + * @tags 系统:部门管理
2447 2515 * @produces *
2448   - * @consumes application/json
2449 2516 */
2450   -export const postOrderErpJobsAdd = /* #__PURE__ */ (() => {
2451   - const method = 'post';
2452   - const url = '/order/erp/jobs/add';
  2517 +export const deleteOrderErpDepts = /* #__PURE__ */ (() => {
  2518 + const method = 'delete';
  2519 + const url = '/order/erp/depts';
2453 2520 function request(
2454   - option: PostOrderErpJobsAddOption,
2455   - ): Promise<PostOrderErpJobsAddResponseSuccess> {
  2521 + option: DeleteOrderErpDeptsOption,
  2522 + ): Promise<DeleteOrderErpDeptsResponseSuccess> {
2456 2523 return requester(request.url, {
2457 2524 method: request.method,
2458 2525 ...option,
2459   - }) as unknown as Promise<PostOrderErpJobsAddResponseSuccess>;
  2526 + }) as unknown as Promise<DeleteOrderErpDeptsResponseSuccess>;
2460 2527 }
2461 2528  
2462 2529 /** http method */
... ... @@ -2466,22 +2533,22 @@ export const postOrderErpJobsAdd = /* #__PURE__ */ (() =&gt; {
2466 2533 return request;
2467 2534 })();
2468 2535  
2469   -/** @description request parameter type for postOrderErpJobsDelete */
2470   -export interface PostOrderErpJobsDeleteOption {
  2536 +/** @description request parameter type for postOrderErpDeptsAdd */
  2537 +export interface PostOrderErpDeptsAddOption {
2471 2538 /**
2472 2539 * @description
2473   - * queryVO
  2540 + * deptVO
2474 2541 */
2475 2542 body: {
2476 2543 /**
2477 2544 @description
2478   - queryVO */
2479   - queryVO: AdminJobQueryVO;
  2545 + deptVO */
  2546 + deptVO: AdminDeptVO;
2480 2547 };
2481 2548 }
2482 2549  
2483   -/** @description response type for postOrderErpJobsDelete */
2484   -export interface PostOrderErpJobsDeleteResponse {
  2550 +/** @description response type for postOrderErpDeptsAdd */
  2551 +export interface PostOrderErpDeptsAddResponse {
2485 2552 /**
2486 2553 * @description
2487 2554 * OK
... ... @@ -2509,25 +2576,25 @@ export interface PostOrderErpJobsDeleteResponse {
2509 2576 404: any;
2510 2577 }
2511 2578  
2512   -export type PostOrderErpJobsDeleteResponseSuccess =
2513   - PostOrderErpJobsDeleteResponse[200];
  2579 +export type PostOrderErpDeptsAddResponseSuccess =
  2580 + PostOrderErpDeptsAddResponse[200];
2514 2581 /**
2515 2582 * @description
2516   - * 删除岗位
2517   - * @tags 系统:岗位管理
  2583 + * 新增部门
  2584 + * @tags 系统:部门管理
2518 2585 * @produces *
2519 2586 * @consumes application/json
2520 2587 */
2521   -export const postOrderErpJobsDelete = /* #__PURE__ */ (() => {
  2588 +export const postOrderErpDeptsAdd = /* #__PURE__ */ (() => {
2522 2589 const method = 'post';
2523   - const url = '/order/erp/jobs/delete';
  2590 + const url = '/order/erp/depts/add';
2524 2591 function request(
2525   - option: PostOrderErpJobsDeleteOption,
2526   - ): Promise<PostOrderErpJobsDeleteResponseSuccess> {
  2592 + option: PostOrderErpDeptsAddOption,
  2593 + ): Promise<PostOrderErpDeptsAddResponseSuccess> {
2527 2594 return requester(request.url, {
2528 2595 method: request.method,
2529 2596 ...option,
2530   - }) as unknown as Promise<PostOrderErpJobsDeleteResponseSuccess>;
  2597 + }) as unknown as Promise<PostOrderErpDeptsAddResponseSuccess>;
2531 2598 }
2532 2599  
2533 2600 /** http method */
... ... @@ -2537,22 +2604,22 @@ export const postOrderErpJobsDelete = /* #__PURE__ */ (() =&gt; {
2537 2604 return request;
2538 2605 })();
2539 2606  
2540   -/** @description request parameter type for postOrderErpJobsEdit */
2541   -export interface PostOrderErpJobsEditOption {
  2607 +/** @description request parameter type for postOrderErpDeptsListByPage */
  2608 +export interface PostOrderErpDeptsListByPageOption {
2542 2609 /**
2543 2610 * @description
2544   - * jobVO
  2611 + * queryVO
2545 2612 */
2546 2613 body: {
2547 2614 /**
2548 2615 @description
2549   - jobVO */
2550   - jobVO: AdminJobVO;
  2616 + queryVO */
  2617 + queryVO: AdminDeptQueryVO;
2551 2618 };
2552 2619 }
2553 2620  
2554   -/** @description response type for postOrderErpJobsEdit */
2555   -export interface PostOrderErpJobsEditResponse {
  2621 +/** @description response type for postOrderErpDeptsListByPage */
  2622 +export interface PostOrderErpDeptsListByPageResponse {
2556 2623 /**
2557 2624 * @description
2558 2625 * OK
... ... @@ -2580,25 +2647,25 @@ export interface PostOrderErpJobsEditResponse {
2580 2647 404: any;
2581 2648 }
2582 2649  
2583   -export type PostOrderErpJobsEditResponseSuccess =
2584   - PostOrderErpJobsEditResponse[200];
  2650 +export type PostOrderErpDeptsListByPageResponseSuccess =
  2651 + PostOrderErpDeptsListByPageResponse[200];
2585 2652 /**
2586 2653 * @description
2587   - * 修改岗位
2588   - * @tags 系统:岗位管理
  2654 + * 查询部门
  2655 + * @tags 系统:部门管理
2589 2656 * @produces *
2590 2657 * @consumes application/json
2591 2658 */
2592   -export const postOrderErpJobsEdit = /* #__PURE__ */ (() => {
  2659 +export const postOrderErpDeptsListByPage = /* #__PURE__ */ (() => {
2593 2660 const method = 'post';
2594   - const url = '/order/erp/jobs/edit';
  2661 + const url = '/order/erp/depts/list_by_page';
2595 2662 function request(
2596   - option: PostOrderErpJobsEditOption,
2597   - ): Promise<PostOrderErpJobsEditResponseSuccess> {
  2663 + option: PostOrderErpDeptsListByPageOption,
  2664 + ): Promise<PostOrderErpDeptsListByPageResponseSuccess> {
2598 2665 return requester(request.url, {
2599 2666 method: request.method,
2600 2667 ...option,
2601   - }) as unknown as Promise<PostOrderErpJobsEditResponseSuccess>;
  2668 + }) as unknown as Promise<PostOrderErpDeptsListByPageResponseSuccess>;
2602 2669 }
2603 2670  
2604 2671 /** http method */
... ... @@ -2608,22 +2675,22 @@ export const postOrderErpJobsEdit = /* #__PURE__ */ (() =&gt; {
2608 2675 return request;
2609 2676 })();
2610 2677  
2611   -/** @description request parameter type for postOrderErpJobsListByPage */
2612   -export interface PostOrderErpJobsListByPageOption {
  2678 +/** @description request parameter type for postOrderErpDictionaryAdd */
  2679 +export interface PostOrderErpDictionaryAddOption {
2613 2680 /**
2614 2681 * @description
2615   - * queryVO
  2682 + * dictionaryVO
2616 2683 */
2617 2684 body: {
2618 2685 /**
2619 2686 @description
2620   - queryVO */
2621   - queryVO: AdminJobQueryVO;
  2687 + dictionaryVO */
  2688 + dictionaryVO: DictionaryVO;
2622 2689 };
2623 2690 }
2624 2691  
2625   -/** @description response type for postOrderErpJobsListByPage */
2626   -export interface PostOrderErpJobsListByPageResponse {
  2692 +/** @description response type for postOrderErpDictionaryAdd */
  2693 +export interface PostOrderErpDictionaryAddResponse {
2627 2694 /**
2628 2695 * @description
2629 2696 * OK
... ... @@ -2651,25 +2718,25 @@ export interface PostOrderErpJobsListByPageResponse {
2651 2718 404: any;
2652 2719 }
2653 2720  
2654   -export type PostOrderErpJobsListByPageResponseSuccess =
2655   - PostOrderErpJobsListByPageResponse[200];
  2721 +export type PostOrderErpDictionaryAddResponseSuccess =
  2722 + PostOrderErpDictionaryAddResponse[200];
2656 2723 /**
2657 2724 * @description
2658   - * 查询岗位
2659   - * @tags 系统:岗位管理
  2725 + * 新增字典
  2726 + * @tags 系统:字典管理
2660 2727 * @produces *
2661 2728 * @consumes application/json
2662 2729 */
2663   -export const postOrderErpJobsListByPage = /* #__PURE__ */ (() => {
  2730 +export const postOrderErpDictionaryAdd = /* #__PURE__ */ (() => {
2664 2731 const method = 'post';
2665   - const url = '/order/erp/jobs/list_by_page';
  2732 + const url = '/order/erp/dictionary/add';
2666 2733 function request(
2667   - option: PostOrderErpJobsListByPageOption,
2668   - ): Promise<PostOrderErpJobsListByPageResponseSuccess> {
  2734 + option: PostOrderErpDictionaryAddOption,
  2735 + ): Promise<PostOrderErpDictionaryAddResponseSuccess> {
2669 2736 return requester(request.url, {
2670 2737 method: request.method,
2671 2738 ...option,
2672   - }) as unknown as Promise<PostOrderErpJobsListByPageResponseSuccess>;
  2739 + }) as unknown as Promise<PostOrderErpDictionaryAddResponseSuccess>;
2673 2740 }
2674 2741  
2675 2742 /** http method */
... ... @@ -2679,22 +2746,22 @@ export const postOrderErpJobsListByPage = /* #__PURE__ */ (() =&gt; {
2679 2746 return request;
2680 2747 })();
2681 2748  
2682   -/** @description request parameter type for postOrderErpLogsList */
2683   -export interface PostOrderErpLogsListOption {
  2749 +/** @description request parameter type for postOrderErpDictionaryDelete */
  2750 +export interface PostOrderErpDictionaryDeleteOption {
2684 2751 /**
2685 2752 * @description
2686   - * sysLogQueryVO
  2753 + * queryVO
2687 2754 */
2688 2755 body: {
2689 2756 /**
2690 2757 @description
2691   - sysLogQueryVO */
2692   - sysLogQueryVO: SysLogQueryVO;
  2758 + queryVO */
  2759 + queryVO: DictionaryQueryVO;
2693 2760 };
2694 2761 }
2695 2762  
2696   -/** @description response type for postOrderErpLogsList */
2697   -export interface PostOrderErpLogsListResponse {
  2763 +/** @description response type for postOrderErpDictionaryDelete */
  2764 +export interface PostOrderErpDictionaryDeleteResponse {
2698 2765 /**
2699 2766 * @description
2700 2767 * OK
... ... @@ -2722,25 +2789,25 @@ export interface PostOrderErpLogsListResponse {
2722 2789 404: any;
2723 2790 }
2724 2791  
2725   -export type PostOrderErpLogsListResponseSuccess =
2726   - PostOrderErpLogsListResponse[200];
  2792 +export type PostOrderErpDictionaryDeleteResponseSuccess =
  2793 + PostOrderErpDictionaryDeleteResponse[200];
2727 2794 /**
2728 2795 * @description
2729   - * 分页查询
2730   - * @tags 系统日志
  2796 + * 删除字典
  2797 + * @tags 系统:字典管理
2731 2798 * @produces *
2732 2799 * @consumes application/json
2733 2800 */
2734   -export const postOrderErpLogsList = /* #__PURE__ */ (() => {
  2801 +export const postOrderErpDictionaryDelete = /* #__PURE__ */ (() => {
2735 2802 const method = 'post';
2736   - const url = '/order/erp/logs/list';
  2803 + const url = '/order/erp/dictionary/delete';
2737 2804 function request(
2738   - option: PostOrderErpLogsListOption,
2739   - ): Promise<PostOrderErpLogsListResponseSuccess> {
  2805 + option: PostOrderErpDictionaryDeleteOption,
  2806 + ): Promise<PostOrderErpDictionaryDeleteResponseSuccess> {
2740 2807 return requester(request.url, {
2741 2808 method: request.method,
2742 2809 ...option,
2743   - }) as unknown as Promise<PostOrderErpLogsListResponseSuccess>;
  2810 + }) as unknown as Promise<PostOrderErpDictionaryDeleteResponseSuccess>;
2744 2811 }
2745 2812  
2746 2813 /** http method */
... ... @@ -2750,22 +2817,22 @@ export const postOrderErpLogsList = /* #__PURE__ */ (() =&gt; {
2750 2817 return request;
2751 2818 })();
2752 2819  
2753   -/** @description request parameter type for postOrderErpMenusAdd */
2754   -export interface PostOrderErpMenusAddOption {
  2820 +/** @description request parameter type for postOrderErpDictionaryEdit */
  2821 +export interface PostOrderErpDictionaryEditOption {
2755 2822 /**
2756 2823 * @description
2757   - * menuVO
  2824 + * dictionaryVO
2758 2825 */
2759 2826 body: {
2760 2827 /**
2761 2828 @description
2762   - menuVO */
2763   - menuVO: AdminMenuVO;
  2829 + dictionaryVO */
  2830 + dictionaryVO: DictionaryVO;
2764 2831 };
2765 2832 }
2766 2833  
2767   -/** @description response type for postOrderErpMenusAdd */
2768   -export interface PostOrderErpMenusAddResponse {
  2834 +/** @description response type for postOrderErpDictionaryEdit */
  2835 +export interface PostOrderErpDictionaryEditResponse {
2769 2836 /**
2770 2837 * @description
2771 2838 * OK
... ... @@ -2793,25 +2860,25 @@ export interface PostOrderErpMenusAddResponse {
2793 2860 404: any;
2794 2861 }
2795 2862  
2796   -export type PostOrderErpMenusAddResponseSuccess =
2797   - PostOrderErpMenusAddResponse[200];
  2863 +export type PostOrderErpDictionaryEditResponseSuccess =
  2864 + PostOrderErpDictionaryEditResponse[200];
2798 2865 /**
2799 2866 * @description
2800   - * 新增菜单
2801   - * @tags 系统:菜单管理
  2867 + * 修改字典
  2868 + * @tags 系统:字典管理
2802 2869 * @produces *
2803 2870 * @consumes application/json
2804 2871 */
2805   -export const postOrderErpMenusAdd = /* #__PURE__ */ (() => {
  2872 +export const postOrderErpDictionaryEdit = /* #__PURE__ */ (() => {
2806 2873 const method = 'post';
2807   - const url = '/order/erp/menus/add';
  2874 + const url = '/order/erp/dictionary/edit';
2808 2875 function request(
2809   - option: PostOrderErpMenusAddOption,
2810   - ): Promise<PostOrderErpMenusAddResponseSuccess> {
  2876 + option: PostOrderErpDictionaryEditOption,
  2877 + ): Promise<PostOrderErpDictionaryEditResponseSuccess> {
2811 2878 return requester(request.url, {
2812 2879 method: request.method,
2813 2880 ...option,
2814   - }) as unknown as Promise<PostOrderErpMenusAddResponseSuccess>;
  2881 + }) as unknown as Promise<PostOrderErpDictionaryEditResponseSuccess>;
2815 2882 }
2816 2883  
2817 2884 /** http method */
... ... @@ -2821,8 +2888,8 @@ export const postOrderErpMenusAdd = /* #__PURE__ */ (() =&gt; {
2821 2888 return request;
2822 2889 })();
2823 2890  
2824   -/** @description request parameter type for postOrderErpMenusAll */
2825   -export interface PostOrderErpMenusAllOption {
  2891 +/** @description request parameter type for postOrderErpDictionaryGetAll */
  2892 +export interface PostOrderErpDictionaryGetAllOption {
2826 2893 /**
2827 2894 * @description
2828 2895 * queryVO
... ... @@ -2831,12 +2898,12 @@ export interface PostOrderErpMenusAllOption {
2831 2898 /**
2832 2899 @description
2833 2900 queryVO */
2834   - queryVO: AdminMenuQueryVO;
  2901 + queryVO: DictionaryQueryVO;
2835 2902 };
2836 2903 }
2837 2904  
2838   -/** @description response type for postOrderErpMenusAll */
2839   -export interface PostOrderErpMenusAllResponse {
  2905 +/** @description response type for postOrderErpDictionaryGetAll */
  2906 +export interface PostOrderErpDictionaryGetAllResponse {
2840 2907 /**
2841 2908 * @description
2842 2909 * OK
... ... @@ -2864,25 +2931,25 @@ export interface PostOrderErpMenusAllResponse {
2864 2931 404: any;
2865 2932 }
2866 2933  
2867   -export type PostOrderErpMenusAllResponseSuccess =
2868   - PostOrderErpMenusAllResponse[200];
  2934 +export type PostOrderErpDictionaryGetAllResponseSuccess =
  2935 + PostOrderErpDictionaryGetAllResponse[200];
2869 2936 /**
2870 2937 * @description
2871   - * 查询菜单
2872   - * @tags 系统:菜单管理
  2938 + * 获取所有字典
  2939 + * @tags 系统:字典管理
2873 2940 * @produces *
2874 2941 * @consumes application/json
2875 2942 */
2876   -export const postOrderErpMenusAll = /* #__PURE__ */ (() => {
  2943 +export const postOrderErpDictionaryGetAll = /* #__PURE__ */ (() => {
2877 2944 const method = 'post';
2878   - const url = '/order/erp/menus/all';
  2945 + const url = '/order/erp/dictionary/get_all';
2879 2946 function request(
2880   - option: PostOrderErpMenusAllOption,
2881   - ): Promise<PostOrderErpMenusAllResponseSuccess> {
  2947 + option: PostOrderErpDictionaryGetAllOption,
  2948 + ): Promise<PostOrderErpDictionaryGetAllResponseSuccess> {
2882 2949 return requester(request.url, {
2883 2950 method: request.method,
2884 2951 ...option,
2885   - }) as unknown as Promise<PostOrderErpMenusAllResponseSuccess>;
  2952 + }) as unknown as Promise<PostOrderErpDictionaryGetAllResponseSuccess>;
2886 2953 }
2887 2954  
2888 2955 /** http method */
... ... @@ -2892,8 +2959,22 @@ export const postOrderErpMenusAll = /* #__PURE__ */ (() =&gt; {
2892 2959 return request;
2893 2960 })();
2894 2961  
2895   -/** @description response type for postOrderErpMenusBuild */
2896   -export interface PostOrderErpMenusBuildResponse {
  2962 +/** @description request parameter type for postOrderErpDictionaryListByPage */
  2963 +export interface PostOrderErpDictionaryListByPageOption {
  2964 + /**
  2965 + * @description
  2966 + * queryVO
  2967 + */
  2968 + body: {
  2969 + /**
  2970 + @description
  2971 + queryVO */
  2972 + queryVO: DictionaryQueryVO;
  2973 + };
  2974 +}
  2975 +
  2976 +/** @description response type for postOrderErpDictionaryListByPage */
  2977 +export interface PostOrderErpDictionaryListByPageResponse {
2897 2978 /**
2898 2979 * @description
2899 2980 * OK
... ... @@ -2921,22 +3002,25 @@ export interface PostOrderErpMenusBuildResponse {
2921 3002 404: any;
2922 3003 }
2923 3004  
2924   -export type PostOrderErpMenusBuildResponseSuccess =
2925   - PostOrderErpMenusBuildResponse[200];
  3005 +export type PostOrderErpDictionaryListByPageResponseSuccess =
  3006 + PostOrderErpDictionaryListByPageResponse[200];
2926 3007 /**
2927 3008 * @description
2928   - * 获取前端所需菜单
2929   - * @tags 系统:菜单管理
  3009 + * 查询字典列表
  3010 + * @tags 系统:字典管理
2930 3011 * @produces *
2931 3012 * @consumes application/json
2932 3013 */
2933   -export const postOrderErpMenusBuild = /* #__PURE__ */ (() => {
  3014 +export const postOrderErpDictionaryListByPage = /* #__PURE__ */ (() => {
2934 3015 const method = 'post';
2935   - const url = '/order/erp/menus/build';
2936   - function request(): Promise<PostOrderErpMenusBuildResponseSuccess> {
  3016 + const url = '/order/erp/dictionary/list_by_page';
  3017 + function request(
  3018 + option: PostOrderErpDictionaryListByPageOption,
  3019 + ): Promise<PostOrderErpDictionaryListByPageResponseSuccess> {
2937 3020 return requester(request.url, {
2938 3021 method: request.method,
2939   - }) as unknown as Promise<PostOrderErpMenusBuildResponseSuccess>;
  3022 + ...option,
  3023 + }) as unknown as Promise<PostOrderErpDictionaryListByPageResponseSuccess>;
2940 3024 }
2941 3025  
2942 3026 /** http method */
... ... @@ -2946,22 +3030,8 @@ export const postOrderErpMenusBuild = /* #__PURE__ */ (() =&gt; {
2946 3030 return request;
2947 3031 })();
2948 3032  
2949   -/** @description request parameter type for postOrderErpMenusDelete */
2950   -export interface PostOrderErpMenusDeleteOption {
2951   - /**
2952   - * @description
2953   - * queryVO
2954   - */
2955   - body: {
2956   - /**
2957   - @description
2958   - queryVO */
2959   - queryVO: AdminMenuQueryVO;
2960   - };
2961   -}
2962   -
2963   -/** @description response type for postOrderErpMenusDelete */
2964   -export interface PostOrderErpMenusDeleteResponse {
  3033 +/** @description response type for getOrderErpIndexChartData */
  3034 +export interface GetOrderErpIndexChartDataResponse {
2965 3035 /**
2966 3036 * @description
2967 3037 * OK
... ... @@ -2969,11 +3039,6 @@ export interface PostOrderErpMenusDeleteResponse {
2969 3039 200: ServerResult;
2970 3040 /**
2971 3041 * @description
2972   - * Created
2973   - */
2974   - 201: any;
2975   - /**
2976   - * @description
2977 3042 * Unauthorized
2978 3043 */
2979 3044 401: any;
... ... @@ -2989,25 +3054,21 @@ export interface PostOrderErpMenusDeleteResponse {
2989 3054 404: any;
2990 3055 }
2991 3056  
2992   -export type PostOrderErpMenusDeleteResponseSuccess =
2993   - PostOrderErpMenusDeleteResponse[200];
  3057 +export type GetOrderErpIndexChartDataResponseSuccess =
  3058 + GetOrderErpIndexChartDataResponse[200];
2994 3059 /**
2995 3060 * @description
2996   - * 删除菜单
2997   - * @tags 系统:菜单管理
  3061 + * 首页订单趋势
  3062 + * @tags 首页
2998 3063 * @produces *
2999   - * @consumes application/json
3000 3064 */
3001   -export const postOrderErpMenusDelete = /* #__PURE__ */ (() => {
3002   - const method = 'post';
3003   - const url = '/order/erp/menus/delete';
3004   - function request(
3005   - option: PostOrderErpMenusDeleteOption,
3006   - ): Promise<PostOrderErpMenusDeleteResponseSuccess> {
  3065 +export const getOrderErpIndexChartData = /* #__PURE__ */ (() => {
  3066 + const method = 'get';
  3067 + const url = '/order/erp/index/chartData';
  3068 + function request(): Promise<GetOrderErpIndexChartDataResponseSuccess> {
3007 3069 return requester(request.url, {
3008 3070 method: request.method,
3009   - ...option,
3010   - }) as unknown as Promise<PostOrderErpMenusDeleteResponseSuccess>;
  3071 + }) as unknown as Promise<GetOrderErpIndexChartDataResponseSuccess>;
3011 3072 }
3012 3073  
3013 3074 /** http method */
... ... @@ -3017,22 +3078,8 @@ export const postOrderErpMenusDelete = /* #__PURE__ */ (() =&gt; {
3017 3078 return request;
3018 3079 })();
3019 3080  
3020   -/** @description request parameter type for postOrderErpMenusEdit */
3021   -export interface PostOrderErpMenusEditOption {
3022   - /**
3023   - * @description
3024   - * menuVO
3025   - */
3026   - body: {
3027   - /**
3028   - @description
3029   - menuVO */
3030   - menuVO: AdminMenuVO;
3031   - };
3032   -}
3033   -
3034   -/** @description response type for postOrderErpMenusEdit */
3035   -export interface PostOrderErpMenusEditResponse {
  3081 +/** @description response type for getOrderErpIndexData */
  3082 +export interface GetOrderErpIndexDataResponse {
3036 3083 /**
3037 3084 * @description
3038 3085 * OK
... ... @@ -3040,11 +3087,6 @@ export interface PostOrderErpMenusEditResponse {
3040 3087 200: ServerResult;
3041 3088 /**
3042 3089 * @description
3043   - * Created
3044   - */
3045   - 201: any;
3046   - /**
3047   - * @description
3048 3090 * Unauthorized
3049 3091 */
3050 3092 401: any;
... ... @@ -3060,25 +3102,21 @@ export interface PostOrderErpMenusEditResponse {
3060 3102 404: any;
3061 3103 }
3062 3104  
3063   -export type PostOrderErpMenusEditResponseSuccess =
3064   - PostOrderErpMenusEditResponse[200];
  3105 +export type GetOrderErpIndexDataResponseSuccess =
  3106 + GetOrderErpIndexDataResponse[200];
3065 3107 /**
3066 3108 * @description
3067   - * 修改菜单
3068   - * @tags 系统:菜单管理
  3109 + * 首页统计数据
  3110 + * @tags 首页
3069 3111 * @produces *
3070   - * @consumes application/json
3071 3112 */
3072   -export const postOrderErpMenusEdit = /* #__PURE__ */ (() => {
3073   - const method = 'post';
3074   - const url = '/order/erp/menus/edit';
3075   - function request(
3076   - option: PostOrderErpMenusEditOption,
3077   - ): Promise<PostOrderErpMenusEditResponseSuccess> {
  3113 +export const getOrderErpIndexData = /* #__PURE__ */ (() => {
  3114 + const method = 'get';
  3115 + const url = '/order/erp/index/data';
  3116 + function request(): Promise<GetOrderErpIndexDataResponseSuccess> {
3078 3117 return requester(request.url, {
3079 3118 method: request.method,
3080   - ...option,
3081   - }) as unknown as Promise<PostOrderErpMenusEditResponseSuccess>;
  3119 + }) as unknown as Promise<GetOrderErpIndexDataResponseSuccess>;
3082 3120 }
3083 3121  
3084 3122 /** http method */
... ... @@ -3088,8 +3126,22 @@ export const postOrderErpMenusEdit = /* #__PURE__ */ (() =&gt; {
3088 3126 return request;
3089 3127 })();
3090 3128  
3091   -/** @description response type for postOrderErpMenusTree */
3092   -export interface PostOrderErpMenusTreeResponse {
  3129 +/** @description request parameter type for postOrderErpJobsAdd */
  3130 +export interface PostOrderErpJobsAddOption {
  3131 + /**
  3132 + * @description
  3133 + * jobVO
  3134 + */
  3135 + body: {
  3136 + /**
  3137 + @description
  3138 + jobVO */
  3139 + jobVO: AdminJobVO;
  3140 + };
  3141 +}
  3142 +
  3143 +/** @description response type for postOrderErpJobsAdd */
  3144 +export interface PostOrderErpJobsAddResponse {
3093 3145 /**
3094 3146 * @description
3095 3147 * OK
... ... @@ -3117,22 +3169,25 @@ export interface PostOrderErpMenusTreeResponse {
3117 3169 404: any;
3118 3170 }
3119 3171  
3120   -export type PostOrderErpMenusTreeResponseSuccess =
3121   - PostOrderErpMenusTreeResponse[200];
  3172 +export type PostOrderErpJobsAddResponseSuccess =
  3173 + PostOrderErpJobsAddResponse[200];
3122 3174 /**
3123 3175 * @description
3124   - * 返回全部的菜单
3125   - * @tags 系统:菜单管理
  3176 + * 新增岗位
  3177 + * @tags 系统:岗位管理
3126 3178 * @produces *
3127 3179 * @consumes application/json
3128 3180 */
3129   -export const postOrderErpMenusTree = /* #__PURE__ */ (() => {
  3181 +export const postOrderErpJobsAdd = /* #__PURE__ */ (() => {
3130 3182 const method = 'post';
3131   - const url = '/order/erp/menus/tree';
3132   - function request(): Promise<PostOrderErpMenusTreeResponseSuccess> {
  3183 + const url = '/order/erp/jobs/add';
  3184 + function request(
  3185 + option: PostOrderErpJobsAddOption,
  3186 + ): Promise<PostOrderErpJobsAddResponseSuccess> {
3133 3187 return requester(request.url, {
3134 3188 method: request.method,
3135   - }) as unknown as Promise<PostOrderErpMenusTreeResponseSuccess>;
  3189 + ...option,
  3190 + }) as unknown as Promise<PostOrderErpJobsAddResponseSuccess>;
3136 3191 }
3137 3192  
3138 3193 /** http method */
... ... @@ -3142,8 +3197,8 @@ export const postOrderErpMenusTree = /* #__PURE__ */ (() =&gt; {
3142 3197 return request;
3143 3198 })();
3144 3199  
3145   -/** @description request parameter type for postOrderErpOptLogListByPage */
3146   -export interface PostOrderErpOptLogListByPageOption {
  3200 +/** @description request parameter type for postOrderErpJobsDelete */
  3201 +export interface PostOrderErpJobsDeleteOption {
3147 3202 /**
3148 3203 * @description
3149 3204 * queryVO
... ... @@ -3152,12 +3207,12 @@ export interface PostOrderErpOptLogListByPageOption {
3152 3207 /**
3153 3208 @description
3154 3209 queryVO */
3155   - queryVO: OrderOptLogQueryVO;
  3210 + queryVO: AdminJobQueryVO;
3156 3211 };
3157 3212 }
3158 3213  
3159   -/** @description response type for postOrderErpOptLogListByPage */
3160   -export interface PostOrderErpOptLogListByPageResponse {
  3214 +/** @description response type for postOrderErpJobsDelete */
  3215 +export interface PostOrderErpJobsDeleteResponse {
3161 3216 /**
3162 3217 * @description
3163 3218 * OK
... ... @@ -3185,25 +3240,25 @@ export interface PostOrderErpOptLogListByPageResponse {
3185 3240 404: any;
3186 3241 }
3187 3242  
3188   -export type PostOrderErpOptLogListByPageResponseSuccess =
3189   - PostOrderErpOptLogListByPageResponse[200];
  3243 +export type PostOrderErpJobsDeleteResponseSuccess =
  3244 + PostOrderErpJobsDeleteResponse[200];
3190 3245 /**
3191 3246 * @description
3192   - * 分页查询
3193   - * @tags 订单操作日志
  3247 + * 删除岗位
  3248 + * @tags 系统:岗位管理
3194 3249 * @produces *
3195 3250 * @consumes application/json
3196 3251 */
3197   -export const postOrderErpOptLogListByPage = /* #__PURE__ */ (() => {
  3252 +export const postOrderErpJobsDelete = /* #__PURE__ */ (() => {
3198 3253 const method = 'post';
3199   - const url = '/order/erp/opt/log/list_by_page';
  3254 + const url = '/order/erp/jobs/delete';
3200 3255 function request(
3201   - option: PostOrderErpOptLogListByPageOption,
3202   - ): Promise<PostOrderErpOptLogListByPageResponseSuccess> {
  3256 + option: PostOrderErpJobsDeleteOption,
  3257 + ): Promise<PostOrderErpJobsDeleteResponseSuccess> {
3203 3258 return requester(request.url, {
3204 3259 method: request.method,
3205 3260 ...option,
3206   - }) as unknown as Promise<PostOrderErpOptLogListByPageResponseSuccess>;
  3261 + }) as unknown as Promise<PostOrderErpJobsDeleteResponseSuccess>;
3207 3262 }
3208 3263  
3209 3264 /** http method */
... ... @@ -3213,22 +3268,22 @@ export const postOrderErpOptLogListByPage = /* #__PURE__ */ (() =&gt; {
3213 3268 return request;
3214 3269 })();
3215 3270  
3216   -/** @description request parameter type for postOrderErpOrderAdd */
3217   -export interface PostOrderErpOrderAddOption {
  3271 +/** @description request parameter type for postOrderErpJobsEdit */
  3272 +export interface PostOrderErpJobsEditOption {
3218 3273 /**
3219 3274 * @description
3220   - * orderAddVO
  3275 + * jobVO
3221 3276 */
3222 3277 body: {
3223 3278 /**
3224 3279 @description
3225   - orderAddVO */
3226   - orderAddVO: OrderAddVO;
  3280 + jobVO */
  3281 + jobVO: AdminJobVO;
3227 3282 };
3228 3283 }
3229 3284  
3230   -/** @description response type for postOrderErpOrderAdd */
3231   -export interface PostOrderErpOrderAddResponse {
  3285 +/** @description response type for postOrderErpJobsEdit */
  3286 +export interface PostOrderErpJobsEditResponse {
3232 3287 /**
3233 3288 * @description
3234 3289 * OK
... ... @@ -3256,25 +3311,25 @@ export interface PostOrderErpOrderAddResponse {
3256 3311 404: any;
3257 3312 }
3258 3313  
3259   -export type PostOrderErpOrderAddResponseSuccess =
3260   - PostOrderErpOrderAddResponse[200];
  3314 +export type PostOrderErpJobsEditResponseSuccess =
  3315 + PostOrderErpJobsEditResponse[200];
3261 3316 /**
3262 3317 * @description
3263   - * 新增数据
3264   - * @tags 订单管理
  3318 + * 修改岗位
  3319 + * @tags 系统:岗位管理
3265 3320 * @produces *
3266 3321 * @consumes application/json
3267 3322 */
3268   -export const postOrderErpOrderAdd = /* #__PURE__ */ (() => {
  3323 +export const postOrderErpJobsEdit = /* #__PURE__ */ (() => {
3269 3324 const method = 'post';
3270   - const url = '/order/erp/order/add';
  3325 + const url = '/order/erp/jobs/edit';
3271 3326 function request(
3272   - option: PostOrderErpOrderAddOption,
3273   - ): Promise<PostOrderErpOrderAddResponseSuccess> {
  3327 + option: PostOrderErpJobsEditOption,
  3328 + ): Promise<PostOrderErpJobsEditResponseSuccess> {
3274 3329 return requester(request.url, {
3275 3330 method: request.method,
3276 3331 ...option,
3277   - }) as unknown as Promise<PostOrderErpOrderAddResponseSuccess>;
  3332 + }) as unknown as Promise<PostOrderErpJobsEditResponseSuccess>;
3278 3333 }
3279 3334  
3280 3335 /** http method */
... ... @@ -3284,22 +3339,22 @@ export const postOrderErpOrderAdd = /* #__PURE__ */ (() =&gt; {
3284 3339 return request;
3285 3340 })();
3286 3341  
3287   -/** @description request parameter type for postOrderErpOrderDeleteById */
3288   -export interface PostOrderErpOrderDeleteByIdOption {
  3342 +/** @description request parameter type for postOrderErpJobsListByPage */
  3343 +export interface PostOrderErpJobsListByPageOption {
3289 3344 /**
3290 3345 * @description
3291   - * orderBaseInfoQueryVO
  3346 + * queryVO
3292 3347 */
3293 3348 body: {
3294 3349 /**
3295 3350 @description
3296   - orderBaseInfoQueryVO */
3297   - orderBaseInfoQueryVO: OrderBaseInfoQueryVO;
  3351 + queryVO */
  3352 + queryVO: AdminJobQueryVO;
3298 3353 };
3299 3354 }
3300 3355  
3301   -/** @description response type for postOrderErpOrderDeleteById */
3302   -export interface PostOrderErpOrderDeleteByIdResponse {
  3356 +/** @description response type for postOrderErpJobsListByPage */
  3357 +export interface PostOrderErpJobsListByPageResponse {
3303 3358 /**
3304 3359 * @description
3305 3360 * OK
... ... @@ -3327,25 +3382,25 @@ export interface PostOrderErpOrderDeleteByIdResponse {
3327 3382 404: any;
3328 3383 }
3329 3384  
3330   -export type PostOrderErpOrderDeleteByIdResponseSuccess =
3331   - PostOrderErpOrderDeleteByIdResponse[200];
  3385 +export type PostOrderErpJobsListByPageResponseSuccess =
  3386 + PostOrderErpJobsListByPageResponse[200];
3332 3387 /**
3333 3388 * @description
3334   - * 删除数据
3335   - * @tags 订单管理
  3389 + * 查询岗位
  3390 + * @tags 系统:岗位管理
3336 3391 * @produces *
3337 3392 * @consumes application/json
3338 3393 */
3339   -export const postOrderErpOrderDeleteById = /* #__PURE__ */ (() => {
  3394 +export const postOrderErpJobsListByPage = /* #__PURE__ */ (() => {
3340 3395 const method = 'post';
3341   - const url = '/order/erp/order/delete_by_id';
  3396 + const url = '/order/erp/jobs/list_by_page';
3342 3397 function request(
3343   - option: PostOrderErpOrderDeleteByIdOption,
3344   - ): Promise<PostOrderErpOrderDeleteByIdResponseSuccess> {
  3398 + option: PostOrderErpJobsListByPageOption,
  3399 + ): Promise<PostOrderErpJobsListByPageResponseSuccess> {
3345 3400 return requester(request.url, {
3346 3401 method: request.method,
3347 3402 ...option,
3348   - }) as unknown as Promise<PostOrderErpOrderDeleteByIdResponseSuccess>;
  3403 + }) as unknown as Promise<PostOrderErpJobsListByPageResponseSuccess>;
3349 3404 }
3350 3405  
3351 3406 /** http method */
... ... @@ -3355,22 +3410,22 @@ export const postOrderErpOrderDeleteById = /* #__PURE__ */ (() =&gt; {
3355 3410 return request;
3356 3411 })();
3357 3412  
3358   -/** @description request parameter type for postOrderErpOrderEdit */
3359   -export interface PostOrderErpOrderEditOption {
  3413 +/** @description request parameter type for postOrderErpLogsList */
  3414 +export interface PostOrderErpLogsListOption {
3360 3415 /**
3361 3416 * @description
3362   - * updateVO
  3417 + * sysLogQueryVO
3363 3418 */
3364 3419 body: {
3365 3420 /**
3366 3421 @description
3367   - updateVO */
3368   - updateVO: OrderUpdateVO;
  3422 + sysLogQueryVO */
  3423 + sysLogQueryVO: SysLogQueryVO;
3369 3424 };
3370 3425 }
3371 3426  
3372   -/** @description response type for postOrderErpOrderEdit */
3373   -export interface PostOrderErpOrderEditResponse {
  3427 +/** @description response type for postOrderErpLogsList */
  3428 +export interface PostOrderErpLogsListResponse {
3374 3429 /**
3375 3430 * @description
3376 3431 * OK
... ... @@ -3398,25 +3453,25 @@ export interface PostOrderErpOrderEditResponse {
3398 3453 404: any;
3399 3454 }
3400 3455  
3401   -export type PostOrderErpOrderEditResponseSuccess =
3402   - PostOrderErpOrderEditResponse[200];
  3456 +export type PostOrderErpLogsListResponseSuccess =
  3457 + PostOrderErpLogsListResponse[200];
3403 3458 /**
3404 3459 * @description
3405   - * 编辑数据
3406   - * @tags 订单管理
  3460 + * 分页查询
  3461 + * @tags 系统日志
3407 3462 * @produces *
3408 3463 * @consumes application/json
3409 3464 */
3410   -export const postOrderErpOrderEdit = /* #__PURE__ */ (() => {
  3465 +export const postOrderErpLogsList = /* #__PURE__ */ (() => {
3411 3466 const method = 'post';
3412   - const url = '/order/erp/order/edit';
  3467 + const url = '/order/erp/logs/list';
3413 3468 function request(
3414   - option: PostOrderErpOrderEditOption,
3415   - ): Promise<PostOrderErpOrderEditResponseSuccess> {
  3469 + option: PostOrderErpLogsListOption,
  3470 + ): Promise<PostOrderErpLogsListResponseSuccess> {
3416 3471 return requester(request.url, {
3417 3472 method: request.method,
3418 3473 ...option,
3419   - }) as unknown as Promise<PostOrderErpOrderEditResponseSuccess>;
  3474 + }) as unknown as Promise<PostOrderErpLogsListResponseSuccess>;
3420 3475 }
3421 3476  
3422 3477 /** http method */
... ... @@ -3426,22 +3481,22 @@ export const postOrderErpOrderEdit = /* #__PURE__ */ (() =&gt; {
3426 3481 return request;
3427 3482 })();
3428 3483  
3429   -/** @description request parameter type for postOrderErpOrderExport */
3430   -export interface PostOrderErpOrderExportOption {
  3484 +/** @description request parameter type for postOrderErpMenusAdd */
  3485 +export interface PostOrderErpMenusAddOption {
3431 3486 /**
3432 3487 * @description
3433   - * orderBaseInfoQueryVO
  3488 + * menuVO
3434 3489 */
3435 3490 body: {
3436 3491 /**
3437 3492 @description
3438   - orderBaseInfoQueryVO */
3439   - orderBaseInfoQueryVO: OrderBaseInfoQueryVO;
  3493 + menuVO */
  3494 + menuVO: AdminMenuVO;
3440 3495 };
3441 3496 }
3442 3497  
3443   -/** @description response type for postOrderErpOrderExport */
3444   -export interface PostOrderErpOrderExportResponse {
  3498 +/** @description response type for postOrderErpMenusAdd */
  3499 +export interface PostOrderErpMenusAddResponse {
3445 3500 /**
3446 3501 * @description
3447 3502 * OK
... ... @@ -3469,25 +3524,25 @@ export interface PostOrderErpOrderExportResponse {
3469 3524 404: any;
3470 3525 }
3471 3526  
3472   -export type PostOrderErpOrderExportResponseSuccess =
3473   - PostOrderErpOrderExportResponse[200];
  3527 +export type PostOrderErpMenusAddResponseSuccess =
  3528 + PostOrderErpMenusAddResponse[200];
3474 3529 /**
3475 3530 * @description
3476   - * 导出订单
3477   - * @tags 订单管理
  3531 + * 新增菜单
  3532 + * @tags 系统:菜单管理
3478 3533 * @produces *
3479 3534 * @consumes application/json
3480 3535 */
3481   -export const postOrderErpOrderExport = /* #__PURE__ */ (() => {
  3536 +export const postOrderErpMenusAdd = /* #__PURE__ */ (() => {
3482 3537 const method = 'post';
3483   - const url = '/order/erp/order/export';
  3538 + const url = '/order/erp/menus/add';
3484 3539 function request(
3485   - option: PostOrderErpOrderExportOption,
3486   - ): Promise<PostOrderErpOrderExportResponseSuccess> {
  3540 + option: PostOrderErpMenusAddOption,
  3541 + ): Promise<PostOrderErpMenusAddResponseSuccess> {
3487 3542 return requester(request.url, {
3488 3543 method: request.method,
3489 3544 ...option,
3490   - }) as unknown as Promise<PostOrderErpOrderExportResponseSuccess>;
  3545 + }) as unknown as Promise<PostOrderErpMenusAddResponseSuccess>;
3491 3546 }
3492 3547  
3493 3548 /** http method */
... ... @@ -3497,22 +3552,22 @@ export const postOrderErpOrderExport = /* #__PURE__ */ (() =&gt; {
3497 3552 return request;
3498 3553 })();
3499 3554  
3500   -/** @description request parameter type for postOrderErpOrderFieldUnlockApply */
3501   -export interface PostOrderErpOrderFieldUnlockApplyOption {
  3555 +/** @description request parameter type for postOrderErpMenusAll */
  3556 +export interface PostOrderErpMenusAllOption {
3502 3557 /**
3503 3558 * @description
3504   - * fieldVO
  3559 + * queryVO
3505 3560 */
3506 3561 body: {
3507 3562 /**
3508 3563 @description
3509   - fieldVO */
3510   - fieldVO: OrderUnlockFieldApplyVO;
  3564 + queryVO */
  3565 + queryVO: AdminMenuQueryVO;
3511 3566 };
3512 3567 }
3513 3568  
3514   -/** @description response type for postOrderErpOrderFieldUnlockApply */
3515   -export interface PostOrderErpOrderFieldUnlockApplyResponse {
  3569 +/** @description response type for postOrderErpMenusAll */
  3570 +export interface PostOrderErpMenusAllResponse {
3516 3571 /**
3517 3572 * @description
3518 3573 * OK
... ... @@ -3540,25 +3595,25 @@ export interface PostOrderErpOrderFieldUnlockApplyResponse {
3540 3595 404: any;
3541 3596 }
3542 3597  
3543   -export type PostOrderErpOrderFieldUnlockApplyResponseSuccess =
3544   - PostOrderErpOrderFieldUnlockApplyResponse[200];
  3598 +export type PostOrderErpMenusAllResponseSuccess =
  3599 + PostOrderErpMenusAllResponse[200];
3545 3600 /**
3546 3601 * @description
3547   - * 字段解锁申请
3548   - * @tags 订单管理
  3602 + * 查询菜单
  3603 + * @tags 系统:菜单管理
3549 3604 * @produces *
3550 3605 * @consumes application/json
3551 3606 */
3552   -export const postOrderErpOrderFieldUnlockApply = /* #__PURE__ */ (() => {
  3607 +export const postOrderErpMenusAll = /* #__PURE__ */ (() => {
3553 3608 const method = 'post';
3554   - const url = '/order/erp/order/field_unlock_apply';
  3609 + const url = '/order/erp/menus/all';
3555 3610 function request(
3556   - option: PostOrderErpOrderFieldUnlockApplyOption,
3557   - ): Promise<PostOrderErpOrderFieldUnlockApplyResponseSuccess> {
  3611 + option: PostOrderErpMenusAllOption,
  3612 + ): Promise<PostOrderErpMenusAllResponseSuccess> {
3558 3613 return requester(request.url, {
3559 3614 method: request.method,
3560 3615 ...option,
3561   - }) as unknown as Promise<PostOrderErpOrderFieldUnlockApplyResponseSuccess>;
  3616 + }) as unknown as Promise<PostOrderErpMenusAllResponseSuccess>;
3562 3617 }
3563 3618  
3564 3619 /** http method */
... ... @@ -3568,22 +3623,8 @@ export const postOrderErpOrderFieldUnlockApply = /* #__PURE__ */ (() =&gt; {
3568 3623 return request;
3569 3624 })();
3570 3625  
3571   -/** @description request parameter type for postOrderErpOrderListByPage */
3572   -export interface PostOrderErpOrderListByPageOption {
3573   - /**
3574   - * @description
3575   - * orderBaseInfoQueryVO
3576   - */
3577   - body: {
3578   - /**
3579   - @description
3580   - orderBaseInfoQueryVO */
3581   - orderBaseInfoQueryVO: OrderBaseInfoQueryVO;
3582   - };
3583   -}
3584   -
3585   -/** @description response type for postOrderErpOrderListByPage */
3586   -export interface PostOrderErpOrderListByPageResponse {
  3626 +/** @description response type for postOrderErpMenusBuild */
  3627 +export interface PostOrderErpMenusBuildResponse {
3587 3628 /**
3588 3629 * @description
3589 3630 * OK
... ... @@ -3611,25 +3652,22 @@ export interface PostOrderErpOrderListByPageResponse {
3611 3652 404: any;
3612 3653 }
3613 3654  
3614   -export type PostOrderErpOrderListByPageResponseSuccess =
3615   - PostOrderErpOrderListByPageResponse[200];
  3655 +export type PostOrderErpMenusBuildResponseSuccess =
  3656 + PostOrderErpMenusBuildResponse[200];
3616 3657 /**
3617 3658 * @description
3618   - * 分页查询
3619   - * @tags 订单管理
  3659 + * 获取前端所需菜单
  3660 + * @tags 系统:菜单管理
3620 3661 * @produces *
3621 3662 * @consumes application/json
3622 3663 */
3623   -export const postOrderErpOrderListByPage = /* #__PURE__ */ (() => {
  3664 +export const postOrderErpMenusBuild = /* #__PURE__ */ (() => {
3624 3665 const method = 'post';
3625   - const url = '/order/erp/order/list_by_page';
3626   - function request(
3627   - option: PostOrderErpOrderListByPageOption,
3628   - ): Promise<PostOrderErpOrderListByPageResponseSuccess> {
  3666 + const url = '/order/erp/menus/build';
  3667 + function request(): Promise<PostOrderErpMenusBuildResponseSuccess> {
3629 3668 return requester(request.url, {
3630 3669 method: request.method,
3631   - ...option,
3632   - }) as unknown as Promise<PostOrderErpOrderListByPageResponseSuccess>;
  3670 + }) as unknown as Promise<PostOrderErpMenusBuildResponseSuccess>;
3633 3671 }
3634 3672  
3635 3673 /** http method */
... ... @@ -3639,22 +3677,22 @@ export const postOrderErpOrderListByPage = /* #__PURE__ */ (() =&gt; {
3639 3677 return request;
3640 3678 })();
3641 3679  
3642   -/** @description request parameter type for postOrderErpOrderQueryById */
3643   -export interface PostOrderErpOrderQueryByIdOption {
  3680 +/** @description request parameter type for postOrderErpMenusDelete */
  3681 +export interface PostOrderErpMenusDeleteOption {
3644 3682 /**
3645 3683 * @description
3646   - * orderBaseInfoQueryVO
  3684 + * queryVO
3647 3685 */
3648 3686 body: {
3649 3687 /**
3650 3688 @description
3651   - orderBaseInfoQueryVO */
3652   - orderBaseInfoQueryVO: OrderBaseInfoQueryVO;
  3689 + queryVO */
  3690 + queryVO: AdminMenuQueryVO;
3653 3691 };
3654 3692 }
3655 3693  
3656   -/** @description response type for postOrderErpOrderQueryById */
3657   -export interface PostOrderErpOrderQueryByIdResponse {
  3694 +/** @description response type for postOrderErpMenusDelete */
  3695 +export interface PostOrderErpMenusDeleteResponse {
3658 3696 /**
3659 3697 * @description
3660 3698 * OK
... ... @@ -3682,25 +3720,25 @@ export interface PostOrderErpOrderQueryByIdResponse {
3682 3720 404: any;
3683 3721 }
3684 3722  
3685   -export type PostOrderErpOrderQueryByIdResponseSuccess =
3686   - PostOrderErpOrderQueryByIdResponse[200];
  3723 +export type PostOrderErpMenusDeleteResponseSuccess =
  3724 + PostOrderErpMenusDeleteResponse[200];
3687 3725 /**
3688 3726 * @description
3689   - * queryById
3690   - * @tags 订单管理
  3727 + * 删除菜单
  3728 + * @tags 系统:菜单管理
3691 3729 * @produces *
3692 3730 * @consumes application/json
3693 3731 */
3694   -export const postOrderErpOrderQueryById = /* #__PURE__ */ (() => {
  3732 +export const postOrderErpMenusDelete = /* #__PURE__ */ (() => {
3695 3733 const method = 'post';
3696   - const url = '/order/erp/order/query_by_id';
  3734 + const url = '/order/erp/menus/delete';
3697 3735 function request(
3698   - option: PostOrderErpOrderQueryByIdOption,
3699   - ): Promise<PostOrderErpOrderQueryByIdResponseSuccess> {
  3736 + option: PostOrderErpMenusDeleteOption,
  3737 + ): Promise<PostOrderErpMenusDeleteResponseSuccess> {
3700 3738 return requester(request.url, {
3701 3739 method: request.method,
3702 3740 ...option,
3703   - }) as unknown as Promise<PostOrderErpOrderQueryByIdResponseSuccess>;
  3741 + }) as unknown as Promise<PostOrderErpMenusDeleteResponseSuccess>;
3704 3742 }
3705 3743  
3706 3744 /** http method */
... ... @@ -3710,22 +3748,22 @@ export const postOrderErpOrderQueryById = /* #__PURE__ */ (() =&gt; {
3710 3748 return request;
3711 3749 })();
3712 3750  
3713   -/** @description request parameter type for postOrderErpProfitAnalysis */
3714   -export interface PostOrderErpProfitAnalysisOption {
  3751 +/** @description request parameter type for postOrderErpMenusEdit */
  3752 +export interface PostOrderErpMenusEditOption {
3715 3753 /**
3716 3754 * @description
3717   - * orderProfitAnalysisVo
  3755 + * menuVO
3718 3756 */
3719 3757 body: {
3720 3758 /**
3721 3759 @description
3722   - orderProfitAnalysisVo */
3723   - orderProfitAnalysisVo: OrderProfitAnalysisVo;
  3760 + menuVO */
  3761 + menuVO: AdminMenuVO;
3724 3762 };
3725 3763 }
3726 3764  
3727   -/** @description response type for postOrderErpProfitAnalysis */
3728   -export interface PostOrderErpProfitAnalysisResponse {
  3765 +/** @description response type for postOrderErpMenusEdit */
  3766 +export interface PostOrderErpMenusEditResponse {
3729 3767 /**
3730 3768 * @description
3731 3769 * OK
... ... @@ -3753,25 +3791,25 @@ export interface PostOrderErpProfitAnalysisResponse {
3753 3791 404: any;
3754 3792 }
3755 3793  
3756   -export type PostOrderErpProfitAnalysisResponseSuccess =
3757   - PostOrderErpProfitAnalysisResponse[200];
  3794 +export type PostOrderErpMenusEditResponseSuccess =
  3795 + PostOrderErpMenusEditResponse[200];
3758 3796 /**
3759 3797 * @description
3760   - * analysis
3761   - * @tags order-profit-controller
  3798 + * 修改菜单
  3799 + * @tags 系统:菜单管理
3762 3800 * @produces *
3763 3801 * @consumes application/json
3764 3802 */
3765   -export const postOrderErpProfitAnalysis = /* #__PURE__ */ (() => {
  3803 +export const postOrderErpMenusEdit = /* #__PURE__ */ (() => {
3766 3804 const method = 'post';
3767   - const url = '/order/erp/profit/analysis';
  3805 + const url = '/order/erp/menus/edit';
3768 3806 function request(
3769   - option: PostOrderErpProfitAnalysisOption,
3770   - ): Promise<PostOrderErpProfitAnalysisResponseSuccess> {
  3807 + option: PostOrderErpMenusEditOption,
  3808 + ): Promise<PostOrderErpMenusEditResponseSuccess> {
3771 3809 return requester(request.url, {
3772 3810 method: request.method,
3773 3811 ...option,
3774   - }) as unknown as Promise<PostOrderErpProfitAnalysisResponseSuccess>;
  3812 + }) as unknown as Promise<PostOrderErpMenusEditResponseSuccess>;
3775 3813 }
3776 3814  
3777 3815 /** http method */
... ... @@ -3781,22 +3819,8 @@ export const postOrderErpProfitAnalysis = /* #__PURE__ */ (() =&gt; {
3781 3819 return request;
3782 3820 })();
3783 3821  
3784   -/** @description request parameter type for postOrderErpRolesAdd */
3785   -export interface PostOrderErpRolesAddOption {
3786   - /**
3787   - * @description
3788   - * roleVO
3789   - */
3790   - body: {
3791   - /**
3792   - @description
3793   - roleVO */
3794   - roleVO: AdminRoleVO;
3795   - };
3796   -}
3797   -
3798   -/** @description response type for postOrderErpRolesAdd */
3799   -export interface PostOrderErpRolesAddResponse {
  3822 +/** @description response type for postOrderErpMenusTree */
  3823 +export interface PostOrderErpMenusTreeResponse {
3800 3824 /**
3801 3825 * @description
3802 3826 * OK
... ... @@ -3824,25 +3848,22 @@ export interface PostOrderErpRolesAddResponse {
3824 3848 404: any;
3825 3849 }
3826 3850  
3827   -export type PostOrderErpRolesAddResponseSuccess =
3828   - PostOrderErpRolesAddResponse[200];
  3851 +export type PostOrderErpMenusTreeResponseSuccess =
  3852 + PostOrderErpMenusTreeResponse[200];
3829 3853 /**
3830 3854 * @description
3831   - * 新增角色
3832   - * @tags 系统:角色管理
  3855 + * 返回全部的菜单
  3856 + * @tags 系统:菜单管理
3833 3857 * @produces *
3834 3858 * @consumes application/json
3835 3859 */
3836   -export const postOrderErpRolesAdd = /* #__PURE__ */ (() => {
  3860 +export const postOrderErpMenusTree = /* #__PURE__ */ (() => {
3837 3861 const method = 'post';
3838   - const url = '/order/erp/roles/add';
3839   - function request(
3840   - option: PostOrderErpRolesAddOption,
3841   - ): Promise<PostOrderErpRolesAddResponseSuccess> {
  3862 + const url = '/order/erp/menus/tree';
  3863 + function request(): Promise<PostOrderErpMenusTreeResponseSuccess> {
3842 3864 return requester(request.url, {
3843 3865 method: request.method,
3844   - ...option,
3845   - }) as unknown as Promise<PostOrderErpRolesAddResponseSuccess>;
  3866 + }) as unknown as Promise<PostOrderErpMenusTreeResponseSuccess>;
3846 3867 }
3847 3868  
3848 3869 /** http method */
... ... @@ -3852,8 +3873,8 @@ export const postOrderErpRolesAdd = /* #__PURE__ */ (() =&gt; {
3852 3873 return request;
3853 3874 })();
3854 3875  
3855   -/** @description request parameter type for postOrderErpRolesAll */
3856   -export interface PostOrderErpRolesAllOption {
  3876 +/** @description request parameter type for postOrderErpOptLogListByPage */
  3877 +export interface PostOrderErpOptLogListByPageOption {
3857 3878 /**
3858 3879 * @description
3859 3880 * queryVO
... ... @@ -3862,12 +3883,12 @@ export interface PostOrderErpRolesAllOption {
3862 3883 /**
3863 3884 @description
3864 3885 queryVO */
3865   - queryVO: AdminRoleQueryVO;
  3886 + queryVO: OrderOptLogQueryVO;
3866 3887 };
3867 3888 }
3868 3889  
3869   -/** @description response type for postOrderErpRolesAll */
3870   -export interface PostOrderErpRolesAllResponse {
  3890 +/** @description response type for postOrderErpOptLogListByPage */
  3891 +export interface PostOrderErpOptLogListByPageResponse {
3871 3892 /**
3872 3893 * @description
3873 3894 * OK
... ... @@ -3895,25 +3916,25 @@ export interface PostOrderErpRolesAllResponse {
3895 3916 404: any;
3896 3917 }
3897 3918  
3898   -export type PostOrderErpRolesAllResponseSuccess =
3899   - PostOrderErpRolesAllResponse[200];
  3919 +export type PostOrderErpOptLogListByPageResponseSuccess =
  3920 + PostOrderErpOptLogListByPageResponse[200];
3900 3921 /**
3901 3922 * @description
3902   - * 返回全部的角色
3903   - * @tags 系统:角色管理
  3923 + * 分页查询
  3924 + * @tags 订单操作日志
3904 3925 * @produces *
3905 3926 * @consumes application/json
3906 3927 */
3907   -export const postOrderErpRolesAll = /* #__PURE__ */ (() => {
  3928 +export const postOrderErpOptLogListByPage = /* #__PURE__ */ (() => {
3908 3929 const method = 'post';
3909   - const url = '/order/erp/roles/all';
  3930 + const url = '/order/erp/opt/log/list_by_page';
3910 3931 function request(
3911   - option: PostOrderErpRolesAllOption,
3912   - ): Promise<PostOrderErpRolesAllResponseSuccess> {
  3932 + option: PostOrderErpOptLogListByPageOption,
  3933 + ): Promise<PostOrderErpOptLogListByPageResponseSuccess> {
3913 3934 return requester(request.url, {
3914 3935 method: request.method,
3915 3936 ...option,
3916   - }) as unknown as Promise<PostOrderErpRolesAllResponseSuccess>;
  3937 + }) as unknown as Promise<PostOrderErpOptLogListByPageResponseSuccess>;
3917 3938 }
3918 3939  
3919 3940 /** http method */
... ... @@ -3923,22 +3944,22 @@ export const postOrderErpRolesAll = /* #__PURE__ */ (() =&gt; {
3923 3944 return request;
3924 3945 })();
3925 3946  
3926   -/** @description request parameter type for postOrderErpRolesAuthMenu */
3927   -export interface PostOrderErpRolesAuthMenuOption {
  3947 +/** @description request parameter type for postOrderErpOrderAdd */
  3948 +export interface PostOrderErpOrderAddOption {
3928 3949 /**
3929 3950 * @description
3930   - * roleVO
  3951 + * orderAddVO
3931 3952 */
3932 3953 body: {
3933 3954 /**
3934 3955 @description
3935   - roleVO */
3936   - roleVO: AdminAuthRoleVO;
  3956 + orderAddVO */
  3957 + orderAddVO: OrderAddVO;
3937 3958 };
3938 3959 }
3939 3960  
3940   -/** @description response type for postOrderErpRolesAuthMenu */
3941   -export interface PostOrderErpRolesAuthMenuResponse {
  3961 +/** @description response type for postOrderErpOrderAdd */
  3962 +export interface PostOrderErpOrderAddResponse {
3942 3963 /**
3943 3964 * @description
3944 3965 * OK
... ... @@ -3966,25 +3987,25 @@ export interface PostOrderErpRolesAuthMenuResponse {
3966 3987 404: any;
3967 3988 }
3968 3989  
3969   -export type PostOrderErpRolesAuthMenuResponseSuccess =
3970   - PostOrderErpRolesAuthMenuResponse[200];
  3990 +export type PostOrderErpOrderAddResponseSuccess =
  3991 + PostOrderErpOrderAddResponse[200];
3971 3992 /**
3972 3993 * @description
3973   - * 授权角色菜单
3974   - * @tags 系统:角色管理
  3994 + * 新增数据
  3995 + * @tags 订单管理
3975 3996 * @produces *
3976 3997 * @consumes application/json
3977 3998 */
3978   -export const postOrderErpRolesAuthMenu = /* #__PURE__ */ (() => {
  3999 +export const postOrderErpOrderAdd = /* #__PURE__ */ (() => {
3979 4000 const method = 'post';
3980   - const url = '/order/erp/roles/auth_menu';
  4001 + const url = '/order/erp/order/add';
3981 4002 function request(
3982   - option: PostOrderErpRolesAuthMenuOption,
3983   - ): Promise<PostOrderErpRolesAuthMenuResponseSuccess> {
  4003 + option: PostOrderErpOrderAddOption,
  4004 + ): Promise<PostOrderErpOrderAddResponseSuccess> {
3984 4005 return requester(request.url, {
3985 4006 method: request.method,
3986 4007 ...option,
3987   - }) as unknown as Promise<PostOrderErpRolesAuthMenuResponseSuccess>;
  4008 + }) as unknown as Promise<PostOrderErpOrderAddResponseSuccess>;
3988 4009 }
3989 4010  
3990 4011 /** http method */
... ... @@ -3994,22 +4015,22 @@ export const postOrderErpRolesAuthMenu = /* #__PURE__ */ (() =&gt; {
3994 4015 return request;
3995 4016 })();
3996 4017  
3997   -/** @description request parameter type for postOrderErpRolesDelete */
3998   -export interface PostOrderErpRolesDeleteOption {
  4018 +/** @description request parameter type for postOrderErpOrderDeleteById */
  4019 +export interface PostOrderErpOrderDeleteByIdOption {
3999 4020 /**
4000 4021 * @description
4001   - * queryVO
  4022 + * orderBaseInfoQueryVO
4002 4023 */
4003 4024 body: {
4004 4025 /**
4005 4026 @description
4006   - queryVO */
4007   - queryVO: AdminRoleQueryVO;
  4027 + orderBaseInfoQueryVO */
  4028 + orderBaseInfoQueryVO: OrderBaseInfoQueryVO;
4008 4029 };
4009 4030 }
4010 4031  
4011   -/** @description response type for postOrderErpRolesDelete */
4012   -export interface PostOrderErpRolesDeleteResponse {
  4032 +/** @description response type for postOrderErpOrderDeleteById */
  4033 +export interface PostOrderErpOrderDeleteByIdResponse {
4013 4034 /**
4014 4035 * @description
4015 4036 * OK
... ... @@ -4037,25 +4058,25 @@ export interface PostOrderErpRolesDeleteResponse {
4037 4058 404: any;
4038 4059 }
4039 4060  
4040   -export type PostOrderErpRolesDeleteResponseSuccess =
4041   - PostOrderErpRolesDeleteResponse[200];
  4061 +export type PostOrderErpOrderDeleteByIdResponseSuccess =
  4062 + PostOrderErpOrderDeleteByIdResponse[200];
4042 4063 /**
4043 4064 * @description
4044   - * 删除角色
4045   - * @tags 系统:角色管理
  4065 + * 删除数据
  4066 + * @tags 订单管理
4046 4067 * @produces *
4047 4068 * @consumes application/json
4048 4069 */
4049   -export const postOrderErpRolesDelete = /* #__PURE__ */ (() => {
  4070 +export const postOrderErpOrderDeleteById = /* #__PURE__ */ (() => {
4050 4071 const method = 'post';
4051   - const url = '/order/erp/roles/delete';
  4072 + const url = '/order/erp/order/delete_by_id';
4052 4073 function request(
4053   - option: PostOrderErpRolesDeleteOption,
4054   - ): Promise<PostOrderErpRolesDeleteResponseSuccess> {
  4074 + option: PostOrderErpOrderDeleteByIdOption,
  4075 + ): Promise<PostOrderErpOrderDeleteByIdResponseSuccess> {
4055 4076 return requester(request.url, {
4056 4077 method: request.method,
4057 4078 ...option,
4058   - }) as unknown as Promise<PostOrderErpRolesDeleteResponseSuccess>;
  4079 + }) as unknown as Promise<PostOrderErpOrderDeleteByIdResponseSuccess>;
4059 4080 }
4060 4081  
4061 4082 /** http method */
... ... @@ -4065,22 +4086,22 @@ export const postOrderErpRolesDelete = /* #__PURE__ */ (() =&gt; {
4065 4086 return request;
4066 4087 })();
4067 4088  
4068   -/** @description request parameter type for postOrderErpRolesDetail */
4069   -export interface PostOrderErpRolesDetailOption {
  4089 +/** @description request parameter type for postOrderErpOrderEdit */
  4090 +export interface PostOrderErpOrderEditOption {
4070 4091 /**
4071 4092 * @description
4072   - * queryVO
  4093 + * updateVO
4073 4094 */
4074 4095 body: {
4075 4096 /**
4076 4097 @description
4077   - queryVO */
4078   - queryVO: AdminRoleQueryVO;
  4098 + updateVO */
  4099 + updateVO: OrderUpdateVO;
4079 4100 };
4080 4101 }
4081 4102  
4082   -/** @description response type for postOrderErpRolesDetail */
4083   -export interface PostOrderErpRolesDetailResponse {
  4103 +/** @description response type for postOrderErpOrderEdit */
  4104 +export interface PostOrderErpOrderEditResponse {
4084 4105 /**
4085 4106 * @description
4086 4107 * OK
... ... @@ -4108,25 +4129,25 @@ export interface PostOrderErpRolesDetailResponse {
4108 4129 404: any;
4109 4130 }
4110 4131  
4111   -export type PostOrderErpRolesDetailResponseSuccess =
4112   - PostOrderErpRolesDetailResponse[200];
  4132 +export type PostOrderErpOrderEditResponseSuccess =
  4133 + PostOrderErpOrderEditResponse[200];
4113 4134 /**
4114 4135 * @description
4115   - * 获取单个role
4116   - * @tags 系统:角色管理
  4136 + * 编辑数据
  4137 + * @tags 订单管理
4117 4138 * @produces *
4118 4139 * @consumes application/json
4119 4140 */
4120   -export const postOrderErpRolesDetail = /* #__PURE__ */ (() => {
  4141 +export const postOrderErpOrderEdit = /* #__PURE__ */ (() => {
4121 4142 const method = 'post';
4122   - const url = '/order/erp/roles/detail';
  4143 + const url = '/order/erp/order/edit';
4123 4144 function request(
4124   - option: PostOrderErpRolesDetailOption,
4125   - ): Promise<PostOrderErpRolesDetailResponseSuccess> {
  4145 + option: PostOrderErpOrderEditOption,
  4146 + ): Promise<PostOrderErpOrderEditResponseSuccess> {
4126 4147 return requester(request.url, {
4127 4148 method: request.method,
4128 4149 ...option,
4129   - }) as unknown as Promise<PostOrderErpRolesDetailResponseSuccess>;
  4150 + }) as unknown as Promise<PostOrderErpOrderEditResponseSuccess>;
4130 4151 }
4131 4152  
4132 4153 /** http method */
... ... @@ -4136,22 +4157,22 @@ export const postOrderErpRolesDetail = /* #__PURE__ */ (() =&gt; {
4136 4157 return request;
4137 4158 })();
4138 4159  
4139   -/** @description request parameter type for postOrderErpRolesEdit */
4140   -export interface PostOrderErpRolesEditOption {
  4160 +/** @description request parameter type for postOrderErpOrderExport */
  4161 +export interface PostOrderErpOrderExportOption {
4141 4162 /**
4142 4163 * @description
4143   - * roleVO
  4164 + * orderBaseInfoQueryVO
4144 4165 */
4145 4166 body: {
4146 4167 /**
4147 4168 @description
4148   - roleVO */
4149   - roleVO: AdminRoleVO;
  4169 + orderBaseInfoQueryVO */
  4170 + orderBaseInfoQueryVO: OrderBaseInfoQueryVO;
4150 4171 };
4151 4172 }
4152 4173  
4153   -/** @description response type for postOrderErpRolesEdit */
4154   -export interface PostOrderErpRolesEditResponse {
  4174 +/** @description response type for postOrderErpOrderExport */
  4175 +export interface PostOrderErpOrderExportResponse {
4155 4176 /**
4156 4177 * @description
4157 4178 * OK
... ... @@ -4179,25 +4200,25 @@ export interface PostOrderErpRolesEditResponse {
4179 4200 404: any;
4180 4201 }
4181 4202  
4182   -export type PostOrderErpRolesEditResponseSuccess =
4183   - PostOrderErpRolesEditResponse[200];
  4203 +export type PostOrderErpOrderExportResponseSuccess =
  4204 + PostOrderErpOrderExportResponse[200];
4184 4205 /**
4185 4206 * @description
4186   - * 修改角色
4187   - * @tags 系统:角色管理
  4207 + * 导出订单
  4208 + * @tags 订单管理
4188 4209 * @produces *
4189 4210 * @consumes application/json
4190 4211 */
4191   -export const postOrderErpRolesEdit = /* #__PURE__ */ (() => {
  4212 +export const postOrderErpOrderExport = /* #__PURE__ */ (() => {
4192 4213 const method = 'post';
4193   - const url = '/order/erp/roles/edit';
  4214 + const url = '/order/erp/order/export';
4194 4215 function request(
4195   - option: PostOrderErpRolesEditOption,
4196   - ): Promise<PostOrderErpRolesEditResponseSuccess> {
  4216 + option: PostOrderErpOrderExportOption,
  4217 + ): Promise<PostOrderErpOrderExportResponseSuccess> {
4197 4218 return requester(request.url, {
4198 4219 method: request.method,
4199 4220 ...option,
4200   - }) as unknown as Promise<PostOrderErpRolesEditResponseSuccess>;
  4221 + }) as unknown as Promise<PostOrderErpOrderExportResponseSuccess>;
4201 4222 }
4202 4223  
4203 4224 /** http method */
... ... @@ -4207,22 +4228,22 @@ export const postOrderErpRolesEdit = /* #__PURE__ */ (() =&gt; {
4207 4228 return request;
4208 4229 })();
4209 4230  
4210   -/** @description request parameter type for postOrderErpRolesListByPage */
4211   -export interface PostOrderErpRolesListByPageOption {
  4231 +/** @description request parameter type for postOrderErpOrderFieldUnlockApply */
  4232 +export interface PostOrderErpOrderFieldUnlockApplyOption {
4212 4233 /**
4213 4234 * @description
4214   - * queryVO
  4235 + * fieldVO
4215 4236 */
4216 4237 body: {
4217 4238 /**
4218 4239 @description
4219   - queryVO */
4220   - queryVO: AdminRoleQueryVO;
  4240 + fieldVO */
  4241 + fieldVO: OrderUnlockFieldApplyVO;
4221 4242 };
4222 4243 }
4223 4244  
4224   -/** @description response type for postOrderErpRolesListByPage */
4225   -export interface PostOrderErpRolesListByPageResponse {
  4245 +/** @description response type for postOrderErpOrderFieldUnlockApply */
  4246 +export interface PostOrderErpOrderFieldUnlockApplyResponse {
4226 4247 /**
4227 4248 * @description
4228 4249 * OK
... ... @@ -4250,25 +4271,25 @@ export interface PostOrderErpRolesListByPageResponse {
4250 4271 404: any;
4251 4272 }
4252 4273  
4253   -export type PostOrderErpRolesListByPageResponseSuccess =
4254   - PostOrderErpRolesListByPageResponse[200];
  4274 +export type PostOrderErpOrderFieldUnlockApplyResponseSuccess =
  4275 + PostOrderErpOrderFieldUnlockApplyResponse[200];
4255 4276 /**
4256 4277 * @description
4257   - * 查询角色
4258   - * @tags 系统:角色管理
  4278 + * 字段解锁申请
  4279 + * @tags 订单管理
4259 4280 * @produces *
4260 4281 * @consumes application/json
4261 4282 */
4262   -export const postOrderErpRolesListByPage = /* #__PURE__ */ (() => {
  4283 +export const postOrderErpOrderFieldUnlockApply = /* #__PURE__ */ (() => {
4263 4284 const method = 'post';
4264   - const url = '/order/erp/roles/list_by_page';
  4285 + const url = '/order/erp/order/field_unlock_apply';
4265 4286 function request(
4266   - option: PostOrderErpRolesListByPageOption,
4267   - ): Promise<PostOrderErpRolesListByPageResponseSuccess> {
  4287 + option: PostOrderErpOrderFieldUnlockApplyOption,
  4288 + ): Promise<PostOrderErpOrderFieldUnlockApplyResponseSuccess> {
4268 4289 return requester(request.url, {
4269 4290 method: request.method,
4270 4291 ...option,
4271   - }) as unknown as Promise<PostOrderErpRolesListByPageResponseSuccess>;
  4292 + }) as unknown as Promise<PostOrderErpOrderFieldUnlockApplyResponseSuccess>;
4272 4293 }
4273 4294  
4274 4295 /** http method */
... ... @@ -4278,22 +4299,22 @@ export const postOrderErpRolesListByPage = /* #__PURE__ */ (() =&gt; {
4278 4299 return request;
4279 4300 })();
4280 4301  
4281   -/** @description request parameter type for postOrderErpUsersAdd */
4282   -export interface PostOrderErpUsersAddOption {
  4302 +/** @description request parameter type for postOrderErpOrderListByPage */
  4303 +export interface PostOrderErpOrderListByPageOption {
4283 4304 /**
4284 4305 * @description
4285   - * userVO
  4306 + * orderBaseInfoQueryVO
4286 4307 */
4287 4308 body: {
4288 4309 /**
4289 4310 @description
4290   - userVO */
4291   - userVO: AdminUserVO;
  4311 + orderBaseInfoQueryVO */
  4312 + orderBaseInfoQueryVO: OrderBaseInfoQueryVO;
4292 4313 };
4293 4314 }
4294 4315  
4295   -/** @description response type for postOrderErpUsersAdd */
4296   -export interface PostOrderErpUsersAddResponse {
  4316 +/** @description response type for postOrderErpOrderListByPage */
  4317 +export interface PostOrderErpOrderListByPageResponse {
4297 4318 /**
4298 4319 * @description
4299 4320 * OK
... ... @@ -4321,25 +4342,25 @@ export interface PostOrderErpUsersAddResponse {
4321 4342 404: any;
4322 4343 }
4323 4344  
4324   -export type PostOrderErpUsersAddResponseSuccess =
4325   - PostOrderErpUsersAddResponse[200];
  4345 +export type PostOrderErpOrderListByPageResponseSuccess =
  4346 + PostOrderErpOrderListByPageResponse[200];
4326 4347 /**
4327 4348 * @description
4328   - * 新增用户
4329   - * @tags 系统:用户管理
  4349 + * 分页查询
  4350 + * @tags 订单管理
4330 4351 * @produces *
4331 4352 * @consumes application/json
4332 4353 */
4333   -export const postOrderErpUsersAdd = /* #__PURE__ */ (() => {
  4354 +export const postOrderErpOrderListByPage = /* #__PURE__ */ (() => {
4334 4355 const method = 'post';
4335   - const url = '/order/erp/users/add';
  4356 + const url = '/order/erp/order/list_by_page';
4336 4357 function request(
4337   - option: PostOrderErpUsersAddOption,
4338   - ): Promise<PostOrderErpUsersAddResponseSuccess> {
  4358 + option: PostOrderErpOrderListByPageOption,
  4359 + ): Promise<PostOrderErpOrderListByPageResponseSuccess> {
4339 4360 return requester(request.url, {
4340 4361 method: request.method,
4341 4362 ...option,
4342   - }) as unknown as Promise<PostOrderErpUsersAddResponseSuccess>;
  4363 + }) as unknown as Promise<PostOrderErpOrderListByPageResponseSuccess>;
4343 4364 }
4344 4365  
4345 4366 /** http method */
... ... @@ -4349,22 +4370,22 @@ export const postOrderErpUsersAdd = /* #__PURE__ */ (() =&gt; {
4349 4370 return request;
4350 4371 })();
4351 4372  
4352   -/** @description request parameter type for postOrderErpUsersAuthRole */
4353   -export interface PostOrderErpUsersAuthRoleOption {
  4373 +/** @description request parameter type for postOrderErpOrderQueryById */
  4374 +export interface PostOrderErpOrderQueryByIdOption {
4354 4375 /**
4355 4376 * @description
4356   - * userVO
  4377 + * orderBaseInfoQueryVO
4357 4378 */
4358 4379 body: {
4359 4380 /**
4360 4381 @description
4361   - userVO */
4362   - userVO: AdminAuthUserVO;
  4382 + orderBaseInfoQueryVO */
  4383 + orderBaseInfoQueryVO: OrderBaseInfoQueryVO;
4363 4384 };
4364 4385 }
4365 4386  
4366   -/** @description response type for postOrderErpUsersAuthRole */
4367   -export interface PostOrderErpUsersAuthRoleResponse {
  4387 +/** @description response type for postOrderErpOrderQueryById */
  4388 +export interface PostOrderErpOrderQueryByIdResponse {
4368 4389 /**
4369 4390 * @description
4370 4391 * OK
... ... @@ -4392,25 +4413,25 @@ export interface PostOrderErpUsersAuthRoleResponse {
4392 4413 404: any;
4393 4414 }
4394 4415  
4395   -export type PostOrderErpUsersAuthRoleResponseSuccess =
4396   - PostOrderErpUsersAuthRoleResponse[200];
  4416 +export type PostOrderErpOrderQueryByIdResponseSuccess =
  4417 + PostOrderErpOrderQueryByIdResponse[200];
4397 4418 /**
4398 4419 * @description
4399   - * 授权角色
4400   - * @tags 系统:用户管理
  4420 + * queryById
  4421 + * @tags 订单管理
4401 4422 * @produces *
4402 4423 * @consumes application/json
4403 4424 */
4404   -export const postOrderErpUsersAuthRole = /* #__PURE__ */ (() => {
  4425 +export const postOrderErpOrderQueryById = /* #__PURE__ */ (() => {
4405 4426 const method = 'post';
4406   - const url = '/order/erp/users/auth_role';
  4427 + const url = '/order/erp/order/query_by_id';
4407 4428 function request(
4408   - option: PostOrderErpUsersAuthRoleOption,
4409   - ): Promise<PostOrderErpUsersAuthRoleResponseSuccess> {
  4429 + option: PostOrderErpOrderQueryByIdOption,
  4430 + ): Promise<PostOrderErpOrderQueryByIdResponseSuccess> {
4410 4431 return requester(request.url, {
4411 4432 method: request.method,
4412 4433 ...option,
4413   - }) as unknown as Promise<PostOrderErpUsersAuthRoleResponseSuccess>;
  4434 + }) as unknown as Promise<PostOrderErpOrderQueryByIdResponseSuccess>;
4414 4435 }
4415 4436  
4416 4437 /** http method */
... ... @@ -4420,22 +4441,22 @@ export const postOrderErpUsersAuthRole = /* #__PURE__ */ (() =&gt; {
4420 4441 return request;
4421 4442 })();
4422 4443  
4423   -/** @description request parameter type for postOrderErpUsersDelete */
4424   -export interface PostOrderErpUsersDeleteOption {
  4444 +/** @description request parameter type for postOrderErpProfitAnalysis */
  4445 +export interface PostOrderErpProfitAnalysisOption {
4425 4446 /**
4426 4447 * @description
4427   - * queryVO
  4448 + * orderProfitAnalysisVo
4428 4449 */
4429 4450 body: {
4430 4451 /**
4431 4452 @description
4432   - queryVO */
4433   - queryVO: AdminUserQueryVO;
  4453 + orderProfitAnalysisVo */
  4454 + orderProfitAnalysisVo: OrderProfitAnalysisVo;
4434 4455 };
4435 4456 }
4436 4457  
4437   -/** @description response type for postOrderErpUsersDelete */
4438   -export interface PostOrderErpUsersDeleteResponse {
  4458 +/** @description response type for postOrderErpProfitAnalysis */
  4459 +export interface PostOrderErpProfitAnalysisResponse {
4439 4460 /**
4440 4461 * @description
4441 4462 * OK
... ... @@ -4463,25 +4484,25 @@ export interface PostOrderErpUsersDeleteResponse {
4463 4484 404: any;
4464 4485 }
4465 4486  
4466   -export type PostOrderErpUsersDeleteResponseSuccess =
4467   - PostOrderErpUsersDeleteResponse[200];
  4487 +export type PostOrderErpProfitAnalysisResponseSuccess =
  4488 + PostOrderErpProfitAnalysisResponse[200];
4468 4489 /**
4469 4490 * @description
4470   - * 删除用户
4471   - * @tags 系统:用户管理
  4491 + * analysis
  4492 + * @tags order-profit-controller
4472 4493 * @produces *
4473 4494 * @consumes application/json
4474 4495 */
4475   -export const postOrderErpUsersDelete = /* #__PURE__ */ (() => {
  4496 +export const postOrderErpProfitAnalysis = /* #__PURE__ */ (() => {
4476 4497 const method = 'post';
4477   - const url = '/order/erp/users/delete';
  4498 + const url = '/order/erp/profit/analysis';
4478 4499 function request(
4479   - option: PostOrderErpUsersDeleteOption,
4480   - ): Promise<PostOrderErpUsersDeleteResponseSuccess> {
  4500 + option: PostOrderErpProfitAnalysisOption,
  4501 + ): Promise<PostOrderErpProfitAnalysisResponseSuccess> {
4481 4502 return requester(request.url, {
4482 4503 method: request.method,
4483 4504 ...option,
4484   - }) as unknown as Promise<PostOrderErpUsersDeleteResponseSuccess>;
  4505 + }) as unknown as Promise<PostOrderErpProfitAnalysisResponseSuccess>;
4485 4506 }
4486 4507  
4487 4508 /** http method */
... ... @@ -4491,22 +4512,22 @@ export const postOrderErpUsersDelete = /* #__PURE__ */ (() =&gt; {
4491 4512 return request;
4492 4513 })();
4493 4514  
4494   -/** @description request parameter type for postOrderErpUsersEdit */
4495   -export interface PostOrderErpUsersEditOption {
  4515 +/** @description request parameter type for postOrderErpRolesAdd */
  4516 +export interface PostOrderErpRolesAddOption {
4496 4517 /**
4497 4518 * @description
4498   - * userVO
  4519 + * roleVO
4499 4520 */
4500 4521 body: {
4501 4522 /**
4502 4523 @description
4503   - userVO */
4504   - userVO: AdminUserVO;
  4524 + roleVO */
  4525 + roleVO: AdminRoleVO;
4505 4526 };
4506 4527 }
4507 4528  
4508   -/** @description response type for postOrderErpUsersEdit */
4509   -export interface PostOrderErpUsersEditResponse {
  4529 +/** @description response type for postOrderErpRolesAdd */
  4530 +export interface PostOrderErpRolesAddResponse {
4510 4531 /**
4511 4532 * @description
4512 4533 * OK
... ... @@ -4534,25 +4555,25 @@ export interface PostOrderErpUsersEditResponse {
4534 4555 404: any;
4535 4556 }
4536 4557  
4537   -export type PostOrderErpUsersEditResponseSuccess =
4538   - PostOrderErpUsersEditResponse[200];
  4558 +export type PostOrderErpRolesAddResponseSuccess =
  4559 + PostOrderErpRolesAddResponse[200];
4539 4560 /**
4540 4561 * @description
4541   - * 修改用户
4542   - * @tags 系统:用户管理
  4562 + * 新增角色
  4563 + * @tags 系统:角色管理
4543 4564 * @produces *
4544 4565 * @consumes application/json
4545 4566 */
4546   -export const postOrderErpUsersEdit = /* #__PURE__ */ (() => {
  4567 +export const postOrderErpRolesAdd = /* #__PURE__ */ (() => {
4547 4568 const method = 'post';
4548   - const url = '/order/erp/users/edit';
  4569 + const url = '/order/erp/roles/add';
4549 4570 function request(
4550   - option: PostOrderErpUsersEditOption,
4551   - ): Promise<PostOrderErpUsersEditResponseSuccess> {
  4571 + option: PostOrderErpRolesAddOption,
  4572 + ): Promise<PostOrderErpRolesAddResponseSuccess> {
4552 4573 return requester(request.url, {
4553 4574 method: request.method,
4554 4575 ...option,
4555   - }) as unknown as Promise<PostOrderErpUsersEditResponseSuccess>;
  4576 + }) as unknown as Promise<PostOrderErpRolesAddResponseSuccess>;
4556 4577 }
4557 4578  
4558 4579 /** http method */
... ... @@ -4562,8 +4583,8 @@ export const postOrderErpUsersEdit = /* #__PURE__ */ (() =&gt; {
4562 4583 return request;
4563 4584 })();
4564 4585  
4565   -/** @description request parameter type for postOrderErpUsersListByPage */
4566   -export interface PostOrderErpUsersListByPageOption {
  4586 +/** @description request parameter type for postOrderErpRolesAll */
  4587 +export interface PostOrderErpRolesAllOption {
4567 4588 /**
4568 4589 * @description
4569 4590 * queryVO
... ... @@ -4572,12 +4593,12 @@ export interface PostOrderErpUsersListByPageOption {
4572 4593 /**
4573 4594 @description
4574 4595 queryVO */
4575   - queryVO: AdminUserQueryVO;
  4596 + queryVO: AdminRoleQueryVO;
4576 4597 };
4577 4598 }
4578 4599  
4579   -/** @description response type for postOrderErpUsersListByPage */
4580   -export interface PostOrderErpUsersListByPageResponse {
  4600 +/** @description response type for postOrderErpRolesAll */
  4601 +export interface PostOrderErpRolesAllResponse {
4581 4602 /**
4582 4603 * @description
4583 4604 * OK
... ... @@ -4605,25 +4626,25 @@ export interface PostOrderErpUsersListByPageResponse {
4605 4626 404: any;
4606 4627 }
4607 4628  
4608   -export type PostOrderErpUsersListByPageResponseSuccess =
4609   - PostOrderErpUsersListByPageResponse[200];
  4629 +export type PostOrderErpRolesAllResponseSuccess =
  4630 + PostOrderErpRolesAllResponse[200];
4610 4631 /**
4611 4632 * @description
4612   - * 查询用户
4613   - * @tags 系统:用户管理
  4633 + * 返回全部的角色
  4634 + * @tags 系统:角色管理
4614 4635 * @produces *
4615 4636 * @consumes application/json
4616 4637 */
4617   -export const postOrderErpUsersListByPage = /* #__PURE__ */ (() => {
  4638 +export const postOrderErpRolesAll = /* #__PURE__ */ (() => {
4618 4639 const method = 'post';
4619   - const url = '/order/erp/users/list_by_page';
  4640 + const url = '/order/erp/roles/all';
4620 4641 function request(
4621   - option: PostOrderErpUsersListByPageOption,
4622   - ): Promise<PostOrderErpUsersListByPageResponseSuccess> {
  4642 + option: PostOrderErpRolesAllOption,
  4643 + ): Promise<PostOrderErpRolesAllResponseSuccess> {
4623 4644 return requester(request.url, {
4624 4645 method: request.method,
4625 4646 ...option,
4626   - }) as unknown as Promise<PostOrderErpUsersListByPageResponseSuccess>;
  4647 + }) as unknown as Promise<PostOrderErpRolesAllResponseSuccess>;
4627 4648 }
4628 4649  
4629 4650 /** http method */
... ... @@ -4633,22 +4654,1144 @@ export const postOrderErpUsersListByPage = /* #__PURE__ */ (() =&gt; {
4633 4654 return request;
4634 4655 })();
4635 4656  
4636   -/** @description request parameter type for postOrderErpUsersReset */
4637   -export interface PostOrderErpUsersResetOption {
  4657 +/** @description request parameter type for postOrderErpRolesAuthMenu */
  4658 +export interface PostOrderErpRolesAuthMenuOption {
4638 4659 /**
4639 4660 * @description
4640   - * resetPwdVO
  4661 + * roleVO
  4662 + */
  4663 + body: {
  4664 + /**
  4665 + @description
  4666 + roleVO */
  4667 + roleVO: AdminAuthRoleVO;
  4668 + };
  4669 +}
  4670 +
  4671 +/** @description response type for postOrderErpRolesAuthMenu */
  4672 +export interface PostOrderErpRolesAuthMenuResponse {
  4673 + /**
  4674 + * @description
  4675 + * OK
  4676 + */
  4677 + 200: ServerResult;
  4678 + /**
  4679 + * @description
  4680 + * Created
  4681 + */
  4682 + 201: any;
  4683 + /**
  4684 + * @description
  4685 + * Unauthorized
  4686 + */
  4687 + 401: any;
  4688 + /**
  4689 + * @description
  4690 + * Forbidden
  4691 + */
  4692 + 403: any;
  4693 + /**
  4694 + * @description
  4695 + * Not Found
  4696 + */
  4697 + 404: any;
  4698 +}
  4699 +
  4700 +export type PostOrderErpRolesAuthMenuResponseSuccess =
  4701 + PostOrderErpRolesAuthMenuResponse[200];
  4702 +/**
  4703 + * @description
  4704 + * 授权角色菜单
  4705 + * @tags 系统:角色管理
  4706 + * @produces *
  4707 + * @consumes application/json
  4708 + */
  4709 +export const postOrderErpRolesAuthMenu = /* #__PURE__ */ (() => {
  4710 + const method = 'post';
  4711 + const url = '/order/erp/roles/auth_menu';
  4712 + function request(
  4713 + option: PostOrderErpRolesAuthMenuOption,
  4714 + ): Promise<PostOrderErpRolesAuthMenuResponseSuccess> {
  4715 + return requester(request.url, {
  4716 + method: request.method,
  4717 + ...option,
  4718 + }) as unknown as Promise<PostOrderErpRolesAuthMenuResponseSuccess>;
  4719 + }
  4720 +
  4721 + /** http method */
  4722 + request.method = method;
  4723 + /** request url */
  4724 + request.url = url;
  4725 + return request;
  4726 +})();
  4727 +
  4728 +/** @description request parameter type for postOrderErpRolesDelete */
  4729 +export interface PostOrderErpRolesDeleteOption {
  4730 + /**
  4731 + * @description
  4732 + * queryVO
  4733 + */
  4734 + body: {
  4735 + /**
  4736 + @description
  4737 + queryVO */
  4738 + queryVO: AdminRoleQueryVO;
  4739 + };
  4740 +}
  4741 +
  4742 +/** @description response type for postOrderErpRolesDelete */
  4743 +export interface PostOrderErpRolesDeleteResponse {
  4744 + /**
  4745 + * @description
  4746 + * OK
  4747 + */
  4748 + 200: ServerResult;
  4749 + /**
  4750 + * @description
  4751 + * Created
  4752 + */
  4753 + 201: any;
  4754 + /**
  4755 + * @description
  4756 + * Unauthorized
  4757 + */
  4758 + 401: any;
  4759 + /**
  4760 + * @description
  4761 + * Forbidden
  4762 + */
  4763 + 403: any;
  4764 + /**
  4765 + * @description
  4766 + * Not Found
  4767 + */
  4768 + 404: any;
  4769 +}
  4770 +
  4771 +export type PostOrderErpRolesDeleteResponseSuccess =
  4772 + PostOrderErpRolesDeleteResponse[200];
  4773 +/**
  4774 + * @description
  4775 + * 删除角色
  4776 + * @tags 系统:角色管理
  4777 + * @produces *
  4778 + * @consumes application/json
  4779 + */
  4780 +export const postOrderErpRolesDelete = /* #__PURE__ */ (() => {
  4781 + const method = 'post';
  4782 + const url = '/order/erp/roles/delete';
  4783 + function request(
  4784 + option: PostOrderErpRolesDeleteOption,
  4785 + ): Promise<PostOrderErpRolesDeleteResponseSuccess> {
  4786 + return requester(request.url, {
  4787 + method: request.method,
  4788 + ...option,
  4789 + }) as unknown as Promise<PostOrderErpRolesDeleteResponseSuccess>;
  4790 + }
  4791 +
  4792 + /** http method */
  4793 + request.method = method;
  4794 + /** request url */
  4795 + request.url = url;
  4796 + return request;
  4797 +})();
  4798 +
  4799 +/** @description request parameter type for postOrderErpRolesDetail */
  4800 +export interface PostOrderErpRolesDetailOption {
  4801 + /**
  4802 + * @description
  4803 + * queryVO
  4804 + */
  4805 + body: {
  4806 + /**
  4807 + @description
  4808 + queryVO */
  4809 + queryVO: AdminRoleQueryVO;
  4810 + };
  4811 +}
  4812 +
  4813 +/** @description response type for postOrderErpRolesDetail */
  4814 +export interface PostOrderErpRolesDetailResponse {
  4815 + /**
  4816 + * @description
  4817 + * OK
  4818 + */
  4819 + 200: ServerResult;
  4820 + /**
  4821 + * @description
  4822 + * Created
  4823 + */
  4824 + 201: any;
  4825 + /**
  4826 + * @description
  4827 + * Unauthorized
  4828 + */
  4829 + 401: any;
  4830 + /**
  4831 + * @description
  4832 + * Forbidden
  4833 + */
  4834 + 403: any;
  4835 + /**
  4836 + * @description
  4837 + * Not Found
  4838 + */
  4839 + 404: any;
  4840 +}
  4841 +
  4842 +export type PostOrderErpRolesDetailResponseSuccess =
  4843 + PostOrderErpRolesDetailResponse[200];
  4844 +/**
  4845 + * @description
  4846 + * 获取单个role
  4847 + * @tags 系统:角色管理
  4848 + * @produces *
  4849 + * @consumes application/json
  4850 + */
  4851 +export const postOrderErpRolesDetail = /* #__PURE__ */ (() => {
  4852 + const method = 'post';
  4853 + const url = '/order/erp/roles/detail';
  4854 + function request(
  4855 + option: PostOrderErpRolesDetailOption,
  4856 + ): Promise<PostOrderErpRolesDetailResponseSuccess> {
  4857 + return requester(request.url, {
  4858 + method: request.method,
  4859 + ...option,
  4860 + }) as unknown as Promise<PostOrderErpRolesDetailResponseSuccess>;
  4861 + }
  4862 +
  4863 + /** http method */
  4864 + request.method = method;
  4865 + /** request url */
  4866 + request.url = url;
  4867 + return request;
  4868 +})();
  4869 +
  4870 +/** @description request parameter type for postOrderErpRolesEdit */
  4871 +export interface PostOrderErpRolesEditOption {
  4872 + /**
  4873 + * @description
  4874 + * roleVO
  4875 + */
  4876 + body: {
  4877 + /**
  4878 + @description
  4879 + roleVO */
  4880 + roleVO: AdminRoleVO;
  4881 + };
  4882 +}
  4883 +
  4884 +/** @description response type for postOrderErpRolesEdit */
  4885 +export interface PostOrderErpRolesEditResponse {
  4886 + /**
  4887 + * @description
  4888 + * OK
  4889 + */
  4890 + 200: ServerResult;
  4891 + /**
  4892 + * @description
  4893 + * Created
  4894 + */
  4895 + 201: any;
  4896 + /**
  4897 + * @description
  4898 + * Unauthorized
  4899 + */
  4900 + 401: any;
  4901 + /**
  4902 + * @description
  4903 + * Forbidden
  4904 + */
  4905 + 403: any;
  4906 + /**
  4907 + * @description
  4908 + * Not Found
  4909 + */
  4910 + 404: any;
  4911 +}
  4912 +
  4913 +export type PostOrderErpRolesEditResponseSuccess =
  4914 + PostOrderErpRolesEditResponse[200];
  4915 +/**
  4916 + * @description
  4917 + * 修改角色
  4918 + * @tags 系统:角色管理
  4919 + * @produces *
  4920 + * @consumes application/json
  4921 + */
  4922 +export const postOrderErpRolesEdit = /* #__PURE__ */ (() => {
  4923 + const method = 'post';
  4924 + const url = '/order/erp/roles/edit';
  4925 + function request(
  4926 + option: PostOrderErpRolesEditOption,
  4927 + ): Promise<PostOrderErpRolesEditResponseSuccess> {
  4928 + return requester(request.url, {
  4929 + method: request.method,
  4930 + ...option,
  4931 + }) as unknown as Promise<PostOrderErpRolesEditResponseSuccess>;
  4932 + }
  4933 +
  4934 + /** http method */
  4935 + request.method = method;
  4936 + /** request url */
  4937 + request.url = url;
  4938 + return request;
  4939 +})();
  4940 +
  4941 +/** @description request parameter type for postOrderErpRolesListByPage */
  4942 +export interface PostOrderErpRolesListByPageOption {
  4943 + /**
  4944 + * @description
  4945 + * queryVO
  4946 + */
  4947 + body: {
  4948 + /**
  4949 + @description
  4950 + queryVO */
  4951 + queryVO: AdminRoleQueryVO;
  4952 + };
  4953 +}
  4954 +
  4955 +/** @description response type for postOrderErpRolesListByPage */
  4956 +export interface PostOrderErpRolesListByPageResponse {
  4957 + /**
  4958 + * @description
  4959 + * OK
  4960 + */
  4961 + 200: ServerResult;
  4962 + /**
  4963 + * @description
  4964 + * Created
  4965 + */
  4966 + 201: any;
  4967 + /**
  4968 + * @description
  4969 + * Unauthorized
  4970 + */
  4971 + 401: any;
  4972 + /**
  4973 + * @description
  4974 + * Forbidden
  4975 + */
  4976 + 403: any;
  4977 + /**
  4978 + * @description
  4979 + * Not Found
  4980 + */
  4981 + 404: any;
  4982 +}
  4983 +
  4984 +export type PostOrderErpRolesListByPageResponseSuccess =
  4985 + PostOrderErpRolesListByPageResponse[200];
  4986 +/**
  4987 + * @description
  4988 + * 查询角色
  4989 + * @tags 系统:角色管理
  4990 + * @produces *
  4991 + * @consumes application/json
  4992 + */
  4993 +export const postOrderErpRolesListByPage = /* #__PURE__ */ (() => {
  4994 + const method = 'post';
  4995 + const url = '/order/erp/roles/list_by_page';
  4996 + function request(
  4997 + option: PostOrderErpRolesListByPageOption,
  4998 + ): Promise<PostOrderErpRolesListByPageResponseSuccess> {
  4999 + return requester(request.url, {
  5000 + method: request.method,
  5001 + ...option,
  5002 + }) as unknown as Promise<PostOrderErpRolesListByPageResponseSuccess>;
  5003 + }
  5004 +
  5005 + /** http method */
  5006 + request.method = method;
  5007 + /** request url */
  5008 + request.url = url;
  5009 + return request;
  5010 +})();
  5011 +
  5012 +/** @description request parameter type for postOrderErpUsersAdd */
  5013 +export interface PostOrderErpUsersAddOption {
  5014 + /**
  5015 + * @description
  5016 + * userVO
  5017 + */
  5018 + body: {
  5019 + /**
  5020 + @description
  5021 + userVO */
  5022 + userVO: AdminUserVO;
  5023 + };
  5024 +}
  5025 +
  5026 +/** @description response type for postOrderErpUsersAdd */
  5027 +export interface PostOrderErpUsersAddResponse {
  5028 + /**
  5029 + * @description
  5030 + * OK
  5031 + */
  5032 + 200: ServerResult;
  5033 + /**
  5034 + * @description
  5035 + * Created
  5036 + */
  5037 + 201: any;
  5038 + /**
  5039 + * @description
  5040 + * Unauthorized
  5041 + */
  5042 + 401: any;
  5043 + /**
  5044 + * @description
  5045 + * Forbidden
  5046 + */
  5047 + 403: any;
  5048 + /**
  5049 + * @description
  5050 + * Not Found
  5051 + */
  5052 + 404: any;
  5053 +}
  5054 +
  5055 +export type PostOrderErpUsersAddResponseSuccess =
  5056 + PostOrderErpUsersAddResponse[200];
  5057 +/**
  5058 + * @description
  5059 + * 新增用户
  5060 + * @tags 系统:用户管理
  5061 + * @produces *
  5062 + * @consumes application/json
  5063 + */
  5064 +export const postOrderErpUsersAdd = /* #__PURE__ */ (() => {
  5065 + const method = 'post';
  5066 + const url = '/order/erp/users/add';
  5067 + function request(
  5068 + option: PostOrderErpUsersAddOption,
  5069 + ): Promise<PostOrderErpUsersAddResponseSuccess> {
  5070 + return requester(request.url, {
  5071 + method: request.method,
  5072 + ...option,
  5073 + }) as unknown as Promise<PostOrderErpUsersAddResponseSuccess>;
  5074 + }
  5075 +
  5076 + /** http method */
  5077 + request.method = method;
  5078 + /** request url */
  5079 + request.url = url;
  5080 + return request;
  5081 +})();
  5082 +
  5083 +/** @description request parameter type for postOrderErpUsersAuthRole */
  5084 +export interface PostOrderErpUsersAuthRoleOption {
  5085 + /**
  5086 + * @description
  5087 + * userVO
  5088 + */
  5089 + body: {
  5090 + /**
  5091 + @description
  5092 + userVO */
  5093 + userVO: AdminAuthUserVO;
  5094 + };
  5095 +}
  5096 +
  5097 +/** @description response type for postOrderErpUsersAuthRole */
  5098 +export interface PostOrderErpUsersAuthRoleResponse {
  5099 + /**
  5100 + * @description
  5101 + * OK
  5102 + */
  5103 + 200: ServerResult;
  5104 + /**
  5105 + * @description
  5106 + * Created
  5107 + */
  5108 + 201: any;
  5109 + /**
  5110 + * @description
  5111 + * Unauthorized
  5112 + */
  5113 + 401: any;
  5114 + /**
  5115 + * @description
  5116 + * Forbidden
  5117 + */
  5118 + 403: any;
  5119 + /**
  5120 + * @description
  5121 + * Not Found
  5122 + */
  5123 + 404: any;
  5124 +}
  5125 +
  5126 +export type PostOrderErpUsersAuthRoleResponseSuccess =
  5127 + PostOrderErpUsersAuthRoleResponse[200];
  5128 +/**
  5129 + * @description
  5130 + * 授权角色
  5131 + * @tags 系统:用户管理
  5132 + * @produces *
  5133 + * @consumes application/json
  5134 + */
  5135 +export const postOrderErpUsersAuthRole = /* #__PURE__ */ (() => {
  5136 + const method = 'post';
  5137 + const url = '/order/erp/users/auth_role';
  5138 + function request(
  5139 + option: PostOrderErpUsersAuthRoleOption,
  5140 + ): Promise<PostOrderErpUsersAuthRoleResponseSuccess> {
  5141 + return requester(request.url, {
  5142 + method: request.method,
  5143 + ...option,
  5144 + }) as unknown as Promise<PostOrderErpUsersAuthRoleResponseSuccess>;
  5145 + }
  5146 +
  5147 + /** http method */
  5148 + request.method = method;
  5149 + /** request url */
  5150 + request.url = url;
  5151 + return request;
  5152 +})();
  5153 +
  5154 +/** @description request parameter type for postOrderErpUsersDelete */
  5155 +export interface PostOrderErpUsersDeleteOption {
  5156 + /**
  5157 + * @description
  5158 + * queryVO
  5159 + */
  5160 + body: {
  5161 + /**
  5162 + @description
  5163 + queryVO */
  5164 + queryVO: AdminUserQueryVO;
  5165 + };
  5166 +}
  5167 +
  5168 +/** @description response type for postOrderErpUsersDelete */
  5169 +export interface PostOrderErpUsersDeleteResponse {
  5170 + /**
  5171 + * @description
  5172 + * OK
  5173 + */
  5174 + 200: ServerResult;
  5175 + /**
  5176 + * @description
  5177 + * Created
  5178 + */
  5179 + 201: any;
  5180 + /**
  5181 + * @description
  5182 + * Unauthorized
  5183 + */
  5184 + 401: any;
  5185 + /**
  5186 + * @description
  5187 + * Forbidden
  5188 + */
  5189 + 403: any;
  5190 + /**
  5191 + * @description
  5192 + * Not Found
  5193 + */
  5194 + 404: any;
  5195 +}
  5196 +
  5197 +export type PostOrderErpUsersDeleteResponseSuccess =
  5198 + PostOrderErpUsersDeleteResponse[200];
  5199 +/**
  5200 + * @description
  5201 + * 删除用户
  5202 + * @tags 系统:用户管理
  5203 + * @produces *
  5204 + * @consumes application/json
  5205 + */
  5206 +export const postOrderErpUsersDelete = /* #__PURE__ */ (() => {
  5207 + const method = 'post';
  5208 + const url = '/order/erp/users/delete';
  5209 + function request(
  5210 + option: PostOrderErpUsersDeleteOption,
  5211 + ): Promise<PostOrderErpUsersDeleteResponseSuccess> {
  5212 + return requester(request.url, {
  5213 + method: request.method,
  5214 + ...option,
  5215 + }) as unknown as Promise<PostOrderErpUsersDeleteResponseSuccess>;
  5216 + }
  5217 +
  5218 + /** http method */
  5219 + request.method = method;
  5220 + /** request url */
  5221 + request.url = url;
  5222 + return request;
  5223 +})();
  5224 +
  5225 +/** @description request parameter type for postOrderErpUsersEdit */
  5226 +export interface PostOrderErpUsersEditOption {
  5227 + /**
  5228 + * @description
  5229 + * userVO
  5230 + */
  5231 + body: {
  5232 + /**
  5233 + @description
  5234 + userVO */
  5235 + userVO: AdminUserVO;
  5236 + };
  5237 +}
  5238 +
  5239 +/** @description response type for postOrderErpUsersEdit */
  5240 +export interface PostOrderErpUsersEditResponse {
  5241 + /**
  5242 + * @description
  5243 + * OK
  5244 + */
  5245 + 200: ServerResult;
  5246 + /**
  5247 + * @description
  5248 + * Created
  5249 + */
  5250 + 201: any;
  5251 + /**
  5252 + * @description
  5253 + * Unauthorized
  5254 + */
  5255 + 401: any;
  5256 + /**
  5257 + * @description
  5258 + * Forbidden
  5259 + */
  5260 + 403: any;
  5261 + /**
  5262 + * @description
  5263 + * Not Found
  5264 + */
  5265 + 404: any;
  5266 +}
  5267 +
  5268 +export type PostOrderErpUsersEditResponseSuccess =
  5269 + PostOrderErpUsersEditResponse[200];
  5270 +/**
  5271 + * @description
  5272 + * 修改用户
  5273 + * @tags 系统:用户管理
  5274 + * @produces *
  5275 + * @consumes application/json
  5276 + */
  5277 +export const postOrderErpUsersEdit = /* #__PURE__ */ (() => {
  5278 + const method = 'post';
  5279 + const url = '/order/erp/users/edit';
  5280 + function request(
  5281 + option: PostOrderErpUsersEditOption,
  5282 + ): Promise<PostOrderErpUsersEditResponseSuccess> {
  5283 + return requester(request.url, {
  5284 + method: request.method,
  5285 + ...option,
  5286 + }) as unknown as Promise<PostOrderErpUsersEditResponseSuccess>;
  5287 + }
  5288 +
  5289 + /** http method */
  5290 + request.method = method;
  5291 + /** request url */
  5292 + request.url = url;
  5293 + return request;
  5294 +})();
  5295 +
  5296 +/** @description request parameter type for postOrderErpUsersListByPage */
  5297 +export interface PostOrderErpUsersListByPageOption {
  5298 + /**
  5299 + * @description
  5300 + * queryVO
  5301 + */
  5302 + body: {
  5303 + /**
  5304 + @description
  5305 + queryVO */
  5306 + queryVO: AdminUserQueryVO;
  5307 + };
  5308 +}
  5309 +
  5310 +/** @description response type for postOrderErpUsersListByPage */
  5311 +export interface PostOrderErpUsersListByPageResponse {
  5312 + /**
  5313 + * @description
  5314 + * OK
  5315 + */
  5316 + 200: ServerResult;
  5317 + /**
  5318 + * @description
  5319 + * Created
  5320 + */
  5321 + 201: any;
  5322 + /**
  5323 + * @description
  5324 + * Unauthorized
  5325 + */
  5326 + 401: any;
  5327 + /**
  5328 + * @description
  5329 + * Forbidden
  5330 + */
  5331 + 403: any;
  5332 + /**
  5333 + * @description
  5334 + * Not Found
  5335 + */
  5336 + 404: any;
  5337 +}
  5338 +
  5339 +export type PostOrderErpUsersListByPageResponseSuccess =
  5340 + PostOrderErpUsersListByPageResponse[200];
  5341 +/**
  5342 + * @description
  5343 + * 查询用户
  5344 + * @tags 系统:用户管理
  5345 + * @produces *
  5346 + * @consumes application/json
  5347 + */
  5348 +export const postOrderErpUsersListByPage = /* #__PURE__ */ (() => {
  5349 + const method = 'post';
  5350 + const url = '/order/erp/users/list_by_page';
  5351 + function request(
  5352 + option: PostOrderErpUsersListByPageOption,
  5353 + ): Promise<PostOrderErpUsersListByPageResponseSuccess> {
  5354 + return requester(request.url, {
  5355 + method: request.method,
  5356 + ...option,
  5357 + }) as unknown as Promise<PostOrderErpUsersListByPageResponseSuccess>;
  5358 + }
  5359 +
  5360 + /** http method */
  5361 + request.method = method;
  5362 + /** request url */
  5363 + request.url = url;
  5364 + return request;
  5365 +})();
  5366 +
  5367 +/** @description request parameter type for postOrderErpUsersReset */
  5368 +export interface PostOrderErpUsersResetOption {
  5369 + /**
  5370 + * @description
  5371 + * resetPwdVO
  5372 + */
  5373 + body: {
  5374 + /**
  5375 + @description
  5376 + resetPwdVO */
  5377 + resetPwdVO: ResetPwdVO;
  5378 + };
  5379 +}
  5380 +
  5381 +/** @description response type for postOrderErpUsersReset */
  5382 +export interface PostOrderErpUsersResetResponse {
  5383 + /**
  5384 + * @description
  5385 + * OK
  5386 + */
  5387 + 200: ServerResult;
  5388 + /**
  5389 + * @description
  5390 + * Created
  5391 + */
  5392 + 201: any;
  5393 + /**
  5394 + * @description
  5395 + * Unauthorized
  5396 + */
  5397 + 401: any;
  5398 + /**
  5399 + * @description
  5400 + * Forbidden
  5401 + */
  5402 + 403: any;
  5403 + /**
  5404 + * @description
  5405 + * Not Found
  5406 + */
  5407 + 404: any;
  5408 +}
  5409 +
  5410 +export type PostOrderErpUsersResetResponseSuccess =
  5411 + PostOrderErpUsersResetResponse[200];
  5412 +/**
  5413 + * @description
  5414 + * 重置密码
  5415 + * @tags 系统:用户管理
  5416 + * @produces *
  5417 + * @consumes application/json
  5418 + */
  5419 +export const postOrderErpUsersReset = /* #__PURE__ */ (() => {
  5420 + const method = 'post';
  5421 + const url = '/order/erp/users/reset';
  5422 + function request(
  5423 + option: PostOrderErpUsersResetOption,
  5424 + ): Promise<PostOrderErpUsersResetResponseSuccess> {
  5425 + return requester(request.url, {
  5426 + method: request.method,
  5427 + ...option,
  5428 + }) as unknown as Promise<PostOrderErpUsersResetResponseSuccess>;
  5429 + }
  5430 +
  5431 + /** http method */
  5432 + request.method = method;
  5433 + /** request url */
  5434 + request.url = url;
  5435 + return request;
  5436 +})();
  5437 +
  5438 +/** @description request parameter type for postOrderErpUsersUpdatePass */
  5439 +export interface PostOrderErpUsersUpdatePassOption {
  5440 + /**
  5441 + * @description
  5442 + * pwdVO
  5443 + */
  5444 + body: {
  5445 + /**
  5446 + @description
  5447 + pwdVO */
  5448 + pwdVO: UpdatePwdVO;
  5449 + };
  5450 +}
  5451 +
  5452 +/** @description response type for postOrderErpUsersUpdatePass */
  5453 +export interface PostOrderErpUsersUpdatePassResponse {
  5454 + /**
  5455 + * @description
  5456 + * OK
  5457 + */
  5458 + 200: ServerResult;
  5459 + /**
  5460 + * @description
  5461 + * Created
  5462 + */
  5463 + 201: any;
  5464 + /**
  5465 + * @description
  5466 + * Unauthorized
  5467 + */
  5468 + 401: any;
  5469 + /**
  5470 + * @description
  5471 + * Forbidden
  5472 + */
  5473 + 403: any;
  5474 + /**
  5475 + * @description
  5476 + * Not Found
  5477 + */
  5478 + 404: any;
  5479 +}
  5480 +
  5481 +export type PostOrderErpUsersUpdatePassResponseSuccess =
  5482 + PostOrderErpUsersUpdatePassResponse[200];
  5483 +/**
  5484 + * @description
  5485 + * 修改密码
  5486 + * @tags 系统:用户管理
  5487 + * @produces *
  5488 + * @consumes application/json
  5489 + */
  5490 +export const postOrderErpUsersUpdatePass = /* #__PURE__ */ (() => {
  5491 + const method = 'post';
  5492 + const url = '/order/erp/users/update_pass';
  5493 + function request(
  5494 + option: PostOrderErpUsersUpdatePassOption,
  5495 + ): Promise<PostOrderErpUsersUpdatePassResponseSuccess> {
  5496 + return requester(request.url, {
  5497 + method: request.method,
  5498 + ...option,
  5499 + }) as unknown as Promise<PostOrderErpUsersUpdatePassResponseSuccess>;
  5500 + }
  5501 +
  5502 + /** http method */
  5503 + request.method = method;
  5504 + /** request url */
  5505 + request.url = url;
  5506 + return request;
  5507 +})();
  5508 +
  5509 +/** @description request parameter type for postServiceBankStatementDeleteBankStatement */
  5510 +export interface PostServiceBankStatementDeleteBankStatementOption {
  5511 + /**
  5512 + * @description
  5513 + * dto
  5514 + */
  5515 + body: {
  5516 + /**
  5517 + @description
  5518 + dto */
  5519 + dto: Dto;
  5520 + };
  5521 +}
  5522 +
  5523 +/** @description response type for postServiceBankStatementDeleteBankStatement */
  5524 +export interface PostServiceBankStatementDeleteBankStatementResponse {
  5525 + /**
  5526 + * @description
  5527 + * OK
  5528 + */
  5529 + 200: ServerResult;
  5530 + /**
  5531 + * @description
  5532 + * Created
  5533 + */
  5534 + 201: any;
  5535 + /**
  5536 + * @description
  5537 + * Unauthorized
  5538 + */
  5539 + 401: any;
  5540 + /**
  5541 + * @description
  5542 + * Forbidden
  5543 + */
  5544 + 403: any;
  5545 + /**
  5546 + * @description
  5547 + * Not Found
  5548 + */
  5549 + 404: any;
  5550 +}
  5551 +
  5552 +export type PostServiceBankStatementDeleteBankStatementResponseSuccess =
  5553 + PostServiceBankStatementDeleteBankStatementResponse[200];
  5554 +/**
  5555 + * @description
  5556 + * 删除银行流水
  5557 + * @tags 银行流水
  5558 + * @produces *
  5559 + * @consumes application/json
  5560 + */
  5561 +export const postServiceBankStatementDeleteBankStatement =
  5562 + /* #__PURE__ */ (() => {
  5563 + const method = 'post';
  5564 + const url = '/service/bankStatement/deleteBankStatement';
  5565 + function request(
  5566 + option: PostServiceBankStatementDeleteBankStatementOption,
  5567 + ): Promise<PostServiceBankStatementDeleteBankStatementResponseSuccess> {
  5568 + return requester(request.url, {
  5569 + method: request.method,
  5570 + ...option,
  5571 + }) as unknown as Promise<PostServiceBankStatementDeleteBankStatementResponseSuccess>;
  5572 + }
  5573 +
  5574 + /** http method */
  5575 + request.method = method;
  5576 + /** request url */
  5577 + request.url = url;
  5578 + return request;
  5579 + })();
  5580 +
  5581 +/** @description request parameter type for postServiceBankStatementEditBankStatement */
  5582 +export interface PostServiceBankStatementEditBankStatementOption {
  5583 + /**
  5584 + * @description
  5585 + * dto
  5586 + */
  5587 + body: {
  5588 + /**
  5589 + @description
  5590 + dto */
  5591 + dto: Dto;
  5592 + };
  5593 +}
  5594 +
  5595 +/** @description response type for postServiceBankStatementEditBankStatement */
  5596 +export interface PostServiceBankStatementEditBankStatementResponse {
  5597 + /**
  5598 + * @description
  5599 + * OK
  5600 + */
  5601 + 200: ServerResult;
  5602 + /**
  5603 + * @description
  5604 + * Created
  5605 + */
  5606 + 201: any;
  5607 + /**
  5608 + * @description
  5609 + * Unauthorized
  5610 + */
  5611 + 401: any;
  5612 + /**
  5613 + * @description
  5614 + * Forbidden
  5615 + */
  5616 + 403: any;
  5617 + /**
  5618 + * @description
  5619 + * Not Found
  5620 + */
  5621 + 404: any;
  5622 +}
  5623 +
  5624 +export type PostServiceBankStatementEditBankStatementResponseSuccess =
  5625 + PostServiceBankStatementEditBankStatementResponse[200];
  5626 +/**
  5627 + * @description
  5628 + * 编辑银行流水
  5629 + * @tags 银行流水
  5630 + * @produces *
  5631 + * @consumes application/json
  5632 + */
  5633 +export const postServiceBankStatementEditBankStatement =
  5634 + /* #__PURE__ */ (() => {
  5635 + const method = 'post';
  5636 + const url = '/service/bankStatement/editBankStatement';
  5637 + function request(
  5638 + option: PostServiceBankStatementEditBankStatementOption,
  5639 + ): Promise<PostServiceBankStatementEditBankStatementResponseSuccess> {
  5640 + return requester(request.url, {
  5641 + method: request.method,
  5642 + ...option,
  5643 + }) as unknown as Promise<PostServiceBankStatementEditBankStatementResponseSuccess>;
  5644 + }
  5645 +
  5646 + /** http method */
  5647 + request.method = method;
  5648 + /** request url */
  5649 + request.url = url;
  5650 + return request;
  5651 + })();
  5652 +
  5653 +/** @description response type for postServiceBankStatementExportTemplate */
  5654 +export interface PostServiceBankStatementExportTemplateResponse {
  5655 + /**
  5656 + * @description
  5657 + * OK
  5658 + */
  5659 + 200: any;
  5660 + /**
  5661 + * @description
  5662 + * Created
  5663 + */
  5664 + 201: any;
  5665 + /**
  5666 + * @description
  5667 + * Unauthorized
  5668 + */
  5669 + 401: any;
  5670 + /**
  5671 + * @description
  5672 + * Forbidden
  5673 + */
  5674 + 403: any;
  5675 + /**
  5676 + * @description
  5677 + * Not Found
  5678 + */
  5679 + 404: any;
  5680 +}
  5681 +
  5682 +export type PostServiceBankStatementExportTemplateResponseSuccess =
  5683 + PostServiceBankStatementExportTemplateResponse[200];
  5684 +/**
  5685 + * @description
  5686 + * 下载银行流水模板
  5687 + * @tags 银行流水
  5688 + * @produces *
  5689 + * @consumes application/json
  5690 + */
  5691 +export const postServiceBankStatementExportTemplate = /* #__PURE__ */ (() => {
  5692 + const method = 'post';
  5693 + const url = '/service/bankStatement/exportTemplate';
  5694 + function request(): Promise<PostServiceBankStatementExportTemplateResponseSuccess> {
  5695 + return requester(request.url, {
  5696 + method: request.method,
  5697 + }) as unknown as Promise<PostServiceBankStatementExportTemplateResponseSuccess>;
  5698 + }
  5699 +
  5700 + /** http method */
  5701 + request.method = method;
  5702 + /** request url */
  5703 + request.url = url;
  5704 + return request;
  5705 +})();
  5706 +
  5707 +/** @description request parameter type for postServiceBankStatementImportBankStatementForm */
  5708 +export interface PostServiceBankStatementImportBankStatementFormOption {
  5709 + /**
  5710 + * @description
  5711 + * file
  5712 + */
  5713 + formData: {
  5714 + /**
  5715 + @description
  5716 + file */
  5717 + file: File;
  5718 + };
  5719 +}
  5720 +
  5721 +/** @description response type for postServiceBankStatementImportBankStatementForm */
  5722 +export interface PostServiceBankStatementImportBankStatementFormResponse {
  5723 + /**
  5724 + * @description
  5725 + * OK
  5726 + */
  5727 + 200: ServerResult;
  5728 + /**
  5729 + * @description
  5730 + * Created
  5731 + */
  5732 + 201: any;
  5733 + /**
  5734 + * @description
  5735 + * Unauthorized
  5736 + */
  5737 + 401: any;
  5738 + /**
  5739 + * @description
  5740 + * Forbidden
  5741 + */
  5742 + 403: any;
  5743 + /**
  5744 + * @description
  5745 + * Not Found
  5746 + */
  5747 + 404: any;
  5748 +}
  5749 +
  5750 +export type PostServiceBankStatementImportBankStatementFormResponseSuccess =
  5751 + PostServiceBankStatementImportBankStatementFormResponse[200];
  5752 +/**
  5753 + * @description
  5754 + * 导入银行流水表格
  5755 + * @tags 银行流水
  5756 + * @produces *
  5757 + * @consumes multipart/form-data
  5758 + */
  5759 +export const postServiceBankStatementImportBankStatementForm =
  5760 + /* #__PURE__ */ (() => {
  5761 + const method = 'post';
  5762 + const url = '/service/bankStatement/importBankStatementForm';
  5763 + function request(
  5764 + option: PostServiceBankStatementImportBankStatementFormOption,
  5765 + ): Promise<PostServiceBankStatementImportBankStatementFormResponseSuccess> {
  5766 + return requester(request.url, {
  5767 + method: request.method,
  5768 + ...option,
  5769 + }) as unknown as Promise<PostServiceBankStatementImportBankStatementFormResponseSuccess>;
  5770 + }
  5771 +
  5772 + /** http method */
  5773 + request.method = method;
  5774 + /** request url */
  5775 + request.url = url;
  5776 + return request;
  5777 + })();
  5778 +
  5779 +/** @description request parameter type for postServiceBankStatementQueryBankStatement */
  5780 +export interface PostServiceBankStatementQueryBankStatementOption {
  5781 + /**
  5782 + * @description
  5783 + * dto
4641 5784 */
4642 5785 body: {
4643 5786 /**
4644 5787 @description
4645   - resetPwdVO */
4646   - resetPwdVO: ResetPwdVO;
  5788 + dto */
  5789 + dto: QueryBankStatementDto;
4647 5790 };
4648 5791 }
4649 5792  
4650   -/** @description response type for postOrderErpUsersReset */
4651   -export interface PostOrderErpUsersResetResponse {
  5793 +/** @description response type for postServiceBankStatementQueryBankStatement */
  5794 +export interface PostServiceBankStatementQueryBankStatementResponse {
4652 5795 /**
4653 5796 * @description
4654 5797 * OK
... ... @@ -4676,50 +5819,51 @@ export interface PostOrderErpUsersResetResponse {
4676 5819 404: any;
4677 5820 }
4678 5821  
4679   -export type PostOrderErpUsersResetResponseSuccess =
4680   - PostOrderErpUsersResetResponse[200];
  5822 +export type PostServiceBankStatementQueryBankStatementResponseSuccess =
  5823 + PostServiceBankStatementQueryBankStatementResponse[200];
4681 5824 /**
4682 5825 * @description
4683   - * 重置密码
4684   - * @tags 系统:用户管理
  5826 + * 查询银行流水
  5827 + * @tags 银行流水
4685 5828 * @produces *
4686 5829 * @consumes application/json
4687 5830 */
4688   -export const postOrderErpUsersReset = /* #__PURE__ */ (() => {
4689   - const method = 'post';
4690   - const url = '/order/erp/users/reset';
4691   - function request(
4692   - option: PostOrderErpUsersResetOption,
4693   - ): Promise<PostOrderErpUsersResetResponseSuccess> {
4694   - return requester(request.url, {
4695   - method: request.method,
4696   - ...option,
4697   - }) as unknown as Promise<PostOrderErpUsersResetResponseSuccess>;
4698   - }
  5831 +export const postServiceBankStatementQueryBankStatement =
  5832 + /* #__PURE__ */ (() => {
  5833 + const method = 'post';
  5834 + const url = '/service/bankStatement/queryBankStatement';
  5835 + function request(
  5836 + option: PostServiceBankStatementQueryBankStatementOption,
  5837 + ): Promise<PostServiceBankStatementQueryBankStatementResponseSuccess> {
  5838 + return requester(request.url, {
  5839 + method: request.method,
  5840 + ...option,
  5841 + }) as unknown as Promise<PostServiceBankStatementQueryBankStatementResponseSuccess>;
  5842 + }
4699 5843  
4700   - /** http method */
4701   - request.method = method;
4702   - /** request url */
4703   - request.url = url;
4704   - return request;
4705   -})();
  5844 + /** http method */
  5845 + request.method = method;
  5846 + /** request url */
  5847 + request.url = url;
  5848 + return request;
  5849 + })();
4706 5850  
4707   -/** @description request parameter type for postOrderErpUsersUpdatePass */
4708   -export interface PostOrderErpUsersUpdatePassOption {
  5851 +/** @description request parameter type for postServiceInvoiceCancelInvoiceAndBankStatement */
  5852 +export interface PostServiceInvoiceCancelInvoiceAndBankStatementOption {
4709 5853 /**
4710 5854 * @description
4711   - * pwdVO
  5855 + * dto
4712 5856 */
4713 5857 body: {
4714 5858 /**
4715 5859 @description
4716   - pwdVO */
4717   - pwdVO: UpdatePwdVO;
  5860 + dto */
  5861 + dto: CancelInvoiceAndBankStatementDto;
4718 5862 };
4719 5863 }
4720 5864  
4721   -/** @description response type for postOrderErpUsersUpdatePass */
4722   -export interface PostOrderErpUsersUpdatePassResponse {
  5865 +/** @description response type for postServiceInvoiceCancelInvoiceAndBankStatement */
  5866 +export interface PostServiceInvoiceCancelInvoiceAndBankStatementResponse {
4723 5867 /**
4724 5868 * @description
4725 5869 * OK
... ... @@ -4747,41 +5891,56 @@ export interface PostOrderErpUsersUpdatePassResponse {
4747 5891 404: any;
4748 5892 }
4749 5893  
4750   -export type PostOrderErpUsersUpdatePassResponseSuccess =
4751   - PostOrderErpUsersUpdatePassResponse[200];
  5894 +export type PostServiceInvoiceCancelInvoiceAndBankStatementResponseSuccess =
  5895 + PostServiceInvoiceCancelInvoiceAndBankStatementResponse[200];
4752 5896 /**
4753 5897 * @description
4754   - * 修改密码
4755   - * @tags 系统:用户管理
  5898 + * 取消发票与银行流水的关联
  5899 + * @tags 发票
4756 5900 * @produces *
4757 5901 * @consumes application/json
4758 5902 */
4759   -export const postOrderErpUsersUpdatePass = /* #__PURE__ */ (() => {
4760   - const method = 'post';
4761   - const url = '/order/erp/users/update_pass';
4762   - function request(
4763   - option: PostOrderErpUsersUpdatePassOption,
4764   - ): Promise<PostOrderErpUsersUpdatePassResponseSuccess> {
4765   - return requester(request.url, {
4766   - method: request.method,
4767   - ...option,
4768   - }) as unknown as Promise<PostOrderErpUsersUpdatePassResponseSuccess>;
4769   - }
  5903 +export const postServiceInvoiceCancelInvoiceAndBankStatement =
  5904 + /* #__PURE__ */ (() => {
  5905 + const method = 'post';
  5906 + const url = '/service/invoice/cancelInvoiceAndBankStatement';
  5907 + function request(
  5908 + option: PostServiceInvoiceCancelInvoiceAndBankStatementOption,
  5909 + ): Promise<PostServiceInvoiceCancelInvoiceAndBankStatementResponseSuccess> {
  5910 + return requester(request.url, {
  5911 + method: request.method,
  5912 + ...option,
  5913 + }) as unknown as Promise<PostServiceInvoiceCancelInvoiceAndBankStatementResponseSuccess>;
  5914 + }
4770 5915  
4771   - /** http method */
4772   - request.method = method;
4773   - /** request url */
4774   - request.url = url;
4775   - return request;
4776   -})();
  5916 + /** http method */
  5917 + request.method = method;
  5918 + /** request url */
  5919 + request.url = url;
  5920 + return request;
  5921 + })();
4777 5922  
4778   -/** @description response type for postServiceBankStatementExportTemplate */
4779   -export interface PostServiceBankStatementExportTemplateResponse {
  5923 +/** @description request parameter type for postServiceInvoiceDeleteInvoice */
  5924 +export interface PostServiceInvoiceDeleteInvoiceOption {
  5925 + /**
  5926 + * @description
  5927 + * dto
  5928 + */
  5929 + body: {
  5930 + /**
  5931 + @description
  5932 + dto */
  5933 + dto: Dto;
  5934 + };
  5935 +}
  5936 +
  5937 +/** @description response type for postServiceInvoiceDeleteInvoice */
  5938 +export interface PostServiceInvoiceDeleteInvoiceResponse {
4780 5939 /**
4781 5940 * @description
4782 5941 * OK
4783 5942 */
4784   - 200: any;
  5943 + 200: ServerResult;
4785 5944 /**
4786 5945 * @description
4787 5946 * Created
... ... @@ -4804,22 +5963,25 @@ export interface PostServiceBankStatementExportTemplateResponse {
4804 5963 404: any;
4805 5964 }
4806 5965  
4807   -export type PostServiceBankStatementExportTemplateResponseSuccess =
4808   - PostServiceBankStatementExportTemplateResponse[200];
  5966 +export type PostServiceInvoiceDeleteInvoiceResponseSuccess =
  5967 + PostServiceInvoiceDeleteInvoiceResponse[200];
4809 5968 /**
4810 5969 * @description
4811   - * 下载银行流水模板
4812   - * @tags 银行流水
  5970 + * 删除发票
  5971 + * @tags 发票
4813 5972 * @produces *
4814 5973 * @consumes application/json
4815 5974 */
4816   -export const postServiceBankStatementExportTemplate = /* #__PURE__ */ (() => {
  5975 +export const postServiceInvoiceDeleteInvoice = /* #__PURE__ */ (() => {
4817 5976 const method = 'post';
4818   - const url = '/service/bankStatement/exportTemplate';
4819   - function request(): Promise<PostServiceBankStatementExportTemplateResponseSuccess> {
  5977 + const url = '/service/invoice/deleteInvoice';
  5978 + function request(
  5979 + option: PostServiceInvoiceDeleteInvoiceOption,
  5980 + ): Promise<PostServiceInvoiceDeleteInvoiceResponseSuccess> {
4820 5981 return requester(request.url, {
4821 5982 method: request.method,
4822   - }) as unknown as Promise<PostServiceBankStatementExportTemplateResponseSuccess>;
  5983 + ...option,
  5984 + }) as unknown as Promise<PostServiceInvoiceDeleteInvoiceResponseSuccess>;
4823 5985 }
4824 5986  
4825 5987 /** http method */
... ... @@ -4829,22 +5991,22 @@ export const postServiceBankStatementExportTemplate = /* #__PURE__ */ (() =&gt; {
4829 5991 return request;
4830 5992 })();
4831 5993  
4832   -/** @description request parameter type for postServiceBankStatementImportBankStatementForm */
4833   -export interface PostServiceBankStatementImportBankStatementFormOption {
  5994 +/** @description request parameter type for postServiceInvoiceInvoiceWriteOff */
  5995 +export interface PostServiceInvoiceInvoiceWriteOffOption {
4834 5996 /**
4835 5997 * @description
4836   - * file
  5998 + * dto
4837 5999 */
4838   - formData: {
  6000 + body: {
4839 6001 /**
4840 6002 @description
4841   - file */
4842   - file: File;
  6003 + dto */
  6004 + dto: Dto;
4843 6005 };
4844 6006 }
4845 6007  
4846   -/** @description response type for postServiceBankStatementImportBankStatementForm */
4847   -export interface PostServiceBankStatementImportBankStatementFormResponse {
  6008 +/** @description response type for postServiceInvoiceInvoiceWriteOff */
  6009 +export interface PostServiceInvoiceInvoiceWriteOffResponse {
4848 6010 /**
4849 6011 * @description
4850 6012 * OK
... ... @@ -4872,37 +6034,36 @@ export interface PostServiceBankStatementImportBankStatementFormResponse {
4872 6034 404: any;
4873 6035 }
4874 6036  
4875   -export type PostServiceBankStatementImportBankStatementFormResponseSuccess =
4876   - PostServiceBankStatementImportBankStatementFormResponse[200];
  6037 +export type PostServiceInvoiceInvoiceWriteOffResponseSuccess =
  6038 + PostServiceInvoiceInvoiceWriteOffResponse[200];
4877 6039 /**
4878 6040 * @description
4879   - * 导入银行流水表格
4880   - * @tags 银行流水
  6041 + * 发票核销
  6042 + * @tags 发票
4881 6043 * @produces *
4882   - * @consumes multipart/form-data
  6044 + * @consumes application/json
4883 6045 */
4884   -export const postServiceBankStatementImportBankStatementForm =
4885   - /* #__PURE__ */ (() => {
4886   - const method = 'post';
4887   - const url = '/service/bankStatement/importBankStatementForm';
4888   - function request(
4889   - option: PostServiceBankStatementImportBankStatementFormOption,
4890   - ): Promise<PostServiceBankStatementImportBankStatementFormResponseSuccess> {
4891   - return requester(request.url, {
4892   - method: request.method,
4893   - ...option,
4894   - }) as unknown as Promise<PostServiceBankStatementImportBankStatementFormResponseSuccess>;
4895   - }
  6046 +export const postServiceInvoiceInvoiceWriteOff = /* #__PURE__ */ (() => {
  6047 + const method = 'post';
  6048 + const url = '/service/invoice/invoiceWriteOff';
  6049 + function request(
  6050 + option: PostServiceInvoiceInvoiceWriteOffOption,
  6051 + ): Promise<PostServiceInvoiceInvoiceWriteOffResponseSuccess> {
  6052 + return requester(request.url, {
  6053 + method: request.method,
  6054 + ...option,
  6055 + }) as unknown as Promise<PostServiceInvoiceInvoiceWriteOffResponseSuccess>;
  6056 + }
4896 6057  
4897   - /** http method */
4898   - request.method = method;
4899   - /** request url */
4900   - request.url = url;
4901   - return request;
4902   - })();
  6058 + /** http method */
  6059 + request.method = method;
  6060 + /** request url */
  6061 + request.url = url;
  6062 + return request;
  6063 +})();
4903 6064  
4904   -/** @description request parameter type for postServiceInvoiceDeleteInvoice */
4905   -export interface PostServiceInvoiceDeleteInvoiceOption {
  6065 +/** @description request parameter type for postServiceInvoiceQueryInvoice */
  6066 +export interface PostServiceInvoiceQueryInvoiceOption {
4906 6067 /**
4907 6068 * @description
4908 6069 * dto
... ... @@ -4915,8 +6076,8 @@ export interface PostServiceInvoiceDeleteInvoiceOption {
4915 6076 };
4916 6077 }
4917 6078  
4918   -/** @description response type for postServiceInvoiceDeleteInvoice */
4919   -export interface PostServiceInvoiceDeleteInvoiceResponse {
  6079 +/** @description response type for postServiceInvoiceQueryInvoice */
  6080 +export interface PostServiceInvoiceQueryInvoiceResponse {
4920 6081 /**
4921 6082 * @description
4922 6083 * OK
... ... @@ -4944,25 +6105,25 @@ export interface PostServiceInvoiceDeleteInvoiceResponse {
4944 6105 404: any;
4945 6106 }
4946 6107  
4947   -export type PostServiceInvoiceDeleteInvoiceResponseSuccess =
4948   - PostServiceInvoiceDeleteInvoiceResponse[200];
  6108 +export type PostServiceInvoiceQueryInvoiceResponseSuccess =
  6109 + PostServiceInvoiceQueryInvoiceResponse[200];
4949 6110 /**
4950 6111 * @description
4951   - * 删除发票
  6112 + * 发票页查询
4952 6113 * @tags 发票
4953 6114 * @produces *
4954 6115 * @consumes application/json
4955 6116 */
4956   -export const postServiceInvoiceDeleteInvoice = /* #__PURE__ */ (() => {
  6117 +export const postServiceInvoiceQueryInvoice = /* #__PURE__ */ (() => {
4957 6118 const method = 'post';
4958   - const url = '/service/invoice/deleteInvoice';
  6119 + const url = '/service/invoice/queryInvoice';
4959 6120 function request(
4960   - option: PostServiceInvoiceDeleteInvoiceOption,
4961   - ): Promise<PostServiceInvoiceDeleteInvoiceResponseSuccess> {
  6121 + option: PostServiceInvoiceQueryInvoiceOption,
  6122 + ): Promise<PostServiceInvoiceQueryInvoiceResponseSuccess> {
4962 6123 return requester(request.url, {
4963 6124 method: request.method,
4964 6125 ...option,
4965   - }) as unknown as Promise<PostServiceInvoiceDeleteInvoiceResponseSuccess>;
  6126 + }) as unknown as Promise<PostServiceInvoiceQueryInvoiceResponseSuccess>;
4966 6127 }
4967 6128  
4968 6129 /** http method */
... ... @@ -4972,8 +6133,8 @@ export const postServiceInvoiceDeleteInvoice = /* #__PURE__ */ (() =&gt; {
4972 6133 return request;
4973 6134 })();
4974 6135  
4975   -/** @description request parameter type for postServiceInvoiceQueryInvoice */
4976   -export interface PostServiceInvoiceQueryInvoiceOption {
  6136 +/** @description request parameter type for postServiceInvoiceQueryInvoiceDetail */
  6137 +export interface PostServiceInvoiceQueryInvoiceDetailOption {
4977 6138 /**
4978 6139 * @description
4979 6140 * dto
... ... @@ -4982,12 +6143,12 @@ export interface PostServiceInvoiceQueryInvoiceOption {
4982 6143 /**
4983 6144 @description
4984 6145 dto */
4985   - dto: Dto;
  6146 + dto: QueryInvoiceDetailDto;
4986 6147 };
4987 6148 }
4988 6149  
4989   -/** @description response type for postServiceInvoiceQueryInvoice */
4990   -export interface PostServiceInvoiceQueryInvoiceResponse {
  6150 +/** @description response type for postServiceInvoiceQueryInvoiceDetail */
  6151 +export interface PostServiceInvoiceQueryInvoiceDetailResponse {
4991 6152 /**
4992 6153 * @description
4993 6154 * OK
... ... @@ -5015,25 +6176,25 @@ export interface PostServiceInvoiceQueryInvoiceResponse {
5015 6176 404: any;
5016 6177 }
5017 6178  
5018   -export type PostServiceInvoiceQueryInvoiceResponseSuccess =
5019   - PostServiceInvoiceQueryInvoiceResponse[200];
  6179 +export type PostServiceInvoiceQueryInvoiceDetailResponseSuccess =
  6180 + PostServiceInvoiceQueryInvoiceDetailResponse[200];
5020 6181 /**
5021 6182 * @description
5022   - * 发票页查询
  6183 + * 查看发票详情
5023 6184 * @tags 发票
5024 6185 * @produces *
5025 6186 * @consumes application/json
5026 6187 */
5027   -export const postServiceInvoiceQueryInvoice = /* #__PURE__ */ (() => {
  6188 +export const postServiceInvoiceQueryInvoiceDetail = /* #__PURE__ */ (() => {
5028 6189 const method = 'post';
5029   - const url = '/service/invoice/queryInvoice';
  6190 + const url = '/service/invoice/queryInvoiceDetail';
5030 6191 function request(
5031   - option: PostServiceInvoiceQueryInvoiceOption,
5032   - ): Promise<PostServiceInvoiceQueryInvoiceResponseSuccess> {
  6192 + option: PostServiceInvoiceQueryInvoiceDetailOption,
  6193 + ): Promise<PostServiceInvoiceQueryInvoiceDetailResponseSuccess> {
5033 6194 return requester(request.url, {
5034 6195 method: request.method,
5035 6196 ...option,
5036   - }) as unknown as Promise<PostServiceInvoiceQueryInvoiceResponseSuccess>;
  6197 + }) as unknown as Promise<PostServiceInvoiceQueryInvoiceDetailResponseSuccess>;
5037 6198 }
5038 6199  
5039 6200 /** http method */
... ... @@ -8427,7 +9588,7 @@ export interface PostServiceOrderUpdateHirePurchaseOption {
8427 9588 /**
8428 9589 @description
8429 9590 dto */
8430   - dto: Dto;
  9591 + dto: UpdateHirePurchaseDto;
8431 9592 };
8432 9593 }
8433 9594  
... ... @@ -8700,3 +9861,72 @@ export const postServiceOrderViewImages = /* #__PURE__ */ (() =&gt; {
8700 9861 request.url = url;
8701 9862 return request;
8702 9863 })();
  9864 +
  9865 +/** @description request parameter type for getServiceToggles */
  9866 +export interface GetServiceTogglesOption {
  9867 + /** @format date-time */
  9868 + query?: {
  9869 + /**
  9870 + @format date-time */
  9871 + createdAt?: string;
  9872 + description?: string;
  9873 + featureName?: string;
  9874 + /**
  9875 + @format int32 */
  9876 + id?: number;
  9877 + isEnabled?: boolean;
  9878 + /**
  9879 + @format date-time */
  9880 + updatedAt?: string;
  9881 + };
  9882 +}
  9883 +
  9884 +/** @description response type for getServiceToggles */
  9885 +export interface GetServiceTogglesResponse {
  9886 + /**
  9887 + * @description
  9888 + * OK
  9889 + */
  9890 + 200: ServerResult;
  9891 + /**
  9892 + * @description
  9893 + * Unauthorized
  9894 + */
  9895 + 401: any;
  9896 + /**
  9897 + * @description
  9898 + * Forbidden
  9899 + */
  9900 + 403: any;
  9901 + /**
  9902 + * @description
  9903 + * Not Found
  9904 + */
  9905 + 404: any;
  9906 +}
  9907 +
  9908 +export type GetServiceTogglesResponseSuccess = GetServiceTogglesResponse[200];
  9909 +/**
  9910 + * @description
  9911 + * getEnabledFlag
  9912 + * @tags feature-toggles-controller
  9913 + * @produces *
  9914 + */
  9915 +export const getServiceToggles = /* #__PURE__ */ (() => {
  9916 + const method = 'get';
  9917 + const url = '/service/toggles';
  9918 + function request(
  9919 + option?: GetServiceTogglesOption,
  9920 + ): Promise<GetServiceTogglesResponseSuccess> {
  9921 + return requester(request.url, {
  9922 + method: request.method,
  9923 + ...option,
  9924 + }) as unknown as Promise<GetServiceTogglesResponseSuccess>;
  9925 + }
  9926 +
  9927 + /** http method */
  9928 + request.method = method;
  9929 + /** request url */
  9930 + request.url = url;
  9931 + return request;
  9932 +})();
... ...
src/utils/kingdee.ts 0 → 100644
  1 +import { postKingdeeRepSystemCustomField } from '@/services';
  2 +
  3 +/**
  4 + * 获取课题组老师的自定义字段id
  5 + * @returns
  6 + */
  7 +export async function getTeacherCustomFieldNumber() {
  8 + let customFiledRes = await postKingdeeRepSystemCustomField({
  9 + data: {
  10 + entity_number: 'bd_customer',
  11 + },
  12 + });
  13 +
  14 + //遍历自定义字段的head,找到名称为"课题组老师"的entity_number
  15 + let entity_number = '';
  16 + customFiledRes?.head?.forEach((item) => {
  17 + if (item.display_name === '课题组老师') {
  18 + entity_number = item.number;
  19 + }
  20 + });
  21 + return entity_number;
  22 +}
... ...