12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089 |
- //检斤管理
- <template>
- <div class="center">
- <div class="substance">
- <div class="left">
- <BalanceAlert v-if="isShowBalance" ref="weightChild" :deptBudgetList="deptBudgetList" :information="information"
- v-on:balanceListen="setVal" class="zujian">
- </BalanceAlert>
- <div class="top">
- <div class="confirmWeight">
- <div class="titleWeight">确认重量</div>
- <div v-if="index == 0" class="weight">
- {{ weighingList.grossWeight }} <span class="kg-style">kg</span>
- </div>
- <div v-else class="weight">
- {{ weighingList.tare }} <span class="kg-style">kg</span>
- </div>
- </div>
- <div class="confirmInfo">
- <div class="car-type">车牌号</div>
- <div class="car-no">{{ carWeightInfo.carNumber }}</div>
- </div>
- </div>
- <div class="bottom">
- <div class="bg-left titleup"><span class="word_css">实时监控</span></div>
- <!-- <div class="videoImg">
- <div class="videoImg-row">
- <video id="videoElement" autoplay muted width="50%"></video>
- <video id="videoElement1" autoplay muted width="50%"></video>
- </div>
- <div class="videoImg-row">
- <div class="carnumber-style">
- <el-button @click='positionPlace(1)' type="primary" class="btn">定位车辆</el-button>
- <div class="number">车牌号1:{{ $store.state.user.carNumber1 }}</div>
- </div>
- <div class="carnumber-style">
- <el-button @click='positionPlace(2)' type="primary" class="btn">定位车辆</el-button>
- <div class="number">车牌号2:{{ $store.state.user.carNumber2 }}</div>
- </div>
- </div>
- </div> -->
- <div v-if="!monitorUrl1" class="video1">
- <img src="../../../public/img/quesheng@2x.png" alt="" class="img1" />
- <div>监控视频未连接</div>
- </div>
- <div v-else class="video1">
- <iframe :src="monitorUrl1" width="440" height="360" allowfullscreen="true" webkitallowfullscreen="true"
- mozallowfullscreen="true" allow="autoplay; fullscreen; microphone;"></iframe>
- </div>
- <div v-if="!monitorUrl2" class="video1">
- <img src="../../../public/img/quesheng@2x.png" alt="" class="img1" />
- <div>监控视频未连接</div>
- </div>
- <div v-else class="video2">
- <iframe :src="monitorUrl2" width="440" height="360" allowfullscreen="true" webkitallowfullscreen="true"
- mozallowfullscreen="true" allow="autoplay; fullscreen; microphone;"></iframe>
- </div>
- </div>
- </div>
- <div class="right">
- <ws-form class="right-content">
- <div class="left1">
- <div class="titlesign weightTitle">
- <span class="word_css">检斤信息</span>
- </div>
- <div class="weightInfo">
- <div class="tab">
- <div :class="inWarehouseType == 1 ? 'in_css' : 'in_cssno'" @click="WarehousingType(1)">贸易入库</div>
- <div :class="inWarehouseType == 3 ? 'in_css' : 'in_cssno'" @click="WarehousingType(3)">收购入库</div>
- </div>
- <div class="tab weigh_btn">
- <el-badge :value="mListTop.length" class="badge_item">
- <div :class="tpyeNo == 1 ? 'in_css1' : 'in_cssno1'" @click="tabClick(0)">称毛重</div>
- </el-badge>
- <el-badge :value="pListTop.length" class="badge_item">
- <div :class="tpyeNo == 2 ? 'in_css1' : 'in_cssno1'" @click="tabClick(1)">称皮重</div>
- </el-badge>
- </div>
- <ws-info-table>
- <ws-form-item label="业务编号" span="1" prop="number">
- <ws-input v-model="weighingList.number" placeholder="自动获取,不可编辑" maxlength="100" disabled
- size="small" />
- </ws-form-item>
- <ws-form-item label="合同编号" span="1" prop="contractNo" v-show="inWarehouseType == 1"
- v-if="weighingList.contractNo">
- <ws-input v-model="weighingList.contractNo" placeholder="自动获取,不可编辑" maxlength="100" disabled
- size="small" />
- </ws-form-item>
- <ws-form-item label="移库编号" span="1" prop="moveTaskNo" v-show="inWarehouseType == 1" v-else>
- <ws-input v-model="weighingList.moveTaskNo" placeholder="自动获取,不可编辑" maxlength="100" size="small"
- disabled />
- </ws-form-item>
- <ws-form-item label="已完成量(吨)" span="1" prop="tips">
- <ws-input v-model="weighingList.donecount" placeholder="自动获取,不可编辑" maxlength="100" disabled
- size="small" />
- <!-- {{}} -->
- </ws-form-item>
- <ws-form-item label="客户" span="1" prop="customer" v-if="inWarehouseType == 3">
- <ws-input v-model="weighingList.customer" placeholder="自动获取,不可编辑" maxlength="100" disabled
- size="small" />
- </ws-form-item>
- <ws-form-item label="货名" span="1" prop="goodsName">
- <ws-input v-model="weighingList.goodsName" placeholder="自动获取,不可编辑" maxlength="100" disabled
- size="small" />
- </ws-form-item>
- <ws-form-item label="车牌号" span="1" prop="carNumber">
- <ws-input v-model="weighingList.carNumber" v-if="inWarehouseType==1" placeholder="自动获取,不可编辑" maxlength="100" size="small"
- disabled />
- <ws-input v-model="weighingList.carNumber" v-else placeholder="自动获取,不可编辑" maxlength="100" size="small" />
- </ws-form-item>
- <ws-form-item label="运输方式" span="1" prop="outType" v-if="inWarehouseType == 1">
- <ws-input v-model="weighingList.outType" placeholder="自动获取,不可编辑" maxlength="100" size="small"
- disabled />
- </ws-form-item>
- <ws-form-item label="箱号-1" span="1" prop="boxNo">
- <ws-input v-model="weighingList.boxNo" placeholder="自动获取,不可编辑" maxlength="20" size="small" disabled />
- </ws-form-item>
- <ws-form-item label="封号-1" span="1" prop="titleNo">
- <ws-input v-model="weighingList.titleNo" placeholder="自动获取,不可编辑" maxlength="20" size="small"
- disabled />
- </ws-form-item>
- <ws-form-item label="箱号-2" span="1" prop="boxNoOther">
- <ws-input v-model="weighingList.boxNoOther" placeholder="自动获取,不可编辑" maxlength="20" size="small"
- disabled />
- </ws-form-item>
- <ws-form-item label="封号-2" span="1" prop="titleNoOther">
- <ws-input v-model="weighingList.titleNoOther" placeholder="自动获取,不可编辑" maxlength="20" size="small"
- disabled />
- </ws-form-item>
- <ws-form-item label="毛重(KG)" span="1" prop="grossWeight">
- <ws-input type="number" @mousewheel.native.prevent v-if="index == 0"
- v-model="weighingList.grossWeight" @input="calculation(status)" placeholder="未获取到毛重" maxlength="100"
- size="small" :disabled="disabled" />
- <ws-input type="number" @mousewheel.native.prevent v-else v-model="weighingList.grossWeight"
- @input="calculation" placeholder="未获取到毛重" maxlength="100" size="small" disabled />
- <el-button class="butCss" @click="openPort" v-if="index == 0">重新获取</el-button>
- </ws-form-item>
- <ws-form-item label="皮重(KG)" span="1" prop="tare" v-if="information == '皮重'">
- <ws-input type="number" @mousewheel.native.prevent v-model="weighingList.tare" @input="calculation"
- placeholder="未获取到皮重" maxlength="100" size="small" :disabled="disabled" />
- <el-button class="butCss" v-if="index != 0" @click="openPort">重新获取</el-button>
- </ws-form-item>
- <div class="formItem">
- <ws-form-item label="扣重(KG)" span="1" prop="buckleMiscellaneous"
- v-if="information == '皮重' && (paramType == '2' || inWarehouseType == 1)">
- <ws-input type="number" @mousewheel.native.prevent v-model="weighingList.buckleMiscellaneous"
- @input="calculation" placeholder="请输入扣重" maxlength="100" size="small" />
- </ws-form-item>
- <ws-form-item label="净重(KG)" span="1" prop="netWeight" v-if="information == '皮重'">
- <ws-input type="number" @mousewheel.native.prevent v-model="weighingList.netWeight"
- placeholder="自动计算,不可编辑" maxlength="100" size="small" disabled />
- </ws-form-item>
- <!-- <ws-form-item label="应收卸车过磅费(元)" span="1" prop="receivableWeighingFee" v-if="index == 1">
- <ws-input type="number" v-model="weighingList.receivableWeighingFee" placeholder="未获取到卸车过磅费金额"
- maxlength="100" size="small" disabled />
- </ws-form-item>
- <ws-form-item label="实收卸车过磅费(元)" span="1" prop="actualWeighingFee" v-if="index == 1">
- <ws-input type="number" v-model="weighingList.actualWeighingFee" placeholder="输入卸车过磅费" maxlength="100"
- size="small" />
- </ws-form-item> -->
- </div>
- </ws-info-table>
- <div class="but">
- <!-- <el-button @click="print" type="primary" :disabled="submitAllow">提交</el-button> -->
- <el-button @click="print" v-if="information == '毛重'" type="primary">保存</el-button>
- <el-button @click="print(1)" v-if="information == '皮重'" type="primary">保存并打印
- </el-button>
- </div>
- <!-- <div>
- <div>粮源</div>
- <div class='stocks' v-for='(item,index) in stocks'>
- <el-select v-model="item.warehouseName" filterable placeholder="选择所属仓库" @change="warehouseNameChange" :value="searchType">
- <el-option v-for="item in warehouseList" :key="item.value" :label="item.value" :value="item.value"
- style="color: #8890b1" />
- </el-select>
- <ws-input v-model="item.cost" placeholder="输入重量" maxlength="100"
- size="small" />
- <ws-input v-model="item.cost" placeholder="输入成本" maxlength="100"
- size="small" />
- <img class='add' @click='addstocks(index)' src="../../../public/img/add.png" alt="">
- <img class='del' @click='delstocks(index)' src="../../../public/img/del.png" alt="">
- </div>
- </div> -->
- </div>
- </div>
- <div class="car-right">
- <div class="screen">
- <el-select v-model="warehouseName" placeholder="请选择仓库名" @change="warehouseNameChange">
- <el-option v-for="item in warehouseList" :key="item.id" :label="item.warehouseName"
- :value="item.warehouseName">
- </el-option>
- </el-select>
- <el-button @click='refreshClick(1)' type="primary">刷新</el-button>
- <el-button @click='refreshClick' type="primary">{{ timer ? refresh : '自动刷新' }}</el-button>
- <!-- <el-checkbox v-model="checked">默认</el-checkbox> -->
- </div>
- <div class="screen frame">
- <div class="screen_left">
- <div @click="cutstatus(1)" :class="status == 1 ? 'select_css' : 'noselect_css'"
- v-if="!(inWarehouseType == 1 && tpyeNo == 2)">未称{{ information }}</div>
- <!-- <div @click="cutstatus(2)" :class="status==2?'select_css':'noselect_css'"
- v-if="!(inWarehouseType == 1 && tpyeNo == 2)">已称{{information}}</div> -->
- </div>
- <div class="screen_right">
- <div @click="record" v-hasPermission="`acquisitionManagement.acquisitionWeight.view`" class="jilu">记录
- </div>
- </div>
- </div>
- <el-table ref="singleTable" :data="carList" highlight-current-row @current-change="handleCurrentChange"
- current-row-key="id"
- style="width: 100%; overflow-y: scroll !important;; height: calc(100vh - 54vh);margin-top:20px">
- <el-table-column property="number" label="业务编号">
- </el-table-column>
- <el-table-column property="carNumber" label="车牌号">
- </el-table-column>
- <el-table-column property="status" label="状态">
- </el-table-column>
- </el-table>
- <div style="text-align: center">
- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
- :current-page="currentPage" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper"
- :total="deptBudgetTotal">
- </el-pagination>
- </div>
- <!-- <div class="table-title">
- <div class="top">
- <div class="top-item first"></div>
- <div class="top-item">编号</div>
- <div class="top-item">车牌号</div>
- </div>
- <div class="top">
- <div></div>
- <div class="top-item"></div>
- <div class="top-item">编号</div>
- <div class="top-item">车牌号</div>
- </div>
- </div>
- <div class="table">
- <div class="table-content" v-for="(item,index) in 30" :key="index">
- <div class="table-content-item"><input type="radio"></div>
- <div class="table-content-item">xxxxxxxxxxxxx</div>
- <div class="table-content-item">辽A11111</div>
- </div>
- </div> -->
- </div>
- </ws-form>
- </div>
- </div>
- <el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint" title="粮食检斤单" @opened="opendBtn"
- @close="closeDialog" :close-on-click-modal="false">
- <weightCheckPrint :tableData="inspect" ref="saveImg"></weightCheckPrint>
- <div style="text-align: center">
- <el-button type="primary" @click="closePrint">关闭</el-button>
- <el-button type="primary" @click="printSmall">打印小票</el-button>
- <el-button type="primary" @click="printBig">打印单据</el-button>
- </div>
- </el-dialog>
- <div class="mask" v-show="isShowPrintType"></div>
- <div class="print-type" v-show="isShowPrintType">
- <div class="print-type-content">
- <div class="print-type-title">请选择打印类型</div>
- <div class="print-type-checkbox">
- <!-- <el-radio-group v-model="radio">
- <el-radio label="A4" class="label-width" @change="selectType">A4</el-radio>
- <el-radio label="A5" class="label-width" @change="selectType">A5</el-radio>
- </el-radio-group> -->
- </div>
- <div class="shdw-style" v-if="checked || (!ddchecked && !checked)">
- <div>收货单位:</div>
- <!-- <div>{{companyName}}</div> -->
- <el-select v-model="companyName" placeholder="请选择" style="width: 75%;">
- <el-option v-for="item in companyNameOptions" :key="item.value" :label="item.label" :value="item.value">
- </el-option>
- </el-select>
- </div>
- <div class="shdw-style" v-if="checked && serviceManagementType==3 || (!ddchecked && !checked && serviceManagementType==3)">
- <div>发货单位:</div>
- <!-- <div>{{companyName}}</div> -->
- <el-select v-model="customer" placeholder="请选择" style="width: 75%;">
- <el-option v-for="item in customerOptions" :key="item.value" :label="item.label" :value="item.value">
- </el-option>
- </el-select>
- </div>
- <div v-if="warehouseName=='鲅鱼圈金信库'||warehouseName=='白城内陆港'||warehouseName=='杜尔伯特家禾库'||warehouseName=='甘南宏旗库'||warehouseName=='洮南兴旺库2023.10-2024.9'||warehouseName=='洮南新友谊兴旺库'||warehouseName=='洮南向阳乡金昊'||warehouseName=='山东园丰库'">
- <div class="print-type-ew">
- <el-checkbox v-model="checked" @change="changeEw">打印额外票据</el-checkbox>
- <el-checkbox v-model="ddchecked" @change="changeEwDD">单独打印额外票据</el-checkbox>
- </div>
- <div class="ew-print" v-if="printSeparately">
- <div class="row">
- <div>额外客户姓名:</div>
- <!-- <div>{{companyName}}</div> -->
- <el-select v-model="ewCustomer" placeholder="请选择" style="width: 75%;">
- <el-option v-for="item in ewCustomerOptions" :key="item.value" :label="item.label" :value="item.value">
- </el-option>
- </el-select>
- </div>
- <div class="row">
- <div>额外收货单位:</div>
- <!-- <div>{{companyNameEW}}</div> -->
- <el-select v-model="companyNameEW" placeholder="请选择" style="width: 75%;">
- <el-option v-for="item in companyNameEWOptions" :key="item.value" :label="item.label"
- :value="item.value">
- </el-option>
- </el-select>
- </div>
-
- </div>
- </div>
- <div v-if="warehouseName=='鲅鱼圈金信库'">
- <div class="print-type-ew">
- <el-checkbox v-model="outchecked" @change="changeOut">是否打印出库</el-checkbox>
- </div>
- <div class="ew-print" v-if="printout">
- <div class="row">
- <div>出库发货单位:</div>
- <!-- <div>{{companyName}}</div> -->
- <el-select v-model="inshipments" placeholder="请选择" style="width: 75%;">
- <el-option v-for="item in ewCustomerOptions" :key="item.value" :label="item.label" :value="item.value">
- </el-option>
- </el-select>
- </div>
- <div class="row">
- <div>出库收货单位:</div>
- <!-- <div>{{companyNameEW}}</div> -->
- <el-select v-model="outshipments" placeholder="请选择" style="width: 75%;">
- <el-option v-for="item in companyNameEWOptions" :key="item.value" :label="item.label"
- :value="item.value">
- </el-option>
- </el-select>
- </div>
- <div class="row">
- <div>出库仓位号:</div>
- <!-- <div>{{companyNameEW}}</div> -->
- <el-select v-model="outbinNumber" placeholder="请选择仓位号" style="width: 75%;">
- <el-option v-for="item in binNumberList1" :key="item.id" :label="item.binNumber"
- :value="item.binNumber">
- </el-option>
- </el-select>
- </div>
- </div>
- </div>
- </div>
- <div class="bottom-btn">
- <el-button @click="typePrintClick">确定</el-button>
- <el-button @click="typePrintCannelClick">取消</el-button>
- </div>
- </div>
- </div>
- </template>
- <script>
- import flvjs from 'flv.js';
- import {
- tare,
- grossWeight,
- getamount,
- getPrint,
- getweighingList,
- getinspectLookGoods,
- selectWarehouseSelf,
- getsettleaccout,
- newSubmit,
- getbinNumber,
- getToken,
- getRom,
- } from '@/model/houseSelfCollect/index'
- import {
- addstorageputList
- } from '@/model/warehouse/index'
- import {
- getcomp
- } from '@/model/indexRx'
- import weightCheckPrint from './component/weightCheckPrint.vue'
- import BalanceAlert from '@/components/balanceAlert'
- import html2canvas from 'html2canvas'
- import axios from 'axios'
- import configText from '../../../vue.config.js'
- export default {
- components: {
- weightCheckPrint,
- BalanceAlert,
- },
- watch: {
- '$route'(to, from) {
- if (to.name == 'newWeighingManagement') {
- this.isShowBalance = true
- var _saomaData = JSON.parse(localStorage.getItem('saoma_data')) //判断是否扫码进来的
- // }
- //仓库
- selectWarehouseSelf({
- compId: localStorage.getItem('ws-pf_compId'),
- })
- .toPromise()
- .then((response) => {
- this.warehouseList = response
- if (_saomaData) { //缓存中有值,证明扫码进来的
- this.warehouseName = _saomaData.warehouseName
- this.cangid = _saomaData.cangid
- this.monitorUrl1 = _saomaData.monitorUrl1
- this.monitorUrl2 = _saomaData.monitorUrl2
- this.allowEdit = _saomaData.allowEdit
- this.id = _saomaData.id
- this.tpyeNo = _saomaData.typeNo
- this.number = _saomaData.number
- if (_saomaData.managementType) {
- this.inWarehouseType = _saomaData.managementType
- }
- } else if (localStorage.getItem('houseSelfCollect_house1')) {
- this.warehouseName = JSON.parse(localStorage.getItem('houseSelfCollect_house1')).value
- for (var i = 0; i < response.length; i++) {
- if (this.warehouseName == this.warehouseList[i].warehouseName) {
- this.cangid = this.warehouseList[i].id
- this.monitorUrl1 = this.warehouseList[i].monitorUrl1
- this.monitorUrl2 = this.warehouseList[i].monitorUrl2
- this.allowEdit = this.warehouseList[i].allowEdit
- break
- }
- }
- } else {
- localStorage.setItem('houseSelfCollect_house1', JSON.stringify({
- value: this.warehouseList[0].warehouseName,
- warehouseId: this.warehouseList[0].id,
- count: this.warehouseList[0].count,
- No: this.warehouseList[0].commonWarehouseNo,
- allowEdit: this.warehouseList[0].allowEdit,
- compId: localStorage.getItem('ws-pf_compId'),
- ip1: this.warehouseList[0].shexiang1,
- ip2: this.warehouseList[0].shexiang2
- }))
- this.warehouseName = this.warehouseList[0].warehouseName
- localStorage.setItem('ck', this.warehouseName)
- this.cangid = this.warehouseList[0].id
- this.allowEdit = this.warehouseList[0].allowEdit
- this.monitorUrl1 = this.warehouseList[0].monitorUrl1
- this.monitorUrl2 = this.warehouseList[0].monitorUrl2
- }
- this.deptBudgetList.warehouseName = this.warehouseName
- if (this.allowEdit == 0) {
- this.disabled = true
- } else if (this.allowEdit == 1) {
- this.disabled = false
- }
- if (this.tpyeNo == 1) {
- this.information = '毛重'
- this.weighingList.tare = 0
- } else if (this.tpyeNo == 2) {
- this.information = '皮重'
- }
- this.getList()
- })
- }
- },
- weighingList: {
- //深度监听,可监听到对象、数组的变化
- handler(val, oldVal) {
- if (val.tare) {
- if (this.weighingList.buckleMiscellaneous) {
- this.weighingList.netWeight =
- this.weighingList.grossWeight -
- val.tare -
- this.weighingList.buckleMiscellaneous
- } else {
- this.weighingList.netWeight =
- this.weighingList.grossWeight - val.tare
- }
- }
- },
- deep: true, //true 深度监听
- }
- },
- data() {
- return {
- player: null,
- ip1: '',
- ip2: '',
- rom1: '',
- rom2: '',
- timer: '',
- refresh: 60,
- isShowBalance: false,
- currentPage: 1,
- pageSize: 50,
- outbinNumber:'',
- binNumberList1:[],
- deptCircularPage: {},
- deptBudgetTotal: 0,
- pList: [],
- mList: [],
- serviceManagementType:1,
- index: 0,
- status: 1,
- carList: [],
- carListCopy: [],
- customerOptions:[],
- carWeightInfo: {
- carNumber: '',
- type: '',
- weight: '',
- },
- outchecked:false,
- printout:false,
- currentRow: null,
- inspect: {},
- types: 1,
- information: '',
- weighingList: {
- grossWeight: '',
- tare: '',
- buckleMiscellaneous: 0,
- netWeight: 0,
- receivableWeighingFee: '',
- qualityInspectionManagement: {
- boxNo: '暂无',
- boxNoOther: '暂无',
- titleNo: '暂无',
- titleNoOther: '暂无',
- }
- },
- deptBudgetList: {},
- tpyeNo: '1',
- disabled: true,
- relationId: '',
- warehouseId: '',
- purchasePriceList: [],
- isShowPrint: false,
- tableData: {},
- reader: null,
- param: 9600,
- monitorUrl1: '', //监控地址
- monitorUrl2: '', //监控地址
- cangid: '',
- paramType: '1', //参数类型 1 扣重比 2 降幅
- warehouseName: '',
- result1: '00',
- allowEdit: 0,
- mListTop: [],
- mListBottom: [],
- stocks: [{
- warehouseName: '',
- weight: '',
- cost: ''
- }],
- pListTop: [],
- carList1: [],
- pListBottom: [],
- warehouseList: [], //仓库
- checked: false,
- inWarehouseType: 1, //入库类型
- mListTotal: [],
- pListTotal: [],
- submitAllow: false,
- id: '',
- inOutData: {},
- idPrint: '',
- customer:'',
- ewCustomerOptions: [
- {
- value: '黑龙江中天昊元贸易有限公司',
- label: '黑龙江中天昊元贸易有限公司'
- }, {
- value: '黑龙江利润元粮食贸易有限公司',
- label: '黑龙江利润元粮食贸易有限公司'
- }, {
- value: '黑龙江众利合粮食贸易有限公司',
- label: '黑龙江众利合粮食贸易有限公司'
- }, {
- value: '黑龙江鑫满仓粮食贸易有限公司',
- label: '黑龙江鑫满仓粮食贸易有限公司'
- }, {
- value: '厦门建发物产有限公司',
- label: '厦门建发物产有限公司'
- }, {
- value: '黑龙江谷香粮食贸易有限公司',
- label: '黑龙江谷香粮食贸易有限公司'
- }, {
- value: '黑龙江秋收有限公司',
- label: '黑龙江秋收有限公司'
- }, {
- value: '黑龙江欣洋粮食贸易有限公司',
- label: '黑龙江欣洋粮食贸易有限公司'
- }, {
- value: '黑龙江益储益运粮食贸易有限公司',
- label: '黑龙江益储益运粮食贸易有限公司'
- }, {
- value: '黑龙江启兴粮食贸易有限公司',
- label: '黑龙江启兴粮食贸易有限公司'
- }, {
- value: '吉林中翰兴粮食贸易有限公司',
- label: '吉林中翰兴粮食贸易有限公司'
- }, {
- value: '黑龙江中天绿粮供应链服务有限公司',
- label: '黑龙江中天绿粮供应链服务有限公司'
- }],
- companyNameOptions: [{
- value: '黑龙江中天昊元贸易有限公司',
- label: '黑龙江中天昊元贸易有限公司'
- }, {
- value: '黑龙江利润元粮食贸易有限公司',
- label: '黑龙江利润元粮食贸易有限公司'
- }, {
- value: '黑龙江众利合粮食贸易有限公司',
- label: '黑龙江众利合粮食贸易有限公司'
- }, {
- value: '黑龙江鑫满仓粮食贸易有限公司',
- label: '黑龙江鑫满仓粮食贸易有限公司'
- }, {
- value: '榆树市保寿镇保寿村民胜粮食加工有限公司',
- label: '榆树市保寿镇保寿村民胜粮食加工有限公司'
- },
- {
- value: '黑龙江谷香粮食贸易有限公司',
- label: '黑龙江谷香粮食贸易有限公司'
- }, {
- value: '黑龙江秋收有限公司',
- label: '黑龙江秋收有限公司'
- }, {
- value: '黑龙江欣洋粮食贸易有限公司',
- label: '黑龙江欣洋粮食贸易有限公司'
- }, {
- value: '黑龙江益储益运粮食贸易有限公司',
- label: '黑龙江益储益运粮食贸易有限公司'
- }, {
- value: '黑龙江启兴粮食贸易有限公司',
- label: '黑龙江启兴粮食贸易有限公司'
- }, {
- value: '吉林中翰兴粮食贸易有限公司',
- label: '吉林中翰兴粮食贸易有限公司'
- }, {
- value: '黑龙江中天绿粮供应链服务有限公司',
- label: '黑龙江中天绿粮供应链服务有限公司'
- }, {
- value: '吉林昊友城元粮食贸易有限公司',
- label: '吉林昊友城元粮食贸易有限公司'
- }],
- companyNameEWOptions: [{
- value: '天津建源供应链管理有限公司',
- label: '天津建源供应链管理有限公司'
- },{
- value: '厦门建发物产有限公司',
- label: '厦门建发物产有限公司'
- }],
- companyName: '黑龙江利润元粮食贸易有限公司',
- companyNameEW: '厦门建发物产有限公司',
- ewCustomer: '黑龙江利润元粮食贸易有限公司',
- inshipments:'黑龙江中天昊元贸易有限公司',
- outshipments:'黑龙江中天昊元贸易有限公司',
- ewradio: '',
- ddchecked: false,
- checked: false,
- isShowPrintType: false,
- dialogDataList: [],
- statusType: 1,
- jjSelectPrintList: [],
- printSeparately: false,
- number: '',
- warehousingType: 1,
- }
- },
- beforeDestroy() {
- if (this.timer) { //如果定时器还在运行 或者直接关闭,不用判断
- clearInterval(this.timer); //关闭
- }
- },
- mounted() {
- localStorage.setItem('serverIp', configText.devServer.proxy['/pb'].target)
- getcomp({userMobilePhone:JSON.parse(localStorage.getItem('ws_login_getTenantInfoByUser')).loginInfo.userMobilePhone}).toPromise().then((res)=>{
- this.compNameoptions=res
- if (this.compNameoptions.length>0) {
- var company=this.compNameoptions
-
- var extra=company.filter((item)=>{
- return item!='黑龙江中天昊元贸易有限公司'
- &&item!='黑龙江利润元粮食贸易有限公司'
- &&item!= '黑龙江众利合粮食贸易有限公司'
- &&item!='黑龙江鑫满仓粮食贸易有限公司'
- &&item!='黑龙江谷香粮食贸易有限公司'
- &&item!='黑龙江秋收有限公司'
- &&item!= '黑龙江欣洋粮食贸易有限公司'
- &&item!='黑龙江益储益运粮食贸易有限公司'
- &&item!='黑龙江启兴粮食贸易有限公司'
- })
- if(extra.length>0){
- this.companyNameOptions=[
- {
- value: '黑龙江中天昊元贸易有限公司',
- label: '黑龙江中天昊元贸易有限公司'
- }, {
- value: '黑龙江利润元粮食贸易有限公司',
- label: '黑龙江利润元粮食贸易有限公司'
- }, {
- value: '黑龙江众利合粮食贸易有限公司',
- label: '黑龙江众利合粮食贸易有限公司'
- }, {
- value: '黑龙江鑫满仓粮食贸易有限公司',
- label: '黑龙江鑫满仓粮食贸易有限公司'
- },{
- value: '黑龙江欣洋粮食贸易有限公司',
- label: '黑龙江欣洋粮食贸易有限公司'
- },{
- value: '黑龙江谷香粮食贸易有限公司',
- label: '黑龙江谷香粮食贸易有限公司'
- },{
- value: '黑龙江秋收有限公司',
- label: '黑龙江秋收有限公司'
- }, {
- value: '黑龙江益储益运粮食贸易有限公司',
- label: '黑龙江益储益运粮食贸易有限公司'
- }, {
- value: '黑龙江启兴粮食贸易有限公司',
- label: '黑龙江启兴粮食贸易有限公司'
- }, {
- value: '吉林中翰兴粮食贸易有限公司',
- label: '吉林中翰兴粮食贸易有限公司'
- }, {
- value: '黑龙江中天绿粮供应链服务有限公司',
- label: '黑龙江中天绿粮供应链服务有限公司'
- }, {
- value: '吉林昊友城元粮食贸易有限公司',
- label: '吉林昊友城元粮食贸易有限公司'
- }]
-
- this.ewCustomerOptions= [
- {
- value: '天津建源供应链管理有限公司',
- label: '天津建源供应链管理有限公司'
- },{
- value: '黑龙江中天昊元贸易有限公司',
- label: '黑龙江中天昊元贸易有限公司'
- }, {
- value: '黑龙江利润元粮食贸易有限公司',
- label: '黑龙江利润元粮食贸易有限公司'
- }, {
- value: '黑龙江众利合粮食贸易有限公司',
- label: '黑龙江众利合粮食贸易有限公司'
- }, {
- value: '黑龙江鑫满仓粮食贸易有限公司',
- label: '黑龙江鑫满仓粮食贸易有限公司'
- },{
- value: '黑龙江欣洋粮食贸易有限公司',
- label: '黑龙江欣洋粮食贸易有限公司'
- },{
- value: '黑龙江谷香粮食贸易有限公司',
- label: '黑龙江谷香粮食贸易有限公司'
- },{
- value: '黑龙江秋收有限公司',
- label: '黑龙江秋收有限公司'
- }, {
- value: '黑龙江益储益运粮食贸易有限公司',
- label: '黑龙江益储益运粮食贸易有限公司'
- }, {
- value: '黑龙江启兴粮食贸易有限公司',
- label: '黑龙江启兴粮食贸易有限公司'
- }, {
- value: '吉林中翰兴粮食贸易有限公司',
- label: '吉林中翰兴粮食贸易有限公司'
- }, {
- value: '黑龙江中天绿粮供应链服务有限公司',
- label: '黑龙江中天绿粮供应链服务有限公司'
- }]
- this.companyNameEWOptions=[
- {
- value: '天津建源供应链管理有限公司',
- label: '天津建源供应链管理有限公司'
- },{
- value: '黑龙江中天昊元贸易有限公司',
- label: '黑龙江中天昊元贸易有限公司'
- }, {
- value: '黑龙江利润元粮食贸易有限公司',
- label: '黑龙江利润元粮食贸易有限公司'
- }, {
- value: '黑龙江众利合粮食贸易有限公司',
- label: '黑龙江众利合粮食贸易有限公司'
- }, {
- value: '黑龙江鑫满仓粮食贸易有限公司',
- label: '黑龙江鑫满仓粮食贸易有限公司'
- },{
- value: '黑龙江欣洋粮食贸易有限公司',
- label: '黑龙江欣洋粮食贸易有限公司'
- },{
- value: '黑龙江谷香粮食贸易有限公司',
- label: '黑龙江谷香粮食贸易有限公司'
- },{
- value: '黑龙江秋收有限公司',
- label: '黑龙江秋收有限公司'
- }, {
- value: '黑龙江益储益运粮食贸易有限公司',
- label: '黑龙江益储益运粮食贸易有限公司'
- }, {
- value: '黑龙江启兴粮食贸易有限公司',
- label: '黑龙江启兴粮食贸易有限公司'
- }, {
- value: '吉林中翰兴粮食贸易有限公司',
- label: '吉林中翰兴粮食贸易有限公司'
- }, {
- value: '黑龙江中天绿粮供应链服务有限公司',
- label: '黑龙江中天绿粮供应链服务有限公司'
- }]
- if(localStorage.getItem('print_company_name')){
- this.companyName=localStorage.getItem('print_company_name')
- }else{
- this.companyName=extra[0]
- }
- if(localStorage.getItem('print_company_name_ew')){
- this.companyNameEW=localStorage.getItem('print_company_name_ew')
- }else{
- this.companyNameEW=extra[0]
- }
- if(localStorage.getItem('print_customer_name_ew')){
- this.ewCustomer=localStorage.getItem('print_customer_name_ew')
- }else{
- this.ewCustomer=extra[0]
- }
- for (let i = 0; i < extra.length; i++) {
- this.ewCustomerOptions.push({value: extra[i],label:extra[i]})
- this.companyNameOptions.push({value: extra[i],label:extra[i]})
- this.companyNameEWOptions.push({value: extra[i],label:extra[i]})
- }
- }
- }
- })
- // this.getVideos()
- this.isShowBalance = true
- var _saomaData = JSON.parse(localStorage.getItem('saoma_data')) //判断是否扫码进来的
- // }
- //仓库
- selectWarehouseSelf({
- compId: localStorage.getItem('ws-pf_compId'),
- })
- .toPromise()
- .then((response) => {
- this.warehouseList = response
- if (_saomaData) { //缓存中有值,证明扫码进来的
- if (_saomaData.managementType) {
- this.inWarehouseType = _saomaData.managementType
- }
- this.tpyeNo = _saomaData.typeNo
- this.warehouseName = _saomaData.warehouseName
- this.cangid = _saomaData.cangid
- this.monitorUrl1 = _saomaData.monitorUrl1
- this.monitorUrl2 = _saomaData.monitorUrl2
- this.allowEdit = _saomaData.allowEdit
- this.id = _saomaData.id
- this.number = _saomaData.number
- for (var i = 0; i < response.length; i++) {
- if (this.warehouseName == this.warehouseList[i].warehouseName) {
- this.ip1 = this.warehouseList[i].shexiang1
- this.ip2 = this.warehouseList[i].shexiang2
- this.rom1 = this.warehouseList[i].rom1
- this.rom2 = this.warehouseList[i].rom2
- break
- }
- }
- localStorage.removeItem('saoma_data'); //第一次进来结束后清除缓存
- } else if (localStorage.getItem('houseSelfCollect_house1')) {
- this.warehouseName = JSON.parse(localStorage.getItem('houseSelfCollect_house1')).value
- for (var i = 0; i < response.length; i++) {
- if (this.warehouseName == this.warehouseList[i].warehouseName) {
- this.cangid = this.warehouseList[i].id
- this.monitorUrl1 = this.warehouseList[i].monitorUrl1
- this.monitorUrl2 = this.warehouseList[i].monitorUrl2
- this.allowEdit = this.warehouseList[i].allowEdit
- this.ip1 = this.warehouseList[i].shexiang1
- this.ip2 = this.warehouseList[i].shexiang2
- this.rom1 = this.warehouseList[i].rom1
- this.rom2 = this.warehouseList[i].rom2
- break
- }
- }
- } else {
- localStorage.setItem('houseSelfCollect_house1', JSON.stringify({
- value: this.warehouseList[0].warehouseName,
- warehouseId: this.warehouseList[0].id,
- count: this.warehouseList[0].count,
- No: this.warehouseList[0].commonWarehouseNo,
- allowEdit: this.warehouseList[0].allowEdit,
- compId: localStorage.getItem('ws-pf_compId')
- }))
- this.warehouseName = this.warehouseList[0].warehouseName
- localStorage.setItem('ck', this.warehouseName)
- this.cangid = this.warehouseList[0].id
- this.allowEdit = this.warehouseList[0].allowEdit
- this.monitorUrl1 = this.warehouseList[0].monitorUrl1
- this.monitorUrl2 = this.warehouseList[0].monitorUrl2
- this.ip1 = this.warehouseList[0].shexiang1
- this.ip2 = this.warehouseList[0].shexiang2
- this.rom1 = this.warehouseList[0].rom1
- this.rom2 = this.warehouseList[0].rom2
- }
- this.deptBudgetList.warehouseName = this.warehouseName
- if (this.allowEdit == 0) {
- this.disabled = true
- } else if (this.allowEdit == 1) {
- this.disabled = false
- }
- if (this.tpyeNo == 1) {
- this.information = '毛重'
- this.weighingList.tare = ''
- } else if (this.tpyeNo == 2) {
- this.information = '皮重'
- }
- this.getList()
- })
- },
- activated() {
- // if (!this.$route.query.grossWeight) {
- // this.$route.query.grossWeight = 0
- // } else {
- // this.weighingList.grossWeight = this.$route.query.grossWeight
- // }
- // this.allowEdit = this.$route.query.allowEdit
- // this.$route.query.automaticWeightAcquisition = 0
- // if(this.$route.query.automaticWeightAcquisition == '1'){
- // this.openPort()
- // this.isShowBalance = true
- // }
- // if (this.$route.query.automaticWeightAcquisition == '1') {
- },
- methods: {
- play() {
- this.flvPlayer.play();
- },
- positionPlace(type) {
- let _number = ''
- if(type ==1){
- _number = this.carNumber1
- }else{
- _number = this.carNumber2
- }
- console.log('定位车辆')
- console.log(this.carList)
- for (let i = 0; i < this.carList.length; i++) {
- if (_number == this.carList[i].carNumber) {
- this.setCurrent(this.carList[2])
- return
- } else {
- this.$message({
- message: '未识别到车辆信息',
- type: 'warning'
- });
- }
- }
- },
- getVideos(ip1, ip2, rom1, rom2) {
- if (rom1) {
- if (flvjs.isSupported()) {
- getToken({ romId: rom1 })
- .toPromise()
- .then((response) => {
- console.log(111)
- // let _accessToken = response.split('$$')[0]
- let _playUrl = response.split('$$')[1]
- // this.VideoSrc = _playUrl
- let videoElement = document.getElementById('videoElement');
- this.flvPlayer = flvjs.createPlayer({
- type: 'flv',
- isLive: true,
- hasAudio: false,
- url: _playUrl
- });
- this.flvPlayer.attachMediaElement(videoElement);
- this.flvPlayer.load();
- this.flvPlayer.play();
- })
- .catch((response) => {
- })
- }
- whetherWebSocket1(ip1, localStorage.getItem('ws-pf_userId'))
- }
- if (rom2) {
- if (flvjs.isSupported()) {
- getRom({ romId: rom2 })
- .toPromise()
- .then((response) => {
- console.log(111)
- // let _accessToken = response.split('$$')[0]
- let _playUrl = response.split('$$')[1]
- // this.VideoSrc1 = _playUrl
- let videoElement1 = document.getElementById('videoElement1');
- this.flvPlayer = flvjs.createPlayer({
- type: 'flv',
- isLive: true,
- hasAudio: false,
- url: _playUrl
- });
- this.flvPlayer.attachMediaElement(videoElement1);
- this.flvPlayer.load();
- this.flvPlayer.play();
- })
- .catch((response) => {
- })
- }
- whetherWebSocket2(ip2, localStorage.getItem('ws-pf_userId'))
- }
- // getVideo({
- // ip1:ip1,
- // ip2:ip2,
- // userId:localStorage.getItem('ws-pf_userId')
- // })
- // .toPromise()
- // .then((response) => {
- // console.log(111)
- // })
- // .catch((response) => {
- // })
- },
- changeOut(e) {
- if (e) {
- this.printout = true
- } else {
- this.printout = false
- }
- },
- refreshClick(type) {
- let that = this
- if (type == 1) {
- getweighingList({
- compId: localStorage.getItem('ws-pf_compId'),
- currentPage: that.currentPage,
- pageSize: that.pageSize,
- searchKeyWord: '',
- warehouseName: that.warehouseName,
- managementType: 1,
- serviceManagementType: that.inWarehouseType,
- loadingstatus: 1,
- pcFlag: 5
- // statusType:1
- })
- .toPromise()
- .then((response) => {
- that.common.commonWeighingList = response.records
- that.makeData()
- getweighingList({
- compId: localStorage.getItem('ws-pf_compId'),
- currentPage: that.currentPage,
- pageSize: that.pageSize,
- searchKeyWord: '',
- statusType: that.statusType,
- warehouseName: that.warehouseName,
- managementType: 1,
- serviceManagementType: that.inWarehouseType,
- loadingstatus: 1,
- pcFlag: 5
- // statusType:1
- })
- .toPromise()
- .then((response) => {
- that.deptBudgetTotal = response.total
- // that.weighingList = response.records
- })
- .catch((response) => {
- // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
- })
- })
- .catch((response) => {
- // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
- })
- } else {
- clearInterval(that.timer)
- that.refresh = 60
- that.timer = setInterval(function () {
- // console.log(that.refresh)
- if (that.refresh == 0) {
- that.refresh = 60
- getweighingList({
- compId: localStorage.getItem('ws-pf_compId'),
- currentPage: that.currentPage,
- pageSize: that.pageSize,
- searchKeyWord: '',
- warehouseName: that.warehouseName,
- managementType: 1,
- serviceManagementType: that.inWarehouseType,
- loadingstatus: 1,
- pcFlag: 5
- // statusType:1
- })
- .toPromise()
- .then((response) => {
- that.common.commonWeighingList = response.records
- that.makeData()
- getweighingList({
- compId: localStorage.getItem('ws-pf_compId'),
- currentPage: that.currentPage,
- pageSize: that.pageSize,
- searchKeyWord: '',
- statusType: that.statusType,
- warehouseName: that.warehouseName,
- managementType: 1,
- serviceManagementType: that.inWarehouseType,
- loadingstatus: 1,
- pcFlag: 5
- // statusType:1
- })
- .toPromise()
- .then((response) => {
- that.deptBudgetTotal = response.total
- // that.weighingList = response.records
- })
- .catch((response) => {
- // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
- })
- })
- .catch((response) => {
- // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
- })
- }
- that.refresh--
- }, 1000);
- }
- },
- changeEw(e) {
- this.ddchecked = false
- if (e) {
- this.printSeparately = true
- } else {
- this.printSeparately = false
- }
- },
- changeEwDD(e) {
- this.checked = false
- if (e) {
- this.printSeparately = true
- } else {
- this.printSeparately = false
- }
- },
- typePrintCannelClick() {
- this.ddchecked = false,
- this.checked = false,
- this.dialogDataList = [] //打个打印取消时数组至空
- this.isShowPrintType = false
- },
- async typePrintClick(type) {
- localStorage.setItem('print_company_name',this.companyName)
- localStorage.setItem('print_company_name_ew',this.companyNameEW)
- localStorage.setItem('print_customer_name_ew',this.ewCustomer)
- getPrint({
- id: this.idPrint
- })
- .toPromise()
- .then((response) => {
-
- localStorage.removeItem('print_in_data')
- this.dialogDataList = [] //点击确认时先清空要打印的数组
- this.dialogData = response
- if (response.compName == '黑龙江秋收有限公司') {
- this.dialogData.compName = '黑龙江中天昊元贸易有限公司'
- }else{
- this.dialogData.compName = this.companyName
- }
- if (this.checked) {
- this.dialogDataList.push(this.dialogData)
- var _datas = JSON.stringify(this.dialogData)
- _datas = JSON.parse(_datas)
- _datas.compName = this.companyNameEW;
- _datas.customer = this.ewCustomer
- this.dialogDataList.push(_datas)
- } else if (this.ddchecked) {
- _datas = this.dialogData
- _datas.compName = this.companyNameEW;
- _datas.customer = this.ewCustomer
- this.dialogDataList.push(_datas)
- } else {
- this.dialogData.compName = this.companyName
- if(this.dialogData&&this.dialogData.contractManagement&& this.warehousingType != 3){
- this.dialogData.customer = this.dialogData.contractManagement.seller
- }
- this.dialogDataList.push(this.dialogData)
- }
-
- if(this.outchecked){
- if(!this.checked&&!this.ddchecked){
- this.dialogDataList=[]
- var _data = JSON.parse(JSON.stringify(this.dialogData))
- this.$set(_data,'printtype','out')
- _data.compName = this.outshipments;
- _data.customer = this.inshipments
- _data.binNumber = this.outbinNumber
- this.dialogDataList.push(_data)
- }else{
- var _data = JSON.parse(JSON.stringify(this.dialogData))
- this.$set(_data,'printtype','out')
- _data.compName = this.outshipments;
- _data.customer = this.inshipments
- _data.binNumber = this.outbinNumber
- this.dialogDataList.push(_data)
- }
- }
- localStorage.setItem('print_in_data',JSON.stringify(this.dialogDataList).replace(/%/g, 'baifenhao'))
- // window.open('../../../../static/weightCheck.html?type=2&tableData=' + JSON.stringify(this.dialogDataList).replace(/%/g, 'baifenhao'))
- window.open('../../../../static/weightCheck.html?type=2&tableData=' )
- // this.printBig("", this.radio)
- })
- .catch((response) => { })
- },
- warehouseNameChange() {
- localStorage.setItem('ck', this.warehouseName)
- this.weighingList.warehouseName = this.warehouseName
- this.deptBudgetList.warehouseName = this.warehouseName
- for (var i = 0; i < this.warehouseList.length; i++) {
- if (this.warehouseName == this.warehouseList[i].warehouseName) {
- localStorage.setItem('houseSelfCollect_house1', JSON.stringify({
- value: this.warehouseList[i].warehouseName,
- warehouseId: this.warehouseList[i].id,
- count: this.warehouseList[i].count,
- No: this.warehouseList[i].commonWarehouseNo,
- allowEdit: this.warehouseList[i].allowEdit,
- compId: localStorage.getItem('ws-pf_compId')
- }))
- this.cangid = this.warehouseList[i].id
- this.monitorUrl1 = this.warehouseList[i].monitorUrl1
- this.monitorUrl2 = this.warehouseList[i].monitorUrl2
- this.allowEdit = this.warehouseList[i].allowEdit
- if (this.allowEdit == 0) {
- this.disabled = true
- } else if (this.allowEdit == 1) {
- this.disabled = false
- }
- }
- }
- this.getList()
- },
- record() {
- this.$router.push({
- path: 'weightCheckRecord',
- query: {
- inWarehouseType: this.inWarehouseType,
- warehouseName: this.warehouseName,
- warehouseId: this.cangid
- }
- })
- },
- WarehousingType(num) {
- this.inWarehouseType = num
- if (this.inWarehouseType == 1 && this.status == 2) {
- this.status = 1
- }
- this.warehousingType = this.inWarehouseType
- this.getList()
- },
- setVal(data) {
- if (this.information == '毛重') {
- this.weighingList.grossWeight = data
- } else {
- this.weighingList.tare = data
- }
- },
- openPort() {
- this.$refs.weightChild.openPort()
- },
- cutstatus(status) {
- this.status = status
- if (status == 2) {
- if (this.tpyeNo == 1) {
- this.statusType = 1
- this.getList()
- // this.carList = this.carList1.filter(function(item) {
- // return item.status == '已称毛重'
- // })
- } else {
- this.statusType = 3
- this.getList()
- // this.carList = this.carList1.filter(function(item) {
- // return item.status == '已称皮重'
- // })
- }
- } else {
- if (this.tpyeNo == 1) {
- this.statusType = 1
- this.getList()
- // this.mListTop.concat(this.mListBottom)
- // this.carList = this.carList1.filter(function(item) {
- // return item.status == '已质检'
- // })
- } else {
- this.statusType = 2
- this.getList()
- // this.carList = this.carList1.filter(function(item) {
- // return item.status == '已称毛重'
- // })
- }
- }
- // this.deptBudgetTotal = this.carList.length
- },
- addstocks(index) {
- this.stocks.push({
- warehouseName: '',
- cost: ''
- })
- },
- delstocks(index) {
- this.stocks.splice(index, 1)
- },
- handleSizeChange(val) {
- console.log(`每页 ${val} 条`)
- this.pageSize = val
- this.getList()
- },
- getList() {
- if (this.inWarehouseType != 1) {
- // 货名
- getinspectLookGoods({
- warehouseId: this.cangid,
- flag: '1',
- }).toPromise()
- .then((response) => {
- this.purchasePriceList = response
- })
- }
- this.refreshClick(1)
- // getweighingList({
- // compId: localStorage.getItem('ws-pf_compId'),
- // currentPage: this.currentPage,
- // pageSize: this.pageSize,
- // searchKeyWord: '',
- // warehouseName: this.warehouseName,
- // managementType: 1,
- // serviceManagementType: this.inWarehouseType,
- // // statusType:1
- // })
- // .toPromise()
- // .then((response) => {
- // this.common.commonWeighingList = response.records
- // this.makeData()
- // })
- // .catch((response) => {
- // // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
- // })
- // getweighingList({
- // compId: localStorage.getItem('ws-pf_compId'),
- // currentPage: this.currentPage,
- // pageSize: this.pageSize,
- // searchKeyWord: '',
- // statusType: this.statusType,
- // warehouseName: this.warehouseName,
- // managementType: 1,
- // serviceManagementType: this.inWarehouseType,
- // // statusType:1
- // })
- // .toPromise()
- // .then((response) => {
- // this.deptBudgetTotal = response.total
- // this.weighingList = response.records
- // })
- // .catch((response) => {
- // // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
- // })
- },
- makeData() {
- this.mList = []
- this.pList = []
- this.mListTop = []
- this.mListBottom = []
- this.pListTop = []
- this.pListBottom = []
- this.carWeightInfo.carNumber = ''
- let that = this
- let _list = this.common.commonWeighingList
- if (_list.length > 0) {
- this.weighingList = []
- }
- for (let i = 0; i < _list.length; i++) {
- if (_list[i].paymentManagement) {
- if (
- _list[i].paymentManagement.status != '待结算' ||
- _list[i].paymentManagement.approveStatus
- ) {
- continue
- }
- }
- if (_list[i].status == '已质检') {
- this.mListTop.push(_list[i])
- }
- if (_list[i].status == '已称毛重') {
- this.mListBottom.push(_list[i])
- }
- if (_list[i].status == '已称皮重') {
- this.pListBottom.push(_list[i])
- }
- if (_list[i].status == '已称毛重') {
- this.pListTop.push(_list[i])
- }
- }
- if (this.status == 1) {
- this.mList = this.mListTop
- this.pList = this.pListTop
- } else {
- this.mList = this.mListBottom
- this.pList = this.pListBottom
- }
- this.mListTotal = this.mListTop.concat(this.mListBottom)
- this.pListTotal = this.pListTop.concat(this.pListBottom)
- if (this.information == '毛重') {
- this.index = 0
- console.log(this.mList)
- var _saomaData = JSON.parse(localStorage.getItem('saoma_data'))
-
- if (_saomaData) {
- let _array = JSON.parse(JSON.stringify(this.mList))
- for (let i = 0; i < this.mList.length; i++) {
- if (this.mList[i].number == _saomaData.number) {
- _array.splice(i, 1)
- _array.unshift(this.mList[i]);
- }
- }
- this.mList = _array
- localStorage.removeItem('saoma_data'); //第一次进来结束后清除缓存
- }
- this.carList = this.mList
- this.carList1 = this.mListTotal
- for (let i = 0; i < this.mList.length; i++) {
- if (this.number == this.mList[i].number) {
- this.setCurrent(this.mList[i])
- this.weighingList = this.mList[i]
- this.weighingList.donecount = this.mList[i].completedQuantity + '/' + this.mList[i].weight
- this.carWeightInfo = {
- carNumber: this.mList[i].carNumber,
- type: this.information,
- weight: this.weighingList.grossWeight,
- }
- }
- else {
- this.setCurrent(this.mList[0])
- this.weighingList = this.mList[0]
- this.weighingList.donecount = this.mList[0].completedQuantity + '/' + this.mList[0].weight
- this.carWeightInfo = {
- carNumber: this.mList[0].carNumber,
- type: this.information,
- weight: this.weighingList.grossWeight,
- }
- }
- }
- } else {
- this.index = 1
- console.log(this.pList)
- var _saomaData = JSON.parse(localStorage.getItem('saoma_data'))
-
- if (_saomaData) {
- let _array = JSON.parse(JSON.stringify(this.pList))
- for (let i = 0; i < this.pList.length; i++) {
- if (this.pList[i].number == _saomaData.number) {
- _array.splice(i, 1)
- _array.unshift(this.pList[i]);
- }
- }
- this.pList = _array
- localStorage.removeItem('saoma_data'); //第一次进来结束后清除缓存
- }
- this.carList = this.pList
- this.carList1 = this.pListTotal
- for (let i = 0; i < this.pList.length; i++) {
- if (this.number == this.pList[i].number) {
- this.setCurrent(this.pList[i])
- this.weighingList = this.pList[i]
- this.weighingList.donecount = this.mList[i].completedQuantity + '/' + this.mList[i].weight
- this.weighingList.inOutType = this.pList[i].qualityInspectionManagement.inOutType
- this.weighingList.inOutTypeKey = this.pList[i].qualityInspectionManagement.inOutTypeKey
- this.weighingList.deductionAmount = this.pList[i].qualityInspectionManagement.deductionAmount
- // console.log(this.weighingList)
- this.carWeightInfo = {
- carNumber: this.pList[0].carNumber,
- type: this.information,
- weight: this.weighingList.tare
- }
- }
- else {
- this.setCurrent(this.pList[0])
- this.weighingList = this.pList[0]
- this.weighingList.donecount = this.mList[0].completedQuantity + '/' + this.mList[0].weight
- this.weighingList.inOutType = this.pList[0].qualityInspectionManagement.inOutType
- this.weighingList.inOutTypeKey = this.pList[0].qualityInspectionManagement.inOutTypeKey
- this.weighingList.deductionAmount = this.pList[0].qualityInspectionManagement.deductionAmount
- // console.log(this.weighingList)
- this.carWeightInfo = {
- carNumber: this.pList[0].carNumber,
- type: this.information,
- weight: this.weighingList.tare
- }
- }
- }
- if (this.pList.length != 0) {
- this.setCurrent(this.pList[0])
- this.weighingList = this.pList[0]
- this.weighingList.donecount = this.mList[0].completedQuantity + '/' + this.mList[0].weight
- this.weighingList.inOutType = this.pList[0].qualityInspectionManagement.inOutType
- this.weighingList.inOutTypeKey = this.pList[0].qualityInspectionManagement.inOutTypeKey
- this.weighingList.deductionAmount = this.pList[0].qualityInspectionManagement.deductionAmount
- // console.log(this.weighingList)
- this.carWeightInfo = {
- carNumber: this.pList[0].carNumber,
- type: this.information,
- weight: this.weighingList.tare
- }
- }
- this.deptBudgetTotal = this.pList.length
- }
- this.weighingList.carModel = this.weighingList.qualityInspectionManagement.carModel
- //已下代码注释保留
- // if (this.weighingList.carModel == '单拖小柜') {
- // this.weighingList.receivableWeighingFee = 80
- // this.weighingList.actualWeighingFee = 80
- // } else if (this.weighingList.carModel == '双拖小柜') {
- // this.weighingList.receivableWeighingFee = 160
- // this.weighingList.actualWeighingFee = 160
- // } else if (this.weighingList.carModel == '大柜') {
- // if (this.weighingList.grossWeight / 1000 < 50) {
- // this.$set(this.weighingList, 'receivableWeighingFee', 120)
- // this.weighingList.actualWeighingFee = 120
- // this.$forceUpdate()
- // } else if (
- // this.weighingList.grossWeight / 1000 > 50 ||
- // this.weighingList.grossWeight / 1000 < 65
- // ) {
- // this.weighingList.receivableWeighingFee = 150
- // this.weighingList.actualWeighingFee = 150
- // } else if (
- // this.weighingList.grossWeight / 1000 > 65 ||
- // this.weighingList.grossWeight / 1000 < 75
- // ) {
- // this.weighingList.receivableWeighingFee = 170
- // this.weighingList.actualWeighingFee = 170
- // } else if (
- // this.weighingList.grossWeight / 1000 > 75 ||
- // this.weighingList.grossWeight / 1000 < 80
- // ) {
- // this.weighingList.receivableWeighingFee = 190
- // this.weighingList.actualWeighingFee = 190
- // } else if (
- // this.weighingList.grossWeight / 1000 > 80 ||
- // this.weighingList.grossWeight / 1000 < 85
- // ) {
- // this.weighingList.receivableWeighingFee = 210
- // this.weighingList.actualWeighingFee = 210
- // } else if (
- // this.weighingList.grossWeight / 1000 > 85 ||
- // this.weighingList.grossWeight / 1000 < 95
- // ) {
- // this.weighingList.receivableWeighingFee = 240
- // this.weighingList.actualWeighingFee = 240
- // } else if (
- // this.weighingList.grossWeight / 1000 > 95 ||
- // this.weighingList.grossWeight / 1000 < 105
- // ) {
- // this.weighingList.receivableWeighingFee = 260
- // this.weighingList.actualWeighingFee = 260
- // } else if (
- // this.weighingList.grossWeight / 1000 > 105 ||
- // this.weighingList.grossWeight / 1000 < 150
- // ) {
- // this.weighingList.receivableWeighingFee = 300
- // this.weighingList.actualWeighingFee = 300
- // }
- // } else if (this.weighingList.carModel == '挂车') {
- // if (this.weighingList.grossWeight / 1000 < 50) {
- // this.weighingList.receivableWeighingFee = 180
- // this.weighingList.actualWeighingFee = 180
- // } else if (
- // this.weighingList.grossWeight / 1000 > 50 ||
- // this.weighingList.grossWeight / 1000 < 65
- // ) {
- // this.weighingList.receivableWeighingFee = 200
- // this.weighingList.actualWeighingFee = 200
- // } else if (
- // this.weighingList.grossWeight / 1000 > 65 ||
- // this.weighingList.grossWeight / 1000 < 75
- // ) {
- // this.weighingList.receivableWeighingFee = 250
- // this.weighingList.actualWeighingFee = 250
- // } else if (
- // this.weighingList.grossWeight / 1000 > 75 ||
- // this.weighingList.grossWeight / 1000 < 85
- // ) {
- // this.weighingList.receivableWeighingFee = 350
- // this.weighingList.actualWeighingFee = 350
- // } else if (
- // this.weighingList.grossWeight / 1000 > 85 ||
- // this.weighingList.grossWeight / 1000 < 95
- // ) {
- // this.weighingList.receivableWeighingFee = 400
- // this.weighingList.actualWeighingFee = 400
- // } else if (
- // this.weighingList.grossWeight / 1000 > 95 ||
- // this.weighingList.grossWeight / 1000 < 105
- // ) {
- // this.weighingList.receivableWeighingFee = 450
- // this.weighingList.actualWeighingFee = 450
- // } else if (
- // this.weighingList.grossWeight / 1000 > 105 ||
- // this.weighingList.grossWeight / 1000 < 120
- // ) {
- // this.weighingList.receivableWeighingFee = 500
- // this.weighingList.actualWeighingFee = 500
- // } else if (
- // this.weighingList.grossWeight / 1000 > 120 ||
- // this.weighingList.grossWeight / 1000 < 130
- // ) {
- // this.weighingList.receivableWeighingFee = 550
- // this.weighingList.actualWeighingFee = 550
- // } else if (
- // this.weighingList.grossWeight / 1000 > 130 ||
- // this.weighingList.grossWeight / 1000 < 150
- // ) {
- // this.weighingList.receivableWeighingFee = 700
- // this.weighingList.actualWeighingFee = 700
- // }
- // } else if (this.weighingList.carModel == '冷藏箱(不抠箱)') {
- // if (this.weighingList.grossWeight / 1000 < 50) {
- // this.weighingList.receivableWeighingFee = 120
- // this.weighingList.actualWeighingFee = 120
- // } else if (
- // this.weighingList.grossWeight / 1000 > 50 ||
- // this.weighingList.grossWeight / 1000 < 65
- // ) {
- // this.weighingList.receivableWeighingFee = 150
- // this.weighingList.actualWeighingFee = 150
- // } else if (
- // this.weighingList.grossWeight / 1000 > 65 ||
- // this.weighingList.grossWeight / 1000 < 75
- // ) {
- // this.weighingList.receivableWeighingFee = 170
- // this.weighingList.actualWeighingFee = 170
- // } else if (
- // this.weighingList.grossWeight / 1000 > 75 ||
- // this.weighingList.grossWeight / 1000 < 80
- // ) {
- // this.weighingList.receivableWeighingFee = 190
- // this.weighingList.actualWeighingFee = 190
- // } else if (
- // this.weighingList.grossWeight / 1000 > 80 ||
- // this.weighingList.grossWeight / 1000 < 85
- // ) {
- // this.weighingList.receivableWeighingFee = 210
- // this.weighingList.actualWeighingFee = 210
- // } else if (
- // this.weighingList.grossWeight / 1000 > 85 ||
- // this.weighingList.grossWeight / 1000 < 95
- // ) {
- // this.weighingList.receivableWeighingFee = 240
- // this.weighingList.actualWeighingFee = 240
- // } else if (
- // this.weighingList.grossWeight / 1000 > 95 ||
- // this.weighingList.grossWeight / 1000 < 105
- // ) {
- // this.weighingList.receivableWeighingFee = 260
- // this.weighingList.actualWeighingFee = 260
- // } else if (
- // this.weighingList.grossWeight / 1000 > 105 ||
- // this.weighingList.grossWeight / 1000 < 120
- // ) {
- // this.weighingList.receivableWeighingFee = 300
- // this.weighingList.actualWeighingFee = 300
- // }
- // } else if (this.weighingList.carModel == '冷藏箱(抠箱)') {
- // if (this.weighingList.grossWeight / 1000 < 50) {
- // this.weighingList.receivableWeighingFee = 360
- // this.weighingList.actualWeighingFee = 360
- // } else if (
- // this.weighingList.grossWeight / 1000 > 50 ||
- // this.weighingList.grossWeight / 1000 < 65
- // ) {
- // this.weighingList.receivableWeighingFee = 390
- // this.weighingList.actualWeighingFee = 390
- // } else if (
- // this.weighingList.grossWeight / 1000 > 65 ||
- // this.weighingList.grossWeight / 1000 < 75
- // ) {
- // this.weighingList.receivableWeighingFee = 410
- // this.weighingList.actualWeighingFee = 410
- // } else if (
- // this.weighingList.grossWeight / 1000 > 75 ||
- // this.weighingList.grossWeight / 1000 < 80
- // ) {
- // this.weighingList.receivableWeighingFee = 430
- // this.weighingList.actualWeighingFee = 430
- // } else if (
- // this.weighingList.grossWeight / 1000 > 80 ||
- // this.weighingList.grossWeight / 1000 < 85
- // ) {
- // this.weighingList.receivableWeighingFee = 450
- // this.weighingList.actualWeighingFee = 450
- // } else if (
- // this.weighingList.grossWeight / 1000 > 85 ||
- // this.weighingList.grossWeight / 1000 < 95
- // ) {
- // this.weighingList.receivableWeighingFee = 480
- // this.weighingList.actualWeighingFee = 480
- // } else if (
- // this.weighingList.grossWeight / 1000 > 95 ||
- // this.weighingList.grossWeight / 1000 < 105
- // ) {
- // this.weighingList.receivableWeighingFee = 500
- // this.weighingList.actualWeighingFee = 500
- // } else if (
- // this.weighingList.grossWeight / 1000 > 105 ||
- // this.weighingList.grossWeight / 1000 < 120
- // ) {
- // this.weighingList.receivableWeighingFee = 540
- // this.weighingList.actualWeighingFee = 540
- // }
- // } else {
- // this.weighingList.receivableWeighingFee = ''
- // }
- },
- tabClick(val) {
- this.mListTop = []
- this.mListBottom = []
- this.pListTop = []
- this.pListBottom = []
- this.carWeightInfo.carNumber = ''
- this.weighingList = []
- this.index = val
- if (val == 0) {
- this.information = '毛重'
- this.tpyeNo = '1'
- } else {
- this.tpyeNo = '2'
- this.information = '皮重'
- }
- if (this.tpyeNo == 2 && this.inWarehouseType == 1) { //贸易入库不能二次称皮重(没有已称皮重按钮)
- this.status = 1 //手动更改未称皮重状态
- }
- this.getList()
- },
- setCurrent(row) {
- this.$refs.singleTable.setCurrentRow(row)
- },
- handleCurrentChange(val, oldCurrentRow) {
- this.submitAllow = false
- if (val) {
- this.currentRow = val
- this.carWeightInfo = {
- carNumber: val.carNumber,
- type: this.information,
- weight: val.grossWeight,
- }
- this.weighingList = val
- this.weighingList.donecount = this.weighingList.completedQuantity + '/' + this.weighingList.weight
- if (val.qualityInspectionManagement) {
- this.weighingList.boxNo = val.qualityInspectionManagement.boxNo
- this.weighingList.boxNoOther = val.qualityInspectionManagement.boxNoOther
- this.weighingList.titleNo = val.qualityInspectionManagement.titleNo
- this.weighingList.titleNoOther = val.qualityInspectionManagement.titleNoOther
- if (this.tpyeNo == 2 && this.status == 1 && val && val.qualityInspectionManagement.confirm == 0 && this
- .warehouseName != '克东千丰库'&&localStorage.getItem('ws-pf_compName')!='黑龙江省申融物流管理有限公司') {
- this.submitAllow = true
- this.$message({
- message: '该条质检信息未确认',
- type: 'warning'
- });
- }
- this.paramType = val.qualityInspectionManagement.paramType
- }
- }
- },
- cancel() {
- if (this.reader) {
- this.reader.cancel()
- }
- this.$router.push({
- path: 'weighingManagement',
- })
- },
- calculation(status) {
- // if (this.weighingList.grossWeight && this.weighingList.tare) {
- // this.weighingList.netWeight = this.weighingList.grossWeight - this.weighingList.tare - parseInt(this.weighingList.buckleMiscellaneous)
- // this.weighingList.netWeight = this.weighingList.netWeight.toFixed(2)
- // }
- },
- printSmall() {
- window.open(
- '../../../../static/weightCheck.html?type=1&tableData=' +
- JSON.stringify(this.inspect).replace(/%/g, 'baifenhao'))
- },
- printBig() {
- window.open(
- '../../../../static/weightCheck.html?type=2&tableData=' +
- JSON.stringify(this.inspect).replace(/%/g, 'baifenhao'))
- },
- opendBtn() {
- html2canvas(this.$refs.saveImg.$el).then((canvas) => {
- let dataURL = canvas.toDataURL('image/png')
- this.imgUrl = dataURL
- if (this.imgUrl !== '') {
- let b = this.dataURLtoFile(this.imgUrl, 'printImage')
- let formdata = new FormData()
- formdata.append('file', b)
- axios({
- method: 'post',
- url: this.global.uploadPath,
- data: formdata,
- }).then((response) => {
- //编辑接口
- this.weighingList.pictureAddress = response.data.url
- tare(this.weighingList)
- .toPromise()
- .then((response) => { })
- })
- }
- })
- },
- closeDialog() {
- html2canvas(this.$refs.saveImg.$el).then((canvas) => {
- let dataURL = canvas.toDataURL('image/png')
- this.imgUrl = dataURL
- if (this.imgUrl !== '') {
- let b = this.dataURLtoFile(this.imgUrl, 'printImage')
- let formdata = new FormData()
- formdata.append('file', b)
- axios({
- method: 'post',
- url: this.global.uploadPath,
- data: formdata,
- }).then((response) => {
- //编辑接口
- if (this.inWarehouseType == 1) {
- this.weighingList = this.inOutData
- this.weighingList.pictureAddress = response.data.url
- tare(this.weighingList)
- .toPromise()
- .then((response) => { })
- } else {
- this.weighingList.pictureAddress = response.data.url
- tare(this.weighingList)
- .toPromise()
- .then((response) => { })
- }
- })
- this.dialogTableVisible = true
- }
- })
- this.isShowPrint = false
- },
- closePrint() {
- this.isShowPrint = false
- },
- check(name, type) {
- if (type == 1) {
- for (var _tmp = 0; _tmp < this.ewCustomerOptions.length; _tmp++) {
- if (this.ewCustomerOptions[_tmp].label == name) {
- return false
- }
- }
- return true
- } else if (type == 2) {
- for (var _tmp = 0; _tmp < this.companyNameEWOptions.length; _tmp++) {
- if (this.companyNameEWOptions[_tmp].label == name) {
- return false
- }
- }
- return true
- }else if (type == 3) {
- for (var _tmp = 0; _tmp < this.companyNameOptions.length; _tmp++) {
- console.log(name)
- if (this.companyNameOptions[_tmp].label == name) {
- return false
- }
- }
- return true
- }
- },
- print() {
- if (this.reader) {
- this.reader.cancel()
- }
- if (!this.weighingList.id) {
- this.$message({
- message: '请选择一条已经质检过的数据',
- type: 'warning',
- })
- return
- }
- if (!this.weighingList.grossWeight) {
- this.$message({
- message: '毛重不能为空',
- type: 'warning',
- })
- return
- }
- // if (this.weighingList.grossWeight < 1 || this.weighingList.grossWeight > 200000) {
- // this.$message({
- // message: '毛重输入错误',
- // type: 'warning',
- // })
- // return
- // }
- // if (
- // String(this.weighingList.grossWeight).indexOf('.') != -1 &&
- // String(this.weighingList.grossWeight).length -
- // (String(this.weighingList.grossWeight).indexOf('.') + 1) >
- // 1
- // ) {
- // this.$message({
- // message: '毛重输入错误',
- // type: 'warning',
- // })
- // return
- // }
- if (this.tpyeNo == 2) {
- if (!this.weighingList.tare) {
- this.$message({
- message: '皮重不能为空',
- type: 'warning',
- })
- return
- }
- if (!this.weighingList.tare) {
- this.$message({
- message: '皮重不能为空',
- type: 'warning',
- })
- return
- }
- if (Number(this.weighingList.tare) > Number(this.weighingList.grossWeight)) {
- this.$message({
- message: '皮重不能大于毛重',
- type: 'warning',
- })
- return
- }
- // if (this.weighingList.tare < 1 || this.weighingList.tare > 100000) {
- // this.$message({
- // message: '皮重输入错误',
- // type: 'warning',
- // })
- // return
- // }
- // if (
- // String(this.weighingList.tare).indexOf('.') != -1 &&
- // String(this.weighingList.tare).length -
- // (String(this.weighingList.tare).indexOf('.') + 1) >
- // 1
- // ) {
- // this.$message({
- // message: '皮重输入错误',
- // type: 'warning',
- // })
- // return
- // }
- if (Number(this.weighingList.netWeight < 0)) {
- this.$message({
- message: '净重不能小于0',
- type: 'warning',
- })
- return
- }
- }
- if (this.tpyeNo == 2) {
- if (this.submitAllow) {
- this.$message.error('该条质检信息未确认')
- return
- }
- }
- this.$confirm('确定保存检斤信息?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning',
- })
- .then(() => {
- this.deptBudgetList.secretaryWeigher =
- localStorage.getItem('ws-pf_staffName')
- var that = this
- var warehousing = {}
- //贸易入库保存需要再走入库接口
- if (this.inWarehouseType == 1) {
- warehousing = JSON.parse(JSON.stringify(this.weighingList))
- // warehousing = this.weighingList
- warehousing.secretaryWeigher = this.deptBudgetList.secretaryWeigher
- warehousing.compId = localStorage.getItem('ws-pf_compId')
- warehousing.inOutFlag = 2
- let _data = JSON.parse(
- localStorage.getItem('winseaview-userInfo')
- )
- warehousing.backOffice = _data.content.showCompName + '-' + _data.content.staffName
- warehousing.grossWeight = this.weighingList.grossWeight
- warehousing.tare = this.weighingList.tare
- warehousing.netWeight = this.weighingList.netWeight
- warehousing.pureWeight = this.weighingList.pureWeight
- warehousing.deductionAmount = this.weighingList.deductionAmount
- warehousing.deductionWeight = this.weighingList.deductionWeight
- warehousing.warehouseInOutDetail = {}
- warehousing.baseId = this.cangid
- delete warehousing.qualityInspectionManagement
- }
- // 毛重
- if (this.tpyeNo == 1) {
- if (this.weighingList.customerNumberCard) {
- if (this.inWarehouseType == 1) { //判断贸易入库提交毛重
- warehousing.grossWeight /= 1000
- warehousing.tare /= 1000
- warehousing.netWeight /= 1000
- warehousing.pureWeight = 1000
- warehousing.deductionAmount *= 1000
- warehousing.deductionWeight /= 1000
- warehousing.statusFlag = 1
- warehousing.inOutFlag = 2
- warehousing.secretaryWeigher = this.deptBudgetList.secretaryWeigher
- warehousing.id = warehousing.warehouseInOutId
- warehousing.warehouseInOutDetail.id = warehousing.inOutDetailId
- warehousing.weighingManagement = this.weighingList
- newSubmit(warehousing)
- .toPromise()
- .then((response) => {
- this.$notify.success({
- title: '成功',
- message: '保存成功',
- })
- this.getList()
- })
- } else { //收购入库
- //毛检保存前进行校验
- var arr = {}
- // if (this.purchasePriceList.length != 0) {
- for (let i = 0; i < this.purchasePriceList.length; i++) {
- if (
- this.weighingList.goodsName ==
- this.purchasePriceList[i].goodsName
- ) {
- arr = JSON.parse(JSON.stringify(this.purchasePriceList[i]))
- arr.saleLimit = this.purchasePriceList[i].saleLimit
- }
- }
- // console.log('1111111',arr)
- if (Object.keys(arr).length != 0) {
- getamount({
- compId: localStorage.getItem('ws-pf_compId'),
- customerNumberCard: this.weighingList.customerNumberCard,
- goodsName: this.weighingList.goodsName,
- })
- .toPromise()
- .then((response) => {
- //累计售粮超上限不能完成毛检保存
- let count = (
- arr.saleLimit -
- response / 1000
- ).toFixed(2)
- if (count - this.weighingList.grossWeight / 1000 < 0) {
- this.$alert(
- '该客户累计销售' +
- this.weighingList.goodsName +
- (response / 1000).toFixed(2) +
- '吨,还可售粮' +
- count +
- '吨',
- '提示', {
- confirmButtonText: '确定',
- // callback: (action) => {
- // this.$message({
- // type: 'info',
- // message: `累计售粮已超出上限`,
- // })
- // },
- })
- }
- //累计售粮没有超上限完成毛检保存
- grossWeight(this.weighingList)
- .toPromise()
- .then((response) => {
- if (this.reader) {
- this.reader.cancel()
- }
- this.$notify.success({
- title: '成功',
- message: '保存成功',
- })
- this.getList()
- })
- })
- return
- }
- else {
- this.$alert(this.weighingList.goodsName + '的收购价格正在审核中,请审核通过后进行操作', {
- confirmButtonText: '确定',
- })
- }
- // }
- // else {
- // this.$message.error('该仓库未设置收购价格或收购价格正在审核中,请审核通过后进行操作')
- // return
- // }
- //累计售粮没有超上限完成毛检保存
- // this.weighingList.relationId = this.relationId;
- // grossWeight(this.weighingList)
- // .toPromise()
- // .then((response) => {
- // if (this.reader) {
- // this.reader.cancel()
- // }
- // this.$notify.success({
- // title: '成功',
- // message: '保存成功',
- // })
- // //贸易入库需要再走入库接口
- // if (this.inWarehouseType == 1) {
- // warehousing.grossWeight /= 1000
- // warehousing.tare /= 1000
- // warehousing.netWeight /= 1000
- // warehousing.pureWeight = 1000
- // warehousing.deductionAmount *= 1000
- // warehousing.deductionWeight /= 1000
- // warehousing.statusFlag = 1
- // warehousing.inOutFlag =2
- // warehousing.id = warehousing.warehouseInOutId
- // warehousing.warehouseInOutDetail.id = warehousing.inOutDetailId
- // addstorageputList(warehousing).toPromise().then((response) => {
- // if (response == 'OK') {
- // this.getList()
- // }
- // })
- // } else {
- // this.getList()
- // }
- // })
- // .catch((response) => {
- // // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
- // })
- }
- } else {
- if (this.inWarehouseType == 1) { //贸易入库
- warehousing.grossWeight /= 1000
- warehousing.tare /= 1000
- warehousing.netWeight /= 1000
- warehousing.pureWeight = 1000
- warehousing.deductionAmount *= 1000
- warehousing.deductionWeight /= 1000
- warehousing.statusFlag = 1
- warehousing.inOutFlag = 2
- delete warehousing.status
- warehousing.id = warehousing.warehouseInOutId
- warehousing.secretaryWeigher = this.deptBudgetList.secretaryWeigher
- warehousing.warehouseInOutDetail.id = warehousing.inOutDetailId
- warehousing.weighingManagement = this.weighingList
- newSubmit(warehousing)
- .toPromise()
- .then((response) => {
- this.$notify.success({
- title: '成功',
- message: '保存成功',
- })
- this.getList()
- })
- } else { //收购入库
- for (let i = 0; i < this.purchasePriceList.length; i++) {
- var arr1 = {}
- if (
- this.weighingList.goodsName ==
- this.purchasePriceList[i].goodsName
- ) {
- arr1 = JSON.parse(JSON.stringify(this.purchasePriceList[i]))
- }
- }
- if (Object.keys(arr1).length != 0) {
- grossWeight(this.weighingList)
- .toPromise()
- .then((response) => {
- if (this.reader) {
- this.reader.cancel()
- }
- this.$notify.success({
- title: '成功',
- message: '保存成功',
- })
- this.getList()
- })
- return
- }
- else {
- this.$alert(this.weighingList.goodsName + '的收购价格正在审核中,请审核通过后进行操作', {
- confirmButtonText: '确定',
- })
- }
- }
- // grossWeight(this.weighingList)
- // .toPromise()
- // .then((response) => {
- // if (this.reader) {
- // this.reader.cancel()
- // }
- // this.$notify.success({
- // title: '成功',
- // message: '保存成功',
- // })
- // //贸易入库需要再走入库接口
- // if (this.inWarehouseType == 1) {
- // warehousing.grossWeight /= 1000
- // warehousing.tare /= 1000
- // warehousing.netWeight /= 1000
- // warehousing.pureWeight = 1000
- // warehousing.deductionAmount *= 1000
- // warehousing.deductionWeight /= 1000
- // warehousing.statusFlag = 1
- // warehousing.inOutFlag = 2
- // delete warehousing.status
- // warehousing.id = warehousing.warehouseInOutId
- // warehousing.warehouseInOutDetail.id = warehousing.inOutDetailId
- // addstorageputList(warehousing).toPromise().then((response) => {
- // if (response == 'OK') {
- // this.getList()
- // }
- // })
- // } else {
- // this.getList()
- // }
- // })
- // .catch((response) => {
- // // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
- // })
- }
- } else if (this.tpyeNo == 2) {
- //皮重
- // //皮重检斤保存
- // let _url1 = process.env.VUE_APP_BASE_API + '/weighingManagement/api/editTare'
- // //查看结算单
- // let _url2 = process.env.VUE_APP_BASE_API + '/warehouseInOutInfo/getInfo'
- // // 入库添加
- // let _url3 = process.env.VUE_APP_BASE_API + '/warehouseInOutInfo/InOutWarehouse'
- // console.log(this.inWarehouseType)
- //贸易入库需要再走入库接口
- if (this.inWarehouseType == 1) {
- //贸易入库皮检
- getsettleaccout({//查看结算单
- id: this.weighingList.warehouseInOutId
- }).toPromise().then((response) => {
- that.inOutData = response
- that.$set(that.inOutData, 'statusFlag', 3)
- that.$set(that.inOutData, 'grossWeight', warehousing.grossWeight / 1000)
- that.$set(that.inOutData, 'tare', warehousing.tare / 1000)
- that.$set(that.inOutData, 'netWeight', warehousing.netWeight / 1000)
- // that.$set(that.inOutData,'pureWeight',warehousing.pureWeight /1000)
- that.$set(that.inOutData, 'deductionAmount', Number(warehousing.deductionAmount) * 1000)
- that.$set(that.inOutData, 'deductionWeight', warehousing.deductionWeight / 1000)
- that.$set(that.inOutData, 'inOutFlag', 2)
- // that.inOutDate = response
- // that.$set(that.inOutDate)
- // .statusFlag = 3
- // that.inOutDate.grossWeight=warehousing.grossWeight /1000
- // that.inOutDate.tare=warehousing.tare /1000
- // that.inOutDate.netWeight=warehousing.netWeight /1000
- // that.inOutDate.pureWeight=warehousing.pureWeight /1000
- // that.inOutDate.deductionAmount= Number(warehousing.deductionAmount) * 1000
- // that.inOutDate.deductionWeight=warehousing.deductionWeight /1000
- // that.inOutDate.inOutFlag = 2
- // warehousing.statusFlag = 3
- // warehousing.grossWeight /= 1000
- // warehousing.tare /= 1000
- // warehousing.netWeight /= 1000
- // warehousing.pureWeight = 1000
- // warehousing.deductionAmount = Number(warehousing.deductionAmount) * 1000
- // warehousing.deductionWeight /= 1000
- // warehousing.inOutFlag = 2
- // console.log(that.weighingList)
- // warehousing.inOutTypeKey = that.weighingList.inOutTypeKey
- // warehousing.inOutType = that.weighingList.inOutType
- // warehousing.deductionAmount = that.weighingList.deductionAmount
- // warehousing.id = warehousing.warehouseInOutId
- // // delete that.inOutDate.status
- // that.inOutDate = Object.assign(that.inOutDate, warehousing)
- that.weighingList.warehouseId = that.cangid;
- that.weighingList.skinInspector = localStorage.getItem('ws-pf_staffName')
- that.inOutData.weighingManagement = that.weighingList
- newSubmit(that.inOutData).toPromise().then((response) => { //检斤新接口
- this.$notify.success({
- title: '成功',
- message: '保存成功',
- })
- this.idPrint = response
-
- if (this.weighingList.serviceManagementType==1&&( this.warehouseName == '鲅鱼圈金信库' ||
- this
- .warehouseName == '洮南向阳乡金昊' || this
- .warehouseName == '白城内陆港' || this
- .warehouseName == '山东园丰库'|| this
- .warehouseName == '杜尔伯特家禾库'||this.warehouseName=='甘南宏旗库'||this.warehouseName=='洮南兴旺库2023.10-2024.9'||this.warehouseName=='洮南新友谊兴旺库'||this.warehouseName=='佳屹农仓储库')) {
- if (this.weighingList.seller && this.weighingList.buyer) {
- let cang = {}
- cang.value = this.weighingList.seller
- cang.label = this.weighingList.seller
- let cang1 = {}
- cang1.value = this.weighingList.buyer
- cang1.label = this.weighingList.buyer
-
- if(this.warehouseName=='佳屹农仓储库'){
- this.customerOptions=[{label:this.weighingList.customer,value:this.weighingList.customer}]
- if (this.check(this.weighingList.buyer, 3)) {
- this.companyNameEWOptions.push(cang1)
- this.companyName=this.weighingList.buyer
- }
-
- }else{
- if (this.check(this.weighingList.buyer, 2)) {
- this.companyNameEWOptions.push(cang1)
- }
- }
- if (this.check(this.weighingList.seller, 1)) {
- this.ewCustomerOptions.push(cang)
- }
-
- }
- }
- if(this.warehouseName=='鲅鱼圈金信库'){
- getbinNumber({id:that.cangid}).toPromise().then((response) => {
- this.binNumberList1=response.warehousePositionInfoList
- this.isShowPrintType = true
- })
- }else{
- this.isShowPrintType = true
- }
-
- this.getList()
- })
- // addstorageputList(that.inOutData).toPromise().then((response) => {
- // this.weighingList.warehouseId = this.cangid;
- // this.weighingList.skinInspector = localStorage.getItem('ws-pf_staffName')
- // tare(this.weighingList)
- // .toPromise()
- // .then((response) => {
- // console.log(1111)
- // // if (this.reader) {
- // // this.reader.cancel()
- // // }
- // this.$notify.success({
- // title: '成功',
- // message: '保存成功',
- // })
- // this.idPrint = response
- // if (this.weighingList.serviceManagementType == 1 && (this.warehouseName == '鲅鱼圈金信库' || this
- // .warehouseName == '洮南向阳乡金昊' || this
- // .warehouseName == '白城内陆港')) {
- // if (this.weighingList.seller && this.weighingList.buyer) {
- // let cang = {}
- // cang.value = this.weighingList.seller
- // cang.label = this.weighingList.seller
- // if (this.check(this.weighingList.seller, 1)) {
- // this.ewCustomerOptions.push(cang)
- // }
- // let cang1 = {}
- // cang1.value = this.weighingList.buyer
- // cang1.label = this.weighingList.buyer
- // if (this.check(this.weighingList.buyer, 2)) {
- // this.companyNameEWOptions.push(cang1)
- // }
- // }
- // }
- // this.isShowPrintType = true
- // this.getList()
- // })
- // .catch((response) => {})
- // })
- })
- } else { //收购入库皮检
- var arr2 = {}
- for (let i = 0; i < this.purchasePriceList.length; i++) {
- if (
- this.weighingList.goodsName ==
- this.purchasePriceList[i].goodsName
- ) {
- arr2 = JSON.parse(JSON.stringify(this.purchasePriceList[i]))
- arr2.saleLimit = this.purchasePriceList[i].saleLimit
- }
- }
- if (Object.keys(arr2).length != 0) {
- getamount({
- compId: localStorage.getItem('ws-pf_compId'),
- customerNumberCard: this.weighingList.customerNumberCard,
- goodsName: this.weighingList.goodsName,
- })
- .toPromise()
- .then((response) => {
- //累计售粮超上限不能完成皮检保存
- let count = (
- arr2.saleLimit - response / 1000
- ).toFixed(2)
- if (count - this.weighingList.netWeight / 1000 < 0) {
- this.$alert(
- '该客户累计销售' +
- this.weighingList.goodsName +
- (response / 1000).toFixed(2) +
- '吨,还可售粮' +
- count +
- '吨,当前重量已超出售粮上限' + ((this.weighingList.netWeight / 1000).toFixed(2) - count).toFixed(2) + '吨',
- '提示',
- {
- confirmButtonText: '确定',
- callback: (action) => {
- this.$message({
- type: 'info',
- message: `累计售粮已超出上限`,
- })
- },
- })
- }
- else {
- //累计售粮没有超上限完成皮检保存
- tare(this.weighingList)
- .toPromise()
- .then((response) => {
- // if (this.reader) {
- // this.reader.cancel()
- // }
- this.$notify.success({
- title: '成功',
- message: '保存成功',
- })
- this.idPrint = response
- this.serviceManagementType=this.weighingList.serviceManagementType
- if(this.weighingList.serviceManagementType == 3){
- this.customerOptions=[{label:this.weighingList.customer,value:this.weighingList.customer}]
- this.customerOptions.push({label:this.weighingList.seller,value:this.weighingList.seller})
- this.customer=this.weighingList.customer
- }
- if (this.weighingList.serviceManagementType == 1 && (this.warehouseName == '鲅鱼圈金信库' || this
- .warehouseName == '洮南向阳乡金昊' || this
- .warehouseName == '白城内陆港' || this
- .warehouseName == '山东园丰库' || this
- .warehouseName == '杜尔伯特家禾库' || this.warehouseName == '甘南宏旗库' ||this.warehouseName == '洮南兴旺库2023.10-2024.9' || this.warehouseName == '洮南新友谊兴旺库'||this.warehouseName=='佳屹农仓储库')) {
- if (this.weighingList.seller && this.weighingList.buyer) {
- let cang = {}
- cang.value = this.weighingList.seller
- cang.label = this.weighingList.seller
- // if (this.check(this.weighingList.seller, 1)) {
- // this.ewCustomerOptions.push(cang)
- // }
- if(this.warehouseName=='佳屹农仓储库'){
- if (this.check(this.weighingList.seller, 3)) {
- this.companyNameOptions.push(cang)
- this.companyName=this.weighingList.seller
- }
- }else{
- if (this.check(this.weighingList.seller, 1)) {
- this.ewCustomerOptions.push(cang)
- }
- }
- let cang1 = {}
- cang1.value = this.weighingList.buyer
- cang1.label = this.weighingList.buyer
- if (this.check(this.weighingList.buyer, 2)) {
- this.companyNameEWOptions.push(cang1)
- }
- }
- }
- this.isShowPrintType = true
- this.getList()
- })
- .catch((response) => { })
- }
- })
- return
- }
- }
- }
- })
- .catch(() => {
- return false
- })
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- /deep/.el-pagination {
- margin-bottom: 0;
- }
- .stocks {
- position: relative;
- /deep/.el-select {
- width: 30.33%;
- }
- /deep/.el-select>.el-input {
- display: inline-block;
- }
- /deep/>.el-input {
- width: 29.3333%;
- }
- .add,
- .del {
- position: absolute;
- right: 16px;
- transform: translateY(20%);
- width: 20px;
- height: 20px;
- }
- .del {
- right: -7px;
- }
- }
- .center {
- background: #E8ECF6;
- }
- .ws-info-table {
- border: none;
- // height: 610px;
- margin-top: 30px;
- }
- .ws-info-table .el-form-item {
- width: 100%;
- border: none;
- }
- .formItem {
- width: 100%;
- display: inline;
- }
- /deep/.ws-info-table .el-form-item .el-form-item__label {
- width: 25%;
- text-align: center;
- background: #ffffff;
- font-size: 14px;
- color: #8890b1;
- }
- /deep/.ws-info-table .el-form-item .el-form-item__content {
- border: none;
- }
- .title {
- font-size: 16px;
- font-weight: 600;
- margin: 10px;
- }
- .substance {
- padding-bottom: 20px;
- overflow-x: scroll;
- .active {
- background: #5878e8;
- color: white;
- }
- // background: #ffffff;
- width: 100%;
- height: calc(100vh - 125px);
- border-radius: 4px;
- margin: 0 auto;
- display: flex;
- .left {
- width: 30%;
- min-width: 560px;
- position: relative;
- // padding:0 20px 20px 20px;
- .top {
- background: black;
- font-size: 32px;
- text-align: right;
- padding: 0 10px 0 20px;
- border-radius: 10px;
- margin: 0 20px 20px 20px;
- position: absolute;
- top: 130px;
- width: 91%;
- .zujian {
- position: relative;
- }
- .kg-style {
- font-size: 30px;
- color: red;
- }
- .confirmInfo {
- display: flex;
- color: #2aff7c;
- .car-type {
- text-align: left;
- width: 50%;
- }
- .car-no {
- width: 50%;
- text-align: right;
- }
- }
- .confirmWeight {
- display: flex;
- .titleWeight {
- width: 35%;
- text-align: left;
- line-height: 90px;
- color: red;
- }
- .weight {
- width: 65%;
- text-align: right;
- color: red;
- }
- }
- }
- .bottom {
- // text-align: center;
- background: white;
- margin: 20px 20px 0 20px;
- border-radius: 10px;
- padding-bottom: 20px;
- .img1,
- .img2 {
- width: 200px;
- padding: 20px;
- }
- .video-content {
- width: 100%;
- }
- .video1 {
- text-align: center;
- }
- }
- }
- .right {
- width: 70%;
- // padding: 20px;
- height: 750px;
- border-radius: 10px;
- .tab {
- display: flex;
- margin-bottom: 5px;
- .tab-item {
- padding: 5px 10px;
- margin-right: 20px;
- border-radius: 10px;
- }
- .in_css,
- .in_cssno,
- .in_cssno1,
- .in_css1 {
- width: 80px;
- height: 32px;
- padding: 3px 10px;
- border-radius: 4px;
- margin-right: 10px;
- font-size: 15px;
- line-height: 28px;
- text-align: center;
- font-weight: 600;
- }
- .in_css:hover,
- .in_cssno:hover,
- .in_cssno1:hover,
- .in_css1:hover {
- cursor: pointer;
- }
- .in_css {
- color: #5878E8;
- background: #F0F6FF;
- }
- .in_css1 {
- color: #5878E8;
- }
- .in_cssno1 {
- color: #8890B1;
- }
- /deep/.el-badge__content.is-fixed {
- top: 3px;
- right: 26px;
- }
- }
- .weigh_btn {
- height: 35px;
- border-bottom: 1px solid #D8DCE6;
- }
- .table-title {
- background: red;
- .top {
- display: inline-block;
- width: 48%;
- .top-item {
- display: inline-block;
- }
- }
- }
- .table {
- background: red;
- .table-content {
- background: green;
- display: inline-block;
- width: 50%;
- .table-content-item {
- display: inline-block;
- }
- }
- }
- }
- }
- /deep/.el-table .el-table__header .cell,
- /deep/.el-table .el-table__body .cell {
- text-align: center;
- font-size: 16px;
- // background: #f6f7fc;
- }
- // /deep/.el-table td {
- // background: #e7e8ef;
- // }
- /deep/.el-table--enable-row-transition .el-table__body td {
- text-align: center;
- }
- .bg-left {
- height: 60px;
- background: #F6F7FC;
- // padding-left: 30px;
- line-height: 60px;
- }
- .titleup {
- position: relative;
- }
- .titleup::before {
- content: '';
- display: inline-block;
- width: 5px;
- height: 30px;
- background: #5473e8;
- position: absolute;
- left: 0;
- top: 14px;
- }
- .butCss {
- // opacity: 0;
- margin-left: 20px;
- color: #5473E8;
- background: #ffffff;
- }
- /deep/.el-dialog__title {
- font-size: 24px !important;
- }
- /deep/.el-dialog__header {
- text-align: center !important;
- padding: 10px 0 !important;
- height: auto !important;
- }
- .weight {
- font-size: 68px;
- }
- .right-content {
- display: flex;
- height: calc(100vh - 25vh);
- .left1 {
- position: relative;
- background: #ffffff;
- // padding: 10px;
- border-radius: 4px;
- min-width: 355px;
- width: 40%;
- min-height: 760px;
- .but {
- position: absolute;
- left: 0;
- right: 0;
- margin: auto;
- justify-content: flex-end;
- display: flex;
- margin-right: 17px;
- bottom: 20px;
- }
- .weightInfo {
- padding: 10px;
- }
- /deep/.el-input.is-disabled .el-input__inner {
- background: #F5F7FA !important;
- border: none;
- }
- }
- .titlesign::before {
- content: '';
- display: inline-block;
- width: 5px;
- height: 30px;
- background: #5473e8;
- position: absolute;
- left: 0;
- top: 14px;
- }
- .weightTitle {
- width: 100%;
- height: 60px;
- background: #F6F7FC;
- margin-bottom: 6px;
- border-radius: 4px;
- line-height: 60px;
- }
- .left {
- width: 40%;
- }
- .right {
- width: 60%;
- }
- }
- .car-right {
- width: 60%;
- background: #ffffff;
- padding: 10px;
- margin-left: 20px;
- border-radius: 4px;
- min-height: 760px;
- }
- .screen {
- margin-bottom: 10px;
- width: 100%;
- display: flex;
- .screen_left {
- min-width: 215px;
- width: 30%;
- display: flex;
- .select_css,
- .noselect_css {
- width: 76px;
- height: 32px;
- padding: 3px 10px;
- border-radius: 4px;
- margin-right: 10px;
- font-size: 14px;
- line-height: 28px;
- text-align: center;
- }
- .select_css:hover,
- .noselect_css:hover {
- cursor: pointer;
- }
- .select_css {
- color: #5878E8;
- background: #F0F6FF;
- }
- }
- .screen_right {
- width: 70%;
- justify-content: flex-end;
- display: flex;
- margin-right: 30px;
- .jilu {
- color: #5878E8;
- }
- .jilu:hover {
- cursor: pointer;
- }
- }
- /deep/.el-select {
- width: 50%;
- }
- }
- .frame {
- border-bottom: 1px solid #D8DCE6;
- height: 40px;
- }
- .word_css {
- margin-left: 15px;
- font-size: 18px;
- font-weight: 600;
- text-align: left;
- }
- .mask {
- background: black;
- width: 100vw;
- height: 100vh;
- position: fixed;
- top: 0;
- z-index: 99;
- opacity: 0.3;
- }
- .print-type-title {
- text-align: center;
- font-size: 18px;
- margin: 20px;
- }
- .bottom-btn {
- display: flex;
- margin-top: 20px;
- justify-content: space-around;
- }
- .print-type-checkbox {
- // padding-left: 20px;
- }
- .print-type {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- margin: auto;
- width: 440px;
- height: 446px;
- background: white;
- border-radius: 10px;
- z-index: 999;
- }
- /deep/.el-radio-group {
- width: 100%;
- display: flex;
- }
- /deep/.el-radio__label {
- font-size: 20px;
- }
- /deep/.el-radio__inner {
- // background: red;
- height: 20px;
- width: 20px;
- }
- .label-width {
- width: 100%;
- text-align: center;
- font-size: 20px;
- }
- .show-excel {
- opacity: 0;
- }
- /deep/.base_header_layout .find.el-button--primary {
- width: 30px;
- border-top-left-radius: 0px;
- border-bottom-left-radius: 0px;
- }
- /deep/.base_header_layout .findinput input {
- border-top-right-radius: 0px;
- border-bottom-right-radius: 0px;
- }
- .ew-print {
- padding: 0 20px;
- margin-top: 10px;
- // display: flex;
- // justify-content: space-between;
- // align-content: center;
- .row {
- display: flex;
- margin-top: 10px;
- align-items: center;
- }
- }
- .sh-address {
- display: flex;
- }
- .print-type-ew {
- display: flex;
- justify-content: space-between;
- padding: 0 20px;
- /deep/.el-radio__label {
- font-size: 14px;
- }
- margin-top: 10px;
- }
- /deep/.el-table .cell {
- text-align: center;
- }
- .shdw-style {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 20px;
- margin-top: 20px;
- }
- /deep/.el-table__body .current-row td {
- border-top: 4px solid #2aff7c;
- border-bottom: 4px solid #2aff7c;
- }
- /deep/.el-table__body .current-row td:first-child {
- border-left: 4px solid #2aff7c;
- // border-bottom: 1px solid #2aff7c ;
- }
- /deep/.el-table__body .current-row td:last-child {
- border-right: 4px solid #2aff7c;
- // border-bottom: 1px solid #2aff7c ;
- }
- .canvas {
- width: 300px;
- height: 300px
- }
- </style>
|