yinbentan
2024-09-26 2030ec81f18f4ec9ea1800f13046acafff6d50f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package constvar
 
type SalesDetailsKeywordType string
 
const (
    SalesDetailsKeywordTypeCustomerName SalesDetailsKeywordType = "客户名称"
    SalesDetailsKeywordTypeOrderNumber  SalesDetailsKeywordType = "订单编号"
    SalesDetailsKeywordTypeSignTime     SalesDetailsKeywordType = "签约日期"
    SalesDetailsKeywordTypePrincipal    SalesDetailsKeywordType = "销售负责人"
    SalesDetailsKeywordTypeProductName  SalesDetailsKeywordType = "产品名称"
)
 
type SalesDetailsStatus int
 
const (
    WaitConfirmed SalesDetailsStatus = iota + 1 //待确认
    WaitDecompose                               //待分解
    InStock                                     //备货中
    WaitOutbound                                //待出库
    OverOutbound                                //出库完成
    OverCLose                                   //已关闭
)
 
func (s SalesDetailsStatus) Valid() bool {
    return s == WaitConfirmed || s == WaitOutbound || s == OverOutbound || s == OverCLose || s == WaitDecompose || s == InStock
}