123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- module.exports = {
- create: {
- requestBody: [
- "order_no",
- "!owner",
- "principal",
- "!client",
- "treaty",
- "item",
- "route",
- "rq_send_time",
- "send_time",
- "rq_arrive_time",
- "arrive_time",
- "pre_money",
- "goods",
- "split",
- "in_bill",
- "out_bill",
- "is_js",
- "goods_status",
- "status",
- "remark",
- ],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: [
- "order_no",
- "!owner",
- "principal",
- "!client",
- "treaty",
- "item",
- "route",
- "rq_send_time",
- "send_time",
- "rq_arrive_time",
- "arrive_time",
- "pre_money",
- "goods",
- "split",
- "in_bill",
- "out_bill",
- "is_js",
- "goods_status",
- "status",
- "remark",
- ],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- order_no: "%order_no%",
- owner: "owner",
- principal: "principal",
- client: "client",
- treaty: "treaty",
- item: "item",
- route: "route",
- goods_remark: "%goods.remark%",
- "rq_send_time@start": "rq_send_time@start",
- "rq_send_time@end": "rq_send_time@end",
- "rq_arrive_time@start": "rq_arrive_time@start",
- is_js: "is_js",
- status: "status",
- },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- clientCalculate: {
- parameters: {
- query: {
- order_no: "%order_no%",
- owner: "owner",
- principal: "principal",
- client: "client",
- treaty: "treaty",
- item: "item",
- route: "route",
- "rq_send_time@start": "rq_send_time@start",
- "rq_send_time@end": "rq_send_time@end",
- "rq_arrive_time@start": "rq_arrive_time@start",
- "date@start": "create_time@start",
- "date@end": "create_time@end",
- is_js: "is_js",
- status: "status",
- },
- },
- service: "clientCalculate",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- toTransport: {
- parameters: {
- query: {
- order_no: "%order_no%",
- owner: "owner",
- principal: "principal",
- client: "client",
- treaty: "treaty",
- item: "item",
- route: "route",
- "rq_send_time@start": "rq_send_time@start",
- "rq_send_time@end": "rq_send_time@end",
- "rq_arrive_time@start": "rq_arrive_time@start",
- is_js: "is_js",
- status: "status",
- },
- options: {
- "split.status": 0, // 只显含有未发货物的订单
- },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- };
|