inquiry.jsx 141 KB

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