binxie
2024-01-20 2ff0f0a7ab276c3466d9e06e14222db802194efc
bakcupwf0120
4个文件已添加
2个文件已修改
1153 ■■■■■ 已修改文件
force-app/main/default/workflows/Lead.workflow-meta.xml 424 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/workflows/Monthly_Report__c.workflow-meta.xml 218 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/workflows/QIS_SC_Report__c.workflow-meta.xml 273 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/workflows/Rental_Apply_Equipment_Set_Detail__c.workflow-meta.xml 166 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/workflows/Rental_Apply__c.workflow-meta.xml 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
manifest/packagewf.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/workflows/Lead.workflow-meta.xml
New file
@@ -0,0 +1,424 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>SendMailToLeadOwner</fullName>
        <description>购买意向自动分配邮件</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderAddress>ocm_te2ampj@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>Lead/SendMailToLeadOwner</template>
    </alerts>
    <fieldUpdates>
        <fullName>Account_Salesdepartment</fullName>
        <description>リードの「診療科-本部」を更新</description>
        <field>Account_Salesdepartment__c</field>
        <formula>IF(Hospital_Name__r.RecordTypeId = &apos;01210000000QemG&apos;,
  Hospital_Name__r.Salesdepartment_HP__c,
IF(Hospital_Name__r.Parent.RecordTypeId = &apos;01210000000QemG&apos;,
  Hospital_Name__r.Parent.Salesdepartment_HP__c,
  Hospital_Name__r.Parent.Parent.Salesdepartment_HP__c
))</formula>
        <name>リードの「診療科-本部」設定</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Assign_to_LeadSource</fullName>
        <description>课题:SWAG-C4H99E</description>
        <field>LeadSource</field>
        <literalValue>学会会议</literalValue>
        <name>来源取值</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Lead_Company_Set_DeptName</fullName>
        <field>Company</field>
        <formula>Hospital_Name__r.Name</formula>
        <name>潜在客户公司 = 科室名</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Lead_NoCreat</fullName>
        <field>Lead_No__c</field>
        <formula>&apos;IN&apos; + &apos;-&apos; + Account_Province__c + &quot;-&quot; + Lead_NoDate__c + Lead_Num__c</formula>
        <name>意向编码作成</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>OSCM_Province_cus</fullName>
        <field>OCM_man_province_cus_txt__c</field>
        <formula>OCM_man_province_cus__c</formula>
        <name>OSCM管理省(客户)更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Owner_Dep_Update</fullName>
        <field>Owner_Dep_txt__c</field>
        <formula>Owner_Dep__c</formula>
        <name>销售本部(所有人)文本更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>RecordLeadCreatorJobCategory</fullName>
        <field>JobCategoryOfCreator__c</field>
        <formula>TEXT($User.Job_Category__c)</formula>
        <name>记录意向创建人职种</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Seting_Account_for_search</fullName>
        <field>Account_for_search__c</field>
        <formula>Hospital_Name__r.Name</formula>
        <name>设定-客户名(检索用)</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateMethod1</fullName>
        <field>Sales_Method__c</field>
        <literalValue>政府招标</literalValue>
        <name>UpdateMethod1</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Company</fullName>
        <field>Company</field>
        <formula>Hospital_Name__r.Name</formula>
        <name>更新客户名(手动)</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Contact_FN</fullName>
        <field>FirstName</field>
        <formula>Contact_Name__r.FirstName</formula>
        <name>更新名</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Contact_LN</fullName>
        <field>LastName</field>
        <formula>Contact_Name__r.LastName</formula>
        <name>更新姓</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Leads_Account_State</fullName>
        <field>Account_State__c</field>
        <formula>IF(Hospital_Name__r.RecordTypeId = &apos;01210000000QemG&apos;,
  Hospital_Name__r.State_Master__r.Name,
IF(Hospital_Name__r.Parent.RecordTypeId = &apos;01210000000QemG&apos;,
  Hospital_Name__r.Parent.State_Master__r.Name,
  Hospital_Name__r.Parent.Parent.State_Master__r.Name
))</formula>
        <name>リードの「診療科-省」を更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Leads_Job_Category</fullName>
        <field>Creator_Job_Category__c</field>
        <formula>text( Owner:User.Job_Category__c)</formula>
        <name>リードの「作成者-職種」を更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>autoset_lead_forecasted</fullName>
        <field>Close_Forecasted_Date__c</field>
        <formula>CreatedDate + 75</formula>
        <name>意向设置预测签约日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>record_begin_opp_date</fullName>
        <field>begin_opp_date__c</field>
        <formula>TODAY()</formula>
        <name>记录开始询价时间</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>record_have_opp_date</fullName>
        <field>have_opp_date__c</field>
        <formula>TODAY()</formula>
        <name>记录已有询价时间</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>record_no_need_date</fullName>
        <field>no_need_date__c</field>
        <formula>TODAY()</formula>
        <name>记录无需求时间</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>LeadUpdateTemp</fullName>
        <actions>
            <name>UpdateMethod1</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Lead.Sales_Method__c</field>
            <operation>equals</operation>
            <value>公开招标</value>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>OCSM管理省%28客户%29文本更新</fullName>
        <actions>
            <name>OSCM_Province_cus</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>OR(ISNEW(), ISCHANGED( OCM_man_province_cus__c ), NOT(ISCHANGED( OCM_man_province_cus__c )))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>RecordCreatorJobCategory</fullName>
        <actions>
            <name>RecordLeadCreatorJobCategory</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>当新建意向时,记录创建人的职种</description>
        <formula>TRUE</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>record_first_state_day</fullName>
        <actions>
            <name>record_begin_opp_date</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Lead.Status</field>
            <operation>equals</operation>
            <value>確認済み</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>record_second_state_day</fullName>
        <actions>
            <name>record_no_need_date</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Lead.Status</field>
            <operation>equals</operation>
            <value>不要</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>record_third_state_day</fullName>
        <actions>
            <name>record_have_opp_date</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Lead.Status</field>
            <operation>equals</operation>
            <value>不用(重复)</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>リード-毎回実行公式变成到文本</fullName>
        <actions>
            <name>Account_Salesdepartment</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Seting_Account_for_search</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Leads_Account_State</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Leads_Job_Category</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>true</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>主要学会有值%EF%BC%8C来源默认为学会会议</fullName>
        <actions>
            <name>Assign_to_LeadSource</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>主要学会关联了会议时,系统自动默认来源=学会会议
