billing.jsx 131 KB

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