|
@@ -30,7 +30,14 @@ const goods = new Schema({
|
|
|
number: { type: Number, maxLength: 200 }, // 数量
|
|
|
weight: { type: Number, maxLength: 200 }, // 重量
|
|
|
volume: { type: Number, maxLength: 200 }, // 体积
|
|
|
- transport_type: { type: String, maxLength: 200, default: '直达' }, // 该货物的运输类型: 直达;转运
|
|
|
+ // 收入部分
|
|
|
+ mode: { type: String, maxlength: 200 }, // 计费方式
|
|
|
+ price: { type: Number, maxLength: 200 }, // 单价
|
|
|
+ taxes: { type: String, maxLength: 200 }, // 税率
|
|
|
+ sq_ys: { type: Number, maxLength: 200 }, // 税前应收
|
|
|
+ sq_ss: { type: Number, maxLength: 200 }, // 税前实收
|
|
|
+ sh_ys: { type: Number, maxLength: 200 }, // 税后应收
|
|
|
+ sh_ss: { type: Number, maxLength: 200 }, // 税后实收
|
|
|
remark: { type: String, maxLength: 200 },
|
|
|
});
|
|
|
|
|
@@ -57,21 +64,6 @@ const recordList = new Schema({
|
|
|
time: { type: String, default: moment().format('YYYY-MM-DD HH:mm:ss') }, // 操作时间
|
|
|
});
|
|
|
|
|
|
-// 货物收入
|
|
|
-const goods_bill = new Schema({
|
|
|
- name: { type: String, maxlength: 200 }, // 货物名称
|
|
|
- mode: { type: String, maxlength: 200 }, // 计费方式
|
|
|
- number: { type: Number, maxLength: 200 }, // 数量
|
|
|
- weight: { type: Number, maxLength: 200 }, // 重量
|
|
|
- volume: { type: Number, maxLength: 200 }, // 体积
|
|
|
- price: { type: Number, maxLength: 200 }, // 单价
|
|
|
- taxes: { type: String, maxLength: 200 }, // 税率
|
|
|
- sq_ys: { type: Number, maxLength: 200 }, // 税前应收
|
|
|
- sq_ss: { type: Number, maxLength: 200 }, // 税前实收
|
|
|
- sh_ys: { type: Number, maxLength: 200 }, // 税后应收
|
|
|
- sh_ss: { type: Number, maxLength: 200 }, // 税后实收
|
|
|
-});
|
|
|
-
|
|
|
// 收入/支出项
|
|
|
const cost_bill = new Schema({
|
|
|
item: { type: String, maxlength: 200 }, // 支出项
|
|
@@ -165,11 +157,6 @@ const order = {
|
|
|
remark: '货物录入后,同时进入这里,这里的货物供拆分使用',
|
|
|
},
|
|
|
},
|
|
|
- goods_bill: {
|
|
|
- type: [ goods_bill ],
|
|
|
- maxLength: 200,
|
|
|
- field: { label: '货物收入单据' },
|
|
|
- },
|
|
|
in_bill: {
|
|
|
type: [ cost_bill ],
|
|
|
maxLength: 200,
|