myTaskOutsource.jsx 125 KB

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