课题:SWAG-C4H99E</description>
        <formula>!ISBLANK(Campaign__c)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>客户名生同步</fullName>
        <actions>
            <name>Update_Company</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Contact_FN</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Contact_LN</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND(Not(isnull(Hospital_Name__c)),Not(isnull(Contact_Name__c)),Not(isblank(Hospital_Name__c)),Not(isblank(Contact_Name__c)))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>意向编码自动生产</fullName>
        <actions>
            <name>Lead_NoCreat</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>True</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>新建购买意向</fullName>
        <actions>
            <name>Lead_Company_Set_DeptName</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Lead.Company</field>
            <operation>equals</operation>
            <value>*</value>
        </criteriaItems>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>未跟进完毕的购买意向</fullName>
        <active>true</active>
        <booleanFilter>1</booleanFilter>
        <criteriaItems>
            <field>Lead.Status</field>
            <operation>contains</operation>
            <value>跟进中,未確認</value>
        </criteriaItems>
        <description>状态为&quot;未跟进&quot;&quot;跟进中&quot;的意向.</description>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
        <workflowTimeTriggers>
            <offsetFromField>Lead.CreatedDate</offsetFromField>
            <timeLength>3</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
    </rules>
    <rules>
        <fullName>设置预测签约日</fullName>
        <actions>
            <name>autoset_lead_forecasted</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>ISNULL(Close_Forecasted_Date__c )|| (Close_Forecasted_Date__c &lt; DATEVALUE(CreatedDate)+75 &amp;&amp; ET_Check__c==false)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>邮件分配给购买意向所有人</fullName>
        <actions>
            <name>SendMailToLeadOwner</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Lead.SendMailToOwner__c</field>
            <operation>equals</operation>
            <value>真</value>
        </criteriaItems>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>销售本部%EF%BC%88所有人%EF%BC%89文本更新</fullName>
        <actions>
            <name>Owner_Dep_Update</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>OR(ISNEW(), ISCHANGED( Owner_Dep__c ), NOT(ISCHANGED( Owner_Dep__c )))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <tasks>
        <fullName>Not_follow_up_Sales_lead</fullName>
        <assignedToType>owner</assignedToType>
        <description>先生/女士:
