帖子
帖子
用户
博客
课程
显示全部楼层
268
帖子
3
勋章
903
Y币

如何更新物料档案的物料属性特征组

[复制链接]
发表于 2023-5-18 20:41:05

文档如下:启用了物料属性特征组,必须传物料模板id

示例代码如下:主要关注productPropCharacterDefine对象中的结构

  1. {
  2.     "orgCode": "99",
  3.     "code": "123334",
  4.     "name": {
  5.         "simplifiedName": "测试jgj123"
  6.     },
  7.     "productPropCharacterDefine": {
  8.         "id": "1728406699106631693",
  9.         "wlsx01_jgj": "123",
  10.         "wlsx02_jgj": "456",
  11.         "zj5": true
  12.     },
  13.     "detail": {
  14.         "inspectionType":0,
  15.         "businessAttribute": "1,7",
  16.         "purchaseUnitCode": "TNE",
  17.         "inspectionUnitCode": "TNE",
  18.         "purchasePriceUnitCode": "TNE",
  19.         "stockUnitCode": "TNE",
  20.         "produceUnitCode": "TNE",
  21.         "batchPriceUnitCode": "TNE",
  22.         "batchUnitCode": "TNE",
  23.         "onlineUnitCode": "TNE",
  24.         "offlineUnitCode": "TNE",
  25.         "requireUnitCode": "TNE",
  26.         "displayPrice": true,
  27.         "stopstatus": true,
  28.         "storeOffAndOffState": false,
  29.         "orderLoadAndUnloadStatus": false,
  30.         "canSale": false,
  31.         "batchManage": false,
  32.         "expiryDateManage": false,
  33.         "serialNoManage": false,
  34.         "barcodeManage": false,
  35.         "planDefaultAttribute":1,
  36.         "allowNegativeInventory": true,
  37.         "keySubPart": true,
  38.         "checkByBatch": false,
  39.         "recommend": false,
  40.         "allowStorePurchase": true,
  41.         "saleInOfflineStore": true,
  42.         "priceChangeAllowed": true,
  43.         "offlineStoreOrder": true,
  44.         "offlineStoreReturn": true,
  45.         "process": true,
  46.         "material": true,
  47.         "weighingOrNot": true
  48.     },
  49.     "manageClassCode": "jst_ycl",
  50.     "productClassCode": "jst_ycl",
  51.     "registrationManager": true,
  52.     "authorizationManager": true,
  53.     "autoGenerateRangeData": false,
  54.     "productTemplate":1726891065268502536,
  55.     "realProductAttribute":1,
  56.     "realProductAttributeType":1,
  57.     "unitUseType":2,
  58.     "unitCode": "TNE",
  59.     "enableAssistUnit": false,
  60.     "weightUnitCode": "TNE",
  61.     "volumeUnitCode": "TNE"
  62. }
复制代码


本帖子中包含更多资源,您需要 登录 才可以下载或查看,没有帐号?立即注册

X
您需要登录后才可以回帖 登录

本版积分规则