138 lines
5.7 KiB
Go
138 lines
5.7 KiB
Go
|
|
package main
|
||
|
|
|
||
|
|
type kpi struct {
|
||
|
|
ID int `json:"id"` //数据库主键
|
||
|
|
CreateTime string `json:"CreateTime"` //订单日期
|
||
|
|
Time string `json:"time"` //订单时间
|
||
|
|
Priority string `json:"priority"` //优先级
|
||
|
|
Department_name string `json:"department_name"` //部门
|
||
|
|
Task_id string `json:"task_id"` //任务号
|
||
|
|
Product_id string `json:"product_id"` //产品id
|
||
|
|
Product_name string `json:"product_name"` //产品名称
|
||
|
|
Total_num string `json:"total_num"` //数量
|
||
|
|
|
||
|
|
Demand_date string `json:"demand_date"` //需求日期
|
||
|
|
RDM_id string `json:"rdm_id"` //RDM任务号
|
||
|
|
Conveyer string `json:"conveyer"` //交付人
|
||
|
|
Remarks string `json:"remarks"` //备注
|
||
|
|
|
||
|
|
First_procesds string `json:"is_frist_process"` //是否首次加工
|
||
|
|
Is_img string `json:"is_img"` //是否附图加工
|
||
|
|
Is_materials string `json:"is_materials"` //是否缺料
|
||
|
|
Is_new_gauge string `json:"is_new_gauge"` //是否使用新螺纹规
|
||
|
|
|
||
|
|
Material_p string `json:"Material_p"` //物料属性
|
||
|
|
Material_inventory string `json:"Material_inventory"` //物料库存 有/无
|
||
|
|
Promise_date string `json:"promise_date"` //承诺到料
|
||
|
|
Promised_date string `json:"promised_date"` //到料日期
|
||
|
|
Material_overdue string `json:"Material_overdue"` //物料超期
|
||
|
|
Buyer string `json:"buyer"` //采购员
|
||
|
|
|
||
|
|
M_overdue string `json:"m_overdue"` //物料超期
|
||
|
|
|
||
|
|
Group_leader string `json:"group_leader"` //组长
|
||
|
|
Group_name string `json:"group_name"` //生产班组
|
||
|
|
Dispath_num string `json:"dispath_num"` //派工数量
|
||
|
|
Plan_dispath_date string `json:"plan_dispath_date"` //计划派产日期
|
||
|
|
Plan_finished_date string `json:"plan_finished_date"` //计划(承诺)完成日期
|
||
|
|
Plan_actual_finished_date string `json:"plan_actual_finished_date"` //实际完成日期
|
||
|
|
Overdue string `json:"overdue"` //是否超期:是/否
|
||
|
|
Notes string `json:"notes"` //备注
|
||
|
|
Produce_plan_data []ProduceProcess `json:"produce_plan_data"` //派工详情
|
||
|
|
Plan_state string `json:"plan_state"` //生产状态
|
||
|
|
Feishu_link string `json:"feishu_link"` //飞书链接
|
||
|
|
Code_state string `json:"code_state"`
|
||
|
|
|
||
|
|
Delivery_time string `json:"delivery_time"` //交验时间
|
||
|
|
DeliveryDetailInfo []DeliveryDetail `json:"DeliveryDetailInfo"` //质检详情
|
||
|
|
Num_ok string `json:"num_ok"` //合格数量
|
||
|
|
Delivery_overdue string `json:"delivery_overdue"` //质检超期
|
||
|
|
Process_end_time string `json:"process_end_time"` //入库时间
|
||
|
|
|
||
|
|
//1生产 2质检 3供应链 4交付 5研发 6 保温瓶 7技术
|
||
|
|
D1_bt string `json:"d1_bt"` //生产部转入时间
|
||
|
|
D1_et string `json:"d1_et"` //生产部转出时间
|
||
|
|
D1_ut string `json:"d1_ut"` //生产部用时
|
||
|
|
d1_ut_ int
|
||
|
|
|
||
|
|
D2_bt string `json:"d2_bt"`
|
||
|
|
D2_et string `json:"d2_et"`
|
||
|
|
D2_ut string `json:"d2_ut"`
|
||
|
|
d2_ut_ int
|
||
|
|
|
||
|
|
D3_bt string `json:"d3_bt"`
|
||
|
|
D3_et string `json:"d3_et"`
|
||
|
|
D3_ut string `json:"d3_ut"`
|
||
|
|
d3_ut_ int
|
||
|
|
|
||
|
|
D4_bt string `json:"d4_bt"`
|
||
|
|
D4_et string `json:"d4_et"`
|
||
|
|
D4_ut string `json:"d4_ut"`
|
||
|
|
d4_ut_ int
|
||
|
|
|
||
|
|
D5_bt string `json:"d5_bt"`
|
||
|
|
D5_et string `json:"d5_et"`
|
||
|
|
D5_ut string `json:"d5_ut"`
|
||
|
|
d5_ut_ int
|
||
|
|
|
||
|
|
D6_bt string `json:"d6_bt"`
|
||
|
|
D6_et string `json:"d6_et"`
|
||
|
|
D6_ut string `json:"d6_ut"`
|
||
|
|
d6_ut_ int
|
||
|
|
|
||
|
|
D7_bt string `json:"d7_bt"`
|
||
|
|
D7_et string `json:"d7_et"`
|
||
|
|
D7_ut string `json:"d7_ut"`
|
||
|
|
d7_ut_ int
|
||
|
|
|
||
|
|
If_show_del bool `json:"if_show_del"` //是否显示删除按钮
|
||
|
|
If_show_update bool `json:"if_show_update"` //是否显示修改按钮
|
||
|
|
If_show_del_his bool `json:"if_show_del_his"` //是否显示删除详情按钮
|
||
|
|
|
||
|
|
Flink_color string `json:"flink_color"`
|
||
|
|
Redmine_color string `json:"redmine_color"`
|
||
|
|
|
||
|
|
Plan_fin_state string `json:"plan_fin_state"`
|
||
|
|
|
||
|
|
Files_c []plan_file_d `json:"f_c"` //车
|
||
|
|
Files_x []plan_file_d `json:"f_x"` //铣
|
||
|
|
|
||
|
|
Flag1 bool `json:"flag1"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type preKpi struct {
|
||
|
|
ID int `json:"id"` //数据库主键
|
||
|
|
CreateTime string `json:"CreateTime"` //订单日期
|
||
|
|
Time string `json:"time"` //订单时间
|
||
|
|
Department_name string `json:"department_name"` //部门
|
||
|
|
Task_id string `json:"task_id"` //任务号
|
||
|
|
Product_id string `json:"product_id"` //产品id
|
||
|
|
Product_name string `json:"product_name"` //产品名称
|
||
|
|
Product_state string `json:"p_state"` //产品状态
|
||
|
|
Group_name string `json:"group_name"` //生产分组
|
||
|
|
|
||
|
|
Total_num string `json:"total_num"` //数量
|
||
|
|
|
||
|
|
Demand_date string `json:"demand_date"` //需求日期
|
||
|
|
RDM_id string `json:"rdm_id"` //RDM任务号
|
||
|
|
Conveyer string `json:"conveyer"` //交付人
|
||
|
|
Remarks string `json:"remarks"` //备注
|
||
|
|
|
||
|
|
First_procesds string `json:"is_frist_process"` //是否首次加工
|
||
|
|
Is_img string `json:"is_img"` //是否附图加工
|
||
|
|
Is_materials string `json:"is_materials"` //是否缺料
|
||
|
|
Is_new_gauge string `json:"is_new_gauge"` //是否使用新螺纹规
|
||
|
|
|
||
|
|
Promise_date string `json:"promise_date"` //
|
||
|
|
|
||
|
|
Flink_color string `json:"flink_color"`
|
||
|
|
Redmine_color string `json:"redmine_color"`
|
||
|
|
|
||
|
|
Plan_fin_state string `json:"plan_fin_state"`
|
||
|
|
|
||
|
|
Files_c []plan_file_d `json:"f_c"` //车
|
||
|
|
Files_x []plan_file_d `json:"f_x"` //铣
|
||
|
|
|
||
|
|
Flag1 bool `json:"flag1"`
|
||
|
|
}
|