myTaskOutsource.jsx 128 KB

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