From 1572f45e72cc0fa15c029f9ee2a08474104435e6 Mon Sep 17 00:00:00 2001 From: selfcheer <selfcheer@gmail.com> Date: 星期五, 19 七月 2024 00:48:43 +0800 Subject: [PATCH] 采购单产品列表去掉过滤重复产品的逻辑 --- constvar/const.go | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 59 insertions(+), 0 deletions(-) diff --git a/constvar/const.go b/constvar/const.go index e1cda77..b838b7f 100644 --- a/constvar/const.go +++ b/constvar/const.go @@ -9,3 +9,62 @@ ) const SystemTypeSrm = 4 //srm璐﹀彿 + +type CodeStandardType string + +const ( + 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