157 lines
5.4 KiB
Go
157 lines
5.4 KiB
Go
|
|
package main
|
||
|
|
|
||
|
|
type sp_2 struct {
|
||
|
|
ID int `json:"id"` //序号
|
||
|
|
|
||
|
|
Contract_id string `json:"contract_id"` //合同号
|
||
|
|
|
||
|
|
Supplier string `json:"supplier"` //供应商
|
||
|
|
Contract_name string `json:"contract_name"` //合同名称
|
||
|
|
|
||
|
|
Rdm string `json:"rdm"`
|
||
|
|
State string `json:"state"` //审批状态
|
||
|
|
|
||
|
|
Amount string `json:"amount"` //合同金额
|
||
|
|
Amount_1 string `json:"amount_1"` //审批金额
|
||
|
|
|
||
|
|
Warehouse_entry_number string `json:"warehouse_entry_number"`
|
||
|
|
Buyer string `json:"buyer"` //采购人员
|
||
|
|
|
||
|
|
State_1 string `json:"state_1"` //付款审批状态
|
||
|
|
Task_ids string `json:"task_ids"` //审批的任务id
|
||
|
|
|
||
|
|
If_modify bool `json:"if_modify"` //记录是否可修改
|
||
|
|
}
|
||
|
|
|
||
|
|
type sp_1 struct {
|
||
|
|
ID int `json:"id"` //序号
|
||
|
|
|
||
|
|
Contract_id string `json:"contract_id"` //合同号
|
||
|
|
|
||
|
|
Supplier string `json:"supplier"`
|
||
|
|
Applicant string `json:"applicant"` //申请人
|
||
|
|
Time string `json:"time"`
|
||
|
|
Contract_name string `json:"contract_name"` //合同名称
|
||
|
|
Contract_name_ex string `json:"contract_name_ex"` //正式合同
|
||
|
|
Rdm string `json:"rdm"`
|
||
|
|
Amount string `json:"amount"` //金额
|
||
|
|
State string `json:"state"` //审批状态
|
||
|
|
|
||
|
|
If_modify bool `json:"if_modify"` //记录是否可修改
|
||
|
|
}
|
||
|
|
|
||
|
|
type pp_plan struct {
|
||
|
|
Pre_id int `json:"pre_id"` //父id
|
||
|
|
ID int `json:"id"` //序号
|
||
|
|
RDM string `json:"rdm"` //rdm
|
||
|
|
Code string `json:"code"` //编号
|
||
|
|
|
||
|
|
Name string `json:"name"` //名称
|
||
|
|
Specs string `json:"specs"` //规格
|
||
|
|
Unit string `json:"unit"` //单位
|
||
|
|
Num string `json:"num"` //数量
|
||
|
|
Price string `json:"price"` //单价
|
||
|
|
|
||
|
|
Total_p string `json:"total_p"` //总计
|
||
|
|
Payment_type string `json:"pt"` //付款方式
|
||
|
|
Paid string `json:"paid"` //已付
|
||
|
|
Residual_p string `json:"rp"` //应付
|
||
|
|
|
||
|
|
Demand_date string `json:"demand_date"` //需求日期
|
||
|
|
Demand_date_update_cnt int `json:"dduc"` //需求日期更改次数
|
||
|
|
Purchasing_cycle string `json:"purchasing_cycle"` //采购周期
|
||
|
|
Order_date string `json:"order_date"` //下单日期
|
||
|
|
|
||
|
|
Over_due1 string `json:"over_due1"` //预计超期
|
||
|
|
Actual_delivery_date string `json:"add"` //实际交付日期
|
||
|
|
Residue string `json:"residue"` //剩余
|
||
|
|
Over_due2 string `json:"over_due2"` //超期
|
||
|
|
|
||
|
|
Buy_record string `json:"buy_record"` //采购记录
|
||
|
|
Arrival_quantity string `json:"aq"` //到货数量
|
||
|
|
Arrival_quantity_text string `json:"aqt"` //到货数量
|
||
|
|
|
||
|
|
State string `json:"state"` //状态
|
||
|
|
Warehouse_entry_number string `json:"wen"` //入库单号
|
||
|
|
Supplier string `json:"supplier"` //供应方
|
||
|
|
|
||
|
|
//Is_main int `json:"is_main"` //1-主任务 2-子
|
||
|
|
Flag string `json:"flag"`
|
||
|
|
//Has_child int `json:"has_child"` //是否有子任务
|
||
|
|
Child_task_id []int `json:"cti"` //子任务id
|
||
|
|
|
||
|
|
Factory string `json:"factory"` //生产厂家
|
||
|
|
Factory_code string `json:"factory_code"` //厂家编号
|
||
|
|
Qs string `json:"qs"` //质量标准
|
||
|
|
As string `json:"as"` //验收标准
|
||
|
|
|
||
|
|
Buyer string `json:"buyer"` //采购人员
|
||
|
|
|
||
|
|
If_modify bool `json:"if_modify"` //记录是否可修改
|
||
|
|
|
||
|
|
Contract_id string `json:"contract_id"` //合同号
|
||
|
|
Contract_state string `json:"contract_state"` //合同审批状态
|
||
|
|
Contract_amount string `json:"contract_amount"` //合同金额
|
||
|
|
|
||
|
|
State_1 string `json:"state_1"` //付款审批状态
|
||
|
|
|
||
|
|
Serial_num string `json:"serial_num"` //流水号
|
||
|
|
Contract_name string `json:"contract_name"` //合同名称
|
||
|
|
Pay_Contract_name string `json:"pay_contract_name"` //付款合同
|
||
|
|
|
||
|
|
Pay_Amount string `json:"pay_amount"` //付款金额
|
||
|
|
Batch_No string `json:"batch_no"` //批次号
|
||
|
|
Remark string `json:"remark"` //备注
|
||
|
|
}
|
||
|
|
|
||
|
|
type ma_plan struct {
|
||
|
|
ID int `json:"id"` //序号
|
||
|
|
Dispath_date string `json:"dispath_date"` //任务分配日期
|
||
|
|
Header string `json:"header"` //负责人
|
||
|
|
|
||
|
|
R_id_1 string `json:"r_id_1"` //需求R号
|
||
|
|
R_id_2 string `json:"r_id_2"` //申购R号
|
||
|
|
|
||
|
|
Material_id string `json:"m_id"`
|
||
|
|
Material_name string `json:"m_name"`
|
||
|
|
Material_describe string `json:"md"`
|
||
|
|
|
||
|
|
Unit string `json:"unit"` //单位
|
||
|
|
|
||
|
|
Number string `json:"num"` //数量
|
||
|
|
|
||
|
|
Unit_price string `json:"unit_price"` //单价
|
||
|
|
|
||
|
|
Amount_money string `json:"amount_money"` //金额
|
||
|
|
|
||
|
|
Tax_code string `json:"tax_code"` //税码
|
||
|
|
|
||
|
|
Supplier string `json:"supplier"` //供应方
|
||
|
|
|
||
|
|
Cycle string `json:"cycle"` //周期
|
||
|
|
|
||
|
|
Quality_standard string `json:"qs"` //质量标准
|
||
|
|
Acceptance_criteria string `json:"ac"` //验收标准
|
||
|
|
|
||
|
|
Information string `json:"information"` //随货资料
|
||
|
|
|
||
|
|
Purpose string `json:"purpose"` //用途
|
||
|
|
|
||
|
|
Order_r_id string `json:"order_r_id"` //订单号R号
|
||
|
|
Procure_id string `json:"procure_id"` //采购合同/订单号
|
||
|
|
Sap_id string `json:"sap_id"` //sap订单号
|
||
|
|
|
||
|
|
Production_date string `json:"Production_date"` //投产日期
|
||
|
|
Due_date string `json:"due_date"` //订单到期日期
|
||
|
|
|
||
|
|
Arrival_quantity string `json:"aq"` //到货数量
|
||
|
|
Undelivered_quantity string `json:"uq"` //未到货数量
|
||
|
|
|
||
|
|
SAP_Warehouse_entry_number string `json:"swen"` //SAP入库单号
|
||
|
|
SAP_Warehouse_entry_date string `json:"swed"` //SAP入库日期
|
||
|
|
|
||
|
|
Over_due string `json:"over_due"` //订单是否超期
|
||
|
|
|
||
|
|
Note string `json:"note"` //备注
|
||
|
|
}
|