Browse Source

(+)回款明细表 表模型

master
wuqun 2 years ago
parent
commit
072dd7316f
  1. 187
      api/app/lib/models/back_detile.js
  2. 2
      web/client/src/sections/business/containers/performanceReport/backMoneyDetails.jsx

187
api/app/lib/models/back_detile.js

@ -0,0 +1,187 @@
/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const BackDetile = sequelize.define("backDetile", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: true,
field: "id",
autoIncrement: false
},
year: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "年度",
primaryKey: false,
field: "year",
autoIncrement: false
},
serialNo: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: null,
comment: "序号",
primaryKey: false,
field: "serial_no",
autoIncrement: false
},
number: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "编号",
primaryKey: false,
field: "number",
autoIncrement: false
},
department: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "部门",
primaryKey: false,
field: "department",
autoIncrement: false
},
sale: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "销售人员",
primaryKey: false,
field: "sale",
autoIncrement: false
},
contractNo: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "合同编号",
primaryKey: false,
field: "contract_no",
autoIncrement: false
},
customer: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "客户名称",
primaryKey: false,
field: "customer",
autoIncrement: false
},
item: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "项目名称",
primaryKey: false,
field: "item",
autoIncrement: false
},
amount: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "合同金额",
primaryKey: false,
field: "amount",
autoIncrement: false
},
changeAmount: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "变更后合同金额",
primaryKey: false,
field: "change_amount",
autoIncrement: false
},
backYear: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "回款年份",
primaryKey: false,
field: "back_year",
autoIncrement: false
},
backDate: {
type: DataTypes.DATEONLY,
allowNull: true,
defaultValue: null,
comment: "回款日期",
primaryKey: false,
field: "back_date",
autoIncrement: false
},
backAmount: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "回款金额",
primaryKey: false,
field: "back_amount",
autoIncrement: false
},
inBack: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "开票-回款",
primaryKey: false,
field: "in_back",
autoIncrement: false
},
remainConAmount: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "剩余合同金额",
primaryKey: false,
field: "remain_con_amount",
autoIncrement: false
},
backConfirmDate: {
type: DataTypes.DATEONLY,
allowNull: true,
defaultValue: null,
comment: "收入确认时间",
primaryKey: false,
field: "back_confirm_date",
autoIncrement: false
},
payCompany: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "第三方付款单位",
primaryKey: false,
field: "pay_company",
autoIncrement: false
},
text: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "备注",
primaryKey: false,
field: "text",
autoIncrement: false
}
}, {
tableName: "back_detile",
comment: "",
indexes: []
});
dc.models.BackDetile = BackDetile;
return BackDetile;
};

2
web/client/src/sections/business/containers/performanceReport/backMoneyDetails.jsx

@ -17,7 +17,7 @@ const BackMoneyDetails = (props) => {
setKeyword(value)
}
const columns = [{
title: '年',
title: '年',
dataIndex: 'year',
key: 'year',
width: 120,

Loading…
Cancel
Save