
import React from 'react';
import { Button } from 'kts-components-antd-x3/lib/radio';
import { Invoice } from '../../../..';
import { IGetBuyerListOption } from '../../../../Invoice/InvoiceController/InvoiceControllerState/BuyerState';

const InvoiceController = Invoice.InvoiceController

export default () => {

  // 初始化控制器
  const controller = React.useMemo(() => new MyInvoiceController(), []);

  React.useEffect(() => {
    controller.run(async s => {
      // 设置数量单价计算小数位
      s.calculatingDigits = 13;
      
      // 设置数量金额计算小数位
      s.priceIntegerDigit = 14;

      s.goodsListState.isRecalculateWhenSwitchTax = true;
    })
  }, [controller])

  return (
    <>
      <Button style={{ marginBottom: 10 }} onClick={async () => { console.log('===> 当前组件状态', await controller.validateFields()); }} >获取数据</Button>
      <Invoice controller={controller} invoiceType='digtal' />
    </>
  );
};

// 重写 购买方 的数据源，实现 ‘获取 购买方 列表’ 方法
class MyInvoiceController extends InvoiceController {
  constructor() {
    super();

    this.state.autoComplete.onItemNameBlur = async (value: any) => {
      console.log(value, 'onBuyerNameBlur - Blur');

      return [
        {
          "taxCategoryCode": "1030206030000000000",
          "productName": "醋及醋代用品",
          "shorthand": "调味品",
          "id": null,
          "specification": null,
          "createTime": null,
          "status": 1,
          "versionCode": "48.0",
          "version": "32.0",
          "startTime": "20190401",
          "endTime": null,
          "cargo": null,
          "desc": null,
          "taxRate": "13%",
          "keyword": "食醋、米醋、酒醋、啤酒醋、麦芽醋、酒精醋、水果醋、醋精",
          "summarizedItem": "N",
          "countCode": null,
          "customsItem": null,
          "updateTime": null,
          "hzx": null,
          "children": null,
          "vatspecialManagement": "",
          "pid": "1030206000000000000",
          "vatpolicyBasis": null,
          "vatspecialManagementCode": "",
          "gstpolicyBasisCode": null,
          "gstspecialManagement": null,
          "gstpolicyBasis": null
        }
      ]
    };

    this.state.autoComplete.onItemNameSearch = async (value: any) => {
      console.log('===> onItemNameSearch')
      const data = [
        {
          "taxCategoryCode": "1090111090000000000",
          "productName": "uuuuuu",
          "name": null,
          "productCode": "0003",
          "shorthand": "小型起重设备",
          "id": "10881474649024102400167947617243",
          "specification": 1,
          "categoryId": "10688389540499947520167487266471",
          "categoryName": "水果",
          "internalNumber": 1,
          "taxCategoryName": "轻小型起重设备配套件",
          "referenceAmount": 1,
          "priceAmount": 200.00000000000000000000,
          "taxId": null,
          "taxRate": 1,
          "unitId": null,
          "unitName": null,
          "taxExemptionType": null,
          "enjoyPreferentialPolicies": 0,
          "preferentialPoliciesType": null,
          "productStatus": 1,
          "specialGoodsMark": "",
          "lineAmountIncludeTax":1,
          "lineAmountExcludeTax":2,
          "taxAmount":2,
          "createTime": "2023-03-22 17:09:32",
          "updateTime": "2023-03-22 17:09:32"
        },{
          "taxCategoryCode": "1090111090000000000",
          "productName": "苹果",
          "name": null,
          "productCode": "0003",
          "shorthand": "小型起重设备",
          "id": "10881474649024102400167947617243",
          "specification": null,
          "categoryId": "10688389540499947520167487266471",
          "categoryName": "水果",
          "internalNumber": null,
          "taxCategoryName": "轻小型起重设备配套件",
          "referenceAmount": null,
          "priceAmount": 200.00000000000000000000,
          "taxId": null,
          "taxRate": null,
          "unitId": null,
          "unitName": null,
          "taxExemptionType": null,
          "enjoyPreferentialPolicies": 0,
          "preferentialPoliciesType": null,
          "productStatus": 1,
          "specialGoodsMark": "",
          "createTime": "2023-03-22 17:09:32",
          "updateTime": "2023-03-22 17:09:32"
        },{
          "taxCategoryCode": "1090111090000000000",
          "productName": "苹果",
          "name": null,
          "productCode": "0003",
          "shorthand": "小型起重设备",
          "id": "10881474649024102400167947617243",
          "specification": null,
          "categoryId": "10688389540499947520167487266471",
          "categoryName": "水果",
          "internalNumber": null,
          "taxCategoryName": "轻小型起重设备配套件",
          "referenceAmount": null,
          "priceAmount": 200.00000000000000000000,
          "taxId": null,
          "taxRate": null,
          "unitId": null,
          "unitName": null,
          "taxExemptionType": null,
          "enjoyPreferentialPolicies": 0,
          "preferentialPoliciesType": null,
          "productStatus": 1,
          "specialGoodsMark": "",
          "createTime": "2023-03-22 17:09:32",
          "updateTime": "2023-03-22 17:09:32"
        },{
          "taxCategoryCode": "1090111090000000000",
          "productName": "zzzzz",
          "name": null,
          "productCode": "0003",
          "shorthand": "小型起重设备",
          "id": "10881474649024102400167947617243",
          "specification": null,
          "categoryId": "10688389540499947520167487266471",
          "categoryName": "水果",
          "internalNumber": null,
          "taxCategoryName": "轻小型起重设备配套件",
          "referenceAmount": null,
          "priceAmount": 200.00000000000000000000,
          "taxId": null,
          "taxRate": null,
          "unitId": null,
          "unitName": null,
          "taxExemptionType": null,
          "enjoyPreferentialPolicies": 0,
          "preferentialPoliciesType": null,
          "productStatus": 1,
          "specialGoodsMark": "",
          "createTime": "2023-03-22 17:09:32",
          "updateTime": "2023-03-22 17:09:32"
        },{
          "taxCategoryCode": "1090111090000000000",
          "productName": "cccccc",
          "name": null,
          "productCode": "0003",
          "shorthand": "小型起重设备",
          "id": "10881474649024102400167947617243",
          "specification": null,
          "categoryId": "10688389540499947520167487266471",
          "categoryName": "水果",
          "internalNumber": null,
          "taxCategoryName": "轻小型起重设备配套件",
          "referenceAmount": null,
          "priceAmount": 200.00000000000000000000,
          "taxId": null,
          "taxRate": null,
          "unitId": null,
          "unitName": null,
          "taxExemptionType": null,
          "enjoyPreferentialPolicies": 0,
          "preferentialPoliciesType": null,
          "productStatus": 1,
          "specialGoodsMark": "",
          "createTime": "2023-03-22 17:09:32",
          "updateTime": "2023-03-22 17:09:32"
        },{
          "taxCategoryCode": "1090111090000000000",
          "productName": "qqqqqq",
          "name": null,
          "productCode": "0003",
          "shorthand": "小型起重设备",
          "id": "10881474649024102400167947617243",
          "specification": null,
          "categoryId": "10688389540499947520167487266471",
          "categoryName": "水果",
          "internalNumber": null,
          "taxCategoryName": "轻小型起重设备配套件",
          "referenceAmount": null,
          "priceAmount": 200.00000000000000000000,
          "taxId": null,
          "taxRate": null,
          "unitId": null,
          "unitName": null,
          "taxExemptionType": null,
          "enjoyPreferentialPolicies": 0,
          "preferentialPoliciesType": null,
          "productStatus": 1,
          "specialGoodsMark": "",
          "createTime": "2023-03-22 17:09:32",
          "updateTime": "2023-03-22 17:09:32"
        },{
          "taxCategoryCode": "1090111090000000000",
          "productName": "wwwww",
          "name": null,
          "productCode": "0003",
          "shorthand": "小型起重设备",
          "id": "10881474649024102400167947617243",
          "specification": null,
          "categoryId": "10688389540499947520167487266471",
          "categoryName": "水果",
          "internalNumber": null,
          "taxCategoryName": "轻小型起重设备配套件",
          "referenceAmount": null,
          "priceAmount": 200.00000000000000000000,
          "taxId": null,
          "taxRate": null,
          "unitId": null,
          "unitName": null,
          "taxExemptionType": null,
          "enjoyPreferentialPolicies": 0,
          "preferentialPoliciesType": null,
          "productStatus": 1,
          "specialGoodsMark": "",
          "createTime": "2023-03-22 17:09:32",
          "updateTime": "2023-03-22 17:09:32"
        },{
          "taxCategoryCode": "1090111090000000000",
          "productName": "eeeee",
          "name": null,
          "productCode": "0003",
          "shorthand": "小型起重设备",
          "id": "10881474649024102400167947617243",
          "specification": null,
          "categoryId": "10688389540499947520167487266471",
          "categoryName": "水果",
          "internalNumber": null,
          "taxCategoryName": "轻小型起重设备配套件",
          "referenceAmount": null,
          "priceAmount": 200.00000000000000000000,
          "taxId": null,
          "taxRate": null,
          "unitId": null,
          "unitName": null,
          "taxExemptionType": null,
          "enjoyPreferentialPolicies": 0,
          "preferentialPoliciesType": null,
          "productStatus": 1,
          "specialGoodsMark": "",
          "createTime": "2023-03-22 17:09:32",
          "updateTime": "2023-03-22 17:09:32"
        },{
          "taxCategoryCode": "1090111090000000000",
          "productName": "rrrrrr",
          "name": null,
          "productCode": "0003",
          "shorthand": "小型起重设备",
          "id": "10881474649024102400167947617243",
          "specification": null,
          "categoryId": "10688389540499947520167487266471",
          "categoryName": "水果",
          "internalNumber": null,
          "taxCategoryName": "轻小型起重设备配套件",
          "referenceAmount": null,
          "priceAmount": 200.00000000000000000000,
          "taxId": null,
          "taxRate": null,
          "unitId": null,
          "unitName": null,
          "taxExemptionType": null,
          "enjoyPreferentialPolicies": 0,
          "preferentialPoliciesType": null,
          "productStatus": 1,
          "specialGoodsMark": "",
          "createTime": "2023-03-22 17:09:32",
          "updateTime": "2023-03-22 17:09:32"
        },{
          "taxCategoryCode": "1090111090000000000",
          "productName": "tttttt",
          "name": null,
          "productCode": "0003",
          "shorthand": "小型起重设备",
          "id": "10881474649024102400167947617243",
          "specification": null,
          "categoryId": "10688389540499947520167487266471",
          "categoryName": "水果",
          "internalNumber": null,
          "taxCategoryName": "轻小型起重设备配套件",
          "referenceAmount": null,
          "priceAmount": 200.00000000000000000000,
          "taxId": null,
          "taxRate": null,
          "unitId": null,
          "unitName": null,
          "taxExemptionType": null,
          "enjoyPreferentialPolicies": 0,
          "preferentialPoliciesType": null,
          "productStatus": 1,
          "specialGoodsMark": "",
          "createTime": "2023-03-22 17:09:32",
          "updateTime": "2023-03-22 17:09:32"
        },{
          "taxCategoryCode": "1090111090000000000",
          "productName": "yyyy",
          "name": null,
          "productCode": "0003",
          "shorthand": "小型起重设备",
          "id": "10881474649024102400167947617243",
          "specification": null,
          "categoryId": "10688389540499947520167487266471",
          "categoryName": "水果",
          "internalNumber": null,
          "taxCategoryName": "轻小型起重设备配套件",
          "referenceAmount": null,
          "priceAmount": 200.00000000000000000000,
          "taxId": null,
          "taxRate": null,
          "unitId": null,
          "unitName": null,
          "taxExemptionType": null,
          "enjoyPreferentialPolicies": 0,
          "preferentialPoliciesType": null,
          "productStatus": 1,
          "specialGoodsMark": "",
          "createTime": "2023-03-22 17:09:32",
          "updateTime": "2023-03-22 17:09:32"
        },{
          "taxCategoryCode": "1090111090000000000",
          "productName": "uuuuu",
          "name": null,
          "productCode": "0003",
          "shorthand": "小型起重设备",
          "id": "10881474649024102400167947617243",
          "specification": null,
          "categoryId": "10688389540499947520167487266471",
          "categoryName": "水果",
          "internalNumber": null,
          "taxCategoryName": "轻小型起重设备配套件",
          "referenceAmount": null,
          "priceAmount": 200.00000000000000000000,
          "taxId": null,
          "taxRate": null,
          "unitId": null,
          "unitName": null,
          "taxExemptionType": null,
          "enjoyPreferentialPolicies": 0,
          "preferentialPoliciesType": null,
          "productStatus": 1,
          "specialGoodsMark": "",
          "createTime": "2023-03-22 17:09:32",
          "updateTime": "2023-03-22 17:09:32"
        },{
          "taxCategoryCode": "1090111090000000000",
          "productName": "iiiiii",
          "name": null,
          "productCode": "0003",
          "shorthand": "小型起重设备",
          "id": "10881474649024102400167947617243",
          "specification": null,
          "categoryId": "10688389540499947520167487266471",
          "categoryName": "水果",
          "internalNumber": null,
          "taxCategoryName": "轻小型起重设备配套件",
          "referenceAmount": null,
          "priceAmount": 200.00000000000000000000,
          "taxId": null,
          "taxRate": null,
          "unitId": null,
          "unitName": null,
          "taxExemptionType": null,
          "enjoyPreferentialPolicies": 0,
          "preferentialPoliciesType": null,
          "productStatus": 1,
          "specialGoodsMark": "",
          "createTime": "2023-03-22 17:09:32",
          "updateTime": "2023-03-22 17:09:32"
        }
      ];

      return data.map((item: any) =>{
        return {
          ...item,
          itemName:item.productName,
          taxClassificationCode:item.taxCategoryCode,
          itemModelName:item.specification,
          shorthand:item.shorthand,
          priceIncludeTax:item.priceAmount,
          unit:item.unitName,
          taxRate:item.taxRate,
        }
      })
    };
  }

