myTask.jsx 131 KB

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