myTaskOutsource.jsx 128 KB

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