myTaskOutsource.jsx 130 KB

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