高章伟
2022-02-18 8b5f4c6c281cfa548f92de52c8021e37aa81901e
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
    <actionOverrides>
        <actionName>Accept</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>CancelEdit</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>Clone</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>Delete</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>Edit</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>List</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>New</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>SaveEdit</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>Tab</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>View</actionName>
        <type>Default</type>
    </actionOverrides>
    <allowInChatterGroups>false</allowInChatterGroups>
    <compactLayoutAssignment>SYSTEM</compactLayoutAssignment>
    <deploymentStatus>Deployed</deploymentStatus>
    <enableActivities>false</enableActivities>
    <enableBulkApi>true</enableBulkApi>
    <enableChangeDataCapture>false</enableChangeDataCapture>
    <enableFeeds>false</enableFeeds>
    <enableHistory>false</enableHistory>
    <enableReports>true</enableReports>
    <enableSearch>false</enableSearch>
    <enableSharing>true</enableSharing>
    <enableStreamingApi>true</enableStreamingApi>
    <externalSharingModel>ControlledByParent</externalSharingModel>
    <fields>
        <fullName>If_Opportunity_win__c</fullName>
        <externalId>false</externalId>
        <formula>Opportunity__r.SAP_Send_OK__c</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>询价是否win</label>
        <trackTrending>false</trackTrending>
        <type>Checkbox</type>
    </fields>
    <fields>
        <fullName>Is_Locked__c</fullName>
        <defaultValue>false</defaultValue>
        <externalId>false</externalId>
        <label>已锁定</label>
        <trackTrending>false</trackTrending>
        <type>Checkbox</type>
    </fields>
    <fields>
        <fullName>Last_upload_time__c</fullName>
        <externalId>false</externalId>
        <label>最新附件上传时间</label>
        <required>false</required>
        <trackTrending>false</trackTrending>
        <type>DateTime</type>
    </fields>
    <fields>
        <fullName>Last_upload_user__c</fullName>
        <deleteConstraint>SetNull</deleteConstraint>
        <externalId>false</externalId>
        <label>最新附件上传用户</label>
        <referenceTo>User</referenceTo>
        <relationshipName>OpportunityFile_User</relationshipName>
        <required>false</required>
        <trackTrending>false</trackTrending>
        <type>Lookup</type>
    </fields>
    <fields>
        <fullName>Oppor_File_Stage__c</fullName>
        <externalId>false</externalId>
        <label>询价文件类型</label>
        <required>false</required>
        <trackTrending>false</trackTrending>
        <type>Picklist</type>
        <valueSet>
            <valueSetDefinition>
                <sorted>false</sorted>
                <value>
                    <fullName>A</fullName>
                    <default>false</default>
                    <label>A.中标通知/截图</label>
                </value>
                <value>
                    <fullName>B</fullName>
                    <default>false</default>
                    <label>B.采购通知书</label>
                </value>
                <value>
                    <fullName>C</fullName>
                    <default>false</default>
                    <label>C.医院合同</label>
                </value>
                <value>
                    <fullName>D</fullName>
                    <default>false</default>
                    <label>D.供货保证书</label>
                </value>
                <value>
                    <fullName>E</fullName>
                    <default>false</default>
                    <label>E.盖章的配置单</label>
                </value>
                <value>
                    <fullName>F</fullName>
                    <default>false</default>
                    <label>F.质疑函</label>
                </value>
                <value>
                    <fullName>G</fullName>
                    <default>false</default>
                    <label>G.T1清单</label>
                </value>
            </valueSetDefinition>
        </valueSet>
    </fields>
    <fields>
        <fullName>Opportunity__c</fullName>
        <externalId>false</externalId>
        <label>询价</label>
        <referenceTo>Opportunity</referenceTo>
        <relationshipLabel>询价文件</relationshipLabel>
        <relationshipName>Opportunity_File</relationshipName>
        <relationshipOrder>0</relationshipOrder>
        <reparentableMasterDetail>false</reparentableMasterDetail>
        <trackTrending>false</trackTrending>
        <type>MasterDetail</type>
        <writeRequiresMasterRead>false</writeRequiresMasterRead>
    </fields>
    <fields>
        <fullName>Stock_apply_time__c</fullName>
        <externalId>false</externalId>
        <formula>Opportunity__r.Stock_apply_time__c</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>备货确认日期</label>
        <required>false</required>
        <trackTrending>false</trackTrending>
        <type>DateTime</type>
    </fields>
    <label>询价文件</label>
    <nameField>
        <label>询价文件名称</label>
        <type>Text</type>
    </nameField>
    <searchLayouts/>
    <sharingModel>ControlledByParent</sharingModel>
    <validationRules>
        <fullName>SpecificInquiryFileType00</fullName>
        <active>true</active>
        <description>2M1、2M2、2M5、以及系统管理员可以创建类型为&quot;G.T1清单&quot;的询价文件</description>
        <errorConditionFormula>ISNEW() &amp;&amp; TEXT(Oppor_File_Stage__c) = &apos;G&apos; &amp;&amp; $User.ProfileId  != &apos;00e10000000xnoi&apos; &amp;&amp; $User.ProfileId  != &apos;00ep0000000OXVH&apos; &amp;&amp; $User.ProfileId  != &apos;00e10000000xnon&apos; &amp;&amp; $User.ProfileId  != &apos;00e1000000125Pw&apos; &amp;&amp; $User.ProfileId  != &apos;00ep0000000On52&apos; &amp;&amp; $User.ProfileId  != &apos;00e10000000dEQx&apos; &amp;&amp; $User.ProfileId  != &apos;00e10000000dzzG&apos; &amp;&amp; $User.ProfileId  != &apos;00e10000000Y3o5&apos; &amp;&amp; $User.ProfileId  != &apos;00e10000000xo1D&apos; &amp;&amp; $User.ProfileId  != &apos;00e10000000xyVi&apos;</errorConditionFormula>
        <errorDisplayField>Oppor_File_Stage__c</errorDisplayField>
        <errorMessage>您没有权限创建类型为&quot;G.T1清单&quot;的询价文件</errorMessage>
    </validationRules>
    <validationRules>
        <fullName>SpecificInquiryFileType01</fullName>
        <active>true</active>
        <errorConditionFormula>NOT(ISNEW()) &amp;&amp; TEXT(PRIORVALUE(Oppor_File_Stage__c)) = &apos;G&apos; &amp;&amp; TEXT(Oppor_File_Stage__c) != &apos;G&apos;</errorConditionFormula>
        <errorMessage>询价文件类型为&quot;G.T1清单&quot;时,不可修改询价文件类型</errorMessage>
    </validationRules>
    <validationRules>
        <fullName>SpecificInquiryFileType02</fullName>
        <active>true</active>
        <errorConditionFormula>NOT(ISNEW()) &amp;&amp; TEXT(PRIORVALUE(Oppor_File_Stage__c)) != &apos;G&apos;&amp;&amp; TEXT(Oppor_File_Stage__c) = &apos;G&apos;</errorConditionFormula>
        <errorMessage>不可更改询价文件类型为&quot;G.T1清单&quot;</errorMessage>
    </validationRules>
    <visibility>Public</visibility>
    <webLinks>
        <fullName>new_opportunityfile</fullName>
        <availability>online</availability>
        <displayType>massActionButton</displayType>
        <linkType>javascript</linkType>
        <masterLabel>新建询价文件</masterLabel>
        <openType>onClickJavaScript</openType>
        <protected>false</protected>
        <requireRowSelection>false</requireRowSelection>
        <url>var status = &apos;{!Opportunity.Stock_apply_status__c}&apos;;
if (status == &apos;批准&apos;) {
  alert(&apos;备货审批已经批准,不能添加新询价文件。&apos;);
} else {
  window.top.location.href = &apos;/a2c/e?CF00N100000072rn8={!Opportunity.Name}&apos; + &apos;&amp;CF00N100000072rn8_lkid={!Opportunity.Id}&apos; +
&apos;&amp;retURL=%2F{!Opportunity.Id}&apos;;
}</url>
    </webLinks>
</CustomObject>