name: sh_development_tasks__c
custom: true
enable_api: true
enable_audit: true
enable_chatter: true
enable_enhanced_lookup: true
enable_events: true
enable_files: true
enable_inline_edit: true
enable_instances: true
enable_notes: true
enable_search: true
enable_share: true
enable_tasks: true
enable_tree: false
enable_workflow: true
icon: article
is_enable: true
label: 设计开发任务书
version: 2
form:
  onValuesChange: !<tag:yaml.org,2002:js/function> |-
    function (args) {
      console.log('数据变化')
      console.log(args)
      if(args.changedValues && args.changedValues.name){
        const id = args.changedValues.name
        //const customer_name = Creator.odata.query('sh_development_proposal__c', {$select: 'customer_name__c',$filter: `(_id eq ${name})`,}, true)
        const record = Creator.odata.get('sh_development_proposal__c', id)
        //const record2 = Creator.odata.get('sh_base_customer_profile__c', record.customer_name__c)
        args.form.setFieldsValue({ customer_name__c: record.customer_name__c});
        args.form.setFieldsValue({ specification__c: record.specification__c});
      }

    }