text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[46],{"5HWH":function(e,t,a){"use strict";a.r(t);a("g9YV");var r,n,i,l,o=a("wCAj"),s=a("jehZ"),c=a.n(s),p=(a("BoS7"),a("Sdc0")),u=(a("Pwec"),a("CtXQ")),m=(a("O3gP"),a("lrIw")),d=(a("14J3"),a("BMrR")),g=(a("jCWc"),a("kPKH")),f=a("p0pE"),h=a.n(f),v=a("gWZ8"),y=a.n(v),k=(a("miYZ"),a("tsqr")),E=a("2Taf"),b=a.n(E),C=a("vZ4D"),w=a.n(C),F=a("rlhR"),M=a.n(F),S=a("l4Ni"),V=a.n(S),I=a("ujKo"),L=a.n(I),D=a("MhPg"),N=a.n(D),P=(a("IzEo"),a("bx4M")),A=(a("giR+"),a("fyUT")),R=(a("7Kak"),a("9yH6")),O=(a("/xke"),a("TeRw")),T=a("eHn4"),q=a.n(T),x=(a("5NDa"),a("5rEg")),Y=(a("+L6B"),a("2/Rp")),j=(a("2qtc"),a("kLXV")),J=(a("y8nQ"),a("Vl3Y")),B=(a("OaEy"),a("2fM7")),z=(a("iQDF"),a("+eQT")),H=a("q1tI"),Q=a.n(H),G=a("MuoO"),K=a("3a4m"),Z=a.n(K),W=a("wd/R"),X=a.n(W),U=a("Y2fQ"),$=a("zHco"),_=a("glGN"),ee=a.n(_),te=a("cBtN"),ae=a.n(te);function re(e){return function(){var t,a=L()(e);if(ne()){var r=L()(this).constructor;t=Reflect.construct(a,arguments,r)}else t=a.apply(this,arguments);return V()(this,t)}}function ne(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}var ie=z["a"].RangePicker,le=B["a"].Option,oe="YYYY/MM/DD",se=J["a"].create()(function(e){var t=e.form,a=e.modalAddListVisible,r=e.handleAddListVisible,n=e.handleFormAddList,i=e.total,l=e.firstreportno,o=e.onFocusApproverusers,s=e.invoiceTitlesOptions,c=e.approverusersOptions,p=e.getRepeatListNo,u=function(){t.validateFields(function(e,a){e||(n(a),t.resetFields(),r())})},m=function(e){void 0===e.signpictureoss&&null===e.signpictureoss&&j["a"].info({title:"\u6240\u9009\u62ac\u5934\u672a\u914d\u7f6e\u76d6\u7ae0\u56fe\u7247",content:"\u8bf7\u7ba1\u7406\u5458\u5728\u201c\u5b57\u5178\u7ba1\u7406-\u53d1\u7968\u4fe1\u606f\u201d\u83dc\u5355\u914d\u7f6e\uff0c\u4e0a\u4f20\u53d1\u7968\u76d6\u7ae0png\u56fe\u7247\uff01",okText:"\u77e5\u9053\u4e86",onOk:function(){}})};return Q.a.createElement(j["a"],{destroyOnClose:!0,title:"\u62df\u5236\u6e05\u5355",visible:a,style:{top:100},width:500,onCancel:function(){return r()},footer:[Q.a.createElement(Y["a"],{type:"primary",onClick:function(){return r()}},"\u5173\u95ed"),Q.a.createElement(Y["a"],{type:"primary",onClick:function(){return u()}},"\u786e\u8ba4\u62df\u5236")]},Q.a.createElement(J["a"],null,Q.a.createElement(J["a"].Item,{labelCol:{span:6},wrapperCol:{span:16},label:"\u603b\u91d1\u989d\uff1a"},t.getFieldDecorator("money",{initialValue:{total:i},rules:[{required:!0}]})(Q.a.createElement("label",null,i))),Q.a.createElement(J["a"].Item,{labelCol:{span:6},wrapperCol:{span:16},label:"\u6e05\u5355\u53f7\uff1a"},t.getFieldDecorator("listno",{initialValue:l,rules:[{required:!0,validator:p}]})(Q.a.createElement(x["a"],{placeholder:"\u8bf7\u8f93\u5165\u6e05\u5355\u53f7"}))),Q.a.createElement(J["a"].Item,{labelCol:{span:6},wrapperCol:{span:16},label:"\u5230\u8d26\u8d26\u6237\uff1a"},t.getFieldDecorator("invoiceTitle",{rules:[{required:!0,message:"\u9009\u62e9\u5230\u8d26\u8d26\u6237\uff01"}]})(Q.a.createElement(B["a"],{placeholder:"\u8bf7\u9009\u62e9\u5230\u8d26\u8d26\u6237",onSelect:m},s))),Q.a.createElement(J["a"].Item,{labelCol:{span:6},wrapperCol:{span:16},label:"\u5ba1\u6838\u4eba\uff1a"},t.getFieldDecorator("reviewer",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5ba1\u6838\u4eba"}]})(Q.a.createElement(B["a"],{placeholder:"\u8bf7\u9009\u62e9\u5ba1\u6838\u4eba",onFocus:o},c)))))}),ce=J["a"].create()(function(e){var t=e.form,a=e.modalPriceMakingVisible,r=e.handlePriceMakingVisible,n=e.reportPriceMaking,i=e.handlePriceMakingSubmit,l=e.dispatch,o=e.onChange,s=e.checkProjectRadio,c=e.value,p=function(){t.validateFields(function(e,a){e||(i(a,n),t.resetFields(),r())})},u=function(e){var a=t.getFieldValue("price"),r=e;if(void 0!==r&&""!==r&&""!==a&&void 0!==a){var n=a*r;n=n.toFixed(2),t.setFieldsValue(q()({},"total",n))}},m=function(e){var a=t.getFieldValue("quantity"),r=e;if(void 0!==a&&""!==a&&""!==r&&void 0!==r){var n=r*a;n=n.toFixed(2),t.setFieldsValue(q()({},"total",n))}},d=function(){var e=t.getFieldValue("price"),a=t.getFieldValue("quantity");if(void 0!==a&&""!==a&&""!==e&&void 0!==e){var r=e*a;r=r.toFixed(2),t.setFieldsValue(q()({},"total",r))}},g=function(e){if("\u5176\u4ed6"===e.target.value)t.setFieldsValue(q()({},"quantity",""));else if("\u7533\u62a5\u6570\u91cf"===e.target.value){var a=n.quantityd;"null"!==a?t.setFieldsValue(q()({},"quantity",a)):t.setFieldsValue(q()({},"quantity",""))}else{var r=n.reportno;l({type:"charge/getCheckResultInspway",payload:{reportno:r,inspway:e.target.value},callback:function(e){200===e.code?null!==e.data?t.setFieldsValue({quantity:e.data.weight}):t.setFieldsValue(q()({},"quantity","")):O["a"].open({message:"\u83b7\u53d6\u5931\u8d25",description:e.data})}})}};return Q.a.createElement(j["a"],{destroyOnClose:!0,title:"\u5b9a\u4ef7",visible:a,style:{top:60},width:800,onCancel:function(){return r()},footer:[Q.a.createElement(Y["a"],{type:"primary",onClick:function(){return r()}},"\u5173\u95ed"),Q.a.createElement(Y["a"],{type:"primary",onClick:function(){return p()}},"\u786e\u8ba4\u5b9a\u4ef7")]},Q.a.createElement(P["a"],null,Q.a.createElement("span",null," \u9009\u62e9\u5b9a\u4ef7\u65b9\u5f0f\uff1a "),Q.a.createElement(R["a"].Group,{onChange:o,value:c},Q.a.createElement(R["a"],{value:"\u6309\u5355\u4ef7"},"\u6309\u5355\u4ef7"),Q.a.createElement(R["a"],{value:"\u6309\u6279\u6b21"},"\u6309\u6279\u6b21")),"\u6309\u5355\u4ef7"===c?[Q.a.createElement(J["a"],null,Q.a.createElement(J["a"].Item,{label:"\u6570\u91cf\u9009\u62e9"},t.getFieldDecorator("choose",{initialValue:void 0===n.choose?void 0:n.choose,rules:"\u6309\u5355\u4ef7"===c?[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u91cf\u9009\u62e9"}]:[]})(Q.a.createElement(R["a"].Group,{onChange:g},s))),Q.a.createElement(J["a"].Item,{label:"\u5355\u4ef7"},t.getFieldDecorator("price",{initialValue:"\u6309\u5355\u4ef7"===n.priceway&&void 0!==n.price?n.price:void 0,rules:"\u6309\u5355\u4ef7"===c?[{required:!0,whitespace:!0,type:"number",transform:function(e){if(e)return Number(e)},message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u6570\u5b57"}]:[]})(Q.a.createElement(A["a"],{style:{width:"25%"},min:0,step:.01,onChange:m}))),Q.a.createElement(J["a"].Item,{label:"\u6570\u91cf"},t.getFieldDecorator("quantity",{initialValue:"\u6309\u5355\u4ef7"===n.priceway&&void 0!==n.quantity?n.quantity:void 0,rules:"\u6309\u5355\u4ef7"===c?[{required:!0,whitespace:!0,type:"number",transform:function(e){if(e)return Number(e)},message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u6570\u5b57"}]:[]})(Q.a.createElement(A["a"],{style:{width:"25%"},min:0,step:.01,onChange:u}))),Q.a.createElement(J["a"].Item,{label:"\u603b\u4ef7"},t.getFieldDecorator("total",{initialValue:"\u6309\u5355\u4ef7"===n.priceway&&void 0!==n.total?n.total:void 0,rules:"\u6309\u5355\u4ef7"===c?[{required:!0,whitespace:!0,type:"number",transform:function(e){if(e)return Number(e)},message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u6570\u5b57"}]:[]})(Q.a.createElement(A["a"],{style:{width:"25%"},min:0,step:.01,onBlur:d}))))]:[],"\u6309\u6279\u6b21"===c?[Q.a.createElement(J["a"],null,Q.a.createElement(J["a"].Item,{label:"\u68c0\u9a8c\u8d39"},t.getFieldDecorator("total",{initialValue:"\u6309\u6279\u6b21"===n.priceway&&void 0!==n.total?n.total:void 0,rules:"\u6309\u6279\u6b21"===c?[{required:!0,whitespace:!0,type:"number",transform:function(e){if(e)return Number(e)},message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u6570\u5b57"}]:[]})(Q.a.createElement(A["a"],{style:{width:"25%"},min:0,step:.01}))))]:[]))}),pe=0,ue=(r=J["a"].create(),n=Object(G["connect"])(function(e){var t=e.charge,a=e.loading;return{charge:t,loading:a.models.charge}}),r(i=n((l=function(e){N()(a,e);var t=re(a);function a(){var e;b()(this,a);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=t.call.apply(t,[this].concat(n)),e.state={priceMaking:[],modalAddListVisible:!1,modalPriceMakingVisible:!1,payer:void 0,total:0,invoiceTitles:[],approverusers:[],isViewonApproverusers:!1,applicantName:[],reportPriceMaking:{},checkProject:[],value:"\u6309\u5355\u4ef7",priceMakingData:[],firstreportno:void 0},e.columns=[{title:"\u59d4\u6258\u7f16\u53f7",dataIndex:"reportno"},{title:"\u59d4\u6258\u65e5\u671f",dataIndex:"reportdate",render:function(e){return Q.a.createElement("span",null,X()(e).format("YYYY-MM-DD"))}},{title:"\u8239\u540d\u6807\u8bc6",dataIndex:"shipname"},{title:"\u68c0\u67e5\u54c1\u540d",dataIndex:"cargoname"},{title:"\u4ed8\u6b3e\u4eba",dataIndex:"payer"},{title:"\u4ef7\u683c",dataIndex:"total"},{title:"\u72b6\u6001",dataIndex:"status"},{title:"\u64cd\u4f5c",render:function(t,a){return Q.a.createElement(H["Fragment"],null,Q.a.createElement("a",{onClick:function(){return e.mobileItem(t,a)}},"\u5b9a\u4ef7\xa0\xa0"),Q.a.createElement("a",{onClick:function(){return e.makeListItem(t,a)}},"\u62df\u5236\xa0\xa0"),Q.a.createElement("a",{onClick:function(){return e.removeExistItem(t,a)}},"\u5254\u9664\xa0\xa0"),Q.a.createElement("a",{onClick:function(){return e.previewItem(t,a)}},"\u59d4\u6258\u8be6\u60c5"))}}],e.init=function(){var t=e.props.dispatch,a=JSON.parse(localStorage.getItem("userinfo"));t({type:"charge/getReportsFetch",payload:{certCode:a.certCode},callback:function(t){t?e.state.priceMaking=t:k["a"].success("\u52a0\u8f7d\u5931\u8d25")}})},e.handleFormReset=function(){var t=e.props.form;t.resetFields(),e.init(),e.flag=0},e.previewItem=function(e){sessionStorage.setItem("reportno",e.reportno),window.open("/Entrustment/DetailForEntrustment"),localStorage.setItem("reportDetailNo",e.reportno)},e.removeExistItem=function(t){e.state.exist=e.listRemoveItem(e.state.priceMaking,t.reportno);var a=y()(e.state.priceMaking);e.setState({priceMaking:a.filter(function(e){return e.reportno!==t.reportno})})},e.listRemoveItem=function(e,t){var a=e.length;while(a--)a in e&&e[a]===t&&e.splice(a,1);return e},e.makeListItem=function(t){if(void 0!==t.status&&"\u672a\u5b9a\u4ef7"!==t.status)if("\u5df2\u5b9a\u4ef7\u672a\u62df\u5236"===t.status){var a=e.props.dispatch,r=JSON.parse(localStorage.getItem("userinfo")),n={certCode:r.certCode};a({type:"charge/getInvoiceTitleList",payload:n,callback:function(n){if(console.log(n),void 0!==n&&void 0!==n.length&&n.length>0){e.setState({invoiceTitles:n});var i=[];i.push(t);var l=e.toDecimal(t.total);console.log(l),e.setState({total:l}),e.setState({priceMakingData:i}),e.setState({payer:t.payer}),e.setState({firstreportno:t.reportno}),a({type:"user/getMan",payload:{certcode:r.certCode,func:"\u6e05\u5355\u5ba1\u6838"},callback:function(t){t?(e.setState({approverusers:t}),e.handleAddListVisible(!0)):k["a"].error("\u672a\u914d\u7f6e\u5ba1\u6838\u4eba\u7528\u6237\u89d2\u8272")}})}else k["a"].success("\u8bf7\u914d\u7f6e\u5230\u8d26\u8d26\u6237")}})}else k["a"].error("\u72b6\u6001\u5df2\u62df\u5236\uff0c\u5982\u9700\u91cd\u65b0\u62df\u5236\uff0c\u8bf7\u5220\u9664\u6e05\u5355\u540e\u64cd\u4f5c\uff01");else k["a"].error("\u72b6\u6001\u672a\u5b9a\u4ef7\uff0c\u8bf7\u5b9a\u4ef7\u540e\u91cd\u8bd5\uff01")},e.toDecimal=function(e){var t=parseFloat(e);return isNaN(t)?e:(t=Math.round(100*e)/100,t)},e.handleSubmit=function(){var t=e.props.form,a=t.getFieldValue("payer");if(void 0!==a&&null!==a&&""!==a){var r=e.props.dispatch,n=JSON.parse(localStorage.getItem("userinfo")),i={certCode:n.certCode};r({type:"charge/getInvoiceTitleList",payload:i,callback:function(t){if(void 0!==t&&void 0!==t.length&&t.length>0){e.setState({invoiceTitles:t});for(var a=M()(e),i=a.state,l=0,o=0,s=i.priceMaking.length;o<s;o++){if("\u672a\u5b9a\u4ef7"===i.priceMaking[o].status)return void j["a"].error({okText:"\u786e\u5b9a",title:"\u6e05\u5355\u8bb0\u5f55\u4e0d\u662f\u5168\u90e8\u2018\u5df2\u5b9a\u4ef7\u672a\u62df\u5236\u2019\u72b6\u6001\uff01",content:"\u8bf7\u9009\u62e9\u201c\u5df2\u5b9a\u4ef7\u672a\u62df\u5236\u201d\u72b6\u6001\uff0c\u6216\u8fdb\u884c\u5b9a\u4ef7\uff01\u3002"});void 0!==i.priceMaking[o].payer&&(i.payer=i.priceMaking[o].payer),l+=parseFloat(i.priceMaking[o].total)}e.state.firstreportno=void 0!==i.priceMaking&&i.priceMaking.length>0?i.priceMaking[0].reportno:void 0,e.state.total=e.toDecimal(l),e.state.priceMakingData=i.priceMaking,r({type:"user/getMan",payload:{certcode:n.certCode,func:"\u6e05\u5355\u5ba1\u6838"},callback:function(t){t?(e.setState({approverusers:t}),e.handleAddListVisible(!0)):k["a"].error("\u672a\u914d\u7f6e\u5ba1\u6838\u4eba\u7528\u6237\u89d2\u8272")}})}else k["a"].success("\u8bf7\u914d\u7f6e\u5230\u8d26\u8d26\u6237")}})}else k["a"].error("\u4ed8\u6b3e\u4eba\u4e0d\u80fd\u4e3a\u7a7a\uff0c\u8bf7\u8f93\u5165\u4ed8\u6b3e\u4eba\u67e5\u8be2\u540e\u62df\u5236\uff01")},e.handleFormAddList=function(t){var a=e.props.dispatch,r=JSON.parse(localStorage.getItem("userinfo")),n={certcode:r.certCode,reviewer:t.reviewer,listman:r.nameC,priceMakings:e.state.priceMakingData,listno:t.listno,payer:e.state.payer,invoiceTitle:t.invoiceTitle};a({type:"charge/addListFetch",payload:n,callback:function(t){t?function(){k["a"].success("\u6536\u8d39\u6e05\u5355\u6dfb\u52a0\u6210\u529f"),sessionStorage.setItem("reportnoForList",JSON.stringify(t)),window.open("/Charge/DetailList");for(var a=e.state,r=a.priceMakingData,n=a.priceMaking,i=function(e){n.find(function(t){return t.reportno===r[e].reportno}).status="\u5df2\u62df\u5236\u672a\u5f00\u5177"},l=0;l<r.length;l++)i(l);e.setState({priceMaking:n})}():k["a"].error("\u6536\u8d39\u6e05\u5355\u6dfb\u52a0\u5931\u8d25")}})},e.onFocusApproverusers=function(){null!=e.state.approverusers&&0!==e.state.approverusers.length||!1!==e.state.isViewonApproverusers||(j["a"].info({title:"\u672a\u914d\u7f6e\u6e05\u5355\u5ba1\u6838\u7528\u6237\u89d2\u8272",content:"\u8bf7\u7ba1\u7406\u5458\u5728\u201c\u516c\u53f8\u7ba1\u7406-\u7528\u6237\u7ba1\u7406\u201d\u7ed9\u7528\u6237\u4fee\u6539\uff0c\u52a0\u9009\u7528\u6237\u89d2\u8272\uff01\u4e1a\u52a1\u7ecf\u7406\uff0c\u4e1a\u52a1\u526f\u603b\uff0c\u603b\u7ecf\u7406\u89d2\u8272\uff0c\u90fd\u53ef\u6e05\u5355\u5ba1\u6838\u3002",okText:"\u77e5\u9053\u4e86",onOk:function(){}}),e.setState({isViewonApproverusers:!0}))},e.back=function(){Z.a.push({pathname:"/Charge/ListFiction"})},e.handleSearch=function(){var t=e.props,a=t.dispatch,r=t.form,n=M()(e);n.state;r.validateFields(function(t,n){if(!t){var i=JSON.parse(localStorage.getItem("userinfo")),l=[],o=[],s=[];void 0!==n.payer&&""!==n.payer&&(l.push("payer"),o.push(n.payer),s.push("=")),void 0!==n.reportdate&&0!==n.reportdate.length&&(l.push("reportdate"),o.push(n.reportdate[0].format("YYYY-MM-DD")),s.push(">="),l.push("reportdate"),o.push(n.reportdate[1].format("YYYY-MM-DD")),s.push("<="));var c=r.getFieldValue("keys");for(var p in c){var u=c[p],m=r.getFieldValue("kinds".concat(u)),d=r.getFieldValue("conditions".concat(u)),g=r.getFieldValue("values".concat(u)),f=r.getFieldValue("check".concat(u));!0===f&&void 0!==m&&void 0!==g&&void 0!==d&&(l.push(m),o.push(g),s.push(d))}var h={kinds:l,values:o,conditions:s,status:n.status,certCode:i.certCode};a({type:"charge/getReportsFetch",payload:h,callback:function(t){t?(e.state.priceMaking=t,k["a"].success("\u67e5\u8be2\u6210\u529f")):k["a"].error("\u67e5\u8be2\u5931\u8d25")}})}})},e.getRepeatListNo=function(t,a,r){void 0!==a&&null!==a&&""!==a||r(Object(U["formatMessage"])({id:"validation.listno.noexist"}));var n=e.props.dispatch,i=new FormData,l=JSON.parse(localStorage.getItem("userinfo"));i.append("certcode",l.certCode),i.append("listno",a),n({type:"charge/getRepeatListNo",payload:i,callback:function(e){"repeat"===e?r(Object(U["formatMessage"])({id:"validation.listno.repeat"})):"success"===e?r():r(Object(U["formatMessage"])({id:"validation.listno.error"}))}})},e.handleApplicantSearch=function(t){var a=e.props.dispatch;a({type:"charge/getBusiness",payload:{name:t},callback:function(t){e.setState({applicantName:t})}})},e.remove=function(t){var a=e.props.form,r=a.getFieldValue("keys");e.props.form.validateFields(function(e,t){}),a.setFieldsValue({keys:r.filter(function(e){return e!==t})})},e.add=function(){var t=e.props.form,a=t.getFieldValue("keys"),r=a.concat(pe++);t.setFieldsValue({keys:r})},e.flag=0,e.handleAdvanceSearch=function(){if(0===e.flag){var t=4;while(t>0)e.add(),t--;e.flag=1}},e.mobileItem=function(t){e.state.reportPriceMaking=t,console.log(e.state.reportPriceMaking);var a=[];void 0!==t.inspway&&null!==t.inspway&&(a=t.inspway.split(" ")),a.push("\u7533\u62a5\u6570\u91cf"),a.push("\u5176\u4ed6"),e.setState({checkProject:a}),void 0!==t.priceway&&e.setState({value:t.priceway}),e.setState({modalPriceMakingVisible:!0})},e.handleAddListVisible=function(t){e.setState({modalAddListVisible:!!t})},e.handlePriceMakingVisible=function(t){e.setState({modalPriceMakingVisible:!!t})},e.onChange=function(t){e.setState({value:t.target.value})},e.handlePriceMakingSubmit=function(t,a){var r=e.props.dispatch,n=JSON.parse(localStorage.getItem("userinfo")),i=e.state.value;r({type:"charge/updatePriceMaking",payload:h()({},t,{reportno:a.reportno,priceman:n.nameC,priceway:i}),callback:function(t){if(200===t.code){O["a"].open({message:"\u5b9a\u4ef7\u6210\u529f"});var a=t.data;if(void 0!==e.state.priceMaking&&e.state.priceMaking.length>0)for(var r=0;r<e.state.priceMaking.length;r++)if(e.state.priceMaking[r].reportno===a.reportno){e.state.priceMaking[r]=a;break}}else O["a"].open({message:"\u6dfb\u52a0\u5931\u8d25",description:t.data})}})},e}return w()(a,[{key:"componentDidMount",value:function(){this.init()}},{key:"renderSimpleForm",value:function(){var e=this.props.form.getFieldDecorator,t=this.state.applicantName,a=t.map(function(e){return Q.a.createElement(le,{key:e,value:e},e)});return Q.a.createElement(J["a"],{onSubmit:this.handleSearch,layout:"inline"},Q.a.createElement(d["a"],{gutter:{md:6,lg:18,xl:5}},Q.a.createElement(g["a"],{md:12,sm:20},Q.a.createElement("span",{className:ee.a.submitButtons},Q.a.createElement(Y["a"],{type:"primary",style:{marginLeft:0},onClick:this.handleFormReset},"\u91cd\u7f6e"),Q.a.createElement(Y["a"],{type:"primary",style:{marginLeft:8},onClick:this.handleAdvanceSearch},"\u9ad8\u7ea7\u68c0\u7d22"),Q.a.createElement(Y["a"],{type:"primary",style:{marginLeft:8},onClick:this.handleSearch},"\u67e5\u8be2"),Q.a.createElement(Y["a"],{type:"primary",style:{marginLeft:8},onClick:this.handleSubmit},"\u62df\u5236"),Q.a.createElement(Y["a"],{type:"primary",style:{marginLeft:8},onClick:this.back},"\u8fd4\u56de")))),Q.a.createElement(d["a"],{gutter:{md:6,lg:18,xl:5}},Q.a.createElement(g["a"],{md:8,sm:20},Q.a.createElement(J["a"].Item,{label:"\u4ed8\u6b3e\u4eba",labelCol:{span:5},wrapperCol:{span:6}},e("payer",{rules:[{message:"\u8bf7\u8f93\u5165\u5168\u79f0"}]})(Q.a.createElement(m["a"],{className:"global-search",dataSource:a,onSearch:this.handleApplicantSearch,placeholder:"\u8bf7\u8f93\u5165\u5168\u79f0"},Q.a.createElement(x["a"],null))))),Q.a.createElement(g["a"],{md:8,sm:20},Q.a.createElement(J["a"].Item,{label:"\u59d4\u6258\u65e5\u671f\uff1a",labelCol:{span:5},wrapperCol:{span:6},colon:!1},e("reportdate",{})(Q.a.createElement(ie,{format:oe})))),Q.a.createElement(g["a"],{md:7,sm:20},Q.a.createElement(J["a"].Item,{label:"\u6536\u8d39\u72b6\u6001\uff1a",labelCol:{span:5},wrapperCol:{span:6}},e("status",{rules:[{message:"\u8bf7\u8f93\u5165"}],initialValue:"\u5168\u90e8"})(Q.a.createElement(R["a"].Group,{buttonStyle:"solid"},Q.a.createElement(R["a"].Button,{value:"\u5168\u90e8"},"\u5168\u90e8"),Q.a.createElement(R["a"].Button,{value:"\u672a\u5b9a\u4ef7"},"\u672a\u5b9a\u4ef7"),Q.a.createElement(R["a"].Button,{value:"\u5df2\u5b9a\u4ef7\u672a\u62df\u5236"},"\u5df2\u5b9a\u4ef7\u672a\u62df\u5236"))))),Q.a.createElement(g["a"],{md:1,sm:20},"  ",Q.a.createElement(u["a"],{type:"plus-circle",style:{fontSize:24,marginTop:4},theme:"twoTone",twoToneColor:"#00ff00",onClick:this.add}))))}},{key:"render",value:function(){var e=this,t=this.props,a=t.loading,r=t.dispatch,n=this.state,i=n.priceMaking,l=n.modalAddListVisible,s=n.total,m=n.payer,f=n.invoiceTitles,h=n.firstreportno,v=n.approverusers,y=n.modalPriceMakingVisible,k=n.reportPriceMaking,E=n.checkProject,b=n.value,C={handleAddListVisible:this.handleAddListVisible,handleFormAddList:this.handleFormAddList,getRepeatListNo:this.getRepeatListNo,onFocusApproverusers:this.onFocusApproverusers,handlePriceMakingVisible:this.handlePriceMakingVisible,sum:this.sum,onChange:this.onChange,user:this.handlePriceMakingSubmit},w=f.map(function(e){return Q.a.createElement(le,{key:e.namec,value:e.namec},e.namec)}),F=v.map(function(e){return Q.a.createElement(le,{key:e.userName,value:e.userName},e.nameC)}),M=E.map(function(e){return Q.a.createElement(R["a"],{key:e,value:e},e)}),S=this.props.form,V=S.getFieldDecorator,I=S.getFieldValue;V("keys",{initialValue:[]});var L=I("keys"),D=L.map(function(t,a){return Q.a.createElement("div",null,a%2===0&&0!==L.length?Q.a.createElement(d["a"],{className:ae.a.rowClass}):null,Q.a.createElement(g["a"],{md:1,sm:20},Q.a.createElement(J["a"].Item,{labelCol:{span:5},wrapperCol:{span:6},colon:!1},V("check".concat(t),{initialValue:!0,valuePropName:"checked"})(Q.a.createElement(p["a"],{checkedChildren:"\u5f00",unCheckedChildren:"\u5173"})))),Q.a.createElement(g["a"],{md:3,sm:20},Q.a.createElement(J["a"].Item,{style:{marginRight:8},labelCol:{span:5},wrapperCol:{span:6}},V("kinds".concat(t),{rules:[{message:"\u9009\u62e9\u5b57\u6bb5"}]})(Q.a.createElement(B["a"],{placeholder:"\u9009\u62e9\u5b57\u6bb5"},Q.a.createElement(le,{value:"reportno"}," \u59d4\u6258\u7f16\u53f7"),Q.a.createElement(le,{value:"reportno20"}," \u81ea\u7f16\u53f7"),Q.a.createElement(le,{value:"shipname"},"\u8239\u540d\u6807\u8bc6"),Q.a.createElement(le,{value:"applicant"},"\u7533\u8bf7\u4eba"),Q.a.createElement(le,{value:"agent"},"\u4ee3\u7406\u4eba"),Q.a.createElement(le,{value:"cargoname"},"\u68c0\u67e5\u54c1\u540d"),Q.a.createElement(le,{value:"businesssort"},"\u4e1a\u52a1\u5206\u7c7b"),Q.a.createElement(le,{value:"businesssource"},"\u4e1a\u52a1\u6765\u6e90"),Q.a.createElement(le,{value:"tradeway"},"\u8d38\u6613\u65b9\u5f0f"),Q.a.createElement(le,{value:"cargosort"},"\u8d27\u7269\u79cd\u7c7b"),Q.a.createElement(le,{value:"inspway"},"\u68c0\u67e5\u9879\u76ee"),Q.a.createElement(le,{value:"section"},"\u6267\u884c\u90e8\u95e8"))))),Q.a.createElement(g["a"],{md:3,sm:20},Q.a.createElement(J["a"].Item,{style:{marginRight:8},labelCol:{span:5},wrapperCol:{span:6}},V("conditions".concat(t),{rules:[{message:"\u9009\u62e9\u6761\u4ef6"}]})(Q.a.createElement(B["a"],{placeholder:"\u9009\u62e9\u6761\u4ef6"},Q.a.createElement(le,{value:"="},"\u7b49\u4e8e"),Q.a.createElement(le,{value:"!="},"\u4e0d\u7b49\u4e8e"),Q.a.createElement(le,{value:"like"},"\u5305\u542b"),Q.a.createElement(le,{value:"not like"},"\u4e0d\u5305\u542b"))))),Q.a.createElement(g["a"],{md:4,sm:10},Q.a.createElement(J["a"].Item,null,V("values".concat(t),{rules:[{message:"\u9009\u62e9\u6570\u503c"}]})(Q.a.createElement(x["a"],{placeholder:"\u8bf7\u8f93\u5165"})))),Q.a.createElement(g["a"],{md:1,sm:5},L.length>=1?Q.a.createElement(u["a"],{style:{fontSize:24,marginLeft:8},type:"minus-circle",theme:"twoTone",twoToneColor:"#ff0000",onClick:function(){return e.remove(t)}}):null))});return Q.a.createElement($["a"],{title:"\u6e05\u5355\u62df\u5236"},Q.a.createElement(P["a"],{bordered:!1,size:"small"},Q.a.createElement("div",{className:ee.a.tableList},Q.a.createElement(J["a"],{onSubmit:this.handleSubmit},Q.a.createElement("div",{className:ee.a.tableListForm},this.renderSimpleForm()),Q.a.createElement(d["a"],{className:ee.a.tableListForm},D),Q.a.createElement(se,c()({},C,{firstreportno:h,modalAddListVisible:l,priceMaking:i,total:s,payer:m,invoiceTitlesOptions:w,approverusersOptions:F})),Q.a.createElement(ce,c()({},C,{firstreportno:h,modalPriceMakingVisible:y,dispatch:r,reportPriceMaking:k,checkProjectRadio:M,value:b}))),Q.a.createElement(o["a"],{style:{marginTop:5},loading:a,dataSource:i,columns:this.columns,rowKey:"reportno",pagination:{showQuickJumper:!0,showSizeChanger:!0}}))))}}]),a}(H["PureComponent"]),i=l))||i)||i);t["default"]=ue}}]);