您有未跟进完毕的购买意向,请打开SalesForce&quot;购买意向&quot;选项卡进行跟进处理,谢谢!</description>
        <dueDateOffset>4</dueDateOffset>
        <notifyAssignee>true</notifyAssignee>
        <offsetFromField>Lead.CreatedDate</offsetFromField>
        <priority>高</priority>
        <protected>false</protected>
        <status>未着手</status>
        <subject>未跟进完毕的购买意向</subject>
    </tasks>
</Workflow>
force-app/main/default/workflows/Monthly_Report__c.workflow-meta.xml
New file
@@ -0,0 +1,218 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>weekly_report_cc_other</fullName>
        <description>周报CC(服务以外)</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>BuchangApprovalManagerSales__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>TongkuoZongjian__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>ZongjianApprovalManager__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Olympus_OCM/Weekly_report_submit</template>
    </alerts>
    <alerts>
        <fullName>weekly_report_cc_servles</fullName>
        <description>周报CC(服务)</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>BuchangApprovalManager__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>TongkuoZongjian__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>ZongjianApprovalManager__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Olympus_OCM/Weekly_report_submit</template>
    </alerts>
    <fieldUpdates>
        <fullName>Change_to_approved</fullName>
        <field>Status__c</field>
        <literalValue>批准</literalValue>
        <name>状态改到批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Change_to_draft</fullName>
        <field>Status__c</field>
        <literalValue>草案中</literalValue>
        <name>状态草案中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Change_to_submit</fullName>
        <field>Status__c</field>
        <literalValue>已提交</literalValue>
        <name>状态修改到提交</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Feedback_day</fullName>
        <field>Feedback_time__c</field>
        <formula>now()</formula>
        <name>输入反馈日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Job_Category_text</fullName>
        <field>Job_category_text__c</field>
        <formula>Job_category__c</formula>
        <name>职种 文本化</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Month_text</fullName>
        <field>Month_week_text__c</field>
        <formula>Month_week__c</formula>
        <name>报告月(文本)文本化</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Post_text</fullName>
        <field>Post_text__c</field>
        <formula>Post__c</formula>
        <name>职位 文本化</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Province_text</fullName>
        <field>Province_text__c</field>
        <formula>Province__c</formula>
        <name>省 文本化</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Salesdepartment_text</fullName>
        <field>SalesDept_text__c</field>
        <formula>Salesdept__c</formula>
        <name>销售本部 文本化</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submit_Flag_Off</fullName>
        <field>Submit__c</field>
        <literalValue>0</literalValue>
        <name>提出フラグOff</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submit_Flag_On</fullName>
        <field>Submit__c</field>
        <literalValue>1</literalValue>
        <name>提出フラグOn</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submit_date_blank</fullName>
        <field>Submit_time__c</field>
        <name>提交日改到空</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Null</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_submit_date</fullName>
        <field>Submit_time__c</field>
        <formula>Now()</formula>
        <name>提交日更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>周报字段文本化</fullName>
        <actions>
            <name>Job_Category_text</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Month_text</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Post_text</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Province_text</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Salesdepartment_text</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>true</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>周报提交通知</fullName>
        <active>false</active>
        <formula>ISCHANGED( Submit_check_flag__c )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <tasks>
        <fullName>ActionTask01</fullName>
        <assignedToType>owner</assignedToType>
        <dueDateOffset>0</dueDateOffset>
        <notifyAssignee>true</notifyAssignee>
        <priority>中</priority>
        <protected>false</protected>
        <status>未着手</status>
        <subject>月報却下</subject>
    </tasks>
