billing.jsx 132 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import {
  4. Form,
  5. Radio,
  6. Icon,
  7. Button,
  8. Input,
  9. Spin,
  10. Table,
  11. message,
  12. DatePicker,
  13. Modal,
  14. Upload,
  15. Popconfirm,
  16. Cascader,
  17. Tabs,
  18. Select,
  19. Tooltip,
  20. Row,
  21. Col,
  22. Tag,
  23. } from "antd";
  24. import NewService from "./addService.jsx";
  25. import moment from "moment";
  26. import "../userMangagement.less";
  27. import { areaSelect } from "@/NewDicProvinceList";
  28. import {
  29. getApprovedState,
  30. getprovince,
  31. getProcessStatus,
  32. getLiquidationStatus,
  33. getNewOrderStatus,
  34. beforeUploadFile,
  35. getProvinceA,
  36. getInvoiceStatus,
  37. splitUrl,
  38. ShowModal,
  39. getProjectStatus,
  40. getProjectName,
  41. getApprovalTag,
  42. getApprovedType,
  43. } from "../../../tools.js";
  44. import { salesList, processStatus, approvalOptions } from "@/dataDic.js";
  45. import ShowModalDiv from "@/showModal.jsx";
  46. import { ChooseList } from "../orderNew/chooseList";
  47. import ReactToPrint from "react-to-print";
  48. import Project from "../../../../component/project";
  49. import ImgList from "../../../common/imgList";
  50. import OrderItemStatus from "../../../common/orderItemStatus";
  51. import LogPopup from "../../../common/logPopup";
  52. import Cascaders from "../../../common/cascaders";
  53. const { Option } = Select;
  54. const { TabPane } = Tabs;
  55. const PicturesWall = React.createClass({
  56. getInitialState() {
  57. return {
  58. previewVisible: false,
  59. previewImage: "",
  60. fileList: this.props.pictureUrl,
  61. };
  62. },
  63. getDefaultProps() {
  64. return {
  65. changeClick: this.modifyChange,
  66. };
  67. },
  68. handleCancel() {
  69. this.setState({ previewVisible: false });
  70. },
  71. handlePreview(file) {
  72. this.setState({
  73. previewImage: file.url || file.thumbUrl,
  74. previewVisible: true,
  75. });
  76. },
  77. handleChange(info) {
  78. let fileList = info.fileList;
  79. this.setState({ fileList });
  80. this.props.fileList(fileList);
  81. },
  82. componentWillReceiveProps(nextProps) {
  83. this.state.fileList = nextProps.pictureUrl;
  84. },
  85. render() {
  86. const { previewVisible, previewImage, fileList } = this.state;
  87. const uploadButton = (
  88. <div>
  89. <Icon type="plus" />
  90. <div className="ant-upload-text">点击上传</div>
  91. </div>
  92. );
  93. return (
  94. <div style={{ display: "inline-block" }}>
  95. <ImgList
  96. domId={this.props.domId}
  97. uploadConfig={{
  98. action:
  99. globalConfig.context +
  100. "/api/admin/orderInvoice/uploadOrderInvoiceFile",
  101. data: { sign: "order_invoice_file" },
  102. multiple: true,
  103. listType: "picture-card",
  104. }}
  105. onChange={(infor) => {
  106. this.handleChange(infor);
  107. }}
  108. fileList={fileList}
  109. />
  110. </div>
  111. );
  112. },
  113. });
  114. const MyService = Form.create()(
  115. React.createClass({
  116. getInitialState() {
  117. return {
  118. approvaType: [],
  119. kaiData: {
  120. remarks: "",
  121. type: undefined,
  122. orgCodeUrl: "",
  123. invoiceType: undefined,
  124. unitName: "",
  125. taxNumber: "",
  126. amount: "",
  127. banks: "",
  128. content: "",
  129. unitAddress: "",
  130. invoiceRemarks: "",
  131. unitMobile: "",
  132. post: undefined,
  133. addressee: "",
  134. addresseeMobile: "",
  135. addresseeProvince: "",
  136. addresseeCity: "",
  137. addresseeArea: "",
  138. recipientAddress: "",
  139. ordapproval: undefined,
  140. alreadyAmount: "0",
  141. ProvinceCity: [],
  142. },
  143. changeList: undefined,
  144. datauser: {},
  145. orgCodeUrl: [],
  146. selectedRowKeys: [],
  147. releaseDate: [],
  148. departmentArr: [],
  149. signBillState: false,
  150. signBillVisible: false,
  151. selectedRows: [],
  152. recordData: [],
  153. flag: false,
  154. searchMore: true,
  155. loading: false,
  156. alreadyAmount: 0,
  157. intentOrder: true,
  158. formalOrder: true,
  159. pagination: {
  160. defaultCurrent: 1,
  161. defaultPageSize: 10,
  162. showQuickJumper: true,
  163. pageSize: 10,
  164. onChange: function (page) {
  165. this.loadData(page);
  166. }.bind(this),
  167. showTotal: function (total) {
  168. return "共" + total + "条数据";
  169. },
  170. },
  171. cuiColumns: [
  172. {
  173. title: "序号",
  174. dataIndex: "key",
  175. key: "key",
  176. },
  177. {
  178. title: "合同编号",
  179. dataIndex: "contractNo",
  180. key: "contractNo",
  181. },
  182. {
  183. title: "订单编号",
  184. dataIndex: "orderNo",
  185. key: "orderNo",
  186. },
  187. {
  188. title: "客户名称",
  189. dataIndex: "userName",
  190. key: "userName",
  191. width: 150,
  192. render: (text) => {
  193. return (
  194. <Tooltip title={text}>
  195. <div>
  196. {text}
  197. </div>
  198. </Tooltip>
  199. );
  200. },
  201. },
  202. {
  203. title: "订单负责人",
  204. dataIndex: "salesmanName",
  205. key: "salesmanName",
  206. },
  207. {
  208. title: "订单部门",
  209. dataIndex: "depName",
  210. key: "depName",
  211. },
  212. {
  213. title: "订单状态",
  214. dataIndex: "orderStatus",
  215. key: "orderStatus",
  216. render: (text) => {
  217. return getNewOrderStatus(text);
  218. },
  219. },
  220. {
  221. title: "项目状态",
  222. dataIndex: "projectStatus",
  223. key: "projectStatus",
  224. render: (text) => {
  225. return getProjectName(text);
  226. },
  227. },
  228. {
  229. title: "签单金额",
  230. dataIndex: "totalAmount",
  231. key: "totalAmount",
  232. },
  233. {
  234. title: "结算状态",
  235. dataIndex: "liquidationStatus",
  236. key: "liquidationStatus",
  237. render: (text) => {
  238. return getLiquidationStatus(text);
  239. },
  240. },
  241. {
  242. title: "已收款",
  243. dataIndex: "settlementAmount",
  244. key: "settlementAmount",
  245. },
  246. {
  247. title: "应收款",
  248. dataIndex: "accountsReceivable",
  249. key: "accountsReceivable",
  250. },
  251. {
  252. title: "催收科目",
  253. dataIndex: "dunSubject",
  254. key: "dunSubject",
  255. },
  256. {
  257. title: "催款状态",
  258. dataIndex: "dunStatus",
  259. key: "dunStatus",
  260. },
  261. {
  262. title: "催收启动时间",
  263. dataIndex: "startDate",
  264. key: "startDate",
  265. },
  266. ],
  267. proColumns: [
  268. {
  269. title: "序号",
  270. dataIndex: "key",
  271. key: "key",
  272. },
  273. {
  274. title: "合同编号",
  275. dataIndex: "contractNo",
  276. key: "contractNo",
  277. },
  278. {
  279. title: "订单编号",
  280. dataIndex: "orderNo",
  281. key: "orderNo",
  282. },
  283. // {
  284. // title: "项目编号",
  285. // dataIndex: "id",
  286. // key: "id"
  287. // },
  288. {
  289. title: "客户名称",
  290. dataIndex: "userName",
  291. key: "userName",
  292. width: 150,
  293. render: (text) => {
  294. return (
  295. <Tooltip title={text}>
  296. <div
  297. // style={{
  298. // maxWidth: "150px",
  299. // overflow: "hidden",
  300. // textOverflow: "ellipsis",
  301. // whiteSpace: "nowrap",
  302. // }}
  303. >
  304. {text}
  305. </div>
  306. </Tooltip>
  307. );
  308. },
  309. },
  310. {
  311. title: "订单负责人",
  312. dataIndex: "salesmanName",
  313. key: "salesmanName",
  314. },
  315. {
  316. title: "是否主项目",
  317. dataIndex: "main",
  318. key: "main",
  319. render: (text) => {
  320. return text == 0 ? "否" : "是";
  321. },
  322. },
  323. {
  324. title: "项目类别",
  325. dataIndex: "cname",
  326. key: "cname",
  327. },
  328. {
  329. title: "项目名称",
  330. dataIndex: "commodityName",
  331. key: "commodityName",
  332. },
  333. {
  334. title: "项目数量",
  335. dataIndex: "commodityQuantity",
  336. key: "commodityQuantity",
  337. },
  338. {
  339. title: "服务市价",
  340. dataIndex: "commodityPrice",
  341. key: "commodityPrice",
  342. render: (text) => {
  343. return "****";
  344. },
  345. },
  346. {
  347. title: "证书编号",
  348. dataIndex: "certificateNumber",
  349. key: "certificateNumber",
  350. },
  351. {
  352. title: "项目状态",
  353. dataIndex: "projectStatus",
  354. key: "projectStatus",
  355. render: (text) => {
  356. return getProjectName(text);
  357. },
  358. },
  359. {
  360. title: "项目说明",
  361. dataIndex: "taskComment",
  362. key: "taskComment",
  363. },
  364. // {
  365. // title: "外包(内部)公司",
  366. // dataIndex: "outsourceName",
  367. // key: "outsourceName"
  368. // },
  369. // {
  370. // title: "外包(内部)价格",
  371. // dataIndex: "outsourcePrice",
  372. // key: "outsourcePrice",
  373. // render: text => {
  374. // return "****";
  375. // }
  376. // }
  377. ],
  378. columns: [
  379. {
  380. title: "销售类型",
  381. dataIndex: "salesType",
  382. key: "salesType",
  383. render: (text, record) => {
  384. return (
  385. <Tooltip
  386. title={salesList[text] + ((text == 3 || text == 4 || text == 5) ? (!record.other ? "" : "," + record.other) : "")}
  387. >
  388. <span>
  389. {salesList[text]}
  390. </span>
  391. {record.stopProject == 1 && <div><Tag color="red">含暂停项目</Tag></div>}
  392. </Tooltip>
  393. );
  394. },
  395. },
  396. {
  397. title: "特批类型",
  398. dataIndex: "type",
  399. key: "type",
  400. width: 110,
  401. render: (text, record) => {
  402. return (
  403. <span>
  404. {getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
  405. </span>
  406. );
  407. },
  408. },
  409. {
  410. title: "合同编号",
  411. dataIndex: "contractNo",
  412. key: "contractNo",
  413. render: (text, record) => {
  414. return (
  415. <Tooltip
  416. title={
  417. <Button
  418. type="primary"
  419. onClick={(e) => {
  420. e.stopPropagation();
  421. let input = document.getElementById("copyText");
  422. input.value = text;
  423. input.select();
  424. document.execCommand("copy");
  425. message.success("复制成功");
  426. }}
  427. >
  428. 复制
  429. </Button>
  430. }
  431. >
  432. <div>
  433. {text}
  434. <div style={{ display: "flex" }}>
  435. <OrderItemStatus deleteSign={record.deleteSign} />
  436. {getApprovalTag(record.approval)}
  437. </div>
  438. </div>
  439. </Tooltip>
  440. );
  441. },
  442. },
  443. {
  444. title: "订单编号",
  445. dataIndex: "orderNo",
  446. key: "orderNo",
  447. width: 140,
  448. render: (text, record) => {
  449. return (
  450. <Tooltip
  451. title={
  452. <Button
  453. type="primary"
  454. onClick={(e) => {
  455. e.stopPropagation();
  456. let input = document.getElementById("copyText");
  457. input.value = text;
  458. input.select();
  459. document.execCommand("copy");
  460. message.success("复制成功");
  461. }}
  462. >
  463. 复制
  464. </Button>
  465. }
  466. >
  467. <div>
  468. {text}
  469. <div>
  470. {record.totalAmount >= 10 && <Tag color="#ef7207">大客户</Tag>}
  471. {record.projectType == 1 && <Tag color="rgb(22, 155, 213)">会员</Tag>}
  472. </div>
  473. </div>
  474. </Tooltip>
  475. );
  476. },
  477. },
  478. {
  479. title: "客户名称",
  480. dataIndex: "userName",
  481. key: "userName",
  482. render: (text, record) => {
  483. return (
  484. <span>
  485. <Tooltip
  486. title={
  487. <span>
  488. <span style={{ paddingRight: "10px" }}>{text}</span>
  489. <Button
  490. type="primary"
  491. onClick={(e) => {
  492. e.stopPropagation();
  493. let input = document.getElementById("copyText");
  494. input.value = text;
  495. input.select();
  496. document.execCommand("copy");
  497. message.success("复制成功");
  498. }}
  499. >
  500. 复制
  501. </Button>
  502. </span>
  503. }
  504. >
  505. <div style={{ width: "180px" }}>
  506. {text}
  507. </div>
  508. </Tooltip>
  509. </span>
  510. );
  511. },
  512. },
  513. // {
  514. // title: "状态",
  515. // dataIndex: "deleteSign",
  516. // key: "deleteSign",
  517. // width: 80,
  518. // render: (text) => {
  519. // return <OrderItemStatus deleteSign={text} />;
  520. // },
  521. // },
  522. {
  523. title: "订单部门",
  524. dataIndex: "depName",
  525. key: "depName",
  526. width: 100,
  527. },
  528. {
  529. title: "下单时间",
  530. dataIndex: "createDate",
  531. key: "createTime",
  532. width: 80,
  533. render: (text) => {
  534. return <div style={{ textAlign: "center" }}>{text}</div>
  535. },
  536. },
  537. {
  538. title: "合同签订时间",
  539. dataIndex: "signDate",
  540. key: "signDate",
  541. width: 90,
  542. render: (text) => {
  543. return <div style={{ textAlign: "center" }}>{text}</div>
  544. },
  545. },
  546. {
  547. title: "流程状态",
  548. dataIndex: "processStatus",
  549. key: "processStatus",
  550. render: (text, record) => {
  551. return getProcessStatus(text, record.examineName, record.approval);
  552. },
  553. },
  554. {
  555. title: "签单金额(万元)",
  556. dataIndex: "totalAmount",
  557. key: "totalAmount",
  558. render: (text) => {
  559. return <div style={{ textAlign: "center" }}>{text}</div>
  560. },
  561. },
  562. {
  563. title: "开票金额(万元)",
  564. dataIndex: "invoiceAmount",
  565. key: "invoiceAmount",
  566. render: (text) => {
  567. return <div style={{ textAlign: "center" }}>{text}</div>
  568. },
  569. },
  570. {
  571. title: "已收款(万元)",
  572. dataIndex: "settlementAmount",
  573. key: "settlementAmount",
  574. render: (text) => {
  575. return <div style={{ textAlign: "center" }}>{text}</div>
  576. },
  577. },
  578. {
  579. title: "结算状态",
  580. dataIndex: "liquidationStatus",
  581. key: "liquidationStatus",
  582. render: (text) => {
  583. return getLiquidationStatus(text);
  584. },
  585. },
  586. // {
  587. // title: "是否特批",
  588. // dataIndex: "approval",
  589. // key: "approval",
  590. // render: (text) => {
  591. // return getApprovedState(text);
  592. // },
  593. // },
  594. {
  595. title: "订单状态",
  596. dataIndex: "orderStatus",
  597. key: "orderStatus",
  598. render: (text) => {
  599. return getNewOrderStatus(text);
  600. },
  601. },
  602. {
  603. title: "财务负责人",
  604. dataIndex: "financeName",
  605. key: "financeName",
  606. },
  607. // {
  608. // title: "应公出/已公出",
  609. // dataIndex: "a",
  610. // key: "a",
  611. // width: 100,
  612. // render: (text) => {
  613. // return (
  614. // <div>
  615. // {text}
  616. // <Button
  617. // type="primary"
  618. // onClick={(e) => {
  619. // this.setState({
  620. // upRelease: true
  621. // })
  622. // }}
  623. // >
  624. // 设置公出
  625. // </Button>
  626. // </div>
  627. // );
  628. // },
  629. // },
  630. {
  631. title: "操作",
  632. dataIndex: "abc",
  633. key: "abc",
  634. width: 85,
  635. render: (text, record, index) => {
  636. return (
  637. <div>
  638. {
  639. <Button
  640. type="primary"
  641. disabled={record.processStatus == 0 ? true : false}
  642. style={{
  643. margin: "5px",
  644. color: "#ffffff",
  645. border: "none",
  646. marginTop: "5px",
  647. background: record.processStatus == 0 ? "#ccc" : "red",
  648. }}
  649. onClick={(e) => {
  650. e.stopPropagation();
  651. this.visit(record, index);
  652. }}
  653. >
  654. 开票
  655. </Button>
  656. }
  657. {/* <Button
  658. type="primary"
  659. onClick={e => {
  660. e.stopPropagation(), this.inRecord(record, index);
  661. }}
  662. style={{
  663. border: "none",
  664. background: "orangered",
  665. marginRight: "10px"
  666. }}
  667. >
  668. 开票记录
  669. </Button> */}
  670. {record.liquidationStatus == 2 ? (
  671. <Popconfirm
  672. title="是否结项?"
  673. onConfirm={() => {
  674. this.delectRow(record);
  675. }}
  676. okText="是"
  677. cancelText="否"
  678. >
  679. <Button
  680. type="primary"
  681. style={{
  682. margin: "5px",
  683. color: "#ffffff",
  684. border: "none",
  685. }}
  686. onClick={(e) => {
  687. e.stopPropagation();
  688. }}
  689. >
  690. 结项
  691. </Button>
  692. </Popconfirm>
  693. ) : (
  694. ""
  695. )}
  696. {
  697. (record.scoreStatus == 1 || record.scoreStatus == 2) &&
  698. <Button
  699. style={{
  700. margin: "5px",
  701. background: "#87D068",
  702. color: "#ffffff",
  703. border: "none",
  704. }}
  705. onClick={(e) => {
  706. e.stopPropagation();
  707. this.tableRowClick(record)
  708. }}
  709. >
  710. 评分
  711. </Button>
  712. }
  713. </div>
  714. );
  715. },
  716. },
  717. ],
  718. columnsDate: [
  719. {
  720. title: "编号",
  721. dataIndex: "id",
  722. key: "id",
  723. },
  724. {
  725. title: "订单编号",
  726. dataIndex: "orderNo",
  727. key: "orderNo",
  728. },
  729. {
  730. title: "开票金额(万元)",
  731. dataIndex: "amount",
  732. key: "amount",
  733. },
  734. {
  735. title: "申请时间",
  736. dataIndex: "createTime",
  737. key: "createTime",
  738. },
  739. {
  740. title: "开票状态",
  741. dataIndex: "status",
  742. key: "status",
  743. render: (text, record) => {
  744. return (
  745. <div>
  746. {record.status === 3 && getInvoiceStatus(text, record)}
  747. {record.status === 3 ? (
  748. <Button
  749. type="danger"
  750. onClick={(e) => {
  751. e.stopPropagation(), this.reject(record);
  752. }}
  753. style={{ marginLeft: "10px" }}
  754. >
  755. 查看原因
  756. </Button>
  757. ) : (
  758. getInvoiceStatus(text, record)
  759. )}
  760. {record.status == 3 ? (
  761. <Button
  762. type="primary"
  763. onClick={(e) => {
  764. e.stopPropagation(), this.recompose(record);
  765. }}
  766. style={{ marginLeft: "10px" }}
  767. >
  768. 修改开票
  769. </Button>
  770. ) : (
  771. ""
  772. )}
  773. {record.status == 3 &&
  774. <Popconfirm
  775. title="您确定要取消开票吗?"
  776. onConfirm={() => {
  777. this.cancel(record);
  778. }}
  779. okText="确定"
  780. cancelText="取消"
  781. >
  782. <Button
  783. type="danger"
  784. style={{
  785. marginLeft: "10px",
  786. }}
  787. onClick={(e) => {
  788. e.stopPropagation();
  789. }}
  790. >
  791. 取消开票
  792. </Button>
  793. </Popconfirm>
  794. }
  795. <LogPopup id={record.id} />
  796. </div>
  797. );
  798. },
  799. },
  800. ],
  801. dataSource: [],
  802. };
  803. },
  804. loadData(pageNo) {
  805. this.state.data = [];
  806. this.setState({
  807. loading: true,
  808. });
  809. $.ajax({
  810. method: "get",
  811. dataType: "json",
  812. crossDomain: false,
  813. url: globalConfig.context + "/api/admin/newOrder/orderNewList",
  814. data: {
  815. pageNo: pageNo || 1,
  816. pageSize: this.state.pagination.pageSize,
  817. specially: 0,
  818. scoreStatus: this.state.scoreStatus,
  819. name: this.state.customerName,
  820. orderNo: this.state.searchOrderNo,
  821. depId: this.state.departmenttSearch,
  822. starTime: this.state.releaseDate[0],
  823. endTime: this.state.releaseDate[1],
  824. liquidationStatus: this.state.liquidationStatusSearch,
  825. contractNo: this.state.contractNoSearch,
  826. deps: JSON.stringify(this.state.departmenttList),
  827. approval: this.state.approvalSearch,
  828. amountStatus: this.state.amountStatus,
  829. projectType: this.state.projectType,
  830. processStatus: this.state.processStatus,
  831. type: this.state.approvaType.length > 0 ? this.state.approvaType.toString() : undefined, //特批类型
  832. },
  833. success: function (data) {
  834. ShowModal(this);
  835. let theArr = [];
  836. if (!data.data) {
  837. if (data.error && data.error.length) {
  838. message.warning(data.error[0].message);
  839. }
  840. } else {
  841. for (let i = 0; i < data.data.list.length; i++) {
  842. let thisdata = data.data.list[i];
  843. theArr.push({
  844. key: thisdata.orderNo,
  845. id: thisdata.id,
  846. orderNo: thisdata.orderNo, //订单编号
  847. totalAmount: thisdata.totalAmount, //签单金额
  848. projectType: thisdata.projectType, // 会员状态
  849. examineName: thisdata.examineName,
  850. processStatus: thisdata.processStatus, //流程状态
  851. liquidationStatus: thisdata.liquidationStatus, //结算状态
  852. approval: thisdata.approval, //特批状态
  853. signDate: thisdata.signDate, //签单时间
  854. userName: thisdata.userName, //客户名称
  855. salesmanName: thisdata.salesmanName, //营销员名称
  856. financeName: thisdata.financeName, //财务名称
  857. createDate: thisdata.createDate, //下单时间
  858. orderStatus: thisdata.orderStatus, //订单状态
  859. depName: thisdata.depName, //部门名称
  860. contractNo: thisdata.contractNo, //合同编号
  861. invoiceAmount: thisdata.invoiceAmount, //开票金额
  862. settlementAmount: thisdata.settlementAmount, //已收款
  863. deleteSign: thisdata.deleteSign,
  864. salesType: thisdata.salesType,
  865. other: thisdata.other,
  866. stopProject: thisdata.stopProject, //暂停项目 0无 1有
  867. type: thisdata.type || "", // 特批类型
  868. typeExplain: thisdata.typeExplain,
  869. scoreStatus: thisdata.scoreStatus,
  870. });
  871. }
  872. this.state.pagination.current = data.data.pageNo;
  873. this.state.pagination.total = data.data.totalCount;
  874. }
  875. if (!data.data.list.length) {
  876. this.state.pagination.current = 0;
  877. this.state.pagination.total = 0;
  878. }
  879. this.setState({
  880. pageNo: pageNo,
  881. dataSource: theArr,
  882. pagination: this.state.pagination,
  883. selectedRowKeys: [],
  884. });
  885. }.bind(this),
  886. }).always(
  887. function () {
  888. this.setState({
  889. loading: false,
  890. });
  891. }.bind(this)
  892. );
  893. },
  894. invoiceData(record) {
  895. if (this.state.flagA) return;
  896. this.setState({
  897. flagA: true,
  898. });
  899. let theorgCodeUrl = [];
  900. if (this.state.orgCodeUrl.length) {
  901. let picArr = [];
  902. this.state.orgCodeUrl.map(function (item) {
  903. if (
  904. item.response &&
  905. item.response.data &&
  906. item.response.data.length
  907. ) {
  908. picArr.push(item.response.data);
  909. }
  910. });
  911. theorgCodeUrl = picArr.join(",");
  912. }
  913. let api = "",
  914. api1 = "",
  915. method = "",
  916. fdata = {
  917. orderNo: this.state.orderNo3,
  918. type: this.state.type,
  919. status: this.state.status,
  920. approval: this.state.ordapproval,
  921. remarks: this.state.remarks,
  922. invoiceType: this.state.invoiceType,
  923. unitName: this.state.unitName,
  924. taxNumber: this.state.taxNumber,
  925. amount: parseFloat(this.state.amount),
  926. banks: this.state.banks,
  927. content: this.state.content,
  928. unitAddress: this.state.unitAddress,
  929. invoiceRemarks: this.state.invoiceRemarks,
  930. unitMobile: this.state.unitMobile,
  931. voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  932. post: this.state.post,
  933. addressee: this.state.addressee,
  934. addresseeMobile: this.state.addresseeMobile,
  935. addresseeProvince:
  936. this.state.post === 0 ? this.state.ProvinceCity[0] || [] : "",
  937. addresseeCity:
  938. this.state.post === 0 ? this.state.ProvinceCity[1] || [] : "",
  939. addresseeArea:
  940. this.state.post === 0 ? this.state.ProvinceCity[2] || [] : "",
  941. recipientAddress: this.state.recipientAddress,
  942. alreadyAmount: parseFloat(this.state.alreadyAmount),
  943. },
  944. sumData = {},
  945. sumData1 = {};
  946. switch (this.state.status) {
  947. case 0:
  948. api = "/api/admin/orderInvoice/createOrderInvoice";
  949. sumData = fdata;
  950. method = "post";
  951. break;
  952. case 1:
  953. api = "/api/admin/orderInvoice/createOrderInvoice";
  954. api1 = "/api/admin/orderInvoice/updateOrderInvoice";
  955. sumData = fdata;
  956. sumData1 = {
  957. orderNo: this.state.orderNo3,
  958. type: this.state.type,
  959. status: this.state.status,
  960. approval: !this.state.ordapproval ? 0 : 1,
  961. remarks: this.state.remarks,
  962. invoiceType: this.state.invoiceType,
  963. unitName: this.state.unitName,
  964. taxNumber: this.state.taxNumber,
  965. amount: parseFloat(this.state.amount),
  966. banks: this.state.banks,
  967. content: this.state.content,
  968. unitAddress: this.state.unitAddress,
  969. invoiceRemarks: this.state.invoiceRemarks,
  970. unitMobile: this.state.unitMobile,
  971. voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  972. post: this.state.post,
  973. addressee: this.state.addressee,
  974. addresseeMobile: this.state.addresseeMobile,
  975. addresseeProvince:
  976. this.state.post === 0 ? this.state.ProvinceCity[0] || [] : "",
  977. addresseeCity:
  978. this.state.post === 0 ? this.state.ProvinceCity[1] || [] : "",
  979. addresseeArea:
  980. this.state.post === 0 ? this.state.ProvinceCity[2] || [] : "",
  981. recipientAddress: this.state.recipientAddress,
  982. alreadyAmount: parseFloat(this.state.alreadyAmount),
  983. };
  984. sumData1.id = this.state.id;
  985. method = "post";
  986. break;
  987. case 3:
  988. api = "/api/admin/orderInvoice/selectByIdOrderInvoice";
  989. sumData.id = record.id;
  990. method = "get";
  991. break;
  992. default:
  993. api = "";
  994. break;
  995. }
  996. if (this.state.status === 1 || this.state.status === 0) {
  997. if (typeof this.state.type !== "number") {
  998. message.warning("省内/外不能为空");
  999. this.setState({
  1000. flagA: false,
  1001. });
  1002. return;
  1003. }
  1004. if (typeof this.state.invoiceType !== "number") {
  1005. message.warning("发票类型不能为空");
  1006. this.setState({
  1007. flagA: false,
  1008. });
  1009. return;
  1010. }
  1011. if (typeof theorgCodeUrl !== "string") {
  1012. message.warning("未上传图片");
  1013. this.setState({
  1014. flagA: false,
  1015. });
  1016. return;
  1017. }
  1018. if (!this.state.unitName) {
  1019. message.warning("单位名称不能为空");
  1020. this.setState({
  1021. flagA: false,
  1022. });
  1023. return;
  1024. }
  1025. if (!this.state.taxNumber) {
  1026. message.warning("税号不能为空");
  1027. this.setState({
  1028. flagA: false,
  1029. });
  1030. return;
  1031. }
  1032. if (isNaN(this.state.amount)) {
  1033. message.warning("开票金额包含非法字符,请重新输入");
  1034. this.setState({
  1035. flagA: false,
  1036. });
  1037. return;
  1038. }
  1039. if (!Number(this.state.amount)) {
  1040. message.warning("金额不能为空");
  1041. this.setState({
  1042. flagA: false,
  1043. });
  1044. return;
  1045. }
  1046. if (isNaN(this.state.alreadyAmount)) {
  1047. message.warning("开票金额总计包含非法字符,请重新输入");
  1048. this.setState({
  1049. flagA: false,
  1050. });
  1051. return;
  1052. }
  1053. if (parseFloat(this.state.alreadyAmount) < 0) {
  1054. message.warning("开票金额总计不能小于0,请重新输入");
  1055. this.setState({
  1056. flagA: false,
  1057. });
  1058. return;
  1059. }
  1060. if (!this.state.banks) {
  1061. message.warning("开户行不能为空");
  1062. this.setState({
  1063. flagA: false,
  1064. });
  1065. return;
  1066. }
  1067. if (!this.state.content) {
  1068. message.warning("开票内容及说明不能为空");
  1069. this.setState({
  1070. flagA: false,
  1071. });
  1072. return;
  1073. }
  1074. if (!this.state.unitAddress) {
  1075. message.warning("单位地址不能为空");
  1076. this.setState({
  1077. flagA: false,
  1078. });
  1079. return;
  1080. }
  1081. if (!this.state.unitMobile) {
  1082. message.warning("单位电话不能为空");
  1083. this.setState({
  1084. flagA: false,
  1085. });
  1086. return;
  1087. }
  1088. if (this.state.alreadyAmount === "") {
  1089. message.warning("开票金额总计不能为空");
  1090. this.setState({
  1091. flagA: false,
  1092. });
  1093. return;
  1094. }
  1095. }
  1096. this.setState({
  1097. loading: true,
  1098. });
  1099. $.ajax({
  1100. method: method,
  1101. dataType: "json",
  1102. crossDomain: false,
  1103. url: globalConfig.context + (this.state.flag ? api1 : api),
  1104. data: this.state.flag ? sumData1 : sumData,
  1105. success: function (data) {
  1106. if (this.state.status === 3 && typeof data.data === "object") {
  1107. let thisdata = data.data;
  1108. let ProvinceCityArr = [];
  1109. let ProvinceS = thisdata.addresseeProvince; //省
  1110. let citys = thisdata.addresseeCity; //市
  1111. let Areas = thisdata.addresseeArea; //区
  1112. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1113. this.setState({
  1114. orderNo: thisdata.orderNo,
  1115. type: thisdata.type,
  1116. status: thisdata.status,
  1117. ordapproval: thisdata.approval,
  1118. remarks: thisdata.remarks,
  1119. invoiceType: thisdata.invoiceType,
  1120. unitName: thisdata.unitName,
  1121. taxNumber: thisdata.taxNumber,
  1122. amount: thisdata.amount + "",
  1123. banks: thisdata.banks,
  1124. content: thisdata.content,
  1125. unitAddress: thisdata.unitAddress,
  1126. invoiceRemarks: thisdata.invoiceRemarks,
  1127. unitMobile: thisdata.unitMobile,
  1128. post: thisdata.post,
  1129. addressee: thisdata.addressee,
  1130. addresseeMobile: thisdata.addresseeMobile,
  1131. addresseeProvince: thisdata.addresseeProvince,
  1132. addresseeCity: thisdata.addresseeCity,
  1133. addresseeArea: thisdata.addresseeArea,
  1134. alreadyAmount: thisdata.alreadyAmount + "",
  1135. ProvinceCity:
  1136. ProvinceCityArr[0] != null ? ProvinceCityArr : undefined, //省市区
  1137. recipientAddress: thisdata.recipientAddress,
  1138. orgCodeUrl: thisdata.voucherUrl
  1139. ? splitUrl(
  1140. thisdata.voucherUrl,
  1141. ",",
  1142. globalConfig.avatarHost + "/upload"
  1143. )
  1144. : [],
  1145. });
  1146. }
  1147. }.bind(this),
  1148. }).done(
  1149. function (data) {
  1150. this.setState({
  1151. loading: false,
  1152. });
  1153. this.loadData(this.state.pageNo);
  1154. if (!data.error.length) {
  1155. if (this.state.status === 1) {
  1156. message.success("提交成功!");
  1157. this.visitCancels();
  1158. if (this.state.flag) {
  1159. this.inRecordData();
  1160. }
  1161. this.setState({
  1162. flagA: false,
  1163. });
  1164. } else if (this.state.status === 0) {
  1165. message.success("保存成功!");
  1166. this.visitCancels();
  1167. this.setState({
  1168. flagA: false,
  1169. });
  1170. } else if (this.state.status === 3) {
  1171. this.setState({
  1172. flag: true,
  1173. flagA: false,
  1174. });
  1175. }
  1176. } else {
  1177. message.warning(data.error[0].message);
  1178. this.setState({
  1179. flagA: false,
  1180. });
  1181. }
  1182. }.bind(this)
  1183. );
  1184. },
  1185. areset() {
  1186. this.setState({
  1187. remarks: "",
  1188. type: undefined,
  1189. orgCodeUrl: [],
  1190. invoiceType: undefined,
  1191. taxNumber: "",
  1192. unitName: "",
  1193. amount: "",
  1194. banks: "",
  1195. content: "",
  1196. unitAddress: "",
  1197. invoiceRemarks: "",
  1198. unitMobile: "",
  1199. post: undefined,
  1200. addressee: "",
  1201. addresseeMobile: "",
  1202. addresseeProvince: "",
  1203. addresseeCity: "",
  1204. addresseeArea: "",
  1205. recipientAddress: "",
  1206. ordapproval: 0,
  1207. alreadyAmount: "",
  1208. ProvinceCity: [],
  1209. });
  1210. },
  1211. recompose(record) {
  1212. this.setState({
  1213. avisible: true,
  1214. orderNo3: record.orderNo,
  1215. id: record.id,
  1216. });
  1217. this.setState(
  1218. {
  1219. status: 3,
  1220. cvisible: true,
  1221. flag: false,
  1222. },
  1223. () => {
  1224. this.invoiceData(record);
  1225. }
  1226. );
  1227. },
  1228. cancel(record) {
  1229. $.ajax({
  1230. method: "POST",
  1231. dataType: "json",
  1232. crossDomain: false,
  1233. url: globalConfig.context + "/api/admin/orderInvoice/delete",
  1234. data: {
  1235. id: record.id
  1236. }
  1237. }).done(function (data) {
  1238. this.setState({
  1239. loading: false
  1240. });
  1241. if (!data.error.length) {
  1242. message.success('操作成功!');
  1243. this.inRecordData();
  1244. } else {
  1245. message.warning(data.error[0].message);
  1246. }
  1247. }.bind(this));
  1248. },
  1249. submitApp() {
  1250. if (this.state.status === 3) {
  1251. this.setState({
  1252. flag: true,
  1253. });
  1254. }
  1255. this.setState(
  1256. {
  1257. status: 1,
  1258. },
  1259. () => {
  1260. this.invoiceData();
  1261. }
  1262. );
  1263. },
  1264. saveApp() {
  1265. this.setState(
  1266. {
  1267. status: 0,
  1268. },
  1269. () => {
  1270. this.invoiceData();
  1271. }
  1272. );
  1273. },
  1274. reject(record) {
  1275. this.setState({
  1276. visibleR: true,
  1277. reason: record.rejectReason,
  1278. });
  1279. },
  1280. rejectCancels() {
  1281. this.setState({
  1282. visibleR: false,
  1283. });
  1284. },
  1285. //开票
  1286. visit(record, index) {
  1287. this.areset();
  1288. this.setState({
  1289. contractNo: this.state.dataSource[index].contractNo,
  1290. orderNo3: record.orderNo,
  1291. avisible: true,
  1292. flag: false,
  1293. invoiceType: 0,
  1294. alreadyAmount: 0,
  1295. unitName: this.state.dataSource[index].userName,
  1296. post: 1,
  1297. });
  1298. $.ajax({
  1299. method: "get",
  1300. dataType: "json",
  1301. crossDomain: false,
  1302. url: globalConfig.context + "/api/admin/orderInvoice/getInvoiceDetails",
  1303. data: {
  1304. orderNo: record.orderNo,
  1305. },
  1306. success: (data) => {
  1307. if (data.error.length) {
  1308. message.warning(data.error[0].message);
  1309. } else if (data.data) {
  1310. const thisdata = data.data;
  1311. this.setState({
  1312. id: thisdata.id,
  1313. contractNo: thisdata.contractNo,
  1314. orderNo: thisdata.orderNo,
  1315. ordapproval: thisdata.approval,
  1316. type: thisdata.type,
  1317. status: thisdata.status,
  1318. remarks: thisdata.remarks,
  1319. invoiceType: thisdata.invoiceType,
  1320. unitName: thisdata.unitName,
  1321. taxNumber: thisdata.taxNumber,
  1322. amount: thisdata.amount,
  1323. banks: thisdata.banks,
  1324. content: thisdata.content,
  1325. unitAddress: thisdata.unitAddress,
  1326. invoiceRemarks: thisdata.invoiceRemarks,
  1327. unitMobile: thisdata.unitMobile,
  1328. post: thisdata.post,
  1329. addressee: thisdata.addressee,
  1330. addresseeMobile: thisdata.addresseeMobile,
  1331. addresseeProvince: thisdata.addresseeProvince,
  1332. addresseeCity: thisdata.addresseeCity,
  1333. addresseeArea: thisdata.addresseeArea,
  1334. alreadyAmount: thisdata.alreadyAmount,
  1335. recipientAddress: thisdata.recipientAddress,
  1336. orgCodeUrl: thisdata.voucherUrl
  1337. ? splitUrl(
  1338. thisdata.voucherUrl,
  1339. ",",
  1340. globalConfig.avatarHost + "/upload"
  1341. )
  1342. : [],
  1343. });
  1344. }
  1345. },
  1346. });
  1347. },
  1348. visitCancels() {
  1349. this.setState({
  1350. id: "",
  1351. avisible: false,
  1352. cvisible: false,
  1353. });
  1354. },
  1355. //查看开票历史记录详情
  1356. dtableRowClick(record) {
  1357. this.setState({
  1358. dvisible: true,
  1359. });
  1360. this.setState({
  1361. loading: true,
  1362. });
  1363. $.ajax({
  1364. method: "get",
  1365. dataType: "json",
  1366. crossDomain: false,
  1367. url:
  1368. globalConfig.context +
  1369. "/api/admin/orderInvoice/selectByIdOrderInvoice",
  1370. data: {
  1371. id: record.id,
  1372. },
  1373. success: function (data) {
  1374. let thisdata = data.data;
  1375. this.setState({
  1376. contractNo: thisdata.contractNo,
  1377. orderNo: thisdata.orderNo,
  1378. ordapproval: thisdata.approval,
  1379. type: thisdata.type,
  1380. status: thisdata.status,
  1381. remarks: thisdata.remarks,
  1382. invoiceType: thisdata.invoiceType,
  1383. unitName: thisdata.unitName,
  1384. taxNumber: thisdata.taxNumber,
  1385. amount: thisdata.amount,
  1386. banks: thisdata.banks,
  1387. content: thisdata.content,
  1388. unitAddress: thisdata.unitAddress,
  1389. invoiceRemarks: thisdata.invoiceRemarks,
  1390. unitMobile: thisdata.unitMobile,
  1391. post: thisdata.post,
  1392. addressee: thisdata.addressee,
  1393. addresseeMobile: thisdata.addresseeMobile,
  1394. addresseeProvince: thisdata.addresseeProvince,
  1395. addresseeCity: thisdata.addresseeCity,
  1396. addresseeArea: thisdata.addresseeArea,
  1397. alreadyAmount: thisdata.alreadyAmount,
  1398. recipientAddress: thisdata.recipientAddress,
  1399. orgCodeUrl: thisdata.voucherUrl
  1400. ? splitUrl(
  1401. thisdata.voucherUrl,
  1402. ",",
  1403. globalConfig.avatarHost + "/upload"
  1404. )
  1405. : [],
  1406. });
  1407. }.bind(this),
  1408. }).done(
  1409. function () {
  1410. this.setState({
  1411. loading: false,
  1412. });
  1413. }.bind(this)
  1414. );
  1415. },
  1416. //关闭开票历史记录详情
  1417. dvisitCancels() {
  1418. this.setState({
  1419. dvisible: false,
  1420. });
  1421. },
  1422. inRecordData() {
  1423. if (!this.state.orderNo2) {
  1424. return;
  1425. }
  1426. this.setState({
  1427. loading: true,
  1428. });
  1429. $.ajax({
  1430. method: "get",
  1431. dataType: "json",
  1432. crossDomain: false,
  1433. url:
  1434. globalConfig.context +
  1435. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  1436. data: {
  1437. orderNo: this.state.orderNo2,
  1438. },
  1439. success: function (data) {
  1440. let theArr = [];
  1441. let sum = 0;
  1442. if (!data.data) {
  1443. if (data.error && data.error.length) {
  1444. message.warning(data.error[0].message);
  1445. }
  1446. } else {
  1447. for (let i = 0; i < data.data.list.length; i++) {
  1448. let thisdata = data.data.list[i];
  1449. sum += parseFloat(thisdata.amount);
  1450. theArr.push({
  1451. id: thisdata.id,
  1452. orderNo: thisdata.orderNo, //订单编号
  1453. amount: thisdata.amount, //签单金额
  1454. examineName: thisdata.examineName,
  1455. createTime: thisdata.createTime, //流程状态
  1456. status: thisdata.status, //结算状态
  1457. rejectReason: thisdata.rejectReason,
  1458. approval: thisdata.approval,
  1459. });
  1460. }
  1461. }
  1462. this.setState({
  1463. recordData: theArr,
  1464. sum: sum.toFixed(6),
  1465. });
  1466. }.bind(this),
  1467. }).done(
  1468. function () {
  1469. this.setState({
  1470. loading: false,
  1471. });
  1472. }.bind(this)
  1473. );
  1474. },
  1475. inRecord(record) {
  1476. this.setState(
  1477. {
  1478. bvisible: true,
  1479. orderNo2: this.state.selectedRowKeys[0],
  1480. },
  1481. () => {
  1482. this.inRecordData();
  1483. }
  1484. );
  1485. },
  1486. inRecordCanl() {
  1487. this.setState({
  1488. bvisible: false,
  1489. });
  1490. },
  1491. //结项
  1492. delectRow(record) {
  1493. this.setState({
  1494. loading: true,
  1495. });
  1496. $.ajax({
  1497. method: "get",
  1498. dataType: "json",
  1499. crossDomain: false,
  1500. url: globalConfig.context + "/api/admin/newOrder/OrderOver",
  1501. data: {
  1502. orderNo: record.orderNo,
  1503. },
  1504. }).done(
  1505. function (data) {
  1506. if (!data.error.length) {
  1507. message.success("该项目已成功结项!");
  1508. this.loadData();
  1509. } else {
  1510. message.warning(data.error[0].message);
  1511. }
  1512. this.setState({
  1513. loading: false,
  1514. });
  1515. }.bind(this)
  1516. );
  1517. },
  1518. //是否退款
  1519. refundCancel(record) {
  1520. this.refund(record, 0);
  1521. },
  1522. refundOk(record) {
  1523. this.refund(record, 1);
  1524. },
  1525. refund(record, index) {
  1526. this.setState({
  1527. signBillVisible: false,
  1528. selectedRowKeys: [],
  1529. loading: true,
  1530. userDetaile: false,
  1531. });
  1532. $.ajax({
  1533. method: "get",
  1534. dataType: "json",
  1535. crossDomain: false,
  1536. url: globalConfig.context + "/api/admin/order/confirmRefund",
  1537. data: {
  1538. orderNo: record.orderNo,
  1539. confirm: index,
  1540. },
  1541. }).done(
  1542. function (data) {
  1543. if (!data.error.length) {
  1544. message.success("操作成功!");
  1545. this.setState({
  1546. loading: false,
  1547. showDesc: false,
  1548. });
  1549. }
  1550. this.loadData(this.state.pageNo);
  1551. }.bind(this)
  1552. );
  1553. },
  1554. //受理订单
  1555. admissibleOrderOk(e) {
  1556. this.admissibleOrder(e, true);
  1557. },
  1558. admissibleOrderCancel(e) {
  1559. this.admissibleOrder(e, false);
  1560. },
  1561. admissibleOrder(record, index) {
  1562. this.setState({
  1563. signBillVisible: false,
  1564. selectedRowKeys: [],
  1565. loading: true,
  1566. userDetaile: false,
  1567. });
  1568. $.ajax({
  1569. method: "POST",
  1570. dataType: "json",
  1571. crossDomain: false,
  1572. url: globalConfig.context + "/api/admin/order/confirmIntention",
  1573. data: {
  1574. orderNo: record.orderNo,
  1575. confirm: index,
  1576. },
  1577. }).done(
  1578. function (data) {
  1579. if (!data.error.length) {
  1580. message.success("操作成功!");
  1581. this.setState({
  1582. loading: false,
  1583. showDesc: false,
  1584. });
  1585. } else {
  1586. message.warning(data.error[0].message);
  1587. this.setState({
  1588. showDesc: true,
  1589. });
  1590. }
  1591. this.loadData(this.state.pageNo);
  1592. }.bind(this)
  1593. );
  1594. },
  1595. //取消订单
  1596. cancelOrder(e) {
  1597. this.operation(e, 3);
  1598. },
  1599. //作废订单
  1600. scrapOrder(e) {
  1601. this.operation(e, 2);
  1602. },
  1603. //锁定订单
  1604. lockOrder(e) {
  1605. this.operation(e, 0);
  1606. },
  1607. //解锁订单
  1608. unlockOrder(e) {
  1609. this.operation(e, 1);
  1610. },
  1611. //签单
  1612. signBill(ids) {
  1613. this.setState({
  1614. uid: ids,
  1615. signBillVisible: true,
  1616. });
  1617. },
  1618. componentWillMount() {
  1619. // this.departmentList();
  1620. this.loadData();
  1621. let data = localStorage.getItem("newData");
  1622. if (data != "{}" && data && data.toString() !== "[object Object]") {
  1623. var newData = JSON.parse(data);
  1624. this.tableRowClick(newData);
  1625. }
  1626. },
  1627. tableRowClick(record) {
  1628. this.state.userDetaile = true;
  1629. this.state.datauser = record;
  1630. this.setState({
  1631. signBillVisible: false,
  1632. signBillState: true,
  1633. showDesc: true,
  1634. addPop: "edit"
  1635. });
  1636. localStorage.setItem("newData", "{}");
  1637. },
  1638. //列表各种骚操作
  1639. operation(record, index) {
  1640. this.setState({
  1641. selectedRowKeys: [],
  1642. loading: true,
  1643. showDesc: false,
  1644. });
  1645. $.ajax({
  1646. method: "get",
  1647. dataType: "json",
  1648. crossDomain: false,
  1649. url: globalConfig.context + "/api/admin/order/lockOrRevokeOrder",
  1650. data: {
  1651. orderNo: record.orderNo,
  1652. operatorType: index,
  1653. },
  1654. }).done(
  1655. function (data) {
  1656. if (!data.error.length) {
  1657. message.success("操作成功!");
  1658. this.setState({
  1659. loading: false,
  1660. });
  1661. } else {
  1662. message.warning(data.error[0].message);
  1663. }
  1664. this.loadData(this.state.pageNo);
  1665. }.bind(this)
  1666. );
  1667. },
  1668. addClick() {
  1669. this.state.userDetaile = false;
  1670. this.setState({
  1671. addPop: "add",
  1672. signBillVisible: false,
  1673. showDesc: true,
  1674. });
  1675. },
  1676. closeDesc(e, s) {
  1677. this.state.userDetaile = false;
  1678. this.state.signBillVisible = false;
  1679. this.state.showDesc = e;
  1680. this.state.addPop = ""
  1681. this.loadData(this.state.pageNo);
  1682. // if (s) {
  1683. // this.loadData(this.state.pageNo);
  1684. // }
  1685. },
  1686. searchSwitch() {
  1687. this.setState({
  1688. signBillVisible: false,
  1689. searchMore: !this.state.searchMore,
  1690. });
  1691. },
  1692. getOrgCodeUrl(e) {
  1693. this.setState({ orgCodeUrl: e });
  1694. },
  1695. search() {
  1696. this.setState({
  1697. signBillVisible: false,
  1698. });
  1699. this.loadData();
  1700. },
  1701. reset() {
  1702. this.setState({
  1703. signBillVisible: false,
  1704. });
  1705. this.state.scoreStatus = undefined;
  1706. this.state.searchOrderNo = undefined;
  1707. this.state.orderNo = undefined;
  1708. this.state.customerName = undefined;
  1709. this.state.departmenttSearch = undefined;
  1710. this.state.releaseDate[0] = undefined;
  1711. this.state.releaseDate[1] = undefined;
  1712. this.state.projectProgress = undefined;
  1713. this.state.approval = undefined;
  1714. this.state.formalOrder = true;
  1715. this.state.intentOrder = true;
  1716. (this.state.liquidationStatusSearch = []),
  1717. (this.state.contractNoSearch = undefined);
  1718. this.state.departmenttList = undefined;
  1719. this.state.approvalSearch = undefined;
  1720. this.state.amountStatus = undefined;
  1721. this.state.projectType = undefined;
  1722. this.state.processStatus = undefined;
  1723. this.Cascaders.empty();
  1724. this.state.approvaType = [];
  1725. this.loadData();
  1726. },
  1727. //部门
  1728. departmentList() {
  1729. this.setState({
  1730. loading: true,
  1731. });
  1732. $.ajax({
  1733. method: "get",
  1734. dataType: "json",
  1735. crossDomain: false,
  1736. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  1737. data: {},
  1738. success: function (data) {
  1739. let thedata = data.data;
  1740. let theArr = [];
  1741. if (!thedata) {
  1742. if (data.error && data.error.length) {
  1743. message.warning(data.error[0].message);
  1744. }
  1745. thedata = {};
  1746. } else {
  1747. thedata.map(function (item, index) {
  1748. theArr.push({
  1749. key: index,
  1750. name: item.name,
  1751. id: item.id,
  1752. });
  1753. });
  1754. }
  1755. this.setState({
  1756. departmentArr: theArr,
  1757. });
  1758. }.bind(this),
  1759. }).always(
  1760. function () {
  1761. this.setState({
  1762. loading: false,
  1763. });
  1764. }.bind(this)
  1765. );
  1766. },
  1767. changeList(arr) {
  1768. const newArr = [];
  1769. this.state.columns.forEach((item) => {
  1770. arr.forEach((val) => {
  1771. if (val === item.title) {
  1772. newArr.push(item);
  1773. }
  1774. });
  1775. });
  1776. this.setState({
  1777. changeList: newArr,
  1778. });
  1779. },
  1780. onSelectChange(selectedRowKeys) {
  1781. this.setState({ selectedRowKeys: selectedRowKeys.slice(-1) });
  1782. },
  1783. // inRecordData() {
  1784. // this.setState({
  1785. // loading: true
  1786. // });
  1787. // $.ajax({
  1788. // method: "get",
  1789. // dataType: "json",
  1790. // crossDomain: false,
  1791. // url:
  1792. // globalConfig.context +
  1793. // "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  1794. // data: {
  1795. // orderNo: this.state.selectedRowKeys[0],
  1796. // pageSize: 9999
  1797. // },
  1798. // success: function(data) {
  1799. // let theArr = [];
  1800. // let sum = 0;
  1801. // if (!data.data) {
  1802. // if (data.error && data.error.length) {
  1803. // message.warning(data.error[0].message);
  1804. // }
  1805. // } else {
  1806. // for (let i = 0; i < data.data.list.length; i++) {
  1807. // let thisdata = data.data.list[i];
  1808. // sum += parseFloat(thisdata.amount);
  1809. // theArr.push({
  1810. // id: thisdata.id,
  1811. // orderno: thisdata.orderno, //订单编号
  1812. // amount: thisdata.amount, //签单金额
  1813. // createTime: thisdata.createTime, //流程状态
  1814. // status: thisdata.status, //结算状态
  1815. // rejectReason: thisdata.rejectReason
  1816. // });
  1817. // }
  1818. // }
  1819. // this.setState({
  1820. // recordData: theArr,
  1821. // sum: sum.toFixed(4)
  1822. // });
  1823. // }.bind(this)
  1824. // }).done(
  1825. // function() {
  1826. // this.setState({
  1827. // loading: false
  1828. // });
  1829. // }.bind(this)
  1830. // );
  1831. // },
  1832. cuiData() {
  1833. this.setState({
  1834. loading: true,
  1835. });
  1836. $.ajax({
  1837. method: "get",
  1838. dataType: "json",
  1839. crossDomain: false,
  1840. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  1841. data: {
  1842. orderNo: this.state.selectedRowKeys[0],
  1843. pageSize: 9999999,
  1844. },
  1845. success: function (data) {
  1846. let theArr = [];
  1847. if (!data.data || !data.data.list) {
  1848. if (data.error && data.error.length) {
  1849. message.warning(data.error[0].message);
  1850. }
  1851. } else {
  1852. for (let i = 0; i < data.data.list.length; i++) {
  1853. let thisdata = data.data.list[i];
  1854. theArr.push({
  1855. key: i + 1,
  1856. orderNo: thisdata.orderNo,
  1857. contractNo: thisdata.contractNo,
  1858. userName: thisdata.userName,
  1859. buyerName: thisdata.buyerName,
  1860. departmentName: thisdata.departmentName,
  1861. salesmanName: thisdata.salesmanName,
  1862. depName: thisdata.depName,
  1863. orderStatus: thisdata.orderStatus,
  1864. projectStatus: thisdata.projectStatus,
  1865. totalAmount: thisdata.totalAmount,
  1866. liquidationStatus: thisdata.liquidationStatus,
  1867. settlementAmount: thisdata.settlementAmount,
  1868. accountsReceivable: thisdata.accountsReceivable,
  1869. dunSubject: thisdata.dunSubject,
  1870. startDate: thisdata.startDate,
  1871. taskStatus: thisdata.taskStatus,
  1872. cname: thisdata.cname,
  1873. id: thisdata.id,
  1874. taskName: thisdata.taskName,
  1875. hours: thisdata.hours,
  1876. taskDistributionTime: thisdata.taskDistributionTime,
  1877. taskEndTime: thisdata.taskEndTime,
  1878. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  1879. });
  1880. }
  1881. }
  1882. this.setState({
  1883. cuiDataList: theArr,
  1884. });
  1885. }.bind(this),
  1886. }).always(
  1887. function () {
  1888. this.setState({
  1889. loading: false,
  1890. });
  1891. }.bind(this)
  1892. );
  1893. },
  1894. proData() {
  1895. this.setState({
  1896. loading: true,
  1897. });
  1898. $.ajax({
  1899. method: "get",
  1900. dataType: "json",
  1901. crossDomain: false,
  1902. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1903. data: {
  1904. orderNo: this.state.selectedRowKeys[0],
  1905. pageSize: 9999999,
  1906. },
  1907. success: function (data) {
  1908. let theArr = [];
  1909. let totalWaibao = 0;
  1910. if (!data.data) {
  1911. if (data.error && data.error.length) {
  1912. message.warning(data.error[0].message);
  1913. }
  1914. } else {
  1915. for (let i = 0; i < data.data.length; i++) {
  1916. let thisdata = data.data[i];
  1917. totalWaibao += thisdata.outsourcePrice;
  1918. thisdata.key = i + 1;
  1919. theArr.push(thisdata);
  1920. }
  1921. }
  1922. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(
  1923. 6
  1924. );
  1925. this.setState({
  1926. proDataList: theArr,
  1927. totalWaibao,
  1928. });
  1929. }.bind(this),
  1930. }).always(
  1931. function () {
  1932. this.setState({
  1933. loading: false,
  1934. });
  1935. }.bind(this)
  1936. );
  1937. },
  1938. tableRowClickPro(record) {
  1939. this.setState({
  1940. pvisible: true,
  1941. record,
  1942. });
  1943. },
  1944. getRadioList(val) {
  1945. let array = []
  1946. let list = [
  1947. { value: 1, list: [6, 7, 8, 9, 10] },
  1948. { value: 2, list: [3, 4, 5] },
  1949. { value: 3, list: [1, 2] },
  1950. { value: 4, list: [0] }
  1951. ]
  1952. list.map(function (item) {
  1953. if (item.value == val) {
  1954. array = item.list
  1955. }
  1956. })
  1957. return array
  1958. },
  1959. render() {
  1960. const FormItem = Form.Item;
  1961. const formItemLayout = {
  1962. labelCol: { span: 8 },
  1963. wrapperCol: { span: 14 },
  1964. };
  1965. const RadioGroup = Radio.Group;
  1966. var departmentArr = this.state.departmentArr || [];
  1967. const { RangePicker } = DatePicker;
  1968. const { loading, selectedRowKeys, visible } = this.state;
  1969. const rowSelection = {
  1970. selectedRowKeys,
  1971. onChange: this.onSelectChange,
  1972. hideDefaultSelections: true,
  1973. // type: "radio"
  1974. };
  1975. const approvaChildren = approvalOptions.map(i => (
  1976. <Option key={i.value}>{i.label}</Option>
  1977. ));
  1978. return (
  1979. <div className="user-content">
  1980. <ShowModalDiv ShowModal={this.state.showModal} onClose={() => { this.setState({ showModal: false }) }} />
  1981. <div className="content-title">
  1982. <span
  1983. style={{
  1984. fontWeight: 900,
  1985. fontSize: 16,
  1986. display: "block",
  1987. marginBottom: 10,
  1988. }}
  1989. >
  1990. 开单与签单
  1991. </span>
  1992. <Tabs
  1993. defaultActiveKey="2"
  1994. onChange={this.callback}
  1995. className="test"
  1996. >
  1997. <TabPane tab="更改表格显示数据" key="1">
  1998. <div style={{ marginLeft: 10 }}>
  1999. <ChooseList
  2000. columns={this.state.columns}
  2001. changeFn={this.changeList}
  2002. changeList={this.state.changeList}
  2003. top={55}
  2004. margin={11}
  2005. />
  2006. </div>
  2007. </TabPane>
  2008. <TabPane tab="搜索" key="2">
  2009. <div className="user-search" style={{ marginLeft: 10 }}>
  2010. <Row>
  2011. <Input
  2012. placeholder="订单编号"
  2013. style={{ width: "150px", marginRight: "10px" }}
  2014. value={this.state.searchOrderNo}
  2015. onChange={(e) => {
  2016. this.setState({ searchOrderNo: e.target.value });
  2017. }}
  2018. />
  2019. <Input
  2020. placeholder="合同编号"
  2021. style={{ width: "150px", marginRight: 10 }}
  2022. value={this.state.contractNoSearch}
  2023. onChange={(e) => {
  2024. this.setState({
  2025. contractNoSearch: e.target.value,
  2026. });
  2027. }}
  2028. />
  2029. <Input
  2030. placeholder="客户名称"
  2031. style={{ width: "150px", marginRight: "10px" }}
  2032. value={this.state.customerName}
  2033. onChange={(e) => {
  2034. this.setState({ customerName: e.target.value });
  2035. }}
  2036. />
  2037. <Cascaders
  2038. ref={node => this.Cascaders = node}
  2039. placeholder="订单部门"
  2040. id="id"
  2041. name="name"
  2042. children="list"
  2043. height={28}
  2044. onSel={(e) => {
  2045. this.setState({
  2046. departmenttList: e
  2047. })
  2048. }}
  2049. />
  2050. {/* <Select
  2051. placeholder="订单部门"
  2052. style={{ width: 200, marginRight: 10 }}
  2053. value={this.state.departmenttList}
  2054. onChange={(e) => {
  2055. this.setState({ departmenttList: e });
  2056. }}
  2057. >
  2058. {departmentArr.map(function (item) {
  2059. return <Option key={item.id}>{item.name}</Option>;
  2060. })}
  2061. </Select> */}
  2062. <Select
  2063. style={{ width: 120 }}
  2064. placeholder="结算状态"
  2065. value={this.state.liquidationStatusSearch}
  2066. onChange={(e) => {
  2067. this.setState({
  2068. liquidationStatusSearch: e,
  2069. });
  2070. }}
  2071. >
  2072. <Option value="0">首付待付请</Option>
  2073. <Option value="1">尾款待付清</Option>
  2074. <Option value="2">已付清</Option>
  2075. </Select>
  2076. <Select
  2077. style={{ width: 120 }}
  2078. placeholder="特批状态"
  2079. value={this.state.approvalSearch}
  2080. onChange={(e) => {
  2081. this.setState({
  2082. approvalSearch: e,
  2083. });
  2084. }}
  2085. >
  2086. <Option value="0">非特批</Option>
  2087. <Option value="1">特批待审</Option>
  2088. <Option value="2">特批通过</Option>
  2089. <Option value="4">全部特批</Option>
  2090. </Select>
  2091. <Select
  2092. style={{ width: 120 }}
  2093. placeholder="签单金额"
  2094. value={this.state.amountStatus}
  2095. onChange={(e) => {
  2096. this.setState({
  2097. amountStatus: e,
  2098. });
  2099. }}
  2100. >
  2101. <Option value="0">10万元以下</Option>
  2102. <Option value="1">10~20万元</Option>
  2103. <Option value="2">20~30万元</Option>
  2104. <Option value="3">30~40万元</Option>
  2105. <Option value="4">40万元以上</Option>
  2106. </Select>
  2107. <Select
  2108. style={{ width: 120 }}
  2109. placeholder="会员状态"
  2110. value={this.state.projectType}
  2111. onChange={(e) => {
  2112. this.setState({
  2113. projectType: e,
  2114. });
  2115. }}
  2116. >
  2117. <Option value="1">会员</Option>
  2118. <Option value="0">非会员</Option>
  2119. </Select>
  2120. <Select
  2121. style={{ width: 140 }}
  2122. placeholder="流程状态"
  2123. value={this.state.processStatus}
  2124. onChange={(e) => {
  2125. this.setState({
  2126. processStatus: e,
  2127. });
  2128. }}
  2129. >
  2130. <Option value="">全部</Option>
  2131. {
  2132. processStatus.map((item) =>
  2133. <Option value={item.value} key={item.value}>{item.key}</Option>
  2134. )
  2135. }
  2136. </Select>
  2137. <Button
  2138. type="primary"
  2139. onClick={this.search}
  2140. style={{ margin: "0 10px" }}
  2141. >
  2142. 搜索
  2143. <Icon type="search" />
  2144. </Button>
  2145. <Button
  2146. onClick={this.reset}
  2147. style={{ marginRight: "10px" }}
  2148. >
  2149. 重置 <Icon type="reload" />
  2150. </Button>
  2151. {
  2152. // 新需求 除湖南和内蒙古外 不让其他省操作
  2153. (adminData.province == "21" || adminData.province == "11") &&
  2154. <Button
  2155. type="primary"
  2156. onClick={this.addClick}
  2157. style={{ marginRight: "10px" }}
  2158. >
  2159. 开单
  2160. <Icon type="plus" />
  2161. </Button>
  2162. }
  2163. </Row>
  2164. <Row style={{ marginTop: 10 }}>
  2165. <Select
  2166. mode="multiple"
  2167. style={{ width: 200 }}
  2168. placeholder="特批类型"
  2169. value={this.state.approvaType}
  2170. onChange={e => {
  2171. this.setState({
  2172. approvaType: e
  2173. })
  2174. }}
  2175. >
  2176. {approvaChildren}
  2177. </Select>
  2178. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  2179. <RangePicker
  2180. style={{ width: 200, marginRight: 10 }}
  2181. value={[
  2182. this.state.releaseDate[0]
  2183. ? moment(this.state.releaseDate[0])
  2184. : null,
  2185. this.state.releaseDate[1]
  2186. ? moment(this.state.releaseDate[1])
  2187. : null,
  2188. ]}
  2189. onChange={(data, dataString) => {
  2190. this.setState({ releaseDate: dataString });
  2191. }}
  2192. />
  2193. <span style={{ marginRight: "10px" }}>项目评分 :</span>
  2194. <Select
  2195. style={{ width: 150 }}
  2196. placeholder="项目评分"
  2197. value={this.state.scoreStatus}
  2198. onChange={(e) => {
  2199. this.setState({
  2200. scoreStatus: e,
  2201. });
  2202. }}
  2203. >
  2204. <Option value="0">全部</Option>
  2205. <Option value="1">待评分</Option>
  2206. <Option value="2">部分已评分</Option>
  2207. <Option value="3">全部已评分</Option>
  2208. </Select>
  2209. {/* <Input
  2210. placeholder="请输入营销员名字"
  2211. style={{ width: 150, marginRight: 10 }}
  2212. value={this.state.name}
  2213. onChange={(e) => {
  2214. this.setState({ name: e.target.value });
  2215. }}
  2216. />
  2217. <Select
  2218. style={{ width: 150 }}
  2219. placeholder="无限制公出"
  2220. value={this.state.ss}
  2221. onChange={(e) => {
  2222. this.setState({
  2223. ss: e,
  2224. });
  2225. }}
  2226. >
  2227. <Option value="0">无限制公出(未设置)</Option>
  2228. <Option value="1">无限制公出(已设置)</Option>
  2229. </Select> */}
  2230. </Row>
  2231. </div>
  2232. </TabPane>
  2233. <TabPane tab="查看" key="3">
  2234. <Button
  2235. type="primary"
  2236. style={{ margin: "11px 0px 10px 10px" }}
  2237. onClick={() => {
  2238. this.inRecord();
  2239. this.setState({
  2240. bvisible: true,
  2241. });
  2242. }}
  2243. disabled={this.state.selectedRowKeys.length != 1}
  2244. >
  2245. 查看开票记录
  2246. </Button>
  2247. <Button
  2248. type="primary"
  2249. style={{ margin: "11px 0px 10px 10px" }}
  2250. onClick={() => {
  2251. this.cuiData();
  2252. this.setState({
  2253. cuiVisible: true,
  2254. });
  2255. }}
  2256. disabled={this.state.selectedRowKeys.length != 1}
  2257. >
  2258. 查看催款详情
  2259. </Button>
  2260. <Button
  2261. type="primary"
  2262. style={{ margin: "11px 0px 10px 10px" }}
  2263. onClick={() => {
  2264. this.proData();
  2265. this.setState({
  2266. proVisible: true,
  2267. });
  2268. }}
  2269. disabled={this.state.selectedRowKeys.length != 1}
  2270. >
  2271. 查看项目进度
  2272. </Button>
  2273. </TabPane>
  2274. </Tabs>
  2275. <div className="patent-table">
  2276. <Spin spinning={this.state.loading}>
  2277. <Table
  2278. columns={
  2279. this.state.changeList == undefined
  2280. ? this.state.columns
  2281. : this.state.changeList
  2282. }
  2283. dataSource={this.state.dataSource}
  2284. scroll={{ x: 1500, y: 0 }}
  2285. pagination={this.state.pagination}
  2286. rowSelection={rowSelection}
  2287. onRowDoubleClick={this.tableRowClick}
  2288. bordered
  2289. size="small"
  2290. />
  2291. </Spin>
  2292. </div>
  2293. <textarea id="copyText" style={{ opacity: 0 }} />
  2294. {
  2295. this.state.showDesc &&
  2296. <NewService
  2297. uid={this.state.uid}
  2298. signBillVisible={this.state.signBillVisible}
  2299. signBillState={this.state.signBillState}
  2300. operation={this.operation}
  2301. admissibleOrder={this.admissibleOrder}
  2302. userDetaile={this.state.userDetaile}
  2303. datauser={this.state.datauser}
  2304. showDesc={this.state.showDesc}
  2305. closeDesc={this.closeDesc}
  2306. addPop={this.state.addPop}
  2307. />
  2308. }
  2309. {this.state.avisible ? (
  2310. <Modal
  2311. maskClosable={false}
  2312. className="admin-desc-content"
  2313. footer=""
  2314. title="开具发票申请单"
  2315. width="1200px"
  2316. visible={this.state.avisible}
  2317. onOk={this.visitOks}
  2318. onCancel={this.visitCancels}
  2319. style={{ zIndex: 999 }}
  2320. >
  2321. <Form
  2322. layout="horizontal"
  2323. // id="demand-form"
  2324. style={{ paddingBottom: "40px" }}
  2325. >
  2326. <Spin spinning={this.state.loading}>
  2327. <div className="clearfix">
  2328. <div className="clearfix">
  2329. <FormItem
  2330. className="half-item"
  2331. {...formItemLayout}
  2332. label="合同编号"
  2333. >
  2334. <span>{this.state.contractNo}</span>
  2335. </FormItem>
  2336. <FormItem
  2337. className="half-item"
  2338. {...formItemLayout}
  2339. label="备注"
  2340. >
  2341. {
  2342. <Input
  2343. placeholder="填写申请发票原因"
  2344. value={this.state.remarks}
  2345. onChange={(e) => {
  2346. this.setState({ remarks: e.target.value });
  2347. }}
  2348. style={{ width: "240px" }}
  2349. />
  2350. }
  2351. </FormItem>
  2352. </div>
  2353. <div className="clearfix">
  2354. <FormItem
  2355. className="half-item"
  2356. {...formItemLayout}
  2357. label="省内/外:"
  2358. >
  2359. <RadioGroup
  2360. value={this.state.type}
  2361. onChange={(e) => {
  2362. this.setState({ type: e.target.value });
  2363. }}
  2364. >
  2365. <Radio value={0}>省内</Radio>
  2366. <Radio value={1}>省外</Radio>
  2367. </RadioGroup>
  2368. <span
  2369. style={{
  2370. position: "absolute",
  2371. color: "red",
  2372. fontSize: "10px",
  2373. lineHeight: "20px",
  2374. }}
  2375. >
  2376. 省内:湖南省<br></br>省外:除湖南省以外
  2377. </span>
  2378. </FormItem>
  2379. <FormItem
  2380. className="half-item"
  2381. {...formItemLayout}
  2382. label="特批:"
  2383. >
  2384. <RadioGroup
  2385. value={!this.state.ordapproval ? 0 : 1}
  2386. onChange={(e) => {
  2387. this.setState({ ordapproval: e.target.value });
  2388. }}
  2389. >
  2390. <Radio value={0}>否</Radio>
  2391. <Radio value={1}>是</Radio>
  2392. </RadioGroup>
  2393. <span
  2394. style={{
  2395. position: "absolute",
  2396. color: "red",
  2397. fontSize: "10px",
  2398. lineHeight: "15px",
  2399. }}
  2400. >
  2401. 注:特批单,省内省外,<br></br>分别由周总,省外总经理
  2402. <br></br>特批后,方可至开票流程
  2403. </span>
  2404. </FormItem>
  2405. </div>
  2406. <hr
  2407. style={{
  2408. border: "1px dashed #aaa",
  2409. width: "90%",
  2410. margin: "auto",
  2411. }}
  2412. />
  2413. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  2414. <span style={{ fontSize: "14px" }}>发票内容</span>
  2415. </div>
  2416. <div className="clearfix">
  2417. <FormItem
  2418. className="half-item"
  2419. {...formItemLayout}
  2420. label={
  2421. <span>
  2422. <strong style={{ color: "#f00" }}>*</strong>
  2423. 发票类型
  2424. </span>
  2425. }
  2426. >
  2427. <RadioGroup
  2428. style={{ width: "160%" }}
  2429. onChange={(e) => {
  2430. this.setState({ invoiceType: e.target.value });
  2431. }}
  2432. value={this.state.invoiceType}
  2433. >
  2434. <Radio value={0}>增值税专用发票</Radio>
  2435. <Radio value={1}>增值税普通发票</Radio>
  2436. <Radio value={2}>其他</Radio>
  2437. </RadioGroup>
  2438. </FormItem>
  2439. </div>
  2440. <div className="clearfix">
  2441. <FormItem
  2442. className="half-item"
  2443. {...formItemLayout}
  2444. label={
  2445. <span>
  2446. <strong style={{ color: "#f00" }}>*</strong>
  2447. 单位名称
  2448. </span>
  2449. }
  2450. >
  2451. {
  2452. <Input
  2453. placeholder="请输入单位名称"
  2454. value={this.state.unitName}
  2455. onChange={(e) => {
  2456. this.setState({ unitName: e.target.value });
  2457. }}
  2458. style={{ width: "240px" }}
  2459. />
  2460. }
  2461. <span
  2462. style={{
  2463. position: "absolute",
  2464. color: "red",
  2465. fontSize: "10px",
  2466. lineHeight: "15px",
  2467. width: "30%",
  2468. }}
  2469. >
  2470. 系统读取单位<br></br>名称,可修改
  2471. </span>
  2472. </FormItem>
  2473. <FormItem
  2474. className="half-item"
  2475. {...formItemLayout}
  2476. label={
  2477. <span>
  2478. <strong style={{ color: "#f00" }}>*</strong>税号
  2479. </span>
  2480. }
  2481. >
  2482. {
  2483. <Input
  2484. placeholder="请输入税号"
  2485. value={this.state.taxNumber}
  2486. onChange={(e) => {
  2487. this.setState({ taxNumber: e.target.value });
  2488. }}
  2489. style={{ width: "240px" }}
  2490. />
  2491. }
  2492. </FormItem>
  2493. <FormItem
  2494. className="half-item"
  2495. {...formItemLayout}
  2496. label={
  2497. <span>
  2498. <strong style={{ color: "#f00" }}>*</strong>
  2499. 开票金额(万元)
  2500. </span>
  2501. }
  2502. >
  2503. {
  2504. <Input
  2505. placeholder="请输入开票金额"
  2506. value={this.state.amount}
  2507. onChange={(e) => {
  2508. this.setState({ amount: e.target.value });
  2509. }}
  2510. style={{ width: "240px" }}
  2511. />
  2512. }
  2513. <span
  2514. style={{
  2515. position: "absolute",
  2516. color: "red",
  2517. fontSize: "10px",
  2518. lineHeight: "15px",
  2519. width: "30%",
  2520. }}
  2521. >
  2522. 填写本次开票<br></br>金额
  2523. </span>
  2524. </FormItem>
  2525. <FormItem
  2526. className="half-item"
  2527. {...formItemLayout}
  2528. label={
  2529. <span>
  2530. <strong style={{ color: "#f00" }}>*</strong>
  2531. 开户行及银行账号
  2532. </span>
  2533. }
  2534. >
  2535. {
  2536. <Input
  2537. placeholder="请输入开户行及银行账号"
  2538. value={this.state.banks}
  2539. onChange={(e) => {
  2540. this.setState({ banks: e.target.value });
  2541. }}
  2542. style={{ width: "240px" }}
  2543. />
  2544. }
  2545. </FormItem>
  2546. <FormItem
  2547. className="half-item"
  2548. {...formItemLayout}
  2549. label={
  2550. <span>
  2551. <strong style={{ color: "#f00" }}>*</strong>
  2552. 开票内容及说明
  2553. </span>
  2554. }
  2555. >
  2556. {
  2557. <Input
  2558. placeholder="请输入开票内容及说明"
  2559. value={this.state.content}
  2560. onChange={(e) => {
  2561. this.setState({ content: e.target.value });
  2562. }}
  2563. style={{ width: "240px" }}
  2564. />
  2565. }
  2566. </FormItem>
  2567. <FormItem
  2568. className="half-item"
  2569. {...formItemLayout}
  2570. label={
  2571. <span>
  2572. <strong style={{ color: "#f00" }}>*</strong>
  2573. 单位地址
  2574. </span>
  2575. }
  2576. >
  2577. {
  2578. <Input
  2579. placeholder="请输入单位地址"
  2580. value={this.state.unitAddress}
  2581. onChange={(e) => {
  2582. this.setState({ unitAddress: e.target.value });
  2583. }}
  2584. style={{ width: "240px" }}
  2585. />
  2586. }
  2587. </FormItem>
  2588. <FormItem
  2589. className="half-item"
  2590. {...formItemLayout}
  2591. label="备注"
  2592. >
  2593. {
  2594. <Input
  2595. placeholder="请备注开票公司名称"
  2596. value={this.state.invoiceRemarks}
  2597. onChange={(e) => {
  2598. this.setState({
  2599. invoiceRemarks: e.target.value,
  2600. });
  2601. }}
  2602. style={{ width: "240px" }}
  2603. />
  2604. }
  2605. <span
  2606. style={{
  2607. position: "absolute",
  2608. color: "red",
  2609. fontSize: "10px",
  2610. lineHeight: "15px",
  2611. width: "30%",
  2612. }}
  2613. >
  2614. 开票公司名称,<br></br>如:科德集团
  2615. </span>
  2616. </FormItem>
  2617. <FormItem
  2618. className="half-item"
  2619. {...formItemLayout}
  2620. label={
  2621. <span>
  2622. <strong style={{ color: "#f00" }}>*</strong>
  2623. 单位电话
  2624. </span>
  2625. }
  2626. >
  2627. {
  2628. <Input
  2629. placeholder="请输入单位电话"
  2630. value={this.state.unitMobile}
  2631. onChange={(e) => {
  2632. this.setState({ unitMobile: e.target.value });
  2633. }}
  2634. style={{ width: "240px" }}
  2635. />
  2636. }
  2637. </FormItem>
  2638. </div>
  2639. <div className="clearfix">
  2640. <FormItem
  2641. labelCol={{ span: 4 }}
  2642. wrapperCol={{ span: 18 }}
  2643. label={
  2644. <span>
  2645. <strong style={{ color: "#f00" }}>*</strong>
  2646. 上传附件
  2647. </span>
  2648. }
  2649. >
  2650. <PicturesWall
  2651. domId={"billing1"}
  2652. fileList={this.getOrgCodeUrl}
  2653. pictureUrl={this.state.orgCodeUrl}
  2654. />
  2655. <span
  2656. style={{
  2657. paddingTop: "10px",
  2658. paddingLeft: "10px",
  2659. color: "red",
  2660. fontSize: "14px",
  2661. }}
  2662. >
  2663. 注:请上传带"公司盖章"的开票申请纸质凭证
  2664. </span>
  2665. <p>图片建议:要清晰。</p>
  2666. </FormItem>
  2667. </div>
  2668. <hr
  2669. style={{
  2670. border: "1px dashed #aaa",
  2671. width: "90%",
  2672. margin: "auto",
  2673. }}
  2674. />
  2675. <div className="clearfix" style={{ marginTop: "10px" }}>
  2676. <FormItem
  2677. className="half-item"
  2678. {...formItemLayout}
  2679. label="发票是否邮寄:"
  2680. >
  2681. <RadioGroup
  2682. value={this.state.post}
  2683. onChange={(e) => {
  2684. this.setState({ post: e.target.value });
  2685. }}
  2686. >
  2687. <Radio value={0}>是</Radio>
  2688. <Radio value={1}>否</Radio>
  2689. </RadioGroup>
  2690. </FormItem>
  2691. </div>
  2692. {this.state.post === 0 ? (
  2693. <div className="clearfix">
  2694. <FormItem
  2695. className="half-item"
  2696. {...formItemLayout}
  2697. label="收信人姓名"
  2698. >
  2699. {
  2700. <Input
  2701. placeholder="请输入收信人姓名"
  2702. value={this.state.addressee}
  2703. onChange={(e) => {
  2704. this.setState({ addressee: e.target.value });
  2705. }}
  2706. style={{ width: "240px" }}
  2707. />
  2708. }
  2709. </FormItem>
  2710. <FormItem
  2711. className="half-item"
  2712. {...formItemLayout}
  2713. label="电话"
  2714. >
  2715. {
  2716. <Input
  2717. placeholder="请输入电话"
  2718. value={this.state.addresseeMobile}
  2719. onChange={(e) => {
  2720. this.setState({
  2721. addresseeMobile: e.target.value,
  2722. });
  2723. }}
  2724. style={{ width: "240px" }}
  2725. />
  2726. }
  2727. </FormItem>
  2728. </div>
  2729. ) : (
  2730. ""
  2731. )}
  2732. {this.state.post === 0 ? (
  2733. <div className="clearfix">
  2734. <FormItem
  2735. className="half-item"
  2736. {...formItemLayout}
  2737. label="省-市-区"
  2738. >
  2739. <Cascader
  2740. options={areaSelect()}
  2741. value={this.state.ProvinceCity}
  2742. placeholder="选择城市"
  2743. style={{ width: "95%" }}
  2744. onChange={(e) => {
  2745. this.setState({ ProvinceCity: e });
  2746. }}
  2747. />
  2748. </FormItem>
  2749. </div>
  2750. ) : (
  2751. ""
  2752. )}
  2753. {this.state.post === 0 ? (
  2754. <div className="clearfix">
  2755. <FormItem
  2756. className="half-item"
  2757. {...formItemLayout}
  2758. label="详细地址"
  2759. >
  2760. {
  2761. <Input
  2762. placeholder="请输入详细地址"
  2763. value={this.state.recipientAddress}
  2764. onChange={(e) => {
  2765. this.setState({
  2766. recipientAddress: e.target.value,
  2767. });
  2768. }}
  2769. style={{ width: "240px" }}
  2770. />
  2771. }
  2772. </FormItem>
  2773. </div>
  2774. ) : (
  2775. ""
  2776. )}
  2777. {/* 隐藏 */}
  2778. {/* <FormItem
  2779. className="half-item"
  2780. {...formItemLayout}
  2781. label={
  2782. <span>
  2783. <strong style={{ color: "#f00" }}>*</strong>
  2784. 开票金额总计
  2785. </span>
  2786. }
  2787. >
  2788. {
  2789. <Input
  2790. value={this.state.alreadyAmount}
  2791. onChange={e => {
  2792. this.setState({ alreadyAmount: e.target.value });
  2793. }}
  2794. style={{ width: "40px" }}
  2795. />
  2796. }
  2797. 万元
  2798. <span
  2799. style={{
  2800. position: "absolute",
  2801. color: "red",
  2802. fontSize: "10px",
  2803. lineHeight: "15px",
  2804. marginLeft: "20px"
  2805. }}
  2806. >
  2807. 默认值为0.新开票订单此项不用填.<br></br>
  2808. 以前已开票订单,请填写已开票的总计<br></br>
  2809. 金额,便于审核核对!
  2810. </span>
  2811. </FormItem> */}
  2812. </div>
  2813. <Button
  2814. className="cancel"
  2815. type="primary"
  2816. style={{ marginRight: "50px", float: "right" }}
  2817. size="large"
  2818. onClick={this.submitApp}
  2819. >
  2820. 提交申请
  2821. </Button>
  2822. {/*<Button className="cancel" type="primary" style={{marginRight:"50px",float:'right',background:'deepskyblue',border:'none'}} size="large" onClick={this.saveApp}>保存</Button>*/}
  2823. </Spin>
  2824. </Form>
  2825. </Modal>
  2826. ) : (
  2827. <div />
  2828. )}
  2829. <Modal
  2830. maskClosable={false}
  2831. visible={this.state.bvisible}
  2832. footer=""
  2833. title="开票历史记录"
  2834. className="admin-desc-content"
  2835. width="1200px"
  2836. onCancel={(e) => {
  2837. this.setState({
  2838. bvisible: false,
  2839. });
  2840. }}
  2841. style={{ zIndex: 5 }}
  2842. >
  2843. <Spin spinning={this.state.loading}>
  2844. <div className="patent-table">
  2845. <Table
  2846. columns={this.state.columnsDate}
  2847. onRowClick={this.dtableRowClick}
  2848. dataSource={this.state.recordData}
  2849. pagination={false}
  2850. />
  2851. <div className="clearfix" style={{ marginTop: "20px" }}>
  2852. <FormItem
  2853. className="half-item"
  2854. {...formItemLayout}
  2855. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  2856. >
  2857. <span>{this.state.sum + "(万元)"}</span>
  2858. </FormItem>
  2859. </div>
  2860. </div>
  2861. </Spin>
  2862. </Modal>
  2863. <Modal
  2864. maskClosable={false}
  2865. visible={this.state.visibleR}
  2866. className="admin-desc-content"
  2867. footer=""
  2868. title="拒绝理由"
  2869. width="400px"
  2870. onCancel={this.rejectCancels}
  2871. >
  2872. <Input.TextArea
  2873. disabled={true}
  2874. rows={4}
  2875. value={this.state.reason}
  2876. style={{ color: "black" }}
  2877. ></Input.TextArea>
  2878. </Modal>
  2879. <Modal
  2880. maskClosable={false}
  2881. className="admin-desc-content"
  2882. footer=""
  2883. title="开具发票申请单"
  2884. width="1200px"
  2885. visible={this.state.cvisible}
  2886. onOk={this.visitOks}
  2887. onCancel={this.visitCancels}
  2888. style={{ zIndex: 999 }}
  2889. >
  2890. <Form
  2891. layout="horizontal"
  2892. // id="demand-form"
  2893. style={{ paddingBottom: "40px" }}
  2894. >
  2895. <Spin spinning={this.state.loading}>
  2896. <div className="clearfix">
  2897. <div className="clearfix">
  2898. <FormItem
  2899. className="half-item"
  2900. {...formItemLayout}
  2901. label="合同编号"
  2902. >
  2903. <span>{this.state.contractNo}</span>
  2904. </FormItem>
  2905. <FormItem
  2906. className="half-item"
  2907. {...formItemLayout}
  2908. label="备注"
  2909. >
  2910. {
  2911. <Input
  2912. placeholder="填写申请发票原因"
  2913. value={this.state.remarks}
  2914. onChange={(e) => {
  2915. this.setState({ remarks: e.target.value });
  2916. }}
  2917. style={{ width: "240px" }}
  2918. />
  2919. }
  2920. </FormItem>
  2921. </div>
  2922. <div className="clearfix">
  2923. <FormItem
  2924. className="half-item"
  2925. {...formItemLayout}
  2926. label="省内/外:"
  2927. >
  2928. <RadioGroup
  2929. value={this.state.type}
  2930. onChange={(e) => {
  2931. this.setState({ type: e.target.value });
  2932. }}
  2933. >
  2934. <Radio value={0}>省内</Radio>
  2935. <Radio value={1}>省外</Radio>
  2936. </RadioGroup>
  2937. <span
  2938. style={{
  2939. position: "absolute",
  2940. color: "red",
  2941. fontSize: "10px",
  2942. lineHeight: "20px",
  2943. }}
  2944. >
  2945. 省内:湖南省<br></br>省外:除湖南省以外
  2946. </span>
  2947. </FormItem>
  2948. <FormItem
  2949. className="half-item"
  2950. {...formItemLayout}
  2951. label="特批:"
  2952. >
  2953. <RadioGroup
  2954. value={!this.state.ordapproval ? 0 : 1}
  2955. onChange={(e) => {
  2956. this.setState({ ordapproval: e.target.value });
  2957. }}
  2958. >
  2959. <Radio value={0}>否</Radio>
  2960. <Radio value={1}>是</Radio>
  2961. </RadioGroup>
  2962. <span
  2963. style={{
  2964. position: "absolute",
  2965. color: "red",
  2966. fontSize: "10px",
  2967. lineHeight: "15px",
  2968. }}
  2969. >
  2970. 注:特批单,省内省外,<br></br>分别由周总,省外总经理
  2971. <br></br>特批后,方可至开票流程
  2972. </span>
  2973. </FormItem>
  2974. </div>
  2975. <hr
  2976. style={{
  2977. border: "1px dashed #aaa",
  2978. width: "90%",
  2979. margin: "auto",
  2980. }}
  2981. />
  2982. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  2983. <span style={{ fontSize: "14px" }}>发票内容</span>
  2984. </div>
  2985. <div className="clearfix">
  2986. <FormItem
  2987. className="half-item"
  2988. {...formItemLayout}
  2989. label={
  2990. <span>
  2991. <strong style={{ color: "#f00" }}>*</strong>
  2992. 发票类型
  2993. </span>
  2994. }
  2995. >
  2996. <RadioGroup
  2997. style={{ width: "160%" }}
  2998. onChange={(e) => {
  2999. this.setState({ invoiceType: e.target.value });
  3000. }}
  3001. value={this.state.invoiceType}
  3002. >
  3003. <Radio value={0}>增值税专用发票</Radio>
  3004. <Radio value={1}>增值税普通发票</Radio>
  3005. <Radio value={2}>其他</Radio>
  3006. </RadioGroup>
  3007. </FormItem>
  3008. </div>
  3009. <div className="clearfix">
  3010. <FormItem
  3011. className="half-item"
  3012. {...formItemLayout}
  3013. label={
  3014. <span>
  3015. <strong style={{ color: "#f00" }}>*</strong>
  3016. 单位名称
  3017. </span>
  3018. }
  3019. >
  3020. {
  3021. <Input
  3022. placeholder="请输入单位名称"
  3023. value={this.state.unitName}
  3024. onChange={(e) => {
  3025. this.setState({ unitName: e.target.value });
  3026. }}
  3027. style={{ width: "240px" }}
  3028. />
  3029. }
  3030. <span
  3031. style={{
  3032. position: "absolute",
  3033. color: "red",
  3034. fontSize: "10px",
  3035. lineHeight: "15px",
  3036. width: "30%",
  3037. }}
  3038. >
  3039. 系统读取单位<br></br>名称,可修改
  3040. </span>
  3041. </FormItem>
  3042. <FormItem
  3043. className="half-item"
  3044. {...formItemLayout}
  3045. label={
  3046. <span>
  3047. <strong style={{ color: "#f00" }}>*</strong>税号
  3048. </span>
  3049. }
  3050. >
  3051. {
  3052. <Input
  3053. placeholder="请输入税号"
  3054. value={this.state.taxNumber}
  3055. onChange={(e) => {
  3056. this.setState({ taxNumber: e.target.value });
  3057. }}
  3058. style={{ width: "240px" }}
  3059. />
  3060. }
  3061. </FormItem>
  3062. <FormItem
  3063. className="half-item"
  3064. {...formItemLayout}
  3065. label={
  3066. <span>
  3067. <strong style={{ color: "#f00" }}>*</strong>
  3068. 开票金额(万元)
  3069. </span>
  3070. }
  3071. >
  3072. {
  3073. <Input
  3074. placeholder="请输入开票金额"
  3075. value={this.state.amount}
  3076. onChange={(e) => {
  3077. this.setState({ amount: e.target.value });
  3078. }}
  3079. style={{ width: "240px" }}
  3080. />
  3081. }
  3082. <span
  3083. style={{
  3084. position: "absolute",
  3085. color: "red",
  3086. fontSize: "10px",
  3087. lineHeight: "15px",
  3088. width: "30%",
  3089. }}
  3090. >
  3091. 填写本次开票<br></br>金额
  3092. </span>
  3093. </FormItem>
  3094. <FormItem
  3095. className="half-item"
  3096. {...formItemLayout}
  3097. label={
  3098. <span>
  3099. <strong style={{ color: "#f00" }}>*</strong>
  3100. 开户行及银行账号
  3101. </span>
  3102. }
  3103. >
  3104. {
  3105. <Input
  3106. placeholder="请输入开户行及银行账号"
  3107. value={this.state.banks}
  3108. onChange={(e) => {
  3109. this.setState({ banks: e.target.value });
  3110. }}
  3111. style={{ width: "240px" }}
  3112. />
  3113. }
  3114. </FormItem>
  3115. <FormItem
  3116. className="half-item"
  3117. {...formItemLayout}
  3118. label={
  3119. <span>
  3120. <strong style={{ color: "#f00" }}>*</strong>
  3121. 开票内容及说明
  3122. </span>
  3123. }
  3124. >
  3125. {
  3126. <Input
  3127. placeholder="请输入开票内容及说明"
  3128. value={this.state.content}
  3129. onChange={(e) => {
  3130. this.setState({ content: e.target.value });
  3131. }}
  3132. style={{ width: "240px" }}
  3133. />
  3134. }
  3135. </FormItem>
  3136. <FormItem
  3137. className="half-item"
  3138. {...formItemLayout}
  3139. label={
  3140. <span>
  3141. <strong style={{ color: "#f00" }}>*</strong>
  3142. 单位地址
  3143. </span>
  3144. }
  3145. >
  3146. {
  3147. <Input
  3148. placeholder="请输入单位地址"
  3149. value={this.state.unitAddress}
  3150. onChange={(e) => {
  3151. this.setState({ unitAddress: e.target.value });
  3152. }}
  3153. style={{ width: "240px" }}
  3154. />
  3155. }
  3156. </FormItem>
  3157. <FormItem
  3158. className="half-item"
  3159. {...formItemLayout}
  3160. label="备注"
  3161. >
  3162. {
  3163. <Input
  3164. placeholder="请备注开票公司名称"
  3165. value={this.state.invoiceRemarks}
  3166. onChange={(e) => {
  3167. this.setState({
  3168. invoiceRemarks: e.target.value,
  3169. });
  3170. }}
  3171. style={{ width: "240px" }}
  3172. />
  3173. }
  3174. <span
  3175. style={{
  3176. position: "absolute",
  3177. color: "red",
  3178. fontSize: "10px",
  3179. lineHeight: "15px",
  3180. width: "30%",
  3181. }}
  3182. >
  3183. 开票公司名称,<br></br>如:科德集团
  3184. </span>
  3185. </FormItem>
  3186. <FormItem
  3187. className="half-item"
  3188. {...formItemLayout}
  3189. label={
  3190. <span>
  3191. <strong style={{ color: "#f00" }}>*</strong>
  3192. 单位电话
  3193. </span>
  3194. }
  3195. >
  3196. {
  3197. <Input
  3198. placeholder="请输入单位电话"
  3199. value={this.state.unitMobile}
  3200. onChange={(e) => {
  3201. this.setState({ unitMobile: e.target.value });
  3202. }}
  3203. style={{ width: "240px" }}
  3204. />
  3205. }
  3206. </FormItem>
  3207. </div>
  3208. <div className="clearfix">
  3209. <FormItem
  3210. labelCol={{ span: 4 }}
  3211. wrapperCol={{ span: 18 }}
  3212. label={
  3213. <span>
  3214. <strong style={{ color: "#f00" }}>*</strong>
  3215. 上传附件
  3216. </span>
  3217. }
  3218. >
  3219. <PicturesWall
  3220. domId={"billing2"}
  3221. fileList={this.getOrgCodeUrl}
  3222. pictureUrl={this.state.orgCodeUrl}
  3223. />
  3224. <span
  3225. style={{
  3226. paddingTop: "10px",
  3227. paddingLeft: "10px",
  3228. color: "red",
  3229. fontSize: "14px",
  3230. }}
  3231. >
  3232. 注:请上传带"公司盖章"的开票申请纸质凭证
  3233. </span>
  3234. <p>图片建议:要清晰。</p>
  3235. </FormItem>
  3236. </div>
  3237. <hr
  3238. style={{
  3239. border: "1px dashed #aaa",
  3240. width: "90%",
  3241. margin: "auto",
  3242. }}
  3243. />
  3244. <div className="clearfix" style={{ marginTop: "10px" }}>
  3245. <FormItem
  3246. className="half-item"
  3247. {...formItemLayout}
  3248. label="发票是否邮寄:"
  3249. >
  3250. <RadioGroup
  3251. value={this.state.post}
  3252. onChange={(e) => {
  3253. this.setState({ post: e.target.value });
  3254. }}
  3255. >
  3256. <Radio value={0}>是</Radio>
  3257. <Radio value={1}>否</Radio>
  3258. </RadioGroup>
  3259. </FormItem>
  3260. </div>
  3261. {this.state.post === 0 ? (
  3262. <div className="clearfix">
  3263. <FormItem
  3264. className="half-item"
  3265. {...formItemLayout}
  3266. label="收信人姓名"
  3267. >
  3268. {
  3269. <Input
  3270. placeholder="请输入收信人姓名"
  3271. value={this.state.addressee}
  3272. onChange={(e) => {
  3273. this.setState({ addressee: e.target.value });
  3274. }}
  3275. style={{ width: "240px" }}
  3276. />
  3277. }
  3278. </FormItem>
  3279. <FormItem
  3280. className="half-item"
  3281. {...formItemLayout}
  3282. label="电话"
  3283. >
  3284. {
  3285. <Input
  3286. placeholder="请输入电话"
  3287. value={this.state.addresseeMobile}
  3288. onChange={(e) => {
  3289. this.setState({
  3290. addresseeMobile: e.target.value,
  3291. });
  3292. }}
  3293. style={{ width: "240px" }}
  3294. />
  3295. }
  3296. </FormItem>
  3297. </div>
  3298. ) : (
  3299. ""
  3300. )}
  3301. {this.state.post === 0 ? (
  3302. <div className="clearfix">
  3303. <FormItem
  3304. className="half-item"
  3305. {...formItemLayout}
  3306. label="省-市-区"
  3307. >
  3308. <Cascader
  3309. options={areaSelect()}
  3310. value={this.state.ProvinceCity}
  3311. placeholder="选择城市"
  3312. style={{ width: "95%" }}
  3313. onChange={(e) => {
  3314. this.setState({ ProvinceCity: e });
  3315. }}
  3316. />
  3317. </FormItem>
  3318. </div>
  3319. ) : (
  3320. ""
  3321. )}
  3322. {this.state.post === 0 ? (
  3323. <div className="clearfix">
  3324. <FormItem
  3325. className="half-item"
  3326. {...formItemLayout}
  3327. label="详细地址"
  3328. >
  3329. {
  3330. <Input
  3331. placeholder="请输入详细地址"
  3332. value={this.state.recipientAddress}
  3333. onChange={(e) => {
  3334. this.setState({
  3335. recipientAddress: e.target.value,
  3336. });
  3337. }}
  3338. style={{ width: "240px" }}
  3339. />
  3340. }
  3341. </FormItem>
  3342. </div>
  3343. ) : (
  3344. ""
  3345. )}
  3346. {/* <FormItem
  3347. className="half-item"
  3348. {...formItemLayout}
  3349. label={
  3350. <span>
  3351. <strong style={{ color: "#f00" }}>*</strong>
  3352. 开票金额总计
  3353. </span>
  3354. }
  3355. >
  3356. {
  3357. <Input
  3358. value={this.state.alreadyAmount}
  3359. onChange={e => {
  3360. this.setState({ alreadyAmount: e.target.value });
  3361. }}
  3362. style={{ width: "40px" }}
  3363. />
  3364. }
  3365. 万元
  3366. <span
  3367. style={{
  3368. position: "absolute",
  3369. color: "red",
  3370. fontSize: "10px",
  3371. lineHeight: "15px",
  3372. marginLeft: "20px"
  3373. }}
  3374. >
  3375. 默认值为0.新开票订单此项不用填.<br></br>
  3376. 以前已开票订单,请填写已开票的总计<br></br>
  3377. 金额,便于审核核对!
  3378. </span>
  3379. </FormItem> */}
  3380. </div>
  3381. <Button
  3382. className="cancel"
  3383. type="primary"
  3384. style={{ marginRight: "50px", float: "right" }}
  3385. size="large"
  3386. onClick={this.submitApp}
  3387. >
  3388. 提交申请
  3389. </Button>
  3390. {/*<Button className="cancel" type="primary" style={{marginRight:"50px",float:'right',background:'deepskyblue',border:'none'}} size="large" onClick={this.saveApp}>保存</Button>*/}
  3391. </Spin>
  3392. </Form>
  3393. </Modal>
  3394. <Modal
  3395. maskClosable={false}
  3396. className="admin-desc-content"
  3397. footer=""
  3398. title="开具发票申请单"
  3399. width="1200px"
  3400. visible={this.state.dvisible}
  3401. onOk={this.visitOks}
  3402. onCancel={this.dvisitCancels}
  3403. >
  3404. <Form
  3405. layout="horizontal"
  3406. // id="demand-form"
  3407. style={{ paddingBottom: "40px" }}
  3408. >
  3409. <Spin spinning={this.state.loading}>
  3410. <div className="clearfix">
  3411. <div className="clearfix">
  3412. <FormItem
  3413. className="half-item"
  3414. {...formItemLayout}
  3415. label="合同编号"
  3416. >
  3417. <span>{this.state.contractNo}</span>
  3418. </FormItem>
  3419. <FormItem
  3420. className="half-item"
  3421. {...formItemLayout}
  3422. label="备注"
  3423. >
  3424. <span>{this.state.remarks}</span>
  3425. </FormItem>
  3426. </div>
  3427. <div className="clearfix">
  3428. <FormItem
  3429. className="half-item"
  3430. {...formItemLayout}
  3431. label={
  3432. <span>
  3433. <strong style={{ color: "#f00" }}>*</strong>
  3434. 省内/外
  3435. </span>
  3436. }
  3437. >
  3438. <span>{getProvinceA(this.state.type)}</span>
  3439. </FormItem>
  3440. <FormItem
  3441. className="half-item"
  3442. {...formItemLayout}
  3443. label={
  3444. <span>
  3445. <strong style={{ color: "#f00" }}>*</strong>特批
  3446. </span>
  3447. }
  3448. >
  3449. <span>
  3450. {this.state.ordapproval === 0 ? "否" : "是"}
  3451. </span>
  3452. </FormItem>
  3453. </div>
  3454. <hr
  3455. style={{
  3456. border: "1px dashed #aaa",
  3457. width: "90%",
  3458. margin: "auto",
  3459. }}
  3460. />
  3461. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  3462. <span style={{ fontSize: "14px" }}>发票内容</span>
  3463. </div>
  3464. <div className="clearfix">
  3465. <FormItem
  3466. className="half-item"
  3467. {...formItemLayout}
  3468. label={
  3469. <span>
  3470. <strong style={{ color: "#f00" }}>*</strong>
  3471. 发票类型
  3472. </span>
  3473. }
  3474. >
  3475. <span>
  3476. {this.state.invoiceType === 0
  3477. ? "增值税专用发票"
  3478. : this.state.invoiceType === 1
  3479. ? "增值税普通发票"
  3480. : "其他"}
  3481. </span>
  3482. </FormItem>
  3483. </div>
  3484. <div className="clearfix">
  3485. <FormItem
  3486. className="half-item"
  3487. {...formItemLayout}
  3488. label={
  3489. <span>
  3490. <strong style={{ color: "#f00" }}>*</strong>
  3491. 单位名称
  3492. </span>
  3493. }
  3494. >
  3495. <span>{this.state.unitName}</span>
  3496. </FormItem>
  3497. <FormItem
  3498. className="half-item"
  3499. {...formItemLayout}
  3500. label={
  3501. <span>
  3502. <strong style={{ color: "#f00" }}>*</strong>税号
  3503. </span>
  3504. }
  3505. >
  3506. <span>{this.state.taxNumber}</span>
  3507. </FormItem>
  3508. <FormItem
  3509. className="half-item"
  3510. {...formItemLayout}
  3511. label={
  3512. <span>
  3513. <strong style={{ color: "#f00" }}>*</strong>
  3514. 开票金额(万元)
  3515. </span>
  3516. }
  3517. >
  3518. <span>{this.state.amount}</span>
  3519. </FormItem>
  3520. <FormItem
  3521. className="half-item"
  3522. {...formItemLayout}
  3523. label={
  3524. <span>
  3525. <strong style={{ color: "#f00" }}>*</strong>
  3526. 开户行银行账号
  3527. </span>
  3528. }
  3529. >
  3530. <span>{this.state.banks}</span>
  3531. </FormItem>
  3532. <FormItem
  3533. className="half-item"
  3534. {...formItemLayout}
  3535. label={
  3536. <span>
  3537. <strong style={{ color: "#f00" }}>*</strong>
  3538. 开票内容及说明
  3539. </span>
  3540. }
  3541. >
  3542. <span>{this.state.content}</span>
  3543. </FormItem>
  3544. <FormItem
  3545. className="half-item"
  3546. {...formItemLayout}
  3547. label={
  3548. <span>
  3549. <strong style={{ color: "#f00" }}>*</strong>
  3550. 单位地址
  3551. </span>
  3552. }
  3553. >
  3554. <span>{this.state.unitAddress}</span>
  3555. </FormItem>
  3556. <FormItem
  3557. className="half-item"
  3558. {...formItemLayout}
  3559. label="备注"
  3560. >
  3561. <span>{this.state.invoiceRemarks}</span>
  3562. </FormItem>
  3563. <FormItem
  3564. className="half-item"
  3565. {...formItemLayout}
  3566. label={
  3567. <span>
  3568. <strong style={{ color: "#f00" }}>*</strong>
  3569. 单位电话
  3570. </span>
  3571. }
  3572. >
  3573. <span>{this.state.unitMobile}</span>
  3574. </FormItem>
  3575. </div>
  3576. <div className="clearfix">
  3577. <FormItem
  3578. labelCol={{ span: 4 }}
  3579. wrapperCol={{ span: 18 }}
  3580. label={
  3581. <span>
  3582. <strong style={{ color: "#f00" }}>*</strong>附件
  3583. </span>
  3584. }
  3585. >
  3586. <Upload
  3587. className="demandDetailShow-upload"
  3588. listType="picture-card"
  3589. fileList={this.state.orgCodeUrl}
  3590. onPreview={(file) => {
  3591. this.setState({
  3592. previewImage: file.url || file.thumbUrl,
  3593. previewVisible: true,
  3594. });
  3595. }}
  3596. />
  3597. {/*<div style={{paddingTop:'10px',paddingBottom:'10px'}}>*/}
  3598. {/* <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'}/>*/}
  3599. {/*</div>*/}
  3600. <Modal
  3601. maskClosable={false}
  3602. footer={null}
  3603. visible={this.state.previewVisible}
  3604. onCancel={() => {
  3605. this.setState({ previewVisible: false });
  3606. }}
  3607. >
  3608. <img
  3609. alt=""
  3610. style={{ width: "100%" }}
  3611. src={this.state.previewImage || ""}
  3612. />
  3613. </Modal>
  3614. </FormItem>
  3615. </div>
  3616. <hr
  3617. style={{
  3618. border: "1px dashed #aaa",
  3619. width: "90%",
  3620. margin: "auto",
  3621. }}
  3622. />
  3623. <div className="clearfix" style={{ marginTop: "10px" }}>
  3624. <FormItem
  3625. className="half-item"
  3626. {...formItemLayout}
  3627. label="发票是否邮寄:"
  3628. >
  3629. <span>{this.state.post === 0 ? "是" : "否"}</span>
  3630. </FormItem>
  3631. </div>
  3632. {this.state.post === 0 ? (
  3633. <div>
  3634. <div className="clearfix">
  3635. <FormItem
  3636. className="half-item"
  3637. {...formItemLayout}
  3638. label="收信人姓名"
  3639. >
  3640. <span>{this.state.addressee}</span>
  3641. </FormItem>
  3642. <FormItem
  3643. className="half-item"
  3644. {...formItemLayout}
  3645. label="电话"
  3646. >
  3647. <span>{this.state.addresseeMobile}</span>
  3648. </FormItem>
  3649. </div>
  3650. <div className="clearfix">
  3651. <FormItem
  3652. className="half-item"
  3653. {...formItemLayout}
  3654. label="省-市-区"
  3655. >
  3656. <span>
  3657. {getprovince(this.state.addresseeProvince)}/
  3658. {getprovince(this.state.addresseeCity)}/
  3659. {getprovince(this.state.addresseeArea)}
  3660. </span>
  3661. </FormItem>
  3662. </div>
  3663. <div className="clearfix">
  3664. <FormItem
  3665. className="half-item"
  3666. {...formItemLayout}
  3667. label="详细地址"
  3668. >
  3669. <span>{this.state.recipientAddress}</span>
  3670. </FormItem>
  3671. </div>
  3672. </div>
  3673. ) : (
  3674. ""
  3675. )}
  3676. </div>
  3677. {/* <FormItem
  3678. className="half-item"
  3679. {...formItemLayout}
  3680. label={
  3681. <span>
  3682. <strong style={{ color: "#f00" }}>*</strong>
  3683. 开票金额总计
  3684. </span>
  3685. }
  3686. >
  3687. <span>{this.state.alreadyAmount}万元</span>
  3688. </FormItem> */}
  3689. </Spin>
  3690. </Form>
  3691. </Modal>
  3692. <Modal
  3693. maskClosable={false}
  3694. visible={this.state.cuiVisible}
  3695. footer=""
  3696. title="催款详情"
  3697. className="admin-desc-content"
  3698. width="1300px"
  3699. pagination={false}
  3700. onCancel={() => {
  3701. // this.loadData();
  3702. this.setState({
  3703. cuiVisible: false,
  3704. });
  3705. }}
  3706. >
  3707. <Spin spinning={this.state.loading}>
  3708. <div
  3709. className="patent-table"
  3710. style={
  3711. {
  3712. // width: 900,
  3713. // position: "relative",
  3714. // left: "50%",
  3715. // transform: "translate(-50%)",
  3716. // padding: "25px 0 30px 30px"
  3717. }
  3718. }
  3719. ref={(e) => {
  3720. this.refs.all = e;
  3721. }}
  3722. >
  3723. <Table
  3724. columns={this.state.cuiColumns}
  3725. dataSource={this.state.cuiDataList}
  3726. scroll={{ x: "max-content", y: 0 }}
  3727. pagination={false}
  3728. bordered
  3729. size="small"
  3730. />
  3731. </div>
  3732. </Spin>
  3733. <ReactToPrint
  3734. trigger={() => (
  3735. <Button
  3736. type="primary"
  3737. style={{
  3738. float: "right",
  3739. marginTop: 10,
  3740. position: "absolute",
  3741. top: 0,
  3742. right: 30,
  3743. }}
  3744. >
  3745. 打印
  3746. </Button>
  3747. )}
  3748. content={() => this.refs.all}
  3749. />
  3750. </Modal>
  3751. <Modal
  3752. maskClosable={false}
  3753. visible={this.state.proVisible}
  3754. footer=""
  3755. title="项目进度"
  3756. className="admin-desc-content"
  3757. width="1300px"
  3758. pagination={false}
  3759. onCancel={() => {
  3760. // this.loadData();
  3761. this.setState({
  3762. proVisible: false,
  3763. });
  3764. }}
  3765. >
  3766. <Spin spinning={this.state.loading}>
  3767. <Project
  3768. record={this.state.record}
  3769. visible={this.state.pvisible}
  3770. cancel={() => {
  3771. this.setState({ pvisible: false });
  3772. }}
  3773. />
  3774. <div
  3775. className="patent-table"
  3776. ref={(e) => {
  3777. this.refs.all = e;
  3778. }}
  3779. >
  3780. <Table
  3781. columns={this.state.proColumns}
  3782. dataSource={this.state.proDataList}
  3783. onRowClick={this.tableRowClickPro}
  3784. pagination={false}
  3785. bordered
  3786. size="small"
  3787. />
  3788. </div>
  3789. {/* <span style={{ display: "block", marginTop: 10, color: "red" }}>
  3790. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  3791. </span> */}
  3792. </Spin>
  3793. <ReactToPrint
  3794. trigger={() => (
  3795. <Button
  3796. type="primary"
  3797. style={{
  3798. float: "right",
  3799. marginTop: 10,
  3800. position: "absolute",
  3801. top: 0,
  3802. right: 30,
  3803. }}
  3804. >
  3805. 打印
  3806. </Button>
  3807. )}
  3808. content={() => this.refs.all}
  3809. />
  3810. </Modal>
  3811. <Modal
  3812. maskClosable={false}
  3813. visible={this.state.upRelease}
  3814. footer=""
  3815. title="设置公出"
  3816. width={400}
  3817. onCancel={() => {
  3818. this.setState({
  3819. upRelease: false
  3820. })
  3821. }}
  3822. >
  3823. <div style={{ color: "red" }}>
  3824. <div style={{ textAlign: "center" }}>合同XXXXXXXXXXXXXX,属于“无限制”公出合同!</div>
  3825. <div style={{ textAlign: "center" }}>请预计所有技术老师,总计公出本合同的时长</div>
  3826. <div style={{ marginTop: 10, textAlign: "center" }}>
  3827. 预估公出时间 <Input style={{ width: 50, textAlign: "center" }} />(小时)
  3828. </div>
  3829. <div style={{ marginTop: 10, textAlign: "center" }}>
  3830. <Button
  3831. type="primary"
  3832. onClick={() => { }}
  3833. >
  3834. 确定
  3835. </Button>
  3836. </div>
  3837. <div style={{ textAlign: "center", marginBottom: 10 }}>审核后生效,如需修改,需重新审核</div>
  3838. </div>
  3839. </Modal>
  3840. </div>
  3841. </div>
  3842. );
  3843. },
  3844. })
  3845. );
  3846. export default MyService;