binxie
2024-01-20 1d91be0be5220ce19ee64de5a5c9a8237b1c15b1
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>RepairAgainAn_OCSM_pass</fullName>
        <description>再注册修理OCSM审批通过</description>
        <protected>false</protected>
        <recipients>
            <field>Incharge_Staff__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>Technical_Responsibility__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>repair/RepairAgainAn_OCSM_Approved_Email</template>
    </alerts>
    <alerts>
        <fullName>RepairAgainAn_OCSM_reject</fullName>
        <description>再注册修理OCSM审批驳回</description>
        <protected>false</protected>
        <recipients>
            <field>Technical_Responsibility__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>repair/RepairAgainAn_OCSM_reject_Email</template>
    </alerts>
    <alerts>
        <fullName>SendRepairAgainAnQISEmail</fullName>
        <description>再修理分析发行后通知质量投诉部门</description>
        <protected>false</protected>
        <recipients>
            <recipient>haijie_yin@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <recipients>
            <recipient>mingmeng_jian@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <recipients>
            <recipient>ningdan_song@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>repair/Send_RepairAgainAnQIS_Email</template>
    </alerts>
    <alerts>
        <fullName>passEmail</fullName>
        <ccEmails>lijin@prec-tech.com</ccEmails>
        <ccEmails>iucheng@prec-tech.com</ccEmails>
        <description>再修理分析通过审批邮件</description>
        <protected>false</protected>
        <recipients>
            <field>OSH_Auditor__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>OSH_Detector__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>DefaultWorkflowUser</senderType>
        <template>repair/RepairAgainAn_OSH_Approved_Email</template>
    </alerts>
    <alerts>
        <fullName>passEmail2</fullName>
        <ccEmails>lijin@prec-tech.com</ccEmails>
        <description>再修理分析通过审批邮件(二次)</description>
        <protected>false</protected>
        <recipients>
            <field>OSH_Auditor2__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>OSH_Detector2__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>DefaultWorkflowUser</senderType>
        <template>repair/RepairAgainAn_OSH_Approved_Email_second</template>
    </alerts>
    <alerts>
        <fullName>rejectEmail</fullName>
        <ccEmails>lijin@prec-tech.com</ccEmails>
        <description>再修理分析审批驳回邮件</description>
        <protected>false</protected>
        <senderType>CurrentUser</senderType>
        <template>repair/RepairAgainAn_reject_Email</template>
    </alerts>
    <fieldUpdates>
        <fullName>OCSM_Approve_Status_Pizhun</fullName>
        <field>OCSM_Approve_Status__c</field>
        <literalValue>批准</literalValue>
        <name>更新OCSM审批状态到批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>OCSM_Approve_Status_Shenpizhong</fullName>
        <field>OCSM_Approve_Status__c</field>
        <literalValue>审批中</literalValue>
        <name>更新OCSM审批状态到审批中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>OSCM_Approve_Status_Bohui</fullName>
        <field>OCSM_Approve_Status__c</field>
        <literalValue>驳回</literalValue>
        <name>更新OCSM审批已驳回状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>RepairAgain_Status_Update_Final</fullName>
        <field>RepairAgain_Status__c</field>
        <literalValue>完毕</literalValue>
        <name>更新再修理返品分析状态到完毕</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateApprove_status</fullName>
        <field>RepairAgainAn_Approve_status__c</field>
        <literalValue>批准</literalValue>
        <name>更新再修理分析审批状态到批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateApprove_status2</fullName>
        <field>RepairAgainAn_Approve_status2__c</field>
        <literalValue>批准</literalValue>
        <name>更新再修理分析审批状态(二次)到批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateOSH_Confirmation_Date</fullName>
        <field>OSH_Confirmation_Date__c</field>
        <formula>TODAY()</formula>
        <name>更新OSH确认日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateOSH_Confirmation_Date2</fullName>
        <field>OSH_Confirmation_Date2__c</field>
        <formula>TODAY()</formula>
        <name>更新OSH确认日(二次)</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateRepairAgainAn_Approve_Confirm</fullName>
        <field>RepairAgainAn_Approve_Confirm__c</field>
        <formula>TODAY()</formula>
        <name>更新审批完了日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateRepairAgainAn_Approve_Confirm2</fullName>
        <field>RepairAgainAn_Approve_Confirm2__c</field>
        <formula>TODAY()</formula>
        <name>更新审批完了日(二次)</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_OCSM_Day</fullName>
        <field>OCM_Confirmation_Date__c</field>
        <formula>TODAY()</formula>
        <name>更新OCM确认日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_RepairAgainAn_Approve_applyDate</fullName>
        <field>RepairAgainAn_Approve_applyDate__c</field>
        <formula>TODAY()</formula>
        <name>更新审批提交日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_RepairAgainAn_Approve_applyDate2</fullName>
        <field>RepairAgainAn_Approve_applyDate2__c</field>
        <formula>TODAY()</formula>
        <name>更新审批提交日(二次)</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_RepairAgainAn_Approve_status</fullName>
        <field>RepairAgainAn_Approve_status__c</field>
        <literalValue>审批中</literalValue>
        <name>更新再修理分析审批状态到审批中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_RepairAgainAn_Approve_status2</fullName>
        <field>RepairAgainAn_Approve_status2__c</field>
        <literalValue>审批中</literalValue>
        <name>更新再修理分析审批状态(二次)到审批中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Updatecancel</fullName>
        <field>RepairAgainAn_Approve_status__c</field>
        <literalValue>驳回</literalValue>
        <name>更新再修理分析审批已驳回状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Updatecancel2</fullName>
        <field>RepairAgainAn_Approve_status2__c</field>
        <literalValue>驳回</literalValue>
        <name>更新再修理分析审批(二次)已驳回状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>Send_RepairAgainAn_QIS</fullName>
        <actions>
            <name>SendRepairAgainAnQISEmail</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <description>再注册分析在OSH审批通过后,勾选了发行QIS就需要通知质量投诉部门</description>
        <formula>(ISPICKVAL(issue_QIS_M_BC__c, &apos;发行&apos;) &amp;&amp; ISCHANGED(RepairAgainAn_Approve_status__c) &amp;&amp;  ISPICKVAL(RepairAgainAn_Approve_status__c, &apos;批准&apos;))  ||  (ISPICKVAL(issue_QIS_M_BC2__c, &apos;发行&apos;) &amp;&amp;  ISCHANGED(RepairAgainAn_Approve_status2__c) &amp;&amp;  ISPICKVAL(RepairAgainAn_Approve_status2__c, &apos;批准&apos;))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>