</Workflow>
force-app/main/default/workflows/QIS_SC_Report__c.workflow-meta.xml
New file
@@ -0,0 +1,273 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>ActionEmail21</fullName>
        <description>市场部通知部长,对应方法为“送回”时</description>
        <protected>false</protected>
        <recipients>
            <recipient>it_prectech@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>QIS/SC_ET_answer_submit_html</template>
    </alerts>
    <alerts>
        <fullName>QIS1</fullName>
        <description>部长审批完成后,发送邮件给”QIS判定结果通知”收件人及营业助理</description>
        <protected>false</protected>
        <recipients>
            <recipient>it_prectech@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>QIS/QIS_SC_answer_submit_html</template>
    </alerts>
    <alerts>
        <fullName>QIS_Market_Classification1</fullName>
        <description>部长审批完成后,发送邮件给”QIS判定结果通知”收件人及营业助理</description>
        <protected>false</protected>
        <recipients>
            <field>BusinessAssistantNos__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>QIS_FSE__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>QIS/QIS_SC_answer_submit_html</template>
    </alerts>
    <alerts>
        <fullName>QIS_Market_Classification112</fullName>
        <description>部长审批完成后,发送邮件给”QIS判定结果通知”收件人及营业助理</description>
        <protected>false</protected>
        <recipients>
            <field>BusinessAssistantNos__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>QIS_FSE__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>QIS/QIS_SC_answer_submit_html</template>
    </alerts>
    <alerts>
        <fullName>QIS_Market_Classification122</fullName>
        <description>部长审批完成后,发送邮件给”QIS判定结果通知”收件人及营业助理</description>
        <protected>false</protected>
        <recipients>
            <field>BusinessAssistantNos__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>QIS_FSE__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>QIS/QIS_SC_answer_submit_html</template>
    </alerts>
    <alerts>
        <fullName>RC1</fullName>
        <description>当RC判定的对应方法为“送回”时,通知</description>
        <protected>false</protected>
        <recipients>
            <recipient>it_prectech@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>QIS/QIS_ET_answer_submit_html</template>
    </alerts>
    <alerts>
        <fullName>RC2</fullName>
        <description>当RC判定的对应方法为“送回”时,按照以下邮件通知</description>
        <protected>false</protected>
        <recipients>
            <recipient>it_prectech@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>QIS/QIS_ET_answer_submit_html</template>
    </alerts>
    <alerts>
        <fullName>RC3</fullName>
        <description>当RC判定的对应方法为“送回”时,按照以下邮件通知</description>
        <protected>false</protected>
        <recipients>
            <recipient>it_prectech@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>QIS/SC_ET_answer_submit_html</template>
    </alerts>
    <fieldUpdates>
        <fullName>ActionFieldUpdate</fullName>
        <field>Status__c</field>
        <literalValue>草案中</literalValue>
        <name>更新状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ActionFieldUpdate1</fullName>
        <field>Status__c</field>
        <literalValue>已批准</literalValue>
        <name>更新状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ActionFieldUpdate7</fullName>
        <field>Status__c</field>
        <literalValue>已批准</literalValue>
        <name>更新状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ActionFieldUpdate8</fullName>
        <field>Status__c</field>
        <literalValue>草案中</literalValue>
        <name>更新状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ActionFieldUpdate9</fullName>
        <field>Status__c</field>
        <literalValue>草案中</literalValue>
        <name>更新状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UniqKeyUpd</fullName>
        <field>UniqKey__c</field>
        <formula>QIS_Report__c</formula>
        <name>UniqKey更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatus</fullName>
        <field>Status__c</field>
        <literalValue>批准中</literalValue>
        <name>更新状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatus2</fullName>
        <field>Status__c</field>
        <literalValue>批准中</literalValue>
        <name>更新状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatus3</fullName>
        <field>Status__c</field>
        <literalValue>草案中</literalValue>
        <name>更新状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatus4</fullName>
        <field>Status__c</field>
        <literalValue>草案中</literalValue>
        <name>更新状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatus5</fullName>
        <field>Status__c</field>
        <literalValue>已提交</literalValue>
        <name>更新状态_已提交</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatus6</fullName>
        <field>Status__c</field>
        <literalValue>申请中</literalValue>
        <name>更新状态_申请中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatus7</fullName>
        <field>Status__c</field>
        <literalValue>草案中</literalValue>
        <name>更新状态_草案中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatus8</fullName>
        <field>Status__c</field>
        <literalValue>草案中</literalValue>
        <name>更新状态_草案中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateYYZhuli</fullName>
        <field>BusinessAssistantNoEmail__c</field>
        <formula>BusinessAssistantNoEmail__c</formula>
        <name>更新市场部营业助理</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>公式拷贝到文本</fullName>
        <actions>
            <name>UniqKeyUpd</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>True</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>公式拷贝到文本营业助理</fullName>
        <actions>
            <name>UpdateYYZhuli</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <formula>True</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
