myTask.jsx 116 KB

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