billing.jsx 130 KB

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