  // 重写 的 获取商品列表
  getGoodsList = this.pipeline<IGetBuyerListOption>(async (state, option) => {
    if (!option) return;

    // 初始化测试数据
    const dataSource = await getMok(option.pagination.current)

    // 设置分页数据
    state.goodsListState.importGoods.pagination = {
      ...option.pagination,
      pageSize: 20,
      total: 80,
    };

    // 设置列表数据
    state.goodsListState.importGoods.dataSource = dataSource;
  });
}

// const getMok = async (current: number = 1) => {
//   const dataSource: any[] = [];
//   for (let i = 0; i < 20; i++) {
//     const p = i + 20 * (current - 1);
//     dataSource.push({
//       itemType: `商品分类${p}`,
//       itemNo: `商品编码${p}`,
//       itemName: `商品名称${p}`,
//       shorthand: `前缀${p}`,
//       itemModelName: `规格型号${p}`,
//       unit: `计量单位${p}`,
//       priceIncludeTax: p,
//       priceExcludeTax: p,
//       taxClassificationCode: `税收分类编码${p}`,
//       affix: `附加信息${p}`,
//     });
//   }
//   return dataSource;
// }


const getMok = async (current: number = 1) => {
  return [
    {
      "attributeVOList": null,
      "brandName": null,
      "buyGroupCode": null,
      "buyGroupId": null,
      "buyGroupName": null,
      "categoryId": 2073,
      "categoryName": "通用",
      "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
      "createTime": "2021-09-10 15:45:43.0",
      "enjoyPreferentialPolicies": 0,
      "factoryCode": null,
      "factoryId": null,
      "factoryName": null,
      "id": 146200,
      "internalNumber": "发动机盖",
      "isUalityInspection": null,
      "name": "发动机ABC",
      "preferentialPoliciesType": null,
      "priceAmount": 50,
      "procurementCycle": 0,
      "shorthand": "发动机",
      "specification": "abc",
      "spuCode": "6000001738252675",
      "status": 1,
      "taxCategoryCode": "1090102040000000000",
      "taxExemptionType": "",
      "taxId": 11,
      "taxRate": 13,
      "unitId": 30,
      "unitName": "件",
      "itemType": "通用",
      "itemNo": "6000001738252675",
      "itemName": "发动机ABC",
      "itemModelName": "abc",
      "unit": "件",
      "priceIncludeTax": 50,
      "priceExcludeTax": 50,
      "taxClassificationCode": "1090102040000000000"
    },
    {
      "attributeVOList": null,
      "brandName": "丹东一号",
      "buyGroupCode": null,
      "buyGroupId": null,
      "buyGroupName": null,
      "categoryId": 2073,
      "categoryName": "通用",
      "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
      "createTime": "2021-09-02 14:59:52.0",
      "enjoyPreferentialPolicies": 0,
      "factoryCode": null,
      "factoryId": null,
      "factoryName": null,
      "id": 146199,
      "internalNumber": null,
      "isUalityInspection": null,
      "name": "aaaa",
      "preferentialPoliciesType": null,
      "priceAmount": 0,
      "procurementCycle": 0,
      "shorthand": "活牲畜",
      "specification": null,
      "spuCode": "6000001311479375",
      "status": 1,
      "taxCategoryCode": "1010301010000000000",
      "taxExemptionType": "1",
      "taxId": 1,
      "taxRate": 0,
      "unitId": null,
      "unitName": null,
      "itemType": "通用",
      "itemNo": "6000001311479375",
      "itemName": "aaaa",
      "itemModelName": null,
      "unit": null,
      "priceIncludeTax": 0,
      "priceExcludeTax": 0,
      "taxClassificationCode": "1010301010000000000"
    },
    {
      "attributeVOList": null,
      "brandName": "丹东一号",
      "buyGroupCode": null,
      "buyGroupId": null,
      "buyGroupName": null,
      "categoryId": 246,
      "categoryName": "分类cc>1",
      "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
      "createTime": "2020-12-28 18:23:55.0",
      "enjoyPreferentialPolicies": 0,
      "factoryCode": null,
      "factoryId": null,
      "factoryName": null,
      "id": 146131,
      "internalNumber": null,
      "isUalityInspection": null,
      "name": "AAAA",
      "preferentialPoliciesType": null,
      "priceAmount": null,
      "procurementCycle": 0,
      "shorthand": null,
      "specification": "1234EFF",
      "spuCode": "6000002120658581",
      "status": 1,
      "taxCategoryCode": null,
      "taxExemptionType": null,
      "taxId": null,
      "taxRate": 0,
      "unitId": 362,
      "unitName": "年",
      "itemType": "分类cc>1",
      "itemNo": "6000002120658581",
      "itemName": "AAAA",
      "itemModelName": "1234EFF",
      "unit": "年",
      "priceIncludeTax": 0,
      "priceExcludeTax": 0,
      "taxClassificationCode": null
    },
    {
      "attributeVOList": null,
      "brandName": null,
      "buyGroupCode": null,
      "buyGroupId": null,
      "buyGroupName": null,
      "categoryId": 2073,
      "categoryName": "通用",
      "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
      "createTime": "2020-12-15 10:14:14.0",
      "enjoyPreferentialPolicies": 0,
      "factoryCode": null,
      "factoryId": null,
      "factoryName": null,
      "id": 146129,
      "internalNumber": null,
      "isUalityInspection": null,
      "name": "服务费",
      "preferentialPoliciesType": null,
      "priceAmount": null,
      "procurementCycle": 0,
      "shorthand": "软件",
      "specification": null,
      "spuCode": "6000001474077629",
      "status": 1,
      "taxCategoryCode": "1060301020100000000",
      "taxExemptionType": null,
      "taxId": null,
      "taxRate": 0,
      "unitId": null,
      "unitName": null,
      "itemType": "通用",
      "itemNo": "6000001474077629",
      "itemName": "服务费",
      "itemModelName": null,
      "unit": null,
      "priceIncludeTax": 0,
      "priceExcludeTax": 0,
      "taxClassificationCode": "1060301020100000000"
    },
    {
      "attributeVOList": null,
      "brandName": "丹东一号",
      "buyGroupCode": null,
      "buyGroupId": null,
      "buyGroupName": null,
      "categoryId": 2073,
      "categoryName": "通用",
      "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
      "createTime": "2020-10-30 15:07:05.0",
      "enjoyPreferentialPolicies": 0,
      "factoryCode": null,
      "factoryId": null,
      "factoryName": null,
      "id": 145809,
      "internalNumber": "0987",
      "isUalityInspection": null,
      "name": "中科",
      "preferentialPoliciesType": null,
      "priceAmount": 1000,
      "procurementCycle": 0,
      "shorthand": "糖料",
      "specification": "12",
      "spuCode": "6000001168374126",
      "status": 1,
      "taxCategoryCode": "1010107010000000000",
      "taxExemptionType": "3",
      "taxId": 1,
      "taxRate": 0,
      "unitId": 32,
      "unitName": "把",
      "itemType": "通用",
      "itemNo": "6000001168374126",
      "itemName": "中科",
      "itemModelName": "12",
      "unit": "把",
      "priceIncludeTax": 1000,
      "priceExcludeTax": 1000,
      "taxClassificationCode": "1010107010000000000"
    },
    {
      "attributeVOList": null,
      "brandName": null,
      "buyGroupCode": null,
      "buyGroupId": null,
      "buyGroupName": null,
      "categoryId": 1862,
      "categoryName": "通用",
      "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
      "createTime": "2019-03-22 11:06:53.0",
      "enjoyPreferentialPolicies": 0,
      "factoryCode": null,
      "factoryId": null,
      "factoryName": null,
      "id": 144321,
      "internalNumber": "4302111",
      "isUalityInspection": 0,
      "name": "农用化肥2",
      "preferentialPoliciesType": "",
      "priceAmount": 90,
      "procurementCycle": 0,
      "shorthand": "肥料",
      "specification": "HLHF-211",
      "spuCode": "1000019000000056",
      "status": 1,
      "taxCategoryCode": "1000000000000000000",
      "taxExemptionType": null,
      "taxId": null,
      "taxRate": 0,
      "unitId": 11,
      "unitName": "包",
      "itemType": "通用",
      "itemNo": "1000019000000056",
      "itemName": "农用化肥2",
      "itemModelName": "HLHF-211",
      "unit": "包",
      "priceIncludeTax": 90,
      "priceExcludeTax": 90,
      "taxClassificationCode": "1000000000000000000"
    },
    {
      "attributeVOList": null,
      "brandName": null,
      "buyGroupCode": null,
      "buyGroupId": null,
      "buyGroupName": null,
      "categoryId": 1862,
      "categoryName": "通用",
      "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
      "createTime": "2019-03-22 11:06:52.0",
      "enjoyPreferentialPolicies": 0,
      "factoryCode": null,
      "factoryId": null,
      "factoryName": null,
      "id": 144320,
      "internalNumber": "4302111",
      "isUalityInspection": 0,
      "name": "园林轻化肥",
      "preferentialPoliciesType": "",
      "priceAmount": null,
      "procurementCycle": null,
      "shorthand": "肥料",
      "specification": "HLHF-211",
      "spuCode": "1000019000000055",
      "status": 1,
      "taxCategoryCode": "233WD5FG00911",
      "taxExemptionType": null,
      "taxId": null,
      "taxRate": 0,
      "unitId": 11,
      "unitName": "包",
      "itemType": "通用",
      "itemNo": "1000019000000055",
      "itemName": "园林轻化肥",
      "itemModelName": "HLHF-211",
      "unit": "包",
      "priceIncludeTax": 0,
      "priceExcludeTax": 0,
      "taxClassificationCode": "233WD5FG00911"
    },
    {
      "attributeVOList": null,
      "brandName": null,
      "buyGroupCode": null,
      "buyGroupId": null,
      "buyGroupName": null,
      "categoryId": 1862,
      "categoryName": "通用",
      "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
      "createTime": "2019-03-06 16:06:16.0",
      "enjoyPreferentialPolicies": 0,
      "factoryCode": null,
      "factoryId": null,
      "factoryName": null,
      "id": 101211,
      "internalNumber": "4302111",
      "isUalityInspection": 0,
      "name": "营养土壤",
      "preferentialPoliciesType": "",
      "priceAmount": null,
      "procurementCycle": null,
      "shorthand": "肥料",
      "specification": "HLHF-211",
      "spuCode": "1000019000000053",
      "status": 1,
      "taxCategoryCode": "233WD5FG00911",
      "taxExemptionType": null,
      "taxId": null,
      "taxRate": 0,
      "unitId": 11,
      "unitName": "包",
      "itemType": "通用",
      "itemNo": "1000019000000053",
      "itemName": "营养土壤",
      "itemModelName": "HLHF-211",
      "unit": "包",
      "priceIncludeTax": 0,
      "priceExcludeTax": 0,
      "taxClassificationCode": "233WD5FG00911"
    },
    {
      "attributeVOList": null,
      "brandName": null,
      "buyGroupCode": null,
      "buyGroupId": null,
      "buyGroupName": null,
      "categoryId": 1862,
      "categoryName": "通用",
      "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
      "createTime": "2019-03-06 16:06:16.0",
      "enjoyPreferentialPolicies": 0,
      "factoryCode": null,
      "factoryId": null,
      "factoryName": null,
      "id": 101212,
      "internalNumber": "4302111",
      "isUalityInspection": 0,
      "name": "植物营养液",
      "preferentialPoliciesType": "",
      "priceAmount": null,
      "procurementCycle": null,
      "shorthand": "肥料",
      "specification": "HLHF-211",
      "spuCode": "1000019000000054",
      "status": 1,
      "taxCategoryCode": "233WD5FG00911",
      "taxExemptionType": null,
      "taxId": null,
      "taxRate": 0,
      "unitId": 11,
      "unitName": "包",
      "itemType": "通用",
      "itemNo": "1000019000000054",
      "itemName": "植物营养液",
      "itemModelName": "HLHF-211",
      "unit": "包",
      "priceIncludeTax": 0,
      "priceExcludeTax": 0,
      "taxClassificationCode": "233WD5FG00911"
    },
    {
      "attributeVOList": null,
      "brandName": null,
      "buyGroupCode": null,
      "buyGroupId": null,
      "buyGroupName": null,
      "categoryId": 1862,
      "categoryName": "通用",
      "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
      "createTime": "2019-03-05 18:15:59.0",
      "enjoyPreferentialPolicies": 0,
      "factoryCode": null,
      "factoryId": null,
      "factoryName": null,
      "id": 101203,
      "internalNumber": "4353245243",
      "isUalityInspection": 0,
      "name": "医用棉布纱布条",
      "preferentialPoliciesType": "",
      "priceAmount": null,
      "procurementCycle": null,
      "shorthand": "布料",
      "specification": "ZC11D-006",
      "spuCode": "6000000804084562",
      "status": 1,
      "taxCategoryCode": "1234567890123456789",
      "taxExemptionType": null,
      "taxId": 5,
      "taxRate": 3,
      "unitId": 3,
      "unitName": "米",
      "itemType": "通用",
      "itemNo": "6000000804084562",
      "itemName": "医用棉布纱布条",
      "itemModelName": "ZC11D-006",
      "unit": "米",
      "priceIncludeTax": 0,
      "priceExcludeTax": 0,
      "taxClassificationCode": "1234567890123456789",
    }
  ]
}