</Workflow>
force-app/main/default/workflows/Rental_Apply_Equipment_Set_Detail__c.workflow-meta.xml
New file
@@ -0,0 +1,166 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>Adjust_Queue_Back</fullName>
        <description>插队申请撤回提醒</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/Adjust_Queue_Back</template>
    </alerts>
    <alerts>
        <fullName>Adjust_Queue_No</fullName>
        <description>插队申请拒绝提醒</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/Adjust_Queue_No</template>
    </alerts>
    <alerts>
        <fullName>Adjust_Queue_Rental_Start</fullName>
        <description>插队申请批准提醒邮件-备品</description>
        <protected>false</protected>
        <recipients>
            <recipient>honglei_li@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Loaner_function/Adjust_Queue_Window_Start</template>
    </alerts>
    <alerts>
        <fullName>Adjust_Queue_Window_Start</fullName>
        <description>插队申请批准提醒邮件</description>
        <protected>false</protected>
        <recipients>
            <field>BuchangApprovalManagerSales__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Loaner_function/Adjust_Queue_Window_Start</template>
    </alerts>
    <alerts>
        <fullName>bp2_Inspect_Before_NG</fullName>
        <description>发货前检测NG通知</description>
        <protected>false</protected>
        <recipients>
            <field>Loaner_centre_mail_address__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Loaner_function/Inspect_Before_NG_HTML</template>
    </alerts>
    <fieldUpdates>
        <fullName>Cance_Allow_Adjust_Queue</fullName>
        <field>Allow_Adjust_Queue_Flag__c</field>
        <literalValue>0</literalValue>
        <name>插队申请取消</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Check_Allow_Adjust_Queue</fullName>
        <field>Allow_Adjust_Queue_Flag__c</field>
        <literalValue>1</literalValue>
        <name>插队申请标记</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Inspection_result_NG_update</fullName>
        <field>Inspection_result_NG__c</field>
        <literalValue>报修</literalValue>
        <name>发货前检查NG</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Lost_Giveup_time</fullName>
        <field>Loaner_Giveup_Time__c</field>
        <formula>now()</formula>
        <name>欠品断念时间</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Pre_disinfection_NG_update</fullName>
        <field>Pre_disinfection_NG__c</field>
        <literalValue>1</literalValue>
        <name>事前未清洗</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Queue_Day_Text</fullName>
        <field>Queue_Day_Text__c</field>
        <formula>Queue_Day__c</formula>
        <name>排队日(首次)</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Water_leacage_check_NG_update</fullName>
        <field>Water_leacage_check_NG__c</field>
        <literalValue>1</literalValue>
        <name>测漏检查结果NG</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>jumpReasonCancel</fullName>
        <field>jumpReason__c</field>
        <name>插队原因取消</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Null</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>发货前检查NG通知</fullName>
        <actions>
            <name>bp2_Inspect_Before_NG</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <description>From 借出备品配套一览</description>
        <formula>ISCHANGED(Inspection_result_NG__c) &amp;&amp; OR(TEXT(Inspection_result_NG__c) = &apos;维修&apos;,TEXT(Inspection_result_NG__c) = &apos;废弃&apos;)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>排队日%28首次%29</fullName>
        <actions>
            <name>Queue_Day_Text</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <formula>RAESD_Status__c = &apos;排队中&apos; &amp;&amp; ISBLANK(Queue_Day_Text__c)</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>欠品断念时间</fullName>
        <actions>
            <name>Lost_Giveup_time</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <formula>Check_lost_Item_F__c = &apos;欠品&apos; &amp;&amp; Isblank(Loaner_Giveup_Time__c) &amp;&amp;  Lost_item_giveup__c = TRUE</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
