myTaskOutsource.jsx 127 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 {cuiJieDian } from '@/dataDic.js'
  9. import OrderDetail from "../../order/orderNew/changeComponent/orderDetail";
  10. import {
  11. Button,
  12. Form,
  13. Input,
  14. Select,
  15. Spin,
  16. Table,
  17. message,
  18. DatePicker,
  19. Modal,
  20. Radio,
  21. Cascader,
  22. Popconfirm,
  23. Tabs,
  24. Tag,
  25. notification
  26. } from "antd";
  27. import Assign from "@/manageCenter/publicComponent/assign";
  28. import { areaSelect } from "@/NewDicProvinceList";
  29. import { ChooseList } from "../../order/orderNew/chooseList";
  30. import OrderRiZi from "@/orderRiZi.jsx";
  31. import "./table.less";
  32. import {
  33. getProcessStatus,
  34. getApproval,
  35. getTaskStatus,
  36. getLiquidationStatus,
  37. getProjectStatus,
  38. splitUrl,
  39. getboutique,
  40. getprovince,
  41. moneyVerify,
  42. ShowModal
  43. } from "@/tools";
  44. import { taskStatus, projectStatus } from "@/dataDic.js";
  45. import ShowModalDiv from "@/showModal.jsx";
  46. import CheckProject from "../../components/checkProject";
  47. const FormItem = Form.Item;
  48. const { TabPane } = Tabs;
  49. const { Option } = Select;
  50. const { MonthPicker, RangePicker } = DatePicker;
  51. const MyTaskOutsource = React.createClass({
  52. loadData(pageNo) {
  53. this.state.data = [];
  54. this.setState({
  55. page: pageNo,
  56. loading: true,
  57. });
  58. $.ajax({
  59. method: "get",
  60. dataType: "json",
  61. crossDomain: false,
  62. url: globalConfig.context + "/api/admin/orderProject/orderTaskList",
  63. data: {
  64. pageNo: pageNo || this.state.page || 1,
  65. pageSize: this.state.pagination.pageSize,
  66. specially: 0, //个人
  67. name: this.state.nameSearch, //客户名称
  68. depId: this.state.departmenttSearch, //订单部门
  69. orderNo: this.state.orderNoSearch, //订单编号
  70. contractNo: this.state.contractNoSearch, //合同编号
  71. taskId: this.state.taskNoSearch, //项目编号
  72. taskStatus: this.state.taskStatuSearch, //项目状态
  73. projectStatus: this.state.projectStatusSearch, //项目状态
  74. adminName: this.state.adminName, //项目受理人
  75. outsource: 1,
  76. approval: this.state.approvalSearch, //特批状态搜索
  77. },
  78. success: function (data) {
  79. ShowModal(this);
  80. let theArr = [];
  81. if (!data.data || !data.data.list) {
  82. if (data.error && data.error.length) {
  83. message.warning(data.error[0].message);
  84. }
  85. } else {
  86. for (let i = 0; i < data.data.list.length; i++) {
  87. let thisdata = data.data.list[i];
  88. thisdata.key = i;
  89. thisdata.userName = thisdata.taskName.substring(0, 5) === "软件著作权"
  90. ? thisdata.userName +
  91. "(" +
  92. thisdata.commodityQuantity.toString() +
  93. "/" +
  94. thisdata.alreadyNumber +
  95. ")"
  96. : thisdata.userName;
  97. theArr.push(thisdata);
  98. }
  99. }
  100. this.state.pagination.current = data.data.pageNo;
  101. this.state.pagination.total = data.data.totalCount;
  102. if (data.data && data.data.list && !data.data.list.length) {
  103. this.state.pagination.current = 0;
  104. this.state.pagination.total = 0;
  105. }
  106. this.setState({
  107. dataSource: theArr,
  108. pagination: this.state.pagination,
  109. });
  110. }.bind(this),
  111. }).always(
  112. function () {
  113. this.setState({
  114. loading: false,
  115. });
  116. }.bind(this)
  117. );
  118. },
  119. waiDetail() {
  120. let url = window.location.href.substring(7)
  121. this.setState({
  122. loading: true,
  123. })
  124. $.ajax({
  125. method: 'get',
  126. dataType: 'json',
  127. crossDomain: false,
  128. url:
  129. globalConfig.context + '/api/admin/outsourceOrg/orderOutsourceDtails',
  130. data: {
  131. tid: this.state.id,
  132. orderNo: this.state.orderNo,
  133. },
  134. }).done(
  135. function (data) {
  136. this.setState({
  137. loading: false,
  138. })
  139. if (!data.error.length && data.data) {
  140. this.setState({
  141. startType: data.data.startType, //类型
  142. patentType: data.data.patentType, //专利类型
  143. patentNameType: data.data.patentNameType, //专利名称类型
  144. patentName: data.data.patentName, //专利名称
  145. outsourceRemarks: data.data.outsourceRemarks,
  146. remarks: data.data.remarks,
  147. companyName: data.data.companyName,
  148. amount: data.data.amount,
  149. mid: data.data.id,
  150. unitPrice: data.data.unitPrice,
  151. refundStatus: data.data.refundStatus,
  152. unitNumber: data.data.unitNumber,
  153. pictureUrl: data.data.pictureUrl
  154. ? splitUrl(
  155. data.data.pictureUrl,
  156. ',',
  157. globalConfig.avatarHost + '/upload',
  158. url
  159. )
  160. : [], //图片地址
  161. createTimes: data.data.createTimes,
  162. auditTimes: data.data.auditTimes,
  163. })
  164. } else if (data.error && data.error.length) {
  165. message.warning(data.error[0].message)
  166. } else if (!data.data) {
  167. this.setState({
  168. refundStatus: undefined,
  169. })
  170. }
  171. }.bind(this)
  172. )
  173. },
  174. getInitialState() {
  175. return {
  176. paySubject: [],
  177. orderData: [],
  178. orderNo: "",
  179. jiedian: [],
  180. jiedianNew: [],
  181. page: 1,
  182. timeVisible: false,
  183. searchMore: true,
  184. assignVisible: false,
  185. releaseDate: [],
  186. // 判断是否是退回给咨询师经理
  187. flag: false,
  188. roleName: "",
  189. modKey: "1",
  190. testFlag: true,
  191. boHuivisible: false,
  192. companyProvinceArr: [],
  193. selectedRowKeys: [],
  194. departmentArr: [],
  195. selectedRows: [],
  196. attachmentUrl: [],
  197. contactList: [],
  198. //特批状态搜索
  199. approvalSearch: undefined,
  200. paginations: false,
  201. loading: false,
  202. pagination: {
  203. defaultCurrent: 1,
  204. defaultPageSize: 10,
  205. showQuickJumper: true,
  206. pageSize: 10,
  207. onChange: function (page) {
  208. this.loadData(page);
  209. this.setState({
  210. page,
  211. });
  212. }.bind(this),
  213. showTotal: function (total) {
  214. return "共" + total + "条数据";
  215. },
  216. },
  217. // 子组件改变的表格title数组
  218. changeList: undefined,
  219. columnsTime: [
  220. {
  221. title: "工作时长(小时)",
  222. dataIndex: "hours",
  223. key: "hours",
  224. },
  225. {
  226. title: "工作时间",
  227. dataIndex: "taskDays",
  228. key: "taskDays",
  229. },
  230. // {
  231. // title: "项目负责人",
  232. // dataIndex: "remarks",
  233. // key: "remarks"
  234. // },
  235. {
  236. title: "备注",
  237. dataIndex: "remarks",
  238. key: "remarks",
  239. },
  240. ],
  241. columns: [
  242. {
  243. title: "项目编号",
  244. dataIndex: "id",
  245. key: "id",
  246. render: (text, record) => {
  247. if (record.splitStatus == 2) {
  248. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  249. } else {
  250. return text;
  251. }
  252. },
  253. },
  254. {
  255. title: "项目名称",
  256. dataIndex: "taskName",
  257. key: "taskName",
  258. render: (text) => {
  259. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  260. },
  261. },
  262. {
  263. title: "项目数量",
  264. dataIndex: "commodityQuantity",
  265. key: "commodityQuantity",
  266. },
  267. {
  268. title: "订单编号",
  269. dataIndex: "orderNo",
  270. key: "orderNo",
  271. },
  272. {
  273. title: "合同编号",
  274. dataIndex: "contractNo",
  275. key: "contractNo",
  276. },
  277. {
  278. title: "业务类别",
  279. dataIndex: "cname",
  280. key: "cname",
  281. },
  282. {
  283. title: "客户名称",
  284. dataIndex: "userName",
  285. key: "userName",
  286. className: "userName",
  287. },
  288. // {
  289. // title: "外包公司",
  290. // dataIndex: "outsourceName",
  291. // key: "outsourceName",
  292. // },
  293. {
  294. title: "分配状态",
  295. dataIndex: "taskStatus",
  296. key: "taskStatus",
  297. render: (text) => {
  298. return getTaskStatus(text);
  299. },
  300. },
  301. {
  302. title: "项目状态",
  303. dataIndex: "projectStatus",
  304. key: "projectStatus",
  305. render: (text) => {
  306. return getProjectStatus(text);
  307. },
  308. },
  309. {
  310. title: "特批状态",
  311. dataIndex: "approval",
  312. key: "approval",
  313. render: (text) => {
  314. return getApproval(text, true);
  315. },
  316. },
  317. {
  318. title: "分配时间",
  319. dataIndex: "taskDate",
  320. key: "taskDate",
  321. },
  322. {
  323. title: "订单部门",
  324. dataIndex: "depName",
  325. key: "depName",
  326. },
  327. {
  328. title: "累计工时(小时)",
  329. dataIndex: "hours",
  330. key: "hours",
  331. },
  332. {
  333. title: "项目金额(万元)",
  334. dataIndex: "commodityPrice",
  335. key: "commodityPrice",
  336. },
  337. {
  338. title: "外包成本(万元)",
  339. dataIndex: "costAmount",
  340. key: "costAmount",
  341. },
  342. {
  343. title: "已付(万元)",
  344. dataIndex: "partyAmount",
  345. key: "partyAmount",
  346. },
  347. {
  348. title: "操作",
  349. dataIndex: "caozuo",
  350. key: "caozuo",
  351. render: (text, record) => {
  352. return (
  353. <div>
  354. <Button
  355. type="primary"
  356. onClick={(e) => {
  357. e.stopPropagation(), this.evaluate(record, "咨询师");
  358. }}
  359. >
  360. 转交
  361. </Button>
  362. <Button
  363. type="primary"
  364. style={{ marginLeft: 10 }}
  365. onClick={(e) => {
  366. e.stopPropagation(),
  367. this.evaluate(record, "咨询师经理", true);
  368. }}
  369. >
  370. 回退
  371. </Button>
  372. <Button
  373. type="primary"
  374. style={{ margin: "0 10px" }}
  375. onClick={(e) => {
  376. e.stopPropagation(), this.okCancel(record);
  377. }}
  378. >
  379. 添加工时
  380. </Button>
  381. <Button
  382. type="primary"
  383. onClick={(e) => {
  384. e.stopPropagation();
  385. this.setState({
  386. timeVisible: true,
  387. });
  388. this.timeDetail(record);
  389. }}
  390. >
  391. 工时记录
  392. </Button>
  393. </div>
  394. );
  395. },
  396. },
  397. ],
  398. dataSource: [],
  399. searchTime: [],
  400. columnsX: [
  401. {
  402. title: "业务项目名称",
  403. dataIndex: "commodityName",
  404. key: "commodityName",
  405. },
  406. {
  407. title: "项目类别",
  408. dataIndex: "cname",
  409. key: "cname",
  410. },
  411. {
  412. title: "项目数量",
  413. dataIndex: "commodityQuantity",
  414. key: "commodityQuantity",
  415. render: (text, record) => {
  416. if (record.splitStatus == 1) {
  417. return (
  418. <span>
  419. {text}{" "}
  420. <Tag
  421. color="#108ee9"
  422. onClick={(e) => {
  423. e.stopPropagation();
  424. this.showRes(record);
  425. }}
  426. >
  427. 已拆
  428. </Tag>
  429. </span>
  430. );
  431. } else {
  432. return text;
  433. }
  434. },
  435. },
  436. {
  437. title: "金额(万元)",
  438. dataIndex: "commodityPrice",
  439. key: "commodityPrice",
  440. },
  441. {
  442. title: "负责人",
  443. dataIndex: "contacts",
  444. key: "contacts",
  445. },
  446. {
  447. title: "负责人电话",
  448. dataIndex: "contactsMobile",
  449. key: "contactsMobile",
  450. },
  451. {
  452. title: "主要项目",
  453. dataIndex: "main",
  454. key: "main",
  455. render: (text) => {
  456. return text ? "是" : "否";
  457. },
  458. },
  459. {
  460. title: "项目说明",
  461. dataIndex: "taskComment",
  462. key: "taskComment",
  463. render: (text) => {
  464. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  465. },
  466. },
  467. ],
  468. columnsA: [
  469. {
  470. title: "流程",
  471. dataIndex: "content",
  472. key: "content",
  473. align: "center",
  474. },
  475. {
  476. title: "操作人",
  477. dataIndex: "aName",
  478. key: "aName",
  479. align: "center",
  480. },
  481. {
  482. title: "时间",
  483. dataIndex: "createTimes",
  484. key: "createTimes",
  485. align: "center",
  486. },
  487. ],
  488. dataSourceX: [],
  489. dataSourceA: [],
  490. companys: [],
  491. ContactsLists: [
  492. {
  493. title: "批次",
  494. dataIndex: "num",
  495. key: "num",
  496. },
  497. {
  498. title: "下证时间",
  499. dataIndex: "licenceTimes",
  500. key: "licenceTimes",
  501. render: (text, record) => {
  502. return (
  503. <div>
  504. <DatePicker
  505. style={{ marginTop: "5px" }}
  506. showTime
  507. format="YYYY-MM-DD"
  508. onOk={() => {}}
  509. value={
  510. record.licenceTimes ? moment(record.licenceTimes) : null
  511. }
  512. onChange={(data, dataString) => {
  513. record.licenceTimes = dataString;
  514. this.setState({ contactList: this.state.contactList });
  515. }}
  516. />
  517. </div>
  518. );
  519. },
  520. },
  521. {
  522. title: "下证数量",
  523. dataIndex: "alreadyNumber",
  524. key: "alreadyNumber",
  525. render: (text, record) => {
  526. return (
  527. <div>
  528. {
  529. <Input
  530. value={record.alreadyNumber}
  531. placeholder="请输入下证数量"
  532. key={record.id}
  533. required="required"
  534. onChange={(e) => {
  535. record.alreadyNumber = e.target.value;
  536. this.setState({ contactList: this.state.contactList });
  537. }}
  538. style={{ width: "120px" }}
  539. />
  540. }
  541. </div>
  542. );
  543. },
  544. },
  545. {
  546. title: "未下证数量",
  547. dataIndex: "notCount",
  548. key: "notCount",
  549. },
  550. {
  551. title: "操作",
  552. dataIndex: "dels",
  553. key: "dels",
  554. render: (text, record, index) => {
  555. return (
  556. <div>
  557. {
  558. <Popconfirm
  559. title="是否删除?"
  560. onConfirm={() => {
  561. this.confirmDelet(record);
  562. }}
  563. okText="删除"
  564. cancelText="不删除"
  565. >
  566. <Button
  567. style={{
  568. marginRight: "10px",
  569. color: "#ffffff",
  570. background: "#f00",
  571. border: "none",
  572. }}
  573. >
  574. 删除
  575. </Button>
  576. </Popconfirm>
  577. }
  578. {record.flag ? (
  579. ""
  580. ) : (
  581. <Button
  582. type="primary"
  583. onClick={(e) => {
  584. e.stopPropagation(), this.contactSave(record, index);
  585. }}
  586. >
  587. 保存
  588. </Button>
  589. )}
  590. </div>
  591. );
  592. },
  593. },
  594. ],
  595. companyColumns: [
  596. {
  597. title: "公司",
  598. dataIndex: "name",
  599. key: "name",
  600. //fixed:'left',
  601. width: 160,
  602. },
  603. {
  604. title: "联系人",
  605. dataIndex: "contacts",
  606. key: "contacts",
  607. },
  608. {
  609. title: "联系人电话",
  610. dataIndex: "contactsMobile",
  611. key: "contactsMobile",
  612. },
  613. {
  614. title: "地址",
  615. dataIndex: "companyProvinceArr",
  616. key: "companyProvinceArr",
  617. width: 140,
  618. render: (test) => {
  619. return test[0] === null
  620. ? ""
  621. : getprovince(test[0]) +
  622. "/" +
  623. getprovince(test[1]) +
  624. "/" +
  625. getprovince(test[2]);
  626. },
  627. },
  628. {
  629. title: "详细地址",
  630. dataIndex: "address",
  631. key: "address",
  632. },
  633. {
  634. title: "操作",
  635. width: 160,
  636. render: (text, record) => {
  637. return (
  638. <div>
  639. <Button
  640. type="primary"
  641. onClick={() => {
  642. this.setState({
  643. companyId: record.id,
  644. updataSwicth: true,
  645. cName: record.name,
  646. companyContacts: record.contacts,
  647. companyContactsMobile: record.contactsMobile,
  648. companyProvinceArr: record.companyProvinceArr,
  649. companyAddress: record.address,
  650. companyRemarks: record.remarks,
  651. });
  652. this.openNotification();
  653. }}
  654. >
  655. 修改
  656. </Button>
  657. <Popconfirm
  658. title="是否确认删除?"
  659. okText="确定"
  660. onConfirm={() => {
  661. this.deleteCompany(record.id);
  662. }}
  663. cancelText="取消"
  664. >
  665. <Button type="danger" style={{ marginLeft: "10px" }}>
  666. 删除
  667. </Button>
  668. </Popconfirm>
  669. </div>
  670. );
  671. },
  672. },
  673. ],
  674. };
  675. },
  676. /* 分派 */
  677. evaluate(record, nub, flag) {
  678. this.state.assignData = record;
  679. this.setState(
  680. {
  681. nub,
  682. assignData: record,
  683. flag,
  684. },
  685. () => {
  686. this.setState({
  687. assignVisible: true,
  688. });
  689. }
  690. );
  691. },
  692. componentWillMount() {
  693. this.departmentList();
  694. this.loadData();
  695. },
  696. componentDidMount() {
  697. this.setColor();
  698. },
  699. setColor() {
  700. $(".userName span").after(
  701. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  702. );
  703. },
  704. tableRowClick(record) {
  705. this.state.RowData = record;
  706. let str = record.taskName;
  707. let test = str.indexOf("会员");
  708. if (test == -1) {
  709. this.setState({
  710. isHuiyuan: false,
  711. });
  712. } else {
  713. this.setState({
  714. isHuiyuan: true,
  715. });
  716. }
  717. if (record.taskName.substring(0, 5) === "软件著作权") {
  718. this.setState({
  719. speVisible: true,
  720. id: record.id,
  721. splitStatus: record.splitStatus,
  722. splitSuper: record.splitSuper,
  723. splitId: record.splitId,
  724. dataArr: record,
  725. commodityQuantity: record.commodityQuantity,
  726. });
  727. } else {
  728. this.setState({
  729. visible: true,
  730. splitStatus: record.splitStatus,
  731. splitSuper: record.splitSuper,
  732. splitId: record.splitId,
  733. projectType: record.projectType,
  734. patentNameType: record.patentNameType,
  735. patentName: record.patentName,
  736. });
  737. }
  738. this.xiangqing(record.id, record.taskName);
  739. this.xiangqings(record.orderNo);
  740. this.xiangmu(record.orderNo);
  741. this.loaduserss(record);
  742. // 获取第三方信息表格
  743. this.thirdTable(record.id)
  744. //获取支付节点信息表格
  745. this.payNodeTable(record.id)
  746. // 获取Csort
  747. this.getCsortData(localStorage.getItem('cSort'))
  748. console.log('项目类型',record.projectType)
  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. this.thirdTable(this.state.tid);
  1289. this.payNodeTable(this.state.tid)
  1290. }
  1291. if (e == 3) {
  1292. this.orderDetailData(this.state.orderNo);
  1293. this.xiangmu(this.state.orderNo);
  1294. this.jiedian(this.state.orderNo);
  1295. this.jiedianNew(this.state.orderNo);
  1296. }
  1297. },
  1298. //添加公司
  1299. addCompany() {
  1300. this.setState({
  1301. switch: true,
  1302. });
  1303. },
  1304. //保存和修改公司
  1305. saveCompany(id) {
  1306. if (this.companyJugle()) {
  1307. let upAndde = this.state.updataSwicth
  1308. ? {
  1309. api: "/api/admin/outsourceOrg/updateOutsourceOrg",
  1310. warn: "修改成功",
  1311. data: {
  1312. id: id,
  1313. name: this.state.cName,
  1314. contacts: this.state.companyContacts,
  1315. contactsMobile: this.state.companyContactsMobile,
  1316. province: this.state.companyProvinceArr[0],
  1317. city: this.state.companyProvinceArr[1],
  1318. area: this.state.companyProvinceArr[2],
  1319. address: this.state.companyAddress,
  1320. remarks: this.state.companyRemarks,
  1321. },
  1322. }
  1323. : {
  1324. api: "/api/admin/outsourceOrg/addOutsourceOrg",
  1325. warn: "保存成功",
  1326. data: {
  1327. name: this.state.cName,
  1328. tid: this.state.RowData.id,
  1329. contacts: this.state.companyContacts,
  1330. contactsMobile: this.state.companyContactsMobile,
  1331. orderNo: this.state.orderNo,
  1332. province: this.state.companyProvinceArr[0],
  1333. city: this.state.companyProvinceArr[1],
  1334. area: this.state.companyProvinceArr[2],
  1335. address: this.state.companyAddress,
  1336. remarks: this.state.companyRemarks,
  1337. },
  1338. };
  1339. this.setState({
  1340. loading: true,
  1341. });
  1342. $.ajax({
  1343. method: "post",
  1344. dataType: "json",
  1345. crossDomain: false,
  1346. url: globalConfig.context + upAndde.api,
  1347. data: upAndde.data,
  1348. success: function (data) {
  1349. if (data.error.length || data.data.list == "") {
  1350. if (data.error && data.error.length) {
  1351. message.warning(data.error[0].message);
  1352. }
  1353. }
  1354. }.bind(this),
  1355. }).done(
  1356. function () {
  1357. this.setState({
  1358. loading: false,
  1359. updataSwicth: false,
  1360. });
  1361. this.companyReset();
  1362. message.success(upAndde.warn);
  1363. this.loadCompany();
  1364. }.bind(this)
  1365. );
  1366. }
  1367. },
  1368. //判断
  1369. companyJugle() {
  1370. if (this.state.cName === undefined) {
  1371. console.log(2345);
  1372. message.warning("公司名称不能为空!");
  1373. return;
  1374. }
  1375. if (this.state.companyContacts === undefined) {
  1376. message.warning("联系人不能为空!");
  1377. return;
  1378. }
  1379. if (this.state.companyContactsMobile === undefined) {
  1380. message.warning("联系人电话不能为空!");
  1381. return;
  1382. }
  1383. return true;
  1384. },
  1385. //删除外包
  1386. deleteCompany(id) {
  1387. $.ajax({
  1388. method: "post",
  1389. dataType: "json",
  1390. crossDomain: false,
  1391. url: globalConfig.context + "/api/admin/outsourceOrg/deleteOutsourceOrg",
  1392. data: {
  1393. id: id,
  1394. },
  1395. success: function () {}.bind(this),
  1396. }).done(
  1397. function () {
  1398. this.setState({
  1399. loading: false,
  1400. });
  1401. message.warning("删除成功");
  1402. this.loadCompany();
  1403. }.bind(this)
  1404. );
  1405. },
  1406. //重置外包
  1407. companyReset() {
  1408. this.setState({
  1409. cName: undefined,
  1410. companyContacts: undefined,
  1411. companyContactsMobile: undefined,
  1412. companyProvinceArr: [],
  1413. companyAddress: undefined,
  1414. companyRemarks: undefined,
  1415. });
  1416. },
  1417. //加载外包
  1418. loadCompany() {
  1419. this.setState({
  1420. loading: true,
  1421. });
  1422. $.ajax({
  1423. method: "get",
  1424. dataType: "json",
  1425. crossDomain: false,
  1426. url: globalConfig.context + "/api/admin/outsourceOrg/selectOutsourceOrg",
  1427. data: {
  1428. orderNo: this.state.RowData.orderNo,
  1429. tid: this.state.RowData.id,
  1430. },
  1431. success: function (data) {
  1432. let theArr = [];
  1433. if (data.error.length || data.data.list == "") {
  1434. if (data.error && data.error.length) {
  1435. message.warning(data.error[0].message);
  1436. }
  1437. } else {
  1438. for (let i = 0; i < data.data.length; i++) {
  1439. let thisdata = data.data[i];
  1440. let ProvinceCityArr = [];
  1441. let ProvinceS = thisdata.province; //省
  1442. let citys = thisdata.city; //市
  1443. let Areas = thisdata.area; //区
  1444. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1445. theArr.push({
  1446. key: i,
  1447. id: thisdata.id, //外包Id
  1448. name: thisdata.name, //名称
  1449. contacts: thisdata.contacts, //联系人
  1450. contactsMobile: thisdata.contactsMobile, //联系人电话
  1451. companyProvinceArr: ProvinceCityArr,
  1452. address: thisdata.address,
  1453. remarks: thisdata.remarks,
  1454. });
  1455. }
  1456. }
  1457. this.setState({
  1458. companys: theArr,
  1459. });
  1460. }.bind(this),
  1461. }).always(
  1462. function () {
  1463. this.setState({
  1464. loading: false,
  1465. });
  1466. }.bind(this)
  1467. );
  1468. },
  1469. foo2() {
  1470. this.setState({
  1471. testFlag1: false,
  1472. });
  1473. },
  1474. foo1() {
  1475. this.setState({
  1476. testFlag1: true,
  1477. });
  1478. },
  1479. foo() {
  1480. this.setState({
  1481. testFlag: false,
  1482. });
  1483. },
  1484. nextCancel() {
  1485. this.setState({
  1486. addnextVisible: false,
  1487. });
  1488. },
  1489. //点击打卡项目详情
  1490. tableRowClickX(record) {
  1491. this.setState({
  1492. jid: record.id, //项目ID
  1493. kid: record.commodityId, //商品ID
  1494. commodityName: record.commodityName, //金额
  1495. commodityPrice: record.commodityPrice, //金额
  1496. commodityQuantity: record.commodityQuantity, //数量
  1497. taskComment: record.taskComment, //备注
  1498. main: record.main.toString(), //是否为主要
  1499. addnextVisible: true,
  1500. addState: 0,
  1501. });
  1502. },
  1503. //关闭添加工时
  1504. noCancel() {
  1505. this.setState({
  1506. lookVisible: false,
  1507. });
  1508. this.reset();
  1509. },
  1510. search() {
  1511. this.loadData();
  1512. },
  1513. reset() {
  1514. this.state.id = ""; //项目编号
  1515. this.state.orderNo = ""; //订单编号
  1516. this.state.contractNoSearch = undefined; //订单编号
  1517. this.state.projectStatus = undefined; //项目状态
  1518. this.state.projectStatusSearch = undefined; //项目状态
  1519. this.state.taskStatuSearch = undefined; //项目状态
  1520. this.state.taskComment = ""; //说明
  1521. this.state.startDate = ""; //启动日期
  1522. this.state.endDate = ""; //结束日期
  1523. this.state.acceptDate = ""; //受理日期
  1524. this.state.reviewDate = ""; //评审日期
  1525. this.state.publicityDate = ""; //公示日期
  1526. this.state.licenceDate = ""; //发证日期
  1527. attachmentUrl: []; //附件
  1528. this.state.contacts = ""; //联系人
  1529. this.state.contactMobile = ""; //联系人电话
  1530. this.state.legalPerson = ""; //法人
  1531. this.state.legalPersonTel = ""; //法人电话
  1532. this.state.taskId = ""; //项目编号
  1533. this.state.hours = ""; //工时
  1534. this.state.remarks = ""; //说明
  1535. this.state.taskDate = ""; //日期
  1536. this.state.taskComment = ""; //说明
  1537. this.state.nameSearch = "";
  1538. this.state.releaseDate = [];
  1539. this.state.orderNoSearch = "";
  1540. this.state.taskNoSearch = "";
  1541. this.state.distribution = undefined;
  1542. this.state.departmenttSearch = undefined;
  1543. this.state.outsourceName = ""; //外包公司名称
  1544. this.state.outsourcePrice = ""; //外包价格
  1545. this.loadData(this.state.page);
  1546. this.state.approvalSearch = undefined;
  1547. },
  1548. searchSwitch() {
  1549. this.setState({
  1550. searchMore: !this.state.searchMore,
  1551. });
  1552. },
  1553. // 拆分详细
  1554. showRes(record) {
  1555. this.setState({
  1556. resVisible: true,
  1557. resRecord: record,
  1558. });
  1559. },
  1560. resCancel() {
  1561. this.setState({
  1562. resVisible: false,
  1563. });
  1564. },
  1565. //部门
  1566. departmentList() {
  1567. this.setState({
  1568. loading: true,
  1569. });
  1570. $.ajax({
  1571. method: "get",
  1572. dataType: "json",
  1573. crossDomain: false,
  1574. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  1575. data: {},
  1576. success: function (data) {
  1577. let thedata = data.data;
  1578. let theArr = [];
  1579. if (!thedata) {
  1580. if (data.error && data.error.length) {
  1581. message.warning(data.error[0].message);
  1582. }
  1583. thedata = {};
  1584. } else {
  1585. thedata.map(function (item, index) {
  1586. theArr.push({
  1587. key: index,
  1588. name: item.name,
  1589. id: item.id,
  1590. });
  1591. });
  1592. }
  1593. this.setState({
  1594. departmentArr: theArr,
  1595. });
  1596. }.bind(this),
  1597. }).always(
  1598. function () {
  1599. this.setState({
  1600. loading: false,
  1601. });
  1602. }.bind(this)
  1603. );
  1604. },
  1605. changeList(arr) {
  1606. const newArr = [];
  1607. this.state.columns.forEach((item) => {
  1608. arr.forEach((val) => {
  1609. if (val === item.title) {
  1610. newArr.push(item);
  1611. }
  1612. });
  1613. });
  1614. this.setState({
  1615. changeList: newArr,
  1616. });
  1617. },
  1618. timeClose() {
  1619. this.setState({
  1620. timeVisible: false,
  1621. });
  1622. },
  1623. timeDetail(record) {
  1624. console.log(record);
  1625. this.setState({
  1626. loading: true,
  1627. recordHour: record.hours,
  1628. });
  1629. $.ajax({
  1630. method: "get",
  1631. dataType: "json",
  1632. crossDomain: false,
  1633. url:
  1634. globalConfig.context + "/api/admin/orderProject/taskHoursDetailsList",
  1635. data: {
  1636. taskId: record.id,
  1637. },
  1638. success: function (data) {
  1639. if (data.error && data.error.length) {
  1640. message.warning(data.error[0].message);
  1641. } else {
  1642. this.setState({
  1643. dataSourceTime: data.data,
  1644. });
  1645. console.log(this.state.dataSourceTime);
  1646. }
  1647. }.bind(this),
  1648. }).always(
  1649. function () {
  1650. this.setState({
  1651. loading: false,
  1652. });
  1653. }.bind(this)
  1654. );
  1655. },
  1656. rizhi() {
  1657. this.setState({
  1658. loading: true,
  1659. });
  1660. $.ajax({
  1661. method: "get",
  1662. dataType: "json",
  1663. crossDomain: false,
  1664. url: "/api/admin/newOrder/selectOrderLog",
  1665. data: {
  1666. orderNo: this.state.orderNo,
  1667. },
  1668. success: function (data) {
  1669. let theArr = [];
  1670. let thisData = data.data;
  1671. if (!thisData.length) {
  1672. if (data.error && data.error.length) {
  1673. message.warning(data.error[0].message);
  1674. }
  1675. thisData = {};
  1676. } else {
  1677. for (let i = 0; i < data.data.length; i++) {
  1678. let thisdata = data.data[i];
  1679. theArr.push({
  1680. processName: thisdata.processName,
  1681. adminName: thisdata.adminName,
  1682. createDate: thisdata.createDate,
  1683. remarks: thisdata.remarks,
  1684. });
  1685. }
  1686. }
  1687. this.setState({
  1688. dataSourceY: theArr,
  1689. });
  1690. }.bind(this),
  1691. }).always(
  1692. function () {
  1693. this.setState({
  1694. loading: false,
  1695. });
  1696. }.bind(this)
  1697. );
  1698. },
  1699. closeOrderLog() {
  1700. this.setState({
  1701. avisible: false,
  1702. });
  1703. },
  1704. getOrderLog() {
  1705. this.setState({
  1706. avisible: true,
  1707. });
  1708. this.rizhi();
  1709. },
  1710. orderChange(key) {
  1711. this.setState({
  1712. activeKey: key,
  1713. });
  1714. if (key == 2) {
  1715. this.orderDetailData(this.state.orderNo);
  1716. this.xiangmu(this.state.orderNo);
  1717. this.jiedian(this.state.orderNo);
  1718. this.jiedianNew(this.state.orderNo);
  1719. }
  1720. },
  1721. //节点列表
  1722. jiedian(orderNos) {
  1723. $.ajax({
  1724. method: "get",
  1725. dataType: "json",
  1726. crossDomain: false,
  1727. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1728. data: {
  1729. orderNo: orderNos,
  1730. },
  1731. success: function (data) {
  1732. let theArr = [];
  1733. let thisData = [];
  1734. if (data.error.length || data.data.list == "") {
  1735. if (data.error && data.error.length) {
  1736. message.warning(data.error[0].message);
  1737. }
  1738. } else {
  1739. for (let i = 0; i < data.data.length; i++) {
  1740. thisData = data.data[i];
  1741. theArr.push({
  1742. key: i,
  1743. dunSubject: thisData.dunSubject
  1744. ? thisData.dunSubject.toString()
  1745. : "", //催款科目
  1746. id: thisData.id, //节点Id
  1747. money: thisData.money, //催款金额
  1748. dunStatus: thisData.dunStatus, //催款状态
  1749. });
  1750. }
  1751. this.setState({
  1752. jiedian: theArr,
  1753. });
  1754. }
  1755. }.bind(this),
  1756. });
  1757. },
  1758. // 获取csort下的数据
  1759. getCsortData(cSort) {
  1760. cuiJieDian.map((item) => {
  1761. if (item.value == cSort) {
  1762. this.setState({
  1763. paySubject: item.children,
  1764. })
  1765. }
  1766. })
  1767. },
  1768. jiedianNew(orderNos) {
  1769. $.ajax({
  1770. method: "get",
  1771. dataType: "json",
  1772. crossDomain: false,
  1773. url:
  1774. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  1775. data: {
  1776. orderNo: orderNos,
  1777. },
  1778. success: function (data) {
  1779. if (data.error && data.error.length) {
  1780. message.warning(data.error[0].message);
  1781. } else {
  1782. let theArr = [];
  1783. let thisData = [];
  1784. let arr = data.data || [];
  1785. let totalCui = 0;
  1786. for (let i = 0; i < arr.length; i++) {
  1787. thisData = arr[i];
  1788. totalCui += +thisData.money;
  1789. theArr.push({
  1790. key: i,
  1791. dunSubject: thisData.dunSubject
  1792. ? thisData.dunSubject.toString()
  1793. : "", //催款科目
  1794. id: thisData.id, //节点Id
  1795. money: thisData.money, //催款金额
  1796. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  1797. commodityName: thisData.commodityName,
  1798. projectType: thisData.projectType,
  1799. dunTypeName: thisData.dunTypeName,
  1800. status: thisData.status,
  1801. waitDay: thisData.waitDay,
  1802. effectiveCount: thisData.effectiveCount,
  1803. startDate: thisData.startDate,
  1804. dunType: thisData.dunType,
  1805. appropriationRatio: thisData.appropriationRatio,
  1806. customizeName: thisData.customizeName,
  1807. customizeTimes: thisData.customizeTimes,
  1808. });
  1809. }
  1810. if (!totalCui) {
  1811. totalCui = 0;
  1812. }
  1813. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  1814. this.setState({
  1815. jiedianNew: theArr,
  1816. totalCui,
  1817. });
  1818. }
  1819. }.bind(this),
  1820. }).always(
  1821. function () {
  1822. this.setState({
  1823. loading: false,
  1824. });
  1825. }.bind(this)
  1826. );
  1827. },
  1828. //查看第三方信息表格
  1829. thirdTable(id) {
  1830. this.setState({
  1831. loadData: true,
  1832. })
  1833. $.ajax({
  1834. method: 'get',
  1835. dataType: 'json',
  1836. crossDomain: false,
  1837. url: globalConfig.context + '/api/admin/company/selectCompany',
  1838. data: {
  1839. tid: id,
  1840. },
  1841. success: function (data) {
  1842. if (data.error && data.error.length) {
  1843. message.warning(data.error[0].message)
  1844. } else {
  1845. let companyNameArr = []
  1846. let theArr = []
  1847. let thisData = []
  1848. let arr = data.data || []
  1849. let allTotalAmount = 0
  1850. for (let i = 0; i < arr.length; i++) {
  1851. thisData = arr[i]
  1852. allTotalAmount =
  1853. (allTotalAmount * 10000 + thisData.totalAmount * 10000) / 10000
  1854. companyNameArr.push(thisData.companyName)
  1855. thisData.key = i;
  1856. theArr.push(thisData);
  1857. }
  1858. if (!allTotalAmount) {
  1859. allTotalAmount = 0
  1860. }
  1861. this.setState({
  1862. tid: id,
  1863. thirdInfoList: theArr,
  1864. allTotalAmount: allTotalAmount,
  1865. })
  1866. }
  1867. }.bind(this),
  1868. }).always(
  1869. function () {
  1870. this.setState({
  1871. loading: false,
  1872. })
  1873. }.bind(this)
  1874. )
  1875. },
  1876. payNodeTable(id) {
  1877. this.setState({
  1878. loadData: true,
  1879. })
  1880. $.ajax({
  1881. method: 'get',
  1882. dataType: 'json',
  1883. crossDomain: false,
  1884. url: globalConfig.context + '/api/admin/company/selectPaymentNode',
  1885. data: {
  1886. tid: id,
  1887. },
  1888. success: function (data) {
  1889. if (data.error && data.error.length) {
  1890. message.warning(data.error[0].message)
  1891. } else {
  1892. let payNodeArr = []
  1893. let thisData = []
  1894. let arr = data.data || []
  1895. // console.log('this.state.paySubject', this.state.paySubject)
  1896. //对#5283自定义的补充展示
  1897. this.state.paySubject.push({ key: '自定义', value: '0' })
  1898. for (let i = 0; i < arr.length; i++) {
  1899. thisData = arr[i]
  1900. //遍历paySubject,获取当前dunType对应的key
  1901. this.state.paySubject.map((item) => {
  1902. if (item.value == thisData.dunType) {
  1903. thisData.dunType = item.key
  1904. }
  1905. })
  1906. payNodeArr.push({
  1907. key: i,
  1908. id: thisData.id, //付款节点Id
  1909. tid: thisData.tid,
  1910. nodeId: thisData.id, //付款节点Id
  1911. companyName: thisData.companyName, //供应商名称
  1912. projectType: thisData.projectType, //项目分类
  1913. dunType: thisData.dunType, //催款分类
  1914. unitPrice: thisData.unitPrice, //单价
  1915. quantity: thisData.quantity, //数量
  1916. totalAmount: thisData.totalAmount, //总价
  1917. partyAmount: thisData.partyAmount, //付款
  1918. partyTimes: thisData.partyTimes, //付款时间
  1919. cid: thisData.cid, //机构id
  1920. status: thisData.status, //催款状态 0-未支付 1-待全款 ,2已全款 status=2的时候已经全款,申请付款按钮可以去掉了
  1921. })
  1922. }
  1923. console.log(payNodeArr,'payNodeArr:')
  1924. // console.log('paySubject:', this.state.paySubject)
  1925. this.setState({
  1926. tid: id,
  1927. payNodeList: payNodeArr,
  1928. })
  1929. }
  1930. }.bind(this),
  1931. }).always(
  1932. function () {
  1933. this.setState({
  1934. loading: false,
  1935. })
  1936. }.bind(this)
  1937. )
  1938. },
  1939. orderDetailData(orderNos) {
  1940. this.setState({
  1941. loading: true,
  1942. });
  1943. $.ajax({
  1944. method: "get",
  1945. dataType: "json",
  1946. crossDomain: false,
  1947. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  1948. data: {
  1949. orderNo: orderNos,
  1950. },
  1951. success: function (data) {
  1952. if (data.error.length || data.data.list == "") {
  1953. if (data.error && data.error.length) {
  1954. message.warning(data.error[0].message);
  1955. this.setState({
  1956. loading: false,
  1957. });
  1958. }
  1959. } else {
  1960. let thisdata = data.data;
  1961. this.setState({
  1962. loading: false,
  1963. userName: thisdata.userName,
  1964. primaryOrderNo: thisdata.primaryOrder,
  1965. additionalOrder: thisdata.additionalOrder,
  1966. contractNo: thisdata.contractNo,
  1967. orderData: thisdata,
  1968. isAddition: thisdata.additionalOrder ? true : false,
  1969. contractPictureUrl: thisdata.contractPictureUrl
  1970. ? splitUrl(
  1971. thisdata.contractPictureUrl,
  1972. ",",
  1973. globalConfig.avatarHost + "/upload"
  1974. )
  1975. : [],
  1976. });
  1977. }
  1978. }.bind(this),
  1979. });
  1980. },
  1981. render() {
  1982. const { TabPane } = Tabs;
  1983. const formItemLayout = {
  1984. labelCol: { span: 8 },
  1985. wrapperCol: { span: 14 },
  1986. };
  1987. let departmentArr = this.state.departmentArr || [];
  1988. return (
  1989. <div className="user-content">
  1990. {this.state.resVisible ? (
  1991. <ResolutionDetail
  1992. cancel={this.resCancel}
  1993. detail={this.state.resRecord}
  1994. visible={this.state.resVisible}
  1995. id={this.state.resRecord.orderNo}
  1996. />
  1997. ) : (
  1998. ""
  1999. )}
  2000. <ShowModalDiv ShowModal={this.state.showModal} />
  2001. <div className="content-title" style={{ marginBottom: 10 }}>
  2002. <span style={{ fontWeight: 900, fontSize: 16 }}>我的外包项目</span>
  2003. </div>
  2004. <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
  2005. <TabPane tab="更改表格显示数据" key="1">
  2006. <div style={{ marginLeft: 10 }}>
  2007. <ChooseList
  2008. columns={this.state.columns}
  2009. changeFn={this.changeList}
  2010. changeList={this.state.changeList}
  2011. top={55}
  2012. margin={11}
  2013. />
  2014. </div>
  2015. </TabPane>
  2016. <TabPane tab="搜索" key="2">
  2017. <div className="user-search" style={{ marginLeft: 10 }}>
  2018. <Input
  2019. placeholder="客户名称"
  2020. value={this.state.nameSearch}
  2021. onChange={(e) => {
  2022. this.setState({ nameSearch: e.target.value });
  2023. }}
  2024. />
  2025. <Input
  2026. placeholder="订单编号"
  2027. value={this.state.orderNoSearch}
  2028. onChange={(e) => {
  2029. this.setState({ orderNoSearch: e.target.value });
  2030. }}
  2031. />
  2032. <Input
  2033. placeholder="合同编号"
  2034. value={this.state.contractNoSearch}
  2035. onChange={(e) => {
  2036. this.setState({ contractNoSearch: e.target.value });
  2037. }}
  2038. />
  2039. <Input
  2040. placeholder="项目编号"
  2041. value={this.state.taskNoSearch}
  2042. onChange={(e) => {
  2043. this.setState({ taskNoSearch: e.target.value });
  2044. }}
  2045. />
  2046. <Select
  2047. placeholder="选择部门"
  2048. style={{ width: 150, marginRight: "10px" }}
  2049. value={this.state.departmenttSearch}
  2050. onChange={(e) => {
  2051. this.setState({ departmenttSearch: e });
  2052. }}
  2053. >
  2054. {departmentArr.map(function (item) {
  2055. return (
  2056. <Select.Option key={item.id}>{item.name}</Select.Option>
  2057. );
  2058. })}
  2059. </Select>
  2060. <Select
  2061. placeholder="项目状态"
  2062. style={{ width: 150, marginRight: "10px" }}
  2063. value={this.state.projectStatusSearch}
  2064. onChange={(e) => {
  2065. this.setState({ projectStatusSearch: e });
  2066. console.log(this.state.projectStatusSearch);
  2067. }}
  2068. >
  2069. {projectStatus.map(function (item) {
  2070. return (
  2071. <Select.Option key={item.value}>{item.key}</Select.Option>
  2072. );
  2073. })}
  2074. </Select>
  2075. <Select
  2076. placeholder="特批状态"
  2077. style={{ width: 150, marginRight: "10px" }}
  2078. value={this.state.approvalSearch}
  2079. onChange={(e) => {
  2080. this.setState({ approvalSearch: e });
  2081. console.log(this.state.approvalSearch);
  2082. }}
  2083. >
  2084. <Select.Option key={0}>非特批</Select.Option>
  2085. <Select.Option key={1}>特批</Select.Option>
  2086. </Select>
  2087. <Button type="primary" onClick={this.search}>
  2088. 搜索
  2089. </Button>
  2090. <Button onClick={this.reset}>重置</Button>
  2091. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  2092. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  2093. <span>订单时间 :</span>
  2094. <RangePicker
  2095. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  2096. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  2097. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  2098. </div> */}
  2099. </div>
  2100. </TabPane>
  2101. <TabPane tab="导出Excel" key="3">
  2102. <Button
  2103. type="primary"
  2104. style={{ margin: "11px 0 10px 10px" }}
  2105. onClick={this.exportExec}
  2106. >
  2107. 导出Excel
  2108. </Button>
  2109. </TabPane>
  2110. {/* <TabPane tab="批量操作" key="6">
  2111. <Button
  2112. type="primary"
  2113. disabled={this.state.selectedRowKeys.length == 0}
  2114. style={{ margin: "0px 0px 10px 10px" }}
  2115. onClick={e => {
  2116. e.stopPropagation(),
  2117. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  2118. }}
  2119. >
  2120. 转交
  2121. </Button>
  2122. </TabPane> */}
  2123. </Tabs>
  2124. <div className="patent-table">
  2125. <Spin spinning={this.state.loading}>
  2126. <Table
  2127. columns={
  2128. this.state.changeList == undefined
  2129. ? this.state.columns
  2130. : this.state.changeList
  2131. }
  2132. dataSource={this.state.dataSource}
  2133. pagination={this.state.pagination}
  2134. onRowClick={this.tableRowClick.bind(this)}
  2135. scroll={{ x: "max-content", y: 0 }}
  2136. bordered
  2137. size={"small"}
  2138. />
  2139. </Spin>
  2140. </div>
  2141. <Assign
  2142. title="项目"
  2143. selApi={"/api/admin/orderProject/projectDistribution"}
  2144. data={this.state.assignData}
  2145. showDesc={this.state.assignVisible}
  2146. closeDesc={this.closeAssign.bind(this)}
  2147. fenpaiData={8}
  2148. specially={0}
  2149. roleName={this.state.nub}
  2150. requestMethod={"post"}
  2151. flag={this.state.flag}
  2152. isZhuan={this.state.isZhuan} //是否转交
  2153. />
  2154. <Modal
  2155. className="customeDetails"
  2156. footer=""
  2157. title=""
  2158. width="900px"
  2159. visible={this.state.visible}
  2160. onOk={this.visitOk}
  2161. onCancel={this.visitCancel}
  2162. >
  2163. <Tabs onChange={this.callBack} activeKey={this.state.modKey}>
  2164. <TabPane tab="项目概况" key="1">
  2165. <Form
  2166. layout="horizontal"
  2167. onSubmit={this.handleSubmit}
  2168. id="demand-form"
  2169. style={{ paddingBottom: "00px" }}
  2170. >
  2171. <Spin spinning={this.state.loading}>
  2172. <div className="clearfix">
  2173. <div className="clearfix">
  2174. <FormItem
  2175. className="half-item"
  2176. {...formItemLayout}
  2177. label="当前项目情况"
  2178. >
  2179. <Radio.Group
  2180. value={this.state.status}
  2181. onChange={(e) => {
  2182. this.setState({ status: e.target.value });
  2183. }}
  2184. >
  2185. <Radio value={0}>开启</Radio>
  2186. <Radio value={1}>暂停</Radio>
  2187. </Radio.Group>
  2188. <Button
  2189. type="primary"
  2190. size="small"
  2191. style={{ marginTop: "5px", position: "absolute" }}
  2192. onClick={this.caozuorizhi}
  2193. >
  2194. 操作日志
  2195. </Button>
  2196. </FormItem>
  2197. <FormItem
  2198. className="half-item"
  2199. {...formItemLayout}
  2200. label="合同编号"
  2201. >
  2202. <span>{this.state.contractNo}</span>
  2203. </FormItem>
  2204. </div>
  2205. <div className="clearfix">
  2206. <FormItem
  2207. className="half-item"
  2208. {...formItemLayout}
  2209. label="项目状态"
  2210. >
  2211. <Select
  2212. placeholder="选择项目状态"
  2213. style={{ width: "200px" }}
  2214. value={this.state.projectStatus}
  2215. onChange={(e) => {
  2216. this.setState({ projectStatus: e });
  2217. }}
  2218. >
  2219. {projectStatus.map(function (item) {
  2220. return (
  2221. <Select.Option key={item.value}>
  2222. {item.key}
  2223. </Select.Option>
  2224. );
  2225. })}
  2226. </Select>
  2227. </FormItem>
  2228. <FormItem
  2229. className="half-item"
  2230. {...formItemLayout}
  2231. label="是否特批"
  2232. >
  2233. <span>{getApproval(this.state.approval)}</span>
  2234. </FormItem>
  2235. <FormItem
  2236. className="half-item"
  2237. {...formItemLayout}
  2238. label="结算状态"
  2239. >
  2240. <span>
  2241. {getLiquidationStatus(this.state.liquidationStatus)}
  2242. </span>
  2243. </FormItem>
  2244. <FormItem
  2245. className="half-item"
  2246. {...formItemLayout}
  2247. label="流程状态"
  2248. >
  2249. <span>
  2250. {getProcessStatus(this.state.processStatus)}
  2251. </span>
  2252. </FormItem>
  2253. <FormItem
  2254. className="half-item"
  2255. {...formItemLayout}
  2256. label="订单编号"
  2257. >
  2258. <span>{this.state.orderNo}</span>
  2259. </FormItem>
  2260. </div>
  2261. <div className="clearfix">
  2262. <FormItem
  2263. className="half-item"
  2264. {...formItemLayout}
  2265. label="满意度表格"
  2266. >
  2267. <Radio.Group
  2268. value={this.state.formRetrieve}
  2269. onChange={(e) => {
  2270. this.setState({ formRetrieve: e.target.value });
  2271. }}
  2272. >
  2273. <Radio value={0}>未收回</Radio>
  2274. <Radio value={1}>已收回</Radio>
  2275. <Radio value={2}>其他</Radio>
  2276. </Radio.Group>
  2277. </FormItem>
  2278. <FormItem
  2279. className="half-item"
  2280. {...formItemLayout}
  2281. label="退单"
  2282. >
  2283. <Radio.Group
  2284. value={this.state.taskRefund}
  2285. onChange={(e) => {
  2286. this.setState({ taskRefund: e.target.value });
  2287. }}
  2288. >
  2289. <Radio value={0}>已完成</Radio>
  2290. <Radio value={1}>未完成</Radio>
  2291. <Radio value={2}>其他</Radio>
  2292. </Radio.Group>
  2293. </FormItem>
  2294. </div>
  2295. <div className="clearfix">
  2296. {
  2297. <FormItem
  2298. className="half-item"
  2299. {...formItemLayout}
  2300. label="(满意度)备注"
  2301. >
  2302. <Input
  2303. type="textarea"
  2304. placeholder="请输入备注"
  2305. rows={2}
  2306. value={this.state.retrieveContent}
  2307. onChange={(e) => {
  2308. this.setState({
  2309. retrieveContent: e.target.value,
  2310. });
  2311. }}
  2312. />
  2313. </FormItem>
  2314. }
  2315. {
  2316. <FormItem
  2317. className="half-item"
  2318. {...formItemLayout}
  2319. label="(退单)备注"
  2320. >
  2321. <Input
  2322. type="textarea"
  2323. placeholder="请输入备注"
  2324. rows={2}
  2325. value={this.state.refundContent}
  2326. onChange={(e) => {
  2327. this.setState({ refundContent: e.target.value });
  2328. }}
  2329. />
  2330. </FormItem>
  2331. }
  2332. </div>
  2333. <div className="clearfix">
  2334. <h3 className="sub-title">订单负责人信息</h3>
  2335. <FormItem
  2336. className="half-item"
  2337. {...formItemLayout}
  2338. label="负责人"
  2339. >
  2340. <span>
  2341. {this.state.salesmanName +
  2342. "(" +
  2343. this.state.depName +
  2344. ")"}
  2345. </span>
  2346. </FormItem>
  2347. <FormItem
  2348. className="half-item"
  2349. {...formItemLayout}
  2350. label="负责人电话"
  2351. >
  2352. <span>{this.state.salesmanMobile}</span>
  2353. </FormItem>
  2354. <FormItem
  2355. className="half-item"
  2356. {...formItemLayout}
  2357. label="当前财务负责人"
  2358. >
  2359. <span>{this.state.nowFinance}</span>
  2360. </FormItem>
  2361. <FormItem
  2362. className="half-item"
  2363. {...formItemLayout}
  2364. label="当前财务负责人电话"
  2365. >
  2366. <span>{this.state.nowFinanceMobile}</span>
  2367. </FormItem>
  2368. <FormItem
  2369. className="half-item"
  2370. {...formItemLayout}
  2371. style={{ opacity: ".5" }}
  2372. label="原负责人"
  2373. >
  2374. <span>{this.state.oldSalesmanName}</span>
  2375. </FormItem>
  2376. <FormItem
  2377. className="half-item"
  2378. {...formItemLayout}
  2379. style={{ opacity: ".5" }}
  2380. label="原负责人电话"
  2381. >
  2382. <span>{this.state.oldSalesmanMobile}</span>
  2383. </FormItem>
  2384. <FormItem
  2385. className="half-item"
  2386. {...formItemLayout}
  2387. style={{ opacity: ".5" }}
  2388. label="实际财务操作人"
  2389. >
  2390. <span>{this.state.financeName}</span>
  2391. </FormItem>
  2392. <FormItem
  2393. className="half-item"
  2394. {...formItemLayout}
  2395. style={{ opacity: ".5" }}
  2396. label="实际财务操作人电话"
  2397. >
  2398. <span>{this.state.financeMobile}</span>
  2399. </FormItem>
  2400. <FormItem
  2401. className="half-item"
  2402. {...formItemLayout}
  2403. label="订单留言"
  2404. >
  2405. <span>{this.state.orderRemarks}</span>
  2406. </FormItem>
  2407. <FormItem
  2408. className="half-item"
  2409. {...formItemLayout}
  2410. label=""
  2411. >
  2412. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  2413. </FormItem>
  2414. <OrderRiZi
  2415. dataSourcerizhi={this.state.dataSourceY}
  2416. closeOrderLog={this.closeOrderLog}
  2417. visible={this.state.avisible}
  2418. loading={this.state.loading}
  2419. />
  2420. </div>
  2421. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2422. <div className="clearfix">
  2423. <h3 className="sub-title">联系信息</h3>
  2424. <FormItem
  2425. className="half-item"
  2426. {...formItemLayout}
  2427. label="客户名称"
  2428. >
  2429. <span>{this.state.userName}</span>
  2430. </FormItem>
  2431. <FormItem
  2432. className="half-item"
  2433. {...formItemLayout}
  2434. label="企业法人"
  2435. >
  2436. <Input
  2437. placeholder="请输入法人名称"
  2438. value={this.state.legalPerson}
  2439. style={{ width: "200px" }}
  2440. onChange={(e) => {
  2441. this.setState({ legalPerson: e.target.value });
  2442. }}
  2443. ref="commodityQuantity"
  2444. />
  2445. </FormItem>
  2446. <FormItem
  2447. className="half-item"
  2448. {...formItemLayout}
  2449. label="法人电话"
  2450. >
  2451. <Input
  2452. placeholder="请输入法人电话"
  2453. value={this.state.legalPersonTel}
  2454. style={{ width: "200px" }}
  2455. onChange={(e) => {
  2456. this.setState({ legalPersonTel: e.target.value });
  2457. }}
  2458. ref="commodityQuantity"
  2459. />
  2460. </FormItem>
  2461. <FormItem
  2462. className="half-item"
  2463. {...formItemLayout}
  2464. label="客户联系人"
  2465. >
  2466. <Input
  2467. placeholder="请输入联系人名称"
  2468. value={this.state.contacts}
  2469. style={{ width: "200px" }}
  2470. onChange={(e) => {
  2471. this.setState({ contacts: e.target.value });
  2472. }}
  2473. ref="commodityQuantity"
  2474. />
  2475. </FormItem>
  2476. <FormItem
  2477. className="half-item"
  2478. {...formItemLayout}
  2479. label="联系人电话"
  2480. >
  2481. <Input
  2482. placeholder="请输入联系人电话"
  2483. value={this.state.contactMobile}
  2484. style={{ width: "200px" }}
  2485. onChange={(e) => {
  2486. this.setState({ contactMobile: e.target.value });
  2487. }}
  2488. ref="commodityQuantity"
  2489. />
  2490. </FormItem>
  2491. <FormItem
  2492. className="half-item"
  2493. {...formItemLayout}
  2494. label="企业地址"
  2495. >
  2496. <Cascader
  2497. options={areaSelect()}
  2498. value={this.state.ProvinceCity}
  2499. placeholder="选择城市"
  2500. style={{ width: "200px" }}
  2501. onChange={(e) => {
  2502. this.setState({ ProvinceCity: e });
  2503. }}
  2504. />
  2505. </FormItem>
  2506. <FormItem
  2507. className="half-item"
  2508. {...formItemLayout}
  2509. label=""
  2510. ></FormItem>
  2511. <FormItem
  2512. className="half-item"
  2513. {...formItemLayout}
  2514. label=""
  2515. >
  2516. <Input
  2517. placeholder="请输入详细地址"
  2518. value={this.state.postalAddress}
  2519. style={{ width: "200px", marginLeft: "12em" }}
  2520. onChange={(e) => {
  2521. this.setState({ postalAddress: e.target.value });
  2522. }}
  2523. ref="commodityQuantity"
  2524. />
  2525. </FormItem>
  2526. </div>
  2527. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2528. <div className="clearfix">
  2529. <h3 className="sub-title">项目信息</h3>
  2530. <FormItem
  2531. className="half-item"
  2532. {...formItemLayout}
  2533. label="项目编号"
  2534. >
  2535. <span>
  2536. {this.state.splitStatus == 2
  2537. ? this.state.splitSuper + "-" + this.state.splitId
  2538. : this.state.id}
  2539. </span>
  2540. </FormItem>
  2541. <FormItem
  2542. className="half-item"
  2543. {...formItemLayout}
  2544. label="项目名称"
  2545. >
  2546. <span>{this.state.taskName}</span>
  2547. </FormItem>
  2548. <FormItem
  2549. className="half-item"
  2550. {...formItemLayout}
  2551. label="项目状态"
  2552. >
  2553. <Select
  2554. placeholder="选择项目状态"
  2555. style={{ width: "200px" }}
  2556. value={this.state.taskStatus}
  2557. onChange={(e) => {
  2558. this.setState({ taskStatus: e });
  2559. }}
  2560. >
  2561. {taskStatus.map(function (item) {
  2562. return (
  2563. <Select.Option key={item.value}>
  2564. {item.key}
  2565. </Select.Option>
  2566. );
  2567. })}
  2568. </Select>
  2569. </FormItem>
  2570. <FormItem
  2571. className="half-item"
  2572. {...formItemLayout}
  2573. label="项目类别"
  2574. >
  2575. <span>{this.state.cname}</span>
  2576. </FormItem>
  2577. <FormItem
  2578. className="half-item"
  2579. {...formItemLayout}
  2580. label="证书编号"
  2581. >
  2582. <Input
  2583. placeholder="请输入证书编号"
  2584. value={this.state.certificateNumber}
  2585. style={{ width: "200px" }}
  2586. onChange={(e) => {
  2587. this.setState({
  2588. certificateNumber: e.target.value,
  2589. });
  2590. }}
  2591. ref="commodityQuantity"
  2592. />
  2593. </FormItem>
  2594. </div>
  2595. <div className="clearfix">
  2596. <h3 className="sub-title">申报系统账户信息</h3>
  2597. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  2598. <FormItem
  2599. className="half-item"
  2600. {...formItemLayout}
  2601. label="用户名"
  2602. >
  2603. <Input
  2604. placeholder="请输入用户名"
  2605. value={this.state.declareUser}
  2606. style={{ width: "200px" }}
  2607. onChange={(e) => {
  2608. this.setState({ declareUser: e.target.value });
  2609. }}
  2610. />
  2611. </FormItem>
  2612. <FormItem
  2613. className="half-item"
  2614. {...formItemLayout}
  2615. label="密码"
  2616. >
  2617. <Input
  2618. placeholder="请输入密码"
  2619. value={this.state.declarePwd}
  2620. style={{ width: "200px" }}
  2621. onChange={(e) => {
  2622. this.setState({ declarePwd: e.target.value });
  2623. }}
  2624. />
  2625. </FormItem>
  2626. </div>
  2627. <div className="clearfix">
  2628. <h3 className="sub-title">项目申报进度</h3>
  2629. <FormItem
  2630. className="half-item"
  2631. {...formItemLayout}
  2632. label="申报批次"
  2633. >
  2634. <Select
  2635. value={
  2636. this.state.declarationBatch
  2637. ? this.state.declarationBatch
  2638. : undefined
  2639. }
  2640. placeholder="请选择批次"
  2641. style={{ width: 200 }}
  2642. onChange={(e) => {
  2643. this.setState({
  2644. declarationBatch: e,
  2645. });
  2646. }}
  2647. >
  2648. <Option value={1}>第一批</Option>
  2649. <Option value={2}>第二批</Option>
  2650. <Option value={3}>第三批</Option>
  2651. <Option value={4}>第四批</Option>
  2652. </Select>
  2653. </FormItem>
  2654. <FormItem
  2655. className="half-item"
  2656. {...formItemLayout}
  2657. label="启动时间"
  2658. >
  2659. <DatePicker
  2660. style={{
  2661. marginTop: "2px",
  2662. width: "200px",
  2663. height: "32px",
  2664. }}
  2665. showTime
  2666. format="YYYY-MM-DD"
  2667. onOk={() => {}}
  2668. value={
  2669. this.state.startDate
  2670. ? moment(this.state.startDate)
  2671. : null
  2672. }
  2673. onChange={(data, dataString) => {
  2674. this.setState({ startDate: dataString });
  2675. }}
  2676. />
  2677. </FormItem>
  2678. <FormItem
  2679. className="half-item"
  2680. {...formItemLayout}
  2681. label="完成时间"
  2682. >
  2683. <DatePicker
  2684. style={{
  2685. marginTop: "2px",
  2686. width: "200px",
  2687. height: "32px",
  2688. }}
  2689. showTime
  2690. format="YYYY-MM-DD"
  2691. onOk={() => {}}
  2692. value={
  2693. this.state.endDate
  2694. ? moment(this.state.endDate)
  2695. : null
  2696. }
  2697. onChange={(data, dataString) => {
  2698. this.setState({ endDate: dataString });
  2699. }}
  2700. />
  2701. </FormItem>
  2702. <FormItem
  2703. className="half-item"
  2704. {...formItemLayout}
  2705. label="受理时间"
  2706. >
  2707. <DatePicker
  2708. style={{
  2709. marginTop: "2px",
  2710. width: "200px",
  2711. height: "32px",
  2712. }}
  2713. showTime
  2714. format="YYYY-MM-DD"
  2715. onOk={() => {}}
  2716. value={
  2717. this.state.acceptDate
  2718. ? moment(this.state.acceptDate)
  2719. : null
  2720. }
  2721. onChange={(data, dataString) => {
  2722. this.setState({ acceptDate: dataString });
  2723. }}
  2724. />
  2725. </FormItem>
  2726. <FormItem
  2727. className="half-item"
  2728. {...formItemLayout}
  2729. label="评审时间"
  2730. >
  2731. <DatePicker
  2732. style={{
  2733. marginTop: "2px",
  2734. width: "200px",
  2735. height: "32px",
  2736. }}
  2737. showTime
  2738. format="YYYY-MM-DD"
  2739. onOk={() => {}}
  2740. value={
  2741. this.state.reviewDate
  2742. ? moment(this.state.reviewDate)
  2743. : null
  2744. }
  2745. onChange={(data, dataString) => {
  2746. this.setState({ reviewDate: dataString });
  2747. }}
  2748. />
  2749. </FormItem>
  2750. <FormItem
  2751. className="half-item"
  2752. {...formItemLayout}
  2753. label="公示时间"
  2754. >
  2755. <DatePicker
  2756. style={{
  2757. marginTop: "2px",
  2758. width: "200px",
  2759. height: "32px",
  2760. }}
  2761. showTime
  2762. format="YYYY-MM-DD"
  2763. onOk={() => {}}
  2764. value={
  2765. this.state.publicityDate
  2766. ? moment(this.state.publicityDate)
  2767. : null
  2768. }
  2769. onChange={(data, dataString) => {
  2770. this.setState({ publicityDate: dataString });
  2771. }}
  2772. />
  2773. </FormItem>
  2774. <FormItem
  2775. className="half-item"
  2776. {...formItemLayout}
  2777. label="发证时间"
  2778. >
  2779. <DatePicker
  2780. style={{
  2781. marginTop: "2px",
  2782. width: "200px",
  2783. height: "32px",
  2784. }}
  2785. showTime
  2786. format="YYYY-MM-DD"
  2787. onOk={() => {}}
  2788. value={
  2789. this.state.licenceDate
  2790. ? moment(this.state.licenceDate)
  2791. : null
  2792. }
  2793. onChange={(data, dataString) => {
  2794. this.setState({ licenceDate: dataString });
  2795. }}
  2796. />
  2797. </FormItem>
  2798. <FormItem
  2799. className="half-item"
  2800. {...formItemLayout}
  2801. label="立项金额(万元)"
  2802. >
  2803. <Input
  2804. placeholder="请输入立项金额"
  2805. value={this.state.setUpAmount}
  2806. style={{ width: "200px" }}
  2807. onChange={(e) => {
  2808. this.setState({ setUpAmount: e.target.value });
  2809. }}
  2810. ref="commodityQuantity"
  2811. />
  2812. </FormItem>
  2813. <FormItem
  2814. className="half-item"
  2815. {...formItemLayout}
  2816. label="是否到款"
  2817. >
  2818. <Radio.Group
  2819. value={this.state.arrivalMoney}
  2820. onChange={(e) => {
  2821. this.setState({ arrivalMoney: e.target.value });
  2822. }}
  2823. >
  2824. <Radio value={0}>未到企业</Radio>
  2825. <Radio value={1}>已到企业</Radio>
  2826. </Radio.Group>
  2827. </FormItem>
  2828. </div>
  2829. <div className="clearfix">
  2830. <FormItem
  2831. labelCol={{ span: 3 }}
  2832. wrapperCol={{ span: 16 }}
  2833. label="附件"
  2834. >
  2835. <Picture
  2836. fileList={(e) => {
  2837. this.setState({ attachmentUrl: e });
  2838. }}
  2839. pictureUrl={this.state.attachmentUrl}
  2840. visible={this.props.visible}
  2841. data={{
  2842. sign: "order_task_file",
  2843. url: "/api/admin/orderProject/uploadOrderTaskFile",
  2844. number: 8,
  2845. }}
  2846. />
  2847. </FormItem>
  2848. </div>
  2849. <div className="clearfix">
  2850. <FormItem
  2851. labelCol={{ span: 3 }}
  2852. wrapperCol={{ span: 16 }}
  2853. label="备注"
  2854. >
  2855. <Input
  2856. type="textarea"
  2857. placeholder="请输入备注"
  2858. rows={4}
  2859. value={this.state.taskComment}
  2860. onChange={(e) => {
  2861. this.setState({ taskComment: e.target.value });
  2862. }}
  2863. />
  2864. </FormItem>
  2865. </div>
  2866. <div>
  2867. <h3 className="sub-title">项目业务</h3>
  2868. {this.state.processStatus == 0 ? (
  2869. <Button
  2870. type="primary"
  2871. onClick={this.addDetailed}
  2872. style={{
  2873. float: "right",
  2874. marginRight: "50px",
  2875. marginBottom: "15px",
  2876. }}
  2877. >
  2878. 添加项目明细
  2879. </Button>
  2880. ) : (
  2881. ""
  2882. )}
  2883. </div>
  2884. <div className="patent-table">
  2885. <Spin spinning={this.state.loading}>
  2886. <Table
  2887. columns={this.state.columnsX}
  2888. dataSource={this.state.dataSourceX}
  2889. pagination={this.state.paginations}
  2890. onRowClick={this.tableRowClickX}
  2891. bordered
  2892. size="small"
  2893. />
  2894. </Spin>
  2895. </div>
  2896. <div className="clearfix">
  2897. <Button
  2898. className="cancel"
  2899. type="primary"
  2900. onClick={this.tijiaoOk}
  2901. style={{ marginLeft: "200px", marginTop: "10px" }}
  2902. htmlType="submit"
  2903. >
  2904. 保存
  2905. </Button>
  2906. <Button
  2907. className="cancel"
  2908. type="ghost"
  2909. onClick={this.visitCancel}
  2910. style={{ marginLeft: "50px", marginTop: "10px" }}
  2911. >
  2912. 取消
  2913. </Button>
  2914. </div>
  2915. </div>
  2916. </Spin>
  2917. </Form>
  2918. </TabPane>
  2919. <TabPane tab="外包接单公司信息" key="2">
  2920. {this.state.visible && this.state.modKey === '2'?<CheckProject
  2921. {...this.props}
  2922. tid={this.state.tid}
  2923. status={this.state.refundStatus}
  2924. projectType={this.state.projectType}
  2925. patentNameType={this.state.patentNameType}
  2926. patentName={this.state.patentName}
  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;