myTaskOutsource.jsx 128 KB

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