From de4bcd1dead50b05f716bc5718be5540bdb96783 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期日, 28 四月 2024 17:23:29 +0800 Subject: [PATCH] fix --- constvar/const.go | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/constvar/const.go b/constvar/const.go index 6bd9591..b838b7f 100644 --- a/constvar/const.go +++ b/constvar/const.go @@ -16,3 +16,55 @@ CodeStandardType_PurchaseOrder CodeStandardType = "閲囪喘鍗曠紪鐮�" CodeStandardType_Supplier CodeStandardType = "渚涘簲鍟嗙紪鐮�" ) + +type RecordStatus int //鐘舵�� 0 鏂板缓 1 鍚敤 2鍋滅敤 + +const ( + RecordStatusCreate RecordStatus = iota // 鏂板缓 + RecordStatusActive // 鍚敤 + RecordStatusInactive // 鍋滅敤 +) + +type OutsourcingOrderStatus int + +// 绠$悊绔� 寰呯敓浜� 棰嗘枡瀹℃牳鎷掔粷閮芥樉绀哄凡鍒嗛厤濮斿鍟� +const ( + OutsourcingOrderStatusCreate OutsourcingOrderStatus = iota // 鏂板缓寰呭垎閰嶅澶栧晢 + OutsourcingOrderStatusAssigned // 宸插垎閰嶅澶栧晢 + OutsourcingOrderStatusWaitProduce // 寰呯敓浜� + OutsourcingOrderStatusMaterialApplying // 鐗╂枡鐢宠涓�/寰呴鏂欏鏍� + OutsourcingOrderStatusMaterialExamineRefused // 棰嗘枡瀹℃牳鎷掔粷 + OutsourcingOrderStatusProducing // 鐢熶骇涓� + OutsourcingOrderStatusFinish // 鐢熶骇瀹屾垚 + OutsourcingOrderStatusDeliveryFinish // 鍙戣揣瀹屾垚 + OutsourcingOrderStatusReceiveFinish // 鏀惰揣瀹屾垚 + OutsourcingOrderStatusClose //鍏抽棴 +) + +// BoolType 甯冨皵绫诲瀷 +type BoolType int + +const ( + BoolTypeTrue BoolType = 1 // true + BoolTypeFalse BoolType = 2 // false +) + +// MiniDictType 杩蜂綘瀛楀吀绫诲瀷 +type MiniDictType int + +const ( + MiniDictTypePlcBrand MiniDictType = iota + 1 // PLC鍝佺墝 + MiniDictTypeBomVersionType // Bom鐗堟湰绫诲瀷 + EarlyWarningDay //棰勮澶╂暟 + InspectionWayType //璐ㄦ鏂瑰紡绫诲瀷 + OutsourcingSupplierType //濮斿渚涘簲鍟嗙被鍨� + OutsourcingSupplierCreditGrade //淇$敤绛夌骇 + OutsourcingSupplierRange //渚涜揣鑼冨洿 +) + +func (t MiniDictType) Valid() bool { + if t <= 0 { + return false + } + return true +} -- Gitblit v1.8.0