"use strict";(self.webpackChunkboluo_admin=self.webpackChunkboluo_admin||[]).push([[544],{71478:function(k,S,e){e.r(S),e.d(S,{default:function(){return Q}});var g=e(90228),y=e.n(g),N=e(87999),Z=e.n(N),D=e(48305),F=e.n(D),$=e(93218),M=e(19191),L=e(90103),W=e(49973),U=e(36161),Y=e(11267),i=e(75271),B=e(17146),u=e(52676),G=["fieldProps","proFieldProps"],w=function(s,c){var p=s.fieldProps,v=s.proFieldProps,h=(0,Y.Z)(s,G);return(0,u.jsx)(B.Z,(0,U.Z)({ref:c,valueType:"textarea",fieldProps:p,proFieldProps:v},h))},z=i.forwardRef(w),q=e(67929),f=e(4481),J=e(16483),x=e.n(J),C=e(11039),m=e(55603),_=function(n){return n.Free="free",n.VX="vx",n.AliPay="alipay",n.Other="other",n}({}),O=function(n){return n[n.Direct=0]="Direct",n[n.CS=1]="CS",n}({}),P=e(29078),b=[{label:"\u5F85\u5904\u7406",value:0},{label:"\u5DF2\u5904\u7406",value:1}],j=[{label:"\u76F4\u63A5\u8054\u7CFB",value:O.Direct},{label:"\u5BA2\u670D\u8054\u7CFB",value:O.CS}],T=[{label:"\u672A\u52A0",value:0},{label:"\u5DF2\u52A0",value:1}],K=function(){var s=(0,i.useState)(!1),c=F()(s,2),p=c[0],v=c[1],h=(0,i.useState)(),R=F()(h,2),V=R[0],X=R[1],A=(0,i.useRef)(),E=(0,i.useRef)(),H=[{title:"\u4E3B\u64AD\u6635\u79F0",dataIndex:"nickName",valueType:"textarea"},{title:"\u4E3B\u64ADID",dataIndex:"userId",valueType:"textarea",copyable:!0},{title:"\u4E3B\u64AD\u624B\u673A\u53F7",dataIndex:"userPhone",valueType:"textarea",copyable:!0},{title:"\u901A\u544A\u6807\u9898",dataIndex:"title",valueType:"textarea"},{title:"\u901A\u544AID",dataIndex:"jobId",valueType:"textarea",copyable:!0},{title:"\u89E3\u9501\u65F6\u95F4",dataIndex:"useDate",valueType:"dateTime",renderText:function(t){return x()(Number(t)).format(m.T)},search:!1},{title:"\u804C\u4F4D\u53D1\u5E03\u4EBA\u6635\u79F0",dataIndex:"publisher",valueType:"textarea",search:!1,copyable:!0},{title:"\u804C\u4F4D\u53D1\u5E03\u4EBAID",dataIndex:"blPublisherId",valueType:"textarea",copyable:!0},{title:"\u804C\u4F4D\u53D1\u5E03\u4EBA\u5FAE\u4FE1",dataIndex:"publisherAcctNo",valueType:"textarea",copyable:!0},{title:"\u62A5\u5355\u7C7B\u578B",dataIndex:"type",valueType:"textarea",renderText:function(t){var r;return(r=j.find(function(a){return a.value===t}))===null||r===void 0?void 0:r.label},renderFormItem:function(){return(0,u.jsx)(f.Z,{allowClear:!0,options:j})}},{title:"\u62A5\u5355\u65F6\u95F4",dataIndex:"declarationDate",valueType:"dateTime",renderText:function(t){return x()(Number(t)).format(m.T)},search:!1},{title:"\u62A5\u5355\u5904\u7406\u72B6\u6001",dataIndex:"declaredStatus",valueType:"textarea",renderText:function(t){var r,a=Number(t);return(r=b.find(function(o){return o.value===a}))===null||r===void 0?void 0:r.label},renderFormItem:function(){return(0,u.jsx)(f.Z,{showSearch:!0,allowClear:!0,options:b})}},{title:"\u62A5\u5355\u5904\u7406\u65F6\u95F4",dataIndex:"declaredDate",valueType:"dateTime",renderText:function(t){return x()(Number(t)).format(m.T)},search:!1},{title:"\u662F\u5426\u52A0\u4F01\u5FAE",dataIndex:"weComStatus",valueType:"textarea",renderText:function(t){var r;return(r=T.find(function(a){return a.value===t}))===null||r===void 0?void 0:r.label},renderFormItem:function(){return(0,u.jsx)(f.Z,{showSearch:!0,allowClear:!0,options:T})}},{title:"\u901A\u544A\u6240\u5C5E\u57CE\u5E02",dataIndex:"jobCityCode",valueType:"textarea",renderText:function(t){return C.JO.get(t)},renderFormItem:function(){return(0,u.jsx)(f.Z,{showSearch:!0,allowClear:!0,options:C.ZD,filterOption:function(r,a){var o;return((o=a==null?void 0:a.label)!==null&&o!==void 0?o:"").toLowerCase().includes(r.toLowerCase())}})}},{title:"\u62A5\u5355\u5907\u6CE8\u4FE1\u606F",dataIndex:"declaredMark",valueType:"textarea",search:!1},{title:"\u64CD\u4F5C",valueType:"option",fixed:"right",width:100,align:"center",render:function(t,r){return(0,u.jsx)("a",{onClick:function(){v(!0),X(r)},children:"\u4FEE\u6539"},"config")}}];return(0,u.jsxs)($._z,{children:[(0,u.jsx)(M.Z,{headerTitle:"\u67E5\u8BE2\u8868\u683C",actionRef:A,rowKey:"key",search:{labelWidth:120,collapsed:!1,collapseRender:!1},request:P.Dn,columns:H,scroll:{x:"max-content"}}),(0,u.jsxs)(L.Y,{title:"\u66F4\u65B0\u62A5\u5355\u4FE1\u606F",width:"400px",formRef:E,open:p,onOpenChange:v,onFinish:function(){var l=Z()(y()().mark(function t(r){var a,o,I;return y()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return a={id:V.id,weComStatus:r.weComStatus},console.log("update confirm",r,a),d.prev=2,d.next=5,(0,P.$Q)(a);case 5:(o=A.current)===null||o===void 0||o.reload(),(I=E.current)===null||I===void 0||I.resetFields(),d.next=11;break;case 9:d.prev=9,d.t0=d.catch(2);case 11:v(!1);case 12:case"end":return d.stop()}},t,null,[[2,9]])}));return function(t){return l.apply(this,arguments)}}(),children:[(0,u.jsx)(W.Z,{name:"weComStatus",label:"\u662F\u5426\u52A0\u4F01\u5FAE",options:T,rules:[{required:!0,message:"\u5FC5\u586B\u9879"}]}),(0,u.jsx)(z,{name:"declaredMark",label:"\u62A5\u5355\u5907\u6CE8",placeholder:"\u8F93\u5165\u5907\u6CE8\u4FE1\u606F"})]})]})},Q=K}}]);
