123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127 |
- <template>
- <fullscreen :fullscreen.sync="fullscreen" class="container">
- <div class="container-box">
- <toolList @iconCli='iconCli' :tooltit='tooltit'></toolList>
- <div class="search">
- <!-- <mySearch :searchList="searchList" @searchInfo="searchInfo"></mySearch> -->
- <eltabs :tabList="tabList" @status="clickTabs"></eltabs>
- <!-- <el-button class="btn-check" size="medium" type="primary" @click='jumpadd'
- v-if="(userInfo.cityName==null&&userInfo.countyName==null)||(userInfo.cityName!=null&&userInfo.countyName==null)">添加
- </el-button> -->
- <el-button class="btn-check" size="medium" type="primary" @click='jumpadd' v-if="userInfo.duty > 9"
- style="width:100px;height:50px">添加
- </el-button>
- <!-- <el-button size="medium" type="primary" @click="operationZuo()">
- 处理
- </el-button> -->
- </div>
- <div class="tabbox" v-if="this.childname == 'first' || this.childname == 'two'">
- <tableList :list="Table" ref="TableList" @clickDemand="clickDemand" @changeNum="changeNum"></tableList>
- </div>
- <div class="tabbox" v-if="this.childname == 'three'">
- <el-table :data="tableData" style="width: 100%" ref="refTable" height="400px" max-height="400px">
- <el-table-column type="expand">
- <template slot-scope="props">
- <!-- <el-table v-loading="loading2" :data="props.row.fxfkProcessList" size="mini" style="width: 95%;margin-left: 5%;"> -->
- <el-table :data="props.row.xcwlProProcessList" size="mini" style="width: 95%;margin-left: 5%;"
- @cell-click="getRowList">
- <el-table-column label="序号" type="index" width="50">
- </el-table-column>
- <el-table-column label="业务名称" prop="needName"></el-table-column>
- <el-table-column label="地市" prop="region"></el-table-column>
- <el-table-column label="区县" prop="district"></el-table-column>
- <el-table-column label="渠道/小区/校园名称" prop="channelQuartersSchool"> </el-table-column>
- <el-table-column label="使用场景" prop="useCase"></el-table-column>
- <el-table-column label="物料名称" prop="material"></el-table-column>
- <el-table-column label="物料编码" prop="materialNo"></el-table-column>
- <el-table-column label="规格尺码" prop="spec"></el-table-column>
- <el-table-column label="长(米)" prop="chang"></el-table-column>
- <el-table-column label="宽(米)" prop="kuan"></el-table-column>
- <el-table-column label="横/竖" prop="hengShu"></el-table-column>
- <el-table-column label="系数" prop="coefficient"></el-table-column>
- <!-- <el-table-column label="单价" prop="price"></el-table-column> -->
- <el-table-column label="数量" prop="quantity"></el-table-column>
- <!-- <el-table-column label="结算金额" prop="replyContent"></el-table-column> -->
- <el-table-column label="麦穗" prop="gys1Price"></el-table-column>
- <el-table-column label="神笔" prop="gys2Price"></el-table-column>
- <el-table-column label="江苏邮电" prop="gys3Price"></el-table-column>
- <el-table-column label="湖州绿包" prop="gys4Price"></el-table-column>
- <el-table-column label="状态" prop="taskname"></el-table-column>
- <el-table-column label="操作" fixed="right" align="center">
- <template slot-scope="scope">
- <el-button size="mini" type="text" @click="getinform(scope.row)"
- v-if="scope.row.taskname == null || scope.row.taskname == '起草'">
- 任务下发</el-button>
- <el-button size="mini" type="text" @click="chakanfaqi(scope.row)"
- v-if="scope.row.taskname != null && scope.row.taskname != '起草'">
- 查看</el-button>
- </template>
- <!-- <template slot-scope="scope">
-
- </template> -->
- </el-table-column>
- </el-table>
- </template>
- </el-table-column>
- <el-table-column label="业务名称" prop="businessName">
- </el-table-column>
- <el-table-column label="下单周期" prop="cycle">
- </el-table-column>
- <el-table-column label="申请人" prop="proposer">
- </el-table-column>
- <el-table-column label="申请人部门" prop="applydept">
- </el-table-column>
- <el-table-column label="申请人类型" prop="applyType">
- </el-table-column>
- <el-table-column label="申请时间" prop="applyTime">
- </el-table-column>
- <el-table-column label="当前进度" prop="progressBar">
- <template slot-scope="props">
- <el-progress :percentage="props.row.progressBar"></el-progress>
- </template>
- </el-table-column>
- </el-table>
- <!-- v-if="adminpageData.total > 0" -->
- <el-pagination style="display: flex; flex-direction: row-reverse" :current-page.sync="adminpageData.pageNum"
- :page-sizes="adminpageData.pageSizes ? adminpageData.pageSizes : [5, 10, 15, 20]
- " :page-size="adminpageData.pageSize" layout="total, sizes, prev, pager, next, jumper"
- :total="adminpageData.total" @size-change="adminhandleSizeChange" @current-change="adminhandleCurrentChange" />
- </div>
- </div>
- <div class="containtbox">
- <el-dialog title="处理操作" :visible.sync="dialogVisible1" v-if="dialogVisible1" :before-close="handleCloses"
- width="100%" height="100vh" class="dialogClass" top="0" :modal="false" :modal-append-to-body="true"
- :destroy-on-close="true">
- <!-- -->
- <!-- <Workflow :list="ruleForm" :requestForm="requestForm" @dialogVisible1 = "Visible1"/> -->
- <Workflow :list="infolist" @updateForm="updateForm" :requestForm="requestForm"
- :request_formTitle="request_form.title" />
- <!-- @dialogVisible1 = "Visible1" -->
- <!-- <WorkflowEntrance
- :list="infolist"
- v-else
- :lastManList="lastManList"
-
- @beforeClose = "updateForm"
- :requestForm="requestForm"
- /> -->
- <span slot="footer" class="dialog-footer">
- </span>
- </el-dialog>
- </div>
- <el-dialog :visible.sync="dialogVisible" :before-close="handleCloses" width="100%" height="500vh" class="dialogClass"
- top="0" :modal="false" :show-close="false" :modal-append-to-body="true">
- <span class="dialog-body">
- <el-form :model="infolist" ref="infolist" :rules="rules" label-width="100px" class="demo-ruleForm">
- <!--dialogVisible1 = true -->
- <el-form-item style="position: fixed; top: 50px; left: -60px; z-index: 1000">
- <!-- v-if="baocun" @click="newFormgong"-->
- <el-button type="primary" @click="dealwith()" v-if="deal">处理</el-button>
- <el-button type="primary" @click="close()">关闭</el-button>
- <el-button type="primary" @click="saveform()" v-if="baocun">保存</el-button>
- <!-- <el-button type="primary" @click="submitForm()" v-if = "baocun">保存</el-button> -->
- </el-form-item>
- <!-- style="height: calc(100% - 160px); overflow: auto" -->
- <div>
- <el-row :gutter="10">
- <el-col :span="8" style="width: 450px; padding-top: 68px">
- <el-form-item prop="businessName" label="业务名称">
- <el-input v-model="infolist.businessName" placeholder="业务名称" :disabled="disableStatus"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" style="width: 450px;padding-top: 68px">
- <el-form-item label="下单周期" prop="cycle">
- <el-date-picker v-model="infolist.cycle" type="daterange" range-separator="-" start-placeholder="开始日期"
- end-placeholder="结束日期" :disabled="disableStatus" :picker-options="pickerOptions0">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8" style="width: 450px;padding-top: 68px">
- <el-form-item label="需求编号" prop="needCode">
- <el-input v-model="infolist.needCode" placeholder="需求编号" disabled></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="10">
- <el-col :span="8" style="width: 450px">
- <el-form-item prop="districtScore" label="区县打分">
- <el-input v-model="infolist.districtScore" placeholder="区县打分"
- :disabled="this.infolist.tabletaskName != '区县公司负责人'"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" style="width: 410px">
- <el-form-item prop="gys" label="供应商">
- <!-- <span>供应商</span> -->
- <el-select @change="gysMing(1, $event)" clearable v-model="infolist.gys" placeholder="供应商"
- :disabled="this.infolist.tabletaskName != '省公司宣传负责人'">
- <el-option v-for="(items, index) in gysopt" :key="index" :label="items.name" :value="items.name">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8" style="width: 470px">
- <el-form-item label="物料验证材料链接" prop="materialUrl" label-width="140px">
- <el-input v-model="infolist.materialUrl" placeholder="物料验证材料链接"
- :disabled="this.infolist.tabletaskName != '区县公司负责人'"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item class="info-line online">
- <el-table :data="infomaterType" style="width: 100%" height="240px" border size="mini">
- <!-- <el-table-column type="selection" width="55" fixed="left" > -->
- <!-- </el-table-column> -->
- <el-table-column prop="riqi" label="日期">
- </el-table-column>
- <el-table-column prop="formType" label="表单类型">
- </el-table-column>
- <el-table-column prop="region" label="地市公司">
- </el-table-column>
- <el-table-column prop="district" label="区县名称">
- </el-table-column>
- <el-table-column prop="channelCode" label="渠道编码">
- </el-table-column>
- <el-table-column prop="channelQuartersSchool" label="渠道/小区/校园名称">
- </el-table-column>
- <!-- <el-table-column prop="useCase" label="场景"> -->
- <el-table-column prop="useCase" label="场景">
- </el-table-column>
- <el-table-column prop="channelCode" label="物料编码">
- </el-table-column>
- <el-table-column prop="material" label="物料名称">
- </el-table-column>
- <el-table-column prop="unit" label="物料单位">
- </el-table-column>
- <el-table-column prop="spec" label="规格尺寸">
- </el-table-column>
- <el-table-column prop="chang" label="长"> </el-table-column>
- <el-table-column prop="kuan" label="宽"> </el-table-column>
- <el-table-column prop="hengShu" label="横竖">
- </el-table-column>
- <el-table-column prop="coefficient" label="系数">
- </el-table-column>
- <!-- <el-table-column prop="price" label="单价"> </el-table-column> -->
- <el-table-column prop="quantity" label="数量">
- </el-table-column>
- <el-table-column prop="priority" label="优先级">
- </el-table-column>
- <el-table-column label="麦穗" prop="gys1Price">
- <!-- <template slot-scope="scope">
- <div>
- {{
- (scope.row.gys1Price =
- scope.row.quantity *
- scope.row.price *
- scope.row.coefficient)
- }}
- </div>
- </template> -->
- </el-table-column>
- <el-table-column label="神笔" prop="gys2Price">
- <!-- <template slot-scope="scope">
- <div>
- {{
- (scope.row.gys2Price =
- scope.row.quantity *
- scope.row.price *
- scope.row.coefficient)
- }}
- </div>
- </template> -->
- </el-table-column>
- <el-table-column label="江苏邮电" prop="gys3Price"></el-table-column>
- <el-table-column label="湖州绿包" prop="gys4Price"></el-table-column>
- <el-table-column label="操作" fixed="right" align="center" v-if="this.infolist.tabletaskName == '起草'">
- <template slot-scope="scope">
- <el-button size="mini" type="text" @click="updatexiuform(scope.row)" :disabled="xiugaizhuan">
- 修改</el-button>
- </template>
- </el-table-column>
- <!-- <el-table-column label="供应商3金额" prop="gys3Price">
- <template slot-scope="scope">
- <div>
- {{
- (scope.row.gys3Price =
- scope.row.quantity *
- scope.row.price *
- scope.row.coefficient)
- }}
- </div>
- </template>
- </el-table-column>
- <el-table-column label="供应商4金额" prop="gys4Price">
- <template slot-scope="scope">
- <div>
- {{
- (scope.row.gys4Price =
- scope.row.quantity *
- scope.row.price *
- scope.row.coefficient)
- }}
- </div>
- </template>
- </el-table-column> -->
- </el-table>
- </el-form-item>
- </el-col>
- </el-row>
- <div style="width: 96%; margin:20px 0 0 38px">
- <div>
- <myUpload @uploadBack="uploadBack" @clickDownload="download" :disabled="updisabled" :fileInfo="fileInfo"
- :fileList="fileInfo.fileList">
- </myUpload>
- </div>
- </div>
- </div>
- </el-form>
- <div class="table-title">
- <h2>流程追踪</h2>
- </div>
- <div class="flex-header-process">
- <!-- <tableList :list="processTable" ref="el-form" @clickDemand = "clickDemand"></tableList> -->
- <el-table :data="tableData1" :header-cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }"
- style="width: 100%" max-height="350">
- <el-table-column type="index" label="序号" width="50">
- </el-table-column>
- <el-table-column prop="taskName" label="环节名称" width="280" class="is-center">
- </el-table-column>
- <el-table-column prop="assignee" label="处理人" width="280">
- </el-table-column>
- <el-table-column prop="startTime" label="到达时间" width="280">
- </el-table-column>
- <el-table-column prop="endTime" label="处理时间" width="280">
- </el-table-column>
- <el-table-column prop="content" label="回复意见" width="280">
- </el-table-column>
- </el-table>
- </div>
- </span>
- </el-dialog>
- <el-dialog title="下单信息" :visible.sync="typests" width="50%" :destroy-on-close="true" :modal-append-to-body="false"
- :show-close="false" :before-close="closedia">
- <el-form :model="rulelist" ref="rulelist" style="height: 30vh; overflow-y: scroll" v-loading="loadinged">
- <div class="info-lineform">
- <el-form-item prop="useCase" label="使用场景">
- <el-select @change="changeMing(1, $event)" clearable v-model="rulelist.useCase" placeholder="使用场景" disabled>
- <el-option v-for="(items, index) in useCaseopt" :key="index" :label="items.dataName"
- :value="items.dataName">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="formType" label="表单类型">
- <el-select v-model="rulelist.formType" placeholder="请选择表单类型" disabled>
- <el-option v-for="(item, index) in optionList" :label="item.value" :value="item.value"
- :key="index"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="material" label="物料名称">
- <el-select @change="changeSearch(3, $event)" clearable v-model="rulelist.material" placeholder="物料名称"
- disabled>
- <el-option v-for="(items, index) in metirialOpt" :key="index" :label="items.metirialName"
- :value="items.metirialName">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="quantity" label="数量" label-width="68px">
- <el-input v-model="rulelist.quantity" placeholder="数量" type="number"
- oninput="value=value.replace(/^(0+)|[^\d]+/g,'')" style="width:256px">
- </el-input>
- </el-form-item>
- <el-form-item prop="channelQuartersSchool" label="渠道/小区/校园名称" label-width="137px">
- <el-input v-model="rulelist.channelQuartersSchool" placeholder="渠道/小区/校园名称" style="width:256px">
- </el-input>
- </el-form-item>
- </div>
- </el-form>
- <div class="t-footer">
- <!-- -->
- <el-button type="primary" @click="gengxinge">确 定</el-button>
- <!-- <el-button @click="closediaform">取 消</el-button> -->
- </div>
- </el-dialog>
- <el-dialog :title="titname" :visible.sync="applicationDialogStatus" width="30%" :destroy-on-close="true"
- :modal-append-to-body="false" :close-on-click-modal="false" :before-close="closedia">
- <div v-loading="loadinged">
- <el-form :model="approvalinfolist" ref="approvalinfolist">
- <el-form-item class="info-line online" style="margin-left: 10%">
- <el-radio-group v-model="approvalinfolist.opinionradio">
- <el-radio :label="1">同意</el-radio>
- <el-radio :label="2">打回</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item class="info-line online" style="text-align: center">
- <el-input v-model="approvalinfolist.opinion" placeholder="审批意见" type="textarea" :rows="2"></el-input>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer myfooter">
- <el-button @click="dialogCli(4)">取 消</el-button>
- <el-button type="primary" @click="dialogCli(5)">确 定</el-button>
- </div>
- </div>
- </el-dialog>
- <myMessage :messTit='messTit' @closeMessage="closeMessage" :centerDialogVisible="centerDialogVisible"
- v-if="centerDialogVisible"></myMessage>
- </fullscreen>
- </template>
- <script>
- import eltabs from "../../../components/el-tabs";
- import mySearch from "../../../components/search.vue";
- import myMessage from "../../../components/myMessage.vue"
- import toolList from '../../../components/toolList'
- import myUpload from '../../../components/uploadfour'
- import tableList from "../../../components/el-formfour";
- import Workflow from "../../../components/workflowBasexcwls";
- import getConfig from '../../../config/dev.js'
- // import Workflow from "../../../components/workflow";
- // import WorkflowEntrance from "../../../components/workflowEntrance";
- import {
- getTodoBase,
- getDoneBase,
- } from "../../../http/api.js";
- export default {
- components: {
- mySearch,
- myMessage,
- toolList,
- myUpload,
- eltabs,
- tableList,
- Workflow,
- },
- data() {
- // const regionName = (rule, value, callback) => {
- // if (!this.infolist.regionName) {
- // callback(new Error('不能为空'))
- // } else {
- // callback()
- // }
- // }
- // const advTypeDesc = (rule, value, callback) => {
- // if (!this.infolist.advTypeDesc) {
- // callback(new Error('不能为空'))
- // } else {
- // callback()
- // }
- // }
- return {
- requestForm: {
- fresourceId: getConfig().materialApplicationdsfresourceId,
- processDefinitionKey: "xcwl_cit_process",
- processDefinitionKey1: "xcwl_pro_process",
- // processDefinitionKeys: "xcwl_cit_process",
- taskId: "",
- },
- request_form: {
- userId: "",
- userName: "",
- path: this.$router.currentRoute.name,
- userCode: JSON.parse(window.sessionStorage.userInfo).loginNo,
- title: "",
- businessKey: "",
- processDefinitionKey: "xcwl_cit_process",
- },
- processDefinitionKey1: "xcwl_pro_process",
- lastManList: [],
- tabList: [
- {
- index: "first",
- label: "我的待办",
- number: "",
- name: "prosss_key",
- },
- {
- index: "two",
- label: "我的已办",
- number: "",
- },
- {
- index: "three",
- label: "我发起的",
- number: "",
- },
- ],
- Table: {},
- adminpageData: {
- total: 15, // 总条数
- pageSizes: 10, // 每页数量
- pageNum: 1, // 页码
- },
- firstTable: {
- name: "first",
- height: "350",
- titledata: [
- {
- label: "业务名称",
- prop: "needName",
- width: 200,
- },
- {
- label: "地市",
- prop: "region",
- width: 200,
- },
- {
- label: "区县",
- prop: "district",
- width: 200,
- },
- {
- label: "渠道/小区/校园名称",
- prop: "channelQuartersSchool",
- width: 200,
- },
- {
- label: "使用场景",
- prop: "useCase",
- width: 200,
- },
- {
- label: "物料名称",
- prop: "material",
- width: 200,
- },
- {
- label: "规格尺寸",
- prop: "spec",
- width: 100,
- },
- {
- label: "长",
- prop: "chang",
- width: 100,
- },
- {
- label: "宽",
- prop: "kuan",
- width: 100,
- },
- {
- label: "横/竖",
- prop: "hengShu",
- width: 100,
- },
- {
- label: "系数",
- prop: "coefficient",
- width: 100,
- },
- // {
- // label: "单价",
- // prop: "price",
- // width: 100,
- // },
- {
- label: "数量",
- prop: "quantity",
- width: 100,
- },
- {
- label: "麦穗",
- prop: "gys1Price",
- width: 100,
- },
- {
- label: "神笔",
- prop: "gys2Price",
- width: 100,
- },
- {
- label: "江苏邮电",
- prop: "gys3Price",
- width: 100,
- },
- {
- label: "湖州绿包",
- prop: "gys4Price",
- width: 100,
- },
- {
- label: "状态",
- prop: "taskname",
- width: 200,
- },
- ], //表格头
- data: [
- {
- label: "文件标题", // 操作名
- handleRow: (e, r, o) => {
- this.operationZuo(r);
- }
- }
- ], //内容数据
- loading: true,
- pageData: {
- total: 100, // 总条数
- pageSize: 10, // 每页数量
- pageNum: 1, // 页码
- },
- isSelection: false, // 表格有多选时设置
- isOperation: false, // 表格有操作列时设置
- isIndex: false, // 列表序号
- operation: {
- // 表格有操作列时设置
- label: "操作", // 列名
- width: "50", // 根据实际情况给宽度
- data: [
- {
- label: "任务下发", // 操作名称
- type: "", //按钮类型
- handleRow: function (e, r, o) {
- // getinform
- // this.getinform(r);
- }, // 自定义事件
- },
- ],
- },
- },
- twoTable: {
- name: "first",
- height: "350",
- titledata: [
- {
- label: "业务名称",
- prop: "needName",
- width: 200,
- },
- {
- label: "地市",
- prop: "region",
- width: 200,
- },
- {
- label: "区县",
- prop: "district",
- width: 200,
- },
- {
- label: "渠道/小区/校园名称",
- prop: "channelQuartersSchool",
- width: 200,
- },
- {
- label: "使用场景",
- prop: "useCase",
- width: 200,
- },
- {
- label: "物料名称",
- prop: "material",
- width: 200,
- },
- {
- label: "规格尺寸",
- prop: "spec",
- width: 100,
- },
- {
- label: "长",
- prop: "chang",
- width: 100,
- },
- {
- label: "宽",
- prop: "kuan",
- width: 100,
- },
- {
- label: "横/竖",
- prop: "hengShu",
- width: 100,
- },
- {
- label: "系数",
- prop: "coefficient",
- width: 100,
- },
- // {
- // label: "单价",
- // prop: "price",
- // width: 100,
- // },
- {
- label: "数量",
- prop: "quantity",
- width: 100,
- },
- {
- label: "麦穗",
- prop: "gys1Price",
- width: 100,
- },
- {
- label: "神笔",
- prop: "gys2Price",
- width: 100,
- },
- {
- label: "江苏邮电",
- prop: "gys3Price",
- width: 100,
- },
- {
- label: "湖州绿包",
- prop: "gys4Price",
- width: 100,
- },
- {
- label: "状态",
- prop: "taskname",
- width: 200,
- },
- ], //表格头
- data: [
- {
- label: "文件标题", // 操作名
- handleRow: (e, r, o) => {
- this.operationZuo(r);
- }
- }
- ], //内容数据
- loading: true,
- pageData: {
- total: 100, // 总条数
- pageSize: 10, // 每页数量
- pageNum: 1, // 页码
- },
- isSelection: false, // 表格有多选时设置
- isOperation: false, // 表格有操作列时设置
- isIndex: false, // 列表序号
- operation: {
- // 表格有操作列时设置
- label: "操作", // 列名
- width: "50", // 根据实际情况给宽度
- data: [
- {
- label: "任务下发", // 操作名称
- type: "", //按钮类型
- handleRow: function (e, r, o) {
- // getinform
- // this.getinform(r);
- }, // 自定义事件
- },
- ],
- },
- },
- gysopt: [
- ],
- useCaseopt: [
- {
- dataCode: "1",
- dataName: "小区"
- },
- {
- dataCode: "2",
- dataName: "校园"
- },
- {
- dataCode: "3",
- dataName: "营业厅-VI改造-自有渠道"
- },
- {
- dataCode: "4",
- dataName: "营业厅-常规物料-自有渠道"
- },
- {
- dataCode: "5",
- dataName: '营业厅-VI改造-合作渠道'
- },
- {
- dataCode: "6",
- dataName: '营业厅-常规物料-合作渠道'
- },
- {
- dataCode: "7",
- dataName: "政企"
- }
- ],
- optionList: [
- {
- id: 1,
- value: "自有渠道",
- },
- {
- id: 2,
- value: "合作渠道",
- },
- {
- id: 3,
- value: "家庭市场",
- },
- {
- id: 4,
- value: "个人市场",
- },
- {
- id: 5,
- value: "政企市场",
- },
- ],
- metirialOpt: [
- {
- materialNo: "6",
- metirialName: '常规物料'
- },
- {
- materialNo: "7",
- metirialName: "政企物料"
- }
- ],
- searchList: [
- {
- type: 'input',
- tit: '业务名称',
- value: '',
- width: '32%',
- },
- {
- type: 'sel',
- tit: '状态',
- value: '',
- width: '32%',
- options: [
- {
- dataCode: "0",
- dataName: "待审批"
- },
- {
- dataCode: "1",
- dataName: "待确认"
- },
- {
- dataCode: "2",
- dataName: "待验收"
- },
- {
- dataCode: "3",
- dataName: "已完成"
- }
- ]
- },
- {
- type: 'date',
- tit: '申请时间',
- value: '',
- width: '32%',
- },
- ],
- rules: {
- cycle: [{ type: "array", required: true, trigger: "blur", message: "下单周期不能为空" }],
- needCode: [{ required: true, trigger: "blur", message: "需求编号不能为空" }],
- businessName: [{ required: true, trigger: "blur", message: "业务名称不能为空" }],
- },
- childname: "first",
- tooltit: '物料申请管理',
- // applyType: "省",
- fullscreen: false,
- total: 0,
- pageSize: 1,
- pageNo: "1",
- page: "1",
- selectLetter: "",
- tableData: [],
- tableData1: [],
- typests: false, //修改弹窗
- dialogStatus: false,
- disableStatus: false,
- dialogVisible1: false,
- treeList: [], //候选人列表
- textarea: "未填写意见",
- destroy: false,
- infomaterType: [],
- infolist: [],
- xiugaizhuan: false,
- deal: true,
- baocun: true,
- rulelist: [],
- wfFileShareAttachList: [],
- teshuhuanjie: [],
- isWorkflowStatus: false,
- titname: '',
- infolist: {},
- searchBox: {},
- userInfo: {},
- params: {},
- centerDialogVisible: false,
- dialogVisible: false,
- messTit: '',
- delid: '',
- loading: false,
- loadinged: false,
- updisabled: false,
- fileInfo: {
- limit: 10,
- url: '/market/waf/uploadByMinio',
- fileList: []
- },
- infoApply: {},
- rovaList: [],
- applicationDialogStatus: false,
- approvalinfolist: {
- opinionradio: 1
- },
- pickerOptions0: {
- disabledDate(time) {
- return time.getTime() < Date.now() - 8.64e7; //如果没有后面的-8.64e7就是不可以选择今天的
- },
- },
- stsArr: ['待审批', '待确认', '待验收', '已完成'],
- provinceCityArr: ['省', "地市", "区县"],
- loginNoStr: "",
- cityWoId: "",
- }
- },
- watch: {
- 'infolist.tabletaskName': {
- handler(newVal, oldVal) {
- let rule1 = {
- gys: [
- { required: true, validator: this.validatorFile, trigger: "blur" },
- ],
- }
- let rule2 = {
- districtScore: [
- { required: true, validator: this.validatorDafen, trigger: "blur" },],
- materialUrl: [
- { required: true, validator: this.validatorLianjie, trigger: "blur" },],
- }
- if (newVal === '省公司宣传负责人') {
- this.rules = { ...this.rules, ...rule1 }
- }
- else if (newVal === '区县公司负责人') {
- this.rules = { ...this.rules, ...rule2 }
- }
- },
- deep: true,
- },
- },
- methods: {
- clickTabs(name) {
- this.pageNo = "1";
- this.page = "1";
- this.childname = name;
- if (name == "first") {
- this.Table = this.firstTable;
- this.getTodoList();
- } else if (name == "two") {
- this.Table = this.twoTable;
- this.haveDone();
- } else {
- this.Table = {}
- this.getIssueList();
- }
- },
- changeNum(val) {
- this.page = val;
- this.pageNo = val;
- switch (this.childname) {
- case "first":
- this.getTodoList();
- // this.iniTiate();
- break;
- case "two":
- this.haveDone();
- break;
- case "three":
- // this.iniTiate();
- // this.Table = this.thirdTable;
- }
- },
- clickDemand(e, r) {
- if (e === "业务名称") {
- if (this.childname == "first") {
- }
- if (this.childname == "two") {
- this.disableStatus = true;
- this.deal = false;
- this.baocun = false;
- this.xiugaizhuan = true;
- // this.shanchu = false;
- // this.xinzeng = false;
- }
- if (this.childname == "three") {
- // this.shanchu = false;
- // this.xinzeng = false;
- // this.isdisabled = true;
- // if(r.taskName == "起草"){
- this.deal = false;
- this.baocun = false;
- // }else{
- // this.deal = false;
- // this.baocun = false;
- // }
- }
- this.operationZuo(r); //点标题
- this.clickForm(r); //流程追踪
- }
- },
- chakanfaqi(r) {
- this.operationZuo(r); //点标题
- this.deal = false;
- this.baocun = false;
- this.clickForm1(r)
- },
- // operationZuo(){
- // this.dialogVisible = true;
- // },
- //点击标题
- operationZuo(r) {
- let list = {}
- list.id = r.id,
- this.$http({
- url: "/market/xcwlProcess/query",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: list,
- }).then((res) => {
- this.dialogVisible = true;
- this.infolist = res.data;
- this.infolist.businessName = res.data.xcwlProProcessList[0].needName;
- this.infomaterType.riqi = res.data.riqi;
- this.infomaterType.region = res.data.region;
- this.infomaterType = res.data.xcwlProProcessList;
- this.fileInfo.fileList = res.data.mkFileShareAttachList;
- this.infolist.cycle = res.data.cycleList;
- this.infolist.resourceId = r.resourceId;
- this.infolist.taskId = r.taskId;
- this.infolist.id = r.id;
- this.infolist.createId = r.createId;
- this.infolist.tabletaskName = r.taskname;
- this.infolist.gys = res.data.xcwlProProcessList[0].selectedGys;
- this.infolist.districtScore = res.data.xcwlProProcessList[0].districtScore;
- this.infolist.materialUrl = res.data.xcwlProProcessList[0].materialUrl;
- if (r.taskName != "起草") {
- this.disableStatus = true;
- this.updisabled = true; //上传附件
- } else {
- this.updisabled = false;
- }
- if (this.infolist.tabletaskName === "起草" || this.infolist.tabletaskName === "省公司宣传负责人" || this.infolist.tabletaskName === "区县公司负责人") {
- this.baocun = true;
- } else {
- this.baocun = false;
- }
- this.$http({
- url: "/market/cadvSupplier/queryList",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {},
- }).then((res) => {
- this.gysopt = res.data;
- });
- });
- },
- uploadBack(v) {
- this.attList = v;
- this.ruleForm.wfFileShareAttachList = v;
- console.log(this.ruleForm.wfFileShareAttachList);
- // console.log(this.attList);
- },
- validatormk(rule, value, callback) {
- console.log(this.ruleForm.wfFileShareAttachList)
- if (this.ruleForm.wfFileShareAttachList == null) {
- console.log(111);
- callback(new Error('请上传附件'));
- } else {
- callback();
- }
- },
- gysMing(n, ev) {
- let that = this;
- let hh = that.gysopt.filter(function (c, i, a) {
- if (c.name == that.infolist.gys) {
- return c;
- }
- });
- this.selectLetter = hh[0].code;
- // console.log(this.selectLetter);
- },
- dealwith() {
- if (this.infolist.tabletaskName == "省公司宣传负责人" || this.infolist.tabletaskName == "区县公司负责人") {
- if (this.teshuhuanjie.length == 0) {
- this.$message.error("请先点击保存");
- } else {
- this.dialogVisible1 = true;
- this.request_form.title = '[市场经营管理平台]-' + '地市宣传物料申请及审批-' + this.infolist.businessName;
- }
- } else {
- this.dialogVisible1 = true;
- this.request_form.title = '[市场经营管理平台]-' + '地市宣传物料申请及审批-' + this.infolist.businessName;
- }
- },
- updatexiuform(r) {
- this.typests = true;
- this.rulelist = r;
- },
- closediaform() {
- this.typests = false;
- },
- //更新表格
- gengxinge() {
- this.typests = false;
- let rulelistform = {}
- rulelistform.metirialName = this.rulelist.material;
- rulelistform.quantity = this.rulelist.quantity;
- rulelistform.ratio = this.rulelist.coefficient;
- this.$http({
- url: "/market/xcwlProcessImport/getPriByMetirialName",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: rulelistform,
- }).then((res) => {
- this.infomaterType[0].gys1Price = res.data.body.gys1Price;
- this.infomaterType[0].gys2Price = res.data.body.gys2Price;
- this.infomaterType[0].gys3Price = res.data.body.gys3Price;
- this.infomaterType[0].gys4Price = res.data.body.gys4Price;
- });
- },
- validatorFile(rule, value, callback) {
- if (this.infolist.gys == null) {
- callback(new Error('请选择供应商'));
- } else {
- callback();
- }
- },
- validatorDafen(rule, value, callback) {
- if (this.infolist.districtScore == null || "") {
- callback(new Error('请输入区县打分'));
- } else {
- callback();
- }
- },
- validatorLianjie(rule, value, callback) {
- if (this.infolist.materialUrl == null || "") {
- callback(new Error('请输入物料验证材料链接'));
- } else {
- callback();
- }
- },
- //任务下发
- getinform(r) {
- this.infolist = r;
- this.infolist.id = r.id;
- this.request_form.businessKey = r.id;
- this.request_form.title = '[市场经营管理平台]-' + '地市宣传物料申请及审批-' + r.needName;
- this.getUserIds();
- },
- //获取userID
- getUserIds() {
- let id = JSON.parse(window.sessionStorage.userInfo).loginNo
- this.$http({
- url: "/market//api/user/info/queryNodePers?params=" + id,
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {
- // params: JSON.parse(window.sessionStorage.userInfo).loginNo,
- },
- }).then((res) => {
- // console.log(res.data[0].children);
- this.request_form.userName = res.data[0].children[0].loginNameStr;
- this.request_form.userId = res.data[0].children[0].loginNoStr;
- this.clickHandle(this.infolist);
- });
- },
- async clickHandle(e) {
- let _this = this;
- let obj = {
- url: this.$url.formList.startWork, //开始工作流接口
- data: _this.request_form,
- status: "form",
- headers: {
- "Content-Type": "application/x-www-form-urlencoded",
- },
- };
- let res = await this.common.httpPost(obj, success);
- function success(data) {
- _this.infolist.processId = data.data;
- let list = {
- id: e.id,
- // taskId:_this.formId,
- processId: data.data,
- tableName: _this.processDefinitionKey1,
- // resourceId: _this.nextPath.currentShape[0].resourceId,
- };
- _this.setUpdate(list);
- }
- },
- //更新工作流接口
- setUpdate(e) {
- this.$http({
- url: "/market/waf/updateBase",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: e,
- }).then((res) => {
- this.infolist.taskId = res.data.body[0].taskId;
- this.clickHandles();
- });
- },
- //是否最后一个人
- async getLastName() {
- let list = {
- procinstid: this.infolist.processId,
- taskid: this.infolist.taskId,
- // taskId:e.taskId
- };
- let _this = this;
- let obj = {
- url: this.$url.formList.getLastName, //流程追踪接口
- data: list,
- // status: "form",
- headers: {
- "Content-Type": "application/json",
- },
- };
- let res = await this.common.httpPost(obj, success);
- function success(data) {
- if (data.lastMan == true) {
- _this.adminResourceId = data.adminResourceId;
- }
- _this.destroy = true;
- _this.dialogVisible1 = true;
- _this.isWorkflowStatus = data.lastMan == false ? false : true;
- _this.lastManList = data;
- }
- },
- getNextPath(e) {
- let list = {
- // fresourceId: "bf79721c-33f3-11ed-ba0b-00505687dcd3", //测试环境
- fresourceId: this.requestForm.fresourceId, // 本地环境
- processId: this.requestForm.processDefinitionKey,
- // processId: this.infolist.processId,
- // fresourceId: "0d94de8a-0281-11ed-a302-4ae7da54db39", // 本地环境
- // processId: "request_form_process",
- // resourceId: e,
- };
- if (e) {
- // this.propsList = [];
- list.resourceId = e;
- }
- this.$http({
- url: "/market/waf/queryPath",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: list,
- }).then((res) => {
- if (res.data.body.nextShapes[0].multi) {
- // console.log('这是mulit节点');
- if (res.data.body.nextShapes[0].multi.multi === "true") {
- // console.log('这是mulit节点');
- this.getLastName();
- } else {
- this.adminResourceId = ''
- // console.log('这不是mulit节点');
- this.destroy = true;
- this.dialogVisible1 = true;
- // this.getMetirialType();
- }
- } else {
- this.adminResourceId = ''
- // console.log('这不是mulit节点');
- this.destroy = true;
- this.dialogVisible1 = true;
- // this.getMetirialType();
- }
- // if (this.infolist.processId) {
- // } else {
- // this.$message.error("请先点击保存按钮");
- // }
- });
- },
- //处理按钮,开始工作流接口
- clickHandles() {
- this.dialogVisible1 = true;
- },
- async clickForm(r) {
- let list = {
- processInstanceId: r.processId,
- // taskId:e.taskId
- };
- let _this = this;
- let obj = {
- url: this.$url.formList.getCommentsByProcessId, //流程追踪接口
- data: list,
- headers: {
- "Content-Type": "application/json",
- },
- };
- let res = await this.common.httpPost(obj, success);
- function success(data) {
- _this.tableData1 = data.data.data;
- data.data.data.map((item) => {
- item.startTime = _this.$util.datetimeFormat(item.startTime);
- item.endTime = _this.$util.datetimeFormat(item.endTime);
- });
- // _this.getProcess(e, data.data);
- _this.tableData1 = data.data.data;
- }
- },
- async clickForm1(r) {
- let list = {
- processInstanceId: r.processId,
- // taskId:e.taskId
- };
- let _this = this;
- let obj = {
- url: this.$url.formList.getCommentsByProcessId, //流程追踪接口
- data: list,
- headers: {
- "Content-Type": "application/json",
- },
- };
- let res = await this.common.httpPost(obj, success);
- function success(data) {
- _this.tableData1 = data.data.data;
- data.data.data.map((item) => {
- item.startTime = _this.$util.datetimeFormat(item.startTime);
- item.endTime = _this.$util.datetimeFormat(item.endTime);
- });
- // _this.getProcess(e, data.data);
- _this.tableData1 = data.data.data;
- }
- },
- updateForm() {
- this.dialogVisible1 = false;
- this.dialogVisible = false;
- this.getIssueList();
- this.getTodoList();
- this.haveDone();
- // this.refreshbtn();
- },
- adminhandleSizeChange(val) {
- // console.log(`每页 ${val} 条`);
- },
- adminhandleCurrentChange(val) {
- this.pageNo = val;
- this.getIssueList()
- // console.log(`当前页: ${val}`);
- },
- handleCloses() {
- this.treeList = [];
- this.textarea = "";
- this.dialogVisible1 = false;
- // this.getIssueList();
- this.getTodoList();
- this.haveDone();
- this.getIssueList();
- },
- close() {
- this.dialogVisible = false;
- this.tableData1 = [];
- },
- //我发起列表
- getIssueList(e) {
- let list = {
- applyType: "地市"
- };
- this.loading2 = true;
- this.$http({
- url: "/market/xcwlProcessImport/queryPage",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- page: '{"pageNo":"' + this.pageNo + '","pageSize":"10"}',
- },
- data: list,
- }).then((res) => {
- this.tableData = res.data.data;
- this.tabList[2].number = res.data.totalRecord;
- this.adminpageData.total = res.data.totalRecord;
- this.loading2 = false;
- });
- },
- //待办列表
- getTodoList(e, status) {
- // this.loading2 = true;
- let list = {
- tableName: this.requestForm.processDefinitionKey1,
- applyType: "地市"
- };
- if (e) {
- list.taskId = e.taskId
- }
- this.$http({
- url: "/market/xcwlProcess/queryTodoBase",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- page: '{"pageNo":"' + this.pageNo + '","pageSize":"10"}',
- },
- data: list,
- }).then((res) => {
- if (status === 0) {
- this.clickDemand("业务名称", res.data.data[0]);
- }
- this.firstTable.data = res.data.data;
- this.firstTable.pageData.total = res.data.totalRecord;
- this.tabList[0].number = res.data.totalRecord;
- this.Table = this.firstTable;
- // this.adminpageData.total = res.data.totalRecord;
- // this.loading2 = false;
- });
- },
- // getTodoList(){
- // let list = {
- // tableName: this.requestForm.processDefinitionKey,
- // };
- // // getInitiateBase getTodoBase
- // getTodoBase(this.page,"",list).then((res)=>{
- // this.firstTable.data = res.data.data;
- // this.firstTable.pageData.total = res.data.totalRecord;
- // // this.Table = this.firstTable;
- // // this.tabList[0].number = res.data.totalRecord;
- // })
- // },
- //已办
- haveDone() {
- // let list = {
- // tableName : this.requestForm.processDefinitionKey
- // }
- // getDoneBase(this.page,"",list).then((res)=>{
- // this.twoTable.data = res.data.data;
- // this.twoTable.pageData.total = res.data.totalRecord;
- // this.tabList[1].number = res.data.totalRecord;
- // this.Table = this.twoTable;
- // // this.tabList[1].number = res.data.totalRecord;
- // })
- let list = {
- tableName: this.requestForm.processDefinitionKey1,
- applyType: "地市"
- };
- this.$http({
- url: "/market/xcwlProcess/queryDoneBase",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- page: '{"pageNo":"' + this.pageNo + '","pageSize":"10"}',
- },
- data: list,
- }).then((res) => {
- this.twoTable.data = res.data.data;
- this.twoTable.pageData.total = res.data.totalRecord;
- this.tabList[1].number = res.data.totalRecord;
- // this.Table = this.twoTable;
- });
- },
- saveform() {
- this.$refs.infolist.validate((valid) => {
- if (valid) {
- this.$message.success("保存成功");
- let list = {}
- list.id = this.infolist.id;
- list.businessName = this.infolist.businessName;//业务名称
- list.cycleList = [this.$util.datetimeFormat(this.infolist.cycle[0]), this.$util.datetimeFormat(this.infolist.cycle[1])];
- list.needCode = this.infolist.needCode;
- list.districtScore = this.infolist.districtScore;
- list.gys = this.infolist.gys;
- list.materialUrl = this.infolist.materialUrl;
- list.xcwlProProcessList = this.infomaterType;
- list.gysCode = this.infolist.tabletaskName == '省公司宣传负责人' ? this.selectLetter : null;
- // list.xcwlProProcessList = this.multipleSelection;
- if (this.attList == null) {
- list.mkFileShareAttachList = this.fileInfo.fileList
- } else {
- list.mkFileShareAttachList = this.attList;
- }
- this.request_form.title = '[市场经营管理平台]-' + '地市宣传物料申请及审批-' + this.infolist.needName;
- this.$http({
- url: "/market/xcwlProcessImport/update",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: list,
- }).then((res) => {
- this.teshuhuanjie = res.data;
- // this.infomaterType = res.data;
- // if(res.data){
- // this.typests = false;
- // return;
- // }
- });
- } else {
- this.$message.error("请完善表单信息");
- }
- });
- },
- download(u) {
- // if (this.ruleForm.wfFileShareAttachList.length > 1) {
- this.$http({
- url: "/market/waf/downAllFileByMinio",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- responseType: "blob",
- data: { wfFileShareAttachList: this.fileInfo.fileList },
- }).then((response) => {
- if (window.navigator && window.navigator.msSaveOrOpenBlob) {
- let blob = new Blob([response.data], {
- type: "application/vnd.ms-excel",
- });
- window.navigator.msSaveOrOpenBlob(
- blob,
- new Date().getTime().toString() + ".zip"
- );
- } else {
- /* 火狐谷歌的文件下载方式 */
- var blob = new Blob([response.data]);
- var downloadElement = document.createElement("a");
- var href = window.URL.createObjectURL(blob);
- downloadElement.href = href;
- // downloadElement.download = this.ruleForm.fileName + ".zip";
- downloadElement.download = "附件.zip";
- document.body.appendChild(downloadElement);
- downloadElement.click();
- document.body.removeChild(downloadElement);
- window.URL.revokeObjectURL(href);
- }
- if (this.infolist.authType === "3") {
- this.dialogCli(10);
- }
- });
- },
- jumpadd() {
- this.$router.push({
- path: '/materialApplicationadd',
- query: { applyType: '地市' },
- });
- this.setabList('物料宣传申请', '/materialApplicationadd');
- },
- jump(v, n) {
- if (v === 1) {
- // this.$router.push("/materialApplicationExa?id=" + n.id + "");
- this.$router.push({
- path: '/materialApplicationExa',
- query: { cityWoId: n.cityWoId, id: n.id, btnS: 1 }
- })
- } else if (v === 2) {
- this.$router.push("/materialApplicationDetail?id=" + n.id + "")
- } else if (v === 3) {
- let jumpParams = { cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id, pcId: n.provinceCity };
- sessionStorage.setItem("jumpParams", JSON.stringify(jumpParams))
- if (n.provinceCity == 1 && n.nextStep == 7) {
- this.$router.push({
- path: '/subtaskList',
- // query: { cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id, }
- // path: '/subtaskList/:name',
- // name: 'subtaskList',
- // params: { cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id, }
- })
- } else if ((n.provinceCity == 1 && n.nextStep == 11) || (n.provinceCity == 2 && n.nextStep == 9) || (n.provinceCity == 3 && n.nextStep == 10)) {
- this.$router.push({
- path: '/acceptanceSituation',
- // query: { cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id, pcId: n.provinceCity}
- // path: '/acceptanceSituation/:name',
- // name: 'acceptanceSituation',
- // params: { cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id, pcId: n.provinceCity}
- })
- }
- } else if (v === 4) {
- // this.$router.push("/acceptance?cityWoId="+ n.cityWoId + "&countyWoId=" + n.countryWoId)
- this.$router.push({
- path: '/acceptance',
- query: { cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id }
- })
- }
- },
- setabList(n, p) {
- let params = {
- children: "",
- name: n,
- rountPath: p,
- target: "_self",
- };
- for (let i = 0; i < this.$store.state.tabList.length; i++) {
- if (this.$store.state.tabList[i].name === params.name) {
- this.$store.state.tabList[i] = params;
- }
- }
- let set = new Set([...this.$store.state.tabList, params]);
- set.add(params);
- this.$store.commit("setDefaultActive", params.rountPath);
- this.$store.commit("setTabList", Array.from(set));
- },
- closedia() {
- this.infolist = {};
- this.dialogStatus = false;
- this.approvalinfolist = {};
- this.applicationDialogStatus = false;
- },
- //搜索数据
- searchInfo(v) {
- this.params = {};
- v[0] ? this.params.bizName = v[0] : '';
- v[1] ? this.params.sts = v[1] : '';
- let timeFrom = '';
- let timeTo = '';
- if (v[2]) {
- timeFrom = this.$formatDate(v[2], "YYYY-MM-DD") + ' 00:00:00'
- timeTo = this.$formatDate(v[2], "YYYY-MM-DD") + ' 23:59:59'
- }
- timeFrom ? this.params.opTimeFrom = timeFrom : '';
- timeTo ? this.params.opTimeTo = timeTo : '';
- this.getList(this.params, this.pageSize);
- },
- //获取列表
- getList(v, n) {
- this.pageSize = n;
- let _this = this;
- // this.loading = true;
- this.tableData = [];
- this.$http({
- url: "/market/cadvBusiMetirialWo/queryPage",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- "page": '{"pageNo":"' + n + '","pageSize":"10"}'
- },
- data: v,
- }).then((res) => {
- this.tableData = res.data.body.pageList.data;
- this.total = res.data.body.pageList.totalRecord;
- this.loading = false;
- });
- },
- // 分页
- currchange(v) {
- this.pageSize = v;
- this.getList(this.params, this.pageSize);
- },
- //申请
- dialogCheck(v, n) {
- this.dialogStatus = true;
- // 审批同意对话框
- this.applicationDialogStatus = true;
- this.infolist = Object.assign({}, n);
- if (v === 1) {
- this.titname = '查看';
- this.disableStatus = true;
- } else if (v === 2) {
- this.titname = '审批';
- this.disableStatus = false;
- }
- this.$http({
- url: '/bpm/api/taskInit',
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {
- woNo: n.woNo
- },
- }).then((res) => {
- this.infolist = Object.assign({}, res.data);
- this.infoApply = JSON.parse(this.infolist.params.wo);
- this.rovaList = res.data.taskList;
- });
- },
- //添加
- dialogCli(v) {
- if (v === 1) {
- this.infolist = {};
- this.dialogStatus = false;
- return
- } else if (v === 5) {
- if (this.approvalinfolist.opinionradio == 1) {
- this.infolist.opTime = this.$formatDate(new Date(), "YYYY-MM-DD");
- this.infolist.dealType = '2';
- this.infolist.dealTypeDesc = this.approvalinfolist.opinion;
- this.applicationDialogStatus = false;
- this.submitInfo("/bpm/api/submitTask", this.infolist);
- }
- }
- else {
- this.infolist.opTime = this.$formatDate(new Date(), "YYYY-MM-DD");
- if (this.titname === '添加') {
- this.submitInfo("/bpm/api/addBpmPrePlugin");
- } else if (this.titname === '审批') {
- this.submitInfo("/bpm/api/updateBpmPrePlugin", v);
- }
- }
- },
- submitInfo(u) {
- let _this = this;
- //this.$refs.infolist.validate(valid => {
- //if (valid) {
- this.loadinged = true;
- this.$http({
- url: u,
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: this.infolist,
- }).then((res) => {
- this.loadinged = false;
- if (res.data.result === 1) {
- _this.$message({
- message: res.data.desc,
- type: 'error'
- });
- } else {
- _this.$message({
- message: '成功',
- type: 'success'
- });
- _this.infolist = {};
- _this.dialogStatus = false;
- _this.getList({}, _this.pageSize);
- }
- });
- //}
- //})
- },
- closeMessage(v) {
- this.centerDialogVisible = false;
- let _this = this;
- if (v === 1) {
- _this.$http({
- url: "/market/cadvBusiMetirialWo/del",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {
- woId: this.delid
- },
- }).then((res) => {
- if (res.data.result === 1) {
- _this.$message({
- message: res.data.desc,
- type: 'error'
- });
- } else {
- _this.$message({
- message: '删除成功',
- type: 'success'
- });
- _this.getList(this.params, this.pageSize);
- }
- });
- }
- },
- //删除
- delLine(v) {
- this.centerDialogVisible = true;
- this.messTit = '即将删除此条数据, 是否删除?';
- this.delid = v.id;
- },
- //文件返回值
- uploadBack(v) {
- this.attList = v;
- this.ruleForm.wfFileShareAttachList = v;
- },
- //功能栏
- iconCli(v) {
- if (v === 1) {
- this.getList(this.params, this.pageSize);
- }
- if (v === 2) {
- this.fullscreen = !this.fullscreen
- }
- },
- getUser() {
- this.userInfo = JSON.parse(window.sessionStorage.userInfo);
- this.loginNoStr = this.userInfo.loginNoStr;
- }
- },
- mounted() {
- },
- created() {
- let status = JSON.stringify(this.$route.query) == "{}";
- if (status) {
- this.Table = this.firstTable;
- this.haveDone();
- this.getIssueList();
- this.getUser();
- this.getTodoList();
- } else {
- let { id, type } = this.$route.query;
- let list = {
- taskId: id,
- tableName: this.tableName
- };
- this.Table = this.firstTable;
- this.haveDone();
- this.getIssueList();
- this.getUser();
- this.getTodoList(list, 0);//代办
- }
- }
- }
- </script>
- <style scoped lang="scss">
- .t-footer {
- text-align: center;
- padding: 20px;
- margin: 20px 0 20px 0;
- }
- .info-lineform {
- width: 100%;
- display: block;
- // padding-left: 20px;
- div {
- width: 50%;
- display: inline-block;
- }
- span {
- width: 80px;
- display: inline-block;
- text-align: left;
- i {
- color: red;
- display: inline-block;
- padding-right: 5px;
- }
- }
- .el-select,
- .el-input {
- width: calc(100% - 100px);
- }
- .el-checkbox-group {
- border: 1px solid #ddd;
- padding-left: 20px;
- height: 40px;
- width: calc(100% - 100px);
- border-radius: 5px;
- }
- }
- .table-title {
- width: 100%;
- height: 50px;
- margin-top: 100px;
- line-height: 50px;
- background-color: rgb(243, 250, 255);
- // font-size: 18px;
- font-weight: 700;
- }
- // ::v-deep.online .el-form-item__content {
- // width: 98%;
- // margin-left: 0 !important;
- // }
- ::v-deep .el-tabs__nav {
- margin: 12px 0 0 12px;
- }
- ::v-deep .el-tabs__nav-wrap::after {
- display: none;
- }
- ::v-deep .el-tabs__active-bar {
- display: none;
- }
- ::v-deep .el-tabs .is-active {
- color: #fff;
- background-color: #0583cd;
- }
- ::v-deep .el-tabs__item {
- padding: 0;
- margin-right: 20px;
- width: 166px;
- text-align: center;
- background-color: #d8eaf6;
- color: #000;
- height: 40px;
- box-sizing: border-box;
- line-height: 40px;
- display: inline-block;
- list-style: none;
- font-size: 14px;
- font-weight: 500;
- color: #303133;
- position: relative;
- }
- .onetab {
- margin-bottom: 20px;
- padding: 0 20px;
- }
- .titbox {
- div {
- float: right;
- i {
- font-size: 22px;
- margin-left: 20px;
- cursor: pointer;
- }
- }
- }
- .tabbox {
- margin-top: 15px;
- }
- .pageBox {
- text-align: right;
- margin-top: 10px;
- }
- .info-line {
- width: 100%;
- display: block;
- // padding-left: 20px;
- margin: 20px 0 0 -35px;
- div {
- width: 50%;
- display: inline-block;
- }
- span {
- width: 80px;
- display: inline-block;
- text-align: left;
- i {
- color: red;
- display: inline-block;
- padding-right: 5px;
- }
- }
- .el-select,
- .el-input {
- width: calc(100% - 100px);
- }
- }
- .online {
- width: 100%;
- .el-select {
- width: calc(100% - 100px);
- }
- span {
- vertical-align: top;
- }
- .el-textarea {
- width: calc(100% - 100px);
- }
- }
- .adv-type {
- margin-top: 20px;
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- // border: 1px solid #ddd;
- border-radius: 5px;
- padding: 20px;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
- div {
- width: 33%;
- text-align: center;
- height: 80px;
- overflow: hidden;
- min-width: 100px;
- cursor: pointer;
- padding-top: 10px;
- margin: 10px 0;
- }
- div:hover {
- background: #CFE8FC;
- border-radius: 5px;
- }
- span {
- width: 100%;
- display: inline-block;
- height: 40px;
- // line-height: 40px;
- i {
- color: #0074D9;
- font-size: 36px;
- }
- }
- }
- .boximgc {
- display: flex;
- flex-wrap: wrap;
- width: 100% !important;
- margin-top: 20px;
- div {
- display: inline-block;
- width: 18% !important;
- margin-right: 2%;
- margin-bottom: 20px;
- overflow: hidden;
- border: 1px solid #ddd;
- border-radius: 3px;
- background: #fff;
- position: relative;
- height: 100px;
- img {
- width: 100%;
- position: absolute;
- top: 0;
- bottom: 0;
- margin: auto;
- // height: 100%;
- }
- }
- }
- </style>
|