Appearance
更新合同 API
| Path | Method | Created At |
|---|---|---|
| /api/contracts/ | PUT | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| id | string,size:24 | 合同不存在 |
| title | string,max:100 | 合同标题长度不能超过100个字符 |
| contract_no | string,max:100 | 合同编号不能超过100个字符 |
| customer_id | string,size:24 | 客户不存在 |
| contractor | string,max:100 | 签约单位长度不能超过100个字符 |
| sales_lead_id | integer,min:0 | 销售负责人不存在 |
| signing_date | date_format:Y-m-d | 签约日期格式错误 |
| total_amount | decimal:0,2,min:0.0000 | 合同总金额格式错误 |
| delivery_amount | decimal:0,2,min:0.0000 | 发货金额格式错误 |
| purchase_amount | decimal:0,2,min:0.0000 | 采购金额必须是数值,精确到小数点2位 |
| selling_expenses | decimal:0,2,min:0.0000 | 销售费用必须是数值,精确到小数点2位 |
| purchase_cost | decimal:0,2,min:0.0000 | 采购费用必须是数值,精确到小数点2位 |
| pre_purchase_cost | decimal:0,2,min:0.0000 | 预采购成本必须是数值,精确到小数点2位 |
| cumulative_receipts | decimal:0,2,min:0.0000 | 累计收款必须是数值,精确到小数点2位 |
| cumulative_invoiced_amount | decimal:0,2,min:0.0000 | 累计开票金额必须是数值,精确到小数点2位 |
| retention_money | decimal:0,2,min:0.0000 | 质保金必须是数值,精确到小数点2位 |
| advance_cost | decimal:0,2,min:0.0000 | 垫资成本是数值,精确到小数点2位 |
| signing_method | integer,min:0 | 签约方式错误 |
| industry_attribute | string,max:100 | 行业属性字段长度不能超过100个字符 |
| product_category | string,max:100 | 产品分类字段长度不能超过100个字符 |
| remark | max:255 | 备注字段长度不能超过255个字符 |
| is_routine_check | App\Rules\BoolRule | 是否巡检字段错误 |
| routine_check_cycle | in:MONTH,QUARTER,HALF_YEAR,YEAR | 巡检周期必须是月、季度、半年、年 |
| routine_check_years | integer | 巡检年限必须是正整数 |
Response
| Key | Type | Example | Comment |
|---|