import json

from utils.get_random_data import (
    COMPANY,
    NAME,
    PHONE,
    IDENTITY_NUMBER,
    ADDRESS,
    COMPANY_NUM_18,
)
from utils.get_today import get_today_date

npSupplierJson = {
    "legalPersonIdDate": "9999-12-31",
    "licenseDate": "9999-12-31",
    "legalPersonIdLong": "Y",
    "licenseLong": "Y",
    "legalPersonType": "IDCard",
    "registCapitalUnit": "WY",
    "orderNo": "",
    "orderType": "ADD",
    "orderSource": "PC",
    "billStatus": "",
    "invalidReason": "",
    "supCode": "",
    "supName": COMPANY,
    "shortName": "",
    "supCatName": "待审供应商",
    "isSupplyName": "",
    "cooperatStatusName": "",
    "purchaserTypeName": "五金类",
    "systemUseName": "B2B系统",
    "fileCode": "",
    "statusName": "有效",
    "remark": "",
    "companyProfile": "",
    "systemUse": "UseB2B",
    "orderDay": str(get_today_date()),
    "purchaserTypeCode": "01",
    "supAttrName": "公司",
    "supAttr": "company",
    "attrPartName": "合资",
    "attrPart": "JOINT",
    "legalPerson": NAME,
    "contacts": NAME,
    "tel": PHONE,
    "legalPersonId": IDENTITY_NUMBER,
    "registCapital": "1000",
    "licenseCode": COMPANY_NUM_18,
    "foundatDate": "1614528000000",
    "province": 110000,
    "city": 110100,
    "area": 110106,
    "expAddress0": [110000, 110100, 110106],
    "expAddress": ADDRESS,
    "mailProvince": 110000,
    "mailCity": 110100,
    "mailArea": 110106,
    "mailPCA": [110000, 110100, 110106],
    "mailAddress": ADDRESS,
    "id": "",
    "requiredCheck": "N",
    "status": "N",
}

npSupplierInformJson = {
    "supNatPlant": None,
    "supLeaseTerm": None,
    "leaseTermUnit": None,
    "supLeaseBetime": None,
    "supLeaseEndtime": None,
    "supFactoryArea": None,
    "factoryAreaUnit": "unit002",
    "supWorkshopArea": None,
    "workshopAreaUnit": "unit002",
    "supStorageArea": None,
    "supStorageAreaUnit": "unit002",
    "supTestArea": None,
    "supTestAreaUnit": "unit002",
    "supProductLoc": None,
    "supEmployeesNum": None,
    "supManageNum": None,
    "supTechnicalNum": None,
    "supQualityNum": None,
    "supAutomate": "N",
    "supAutomateName": "否",
    "supProtectEquip": "N",
    "supProtectEquipName": "否",
    "supSales": None,
    "supAnnualGross": None,
    "supOutput": None,
    "supOutputUnit": "t/y",
    "supRom": "N",
    "supRomName": "否",
    "supCode": None,
    "creator": 1000150,
    "creatorName": "肖建文",
    "lastModifierId": None,
    "lastModifierName": "肖建文",
    "removed": False,
    "supNatPlantName": None,
    "deliveryMethod": None,
    "procCycle": None,
    "leaseTermUnitName": None,
    "factoryAreaUnitName": "平方米",
    "workshopAreaUnitName": "平方米",
    "supTestAreaUnitName": "平方米",
    "supStorageAreaUnitName": "平方米",
    "supOutputUnitName": "吨/年",
    "npSupplierCustomList": [],
    "npSupplierEquiptList": [],
    "npSupplierProductList": [],
    "npSupplierUpList": [],
}

if __name__ == "__main__":
    print(json.dumps(npSupplierJson))
