billing.jsx 132 KB

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