2 lines
5.9 KiB
Java
2 lines
5.9 KiB
Java
|
|
var y=Object.defineProperty;var I=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var _=(o,r,t)=>r in o?y(o,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[r]=t,b=(o,r)=>{for(var t in r||(r={}))M.call(r,t)&&_(o,t,r[t]);if(I)for(var t of I(r))B.call(r,t)&&_(o,t,r[t]);return o};var g=(o,r,t)=>new Promise((d,n)=>{var m=l=>{try{u(t.next(l))}catch(p){n(p)}},i=l=>{try{u(t.throw(l))}catch(p){n(p)}},u=l=>l.done?d(l.value):Promise.resolve(l.value).then(m,i);u((t=t.apply(o,r)).next())});import{d as D,aC as N,as as T,aF as k,k as J,u as a,aG as O,e as q,f as P}from"./vue-vendor-C7Zq48Yl.js";import{B as j}from"./index-Du0A3ksf.js";import"./index-Di-j2gt4.js";import{c as X,s as E,q as L}from"./MesXslCustomer.api-CkDsRb9F.js";import{ak as U,d as V}from"./index-BI6CMai0.js";import{u as z}from"./useForm-BZtHZyx2.js";import{B as A}from"./BasicForm-BJnSRkIE.js";const se=[{title:"ID",align:"center",dataIndex:"id",width:280,ellipsis:!0,defaultHidden:!0},{title:"客户编码",align:"center",dataIndex:"customerCode",width:140},{title:"客户名称",align:"center",dataIndex:"customerName",width:180},{title:"客户简称",align:"center",dataIndex:"customerShortName",width:120},{title:"客户区域",align:"center",dataIndex:"customerRegion_dictText",width:100},{title:"ERP编码",align:"center",dataIndex:"erpCode",width:140},{title:"状态",align:"center",dataIndex:"status_dictText",width:100},{title:"客户描述",align:"center",dataIndex:"customerDesc",width:200,ellipsis:!0},{title:"创建人",align:"center",dataIndex:"createBy",width:100},{title:"创建时间",align:"center",dataIndex:"createTime",width:165,customRender:({text:o})=>o?String(o).length>19?String(o).substring(0,19):o:""},{title:"租户ID",align:"center",dataIndex:"tenantId",width:90,defaultHidden:!0}],re=[{label:"客户编码",field:"customerCode",component:"JInput",colProps:{span:6}},{label:"客户名称",field:"customerName",component:"JInput",colProps:{span:6}},{label:"客户简称",field:"customerShortName",component:"JInput",colProps:{span:6}},{label:"客户区域",field:"customerRegion",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_customer_region"},colProps:{span:6}},{label:"状态",field:"status",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_customer_status"},colProps:{span:6}}],G=[{label:"",field:"id",component:"Input",show:!1},{label:"客户编码",field:"customerCode",required:!0,component:"Input",componentProps:{placeholder:"同租户内唯一,不可与已有客户重复"},dynamicRules:({model:o})=>[{required:!0,message:"请输入客户编码"},{validator:(r,t)=>g(null,null,function*(){var n,m;const d=t==null?"":String(t).trim();if(!d)return Promise.resolve();try{return yield X({customerCode:d,dataId:o==null?void 0:o.id}),Promise.resolve()}catch(i){const u=((m=(n=i==null?void 0:i.response)==null?void 0:n.data)==null?void 0:m.message)||(i==null?void 0:i.message)||"该客户编码已存在";return Promise.reject(u)}}),trigger:"blur"}]},{label:"客户名称",field:"customerName",required:!0,component:"Input",componentProps:{placeholder:"请输入客户名称"}},{label:"客户简称",field:"customerShortName",component:"Input",componentProps:{placeholder:"请输入客户简称"}},{label:"客户区域",field:"customerRegion",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_customer_region",placeholder:"请选择客户区域"}},{label:"ERP编码",field:"erpCode",component:"Input",componentProps:{placeholder:"请输入ERP编码"}},{label:"状态",field:"status",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_customer_status",placeholder:"请选择状态"}},{label:"客户描述",field:"customerDesc",component:"InputTextArea",componentProps:{rows:3,placeholder:"请输入客户描述"}},{label:"租户ID",field:"tenantId",component:"InputNumber",componentProps:{placeholder:"租户ID,可空"}}],ne={customerCode:{title:"客户编码",order:0,view:"text"},customerName:{title:"客户名称",order:1,view:"text"},customerShortName:{title:"客户简称",order:2,vi
|