</Workflow>
force-app/main/default/workflows/Rental_Apply__c.workflow-meta.xml
@@ -467,7 +467,7 @@
            <field>applyUser__c</field>
            <type>userLookup</type>
        </recipients>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderAddress>ocm_te2ampj@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>Loaner_function/RentalApplyCantShipAll_HTML</template>
    </alerts>
@@ -483,7 +483,7 @@
            <field>applyUser__c</field>
            <type>userLookup</type>
        </recipients>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderAddress>ocm_te2ampj@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>Loaner_function/RentalApplyOutStock</template>
    </alerts>
@@ -499,7 +499,7 @@
            <field>applyUser__c</field>
            <type>userLookup</type>
        </recipients>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderAddress>ocm_te2ampj@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>Loaner_function/RentalApplyWariateInfo</template>
    </alerts>
@@ -894,25 +894,6 @@
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>OPDApprovalStatus_update_fail</fullName>
        <field>OPDApprovalStatus__c</field>
        <name>OPD审批通过自动提交审批状态更新 空</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>OPDApprovalStatus_update_success</fullName>
        <field>OPDApprovalStatus__c</field>
        <literalValue>批准</literalValue>
        <name>OPD审批通过自动提交审批状态更新 批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Onwer_job_category</fullName>
        <field>Onwer_job_category_text__c</field>
        <formula>Onwer_job_category__c</formula>
@@ -1001,6 +982,26 @@
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Status_back</fullName>
        <field>Status__c</field>
        <literalValue>引当済</literalValue>
        <name>状态更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>true</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Status_update</fullName>
        <field>Status__c</field>
        <literalValue>出库指示済</literalValue>
        <name>状态更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>true</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateJumpDateRental</fullName>
@@ -1316,6 +1317,16 @@
        <field>Status__c</field>
        <literalValue>已批准</literalValue>
        <name>更新备品借出申请状态 批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_ra_status_yindang</fullName>
        <field>Status__c</field>
        <literalValue>引当完了</literalValue>
        <name>更新备品借出申请状态 引当完了</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
@@ -1661,6 +1672,17 @@
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>自动引当完了%EF%BC%88先引当再批准%EF%BC%89</fullName>
        <actions>
            <name>Update_ra_status_yindang</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <description>//bp2 inactive</description>
        <formula>TEXT(Status__c) = &apos;已批准&apos; &amp;&amp; Rental_Apply_Equipment_Set_Cnt__c &gt; 0 &amp;&amp; ISCHANGED(Status__c)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>草案中需要提交的申请</fullName>
        <active>true</active>
        <criteriaItems>
manifest/packagewf.xml
@@ -1,7 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <members>Lead</members>
        <members>Monthly_Report__c</members>
        <members>Rental_Apply_Equipment_Set_Detail__c</members>
        <members>QIS_SC_Report__c</members>
        <members>CancelPostponePlan__c</members>
        <name>WorkFlow</name>
    </types>
    <version>59.0</version>