[
{
"name": "删除",
"type": "delete",
"buttonType": "danger"
},
{
"name": "库存配件",
"type": "request",
"colName": "inventory",
"url": "basic/inventory/query.do",
"params": {
"is:state|integer#and": 1,
"is:productType|string#and": "3"
},
"filterDef": {
"regex:name|string#and": "$name",
"regex:warehouseName|string#and": "$warehouseName",
"is:code|string#and": "$code",
"is:exts.inventoryCode|string#and": "$inventoryCode",
"is:exts.spec|string#and": "$spec"
},
"confirmType": "new",
"setValue": {
"url": "basic/product/query.do",
"params": {
"_all": "1",
"is:state|integer#and": 1,
"is:productType|string#and": 3,
"in:_id|array#and": "$rows.bizId"
},
"scriptId": "1007411243937873892",
"setValue": {
"name": "$name",
"productId": "$_id",
"code": "$code",
"spec": "$exts.spec",
"weight": "$exts.weight",
"volume": "$exts.volume",
"pricingMethod": "$exts.pricingMethod",
"inventoryCode": "$exts.inventoryCode",
"number": 0,
"unit": "$unit",
"companyPrice": "$exts.companyPrice",
"afterSalePrice": "$exts.afterSalePrice",
"areaPrice": "$exts.areaPrice",
"promotionPrice": "$exts.promotionPrice",
"includeMaintenanceGuidanceFee": "$exts.includeMaintenanceGuidanceFee",
"maintenanceTheUnitPrice": "$exts.maintenanceTheUnitPrice",
"warehouseId": "$form.defaultWarehouseId"
}
}
},
{
"name": "模板配件",
"type": "request",
"colName": "partsTemplate",
"url": "biz/extForm/query/3390038025393947414.do",
"params": {
"is:state|integer#and": 1,
"exists:sid|boolean#and": true,
"in:machineType|array#and": "$machineTypes"
},
"filterDef": {
"regex:name|string#and": "$name",
"is:machineType|string#and": "$machineType",
"in:universal|array#and": "$universal"
},
"confirmType": "new",
"setResData": {
"invoiceName": "$name"
},
"setValue": {
"url": "biz/extForm/queryByColName/partsTemplateParts.do",
"params": {
"_all": "1",
"ne:state|integer#and": -1,
"in:sid|array#and": "$rows.partsTemplateId"
},
"inheritParentKey": "partsTemplateId",
"inheritSubKey": "sid",
"inheritValue": {
"kitsCount": "$row.kitsCount",
"kitsId": "$row._id",
"kitsName": "$row.name",
"kitsSpec": "$row.spec",
"invoiceName": "$row.invoiceName"
},
"scriptId": "1007411243937873892",
"setValue": {
"name": "$name",
"invoiceName": "$invoiceName",
"productId": "$productId",
"code": "$code",
"spec": "$spec",
"weight": "$weight",
"volume": "$volume",
"pricingMethod": "$pricingMethod",
"inventoryCode": "$inventoryCode",
"number": "$number",
"unit": "$unit",
"companyPrice": "$companyPrice",
"afterSalePrice": "$afterSalePrice",
"areaPrice": "$areaPrice",
"promotionPrice": "$promotionPrice",
"kitsCount": "$kitsCount",
"kitsId": "$kitsId",
"kitsName": "$kitsName",
"kitsSpec": "$kitsSpec",
"includeMaintenanceGuidanceFee": "$includeMaintenanceGuidanceFee",
"maintenanceTheUnitPrice": "$maintenanceTheUnitPrice",
"warehouseId": "$form.defaultWarehouseId"
}
}
},
{
"name": "全部模板",
"type": "request",
"colName": "partsTemplate",
"url": "biz/extForm/queryByColName/partsTemplate.do",
"params": {
"page": 1,
"rows": 10,
"is:state|integer#and": 1,
"regex:name|string#and": "$filter.name",
"is:machineType|string#and": "$filter.machineType",
"in:universal|array#and": "$filter.universal"
},
"filterDef": {
"regex:name|string#and": "$name",
"is:machineType|string#and": "$machineType",
"in:universal|array#and": "$universal"
},
"confirmType": "new",
"setResData": {
"invoiceName": "$name"
},
"setValue": {
"url": "biz/extForm/queryByColName/partsTemplateParts.do",
"params": {
"is:state|integer#and": 1,
"in:sid|array#or": "$rows._id,$row.partsTemplateId"
},
"inheritParentKey": [
"_id",
"partsTemplateId"
],
"inheritSubKey": "sid",
"inheritValue": {
"kitsCount": "$row.kitsCount",
"kitsId": "$row._id",
"kitsName": "$row.name",
"kitsSpec": "$row.spec",
"invoiceName": "$row.invoiceName"
},
"scriptId": "1007411243937873892",
"setValue": {
"name": "$name",
"invoiceName": "$invoiceName",
"productId": "$productId",
"code": "$code",
"spec": "$spec",
"weight": "$weight",
"volume": "$volume",
"pricingMethod": "$pricingMethod",
"inventoryCode": "$inventoryCode",
"number": "$number",
"unit": "$unit",
"companyPrice": "$companyPrice",
"afterSalePrice": "$afterSalePrice",
"areaPrice": "$areaPrice",
"promotionPrice": "$promotionPrice",
"kitsCount": "$kitsCount",
"kitsId": "$kitsId",
"kitsName": "$kitsName",
"kitsSpec": "$kitsSpec",
"includeMaintenanceGuidanceFee": "$includeMaintenanceGuidanceFee",
"maintenanceTheUnitPrice": "$maintenanceTheUnitPrice",
"warehouseId": "$form.defaultWarehouseId"
}
}
},
{
"name": "统一AE系数",
"type": "request",
"colName": "quotationPrice",
"url": "biz/extForm/queryByColName/price.do",
"params": {
"_all": "1",
"is:state|integer#and": 1,
"sortField": "level"
},
"confirmType": "update",
"setValue": {
"quoteCoefficient": "$quotationCoefficient",
"quoteLevel": "$level",
"quoteCoefficientId": "$_id"
},
"label": "level",
"value": "_id",
"scriptId": "1007411243937873892",
"scriptParams": "level"
},
{
"name": "批量设置机台编号",
"type": "request",
"colName": "machine",
"url": "biz/extForm/queryByColName/machine.do",
"params": {
"_all": "1",
"ne:state|integer#and": -1,
"is:companyId|string#and": "$form.companyId"
},
"confirmType": "update",
"setValue": {
"machineNumber": "$number"
},
"label": "number",
"value": "number"
},
{
"name": "批量刷新库存",
"type": "hideRequest",
"url": "groovyScript/operation.do",
"params": {
"tenantId": "4363416483534256239",
"groovyScriptId": "5902765857704621591",
"quotationList": "$quotationList"
},
"paramsToJson": "data",
"confirmType": "replace"
}
]