inquiry.jsx 150 KB

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