myTaskOutsource.jsx 124 KB

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