文档
测试
GET
{{host}}/api/ynl-unit/my-truck/{assetId}/edit

接口描述

{{host}}/api/ynl-unit/my-truck/49616/edit

说明 / 示例

{ "action": "http://jjcoldchain.test/api/ynl-unit/my-truck/49616/update", "method": "put", "rules": [ { "type": "input", "field": "name", "title": "名称", "value": "川9527冷藏车", "props": { "type": "text", "placeholder": "请输入名称" }, "validate": [], "col": [], "extends": [] }, { "type": "select", "field": "type", "title": "类型", "value": 1017, "props": { "multiple": false, "placeholder": "请选择类型" }, "options": [ { "label": "冷藏车", "value": "1017" }, { "label": "货车", "value": "1020" } ], "validate": [], "col": [] }, { "type": "input", "field": "code", "title": "编码", "value": "1231", "props": { "type": "text", "placeholder": "请输入编码" }, "validate": [], "col": [], "extends": [] }, { "type": "input", "field": "description", "title": "描述", "value": "红色车", "props": { "type": "text", "placeholder": "请输入描述" }, "validate": [], "col": [], "extends": [] }, { "type": "input", "field": "brand", "title": "品牌", "value": "东方", "props": { "type": "text", "placeholder": "请输入品牌" }, "validate": [], "col": [], "extends": [] }, { "type": "input", "field": "number", "title": "车牌号", "value": "川9527", "props": { "type": "text", "placeholder": "请输入车牌号", "required": true }, "validate": [ { "required": true, "trigger": "blur", "type": "string", "message": "请输入车牌号" } ], "col": [], "extends": [] }, { "type": "inputNumber", "field": "zaizhong", "title": "额定载重", "value": 5, "props": { "placeholder": "请输入额定载重" }, "validate": [], "col": [], "extends": { "tip": "吨" } }, { "type": "radio", "field": "jubeilenglianjiecexitong", "title": "具备冷链监测系统", "value": "是", "props": [], "options": [ { "label": "否", "value": "否" }, { "label": "是", "value": "是" } ], "validate": [], "col": [], "info": "", "extends": { "tip": null } }, { "type": "input", "field": "che-chexiang", "title": "车厢内径", "value": "15*3*3", "props": { "type": "text", "placeholder": "请输入车厢内径" }, "validate": [], "col": [], "extends": { "tip": "(长*宽*高)(m)" } }, { "type": "input", "field": "che-rongji", "title": "容积", "value": "135", "props": { "type": "text", "placeholder": "请输入容积" }, "validate": [], "col": [], "extends": { "tip": "立方米" } }, { "type": "input", "field": "che-mali", "title": "最大马力", "value": "400", "props": { "type": "text", "placeholder": "请输入最大马力" }, "validate": [], "col": [], "extends": { "tip": "匹" } }, { "type": "inputNumber", "field": "che-chesu", "title": "最高车速", "value": 70, "props": { "placeholder": "请输入最高车速" }, "validate": [], "col": [], "extends": { "tip": "km/h" } }, { "type": "radio", "field": "che-wenkong", "title": "温控级别", "value": "B", "props": [], "options": [ { "label": "无", "value": "无" }, { "label": "A", "value": "A" }, { "label": "B", "value": "B" }, { "label": "C", "value": "C" }, { "label": "D", "value": "D" }, { "label": "E", "value": "E" }, { "label": "F", "value": "F" }, { "label": "H", "value": "H" }, { "label": "G", "value": "G" } ], "validate": [], "col": [], "info": "", "extends": { "tip": null } }, { "type": "radio", "field": "che-paifang", "title": "排放标准", "value": "国五", "props": [], "options": [ { "label": "国四", "value": "国四" }, { "label": "国五", "value": "国五" }, { "label": "国六", "value": "国六" } ], "validate": [], "col": [], "info": "", "extends": { "tip": null } }, { "type": "radio", "field": "che-ranliao", "title": "燃料", "value": "汽油", "props": [], "options": [ { "label": "柴油", "value": "柴油" }, { "label": "汽油", "value": "汽油" }, { "label": "氢", "value": "氢" }, { "label": "电", "value": "电" } ], "validate": [], "col": [], "info": "", "extends": { "tip": null } }, { "type": "inputNumber", "field": "che-youhao", "title": "油耗", "value": 4, "props": { "placeholder": "请输入油耗" }, "validate": [], "col": [], "extends": { "tip": "升/百公里" } }, { "type": "inputNumber", "field": "che-zhilengyouhao", "title": "含冷机启动油耗", "value": 4, "props": { "placeholder": "请输入含冷机启动油耗" }, "validate": [], "col": [], "extends": { "tip": "升/百公里" } }, { "type": "inputNumber", "field": "che-weixiu", "title": "里程定额标准", "value": 5, "props": { "placeholder": "请输入里程定额标准" }, "validate": [], "col": [], "extends": { "tip": "(维修)(元/km)" } }, { "type": "input", "field": "che-driver-name", "title": "司机姓名", "value": "", "props": { "type": "text", "placeholder": "请输入司机姓名" }, "validate": [], "col": [], "extends": { "tip": null } }, { "type": "upload", "field": "che-driver-card", "title": "驾驶证", "value": "", "props": { "maxLength": 1, "type": "select", "uploadType": "image", "headers": [], "data": [], "format": [ "jpg", "jpeg", "png", "gif" ], "show-upload-list": false, "name": "che-driver-card", "action": "", "accept": "image/*" }, "validate": [], "col": [], "extends": { "tip": null } }, { "type": "hidden", "field": "_token", "value": "cwrbhUEaWI1xEggq5ZODq5PEoTOkK4WaK79Eljob" } ], "option": null, "title": "更新冷藏车信息" }