POST jxc_api/SimpleResource/GetSimpleVendors

搜索简版的供应商信息,现仅用于PC供应商选择弹框

Request Information

URI Parameters

None.

Body Parameters

VendorCondition
NameDescriptionTypeAdditional information
SearchText

查询关键字

string

None.

Status

是否显示禁用

boolean

None.

CategroryIds

类别id集合

Collection of integer

None.

PageIndex

页数,第一页为第0页,以次类推

integer

None.

PageSize

每页数量

integer

None.

UsePager

是否使用分页

boolean

None.

CurrUserSn

当前用户编号

integer

None.

CanViewAllBill

是否可以查看所有单据

boolean

None.

CanOpeAllWh

是否可以打开所有的仓库

boolean

None.

OpeWhList

能打开的仓库列表

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SearchText": "sample string 1",
  "Status": true,
  "CategroryIds": [
    1,
    2
  ],
  "PageIndex": 3,
  "PageSize": 4,
  "UsePager": true,
  "CurrUserSn": 6,
  "CanViewAllBill": true,
  "CanOpeAllWh": true,
  "OpeWhList": [
    1,
    2
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

搜索简版的供应商信息,现仅用于PC供应商选择弹框

Collection of SimpleVendor
NameDescriptionTypeAdditional information
VendId

integer

None.

VendNo

string

None.

VendName

string

None.

CatId

integer

None.

CatName

string

None.

ContactId

integer

None.

ContactName

string

None.

Phone

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "VendId": 1,
    "VendNo": "sample string 2",
    "VendName": "sample string 3",
    "CatId": 4,
    "CatName": "sample string 5",
    "ContactId": 6,
    "ContactName": "sample string 7",
    "Phone": "sample string 8"
  },
  {
    "VendId": 1,
    "VendNo": "sample string 2",
    "VendName": "sample string 3",
    "CatId": 4,
    "CatName": "sample string 5",
    "ContactId": 6,
    "ContactName": "sample string 7",
    "Phone": "sample string 8"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSimpleVendor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Framework.Models">
  <SimpleVendor>
    <CatId>4</CatId>
    <CatName>sample string 5</CatName>
    <ContactId>6</ContactId>
    <ContactName>sample string 7</ContactName>
    <Phone>sample string 8</Phone>
    <VendId>1</VendId>
    <VendName>sample string 3</VendName>
    <VendNo>sample string 2</VendNo>
  </SimpleVendor>
  <SimpleVendor>
    <CatId>4</CatId>
    <CatName>sample string 5</CatName>
    <ContactId>6</ContactId>
    <ContactName>sample string 7</ContactName>
    <Phone>sample string 8</Phone>
    <VendId>1</VendId>
    <VendName>sample string 3</VendName>
    <VendNo>sample string 2</VendNo>
  </SimpleVendor>
</ArrayOfSimpleVendor>