SOURCE

const sn_fieldName = qf_field(
  '单行文本$fieldKspYbcdsPB8FE2M6hrlgdpqmd2G73N93$'
);
const customer_fieldName = qf_field(
  '客户$fieldGAAkVCyspDORT9qOBDNUs9m3YNcIrKvd$'
);
const product_fieldName = qf_field(
  '产品$fieldVVkQ9A0caT2DjF0KOcDwTjmmztjEDTtg$'
);
const sn_value = form[sn_fieldName];
const isMobile =
  typeof window.orientation !== 'undefined' ||
  navigator.userAgent.indexOf('IEMobile') !== -1;
console.log(isMobile, 'isMobile');
if (!isMobile) return { }; // 为了让这个控件关联这个

// 移动端逻辑
const http = this.shbHttp;
const lodash = this.lodash;
async function fn() {
  const params = {
    serialNumber: sn_value,
  };
  const { code, data } = await http.get(
    `/api/linkc/outside/linkc/v3c/product/getRelatedInfosByCode`,
    params,
    true,
    {
      isHaveLinkToken: true,
    }
  );
  if (code == 200) {
    const customerInfo = data?.customerInfo;
    if (customerInfo) {
      const customer = {
        id: customerInfo.id,
        name: customerInfo.name,
      };
      form[customer_fieldName] = [customer];
    }
  }
}
fn();
return {  };
console 命令行工具 X clear

                    
>
console