菜单

保存

基本信息

  • 用途说明:工序报检单保存(单据标识:wg_process_inspection
  • 请求方式:POST
  • 请求地址:https://api.kingdee.com/weigusoft/wg_cost/saveBill?access_token=

headers参数

  • 所有的接口必须携带header参数
参数名称 参数示例 是否必填 参数说明
Content-Type application/json true 固定传:application/json
groupName ns-v7g6 true 分组名称,获取授权信息时返回的groupName
accountId 16xxxxxxxxxxxx true 账套ID,获取授权信息时返回的accountId
X-GW-Router-Addr https://tf.jdy.com true IDC域名,获取授权信息时返回的domain

body参数

参数名称 必选 类型 说明
entityName true String 单据标识:wg_process_inspection
data true Object 其他参数

data的数据结构:

参数名称 类型 必填 说明
id     编辑时必传,新增不需要传
billno String true 报检编号
billdate String true 报检日期
wg_businesstype String true

业务类型   自制工序报检1  委外工序报检2 

自制工序首件报检3  委外工序首件报检4

deptid String   生产车间
empid String   报检员
remark String   单据备注
wf_progress String   审批进度
wg_attachmentpanelap     附件面板标识
material_entity List   报检分录

material_entity的数据结构:

参数名称 类型 必填 说明
materialid_id String true 商品编码
material_name String   商品名称
material_model String   规格型号
wg_workshop String   生产车间
wg_supplier String   供应商
unit String   单位
wg_project String   项目
wg_ppquantity String   产品加工数量
wg_processingno String   工序计划号
wg_operationplanno String   报工单号
wg_operationcode String   工序代码
wg_operationname String   工序名称
wg_qtbinspected String   应报检数量
qty String true 报检数量
wg_method String true 检验方式  全检JY   抽检C
wg_inspectproportion String   抽检比例%
wg_attachment String   检验要求
wg_verifycorrelatqty String   检验关联数量
wg_qiqty String   检验合格数量
wg_duiqty String   检验不合格数量
wg_ireworkqty String   检验返工数量
wg_iscrappingqty String   检验报废数量

{
  "entityName": "wg_process_inspection",
  "data": {
    "wg_businesstype": "1",
    "wg_businesstype_name": "自制工序检验",
    "material_entity": [
      {
        "baseunit_enable": "1",
        "baseunit_longnumber": "",
        "baseunit_number": "KG",
        "materialid_seccoefficient": "0",
        "wg_workshop_number": "BM00002",
        "srcentryid": "0",
        "snlistid": "0",
        "materialid_net_weight": "0",
        "wg_duiqty": "0",
        "materialid_enable_audit": false,
        "materialid_custom_field__1__4dyhc9dbjix1xr": "",
        "wg_processingno": "GXJH-20250620-0001",
        "materialid_refistrationnumber": "",
        "materialid_custom_field__1__4dyhc95vzklfue": "",
        "id": "1",
        "wg_qtbinspected": "3",
        "materialid_iskfperiod": false,
        "wg_workshop_enable": "1",
        "wg_workshop_isleaf": true,
        "materialid_ispurchase": true,
        "proregno": "",
        "unittype": "0",
        "materialid_custom_field__1__4dyhc9gopedu7xie": "",
        "materialid_wide": "0",
        "row_state": "0",
        "baseunit_id": "7",
        "materialid_isweight": false,
        "materialid_custom_field__1__4dyhc9a8edyhxiep5n": "",
        "wg_workshop_masterid": "1697221606960547840",
        "auxpropname": null,
        "materialid_custom_field__2__4cgz9u94dbq0": "0",
        "inputcoefficient": "0",
        "materialid_custom_field__1__4dyhc9g1iybez7": "",
        "materialid_costprice": "0",
        "baseunit_precision": "6",
        "materialid_barcode": "202403270009",
        "wg_verifycorrelatqty": "0",
        "materialid_custom_field__1__3g0xthehqbl6": "",
        "wg_inspectproportion": "0",
        "materialid_prolicense": "",
        "materialid_issale": true,
        "batchno": "",
        "materialid_maxinventoryqty": "0",
        "wg_caquantity": "0",
        "materialid_isasstattr": false,
        "materialid_multicount": "0",
        "srcseq": "0",
        "materialid_custom_field__2__49nq2dyhvnzh3k": "0",
        "materialid_secinventoryqty": "0",
        "materialid_custom_field__1__4dyhc96o9imc03": "",
        "src_billdate": "",
        "auxcoefficient": "0",
        "materialid_duedatetype": "1",
        "wg_operationcode_id": "1718789567106106368",
        "wg_workshop_id": "1697221606960547840",
        "baseunit_precisionaccount": "0",
        "sn": null,
        "materialid_tradeprice": "0",
        "unit_id": "7",
        "caculatecoefficient": "0",
        "auxqty": "0",
        "seq": "1",
        "materialid_custom_field__1__4dyhc9cihrskjiar": "",
        "kfperiod": "0",
        "wg_workshop_name": "车间1",
        "materialid_custom_field__1__4dyhc9e31v0jiaub": "",
        "wg_iscrappingqty": "0",
        "materialid_name": "7-工序测试产品",
        "baseqty": "3",
        "package1": "",
        "auxunittype": "0",
        "package0": "",
        "package3": "",
        "package2": "",
        "unit_precisionaccount": "0",
        "materialid_gross_weight": "0",
        "materialid_entrust": false,
        "wg_ireworkqty": "0",
        "materialid_audittime": "",
        "validdate": "",
        "unit_longnumber": "",
        "materialid_high": "0",
        "wg_operationplanno": "bg-20250620-00000004",
        "settleamountfor": "0",
        "materialid_costmethod": "1",
        "materialid_custom_field__1__4dyhc915t3dooq": "",
        "wg_arquantity": "0",
        "kftype": null,
        "materialid_number": "SP00004",
        "materialid_model": "234234",
        "materialid_isbatch": false,
        "materialid_maxpurchaseprice": "0",
        "materialid_enable": "1",
        "unsettleamountfor": "0",
        "sn_list": "",
        "srcbilltypeid_name": "报工",
        "unit_number": "KG",
        "serialqty": "0",
        "materialid_kfperiodtype": "",
        "barcode": "",
        "materialid_length": "0",
        "unit_conversiontype": "1",
        "package": " ",
        "allamountfor": "0",
        "wg_inspectionqty": "3",
        "wg_operationcode_masterid": "1718789567106106368",
        "materialid_stockup_day": "0",
        "proplace": "",
        "entrysettlestatus": "A",
        "unit_enable": "1",
        "srcbillno": "bg-20250620-00000004",
        "materialid_ischangeduedatetype": "3",
        "wg_method": "JY",
        "unit_name": "KG",
        "baseunit_name": "KG",
        "materialid_custom_field__1__4lry6ljiak95y7": "",
        "qty": "3.0000000000",
        "materialid_custom_field__1__4dyhcbyjatoxie6m": "",
        "coefficient": "1",
        "materialid_helpcode": "7-gxcscp",
        "deffloatqty": "0",
        "settleamount": "0",
        "wg_qiqty": "0",
        "materialid_kfperiod": "0",
        "materialid_purchaseprice": "0",
        "unitcost": "0",
        "materialid_custom_field__1__4dyhc9es9uc9sy": "",
        "wg_attachment": [],
        "wg_workshop_longnumber": "100000!BM00002",
        "materialid_taxrate": "6",
        "srcbilltypeid_id": "wg_report_work",
        "material_entity_lk": [
          {
            "material_entity_lk_wg_inspectionqty_old": "3",
            "material_entity_lk_wg_inspectionqty": "3",
            "material_entity_lk_sbillid": "2241691443989168128",
            "id": "0",
            "material_entity_lk_stableid": "-3673647584297268451",
            "seq": "1",
            "material_entity_lk_sid": "2241691443989168128"
          }
        ],
        "srcbilltypeid_number": "wg_report_work",
        "materialid_mullabel": [],
        "srcinterid": "2241691443989168128",
        "materialid_fixunitcount": "0",
        "materialid_retailprice": "0",
        "materialid_leadtime": "0",
        "materialid_custom_field__1__4dyhc9bcisqbe1": "",
        "wg_operationcode_number": "GX-00000013",
        "materialid_custom_field__1__4dyhc9fhpci72m": "",
        "prolicense": "",
        "materialid_checktype": "1",
        "srcbilltypeid_modeltype": "BillFormModel",
        "package_view": "",
        "wg_workshop_fcomment": "",
        "wg_ppquantity": "0",
        "wg_ireturnedqty": "0",
        "materialid_custom_field__1__3vgiszldk1o7": "77777",
        "unit_precision": "6",
        "cost": "0",
        "kfdate": "",
        "materialid_status": "Z",
        "allamount": "0",
        "materialid_isserial": false,
        "materialid_ismulti_unit": false,
        "unsettleamount": "0",
        "wg_operationcode_name": "7-工序测试-1",
        "materialid_volume": "0",
        "baseunit_conversiontype": "1",
        "materialid_minsalesprice": "0",
        "materialid_producingpace": "",
        "materialid_mininventoryqty": "0",
        "conversionrate": "",
        "materialid_remark": "miaoshu",
        "materialid_id": "1698496555905992704"
      }
    ],
    "billdate": "2025-08-01 19:30:12",
    "billno": "gxbj-20250801-00000001",
    "deptid_name": "吾悦",
    "deptid_id": "1822373108175190016",
    "empid_name": "对外测试01",
    "empid_id": "1697006539988027392",
    "remark": "beiz "
  }
}

 

请求示例

 

响应示例

{
    "data": {
        "id": "2202903410544480256"
    },
    "errorCode": "success",
    "status": true,
    "success": true
}

分享文章
最近修改: 2025-08-22