12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528 |
- <style lang="scss" scoped>
- .orderDetail{
- ul,li{
- margin: 0;
- padding: 0;
- }
-
- width: 100%;
- .topBody{
- width: 100%;
- background: #FFFFFF;
- margin-bottom: 12px;
- padding: 20px;
- box-sizing: border-box;
- .breadcrumb{
- height: 22px;
- font-size: 12px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #000000;
- line-height: 22px;
- }
- .bottom{
- display: flex;
- position: relative;
- justify-content: space-between;
- // padding: 20px;
- .orderIcon{
- width: 28px;
- height: 28px;
- margin-right: 15px;
- img{
- width: 100%;
- }
- }
- .tip{
- .greet{
- width: 300px;
- height: 28px;
- font-size: 20px;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: rgba(0, 0, 0, 0.85);
- line-height: 28px;
- margin-bottom: 5px;
- }
- .descPosition{
-
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: rgba(0, 0, 0, 0.45);
- overflow: hidden;
- margin-bottom: 0;
- li{
- height: 22px;
- line-height: 22px;
- margin-top:3px ;
- }
- span{
- width: 350px;
- display: inline-block;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
- }
- .optBody{
- width: 200px;
- flex-shrink:0;
- // justify-content: flex-end;
- text-align: right;
- .btnBody{
- margin-bottom: 10px;
- display: flex;
- justify-content: space-between;
- }
- .orderInfo{
- display: flex;
- justify-content: space-between;
- text-align: right;
- p{
- margin-bottom: 0;
- }
-
- .markName{
- height: 22px;
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: rgba(0, 0, 0, 0.45);
- line-height: 22px;
- }
- .big{
- height: 28px;
- font-size: 20px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: rgba(0, 0, 0, 0.85);
- line-height: 28px;
- }
- }
- }
- }
- }
- .section{
- .sectionBody{
-
- p{
- margin-bottom: 0;
- }
- .section-item{
- background: white;
- margin-bottom: 20px;
- }
- .tabBox{
- padding: 15px 20px 0;
- }
- .sectionHead{
- padding: 15px 20px;
- // height: 24px;
- font-size: 16px;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: rgba(0, 0, 0, 0.85);
- line-height: 24px;
- border-bottom: 1px solid #E9E9E9;;
- .allOrder{
- float: right;
- }
- }
- .section-box{
- padding: 20px 20px;
- .description{
- margin-top: 10px;
- .time{
- height: 32px;
- line-height: 32px;
- }
- }
- ul{
- display: flex;
- flex-wrap: wrap;
- // justify-content: space-around;
- }
- li{
-
- width: 30%;
- height: 22px;
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: rgba(0, 0, 0, 0.85);
- line-height: 22px;
- text-align: left;
- margin-bottom: 15px;
- }
- .top{
- margin-bottom: 25px;
- }
- .bottom{
- h4{
-
- font-size: 15px;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 600;
- color: rgba(0, 0, 0, 0.85);
- margin-bottom: 25px;
- }
- ul{
- width: 850px;
- display: flex;
- justify-content: space-between;
- padding: 0 15px;
- li{
- width: 400px;
- height: 32px;
- line-height: 32px;
- padding: 0 10px;
- box-sizing: border-box;
- cursor: pointer;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- background: rgba(245, 245, 245, 0.5);
- border-radius: 5px;;
- }
- }
- }
- .shenhe{
- width: 6px;
- height: 6px;
- display: inline-block;
- background: #52C41A;
- border-radius: 50%;
- position: relative;
- top: -2px;
- }
- .wancheng{
- width: 6px;
- height: 6px;
- display: inline-block;
- background: #1890FF;
- border-radius: 50%;
- // margin-right: 3px;
- position: relative;
- top: -2px;
- }
- .bohui{
- width: 6px;
- height: 6px;
- display: inline-block;
- background: #F5222D;
- border-radius: 50%;
- position: relative;
- top: -2px;
- }
- }
-
- }
- }
- }
- .videoBox{
-
- height: 240px;
- border: 1px solid rgb(245, 245, 245 );
- text-align: center;
- }
- .imgBox{
-
- // height: 180px;
- }
- .videomarterialInfo{
- position: relative;
- // height: 800px;
- }
- .marterialInfo{
- overflow: auto;
- // height: 800px;
- position: relative;
- p{margin-bottom: 0;}
- ul,li{
- margin: 0;
- padding: 0;
- }
- .info-item{
- margin-bottom: 20px;
- display: flex;
- // justify-content: center;
- align-items: flex-start;
- span{
- display: inline-block;
- width: 70px;
- text-align: left;
- flex-shrink: 0;
- text-align: right;
- }
- .ant-tag{
- width: auto;
- min-width: 50px;
- text-align: center;
- }
- }
- .info{
- ul{
- display: flex;
- width: 100%;
- justify-content: space-between;
- flex-wrap: wrap;
- }
- li{
- width: 33.3%;
- margin-bottom: 20px;
- }
- margin-bottom: 0;
- }
- .bottom-btn{
- width: 100%;
- text-align: center;
- position: absolute;
- bottom: 0px;
- left: 0;
- // margin-top: 20px;
- }
- .scriptbottom-btn{
- width: 100%;
- // height: 60px;
- line-height: 60px;
- text-align: center;
- position: absolute;
- bottom: 0px;
- left: 0;
-
- }
- }
- </style>
- <style lang="less">
- .orderDetail{
- .ant-timeline-item-head{
- background: rgb(240,242,245);
- }
- .muen{
- cursor: pointer;
- }
- .muen:hover{
- color: #1890ff;
- }
- .ant-steps-item-content{
- width: 160px;
- }
- }
- </style>
- <template>
- <div class="orderDetail ">
- <a-spin :spinning="pageSpinning">
- <div class="topBody">
- <p class="breadcrumb">
- <a-breadcrumb style="display:block;width:100%">
- <a-breadcrumb-item ><span class="muen" @click="goPlantForm()">工作台</span></a-breadcrumb-item>
- <a-breadcrumb-item>订单详情</a-breadcrumb-item>
- </a-breadcrumb>
- </p>
- <div class="bottom">
- <div class="left" style="display:flex;width:70%">
- <div class="orderIcon">
- <img src="@/assets/orderIcon.png" alt="">
- </div>
- <div class='tip'>
- <p class="greet">{{currentOrderInfo.orderTitle}}</p>
- <p class="descPosition">
- <ul>
- <li>
- <span>订单编号:{{currentOrderInfo.id}}</span>
- <span>订单周期:{{currentOrderInfo.startDate+'~'+currentOrderInfo.endDate}}</span>
- </li>
- <li>
- <span>订单发起人:{{currentOrderInfo.createByName}}</span>
- <span>关联项目:{{currentOrderInfo.projectName}}</span>
- </li>
- <li>
- <span>创建时间:{{currentOrderInfo.createTime}}</span>
- <span>设计负责人:{{currentOrderInfo.designName}}</span>
- </li>
- <li v-if="currentOrderInfo.orderStatus==2">
-
- 驳回理由:{{currentOrderInfo.orderAdvice}}
- </li>
-
- </ul>
- </p>
- </div>
- </div>
-
- <div class="optBody">
- <div class="btnBody" v-if="role=='designLeader'">
- <a-button type='primary' @click="confirmOrder" :loading='confirmOrderBtnLoading' v-if="currentOrderInfo.orderStatus==0">确定订单</a-button>
- <a-button type='default' @click="()=>{orderRejectVisiable=true}" :loading='rejectOrderBtnLoading' v-if="currentOrderInfo.orderStatus==0">
- 驳回订单</a-button>
- </div>
- <div class="btnBody" v-if="role=='operator'">
- <a-popconfirm
- title="确定要撤回订单吗?"
- ok-text="撤回"
- cancel-text="取消"
- @confirm="withdrawOrderConfirm"
- @cancel="withdrawOrderCancel"
- >
- <a-button type='default' :loading='withdrawOrderBtnLoading' v-if="currentOrderInfo.orderStatus==0">撤回订单</a-button>
- </a-popconfirm>
-
-
- <a-button type='default' @click="editOrder" :loading='editOrderBtnLoading' v-if="currentOrderInfo.orderStatus==0||currentOrderInfo.orderStatus==2">修改订单</a-button>
-
-
- </div>
- <div class="orderInfo">
- <div>
- <p class="markName">状态</p>
- <p class="big">{{ currentOrderInfo.orderStatus | handlerOrderStatus}}</p>
- </div>
- <div>
- <p class="markName">订单完成度</p>
- <p class="big">{{Math.round((currentOrderInfo.materialFinishAmount/currentOrderInfo.materialAmount)*100)|| 0 }}%</p>
- </div>
- </div>
- </div>
- <a-modal v-model="orderRejectVisiable" title="订单驳回" width='600px'>
- <template slot="footer">
- <a-button key="back" @click="()=>{orderRejectVisiable=false}">取消</a-button>
- <a-button type="primary" @click="rejectOrder" :loading="loadingElse">确定驳回</a-button>
- </template>
- <div style="position:relative">
- <a-textarea
- v-model="orderAdvice"
- placeholder="请填写驳回理由"
- :auto-size="{ minRows: 3, maxRows: 5 }"
- :maxLength='50'
- />
- <span style="position:absolute;bottom:5px;right:10px;line-height:24px"><span style="color:#1890ff">{{orderAdvice.length}}</span>/50</span>
- </div>
-
- </a-modal>
- </div>
- </div>
- <div class="section">
- <div class="sectionBody">
- <!-- 订单进度 -->
- <div class="section-item">
- <div class="sectionHead">订单进度</div>
- <div class="section-box">
- <a-steps progress-dot :current="currentStep">
- <a-step title="创建订单" >
- <div class="description" slot="description" v-if="currentStep>=0">
- <p class="people">{{currentOrderInfo.createByName}}</p>
- <p class="time">{{currentOrderInfo.createTime}}</p>
- </div>
-
- </a-step>
- <a-step title="设计组长接单" >
- <div class="description" slot="description" v-if="currentStep>=1">
- <p class="people">{{currentOrderInfo.designName}}</p>
-
- <p class="time" v-if="currentStep>1">{{currentOrderInfo.designPassTime}}</p>
- </div>
-
- </a-step>
- <a-step title="素材制作" >
- <div class="description" slot="description" v-if="currentStep>=2">
- <p class="people"></p>
-
- <p class="time" v-if="currentStep>=2">{{currentOrderInfo.materialFinishTime?currentOrderInfo.materialFinishTime:currentOrderInfo.designPassTime }}</p>
- </div>
-
- </a-step>
- <a-step title="订单完成" >
- <div class="description" slot="description" v-if="currentStep>=3">
- <p class="people">{{currentOrderInfo.createByName}}</p>
-
- <p class="time" v-if="currentStep==3">{{currentOrderInfo.orderFinishTime}}</p>
- </div>
-
- </a-step>
-
- </a-steps>
- </div>
- </div>
- <!-- 订单详情 -->
- <div class="section-item">
- <div class="sectionHead">订单详情</div>
- <div class="section-box">
- <div class="top">
- <ul>
- <li>
- 订单所含物料总数:<span>{{currentOrderInfo.materialAmount}}</span>
- </li>
- <li>
- 真人物料数:<span>{{currentOrderInfo.realAmount}}</span>
- </li>
- <li>
- 投放系统:<span>{{currentOrderInfo.sysName|handlerSysName}}</span>
- </li>
- <li>
- 要求日更物料数:<span>{{currentOrderInfo.materialAmountDay}}</span>
- </li>
- <li>
- 剪辑物料数:<span>{{currentOrderInfo.cutAmount}}</span>
- </li>
- <li>
- APK包:<span>{{currentOrderInfo.sysPackage || '无'}}</span>
- </li>
-
- </ul>
- </div>
- <div class="bottom">
- <h4>附件</h4>
- <ul>
- <li>
- <a :href="currentOrderInfo.attachmentUrl" v-if="currentOrderInfo.attachmentUrl">{{currentOrderInfo.attachmentName }}</a>
- <span v-else>无</span>
- </li>
- </ul>
- </div>
- <div class="bottom">
- <h4>备注</h4>
- <p style="line-height:24px;text-indent:2em">{{currentOrderInfo.orderRemark}}</p>
- </div>
- </div>
- </div>
- <!-- 素材列表 -->
- <div class="section-item" v-if="currentOrderInfo.orderStatus==1||currentOrderInfo.orderStatus==3">
- <!-- <div class="tabBox">
- <a-tabs v-model="tabKey" @change="tabChange">
- <a-tab-pane :key='1' tab="真人物料"></a-tab-pane>
- <a-tab-pane :key='2' tab="剪辑物料"></a-tab-pane>
- </a-tabs>
- </div> -->
-
-
- <div class="section-box">
- <a-table
- size="middle"
- :columns="columns"
- :dataSource="data"
- id="outTable"
- :pagination="ipagination"
- :loading="loading"
- @change="sort"
- style="word-break: break-all;"
- >
- <div slot="materialStatus" slot-scope="text" >
- <!-- <a-spin :spinning="record.spin" size="small" >
- <div class="spin-content">
- <a-switch size="default" :checked=text @change="switchChange(text,record)"/>
- </div>
- </a-spin>
- <a-switch size="default" :checked=text @change="switchChange(text,record)"/> -->
-
-
- <span class="wancheng" v-if="text==7"> </span>
- <span class="bohui" v-else-if="text==3 || text==6"> </span>
- <span class="shenhe" v-else> </span>
- {{text | handlerMaterialStatus}}
- </div>
-
- <span slot="scriptStatus" slot-scope="text,record">
-
- <span v-if="record.materialStatus==0">
- <a href="javascript:;" v-if="role=='designLeader'" @click="scriptAssign(record)">指派</a>
- <span v-else>-</span>
- </span>
- <span v-else>
- <a href="javascript:;" @click="scriptViewDetails(record)">{{record.planName}}</a>
- </span>
-
-
- </span>
- <span slot="videoStatus" slot-scope="text,record">
- <span v-if="record.materialStatus==0">
- <a href="javascript:;" v-if="role=='designLeader'" @click="scriptAssign(record)">指派</a>
- <span v-else>-</span>
- </span>
- <span v-else>
- <a href="javascript:;" @click="viewDetails(record)">{{record.clipName}}</a>
- </span>
- </span>
- </a-table>
- </div>
- <a-drawer
- title="视频详情"
- width="700"
- :placement="placement"
- :closable="false"
- :visible="visible"
- @close="onClose"
- >
-
- <a-spin :spinning="visibleLoading">
- <a-drawer
- :title="add ? '上传视频' : '修改视频'"
- width="600"
- :closable="false"
- :visible="childrenDrawer"
- @close="onChildrenDrawerClose"
- >
- <a-spin :spinning="videoUploadLoading">
- <a-form :form="form" :label-col="labelCol" :wrapper-col="wrapperCol">
- <a-form-item label="视频上传">
- <!-- -->
- <uploadFile
- :checkFile="file"
- :value.sync="urlList.url"
- @overUpload="overUpload"
- @removeUpload="removeUpload"
- :fileCount="1"
- uploadType="video"
- :multiple="false"
- />
- <span v-if="repeat" style="color: red">此素材重复,请重新选择上传</span>
- <span v-if="confirmLoading && urlList.url != ''" style="color: green">上传成功</span>
- </a-form-item>
- <a-form-item
- label="封面上传"
- class="add-image-material"
- v-if="currentMaterial.projectId && add && videoinfo.url != ''"
- >
- <uploadFile
- :value.sync="urlListImage.url"
- :checkFile="fileWater"
- @overUpload="overUploadImage"
- @removeUpload="deleteImage"
- :fileCount="15"
- uploadType="image"
- />
- <span
- v-if="material.filter((item) => item == false).length > 0 && urlListImage.url.length > 0"
- style="color: red"
- >
- 上传素材的尺寸不符,请修改(
- <span v-for="(item, index) of material" :key="index" v-show="!item">第{{ index + 1 }}张</span>出错)
- </span>
- <span
- v-else-if="urlListImage.url.length > 0 && material.filter((item) => item == false).length == 0"
- style="color: green"
- >上传成功</span
- >
- </a-form-item>
- <a-form-item
- label="形式标签"
- v-if="add && visible"
- >
- <el-cascader
- placeholder="搜索你想要的形式标签"
- :options="departTreeModality"
- v-decorator="[
- 'modalityTagList', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '请选择形式标签!' }] },
- ]"
- :props="{ multiple: true, value: 'id', label: 'tagName', emitPath: false }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-item>
- <a-form-item
- :label-col="labelCol"
- :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 12 },
- }"
- label="内容标签"
- v-if="add && visible"
- >
- <el-cascader
- placeholder="搜索你想要的内容标签"
- :options="departTreeContent"
- class="only-video-material-disable-modal"
- v-decorator="[
- 'contentTagList', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '请选择内容标签!' }] },
- ]"
- :props="{
- multiple: true,
- value: 'id',
- label: 'tagName',
- emitPath: false,
- checkStrictly: true,
- expandTrigger: 'hover',
- }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-item>
- <a-form-item
- :label-col="labelCol"
- :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 12 },
- }"
- label="场景标签"
- v-if="add && visible"
- >
- <el-cascader
- placeholder="搜索你想要的场景标签"
- :options="departTreeSence"
- v-decorator="[
- 'senceTagList', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '请选择场景标签!' }] },
- ]"
- :props="{ multiple: true, value: 'id', label: 'tagName', emitPath: false }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-item>
- <a-form-item
-
- label="基调标签"
- v-if="add && visible"
- >
- <el-cascader
- placeholder="搜索你想要的基调标签"
- :options="departTreeMod"
- v-decorator="[
- 'modTagList', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '请选择基调标签!' }] },
- ]"
- :props="{ multiple: true, value: 'id', label: 'tagName', emitPath: false }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-item>
-
- <a-form-item
-
- label="描述"
- v-if="add"
- >
- <div style="position:relative">
- <a-textarea
- placeholder="请输入描述"
- v-decorator="[
- 'description', // 给表单赋值或拉取表单时,该input对应的key
- ]"
- :maxLength='50'
- :auto-size="{ minRows: 5, maxRows: 6 }"
- @change="descriptionChange"
- />
- <span style="position:absolute;bottom:5px;right:10px;line-height:24px"><span style="color:#1890ff">{{descriptionlength.length || 0}}</span>/50</span>
- </div>
- </a-form-item>
- </a-form>
- </a-spin>
- <div
- :style="{
- position: 'absolute',
- bottom: 0,
- width: '100%',
- borderTop: '1px solid #e8e8e8',
- padding: '10px 16px',
- textAlign: 'right',
- left: 0,
- background: '#fff',
- borderRadius: '0 0 4px 4px',
-
- }"
- >
-
- <a-button key="back" @click="onChildrenDrawerClose" style="margin-right:15px">取消</a-button>
- <a-button type="primary" :disabled="!confirmLoading" @click="onChildrenDrawerOk" :loading="loadingElse">确定</a-button>
-
- </div>
- </a-drawer>
-
-
- <div class="marterialInfo videomarterialInfo">
- <div class="info-item">
- <span>视频状态:</span>
- <p>{{ currentVideo.videoStatus | handlerVideoStatus }}</p>
- </div>
- <div class="info-item">
- <span>视频预览:</span>
- <div class="videoBox" v-if="currentVideo.videoStatus>=1">
- <video style="height:100%" :src="currentVideo.url" controls v-if="currentVideo.url"></video>
- <img :src="defaultPic" alt="" style="width:100px;margin:0 10px 8px 0" v-else>
- </div>
- <div v-else >
- <!-- :disabled="!(currentVideo.clip==userInfo.id)" -->
- <a-button type='primary' @click="showChildrenDrawer" :disabled="!(currentVideo.clip==userInfo.id)">上传视频</a-button>
- </div>
- </div>
- <div class="info-item">
- <span>封面预览:</span>
- <div class="imgBox">
- <div v-if="currentVideo.videoStatus!=0">
- <template v-if="currentVideo.imgList&¤tVideo.imgList.length">
- <img alt="" style="width:100px;margin:0 10px 8px 0" v-for="(item,index) in currentVideo.imgList" @click="openBigImage(item)" :key='index' :src="item">
- </template>
-
- <span v-else>暂无封面</span>
- </div>
- <span v-else>暂无封面</span>
- <!-- <img :src="defaultPic" alt="" style="width:100px;margin:0 10px 8px 0" v-else> -->
- </div>
- </div>
-
- <div class="info-item" v-if="currentVideo.videoStatus>=1">
- <span>视频标签:</span>
- <p>
- <a-tag v-for="(item,index) in currentVideo.tagList" :key="index" style="margin-bottom:8px">{{item}}</a-tag>
- <!-- {{currentVideo.tag}} -->
- </p>
- </div>
- <div class="info-item info">
- <ul>
-
- <li><span>编导:</span> {{ currentVideo.planName }} </li>
- <li><span>拍摄:</span> {{ currentVideo.shotName }} </li>
- <li><span>剪辑:</span> {{ currentVideo.clipName }} </li>
- </ul>
- <!-- v-if="role=='designLeader'&¤tVideo.videoStatus==0" -->
- <a-button type='link' style="margin-left:15px;position:relative;top:-6px" @click="updataPeople" v-if="role=='designLeader'&¤tVideo.videoStatus==0">重新指派</a-button>
- </div>
- <div class="info-item" v-if="currentVideo.videoStatus==2">
- <span>驳回理由:</span>
- <p>{{ currentVideo.videoAdvise }}</p>
- </div>
- <div class="bottom-btn">
- <!-- <a-button type='primary' @click="approved" v-if="role=='operator'&¤tMaterial.materialStatus==5" style="margin-right:20px">通过审核</a-button>
- <a-button type='default' @click="()=>{videoRejectVisiable=true}" v-if="role=='operator'&¤tMaterial.materialStatus==5" style="margin-right:20px">驳回</a-button>
- <a-button type='primary' v-if="role!='operator'&¤tVideo.videoStatus>=1" :disabled="currentVideo.clip!=userInfo.id" @click="modifyVideo" style="margin-right:20px">修改视频信息</a-button>
- <a-button type='default' @click="onClose">关闭</a-button> -->
- </div>
- </div>
-
- </a-spin>
- <div
- :style="{
- position: 'absolute',
- right: 0,
- bottom: 0,
- width: '100%',
- borderTop: '1px solid #e9e9e9',
- padding: '10px 16px',
- background: '#fff',
- textAlign: 'right',
- zIndex: 1,
- }"
- >
- <a-button type='primary' @click="approved" v-if="role=='operator'&¤tMaterial.materialStatus==5" style="margin-right:20px">通过审核</a-button>
- <a-button type='default' @click="()=>{videoRejectVisiable=true}" v-if="role=='operator'&¤tMaterial.materialStatus==5" style="margin-right:20px">驳回</a-button>
- <a-button type='primary' v-if="role!='operator'&¤tVideo.videoStatus>=1&¤tVideo.videoStatus<3" :disabled="currentVideo.clip!=userInfo.id" @click="modifyVideo" style="margin-right:20px">修改视频信息</a-button>
- <a-button type='default' @click="onClose">关闭</a-button>
- </div>
- </a-drawer>
-
- <a-drawer
- title="脚本详情"
- width="600"
- :placement="placement"
- :closable="false"
- :visible="scriptVisible"
- @close="scriptClose"
- >
- <a-spin :spinning="visibleLoading">
- <div class="marterialInfo">
- <div class="info-item">
- <span>脚本状态:</span>
- <p>{{ currentScript.scriptStatus | handlerVideoStatus }}</p>
- </div>
- <div class="info-item">
- <span>所属项目:</span>
- <p>{{currentScript.projectName}}</p>
-
- </div>
- <div class="info-item">
- <span>所属物料:</span>
- <p>{{currentScript.materialName}}</p>
- </div>
- <div class="info-item">
- <span style="height: 32px;line-height: 32px;">编导:</span>
- <p style="height:32px;line-height:32px">
- {{currentScript.planName}}
- <a-button type='link' style="margin-left:15px" @click="updataPeople" v-if="role=='designLeader'&¤tScript.scriptStatus==0">重新指派</a-button>
- </p>
- </div>
- <div class="info-item" v-if="currentScript.scriptStatus==2">
- <span>驳回理由:</span>
- <p>{{currentScript.scriptAdvise}}</p>
- </div>
- <div class="info-item">
- <span>脚本:</span>
- <div v-if="currentScript.scriptStatus>0" style="margin-right:20px">
- <a :href="currentScript.url">{{currentScript.scriptName}}</a>
- </div>
- <div v-if="currentScript.scriptStatus<3">
-
- <p v-if="currentMaterial.plan==userInfo.id">
- <a-upload
- name="file"
- :multiple="false"
- :action="uploadAction"
- :headers="tokenHeader"
- :showUploadList="false"
- :beforeUpload="beforeUpload"
- @change="handleChange"
- style="margin-right:20px"
-
- >
- <a-button :disabled="loadDisabled">
- <a-icon type="upload" />
- {{loadDisabled?'上传中,请稍后':'文件上传'}}
- </a-button>
- </a-upload>
- </p>
- <p v-else>
- <a-upload
- name="file"
- :multiple="false"
- :action="uploadAction"
- :headers="tokenHeader"
- :showUploadList="false"
- :beforeUpload="beforeUpload"
- @change="handleChange"
- style="margin-right:20px"
-
- >
- <a-button :disabled="true">
- <a-icon type="upload" />文件上传</a-button>
- </a-upload>
- </p>
-
- </div>
-
- </div>
- </div>
-
- </a-spin>
- <div
- :style="{
- position: 'absolute',
- right: 0,
- bottom: 0,
- width: '100%',
- borderTop: '1px solid #e9e9e9',
- padding: '10px 16px',
- background: '#fff',
- textAlign: 'right',
- zIndex: 1,
- }"
- >
- <a-button type='primary' @click="scriptApproved" style="margin-right:20px" :loading='acceptLoading' v-if="role=='operator'&¤tMaterial.materialStatus==2">通过审核</a-button>
-
- <a-button type='default' v-if="role=='operator'&¤tMaterial.materialStatus==2" @click="()=>{scriptRejectVisiable=true}" style="margin-right:20px">驳回</a-button>
- <!-- <a-button type='primary' @click="dowmLoadScript" style="margin-right:20px">下载脚本</a-button> -->
- <a-button type='default' @click="scriptClose">关闭</a-button>
- </div>
- </a-drawer>
-
- </div>
- <!-- 指派 -->
- <a-modal v-model="assignVisible" title="物料指派" width='600px'>
-
- <template slot="footer">
- <a-button key="back" @click="quxiao">取消</a-button>
- <a-button type="primary" @click="handleOk" :loading="loadingElse">确定</a-button>
- </template>
- <a-spin :spinning='assignVisibleLoading'>
- <a-form-model ref="ruleForm" :rules="rules" :model="formPerson" :label-col="labelCol" :wrapper-col="wrapperCol">
- <a-form-model-item label="编导" ref="plan" prop="plan">
- <a-select
- v-model="formPerson.plan"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
- :disabled="currentMaterial.materialStatus>=4"
- >
- <a-select-option :value="item.userId" v-for="item of ascription" :key="item.userId">{{item.userName}}</a-select-option>
- </a-select>
- </a-form-model-item>
- <!-- {{currentMaterial.materialType==1?true:false}} -->
- <a-form-model-item label="拍摄" ref="shot" prop="shot" :rules='[{ required: currentMaterial.materialType==1, message: "拍摄人员必须指派" ,trigger: "change" }]'>
- <a-select
- v-model="formPerson.shot"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
-
- >
- <a-select-option :value="item.userId" v-for="item of ascription" :key="item.userId">{{item.userName}}</a-select-option>
- </a-select>
- </a-form-model-item>
- <a-form-model-item label="剪辑" ref="clip" prop="clip">
- <a-select
- v-model="formPerson.clip"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
- >
- <a-select-option :value="item.userId" v-for="item of ascription" :key="item.userId">
- {{item.userName}}
- </a-select-option>
- </a-select>
- </a-form-model-item>
- </a-form-model>
- </a-spin>
- </a-modal>
- <a-modal v-model="videoRejectVisiable" title="视频驳回" width='600px'>
- <template slot="footer">
- <a-button key="back" @click="()=>{videoRejectVisiable=false}">取消</a-button>
- <a-button type="primary" @click="reject" :loading="loadingElse">确定驳回</a-button>
- </template>
- <div style="position:relative">
- <a-textarea
- v-model="videoAdvise"
- placeholder="请填写驳回理由"
- :auto-size="{ minRows: 3, maxRows: 5 }"
- :maxLength='50'
- />
- <span style="position:absolute;bottom:5px;right:10px;line-height:24px"><span style="color:#1890ff">{{videoAdvise.length || 0}}</span>/50</span>
- </div>
-
- </a-modal>
- <a-modal v-model="scriptRejectVisiable" title="脚本驳回" width='600px'>
- <template slot="footer">
- <a-button key="back" @click="()=>{scriptRejectVisiable=false}">取消</a-button>
- <a-button type="primary" @click="scriptReject" :loading="loadingElse">确定驳回</a-button>
- </template>
- <div style="position:relative">
- <a-textarea
- v-model="scriptAdvise"
- placeholder="请填写驳回理由"
- :auto-size="{ minRows: 3, maxRows: 5 }"
- :maxLength='50'
- />
- <span style="position:absolute;bottom:5px;right:10px;line-height:24px"><span style="color:#1890ff">{{scriptAdvise.length}}</span>/50</span>
- </div>
-
- </a-modal>
- <a-modal v-model="viewImgVisiable" title="封面预览" width='600px' :footer=null>
-
- <div style="position:relative;text-align:center">
- <img :src="viewImgUrl" alt="" width="250">
- </div>
-
- </a-modal>
- </div>
- </div>
- </a-spin>
- </div>
- </template>
- <script>
- import moment from 'moment';
- import { getAction, postAction, downFile, downFilePost } from '@/api/manage';
- import Vue from 'vue'
- import {ACCESS_TOKEN} from "@/store/mutation-types"
- import BMF from 'browser-md5-file'
- import { fileCheck, fileCheckImage, fileEdit, fileEditAll,orderFileInsert} from '@/api/actor'
- import uploadFile from '@/components/uploadFile.vue'
- import { closeAllVideoFun, stopOtherVideo } from '@/utils/videoControl'
- import UploadToAli from '@femessage/upload-to-ali'
- import { mapGetters } from 'vuex'
- const fileSuffix = [
- 'xls',
- 'xlt',
- 'et',
- 'xlsx',
- 'xltx',
- 'csv',
- 'xlsm',
- 'xltm',
- 'doc',
- 'dot',
- 'wps',
- 'wpt',
- 'docx',
- 'dotx',
- 'docm',
- 'dotm',
- 'ppt',
- 'pptx',
- 'pptm',
- 'ppsx',
- 'ppsm',
- 'pps',
- 'potx',
- 'potm',
- 'dpt',
- 'dps',
- 'pdf',
- ]
- const videofileSuffix = [
- 'avi',
- 'wmv',
- 'mpg',
- 'mpeg',
- 'mov',
- 'rm',
- 'ram',
- 'swf',
- 'flv',
- 'mp4',
-
- ]
- let realColumns=[
- {
- title: '物料标题',
- dataIndex: 'materialName',
- align: 'center',
- key: 'materialName',
- scopedSlots: { customRender: 'materialName' }
- },
- {
- title: '物料编号',
- dataIndex: 'id',
- align: 'center',
- key: 'id',
- scopedSlots: { customRender: 'id' }
- },
- {
- title: '物料进度',
- dataIndex: 'materialStatus',
- align: 'center',
- key: 'materialStatus',
- scopedSlots: { customRender: 'materialStatus' }
- },
- {
- title: '脚本',
- dataIndex: 'scriptStatus',
- align: 'center',
- key: 'scriptStatus',
- width:250,
- scopedSlots: { customRender: 'scriptStatus' }
- },
- {
- title: '视频',
- dataIndex: 'videoStatus',
- align: 'center',
- key: 'videoStatus',
- width:250,
- scopedSlots: { customRender: 'videoStatus' }
- },
- ]
- export default {
- name:'order-detail',
- components: {
-
- UploadToAli,
- uploadFile,
-
- },
- data() {
- return {
- descriptionlength:'',
- viewImgUrl:'',
- viewImgVisiable:false,
- orderRejectVisiable:false,
- acceptLoading:false,
- videoEchoInfo:{},
- videoUploadLoading:false,
- videoRejectType:'1',
- assignVisibleLoading:false,
- visibleLoading:false,
- rules: {
-
- clip: [{ required: true, message: '剪辑人员必须指派', trigger: 'change' }],
- // shot: [],
- plan: [{ required: true, message: '编导人员必须指派', trigger: 'change' }],
-
- },
- loadingElse:false,
- videoRejectVisiable:false,
- scriptRejectVisiable:false,
- childrenDrawer:false,
- videoAdvise:'',
- scriptAdvise:'',
- defaultPic: require('@/assets/noImg.png') ,
- currentScript:{},
- currentVideo:{},
- tokenHeader: {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)},
- uploadAction:'',
- videoLoad:false,
- loadDisabled:false,
- labelCol: { span: 4 },
- wrapperCol: { span: 14 },
-
- formPerson:{
- plan:'',
- shot:'',
- clip:'',
- },
-
- ascription: [],
- assignVisible:false,
- pageSpinning:false,
- userInfo:{},
- roleCode:'',
- tabKey:1,
- columns:[...realColumns],
- data:[],
- loading:false,
- ipagination: {
- current: 1,
- pageSize: 10,
- // pageSizeOptions: ['10', '20', '30'],
- showTotal: (total, range) => {
- return range[0] + "-" + range[1] + " 共" + total + "条"
- },
- showQuickJumper: true,
- showSizeChanger:true,
- pageSizeOptions: ['10', '30', '50'],
- total: 0,
- onChange: (current, pageSize) => {
- // 切换分页时的回调,
- // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
- this.ipagination.current = current;
- this.ipagination.pageSize= pageSize;
- }
- },
- // 订单进度
- orderInfo:{
- status:undefined,
- progress:0,
- },
- currentStep:1,
- visible: false,
- scriptVisible:false,
-
- placement: 'right',
- currentMaterial:{},
- sizeType:[],
- size: "4",
- currentOrderId:'',
- currentOrderInfo:{},
- url:{
- orderDetail:'/platform/order/queryById',
- confirmOrder:'/platform/designer/accept',
- rejectOrder:'/platform/designer/reject',
- withdrawOrder:'/platform/operator/destroy',
- materialList:'/platform/material/listByOrderCode',
- assgin:'/platform/designer/assign',
-
- scriptDetail:'/platform/material/scriptDetail',
- videoDetail:'/platform/material/videoDetail',
- scriptAccept:'/platform/material/script/accept',
- scriptReject:'/platform/material/script/reject',
- videoAccept:'/platform/material/video/accept',
- videoReject:'/platform/material/video/reject',
- },
- confirmOrderBtnLoading:false,
- rejectOrderBtnLoading:false,
- withdrawOrderBtnLoading:false,
- editOrderBtnLoading:false,
- orderAdvice:'',//驳回理由
- role:'',
- // 上传视频
- labelCol: {xs: {span: 24,},sm: {span: 5,},},
- wrapperCol: {xs: {span: 24,},sm: {span: 12,},},
- form:this.$form.createForm(this),
- repeat: false,
- confirmLoading: false,
- urlList: {
- url: '',
- md5: '',
- name: '',
- },
- urlListImage: {
- url: [],
- md5: [],
- name: [],
- size: [],
- },
- tags: [],
- addImageVisible: false,
- addImageData: null,
- material: [],
- // 标签的数据
- labelValue: [],
- options: [],
- departTree: [],
- departTreeModality: [],
- departTreeContent: [],
- departTreeSence: [],
- departTreeMod: [],
- departValue: [],
- departValueInfo: [],
- departValueInfoModality: [],
- departValueInfoContent: [],
- departValueInfoSence: [],
- departValueInfoMod: [],
- tagInfoList: [],
- tagInfoListVisible: false,
- tagCode: null,
- loadingTag: false,
- showImageChouzhen: false,
- showImageStr: null,
- add: true,
- inputVisible: false,
- inputValue: '',
- videoinfo:{
- url: '',
- md5: '',
- name: '',
- width:undefined,
- height:undefined,
- },
- imageinfo:[],
- }
- },
- methods: {
- //获取表单的某一个属性值
- getFormData(className) {
- return this.form.getFieldValue(className)
- },
- descriptionChange(e){
- this.descriptionlength=e.target.value
- },
- openBigImage(item){
- this.viewImgVisiable=true;
- this.viewImgUrl=item
- },
- modifyVideo(){
- this.childrenDrawer=true;
- // console.log(this.currentVideo);
-
- this.videoUploadLoading=true
- getAction('/platform/material/videoEcho',{
- videoId:this.currentVideo.videoId
- }).then(res=>{
- console.log(res)
-
- this.videoUploadLoading=false;
- this.confirmLoading=true;
- if(res.result.video){
- this.urlList=res.result.video
- this.videoinfo=res.result.video;
- this.videoinfo.url=this.videoinfo.url.replace(/https:/g,'')
- }
- if(res.result.covers){
- this.imageinfo=res.result.covers;
- this.urlListImage= {
- url : res.result.covers.map(item=>{return item.url}),
- md5 : res.result.covers.map(item=>item.md5),
- name : res.result.covers.map(item=>item.name),
- size : res.result.covers.map(item=>item.size),
- format : res.result.covers.map(item=>item.format),
- }
- }
-
- this.form.setFieldsValue({
- contentTagList: res.result.tags.contentTagList.map(item=>{return item.tagId}),
- modalityTagList: res.result.tags.modalityTagList.map(item=>{return item.tagId}),
- modTagList: res.result.tags.modTagList.map(item=>{return item.tagId}),
- senceTagList: res.result.tags.senceTagList.map(item=>{return item.tagId}),
- description:res.result.video.description
- })
- this.descriptionlength=res.result.video.description
- this.videoEchoInfo=res.result
- })
-
- },
- editOrder(){
- this.$parent.isEdit=true;
- this.$parent.orderId=this.currentOrderInfo.id;
- this.$parent.currentTabComponent='placeOrder';
- },
- quxiao(){
- this.assignVisible=false;
- this.$refs.ruleForm.resetFields();
- },
- getProjectId(id) {
- this.ascription=[];
- getAction('/ctop/projectMember/getMemberList', {
- projectId: id,
- }).then((res) => {
- this.assignVisibleLoading=false
- if (res.code == 0) {
- this.ascription = res.result.filter((item) => {
- if (
- item.roleCode == 'clip' ||
- item.roleCode == 'plan' ||
- item.roleCode == 'designTeamLeader' ||
- item.roleCode == 'shot' ||
- item.roleCode == 'plane'
- ) {
- return {
- userId: item.userId,
- userName: item.userName,
- }
- }
- })
- }
- })
- },
- filterOption(input, option) {
- return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
- },
- // 脚本指派
- scriptAssign(record){
- console.log(record)
- this.currentMaterial=record;
- this.assignVisible=true;
- this.formPerson={
- plan:'',
- shot:'',
- clip:'',
- },
- this.getProjectId(record.projectId)
- },
- // 视频指派
- videoAssign(record){
- console.log(record)
- this.formPerson={
- plan:'',
- shot:'',
- clip:'',
- },
- this.currentMaterial=record;
- this.assignVisible=true;
- this.getProjectId(record.projectId)
- },
- updataPeople(){
- this.formPerson={
- plan:this.currentMaterial.plan,
- shot:this.currentMaterial.shot,
- clip:this.currentMaterial.clip,
- },
- this.scriptVisible=false;
- this.visible=false;
- this.assignVisible=true;
- this.assignVisibleLoading=true;
- this.getProjectId(this.currentMaterial.projectId)
- },
- handleOk(e) {
- console.log(e);
- this.$refs.ruleForm.validate(valid => {
- if (valid) {
- console.log(this.formPerson)
- this.loadingElse=true;
- if(this.currentMaterial.clip&&this.currentMaterial.plan&&this.currentMaterial.shot){
- postAction('/platform/designer/assignAgain',{
- id:this.currentMaterial.id,
- ...this.formPerson
- }).then(res=>{
- this.loadingElse=false;
- this.assignVisible = false;
- this.$message.success(res.message);
- this.materialHttp(this.activeKey)
- })
- }else{
- postAction(this.url.assgin,{
- id:this.currentMaterial.id,
- ...this.formPerson
- }).then(res=>{
- this.loadingElse=false;
- this.assignVisible = false;
- this.$message.success(res.message);
- this.materialHttp(this.activeKey)
- })
- }
-
- } else {
- console.log('error submit!!');
- return false;
- }
- });
-
- },
- goPlantForm(){
- if(this.$parent.role=='operator'){
- this.$parent.currentTabComponent='operatorPlatform'
- }else if(this.$parent.role=='designLeader'){
- this.$parent.currentTabComponent='designleaderPlatform'
- }else if(this.$parent.role=='design'){
- this.$parent.currentTabComponent='designPlatform'
- }
- },
- // 确认订单
- confirmOrder(){
- this.confirmOrderBtnLoading=true;
- postAction(this.url.confirmOrder,{
- designPassTime:moment().format('YYYY-MM-DD HH:mm:ss'),
- ...this.currentOrderInfo
- }).then(res=>{
- console.log(res)
- this.confirmOrderBtnLoading=false;
- if(res.success){
- this.$message.success(res.message)
- this.orderDetailHttp()
- }else{
- this.$message.error(res.message)
- }
- })
- },
- // 驳回订单
- rejectOrder(){
- if(this.orderAdvice){
- this.rejectOrderBtnLoading=true;
- let params={
- ...this.currentOrderInfo,
- orderAdvice:this.orderAdvice
- }
- postAction(this.url.rejectOrder,params).then(res=>{
- console.log(res)
- this.rejectOrderBtnLoading=false;
- this.orderRejectVisiable=false;
- if(res.success){
- this.$message.success(res.message)
- this.orderDetailHttp()
- }else{
- this.$message.error(res.message)
- }
- })
- }else{
- this.$message.error('请填写驳回理由')
- }
-
- },
- // 撤回订单
- withdrawOrderConfirm(){
- this.withdrawOrderBtnLoading=true;
- let params={
- ...this.currentOrderInfo,
- }
- postAction(this.url.withdrawOrder,params).then(res=>{
- console.log(res)
- this.withdrawOrderBtnLoading=false;
- if(res.success){
- this.$message.success(res.message)
- this.orderDetailHttp()
- }else{
- this.$message.error(res.message)
- }
- })
- },
- withdrawOrderCancel(e) {
- console.log(e);
- // this.$message.error('');
- },
- // 视频查看详情
- viewDetails(record){
- console.log(record)
- this.currentMaterial=record
- if(record.materialStatus>=4){
- this.currentVideo={};
- this.visible = true;
- if(record.videoId){
- this.visibleLoading=true;
- getAction(this.url.videoDetail,{
- videoId:record.videoId
- }).then(res=>{
- console.log(res);
- this.visibleLoading=false;
- if(res.success){
- if(res.result){
- let tagList=res.result.tag?res.result.tag.split(','):[]
- let imgList=res.result.imageUrl?res.result.imageUrl.split(','):[]
- console.log(tagList)
- this.currentVideo={
- ...res.result,
- tagList,
- imgList
- }
- }
-
-
- }else{
- this.currentVideo={};
- }
- })
- }else{
- this.currentVideo=record
- this.visible = true;
- }
- }else{
- this.$message.error('请等待脚本审核通过后,上传视频')
- }
-
- },
- // 脚本查看详情
- scriptViewDetails(record){
- console.log(record)
- this.currentMaterial=record
- this.currentScript={};
-
- if(record.scriptId){
- this.visibleLoading=true;
- this.scriptVisible = true;
- getAction(this.url.scriptDetail,{
- scriptId:record.scriptId
- }).then(res=>{
- console.log(res);
- this.visibleLoading=false;
- if(res.success){
- this.currentScript=res.result;
-
- }else{
- this.currentScript={};
- }
- })
- }else{
- this.currentScript=record
- this.scriptVisible = true;
- }
-
- },
- onClose() {
- this.visible = false;
- },
- scriptClose() {
- this.scriptVisible = false;
- },
-
- sort(pagination, filters, sorter, { currentDataSource }){
-
- this.ipagination.current=pagination.current;
- this.ipagination.pageSize=pagination.pageSize;
- this.materialHttp()
- },
- // 请求素材
- materialHttp(){
- this.loading=true;
- this.data=[];
- getAction(this.url.materialList,{
- orderCode:this.currentOrderInfo.orderCode,
- pageNo:this.ipagination.current,
- pageSize:this.ipagination.pageSize
- }).then(res=>{
- console.log(res);
- this.data=[]
- if(res.success){
- this.data=res.result.list;
- // this.data=res.result.list.filter(item=>item.materialType==this.tabKey);
- this.ipagination.total=res.result.total
- // this.ipagination.total=this.data.length
- this.loading=false
- }
- })
- },
-
- // tabqiehuan
- tabChange(key){
- // console.log(key);
- this.materialHttp()
- this.ipagination.current=1
- },
- // shipin通过审核
- approved(){
- this.acceptLoading=true;
- getAction('/platform/material/verifyVideo',{
- materialCode:this.currentMaterial.materialCode,
- videoId:this.currentMaterial.videoId,
- }).then(res=>{
- if(res.success){
- postAction(this.url.videoAccept,{
- id:this.currentMaterial.id,
- orderCode:this.currentMaterial.orderCode,
- materialCode:this.currentMaterial.materialCode,
- videoId:this.currentVideo.videoId
- }).then(res=>{
- console.log(res);
- this.acceptLoading=false
- this.visible=false;
- this.videoAdvise=''
- if(res.success){
- this.$message.success(res.message);
-
- this.materialHttp()
- }else{
- this.$message.error(res.message)
- }
- })
- }else{
- this.$message.error(res.message)
- this.acceptLoading=false
- this.materialHttp()
- }
- })
- },
- // 视频驳回
- reject(){
- this.loadingElse=true;
- getAction('/platform/material/verifyVideo',{
- materialCode:this.currentMaterial.materialCode,
- videoId:this.currentMaterial.videoId,
- }).then(res=>{
- if(res.success){
- if(this.videoAdvise){
- postAction(this.url.videoReject,{
- id:this.currentMaterial.id,
- videoAdvise:this.videoAdvise,
- materialCode:this.currentMaterial.materialCode
-
- }).then(res=>{
- console.log(res);
- this.loadingElse=false
- this.videoAdvise=''
- this.visible=false;
- this.videoRejectVisiable=false;
- if(res.success){
- this.$message.success(res.message);
- this.materialHttp()
- }else{
- this.$message.error(res.message)
- }
- })
- }else{
- this.loadingElse=false;
- this.$message.error('请填写驳回理由')
- }
- }else{
- this.$message.error(res.message)
- this.loadingElse=false
- this.materialHttp()
- }
- })
- },
- // 脚本通过审核
- scriptApproved(){
- // console.log(this.currentMaterial)
- this.acceptLoading=true;
- getAction('/platform/material/verifyScript',{
- materialCode:this.currentMaterial.materialCode,
- scriptId:this.currentMaterial.scriptId,
- }).then(res=>{
- if(res.success){
- postAction(this.url.scriptAccept,{
- id:this.currentMaterial.id,
- orderCode:this.currentMaterial.orderCode,
- materialCode:this.currentMaterial.materialCode
- }).then(res=>{
- console.log(res);
- this.acceptLoading=false
- this.scriptVisible=false;
- if(res.success){
- this.$message.success(res.message);
- this.materialHttp()
- }else{
- this.$message.error(res.message)
- }
- })
- }else{
- this.acceptLoading=false;
- this.scriptVisible=false;
- this.materialHttp()
- this.$message.error(res.message)
- }
- })
- },
- // 脚本驳回
- scriptReject(){
- this.loadingElse=true;
- getAction('/platform/material/verifyScript',{
- materialCode:this.currentMaterial.materialCode,
- scriptId:this.currentMaterial.scriptId,
- }).then(res=>{
- if(res.success){
- if(this.scriptAdvise){
- postAction(this.url.scriptReject,{
- id:this.currentMaterial.id,
- scriptAdvise:this.scriptAdvise,
- materialCode:this.currentMaterial.materialCode
- }).then(res=>{
- console.log(res);
- this.scriptVisible=false;
- this.scriptAdvise=''
- this.scriptRejectVisiable=false;
- this.loadingElse=false;
- if(res.success){
- this.$message.success(res.message);
- this.materialHttp()
- }else{
- this.$message.error(res.message)
- }
- })
- }else{
- this.loadingElse=false;
- this.$message.error('请填写驳回理由')
- }
- }else{
- this.loadingElse=false;
- this.scriptVisible=false;
- this.materialHttp()
- this.$message.error(res.message)
- }
- })
- },
- // 生成水印
- getWater() {
- var params = qs.stringify({
- id: this.id,
- watermarkTemplateId: this.size
- })
- postAction('/ctop/materialInfo/watermark', params).then(res => {
- if (res.success) {
- // getAction("/ctop/videoWatermarkTask/list").then(res=>{
- // console.log(res)
- // })
- this.$message.success('水印素材生成中,请一分钟后刷新')
- this.visibleDetail = false
- this.refuseFile = []
- this.refuseReason = ''
- closeAllVideoFun()
- this.loadData()
- }
- })
- },
- // 请求order详情数据
- orderDetailHttp(){
- this.pageSpinning=true;
- this.currentOrderInfo={}
- getAction(this.url.orderDetail,{
- id:this.currentOrderId
- }).then(res=>{
- console.log(res)
- this.pageSpinning=false;
- if(res.success){
- this.currentOrderInfo=res.result;
- // res.result.orderStatus
- console.log(this.currentOrderInfo.orderStatus)
- if(this.currentOrderInfo.orderStatus || this.currentOrderInfo.orderStatus==0){
- if(this.currentOrderInfo.orderStatus==0){
- this.currentStep=1;
- }else if(this.currentOrderInfo.orderStatus==1){
- this.currentStep=2;
- }else if(this.currentOrderInfo.orderStatus==2){
- this.currentStep=0;
- }else if(this.currentOrderInfo.orderStatus==3){
- this.currentStep=3;
- }
-
- }
- console.log(this.currentStep)
- this.materialHttp()
- }
- })
- },
-
-
- roleJudgement(role){
- // 1 运营(不区分运营经理)
- // 2 设计组长
- // 3 设计
- // 4 管理员
- if(role.indexOf('operator')!=-1||role.indexOf('Operation')!=-1||role.indexOf('operation')!=-1){
- return 1
- }else if(rolethis.roleCode=='designTeamLeader'){
- return 2
- }else if(role=='planeLeader'||role=='production'||role=='plane'||role=='shot'||role=='clip'||role=='plan'){
- return 3
- }else if(role=='admin'){
- return 4
- }
- },
- // 下载脚本
- dowmLoadScript(){
- },
- beforeUpload(file) {
- // this.uploadAction= `http://api.tjyourong.com.cn/jeecg-boot/platform/file/uploadScript?materialId=${this.currentMaterial.id}&projectId=${this.currentMaterial.projectId}`
- // this.uploadAction= `http://192.168.1.43:8088/jeecg-boot/platform/file/uploadScript?materialId=${this.currentMaterial.id}&projectId=${this.currentMaterial.projectId}`
- this.uploadAction= `http://139.186.151.174:8804/jeecg-boot/platform/file/uploadScript?materialId=${this.currentMaterial.id}&projectId=${this.currentMaterial.projectId}`
- this.loadDisabled = true
- const size = (Number(file.size) / (1024 * 1024)).toFixed(2)
- const fileName = file.name
- const fileStrArr = fileName.split('.')
- const suffix = fileStrArr[fileStrArr.length - 1]
- let result = fileSuffix.some((item) => {
- return item === suffix
- })
- if (!result) {
- this.$message.error('不支持该文件类型')
- this.loadDisabled = false
- return false
- }
- if (size > 10) {
- this.$message.error('文件不能大于10MB')
- this.loadDisabled = false
- return false
- }
-
- },
- handleChange(info) {
- if (info.file.status !== 'uploading') {
- console.log(info.file, info.fileList)
- }
- if (info.file.status === 'done') {
- this.$message.success(`${info.file.name} 上传成功`)
- this.loadDisabled = false
- this.scriptVisible=false;
- this.materialHttp()
- } else if (info.file.status === 'error') {
- this.$message.error(`${info.file.name} file upload failed.`)
- this.loadDisabled = false
- this.scriptVisible=false;
- }
- },
- showChildrenDrawer() {
- this.childrenDrawer = true;
- this.getTagListAll()
- },
- onChildrenDrawerClose() {
- this.descriptionlength=''
- this.childrenDrawer = false;
- this.loadingElse=false
- this.dataElse = []
- this.form.resetFields()
- this.urlList = {
- url: '',
- md5: '',
- name: '',
- }
- this.tags = []
- this.urlListImage = {
- url: [],
- md5: [],
- name: [],
- size: [],
- }
- this.imageArrList = [];
- this.videoinfo={
- url: '',
- md5: '',
- name: '',
- width:undefined,
- height:undefined,
- };
- this.imageinfo=[];
- this.form.setFieldsValue({
- contentTagList: null,
- modalityTagList: null,
- modTagList: null,
- senceTagList: null,
- })
- },
- onChildrenDrawerOk(){
- this.form.validateFieldsAndScroll((err, values) => {
- if (!err) {
- console.log(values)
- this.loadingElse = true
- var params = {
- ...values,
- ...this.videoinfo,
- covers:[...this.imageinfo]
- }
-
- params.id = this.add ? null : this.id
- params.userId = this.userInfo.id
- params.projectId=this.currentMaterial.projectId
- params.materialId=this.currentMaterial.id ||this.currentMaterial.materialId
- params.materialCode=this.currentMaterial.materialCode
- if (this.add) {
- postAction('/platform/file/uploadVideo',params).then(res=>{
- if (res.success) {
- this.form.resetFields()
- this.urlList = {
- url: '',
- md5: '',
- name: '',
- }
- this.descriptionlength=''
- this.urlListImage = {
- url: [],
- md5: [],
- name: [],
- size: [],
- }
- this.imageArrList = []
- this.tags = []
-
- this.childrenDrawer = false
- this.visible=false;
- this.add = true
- for (const key in this.role) {
- if (key == 'roleCode') {
- this.role[key] = this.role[key].substr(0, this.role[key].length - 2)
- }
- }
- this.$message.success('素材上传成功')
- this.loadingElse = false
- this.videoinfo={
- url: '',
- md5: '',
- name: '',
- width:undefined,
- height:undefined,
- };
- this.imageinfo=[];
- this.materialHttp()
- // this.departValue = []
- } else {
- this.$message.error(res.message)
- this.loadingElse = false
- // this.childrenDrawer = false
- // this.visible=false;
- }
- })
- // orderFileInsert(params).then((res) => {
- // if (res.success) {
- // this.form.resetFields()
- // this.urlList = {
- // url: '',
- // md5: '',
- // name: '',
- // }
-
- // this.urlListImage = {
- // url: [],
- // md5: [],
- // name: [],
- // size: [],
- // }
- // this.imageArrList = []
- // this.tags = []
-
- // this.childrenDrawer = false
- // this.visible=false;
- // this.add = true
- // for (const key in this.role) {
- // if (key == 'roleCode') {
- // this.role[key] = this.role[key].substr(0, this.role[key].length - 2)
- // }
- // }
- // this.$message.success('素材上传成功')
- // this.loadingElse = false
- // this.videoinfo={};
- // this.imageinfo=[];
- // this.materialHttp()
- // // this.departValue = []
- // } else {
- // this.$message.error(res.message)
- // this.loadingElse = false
- // this.childrenDrawer = false
- // this.visible=false;
- // }
- // })
- } else {
- fileEdit({
- ...params,
- status: '0',
- }).then((res) => {
- if (res.success) {
- this.form.resetFields()
- this.urlList = {
- url: '',
- md5: '',
- name: '',
- }
-
- this.tags = []
- this.childrenDrawer = false
- this.add = true
- for (const key in this.role) {
- if (key == 'roleCode') {
- this.role[key] = this.role[key].substr(0, this.role[key].length - 2)
- }
- }
- } else {
- this.$message.error(res.message)
- this.childrenDrawer = false
- }
- })
- }
- }else {
- }
- })
- },
- // 上传视频相关方法
- removeUpload() {
- this.urlList.url='';
- this.urlList.md5='';
- this.urlList.name='';
-
- this.form.setFieldsValue({
- contentTagList: null,
- modalityTagList: null,
- modTagList: null,
- senceTagList: null,
- })
- },
- overUpload(urlAll) {
- console.log(urlAll)
- this.confirmLoading = true
- this.repeat = false
- this.urlList.url = urlAll[0].url
-
- this.videoinfo.url=urlAll[0].url
- this.$message.success('上传成功')
- getAction('/ctop/materialTagInfo/detail', {
- code: this.videoinfo.md5,
- }).then((res) => {
- if (res.success) {
- if (res.modalityTagList.length > 0) {
- this.form.setFieldsValue({
- contentTagList: res.contentTagList.map((item) => {
- return item.tagId
- }),
- modalityTagList: res.modalityTagList.map((item) => {
- return item.tagId
- }),
- modTagList: res.modTagList.map((item) => {
- return item.tagId
- }),
- senceTagList: res.senceTagList.map((item) => {
- return item.tagId
- }),
- })
- }
- }
- })
- },
- deleteImage(url) {
- console.log(url, this.urlListImage.url)
- var index = this.imageArrList.findIndex((v) => v.url === url)
- this.imageArrList.splice(index, 1)
- console.log(index)
- },
- overUploadImage(urlAll) {
- console.log(urlAll)
- var that = this
- that.material = []
- that.imageArrList = []
- var img
- if (urlAll.length > 0) {
- urlAll.forEach((ele,index)=>{
- this.imageinfo.forEach(item=>{
- if(item.name==ele.name){
- item.url=ele.url
- }
- })
- // img = new Image()
- // img.src = urlAll[index].url
- })
-
- } else {}
- },
- addImage(item) {
- this.addImageVisible = true
- this.addImageData = item
- },
- showImage(item) {
- this.chouzhen = true
- this.chouzhenList = []
- var params = {
- videoSignature: item.code,
- pageSize: 20,
- pageNo: 1,
- }
- getAction('/cutFrame/material/list', params).then((res) => {
- console.log(res)
- if (res.success) {
- this.chouzhenList.push(...res.result.records)
- }
- })
- },
- closeImage() {
- this.addImageVisible = false
- this.urlListImage = {
- url: [],
- md5: [],
- name: [],
- size: [],
- }
- this.imageArrList = []
-
- },
- file(file) {
- console.log(file)
- var bmf = new BMF()
- var that = this
-
- return new Promise( (resolve, reject)=> {
-
- this.getVideoMsg(file).then((videoinfo) => {
- const { duration, height, width } = videoinfo;
- //获取到视频的时长,高度,宽度
- bmf.md5(file, (err, md5) => {
- videoinfo.name = file.name
- videoinfo.md5 = md5
- that.repeat = false
- })
- videoinfo.size=file.size;
- videoinfo.format=file.type
- console.log(videoinfo);
- this.videoinfo=videoinfo
- resolve()
- });
- })
-
-
- },
-
- getVideoMsg(file) {
- // console.log('getVideoMsg')
- return new Promise((resolve) => {
- let videoElement = document.createElement("video");
- videoElement.src = URL.createObjectURL(file);
- videoElement.addEventListener("loadedmetadata", function () {
- let obj={
- duration: videoElement.duration,
- height: videoElement.videoHeight,
- width: videoElement.videoWidth,
- }
-
- window.URL.revokeObjectURL(videoElement.src);
- videoElement.remove()
- resolve(obj);
- });
- });
- },
- getImageMsg(file){
- return new Promise((resolve) => {
- // let imageElement = document.createElement("image");
- let imageElement = new Image();
- let obj={}
- imageElement.src = URL.createObjectURL(file);
- // console.log(imageElement)
- imageElement.onload=function(){
- // console.log(imageElement.width)
- obj={
- height:imageElement.height,
- width:imageElement.width
- }
- console.log(obj)
- resolve(obj)
- }
-
- });
- },
- fileWater(file) {
- console.log(file)
- var bmf = new BMF()
- var that = this
- var codeData = that.videoinfo.md5 != '' ? that.videoinfo.md5 : that.addImageData.code
- console.log(codeData)
- this.urlListImage = {
- url: [],
- md5: [],
- name: [],
- size: [],
- }
- this.imageinfo=[]
- return new Promise( (resolve, reject)=> {
- bmf.md5(file, (err, md5) => {
- that.urlListImage.name.push(file.name)
- that.urlListImage.md5.push(md5)
- that.urlListImage.size.push(file.size)})
-
- this.getImageMsg(file).then((imageinfo) => {
-
- imageinfo.size=file.size;
- imageinfo.format=file.type;
- imageinfo.name=file.name
- bmf.md5(file, (err, md5) => {
- imageinfo.md5=md5
- this.imageinfo.push({
- ...imageinfo
- })
- resolve()
- })
-
- });
- })
- },
- getTagListAll() {
- this.departTree = []
- this.departTreeModality = [] //形式
- this.departTreeContent = [] // 内容
- this.departTreeSence = [] // 场景
- this.departTreeMod = [] //基调
- this.getQueryTree(1, 'departTreeModality')
- this.getQueryTree(2, 'departTreeMod')
- this.getQueryTree(3, 'departTreeContent')
- this.getQueryTree(4, 'departTreeSence')
- },
- getQueryTree(type, arr) {
- getAction('/ctop/tagInfo/queryTreeList', {
- categoryId: type,
- }).then((res) => {
- if (res.success) {
- if (res.result) {
- this[arr] = this.getTreeData(res.result)
- }
- }
- })
- },
- getTreeData(data) {
- for (var i = 0; i < data.length; i++) {
- if (data[i].children) {
- if (data[i].children.length < 1) {
- // children若为空数组,则将children设为undefined
- data[i].disabled = false
- } else {
- // // children若不为空数组,则继续 递归调用 本方法
- data[i].disabled = true
- this.getTreeData(data[i].children)
- }
- } else {
- data[i].disabled = false
- }
- }
- return data
- },
- getTagListInfo(md5) {
- this.departValueInfoModality = []
- this.departValueInfoMod = []
- this.departValueInfoContent = []
- this.departValueInfoSence = []
- getAction('/ctop/materialTagInfo/detail', {
- code: md5,
- }).then((res) => {
- if (res.success) {
- this.tagInfoList = [...res.modalityTagList, ...res.contentTagList, ...res.senceTagList, ...res.modTagList]
- if (this.tagInfoListVisible) {
- this.departValueInfoModality = res.modalityTagList.map((item) => {
- return item.tagId
- })
- this.departValueInfoMod = res.modTagList.map((item) => {
- return item.tagId
- })
- this.departValueInfoContent = res.contentTagList.map((item) => {
- return item.tagId
- })
- this.departValueInfoSence = res.senceTagList.map((item) => {
- return item.tagId
- })
- }
- }
- })
- },
- showInput() {
- this.inputVisible = true
- this.$nextTick(function () {
- this.$refs.input.focus()
- })
- },
- handleInputChange(e) {
- this.inputValue = e.target.value
- },
- handleInputConfirm() {
- const inputValue = this.inputValue
- let tags = this.tags
- if (inputValue && tags.indexOf(inputValue) === -1) {
- tags = [...tags, inputValue]
- }
- Object.assign(this, {
- tags,
- inputVisible: false,
- inputValue: '',
- })
- },
- },
- created(){
-
- // getAction('/ctop/videoWatermarkTemplate/list').then(res => {
- // if (res.success) {
- // this.sizeType = res.result.records
- // }
- // });
- this.getTagListAll()
- let userInfo=localStorage.getItem('pro__Login_Userinfo');
- if(userInfo){
- this.userInfo=JSON.parse(userInfo).value
- }
- this.roleCode=localStorage.getItem('roleCode')
- console.log(this.$parent.orderId)
- this.currentOrderId=this.$parent.orderId;
- this.role=this.$parent.role;
- if(this.currentOrderId){
- this.orderDetailHttp()
- }
-
- },
- mounted() {
-
- },
- destroyed() {
- this.currentOrderInfo={}
- },
- activated() {
- this.currentOrderId=this.$parent.orderId;
- this.role=this.$parent.role;
- if(this.currentOrderId){
- this.orderDetailHttp()
- }
- },
- filters:{
- handlerSysName(val){
- let str='';
- switch(val){
-
- case '1':
- str= 'IOS'
- break;
- case '2':
- str= '安卓'
- break;
- case '3':
- str= '不限'
- break;
- default:
- str='出错的'
- break;
- }
- return str
-
- },
- handlerOrderStatus(val){
- let str='';
- switch(val){
-
- case 0:
- str= '待确定'
- break;
- case 1:
- str= '制作中'
- break;
- case 2:
- str= '已驳回'
- break;
- case 3:
- str= '已完成'
- break;
- case -1:
- str= '已撤回'
- break;
- default:
- str='出错了'
- break;
- }
- return str
- },
- handlerVideoStatus(val){
- let str='';
- switch(val){
-
- case 0:
- str= '待上传'
- break;
- case 1:
- str= '待审核'
- break;
- case 2:
- str= '被驳回'
- break;
- case 3:
- str= '已审核'
- break;
- default:
- str='出错了'
- break;
- }
- return str
- },
- handlerMaterialStatus(val){
- let str='';
- switch(val){
-
- case 0:
- str= '待指派'
- break;
- case 1:
- str= '脚本待上传'
- break;
- case 2:
- str= '脚本待审核'
- break;
- case 3:
- str= '脚本被驳回'
- break;
- case 4:
- str= '视频待上传'
- break;
- case 5:
- str= '视频待审核'
- break;
- case 6:
- str= '视频被驳回'
- break;
- case 7:
- str= '物料已完结'
- break;
- default:
- str='出错了'
- break;
- }
- return str
- },
- }
- }
- </script>
|