newWeighingManagement.vue 112 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089
  1. //检斤管理
  2. <template>
  3. <div class="center">
  4. <div class="substance">
  5. <div class="left">
  6. <BalanceAlert v-if="isShowBalance" ref="weightChild" :deptBudgetList="deptBudgetList" :information="information"
  7. v-on:balanceListen="setVal" class="zujian">
  8. </BalanceAlert>
  9. <div class="top">
  10. <div class="confirmWeight">
  11. <div class="titleWeight">确认重量</div>
  12. <div v-if="index == 0" class="weight">
  13. {{ weighingList.grossWeight }} <span class="kg-style">kg</span>
  14. </div>
  15. <div v-else class="weight">
  16. {{ weighingList.tare }} <span class="kg-style">kg</span>
  17. </div>
  18. </div>
  19. <div class="confirmInfo">
  20. <div class="car-type">车牌号</div>
  21. <div class="car-no">{{ carWeightInfo.carNumber }}</div>
  22. </div>
  23. </div>
  24. <div class="bottom">
  25. <div class="bg-left titleup"><span class="word_css">实时监控</span></div>
  26. <!-- <div class="videoImg">
  27. <div class="videoImg-row">
  28. <video id="videoElement" autoplay muted width="50%"></video>
  29. <video id="videoElement1" autoplay muted width="50%"></video>
  30. </div>
  31. <div class="videoImg-row">
  32. <div class="carnumber-style">
  33. <el-button @click='positionPlace(1)' type="primary" class="btn">定位车辆</el-button>
  34. <div class="number">车牌号1:{{ $store.state.user.carNumber1 }}</div>
  35. </div>
  36. <div class="carnumber-style">
  37. <el-button @click='positionPlace(2)' type="primary" class="btn">定位车辆</el-button>
  38. <div class="number">车牌号2:{{ $store.state.user.carNumber2 }}</div>
  39. </div>
  40. </div>
  41. </div> -->
  42. <div v-if="!monitorUrl1" class="video1">
  43. <img src="../../../public/img/quesheng@2x.png" alt="" class="img1" />
  44. <div>监控视频未连接</div>
  45. </div>
  46. <div v-else class="video1">
  47. <iframe :src="monitorUrl1" width="440" height="360" allowfullscreen="true" webkitallowfullscreen="true"
  48. mozallowfullscreen="true" allow="autoplay; fullscreen; microphone;"></iframe>
  49. </div>
  50. <div v-if="!monitorUrl2" class="video1">
  51. <img src="../../../public/img/quesheng@2x.png" alt="" class="img1" />
  52. <div>监控视频未连接</div>
  53. </div>
  54. <div v-else class="video2">
  55. <iframe :src="monitorUrl2" width="440" height="360" allowfullscreen="true" webkitallowfullscreen="true"
  56. mozallowfullscreen="true" allow="autoplay; fullscreen; microphone;"></iframe>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="right">
  61. <ws-form class="right-content">
  62. <div class="left1">
  63. <div class="titlesign weightTitle">
  64. <span class="word_css">检斤信息</span>
  65. </div>
  66. <div class="weightInfo">
  67. <div class="tab">
  68. <div :class="inWarehouseType == 1 ? 'in_css' : 'in_cssno'" @click="WarehousingType(1)">贸易入库</div>
  69. <div :class="inWarehouseType == 3 ? 'in_css' : 'in_cssno'" @click="WarehousingType(3)">收购入库</div>
  70. </div>
  71. <div class="tab weigh_btn">
  72. <el-badge :value="mListTop.length" class="badge_item">
  73. <div :class="tpyeNo == 1 ? 'in_css1' : 'in_cssno1'" @click="tabClick(0)">称毛重</div>
  74. </el-badge>
  75. <el-badge :value="pListTop.length" class="badge_item">
  76. <div :class="tpyeNo == 2 ? 'in_css1' : 'in_cssno1'" @click="tabClick(1)">称皮重</div>
  77. </el-badge>
  78. </div>
  79. <ws-info-table>
  80. <ws-form-item label="业务编号" span="1" prop="number">
  81. <ws-input v-model="weighingList.number" placeholder="自动获取,不可编辑" maxlength="100" disabled
  82. size="small" />
  83. </ws-form-item>
  84. <ws-form-item label="合同编号" span="1" prop="contractNo" v-show="inWarehouseType == 1"
  85. v-if="weighingList.contractNo">
  86. <ws-input v-model="weighingList.contractNo" placeholder="自动获取,不可编辑" maxlength="100" disabled
  87. size="small" />
  88. </ws-form-item>
  89. <ws-form-item label="移库编号" span="1" prop="moveTaskNo" v-show="inWarehouseType == 1" v-else>
  90. <ws-input v-model="weighingList.moveTaskNo" placeholder="自动获取,不可编辑" maxlength="100" size="small"
  91. disabled />
  92. </ws-form-item>
  93. <ws-form-item label="已完成量(吨)" span="1" prop="tips">
  94. <ws-input v-model="weighingList.donecount" placeholder="自动获取,不可编辑" maxlength="100" disabled
  95. size="small" />
  96. <!-- {{}} -->
  97. </ws-form-item>
  98. <ws-form-item label="客户" span="1" prop="customer" v-if="inWarehouseType == 3">
  99. <ws-input v-model="weighingList.customer" placeholder="自动获取,不可编辑" maxlength="100" disabled
  100. size="small" />
  101. </ws-form-item>
  102. <ws-form-item label="货名" span="1" prop="goodsName">
  103. <ws-input v-model="weighingList.goodsName" placeholder="自动获取,不可编辑" maxlength="100" disabled
  104. size="small" />
  105. </ws-form-item>
  106. <ws-form-item label="车牌号" span="1" prop="carNumber">
  107. <ws-input v-model="weighingList.carNumber" v-if="inWarehouseType==1" placeholder="自动获取,不可编辑" maxlength="100" size="small"
  108. disabled />
  109. <ws-input v-model="weighingList.carNumber" v-else placeholder="自动获取,不可编辑" maxlength="100" size="small" />
  110. </ws-form-item>
  111. <ws-form-item label="运输方式" span="1" prop="outType" v-if="inWarehouseType == 1">
  112. <ws-input v-model="weighingList.outType" placeholder="自动获取,不可编辑" maxlength="100" size="small"
  113. disabled />
  114. </ws-form-item>
  115. <ws-form-item label="箱号-1" span="1" prop="boxNo">
  116. <ws-input v-model="weighingList.boxNo" placeholder="自动获取,不可编辑" maxlength="20" size="small" disabled />
  117. </ws-form-item>
  118. <ws-form-item label="封号-1" span="1" prop="titleNo">
  119. <ws-input v-model="weighingList.titleNo" placeholder="自动获取,不可编辑" maxlength="20" size="small"
  120. disabled />
  121. </ws-form-item>
  122. <ws-form-item label="箱号-2" span="1" prop="boxNoOther">
  123. <ws-input v-model="weighingList.boxNoOther" placeholder="自动获取,不可编辑" maxlength="20" size="small"
  124. disabled />
  125. </ws-form-item>
  126. <ws-form-item label="封号-2" span="1" prop="titleNoOther">
  127. <ws-input v-model="weighingList.titleNoOther" placeholder="自动获取,不可编辑" maxlength="20" size="small"
  128. disabled />
  129. </ws-form-item>
  130. <ws-form-item label="毛重(KG)" span="1" prop="grossWeight">
  131. <ws-input type="number" @mousewheel.native.prevent v-if="index == 0"
  132. v-model="weighingList.grossWeight" @input="calculation(status)" placeholder="未获取到毛重" maxlength="100"
  133. size="small" :disabled="disabled" />
  134. <ws-input type="number" @mousewheel.native.prevent v-else v-model="weighingList.grossWeight"
  135. @input="calculation" placeholder="未获取到毛重" maxlength="100" size="small" disabled />
  136. <el-button class="butCss" @click="openPort" v-if="index == 0">重新获取</el-button>
  137. </ws-form-item>
  138. <ws-form-item label="皮重(KG)" span="1" prop="tare" v-if="information == '皮重'">
  139. <ws-input type="number" @mousewheel.native.prevent v-model="weighingList.tare" @input="calculation"
  140. placeholder="未获取到皮重" maxlength="100" size="small" :disabled="disabled" />
  141. <el-button class="butCss" v-if="index != 0" @click="openPort">重新获取</el-button>
  142. </ws-form-item>
  143. <div class="formItem">
  144. <ws-form-item label="扣重(KG)" span="1" prop="buckleMiscellaneous"
  145. v-if="information == '皮重' && (paramType == '2' || inWarehouseType == 1)">
  146. <ws-input type="number" @mousewheel.native.prevent v-model="weighingList.buckleMiscellaneous"
  147. @input="calculation" placeholder="请输入扣重" maxlength="100" size="small" />
  148. </ws-form-item>
  149. <ws-form-item label="净重(KG)" span="1" prop="netWeight" v-if="information == '皮重'">
  150. <ws-input type="number" @mousewheel.native.prevent v-model="weighingList.netWeight"
  151. placeholder="自动计算,不可编辑" maxlength="100" size="small" disabled />
  152. </ws-form-item>
  153. <!-- <ws-form-item label="应收卸车过磅费(元)" span="1" prop="receivableWeighingFee" v-if="index == 1">
  154. <ws-input type="number" v-model="weighingList.receivableWeighingFee" placeholder="未获取到卸车过磅费金额"
  155. maxlength="100" size="small" disabled />
  156. </ws-form-item>
  157. <ws-form-item label="实收卸车过磅费(元)" span="1" prop="actualWeighingFee" v-if="index == 1">
  158. <ws-input type="number" v-model="weighingList.actualWeighingFee" placeholder="输入卸车过磅费" maxlength="100"
  159. size="small" />
  160. </ws-form-item> -->
  161. </div>
  162. </ws-info-table>
  163. <div class="but">
  164. <!-- <el-button @click="print" type="primary" :disabled="submitAllow">提交</el-button> -->
  165. <el-button @click="print" v-if="information == '毛重'" type="primary">保存</el-button>
  166. <el-button @click="print(1)" v-if="information == '皮重'" type="primary">保存并打印
  167. </el-button>
  168. </div>
  169. <!-- <div>
  170. <div>粮源</div>
  171. <div class='stocks' v-for='(item,index) in stocks'>
  172. <el-select v-model="item.warehouseName" filterable placeholder="选择所属仓库" @change="warehouseNameChange" :value="searchType">
  173. <el-option v-for="item in warehouseList" :key="item.value" :label="item.value" :value="item.value"
  174. style="color: #8890b1" />
  175. </el-select>
  176. <ws-input v-model="item.cost" placeholder="输入重量" maxlength="100"
  177. size="small" />
  178. <ws-input v-model="item.cost" placeholder="输入成本" maxlength="100"
  179. size="small" />
  180. <img class='add' @click='addstocks(index)' src="../../../public/img/add.png" alt="">
  181. <img class='del' @click='delstocks(index)' src="../../../public/img/del.png" alt="">
  182. </div>
  183. </div> -->
  184. </div>
  185. </div>
  186. <div class="car-right">
  187. <div class="screen">
  188. <el-select v-model="warehouseName" placeholder="请选择仓库名" @change="warehouseNameChange">
  189. <el-option v-for="item in warehouseList" :key="item.id" :label="item.warehouseName"
  190. :value="item.warehouseName">
  191. </el-option>
  192. </el-select>
  193. <el-button @click='refreshClick(1)' type="primary">刷新</el-button>
  194. <el-button @click='refreshClick' type="primary">{{ timer ? refresh : '自动刷新' }}</el-button>
  195. <!-- <el-checkbox v-model="checked">默认</el-checkbox> -->
  196. </div>
  197. <div class="screen frame">
  198. <div class="screen_left">
  199. <div @click="cutstatus(1)" :class="status == 1 ? 'select_css' : 'noselect_css'"
  200. v-if="!(inWarehouseType == 1 && tpyeNo == 2)">未称{{ information }}</div>
  201. <!-- <div @click="cutstatus(2)" :class="status==2?'select_css':'noselect_css'"
  202. v-if="!(inWarehouseType == 1 && tpyeNo == 2)">已称{{information}}</div> -->
  203. </div>
  204. <div class="screen_right">
  205. <div @click="record" v-hasPermission="`acquisitionManagement.acquisitionWeight.view`" class="jilu">记录
  206. </div>
  207. </div>
  208. </div>
  209. <el-table ref="singleTable" :data="carList" highlight-current-row @current-change="handleCurrentChange"
  210. current-row-key="id"
  211. style="width: 100%; overflow-y: scroll !important;; height: calc(100vh - 54vh);margin-top:20px">
  212. <el-table-column property="number" label="业务编号">
  213. </el-table-column>
  214. <el-table-column property="carNumber" label="车牌号">
  215. </el-table-column>
  216. <el-table-column property="status" label="状态">
  217. </el-table-column>
  218. </el-table>
  219. <div style="text-align: center">
  220. <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
  221. :current-page="currentPage" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper"
  222. :total="deptBudgetTotal">
  223. </el-pagination>
  224. </div>
  225. <!-- <div class="table-title">
  226. <div class="top">
  227. <div class="top-item first"></div>
  228. <div class="top-item">编号</div>
  229. <div class="top-item">车牌号</div>
  230. </div>
  231. <div class="top">
  232. <div></div>
  233. <div class="top-item"></div>
  234. <div class="top-item">编号</div>
  235. <div class="top-item">车牌号</div>
  236. </div>
  237. </div>
  238. <div class="table">
  239. <div class="table-content" v-for="(item,index) in 30" :key="index">
  240. <div class="table-content-item"><input type="radio"></div>
  241. <div class="table-content-item">xxxxxxxxxxxxx</div>
  242. <div class="table-content-item">辽A11111</div>
  243. </div>
  244. </div> -->
  245. </div>
  246. </ws-form>
  247. </div>
  248. </div>
  249. <el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint" title="粮食检斤单" @opened="opendBtn"
  250. @close="closeDialog" :close-on-click-modal="false">
  251. <weightCheckPrint :tableData="inspect" ref="saveImg"></weightCheckPrint>
  252. <div style="text-align: center">
  253. <el-button type="primary" @click="closePrint">关闭</el-button>
  254. <el-button type="primary" @click="printSmall">打印小票</el-button>
  255. <el-button type="primary" @click="printBig">打印单据</el-button>
  256. </div>
  257. </el-dialog>
  258. <div class="mask" v-show="isShowPrintType"></div>
  259. <div class="print-type" v-show="isShowPrintType">
  260. <div class="print-type-content">
  261. <div class="print-type-title">请选择打印类型</div>
  262. <div class="print-type-checkbox">
  263. <!-- <el-radio-group v-model="radio">
  264. <el-radio label="A4" class="label-width" @change="selectType">A4</el-radio>
  265. <el-radio label="A5" class="label-width" @change="selectType">A5</el-radio>
  266. </el-radio-group> -->
  267. </div>
  268. <div class="shdw-style" v-if="checked || (!ddchecked && !checked)">
  269. <div>收货单位:</div>
  270. <!-- <div>{{companyName}}</div> -->
  271. <el-select v-model="companyName" placeholder="请选择" style="width: 75%;">
  272. <el-option v-for="item in companyNameOptions" :key="item.value" :label="item.label" :value="item.value">
  273. </el-option>
  274. </el-select>
  275. </div>
  276. <div class="shdw-style" v-if="checked && serviceManagementType==3 || (!ddchecked && !checked && serviceManagementType==3)">
  277. <div>发货单位:</div>
  278. <!-- <div>{{companyName}}</div> -->
  279. <el-select v-model="customer" placeholder="请选择" style="width: 75%;">
  280. <el-option v-for="item in customerOptions" :key="item.value" :label="item.label" :value="item.value">
  281. </el-option>
  282. </el-select>
  283. </div>
  284. <div v-if="warehouseName=='鲅鱼圈金信库'||warehouseName=='白城内陆港'||warehouseName=='杜尔伯特家禾库'||warehouseName=='甘南宏旗库'||warehouseName=='洮南兴旺库2023.10-2024.9'||warehouseName=='洮南新友谊兴旺库'||warehouseName=='洮南向阳乡金昊'||warehouseName=='山东园丰库'">
  285. <div class="print-type-ew">
  286. <el-checkbox v-model="checked" @change="changeEw">打印额外票据</el-checkbox>
  287. <el-checkbox v-model="ddchecked" @change="changeEwDD">单独打印额外票据</el-checkbox>
  288. </div>
  289. <div class="ew-print" v-if="printSeparately">
  290. <div class="row">
  291. <div>额外客户姓名:</div>
  292. <!-- <div>{{companyName}}</div> -->
  293. <el-select v-model="ewCustomer" placeholder="请选择" style="width: 75%;">
  294. <el-option v-for="item in ewCustomerOptions" :key="item.value" :label="item.label" :value="item.value">
  295. </el-option>
  296. </el-select>
  297. </div>
  298. <div class="row">
  299. <div>额外收货单位:</div>
  300. <!-- <div>{{companyNameEW}}</div> -->
  301. <el-select v-model="companyNameEW" placeholder="请选择" style="width: 75%;">
  302. <el-option v-for="item in companyNameEWOptions" :key="item.value" :label="item.label"
  303. :value="item.value">
  304. </el-option>
  305. </el-select>
  306. </div>
  307. </div>
  308. </div>
  309. <div v-if="warehouseName=='鲅鱼圈金信库'">
  310. <div class="print-type-ew">
  311. <el-checkbox v-model="outchecked" @change="changeOut">是否打印出库</el-checkbox>
  312. </div>
  313. <div class="ew-print" v-if="printout">
  314. <div class="row">
  315. <div>出库发货单位:</div>
  316. <!-- <div>{{companyName}}</div> -->
  317. <el-select v-model="inshipments" placeholder="请选择" style="width: 75%;">
  318. <el-option v-for="item in ewCustomerOptions" :key="item.value" :label="item.label" :value="item.value">
  319. </el-option>
  320. </el-select>
  321. </div>
  322. <div class="row">
  323. <div>出库收货单位:</div>
  324. <!-- <div>{{companyNameEW}}</div> -->
  325. <el-select v-model="outshipments" placeholder="请选择" style="width: 75%;">
  326. <el-option v-for="item in companyNameEWOptions" :key="item.value" :label="item.label"
  327. :value="item.value">
  328. </el-option>
  329. </el-select>
  330. </div>
  331. <div class="row">
  332. <div>出库仓位号:</div>
  333. <!-- <div>{{companyNameEW}}</div> -->
  334. <el-select v-model="outbinNumber" placeholder="请选择仓位号" style="width: 75%;">
  335. <el-option v-for="item in binNumberList1" :key="item.id" :label="item.binNumber"
  336. :value="item.binNumber">
  337. </el-option>
  338. </el-select>
  339. </div>
  340. </div>
  341. </div>
  342. </div>
  343. <div class="bottom-btn">
  344. <el-button @click="typePrintClick">确定</el-button>
  345. <el-button @click="typePrintCannelClick">取消</el-button>
  346. </div>
  347. </div>
  348. </div>
  349. </template>
  350. <script>
  351. import flvjs from 'flv.js';
  352. import {
  353. tare,
  354. grossWeight,
  355. getamount,
  356. getPrint,
  357. getweighingList,
  358. getinspectLookGoods,
  359. selectWarehouseSelf,
  360. getsettleaccout,
  361. newSubmit,
  362. getbinNumber,
  363. getToken,
  364. getRom,
  365. } from '@/model/houseSelfCollect/index'
  366. import {
  367. addstorageputList
  368. } from '@/model/warehouse/index'
  369. import {
  370. getcomp
  371. } from '@/model/indexRx'
  372. import weightCheckPrint from './component/weightCheckPrint.vue'
  373. import BalanceAlert from '@/components/balanceAlert'
  374. import html2canvas from 'html2canvas'
  375. import axios from 'axios'
  376. import configText from '../../../vue.config.js'
  377. export default {
  378. components: {
  379. weightCheckPrint,
  380. BalanceAlert,
  381. },
  382. watch: {
  383. '$route'(to, from) {
  384. if (to.name == 'newWeighingManagement') {
  385. this.isShowBalance = true
  386. var _saomaData = JSON.parse(localStorage.getItem('saoma_data')) //判断是否扫码进来的
  387. // }
  388. //仓库
  389. selectWarehouseSelf({
  390. compId: localStorage.getItem('ws-pf_compId'),
  391. })
  392. .toPromise()
  393. .then((response) => {
  394. this.warehouseList = response
  395. if (_saomaData) { //缓存中有值,证明扫码进来的
  396. this.warehouseName = _saomaData.warehouseName
  397. this.cangid = _saomaData.cangid
  398. this.monitorUrl1 = _saomaData.monitorUrl1
  399. this.monitorUrl2 = _saomaData.monitorUrl2
  400. this.allowEdit = _saomaData.allowEdit
  401. this.id = _saomaData.id
  402. this.tpyeNo = _saomaData.typeNo
  403. this.number = _saomaData.number
  404. if (_saomaData.managementType) {
  405. this.inWarehouseType = _saomaData.managementType
  406. }
  407. } else if (localStorage.getItem('houseSelfCollect_house1')) {
  408. this.warehouseName = JSON.parse(localStorage.getItem('houseSelfCollect_house1')).value
  409. for (var i = 0; i < response.length; i++) {
  410. if (this.warehouseName == this.warehouseList[i].warehouseName) {
  411. this.cangid = this.warehouseList[i].id
  412. this.monitorUrl1 = this.warehouseList[i].monitorUrl1
  413. this.monitorUrl2 = this.warehouseList[i].monitorUrl2
  414. this.allowEdit = this.warehouseList[i].allowEdit
  415. break
  416. }
  417. }
  418. } else {
  419. localStorage.setItem('houseSelfCollect_house1', JSON.stringify({
  420. value: this.warehouseList[0].warehouseName,
  421. warehouseId: this.warehouseList[0].id,
  422. count: this.warehouseList[0].count,
  423. No: this.warehouseList[0].commonWarehouseNo,
  424. allowEdit: this.warehouseList[0].allowEdit,
  425. compId: localStorage.getItem('ws-pf_compId'),
  426. ip1: this.warehouseList[0].shexiang1,
  427. ip2: this.warehouseList[0].shexiang2
  428. }))
  429. this.warehouseName = this.warehouseList[0].warehouseName
  430. localStorage.setItem('ck', this.warehouseName)
  431. this.cangid = this.warehouseList[0].id
  432. this.allowEdit = this.warehouseList[0].allowEdit
  433. this.monitorUrl1 = this.warehouseList[0].monitorUrl1
  434. this.monitorUrl2 = this.warehouseList[0].monitorUrl2
  435. }
  436. this.deptBudgetList.warehouseName = this.warehouseName
  437. if (this.allowEdit == 0) {
  438. this.disabled = true
  439. } else if (this.allowEdit == 1) {
  440. this.disabled = false
  441. }
  442. if (this.tpyeNo == 1) {
  443. this.information = '毛重'
  444. this.weighingList.tare = 0
  445. } else if (this.tpyeNo == 2) {
  446. this.information = '皮重'
  447. }
  448. this.getList()
  449. })
  450. }
  451. },
  452. weighingList: {
  453. //深度监听,可监听到对象、数组的变化
  454. handler(val, oldVal) {
  455. if (val.tare) {
  456. if (this.weighingList.buckleMiscellaneous) {
  457. this.weighingList.netWeight =
  458. this.weighingList.grossWeight -
  459. val.tare -
  460. this.weighingList.buckleMiscellaneous
  461. } else {
  462. this.weighingList.netWeight =
  463. this.weighingList.grossWeight - val.tare
  464. }
  465. }
  466. },
  467. deep: true, //true 深度监听
  468. }
  469. },
  470. data() {
  471. return {
  472. player: null,
  473. ip1: '',
  474. ip2: '',
  475. rom1: '',
  476. rom2: '',
  477. timer: '',
  478. refresh: 60,
  479. isShowBalance: false,
  480. currentPage: 1,
  481. pageSize: 50,
  482. outbinNumber:'',
  483. binNumberList1:[],
  484. deptCircularPage: {},
  485. deptBudgetTotal: 0,
  486. pList: [],
  487. mList: [],
  488. serviceManagementType:1,
  489. index: 0,
  490. status: 1,
  491. carList: [],
  492. carListCopy: [],
  493. customerOptions:[],
  494. carWeightInfo: {
  495. carNumber: '',
  496. type: '',
  497. weight: '',
  498. },
  499. outchecked:false,
  500. printout:false,
  501. currentRow: null,
  502. inspect: {},
  503. types: 1,
  504. information: '',
  505. weighingList: {
  506. grossWeight: '',
  507. tare: '',
  508. buckleMiscellaneous: 0,
  509. netWeight: 0,
  510. receivableWeighingFee: '',
  511. qualityInspectionManagement: {
  512. boxNo: '暂无',
  513. boxNoOther: '暂无',
  514. titleNo: '暂无',
  515. titleNoOther: '暂无',
  516. }
  517. },
  518. deptBudgetList: {},
  519. tpyeNo: '1',
  520. disabled: true,
  521. relationId: '',
  522. warehouseId: '',
  523. purchasePriceList: [],
  524. isShowPrint: false,
  525. tableData: {},
  526. reader: null,
  527. param: 9600,
  528. monitorUrl1: '', //监控地址
  529. monitorUrl2: '', //监控地址
  530. cangid: '',
  531. paramType: '1', //参数类型 1 扣重比 2 降幅
  532. warehouseName: '',
  533. result1: '00',
  534. allowEdit: 0,
  535. mListTop: [],
  536. mListBottom: [],
  537. stocks: [{
  538. warehouseName: '',
  539. weight: '',
  540. cost: ''
  541. }],
  542. pListTop: [],
  543. carList1: [],
  544. pListBottom: [],
  545. warehouseList: [], //仓库
  546. checked: false,
  547. inWarehouseType: 1, //入库类型
  548. mListTotal: [],
  549. pListTotal: [],
  550. submitAllow: false,
  551. id: '',
  552. inOutData: {},
  553. idPrint: '',
  554. customer:'',
  555. ewCustomerOptions: [
  556. {
  557. value: '黑龙江中天昊元贸易有限公司',
  558. label: '黑龙江中天昊元贸易有限公司'
  559. }, {
  560. value: '黑龙江利润元粮食贸易有限公司',
  561. label: '黑龙江利润元粮食贸易有限公司'
  562. }, {
  563. value: '黑龙江众利合粮食贸易有限公司',
  564. label: '黑龙江众利合粮食贸易有限公司'
  565. }, {
  566. value: '黑龙江鑫满仓粮食贸易有限公司',
  567. label: '黑龙江鑫满仓粮食贸易有限公司'
  568. }, {
  569. value: '厦门建发物产有限公司',
  570. label: '厦门建发物产有限公司'
  571. }, {
  572. value: '黑龙江谷香粮食贸易有限公司',
  573. label: '黑龙江谷香粮食贸易有限公司'
  574. }, {
  575. value: '黑龙江秋收有限公司',
  576. label: '黑龙江秋收有限公司'
  577. }, {
  578. value: '黑龙江欣洋粮食贸易有限公司',
  579. label: '黑龙江欣洋粮食贸易有限公司'
  580. }, {
  581. value: '黑龙江益储益运粮食贸易有限公司',
  582. label: '黑龙江益储益运粮食贸易有限公司'
  583. }, {
  584. value: '黑龙江启兴粮食贸易有限公司',
  585. label: '黑龙江启兴粮食贸易有限公司'
  586. }, {
  587. value: '吉林中翰兴粮食贸易有限公司',
  588. label: '吉林中翰兴粮食贸易有限公司'
  589. }, {
  590. value: '黑龙江中天绿粮供应链服务有限公司',
  591. label: '黑龙江中天绿粮供应链服务有限公司'
  592. }],
  593. companyNameOptions: [{
  594. value: '黑龙江中天昊元贸易有限公司',
  595. label: '黑龙江中天昊元贸易有限公司'
  596. }, {
  597. value: '黑龙江利润元粮食贸易有限公司',
  598. label: '黑龙江利润元粮食贸易有限公司'
  599. }, {
  600. value: '黑龙江众利合粮食贸易有限公司',
  601. label: '黑龙江众利合粮食贸易有限公司'
  602. }, {
  603. value: '黑龙江鑫满仓粮食贸易有限公司',
  604. label: '黑龙江鑫满仓粮食贸易有限公司'
  605. }, {
  606. value: '榆树市保寿镇保寿村民胜粮食加工有限公司',
  607. label: '榆树市保寿镇保寿村民胜粮食加工有限公司'
  608. },
  609. {
  610. value: '黑龙江谷香粮食贸易有限公司',
  611. label: '黑龙江谷香粮食贸易有限公司'
  612. }, {
  613. value: '黑龙江秋收有限公司',
  614. label: '黑龙江秋收有限公司'
  615. }, {
  616. value: '黑龙江欣洋粮食贸易有限公司',
  617. label: '黑龙江欣洋粮食贸易有限公司'
  618. }, {
  619. value: '黑龙江益储益运粮食贸易有限公司',
  620. label: '黑龙江益储益运粮食贸易有限公司'
  621. }, {
  622. value: '黑龙江启兴粮食贸易有限公司',
  623. label: '黑龙江启兴粮食贸易有限公司'
  624. }, {
  625. value: '吉林中翰兴粮食贸易有限公司',
  626. label: '吉林中翰兴粮食贸易有限公司'
  627. }, {
  628. value: '黑龙江中天绿粮供应链服务有限公司',
  629. label: '黑龙江中天绿粮供应链服务有限公司'
  630. }, {
  631. value: '吉林昊友城元粮食贸易有限公司',
  632. label: '吉林昊友城元粮食贸易有限公司'
  633. }],
  634. companyNameEWOptions: [{
  635. value: '天津建源供应链管理有限公司',
  636. label: '天津建源供应链管理有限公司'
  637. },{
  638. value: '厦门建发物产有限公司',
  639. label: '厦门建发物产有限公司'
  640. }],
  641. companyName: '黑龙江利润元粮食贸易有限公司',
  642. companyNameEW: '厦门建发物产有限公司',
  643. ewCustomer: '黑龙江利润元粮食贸易有限公司',
  644. inshipments:'黑龙江中天昊元贸易有限公司',
  645. outshipments:'黑龙江中天昊元贸易有限公司',
  646. ewradio: '',
  647. ddchecked: false,
  648. checked: false,
  649. isShowPrintType: false,
  650. dialogDataList: [],
  651. statusType: 1,
  652. jjSelectPrintList: [],
  653. printSeparately: false,
  654. number: '',
  655. warehousingType: 1,
  656. }
  657. },
  658. beforeDestroy() {
  659. if (this.timer) { //如果定时器还在运行 或者直接关闭,不用判断
  660. clearInterval(this.timer); //关闭
  661. }
  662. },
  663. mounted() {
  664. localStorage.setItem('serverIp', configText.devServer.proxy['/pb'].target)
  665. getcomp({userMobilePhone:JSON.parse(localStorage.getItem('ws_login_getTenantInfoByUser')).loginInfo.userMobilePhone}).toPromise().then((res)=>{
  666. this.compNameoptions=res
  667. if (this.compNameoptions.length>0) {
  668. var company=this.compNameoptions
  669. var extra=company.filter((item)=>{
  670. return item!='黑龙江中天昊元贸易有限公司'
  671. &&item!='黑龙江利润元粮食贸易有限公司'
  672. &&item!= '黑龙江众利合粮食贸易有限公司'
  673. &&item!='黑龙江鑫满仓粮食贸易有限公司'
  674. &&item!='黑龙江谷香粮食贸易有限公司'
  675. &&item!='黑龙江秋收有限公司'
  676. &&item!= '黑龙江欣洋粮食贸易有限公司'
  677. &&item!='黑龙江益储益运粮食贸易有限公司'
  678. &&item!='黑龙江启兴粮食贸易有限公司'
  679. })
  680. if(extra.length>0){
  681. this.companyNameOptions=[
  682. {
  683. value: '黑龙江中天昊元贸易有限公司',
  684. label: '黑龙江中天昊元贸易有限公司'
  685. }, {
  686. value: '黑龙江利润元粮食贸易有限公司',
  687. label: '黑龙江利润元粮食贸易有限公司'
  688. }, {
  689. value: '黑龙江众利合粮食贸易有限公司',
  690. label: '黑龙江众利合粮食贸易有限公司'
  691. }, {
  692. value: '黑龙江鑫满仓粮食贸易有限公司',
  693. label: '黑龙江鑫满仓粮食贸易有限公司'
  694. },{
  695. value: '黑龙江欣洋粮食贸易有限公司',
  696. label: '黑龙江欣洋粮食贸易有限公司'
  697. },{
  698. value: '黑龙江谷香粮食贸易有限公司',
  699. label: '黑龙江谷香粮食贸易有限公司'
  700. },{
  701. value: '黑龙江秋收有限公司',
  702. label: '黑龙江秋收有限公司'
  703. }, {
  704. value: '黑龙江益储益运粮食贸易有限公司',
  705. label: '黑龙江益储益运粮食贸易有限公司'
  706. }, {
  707. value: '黑龙江启兴粮食贸易有限公司',
  708. label: '黑龙江启兴粮食贸易有限公司'
  709. }, {
  710. value: '吉林中翰兴粮食贸易有限公司',
  711. label: '吉林中翰兴粮食贸易有限公司'
  712. }, {
  713. value: '黑龙江中天绿粮供应链服务有限公司',
  714. label: '黑龙江中天绿粮供应链服务有限公司'
  715. }, {
  716. value: '吉林昊友城元粮食贸易有限公司',
  717. label: '吉林昊友城元粮食贸易有限公司'
  718. }]
  719. this.ewCustomerOptions= [
  720. {
  721. value: '天津建源供应链管理有限公司',
  722. label: '天津建源供应链管理有限公司'
  723. },{
  724. value: '黑龙江中天昊元贸易有限公司',
  725. label: '黑龙江中天昊元贸易有限公司'
  726. }, {
  727. value: '黑龙江利润元粮食贸易有限公司',
  728. label: '黑龙江利润元粮食贸易有限公司'
  729. }, {
  730. value: '黑龙江众利合粮食贸易有限公司',
  731. label: '黑龙江众利合粮食贸易有限公司'
  732. }, {
  733. value: '黑龙江鑫满仓粮食贸易有限公司',
  734. label: '黑龙江鑫满仓粮食贸易有限公司'
  735. },{
  736. value: '黑龙江欣洋粮食贸易有限公司',
  737. label: '黑龙江欣洋粮食贸易有限公司'
  738. },{
  739. value: '黑龙江谷香粮食贸易有限公司',
  740. label: '黑龙江谷香粮食贸易有限公司'
  741. },{
  742. value: '黑龙江秋收有限公司',
  743. label: '黑龙江秋收有限公司'
  744. }, {
  745. value: '黑龙江益储益运粮食贸易有限公司',
  746. label: '黑龙江益储益运粮食贸易有限公司'
  747. }, {
  748. value: '黑龙江启兴粮食贸易有限公司',
  749. label: '黑龙江启兴粮食贸易有限公司'
  750. }, {
  751. value: '吉林中翰兴粮食贸易有限公司',
  752. label: '吉林中翰兴粮食贸易有限公司'
  753. }, {
  754. value: '黑龙江中天绿粮供应链服务有限公司',
  755. label: '黑龙江中天绿粮供应链服务有限公司'
  756. }]
  757. this.companyNameEWOptions=[
  758. {
  759. value: '天津建源供应链管理有限公司',
  760. label: '天津建源供应链管理有限公司'
  761. },{
  762. value: '黑龙江中天昊元贸易有限公司',
  763. label: '黑龙江中天昊元贸易有限公司'
  764. }, {
  765. value: '黑龙江利润元粮食贸易有限公司',
  766. label: '黑龙江利润元粮食贸易有限公司'
  767. }, {
  768. value: '黑龙江众利合粮食贸易有限公司',
  769. label: '黑龙江众利合粮食贸易有限公司'
  770. }, {
  771. value: '黑龙江鑫满仓粮食贸易有限公司',
  772. label: '黑龙江鑫满仓粮食贸易有限公司'
  773. },{
  774. value: '黑龙江欣洋粮食贸易有限公司',
  775. label: '黑龙江欣洋粮食贸易有限公司'
  776. },{
  777. value: '黑龙江谷香粮食贸易有限公司',
  778. label: '黑龙江谷香粮食贸易有限公司'
  779. },{
  780. value: '黑龙江秋收有限公司',
  781. label: '黑龙江秋收有限公司'
  782. }, {
  783. value: '黑龙江益储益运粮食贸易有限公司',
  784. label: '黑龙江益储益运粮食贸易有限公司'
  785. }, {
  786. value: '黑龙江启兴粮食贸易有限公司',
  787. label: '黑龙江启兴粮食贸易有限公司'
  788. }, {
  789. value: '吉林中翰兴粮食贸易有限公司',
  790. label: '吉林中翰兴粮食贸易有限公司'
  791. }, {
  792. value: '黑龙江中天绿粮供应链服务有限公司',
  793. label: '黑龙江中天绿粮供应链服务有限公司'
  794. }]
  795. if(localStorage.getItem('print_company_name')){
  796. this.companyName=localStorage.getItem('print_company_name')
  797. }else{
  798. this.companyName=extra[0]
  799. }
  800. if(localStorage.getItem('print_company_name_ew')){
  801. this.companyNameEW=localStorage.getItem('print_company_name_ew')
  802. }else{
  803. this.companyNameEW=extra[0]
  804. }
  805. if(localStorage.getItem('print_customer_name_ew')){
  806. this.ewCustomer=localStorage.getItem('print_customer_name_ew')
  807. }else{
  808. this.ewCustomer=extra[0]
  809. }
  810. for (let i = 0; i < extra.length; i++) {
  811. this.ewCustomerOptions.push({value: extra[i],label:extra[i]})
  812. this.companyNameOptions.push({value: extra[i],label:extra[i]})
  813. this.companyNameEWOptions.push({value: extra[i],label:extra[i]})
  814. }
  815. }
  816. }
  817. })
  818. // this.getVideos()
  819. this.isShowBalance = true
  820. var _saomaData = JSON.parse(localStorage.getItem('saoma_data')) //判断是否扫码进来的
  821. // }
  822. //仓库
  823. selectWarehouseSelf({
  824. compId: localStorage.getItem('ws-pf_compId'),
  825. })
  826. .toPromise()
  827. .then((response) => {
  828. this.warehouseList = response
  829. if (_saomaData) { //缓存中有值,证明扫码进来的
  830. if (_saomaData.managementType) {
  831. this.inWarehouseType = _saomaData.managementType
  832. }
  833. this.tpyeNo = _saomaData.typeNo
  834. this.warehouseName = _saomaData.warehouseName
  835. this.cangid = _saomaData.cangid
  836. this.monitorUrl1 = _saomaData.monitorUrl1
  837. this.monitorUrl2 = _saomaData.monitorUrl2
  838. this.allowEdit = _saomaData.allowEdit
  839. this.id = _saomaData.id
  840. this.number = _saomaData.number
  841. for (var i = 0; i < response.length; i++) {
  842. if (this.warehouseName == this.warehouseList[i].warehouseName) {
  843. this.ip1 = this.warehouseList[i].shexiang1
  844. this.ip2 = this.warehouseList[i].shexiang2
  845. this.rom1 = this.warehouseList[i].rom1
  846. this.rom2 = this.warehouseList[i].rom2
  847. break
  848. }
  849. }
  850. localStorage.removeItem('saoma_data'); //第一次进来结束后清除缓存
  851. } else if (localStorage.getItem('houseSelfCollect_house1')) {
  852. this.warehouseName = JSON.parse(localStorage.getItem('houseSelfCollect_house1')).value
  853. for (var i = 0; i < response.length; i++) {
  854. if (this.warehouseName == this.warehouseList[i].warehouseName) {
  855. this.cangid = this.warehouseList[i].id
  856. this.monitorUrl1 = this.warehouseList[i].monitorUrl1
  857. this.monitorUrl2 = this.warehouseList[i].monitorUrl2
  858. this.allowEdit = this.warehouseList[i].allowEdit
  859. this.ip1 = this.warehouseList[i].shexiang1
  860. this.ip2 = this.warehouseList[i].shexiang2
  861. this.rom1 = this.warehouseList[i].rom1
  862. this.rom2 = this.warehouseList[i].rom2
  863. break
  864. }
  865. }
  866. } else {
  867. localStorage.setItem('houseSelfCollect_house1', JSON.stringify({
  868. value: this.warehouseList[0].warehouseName,
  869. warehouseId: this.warehouseList[0].id,
  870. count: this.warehouseList[0].count,
  871. No: this.warehouseList[0].commonWarehouseNo,
  872. allowEdit: this.warehouseList[0].allowEdit,
  873. compId: localStorage.getItem('ws-pf_compId')
  874. }))
  875. this.warehouseName = this.warehouseList[0].warehouseName
  876. localStorage.setItem('ck', this.warehouseName)
  877. this.cangid = this.warehouseList[0].id
  878. this.allowEdit = this.warehouseList[0].allowEdit
  879. this.monitorUrl1 = this.warehouseList[0].monitorUrl1
  880. this.monitorUrl2 = this.warehouseList[0].monitorUrl2
  881. this.ip1 = this.warehouseList[0].shexiang1
  882. this.ip2 = this.warehouseList[0].shexiang2
  883. this.rom1 = this.warehouseList[0].rom1
  884. this.rom2 = this.warehouseList[0].rom2
  885. }
  886. this.deptBudgetList.warehouseName = this.warehouseName
  887. if (this.allowEdit == 0) {
  888. this.disabled = true
  889. } else if (this.allowEdit == 1) {
  890. this.disabled = false
  891. }
  892. if (this.tpyeNo == 1) {
  893. this.information = '毛重'
  894. this.weighingList.tare = ''
  895. } else if (this.tpyeNo == 2) {
  896. this.information = '皮重'
  897. }
  898. this.getList()
  899. })
  900. },
  901. activated() {
  902. // if (!this.$route.query.grossWeight) {
  903. // this.$route.query.grossWeight = 0
  904. // } else {
  905. // this.weighingList.grossWeight = this.$route.query.grossWeight
  906. // }
  907. // this.allowEdit = this.$route.query.allowEdit
  908. // this.$route.query.automaticWeightAcquisition = 0
  909. // if(this.$route.query.automaticWeightAcquisition == '1'){
  910. // this.openPort()
  911. // this.isShowBalance = true
  912. // }
  913. // if (this.$route.query.automaticWeightAcquisition == '1') {
  914. },
  915. methods: {
  916. play() {
  917. this.flvPlayer.play();
  918. },
  919. positionPlace(type) {
  920. let _number = ''
  921. if(type ==1){
  922. _number = this.carNumber1
  923. }else{
  924. _number = this.carNumber2
  925. }
  926. console.log('定位车辆')
  927. console.log(this.carList)
  928. for (let i = 0; i < this.carList.length; i++) {
  929. if (_number == this.carList[i].carNumber) {
  930. this.setCurrent(this.carList[2])
  931. return
  932. } else {
  933. this.$message({
  934. message: '未识别到车辆信息',
  935. type: 'warning'
  936. });
  937. }
  938. }
  939. },
  940. getVideos(ip1, ip2, rom1, rom2) {
  941. if (rom1) {
  942. if (flvjs.isSupported()) {
  943. getToken({ romId: rom1 })
  944. .toPromise()
  945. .then((response) => {
  946. console.log(111)
  947. // let _accessToken = response.split('$$')[0]
  948. let _playUrl = response.split('$$')[1]
  949. // this.VideoSrc = _playUrl
  950. let videoElement = document.getElementById('videoElement');
  951. this.flvPlayer = flvjs.createPlayer({
  952. type: 'flv',
  953. isLive: true,
  954. hasAudio: false,
  955. url: _playUrl
  956. });
  957. this.flvPlayer.attachMediaElement(videoElement);
  958. this.flvPlayer.load();
  959. this.flvPlayer.play();
  960. })
  961. .catch((response) => {
  962. })
  963. }
  964. whetherWebSocket1(ip1, localStorage.getItem('ws-pf_userId'))
  965. }
  966. if (rom2) {
  967. if (flvjs.isSupported()) {
  968. getRom({ romId: rom2 })
  969. .toPromise()
  970. .then((response) => {
  971. console.log(111)
  972. // let _accessToken = response.split('$$')[0]
  973. let _playUrl = response.split('$$')[1]
  974. // this.VideoSrc1 = _playUrl
  975. let videoElement1 = document.getElementById('videoElement1');
  976. this.flvPlayer = flvjs.createPlayer({
  977. type: 'flv',
  978. isLive: true,
  979. hasAudio: false,
  980. url: _playUrl
  981. });
  982. this.flvPlayer.attachMediaElement(videoElement1);
  983. this.flvPlayer.load();
  984. this.flvPlayer.play();
  985. })
  986. .catch((response) => {
  987. })
  988. }
  989. whetherWebSocket2(ip2, localStorage.getItem('ws-pf_userId'))
  990. }
  991. // getVideo({
  992. // ip1:ip1,
  993. // ip2:ip2,
  994. // userId:localStorage.getItem('ws-pf_userId')
  995. // })
  996. // .toPromise()
  997. // .then((response) => {
  998. // console.log(111)
  999. // })
  1000. // .catch((response) => {
  1001. // })
  1002. },
  1003. changeOut(e) {
  1004. if (e) {
  1005. this.printout = true
  1006. } else {
  1007. this.printout = false
  1008. }
  1009. },
  1010. refreshClick(type) {
  1011. let that = this
  1012. if (type == 1) {
  1013. getweighingList({
  1014. compId: localStorage.getItem('ws-pf_compId'),
  1015. currentPage: that.currentPage,
  1016. pageSize: that.pageSize,
  1017. searchKeyWord: '',
  1018. warehouseName: that.warehouseName,
  1019. managementType: 1,
  1020. serviceManagementType: that.inWarehouseType,
  1021. loadingstatus: 1,
  1022. pcFlag: 5
  1023. // statusType:1
  1024. })
  1025. .toPromise()
  1026. .then((response) => {
  1027. that.common.commonWeighingList = response.records
  1028. that.makeData()
  1029. getweighingList({
  1030. compId: localStorage.getItem('ws-pf_compId'),
  1031. currentPage: that.currentPage,
  1032. pageSize: that.pageSize,
  1033. searchKeyWord: '',
  1034. statusType: that.statusType,
  1035. warehouseName: that.warehouseName,
  1036. managementType: 1,
  1037. serviceManagementType: that.inWarehouseType,
  1038. loadingstatus: 1,
  1039. pcFlag: 5
  1040. // statusType:1
  1041. })
  1042. .toPromise()
  1043. .then((response) => {
  1044. that.deptBudgetTotal = response.total
  1045. // that.weighingList = response.records
  1046. })
  1047. .catch((response) => {
  1048. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1049. })
  1050. })
  1051. .catch((response) => {
  1052. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1053. })
  1054. } else {
  1055. clearInterval(that.timer)
  1056. that.refresh = 60
  1057. that.timer = setInterval(function () {
  1058. // console.log(that.refresh)
  1059. if (that.refresh == 0) {
  1060. that.refresh = 60
  1061. getweighingList({
  1062. compId: localStorage.getItem('ws-pf_compId'),
  1063. currentPage: that.currentPage,
  1064. pageSize: that.pageSize,
  1065. searchKeyWord: '',
  1066. warehouseName: that.warehouseName,
  1067. managementType: 1,
  1068. serviceManagementType: that.inWarehouseType,
  1069. loadingstatus: 1,
  1070. pcFlag: 5
  1071. // statusType:1
  1072. })
  1073. .toPromise()
  1074. .then((response) => {
  1075. that.common.commonWeighingList = response.records
  1076. that.makeData()
  1077. getweighingList({
  1078. compId: localStorage.getItem('ws-pf_compId'),
  1079. currentPage: that.currentPage,
  1080. pageSize: that.pageSize,
  1081. searchKeyWord: '',
  1082. statusType: that.statusType,
  1083. warehouseName: that.warehouseName,
  1084. managementType: 1,
  1085. serviceManagementType: that.inWarehouseType,
  1086. loadingstatus: 1,
  1087. pcFlag: 5
  1088. // statusType:1
  1089. })
  1090. .toPromise()
  1091. .then((response) => {
  1092. that.deptBudgetTotal = response.total
  1093. // that.weighingList = response.records
  1094. })
  1095. .catch((response) => {
  1096. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1097. })
  1098. })
  1099. .catch((response) => {
  1100. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1101. })
  1102. }
  1103. that.refresh--
  1104. }, 1000);
  1105. }
  1106. },
  1107. changeEw(e) {
  1108. this.ddchecked = false
  1109. if (e) {
  1110. this.printSeparately = true
  1111. } else {
  1112. this.printSeparately = false
  1113. }
  1114. },
  1115. changeEwDD(e) {
  1116. this.checked = false
  1117. if (e) {
  1118. this.printSeparately = true
  1119. } else {
  1120. this.printSeparately = false
  1121. }
  1122. },
  1123. typePrintCannelClick() {
  1124. this.ddchecked = false,
  1125. this.checked = false,
  1126. this.dialogDataList = [] //打个打印取消时数组至空
  1127. this.isShowPrintType = false
  1128. },
  1129. async typePrintClick(type) {
  1130. localStorage.setItem('print_company_name',this.companyName)
  1131. localStorage.setItem('print_company_name_ew',this.companyNameEW)
  1132. localStorage.setItem('print_customer_name_ew',this.ewCustomer)
  1133. getPrint({
  1134. id: this.idPrint
  1135. })
  1136. .toPromise()
  1137. .then((response) => {
  1138. localStorage.removeItem('print_in_data')
  1139. this.dialogDataList = [] //点击确认时先清空要打印的数组
  1140. this.dialogData = response
  1141. if (response.compName == '黑龙江秋收有限公司') {
  1142. this.dialogData.compName = '黑龙江中天昊元贸易有限公司'
  1143. }else{
  1144. this.dialogData.compName = this.companyName
  1145. }
  1146. if (this.checked) {
  1147. this.dialogDataList.push(this.dialogData)
  1148. var _datas = JSON.stringify(this.dialogData)
  1149. _datas = JSON.parse(_datas)
  1150. _datas.compName = this.companyNameEW;
  1151. _datas.customer = this.ewCustomer
  1152. this.dialogDataList.push(_datas)
  1153. } else if (this.ddchecked) {
  1154. _datas = this.dialogData
  1155. _datas.compName = this.companyNameEW;
  1156. _datas.customer = this.ewCustomer
  1157. this.dialogDataList.push(_datas)
  1158. } else {
  1159. this.dialogData.compName = this.companyName
  1160. if(this.dialogData&&this.dialogData.contractManagement&& this.warehousingType != 3){
  1161. this.dialogData.customer = this.dialogData.contractManagement.seller
  1162. }
  1163. this.dialogDataList.push(this.dialogData)
  1164. }
  1165. if(this.outchecked){
  1166. if(!this.checked&&!this.ddchecked){
  1167. this.dialogDataList=[]
  1168. var _data = JSON.parse(JSON.stringify(this.dialogData))
  1169. this.$set(_data,'printtype','out')
  1170. _data.compName = this.outshipments;
  1171. _data.customer = this.inshipments
  1172. _data.binNumber = this.outbinNumber
  1173. this.dialogDataList.push(_data)
  1174. }else{
  1175. var _data = JSON.parse(JSON.stringify(this.dialogData))
  1176. this.$set(_data,'printtype','out')
  1177. _data.compName = this.outshipments;
  1178. _data.customer = this.inshipments
  1179. _data.binNumber = this.outbinNumber
  1180. this.dialogDataList.push(_data)
  1181. }
  1182. }
  1183. localStorage.setItem('print_in_data',JSON.stringify(this.dialogDataList).replace(/%/g, 'baifenhao'))
  1184. // window.open('../../../../static/weightCheck.html?type=2&tableData=' + JSON.stringify(this.dialogDataList).replace(/%/g, 'baifenhao'))
  1185. window.open('../../../../static/weightCheck.html?type=2&tableData=' )
  1186. // this.printBig("", this.radio)
  1187. })
  1188. .catch((response) => { })
  1189. },
  1190. warehouseNameChange() {
  1191. localStorage.setItem('ck', this.warehouseName)
  1192. this.weighingList.warehouseName = this.warehouseName
  1193. this.deptBudgetList.warehouseName = this.warehouseName
  1194. for (var i = 0; i < this.warehouseList.length; i++) {
  1195. if (this.warehouseName == this.warehouseList[i].warehouseName) {
  1196. localStorage.setItem('houseSelfCollect_house1', JSON.stringify({
  1197. value: this.warehouseList[i].warehouseName,
  1198. warehouseId: this.warehouseList[i].id,
  1199. count: this.warehouseList[i].count,
  1200. No: this.warehouseList[i].commonWarehouseNo,
  1201. allowEdit: this.warehouseList[i].allowEdit,
  1202. compId: localStorage.getItem('ws-pf_compId')
  1203. }))
  1204. this.cangid = this.warehouseList[i].id
  1205. this.monitorUrl1 = this.warehouseList[i].monitorUrl1
  1206. this.monitorUrl2 = this.warehouseList[i].monitorUrl2
  1207. this.allowEdit = this.warehouseList[i].allowEdit
  1208. if (this.allowEdit == 0) {
  1209. this.disabled = true
  1210. } else if (this.allowEdit == 1) {
  1211. this.disabled = false
  1212. }
  1213. }
  1214. }
  1215. this.getList()
  1216. },
  1217. record() {
  1218. this.$router.push({
  1219. path: 'weightCheckRecord',
  1220. query: {
  1221. inWarehouseType: this.inWarehouseType,
  1222. warehouseName: this.warehouseName,
  1223. warehouseId: this.cangid
  1224. }
  1225. })
  1226. },
  1227. WarehousingType(num) {
  1228. this.inWarehouseType = num
  1229. if (this.inWarehouseType == 1 && this.status == 2) {
  1230. this.status = 1
  1231. }
  1232. this.warehousingType = this.inWarehouseType
  1233. this.getList()
  1234. },
  1235. setVal(data) {
  1236. if (this.information == '毛重') {
  1237. this.weighingList.grossWeight = data
  1238. } else {
  1239. this.weighingList.tare = data
  1240. }
  1241. },
  1242. openPort() {
  1243. this.$refs.weightChild.openPort()
  1244. },
  1245. cutstatus(status) {
  1246. this.status = status
  1247. if (status == 2) {
  1248. if (this.tpyeNo == 1) {
  1249. this.statusType = 1
  1250. this.getList()
  1251. // this.carList = this.carList1.filter(function(item) {
  1252. // return item.status == '已称毛重'
  1253. // })
  1254. } else {
  1255. this.statusType = 3
  1256. this.getList()
  1257. // this.carList = this.carList1.filter(function(item) {
  1258. // return item.status == '已称皮重'
  1259. // })
  1260. }
  1261. } else {
  1262. if (this.tpyeNo == 1) {
  1263. this.statusType = 1
  1264. this.getList()
  1265. // this.mListTop.concat(this.mListBottom)
  1266. // this.carList = this.carList1.filter(function(item) {
  1267. // return item.status == '已质检'
  1268. // })
  1269. } else {
  1270. this.statusType = 2
  1271. this.getList()
  1272. // this.carList = this.carList1.filter(function(item) {
  1273. // return item.status == '已称毛重'
  1274. // })
  1275. }
  1276. }
  1277. // this.deptBudgetTotal = this.carList.length
  1278. },
  1279. addstocks(index) {
  1280. this.stocks.push({
  1281. warehouseName: '',
  1282. cost: ''
  1283. })
  1284. },
  1285. delstocks(index) {
  1286. this.stocks.splice(index, 1)
  1287. },
  1288. handleSizeChange(val) {
  1289. console.log(`每页 ${val} 条`)
  1290. this.pageSize = val
  1291. this.getList()
  1292. },
  1293. getList() {
  1294. if (this.inWarehouseType != 1) {
  1295. // 货名
  1296. getinspectLookGoods({
  1297. warehouseId: this.cangid,
  1298. flag: '1',
  1299. }).toPromise()
  1300. .then((response) => {
  1301. this.purchasePriceList = response
  1302. })
  1303. }
  1304. this.refreshClick(1)
  1305. // getweighingList({
  1306. // compId: localStorage.getItem('ws-pf_compId'),
  1307. // currentPage: this.currentPage,
  1308. // pageSize: this.pageSize,
  1309. // searchKeyWord: '',
  1310. // warehouseName: this.warehouseName,
  1311. // managementType: 1,
  1312. // serviceManagementType: this.inWarehouseType,
  1313. // // statusType:1
  1314. // })
  1315. // .toPromise()
  1316. // .then((response) => {
  1317. // this.common.commonWeighingList = response.records
  1318. // this.makeData()
  1319. // })
  1320. // .catch((response) => {
  1321. // // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1322. // })
  1323. // getweighingList({
  1324. // compId: localStorage.getItem('ws-pf_compId'),
  1325. // currentPage: this.currentPage,
  1326. // pageSize: this.pageSize,
  1327. // searchKeyWord: '',
  1328. // statusType: this.statusType,
  1329. // warehouseName: this.warehouseName,
  1330. // managementType: 1,
  1331. // serviceManagementType: this.inWarehouseType,
  1332. // // statusType:1
  1333. // })
  1334. // .toPromise()
  1335. // .then((response) => {
  1336. // this.deptBudgetTotal = response.total
  1337. // this.weighingList = response.records
  1338. // })
  1339. // .catch((response) => {
  1340. // // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1341. // })
  1342. },
  1343. makeData() {
  1344. this.mList = []
  1345. this.pList = []
  1346. this.mListTop = []
  1347. this.mListBottom = []
  1348. this.pListTop = []
  1349. this.pListBottom = []
  1350. this.carWeightInfo.carNumber = ''
  1351. let that = this
  1352. let _list = this.common.commonWeighingList
  1353. if (_list.length > 0) {
  1354. this.weighingList = []
  1355. }
  1356. for (let i = 0; i < _list.length; i++) {
  1357. if (_list[i].paymentManagement) {
  1358. if (
  1359. _list[i].paymentManagement.status != '待结算' ||
  1360. _list[i].paymentManagement.approveStatus
  1361. ) {
  1362. continue
  1363. }
  1364. }
  1365. if (_list[i].status == '已质检') {
  1366. this.mListTop.push(_list[i])
  1367. }
  1368. if (_list[i].status == '已称毛重') {
  1369. this.mListBottom.push(_list[i])
  1370. }
  1371. if (_list[i].status == '已称皮重') {
  1372. this.pListBottom.push(_list[i])
  1373. }
  1374. if (_list[i].status == '已称毛重') {
  1375. this.pListTop.push(_list[i])
  1376. }
  1377. }
  1378. if (this.status == 1) {
  1379. this.mList = this.mListTop
  1380. this.pList = this.pListTop
  1381. } else {
  1382. this.mList = this.mListBottom
  1383. this.pList = this.pListBottom
  1384. }
  1385. this.mListTotal = this.mListTop.concat(this.mListBottom)
  1386. this.pListTotal = this.pListTop.concat(this.pListBottom)
  1387. if (this.information == '毛重') {
  1388. this.index = 0
  1389. console.log(this.mList)
  1390. var _saomaData = JSON.parse(localStorage.getItem('saoma_data'))
  1391. if (_saomaData) {
  1392. let _array = JSON.parse(JSON.stringify(this.mList))
  1393. for (let i = 0; i < this.mList.length; i++) {
  1394. if (this.mList[i].number == _saomaData.number) {
  1395. _array.splice(i, 1)
  1396. _array.unshift(this.mList[i]);
  1397. }
  1398. }
  1399. this.mList = _array
  1400. localStorage.removeItem('saoma_data'); //第一次进来结束后清除缓存
  1401. }
  1402. this.carList = this.mList
  1403. this.carList1 = this.mListTotal
  1404. for (let i = 0; i < this.mList.length; i++) {
  1405. if (this.number == this.mList[i].number) {
  1406. this.setCurrent(this.mList[i])
  1407. this.weighingList = this.mList[i]
  1408. this.weighingList.donecount = this.mList[i].completedQuantity + '/' + this.mList[i].weight
  1409. this.carWeightInfo = {
  1410. carNumber: this.mList[i].carNumber,
  1411. type: this.information,
  1412. weight: this.weighingList.grossWeight,
  1413. }
  1414. }
  1415. else {
  1416. this.setCurrent(this.mList[0])
  1417. this.weighingList = this.mList[0]
  1418. this.weighingList.donecount = this.mList[0].completedQuantity + '/' + this.mList[0].weight
  1419. this.carWeightInfo = {
  1420. carNumber: this.mList[0].carNumber,
  1421. type: this.information,
  1422. weight: this.weighingList.grossWeight,
  1423. }
  1424. }
  1425. }
  1426. } else {
  1427. this.index = 1
  1428. console.log(this.pList)
  1429. var _saomaData = JSON.parse(localStorage.getItem('saoma_data'))
  1430. if (_saomaData) {
  1431. let _array = JSON.parse(JSON.stringify(this.pList))
  1432. for (let i = 0; i < this.pList.length; i++) {
  1433. if (this.pList[i].number == _saomaData.number) {
  1434. _array.splice(i, 1)
  1435. _array.unshift(this.pList[i]);
  1436. }
  1437. }
  1438. this.pList = _array
  1439. localStorage.removeItem('saoma_data'); //第一次进来结束后清除缓存
  1440. }
  1441. this.carList = this.pList
  1442. this.carList1 = this.pListTotal
  1443. for (let i = 0; i < this.pList.length; i++) {
  1444. if (this.number == this.pList[i].number) {
  1445. this.setCurrent(this.pList[i])
  1446. this.weighingList = this.pList[i]
  1447. this.weighingList.donecount = this.mList[i].completedQuantity + '/' + this.mList[i].weight
  1448. this.weighingList.inOutType = this.pList[i].qualityInspectionManagement.inOutType
  1449. this.weighingList.inOutTypeKey = this.pList[i].qualityInspectionManagement.inOutTypeKey
  1450. this.weighingList.deductionAmount = this.pList[i].qualityInspectionManagement.deductionAmount
  1451. // console.log(this.weighingList)
  1452. this.carWeightInfo = {
  1453. carNumber: this.pList[0].carNumber,
  1454. type: this.information,
  1455. weight: this.weighingList.tare
  1456. }
  1457. }
  1458. else {
  1459. this.setCurrent(this.pList[0])
  1460. this.weighingList = this.pList[0]
  1461. this.weighingList.donecount = this.mList[0].completedQuantity + '/' + this.mList[0].weight
  1462. this.weighingList.inOutType = this.pList[0].qualityInspectionManagement.inOutType
  1463. this.weighingList.inOutTypeKey = this.pList[0].qualityInspectionManagement.inOutTypeKey
  1464. this.weighingList.deductionAmount = this.pList[0].qualityInspectionManagement.deductionAmount
  1465. // console.log(this.weighingList)
  1466. this.carWeightInfo = {
  1467. carNumber: this.pList[0].carNumber,
  1468. type: this.information,
  1469. weight: this.weighingList.tare
  1470. }
  1471. }
  1472. }
  1473. if (this.pList.length != 0) {
  1474. this.setCurrent(this.pList[0])
  1475. this.weighingList = this.pList[0]
  1476. this.weighingList.donecount = this.mList[0].completedQuantity + '/' + this.mList[0].weight
  1477. this.weighingList.inOutType = this.pList[0].qualityInspectionManagement.inOutType
  1478. this.weighingList.inOutTypeKey = this.pList[0].qualityInspectionManagement.inOutTypeKey
  1479. this.weighingList.deductionAmount = this.pList[0].qualityInspectionManagement.deductionAmount
  1480. // console.log(this.weighingList)
  1481. this.carWeightInfo = {
  1482. carNumber: this.pList[0].carNumber,
  1483. type: this.information,
  1484. weight: this.weighingList.tare
  1485. }
  1486. }
  1487. this.deptBudgetTotal = this.pList.length
  1488. }
  1489. this.weighingList.carModel = this.weighingList.qualityInspectionManagement.carModel
  1490. //已下代码注释保留
  1491. // if (this.weighingList.carModel == '单拖小柜') {
  1492. // this.weighingList.receivableWeighingFee = 80
  1493. // this.weighingList.actualWeighingFee = 80
  1494. // } else if (this.weighingList.carModel == '双拖小柜') {
  1495. // this.weighingList.receivableWeighingFee = 160
  1496. // this.weighingList.actualWeighingFee = 160
  1497. // } else if (this.weighingList.carModel == '大柜') {
  1498. // if (this.weighingList.grossWeight / 1000 < 50) {
  1499. // this.$set(this.weighingList, 'receivableWeighingFee', 120)
  1500. // this.weighingList.actualWeighingFee = 120
  1501. // this.$forceUpdate()
  1502. // } else if (
  1503. // this.weighingList.grossWeight / 1000 > 50 ||
  1504. // this.weighingList.grossWeight / 1000 < 65
  1505. // ) {
  1506. // this.weighingList.receivableWeighingFee = 150
  1507. // this.weighingList.actualWeighingFee = 150
  1508. // } else if (
  1509. // this.weighingList.grossWeight / 1000 > 65 ||
  1510. // this.weighingList.grossWeight / 1000 < 75
  1511. // ) {
  1512. // this.weighingList.receivableWeighingFee = 170
  1513. // this.weighingList.actualWeighingFee = 170
  1514. // } else if (
  1515. // this.weighingList.grossWeight / 1000 > 75 ||
  1516. // this.weighingList.grossWeight / 1000 < 80
  1517. // ) {
  1518. // this.weighingList.receivableWeighingFee = 190
  1519. // this.weighingList.actualWeighingFee = 190
  1520. // } else if (
  1521. // this.weighingList.grossWeight / 1000 > 80 ||
  1522. // this.weighingList.grossWeight / 1000 < 85
  1523. // ) {
  1524. // this.weighingList.receivableWeighingFee = 210
  1525. // this.weighingList.actualWeighingFee = 210
  1526. // } else if (
  1527. // this.weighingList.grossWeight / 1000 > 85 ||
  1528. // this.weighingList.grossWeight / 1000 < 95
  1529. // ) {
  1530. // this.weighingList.receivableWeighingFee = 240
  1531. // this.weighingList.actualWeighingFee = 240
  1532. // } else if (
  1533. // this.weighingList.grossWeight / 1000 > 95 ||
  1534. // this.weighingList.grossWeight / 1000 < 105
  1535. // ) {
  1536. // this.weighingList.receivableWeighingFee = 260
  1537. // this.weighingList.actualWeighingFee = 260
  1538. // } else if (
  1539. // this.weighingList.grossWeight / 1000 > 105 ||
  1540. // this.weighingList.grossWeight / 1000 < 150
  1541. // ) {
  1542. // this.weighingList.receivableWeighingFee = 300
  1543. // this.weighingList.actualWeighingFee = 300
  1544. // }
  1545. // } else if (this.weighingList.carModel == '挂车') {
  1546. // if (this.weighingList.grossWeight / 1000 < 50) {
  1547. // this.weighingList.receivableWeighingFee = 180
  1548. // this.weighingList.actualWeighingFee = 180
  1549. // } else if (
  1550. // this.weighingList.grossWeight / 1000 > 50 ||
  1551. // this.weighingList.grossWeight / 1000 < 65
  1552. // ) {
  1553. // this.weighingList.receivableWeighingFee = 200
  1554. // this.weighingList.actualWeighingFee = 200
  1555. // } else if (
  1556. // this.weighingList.grossWeight / 1000 > 65 ||
  1557. // this.weighingList.grossWeight / 1000 < 75
  1558. // ) {
  1559. // this.weighingList.receivableWeighingFee = 250
  1560. // this.weighingList.actualWeighingFee = 250
  1561. // } else if (
  1562. // this.weighingList.grossWeight / 1000 > 75 ||
  1563. // this.weighingList.grossWeight / 1000 < 85
  1564. // ) {
  1565. // this.weighingList.receivableWeighingFee = 350
  1566. // this.weighingList.actualWeighingFee = 350
  1567. // } else if (
  1568. // this.weighingList.grossWeight / 1000 > 85 ||
  1569. // this.weighingList.grossWeight / 1000 < 95
  1570. // ) {
  1571. // this.weighingList.receivableWeighingFee = 400
  1572. // this.weighingList.actualWeighingFee = 400
  1573. // } else if (
  1574. // this.weighingList.grossWeight / 1000 > 95 ||
  1575. // this.weighingList.grossWeight / 1000 < 105
  1576. // ) {
  1577. // this.weighingList.receivableWeighingFee = 450
  1578. // this.weighingList.actualWeighingFee = 450
  1579. // } else if (
  1580. // this.weighingList.grossWeight / 1000 > 105 ||
  1581. // this.weighingList.grossWeight / 1000 < 120
  1582. // ) {
  1583. // this.weighingList.receivableWeighingFee = 500
  1584. // this.weighingList.actualWeighingFee = 500
  1585. // } else if (
  1586. // this.weighingList.grossWeight / 1000 > 120 ||
  1587. // this.weighingList.grossWeight / 1000 < 130
  1588. // ) {
  1589. // this.weighingList.receivableWeighingFee = 550
  1590. // this.weighingList.actualWeighingFee = 550
  1591. // } else if (
  1592. // this.weighingList.grossWeight / 1000 > 130 ||
  1593. // this.weighingList.grossWeight / 1000 < 150
  1594. // ) {
  1595. // this.weighingList.receivableWeighingFee = 700
  1596. // this.weighingList.actualWeighingFee = 700
  1597. // }
  1598. // } else if (this.weighingList.carModel == '冷藏箱(不抠箱)') {
  1599. // if (this.weighingList.grossWeight / 1000 < 50) {
  1600. // this.weighingList.receivableWeighingFee = 120
  1601. // this.weighingList.actualWeighingFee = 120
  1602. // } else if (
  1603. // this.weighingList.grossWeight / 1000 > 50 ||
  1604. // this.weighingList.grossWeight / 1000 < 65
  1605. // ) {
  1606. // this.weighingList.receivableWeighingFee = 150
  1607. // this.weighingList.actualWeighingFee = 150
  1608. // } else if (
  1609. // this.weighingList.grossWeight / 1000 > 65 ||
  1610. // this.weighingList.grossWeight / 1000 < 75
  1611. // ) {
  1612. // this.weighingList.receivableWeighingFee = 170
  1613. // this.weighingList.actualWeighingFee = 170
  1614. // } else if (
  1615. // this.weighingList.grossWeight / 1000 > 75 ||
  1616. // this.weighingList.grossWeight / 1000 < 80
  1617. // ) {
  1618. // this.weighingList.receivableWeighingFee = 190
  1619. // this.weighingList.actualWeighingFee = 190
  1620. // } else if (
  1621. // this.weighingList.grossWeight / 1000 > 80 ||
  1622. // this.weighingList.grossWeight / 1000 < 85
  1623. // ) {
  1624. // this.weighingList.receivableWeighingFee = 210
  1625. // this.weighingList.actualWeighingFee = 210
  1626. // } else if (
  1627. // this.weighingList.grossWeight / 1000 > 85 ||
  1628. // this.weighingList.grossWeight / 1000 < 95
  1629. // ) {
  1630. // this.weighingList.receivableWeighingFee = 240
  1631. // this.weighingList.actualWeighingFee = 240
  1632. // } else if (
  1633. // this.weighingList.grossWeight / 1000 > 95 ||
  1634. // this.weighingList.grossWeight / 1000 < 105
  1635. // ) {
  1636. // this.weighingList.receivableWeighingFee = 260
  1637. // this.weighingList.actualWeighingFee = 260
  1638. // } else if (
  1639. // this.weighingList.grossWeight / 1000 > 105 ||
  1640. // this.weighingList.grossWeight / 1000 < 120
  1641. // ) {
  1642. // this.weighingList.receivableWeighingFee = 300
  1643. // this.weighingList.actualWeighingFee = 300
  1644. // }
  1645. // } else if (this.weighingList.carModel == '冷藏箱(抠箱)') {
  1646. // if (this.weighingList.grossWeight / 1000 < 50) {
  1647. // this.weighingList.receivableWeighingFee = 360
  1648. // this.weighingList.actualWeighingFee = 360
  1649. // } else if (
  1650. // this.weighingList.grossWeight / 1000 > 50 ||
  1651. // this.weighingList.grossWeight / 1000 < 65
  1652. // ) {
  1653. // this.weighingList.receivableWeighingFee = 390
  1654. // this.weighingList.actualWeighingFee = 390
  1655. // } else if (
  1656. // this.weighingList.grossWeight / 1000 > 65 ||
  1657. // this.weighingList.grossWeight / 1000 < 75
  1658. // ) {
  1659. // this.weighingList.receivableWeighingFee = 410
  1660. // this.weighingList.actualWeighingFee = 410
  1661. // } else if (
  1662. // this.weighingList.grossWeight / 1000 > 75 ||
  1663. // this.weighingList.grossWeight / 1000 < 80
  1664. // ) {
  1665. // this.weighingList.receivableWeighingFee = 430
  1666. // this.weighingList.actualWeighingFee = 430
  1667. // } else if (
  1668. // this.weighingList.grossWeight / 1000 > 80 ||
  1669. // this.weighingList.grossWeight / 1000 < 85
  1670. // ) {
  1671. // this.weighingList.receivableWeighingFee = 450
  1672. // this.weighingList.actualWeighingFee = 450
  1673. // } else if (
  1674. // this.weighingList.grossWeight / 1000 > 85 ||
  1675. // this.weighingList.grossWeight / 1000 < 95
  1676. // ) {
  1677. // this.weighingList.receivableWeighingFee = 480
  1678. // this.weighingList.actualWeighingFee = 480
  1679. // } else if (
  1680. // this.weighingList.grossWeight / 1000 > 95 ||
  1681. // this.weighingList.grossWeight / 1000 < 105
  1682. // ) {
  1683. // this.weighingList.receivableWeighingFee = 500
  1684. // this.weighingList.actualWeighingFee = 500
  1685. // } else if (
  1686. // this.weighingList.grossWeight / 1000 > 105 ||
  1687. // this.weighingList.grossWeight / 1000 < 120
  1688. // ) {
  1689. // this.weighingList.receivableWeighingFee = 540
  1690. // this.weighingList.actualWeighingFee = 540
  1691. // }
  1692. // } else {
  1693. // this.weighingList.receivableWeighingFee = ''
  1694. // }
  1695. },
  1696. tabClick(val) {
  1697. this.mListTop = []
  1698. this.mListBottom = []
  1699. this.pListTop = []
  1700. this.pListBottom = []
  1701. this.carWeightInfo.carNumber = ''
  1702. this.weighingList = []
  1703. this.index = val
  1704. if (val == 0) {
  1705. this.information = '毛重'
  1706. this.tpyeNo = '1'
  1707. } else {
  1708. this.tpyeNo = '2'
  1709. this.information = '皮重'
  1710. }
  1711. if (this.tpyeNo == 2 && this.inWarehouseType == 1) { //贸易入库不能二次称皮重(没有已称皮重按钮)
  1712. this.status = 1 //手动更改未称皮重状态
  1713. }
  1714. this.getList()
  1715. },
  1716. setCurrent(row) {
  1717. this.$refs.singleTable.setCurrentRow(row)
  1718. },
  1719. handleCurrentChange(val, oldCurrentRow) {
  1720. this.submitAllow = false
  1721. if (val) {
  1722. this.currentRow = val
  1723. this.carWeightInfo = {
  1724. carNumber: val.carNumber,
  1725. type: this.information,
  1726. weight: val.grossWeight,
  1727. }
  1728. this.weighingList = val
  1729. this.weighingList.donecount = this.weighingList.completedQuantity + '/' + this.weighingList.weight
  1730. if (val.qualityInspectionManagement) {
  1731. this.weighingList.boxNo = val.qualityInspectionManagement.boxNo
  1732. this.weighingList.boxNoOther = val.qualityInspectionManagement.boxNoOther
  1733. this.weighingList.titleNo = val.qualityInspectionManagement.titleNo
  1734. this.weighingList.titleNoOther = val.qualityInspectionManagement.titleNoOther
  1735. if (this.tpyeNo == 2 && this.status == 1 && val && val.qualityInspectionManagement.confirm == 0 && this
  1736. .warehouseName != '克东千丰库'&&localStorage.getItem('ws-pf_compName')!='黑龙江省申融物流管理有限公司') {
  1737. this.submitAllow = true
  1738. this.$message({
  1739. message: '该条质检信息未确认',
  1740. type: 'warning'
  1741. });
  1742. }
  1743. this.paramType = val.qualityInspectionManagement.paramType
  1744. }
  1745. }
  1746. },
  1747. cancel() {
  1748. if (this.reader) {
  1749. this.reader.cancel()
  1750. }
  1751. this.$router.push({
  1752. path: 'weighingManagement',
  1753. })
  1754. },
  1755. calculation(status) {
  1756. // if (this.weighingList.grossWeight && this.weighingList.tare) {
  1757. // this.weighingList.netWeight = this.weighingList.grossWeight - this.weighingList.tare - parseInt(this.weighingList.buckleMiscellaneous)
  1758. // this.weighingList.netWeight = this.weighingList.netWeight.toFixed(2)
  1759. // }
  1760. },
  1761. printSmall() {
  1762. window.open(
  1763. '../../../../static/weightCheck.html?type=1&tableData=' +
  1764. JSON.stringify(this.inspect).replace(/%/g, 'baifenhao'))
  1765. },
  1766. printBig() {
  1767. window.open(
  1768. '../../../../static/weightCheck.html?type=2&tableData=' +
  1769. JSON.stringify(this.inspect).replace(/%/g, 'baifenhao'))
  1770. },
  1771. opendBtn() {
  1772. html2canvas(this.$refs.saveImg.$el).then((canvas) => {
  1773. let dataURL = canvas.toDataURL('image/png')
  1774. this.imgUrl = dataURL
  1775. if (this.imgUrl !== '') {
  1776. let b = this.dataURLtoFile(this.imgUrl, 'printImage')
  1777. let formdata = new FormData()
  1778. formdata.append('file', b)
  1779. axios({
  1780. method: 'post',
  1781. url: this.global.uploadPath,
  1782. data: formdata,
  1783. }).then((response) => {
  1784. //编辑接口
  1785. this.weighingList.pictureAddress = response.data.url
  1786. tare(this.weighingList)
  1787. .toPromise()
  1788. .then((response) => { })
  1789. })
  1790. }
  1791. })
  1792. },
  1793. closeDialog() {
  1794. html2canvas(this.$refs.saveImg.$el).then((canvas) => {
  1795. let dataURL = canvas.toDataURL('image/png')
  1796. this.imgUrl = dataURL
  1797. if (this.imgUrl !== '') {
  1798. let b = this.dataURLtoFile(this.imgUrl, 'printImage')
  1799. let formdata = new FormData()
  1800. formdata.append('file', b)
  1801. axios({
  1802. method: 'post',
  1803. url: this.global.uploadPath,
  1804. data: formdata,
  1805. }).then((response) => {
  1806. //编辑接口
  1807. if (this.inWarehouseType == 1) {
  1808. this.weighingList = this.inOutData
  1809. this.weighingList.pictureAddress = response.data.url
  1810. tare(this.weighingList)
  1811. .toPromise()
  1812. .then((response) => { })
  1813. } else {
  1814. this.weighingList.pictureAddress = response.data.url
  1815. tare(this.weighingList)
  1816. .toPromise()
  1817. .then((response) => { })
  1818. }
  1819. })
  1820. this.dialogTableVisible = true
  1821. }
  1822. })
  1823. this.isShowPrint = false
  1824. },
  1825. closePrint() {
  1826. this.isShowPrint = false
  1827. },
  1828. check(name, type) {
  1829. if (type == 1) {
  1830. for (var _tmp = 0; _tmp < this.ewCustomerOptions.length; _tmp++) {
  1831. if (this.ewCustomerOptions[_tmp].label == name) {
  1832. return false
  1833. }
  1834. }
  1835. return true
  1836. } else if (type == 2) {
  1837. for (var _tmp = 0; _tmp < this.companyNameEWOptions.length; _tmp++) {
  1838. if (this.companyNameEWOptions[_tmp].label == name) {
  1839. return false
  1840. }
  1841. }
  1842. return true
  1843. }else if (type == 3) {
  1844. for (var _tmp = 0; _tmp < this.companyNameOptions.length; _tmp++) {
  1845. console.log(name)
  1846. if (this.companyNameOptions[_tmp].label == name) {
  1847. return false
  1848. }
  1849. }
  1850. return true
  1851. }
  1852. },
  1853. print() {
  1854. if (this.reader) {
  1855. this.reader.cancel()
  1856. }
  1857. if (!this.weighingList.id) {
  1858. this.$message({
  1859. message: '请选择一条已经质检过的数据',
  1860. type: 'warning',
  1861. })
  1862. return
  1863. }
  1864. if (!this.weighingList.grossWeight) {
  1865. this.$message({
  1866. message: '毛重不能为空',
  1867. type: 'warning',
  1868. })
  1869. return
  1870. }
  1871. // if (this.weighingList.grossWeight < 1 || this.weighingList.grossWeight > 200000) {
  1872. // this.$message({
  1873. // message: '毛重输入错误',
  1874. // type: 'warning',
  1875. // })
  1876. // return
  1877. // }
  1878. // if (
  1879. // String(this.weighingList.grossWeight).indexOf('.') != -1 &&
  1880. // String(this.weighingList.grossWeight).length -
  1881. // (String(this.weighingList.grossWeight).indexOf('.') + 1) >
  1882. // 1
  1883. // ) {
  1884. // this.$message({
  1885. // message: '毛重输入错误',
  1886. // type: 'warning',
  1887. // })
  1888. // return
  1889. // }
  1890. if (this.tpyeNo == 2) {
  1891. if (!this.weighingList.tare) {
  1892. this.$message({
  1893. message: '皮重不能为空',
  1894. type: 'warning',
  1895. })
  1896. return
  1897. }
  1898. if (!this.weighingList.tare) {
  1899. this.$message({
  1900. message: '皮重不能为空',
  1901. type: 'warning',
  1902. })
  1903. return
  1904. }
  1905. if (Number(this.weighingList.tare) > Number(this.weighingList.grossWeight)) {
  1906. this.$message({
  1907. message: '皮重不能大于毛重',
  1908. type: 'warning',
  1909. })
  1910. return
  1911. }
  1912. // if (this.weighingList.tare < 1 || this.weighingList.tare > 100000) {
  1913. // this.$message({
  1914. // message: '皮重输入错误',
  1915. // type: 'warning',
  1916. // })
  1917. // return
  1918. // }
  1919. // if (
  1920. // String(this.weighingList.tare).indexOf('.') != -1 &&
  1921. // String(this.weighingList.tare).length -
  1922. // (String(this.weighingList.tare).indexOf('.') + 1) >
  1923. // 1
  1924. // ) {
  1925. // this.$message({
  1926. // message: '皮重输入错误',
  1927. // type: 'warning',
  1928. // })
  1929. // return
  1930. // }
  1931. if (Number(this.weighingList.netWeight < 0)) {
  1932. this.$message({
  1933. message: '净重不能小于0',
  1934. type: 'warning',
  1935. })
  1936. return
  1937. }
  1938. }
  1939. if (this.tpyeNo == 2) {
  1940. if (this.submitAllow) {
  1941. this.$message.error('该条质检信息未确认')
  1942. return
  1943. }
  1944. }
  1945. this.$confirm('确定保存检斤信息?', '提示', {
  1946. confirmButtonText: '确定',
  1947. cancelButtonText: '取消',
  1948. type: 'warning',
  1949. })
  1950. .then(() => {
  1951. this.deptBudgetList.secretaryWeigher =
  1952. localStorage.getItem('ws-pf_staffName')
  1953. var that = this
  1954. var warehousing = {}
  1955. //贸易入库保存需要再走入库接口
  1956. if (this.inWarehouseType == 1) {
  1957. warehousing = JSON.parse(JSON.stringify(this.weighingList))
  1958. // warehousing = this.weighingList
  1959. warehousing.secretaryWeigher = this.deptBudgetList.secretaryWeigher
  1960. warehousing.compId = localStorage.getItem('ws-pf_compId')
  1961. warehousing.inOutFlag = 2
  1962. let _data = JSON.parse(
  1963. localStorage.getItem('winseaview-userInfo')
  1964. )
  1965. warehousing.backOffice = _data.content.showCompName + '-' + _data.content.staffName
  1966. warehousing.grossWeight = this.weighingList.grossWeight
  1967. warehousing.tare = this.weighingList.tare
  1968. warehousing.netWeight = this.weighingList.netWeight
  1969. warehousing.pureWeight = this.weighingList.pureWeight
  1970. warehousing.deductionAmount = this.weighingList.deductionAmount
  1971. warehousing.deductionWeight = this.weighingList.deductionWeight
  1972. warehousing.warehouseInOutDetail = {}
  1973. warehousing.baseId = this.cangid
  1974. delete warehousing.qualityInspectionManagement
  1975. }
  1976. // 毛重
  1977. if (this.tpyeNo == 1) {
  1978. if (this.weighingList.customerNumberCard) {
  1979. if (this.inWarehouseType == 1) { //判断贸易入库提交毛重
  1980. warehousing.grossWeight /= 1000
  1981. warehousing.tare /= 1000
  1982. warehousing.netWeight /= 1000
  1983. warehousing.pureWeight = 1000
  1984. warehousing.deductionAmount *= 1000
  1985. warehousing.deductionWeight /= 1000
  1986. warehousing.statusFlag = 1
  1987. warehousing.inOutFlag = 2
  1988. warehousing.secretaryWeigher = this.deptBudgetList.secretaryWeigher
  1989. warehousing.id = warehousing.warehouseInOutId
  1990. warehousing.warehouseInOutDetail.id = warehousing.inOutDetailId
  1991. warehousing.weighingManagement = this.weighingList
  1992. newSubmit(warehousing)
  1993. .toPromise()
  1994. .then((response) => {
  1995. this.$notify.success({
  1996. title: '成功',
  1997. message: '保存成功',
  1998. })
  1999. this.getList()
  2000. })
  2001. } else { //收购入库
  2002. //毛检保存前进行校验
  2003. var arr = {}
  2004. // if (this.purchasePriceList.length != 0) {
  2005. for (let i = 0; i < this.purchasePriceList.length; i++) {
  2006. if (
  2007. this.weighingList.goodsName ==
  2008. this.purchasePriceList[i].goodsName
  2009. ) {
  2010. arr = JSON.parse(JSON.stringify(this.purchasePriceList[i]))
  2011. arr.saleLimit = this.purchasePriceList[i].saleLimit
  2012. }
  2013. }
  2014. // console.log('1111111',arr)
  2015. if (Object.keys(arr).length != 0) {
  2016. getamount({
  2017. compId: localStorage.getItem('ws-pf_compId'),
  2018. customerNumberCard: this.weighingList.customerNumberCard,
  2019. goodsName: this.weighingList.goodsName,
  2020. })
  2021. .toPromise()
  2022. .then((response) => {
  2023. //累计售粮超上限不能完成毛检保存
  2024. let count = (
  2025. arr.saleLimit -
  2026. response / 1000
  2027. ).toFixed(2)
  2028. if (count - this.weighingList.grossWeight / 1000 < 0) {
  2029. this.$alert(
  2030. '该客户累计销售' +
  2031. this.weighingList.goodsName +
  2032. (response / 1000).toFixed(2) +
  2033. '吨,还可售粮' +
  2034. count +
  2035. '吨',
  2036. '提示', {
  2037. confirmButtonText: '确定',
  2038. // callback: (action) => {
  2039. // this.$message({
  2040. // type: 'info',
  2041. // message: `累计售粮已超出上限`,
  2042. // })
  2043. // },
  2044. })
  2045. }
  2046. //累计售粮没有超上限完成毛检保存
  2047. grossWeight(this.weighingList)
  2048. .toPromise()
  2049. .then((response) => {
  2050. if (this.reader) {
  2051. this.reader.cancel()
  2052. }
  2053. this.$notify.success({
  2054. title: '成功',
  2055. message: '保存成功',
  2056. })
  2057. this.getList()
  2058. })
  2059. })
  2060. return
  2061. }
  2062. else {
  2063. this.$alert(this.weighingList.goodsName + '的收购价格正在审核中,请审核通过后进行操作', {
  2064. confirmButtonText: '确定',
  2065. })
  2066. }
  2067. // }
  2068. // else {
  2069. // this.$message.error('该仓库未设置收购价格或收购价格正在审核中,请审核通过后进行操作')
  2070. // return
  2071. // }
  2072. //累计售粮没有超上限完成毛检保存
  2073. // this.weighingList.relationId = this.relationId;
  2074. // grossWeight(this.weighingList)
  2075. // .toPromise()
  2076. // .then((response) => {
  2077. // if (this.reader) {
  2078. // this.reader.cancel()
  2079. // }
  2080. // this.$notify.success({
  2081. // title: '成功',
  2082. // message: '保存成功',
  2083. // })
  2084. // //贸易入库需要再走入库接口
  2085. // if (this.inWarehouseType == 1) {
  2086. // warehousing.grossWeight /= 1000
  2087. // warehousing.tare /= 1000
  2088. // warehousing.netWeight /= 1000
  2089. // warehousing.pureWeight = 1000
  2090. // warehousing.deductionAmount *= 1000
  2091. // warehousing.deductionWeight /= 1000
  2092. // warehousing.statusFlag = 1
  2093. // warehousing.inOutFlag =2
  2094. // warehousing.id = warehousing.warehouseInOutId
  2095. // warehousing.warehouseInOutDetail.id = warehousing.inOutDetailId
  2096. // addstorageputList(warehousing).toPromise().then((response) => {
  2097. // if (response == 'OK') {
  2098. // this.getList()
  2099. // }
  2100. // })
  2101. // } else {
  2102. // this.getList()
  2103. // }
  2104. // })
  2105. // .catch((response) => {
  2106. // // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  2107. // })
  2108. }
  2109. } else {
  2110. if (this.inWarehouseType == 1) { //贸易入库
  2111. warehousing.grossWeight /= 1000
  2112. warehousing.tare /= 1000
  2113. warehousing.netWeight /= 1000
  2114. warehousing.pureWeight = 1000
  2115. warehousing.deductionAmount *= 1000
  2116. warehousing.deductionWeight /= 1000
  2117. warehousing.statusFlag = 1
  2118. warehousing.inOutFlag = 2
  2119. delete warehousing.status
  2120. warehousing.id = warehousing.warehouseInOutId
  2121. warehousing.secretaryWeigher = this.deptBudgetList.secretaryWeigher
  2122. warehousing.warehouseInOutDetail.id = warehousing.inOutDetailId
  2123. warehousing.weighingManagement = this.weighingList
  2124. newSubmit(warehousing)
  2125. .toPromise()
  2126. .then((response) => {
  2127. this.$notify.success({
  2128. title: '成功',
  2129. message: '保存成功',
  2130. })
  2131. this.getList()
  2132. })
  2133. } else { //收购入库
  2134. for (let i = 0; i < this.purchasePriceList.length; i++) {
  2135. var arr1 = {}
  2136. if (
  2137. this.weighingList.goodsName ==
  2138. this.purchasePriceList[i].goodsName
  2139. ) {
  2140. arr1 = JSON.parse(JSON.stringify(this.purchasePriceList[i]))
  2141. }
  2142. }
  2143. if (Object.keys(arr1).length != 0) {
  2144. grossWeight(this.weighingList)
  2145. .toPromise()
  2146. .then((response) => {
  2147. if (this.reader) {
  2148. this.reader.cancel()
  2149. }
  2150. this.$notify.success({
  2151. title: '成功',
  2152. message: '保存成功',
  2153. })
  2154. this.getList()
  2155. })
  2156. return
  2157. }
  2158. else {
  2159. this.$alert(this.weighingList.goodsName + '的收购价格正在审核中,请审核通过后进行操作', {
  2160. confirmButtonText: '确定',
  2161. })
  2162. }
  2163. }
  2164. // grossWeight(this.weighingList)
  2165. // .toPromise()
  2166. // .then((response) => {
  2167. // if (this.reader) {
  2168. // this.reader.cancel()
  2169. // }
  2170. // this.$notify.success({
  2171. // title: '成功',
  2172. // message: '保存成功',
  2173. // })
  2174. // //贸易入库需要再走入库接口
  2175. // if (this.inWarehouseType == 1) {
  2176. // warehousing.grossWeight /= 1000
  2177. // warehousing.tare /= 1000
  2178. // warehousing.netWeight /= 1000
  2179. // warehousing.pureWeight = 1000
  2180. // warehousing.deductionAmount *= 1000
  2181. // warehousing.deductionWeight /= 1000
  2182. // warehousing.statusFlag = 1
  2183. // warehousing.inOutFlag = 2
  2184. // delete warehousing.status
  2185. // warehousing.id = warehousing.warehouseInOutId
  2186. // warehousing.warehouseInOutDetail.id = warehousing.inOutDetailId
  2187. // addstorageputList(warehousing).toPromise().then((response) => {
  2188. // if (response == 'OK') {
  2189. // this.getList()
  2190. // }
  2191. // })
  2192. // } else {
  2193. // this.getList()
  2194. // }
  2195. // })
  2196. // .catch((response) => {
  2197. // // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  2198. // })
  2199. }
  2200. } else if (this.tpyeNo == 2) {
  2201. //皮重
  2202. // //皮重检斤保存
  2203. // let _url1 = process.env.VUE_APP_BASE_API + '/weighingManagement/api/editTare'
  2204. // //查看结算单
  2205. // let _url2 = process.env.VUE_APP_BASE_API + '/warehouseInOutInfo/getInfo'
  2206. // // 入库添加
  2207. // let _url3 = process.env.VUE_APP_BASE_API + '/warehouseInOutInfo/InOutWarehouse'
  2208. // console.log(this.inWarehouseType)
  2209. //贸易入库需要再走入库接口
  2210. if (this.inWarehouseType == 1) {
  2211. //贸易入库皮检
  2212. getsettleaccout({//查看结算单
  2213. id: this.weighingList.warehouseInOutId
  2214. }).toPromise().then((response) => {
  2215. that.inOutData = response
  2216. that.$set(that.inOutData, 'statusFlag', 3)
  2217. that.$set(that.inOutData, 'grossWeight', warehousing.grossWeight / 1000)
  2218. that.$set(that.inOutData, 'tare', warehousing.tare / 1000)
  2219. that.$set(that.inOutData, 'netWeight', warehousing.netWeight / 1000)
  2220. // that.$set(that.inOutData,'pureWeight',warehousing.pureWeight /1000)
  2221. that.$set(that.inOutData, 'deductionAmount', Number(warehousing.deductionAmount) * 1000)
  2222. that.$set(that.inOutData, 'deductionWeight', warehousing.deductionWeight / 1000)
  2223. that.$set(that.inOutData, 'inOutFlag', 2)
  2224. // that.inOutDate = response
  2225. // that.$set(that.inOutDate)
  2226. // .statusFlag = 3
  2227. // that.inOutDate.grossWeight=warehousing.grossWeight /1000
  2228. // that.inOutDate.tare=warehousing.tare /1000
  2229. // that.inOutDate.netWeight=warehousing.netWeight /1000
  2230. // that.inOutDate.pureWeight=warehousing.pureWeight /1000
  2231. // that.inOutDate.deductionAmount= Number(warehousing.deductionAmount) * 1000
  2232. // that.inOutDate.deductionWeight=warehousing.deductionWeight /1000
  2233. // that.inOutDate.inOutFlag = 2
  2234. // warehousing.statusFlag = 3
  2235. // warehousing.grossWeight /= 1000
  2236. // warehousing.tare /= 1000
  2237. // warehousing.netWeight /= 1000
  2238. // warehousing.pureWeight = 1000
  2239. // warehousing.deductionAmount = Number(warehousing.deductionAmount) * 1000
  2240. // warehousing.deductionWeight /= 1000
  2241. // warehousing.inOutFlag = 2
  2242. // console.log(that.weighingList)
  2243. // warehousing.inOutTypeKey = that.weighingList.inOutTypeKey
  2244. // warehousing.inOutType = that.weighingList.inOutType
  2245. // warehousing.deductionAmount = that.weighingList.deductionAmount
  2246. // warehousing.id = warehousing.warehouseInOutId
  2247. // // delete that.inOutDate.status
  2248. // that.inOutDate = Object.assign(that.inOutDate, warehousing)
  2249. that.weighingList.warehouseId = that.cangid;
  2250. that.weighingList.skinInspector = localStorage.getItem('ws-pf_staffName')
  2251. that.inOutData.weighingManagement = that.weighingList
  2252. newSubmit(that.inOutData).toPromise().then((response) => { //检斤新接口
  2253. this.$notify.success({
  2254. title: '成功',
  2255. message: '保存成功',
  2256. })
  2257. this.idPrint = response
  2258. if (this.weighingList.serviceManagementType==1&&( this.warehouseName == '鲅鱼圈金信库' ||
  2259. this
  2260. .warehouseName == '洮南向阳乡金昊' || this
  2261. .warehouseName == '白城内陆港' || this
  2262. .warehouseName == '山东园丰库'|| this
  2263. .warehouseName == '杜尔伯特家禾库'||this.warehouseName=='甘南宏旗库'||this.warehouseName=='洮南兴旺库2023.10-2024.9'||this.warehouseName=='洮南新友谊兴旺库'||this.warehouseName=='佳屹农仓储库')) {
  2264. if (this.weighingList.seller && this.weighingList.buyer) {
  2265. let cang = {}
  2266. cang.value = this.weighingList.seller
  2267. cang.label = this.weighingList.seller
  2268. let cang1 = {}
  2269. cang1.value = this.weighingList.buyer
  2270. cang1.label = this.weighingList.buyer
  2271. if(this.warehouseName=='佳屹农仓储库'){
  2272. this.customerOptions=[{label:this.weighingList.customer,value:this.weighingList.customer}]
  2273. if (this.check(this.weighingList.buyer, 3)) {
  2274. this.companyNameEWOptions.push(cang1)
  2275. this.companyName=this.weighingList.buyer
  2276. }
  2277. }else{
  2278. if (this.check(this.weighingList.buyer, 2)) {
  2279. this.companyNameEWOptions.push(cang1)
  2280. }
  2281. }
  2282. if (this.check(this.weighingList.seller, 1)) {
  2283. this.ewCustomerOptions.push(cang)
  2284. }
  2285. }
  2286. }
  2287. if(this.warehouseName=='鲅鱼圈金信库'){
  2288. getbinNumber({id:that.cangid}).toPromise().then((response) => {
  2289. this.binNumberList1=response.warehousePositionInfoList
  2290. this.isShowPrintType = true
  2291. })
  2292. }else{
  2293. this.isShowPrintType = true
  2294. }
  2295. this.getList()
  2296. })
  2297. // addstorageputList(that.inOutData).toPromise().then((response) => {
  2298. // this.weighingList.warehouseId = this.cangid;
  2299. // this.weighingList.skinInspector = localStorage.getItem('ws-pf_staffName')
  2300. // tare(this.weighingList)
  2301. // .toPromise()
  2302. // .then((response) => {
  2303. // console.log(1111)
  2304. // // if (this.reader) {
  2305. // // this.reader.cancel()
  2306. // // }
  2307. // this.$notify.success({
  2308. // title: '成功',
  2309. // message: '保存成功',
  2310. // })
  2311. // this.idPrint = response
  2312. // if (this.weighingList.serviceManagementType == 1 && (this.warehouseName == '鲅鱼圈金信库' || this
  2313. // .warehouseName == '洮南向阳乡金昊' || this
  2314. // .warehouseName == '白城内陆港')) {
  2315. // if (this.weighingList.seller && this.weighingList.buyer) {
  2316. // let cang = {}
  2317. // cang.value = this.weighingList.seller
  2318. // cang.label = this.weighingList.seller
  2319. // if (this.check(this.weighingList.seller, 1)) {
  2320. // this.ewCustomerOptions.push(cang)
  2321. // }
  2322. // let cang1 = {}
  2323. // cang1.value = this.weighingList.buyer
  2324. // cang1.label = this.weighingList.buyer
  2325. // if (this.check(this.weighingList.buyer, 2)) {
  2326. // this.companyNameEWOptions.push(cang1)
  2327. // }
  2328. // }
  2329. // }
  2330. // this.isShowPrintType = true
  2331. // this.getList()
  2332. // })
  2333. // .catch((response) => {})
  2334. // })
  2335. })
  2336. } else { //收购入库皮检
  2337. var arr2 = {}
  2338. for (let i = 0; i < this.purchasePriceList.length; i++) {
  2339. if (
  2340. this.weighingList.goodsName ==
  2341. this.purchasePriceList[i].goodsName
  2342. ) {
  2343. arr2 = JSON.parse(JSON.stringify(this.purchasePriceList[i]))
  2344. arr2.saleLimit = this.purchasePriceList[i].saleLimit
  2345. }
  2346. }
  2347. if (Object.keys(arr2).length != 0) {
  2348. getamount({
  2349. compId: localStorage.getItem('ws-pf_compId'),
  2350. customerNumberCard: this.weighingList.customerNumberCard,
  2351. goodsName: this.weighingList.goodsName,
  2352. })
  2353. .toPromise()
  2354. .then((response) => {
  2355. //累计售粮超上限不能完成皮检保存
  2356. let count = (
  2357. arr2.saleLimit - response / 1000
  2358. ).toFixed(2)
  2359. if (count - this.weighingList.netWeight / 1000 < 0) {
  2360. this.$alert(
  2361. '该客户累计销售' +
  2362. this.weighingList.goodsName +
  2363. (response / 1000).toFixed(2) +
  2364. '吨,还可售粮' +
  2365. count +
  2366. '吨,当前重量已超出售粮上限' + ((this.weighingList.netWeight / 1000).toFixed(2) - count).toFixed(2) + '吨',
  2367. '提示',
  2368. {
  2369. confirmButtonText: '确定',
  2370. callback: (action) => {
  2371. this.$message({
  2372. type: 'info',
  2373. message: `累计售粮已超出上限`,
  2374. })
  2375. },
  2376. })
  2377. }
  2378. else {
  2379. //累计售粮没有超上限完成皮检保存
  2380. tare(this.weighingList)
  2381. .toPromise()
  2382. .then((response) => {
  2383. // if (this.reader) {
  2384. // this.reader.cancel()
  2385. // }
  2386. this.$notify.success({
  2387. title: '成功',
  2388. message: '保存成功',
  2389. })
  2390. this.idPrint = response
  2391. this.serviceManagementType=this.weighingList.serviceManagementType
  2392. if(this.weighingList.serviceManagementType == 3){
  2393. this.customerOptions=[{label:this.weighingList.customer,value:this.weighingList.customer}]
  2394. this.customerOptions.push({label:this.weighingList.seller,value:this.weighingList.seller})
  2395. this.customer=this.weighingList.customer
  2396. }
  2397. if (this.weighingList.serviceManagementType == 1 && (this.warehouseName == '鲅鱼圈金信库' || this
  2398. .warehouseName == '洮南向阳乡金昊' || this
  2399. .warehouseName == '白城内陆港' || this
  2400. .warehouseName == '山东园丰库' || this
  2401. .warehouseName == '杜尔伯特家禾库' || this.warehouseName == '甘南宏旗库' ||this.warehouseName == '洮南兴旺库2023.10-2024.9' || this.warehouseName == '洮南新友谊兴旺库'||this.warehouseName=='佳屹农仓储库')) {
  2402. if (this.weighingList.seller && this.weighingList.buyer) {
  2403. let cang = {}
  2404. cang.value = this.weighingList.seller
  2405. cang.label = this.weighingList.seller
  2406. // if (this.check(this.weighingList.seller, 1)) {
  2407. // this.ewCustomerOptions.push(cang)
  2408. // }
  2409. if(this.warehouseName=='佳屹农仓储库'){
  2410. if (this.check(this.weighingList.seller, 3)) {
  2411. this.companyNameOptions.push(cang)
  2412. this.companyName=this.weighingList.seller
  2413. }
  2414. }else{
  2415. if (this.check(this.weighingList.seller, 1)) {
  2416. this.ewCustomerOptions.push(cang)
  2417. }
  2418. }
  2419. let cang1 = {}
  2420. cang1.value = this.weighingList.buyer
  2421. cang1.label = this.weighingList.buyer
  2422. if (this.check(this.weighingList.buyer, 2)) {
  2423. this.companyNameEWOptions.push(cang1)
  2424. }
  2425. }
  2426. }
  2427. this.isShowPrintType = true
  2428. this.getList()
  2429. })
  2430. .catch((response) => { })
  2431. }
  2432. })
  2433. return
  2434. }
  2435. }
  2436. }
  2437. })
  2438. .catch(() => {
  2439. return false
  2440. })
  2441. },
  2442. },
  2443. }
  2444. </script>
  2445. <style lang="scss" scoped>
  2446. /deep/.el-pagination {
  2447. margin-bottom: 0;
  2448. }
  2449. .stocks {
  2450. position: relative;
  2451. /deep/.el-select {
  2452. width: 30.33%;
  2453. }
  2454. /deep/.el-select>.el-input {
  2455. display: inline-block;
  2456. }
  2457. /deep/>.el-input {
  2458. width: 29.3333%;
  2459. }
  2460. .add,
  2461. .del {
  2462. position: absolute;
  2463. right: 16px;
  2464. transform: translateY(20%);
  2465. width: 20px;
  2466. height: 20px;
  2467. }
  2468. .del {
  2469. right: -7px;
  2470. }
  2471. }
  2472. .center {
  2473. background: #E8ECF6;
  2474. }
  2475. .ws-info-table {
  2476. border: none;
  2477. // height: 610px;
  2478. margin-top: 30px;
  2479. }
  2480. .ws-info-table .el-form-item {
  2481. width: 100%;
  2482. border: none;
  2483. }
  2484. .formItem {
  2485. width: 100%;
  2486. display: inline;
  2487. }
  2488. /deep/.ws-info-table .el-form-item .el-form-item__label {
  2489. width: 25%;
  2490. text-align: center;
  2491. background: #ffffff;
  2492. font-size: 14px;
  2493. color: #8890b1;
  2494. }
  2495. /deep/.ws-info-table .el-form-item .el-form-item__content {
  2496. border: none;
  2497. }
  2498. .title {
  2499. font-size: 16px;
  2500. font-weight: 600;
  2501. margin: 10px;
  2502. }
  2503. .substance {
  2504. padding-bottom: 20px;
  2505. overflow-x: scroll;
  2506. .active {
  2507. background: #5878e8;
  2508. color: white;
  2509. }
  2510. // background: #ffffff;
  2511. width: 100%;
  2512. height: calc(100vh - 125px);
  2513. border-radius: 4px;
  2514. margin: 0 auto;
  2515. display: flex;
  2516. .left {
  2517. width: 30%;
  2518. min-width: 560px;
  2519. position: relative;
  2520. // padding:0 20px 20px 20px;
  2521. .top {
  2522. background: black;
  2523. font-size: 32px;
  2524. text-align: right;
  2525. padding: 0 10px 0 20px;
  2526. border-radius: 10px;
  2527. margin: 0 20px 20px 20px;
  2528. position: absolute;
  2529. top: 130px;
  2530. width: 91%;
  2531. .zujian {
  2532. position: relative;
  2533. }
  2534. .kg-style {
  2535. font-size: 30px;
  2536. color: red;
  2537. }
  2538. .confirmInfo {
  2539. display: flex;
  2540. color: #2aff7c;
  2541. .car-type {
  2542. text-align: left;
  2543. width: 50%;
  2544. }
  2545. .car-no {
  2546. width: 50%;
  2547. text-align: right;
  2548. }
  2549. }
  2550. .confirmWeight {
  2551. display: flex;
  2552. .titleWeight {
  2553. width: 35%;
  2554. text-align: left;
  2555. line-height: 90px;
  2556. color: red;
  2557. }
  2558. .weight {
  2559. width: 65%;
  2560. text-align: right;
  2561. color: red;
  2562. }
  2563. }
  2564. }
  2565. .bottom {
  2566. // text-align: center;
  2567. background: white;
  2568. margin: 20px 20px 0 20px;
  2569. border-radius: 10px;
  2570. padding-bottom: 20px;
  2571. .img1,
  2572. .img2 {
  2573. width: 200px;
  2574. padding: 20px;
  2575. }
  2576. .video-content {
  2577. width: 100%;
  2578. }
  2579. .video1 {
  2580. text-align: center;
  2581. }
  2582. }
  2583. }
  2584. .right {
  2585. width: 70%;
  2586. // padding: 20px;
  2587. height: 750px;
  2588. border-radius: 10px;
  2589. .tab {
  2590. display: flex;
  2591. margin-bottom: 5px;
  2592. .tab-item {
  2593. padding: 5px 10px;
  2594. margin-right: 20px;
  2595. border-radius: 10px;
  2596. }
  2597. .in_css,
  2598. .in_cssno,
  2599. .in_cssno1,
  2600. .in_css1 {
  2601. width: 80px;
  2602. height: 32px;
  2603. padding: 3px 10px;
  2604. border-radius: 4px;
  2605. margin-right: 10px;
  2606. font-size: 15px;
  2607. line-height: 28px;
  2608. text-align: center;
  2609. font-weight: 600;
  2610. }
  2611. .in_css:hover,
  2612. .in_cssno:hover,
  2613. .in_cssno1:hover,
  2614. .in_css1:hover {
  2615. cursor: pointer;
  2616. }
  2617. .in_css {
  2618. color: #5878E8;
  2619. background: #F0F6FF;
  2620. }
  2621. .in_css1 {
  2622. color: #5878E8;
  2623. }
  2624. .in_cssno1 {
  2625. color: #8890B1;
  2626. }
  2627. /deep/.el-badge__content.is-fixed {
  2628. top: 3px;
  2629. right: 26px;
  2630. }
  2631. }
  2632. .weigh_btn {
  2633. height: 35px;
  2634. border-bottom: 1px solid #D8DCE6;
  2635. }
  2636. .table-title {
  2637. background: red;
  2638. .top {
  2639. display: inline-block;
  2640. width: 48%;
  2641. .top-item {
  2642. display: inline-block;
  2643. }
  2644. }
  2645. }
  2646. .table {
  2647. background: red;
  2648. .table-content {
  2649. background: green;
  2650. display: inline-block;
  2651. width: 50%;
  2652. .table-content-item {
  2653. display: inline-block;
  2654. }
  2655. }
  2656. }
  2657. }
  2658. }
  2659. /deep/.el-table .el-table__header .cell,
  2660. /deep/.el-table .el-table__body .cell {
  2661. text-align: center;
  2662. font-size: 16px;
  2663. // background: #f6f7fc;
  2664. }
  2665. // /deep/.el-table td {
  2666. // background: #e7e8ef;
  2667. // }
  2668. /deep/.el-table--enable-row-transition .el-table__body td {
  2669. text-align: center;
  2670. }
  2671. .bg-left {
  2672. height: 60px;
  2673. background: #F6F7FC;
  2674. // padding-left: 30px;
  2675. line-height: 60px;
  2676. }
  2677. .titleup {
  2678. position: relative;
  2679. }
  2680. .titleup::before {
  2681. content: '';
  2682. display: inline-block;
  2683. width: 5px;
  2684. height: 30px;
  2685. background: #5473e8;
  2686. position: absolute;
  2687. left: 0;
  2688. top: 14px;
  2689. }
  2690. .butCss {
  2691. // opacity: 0;
  2692. margin-left: 20px;
  2693. color: #5473E8;
  2694. background: #ffffff;
  2695. }
  2696. /deep/.el-dialog__title {
  2697. font-size: 24px !important;
  2698. }
  2699. /deep/.el-dialog__header {
  2700. text-align: center !important;
  2701. padding: 10px 0 !important;
  2702. height: auto !important;
  2703. }
  2704. .weight {
  2705. font-size: 68px;
  2706. }
  2707. .right-content {
  2708. display: flex;
  2709. height: calc(100vh - 25vh);
  2710. .left1 {
  2711. position: relative;
  2712. background: #ffffff;
  2713. // padding: 10px;
  2714. border-radius: 4px;
  2715. min-width: 355px;
  2716. width: 40%;
  2717. min-height: 760px;
  2718. .but {
  2719. position: absolute;
  2720. left: 0;
  2721. right: 0;
  2722. margin: auto;
  2723. justify-content: flex-end;
  2724. display: flex;
  2725. margin-right: 17px;
  2726. bottom: 20px;
  2727. }
  2728. .weightInfo {
  2729. padding: 10px;
  2730. }
  2731. /deep/.el-input.is-disabled .el-input__inner {
  2732. background: #F5F7FA !important;
  2733. border: none;
  2734. }
  2735. }
  2736. .titlesign::before {
  2737. content: '';
  2738. display: inline-block;
  2739. width: 5px;
  2740. height: 30px;
  2741. background: #5473e8;
  2742. position: absolute;
  2743. left: 0;
  2744. top: 14px;
  2745. }
  2746. .weightTitle {
  2747. width: 100%;
  2748. height: 60px;
  2749. background: #F6F7FC;
  2750. margin-bottom: 6px;
  2751. border-radius: 4px;
  2752. line-height: 60px;
  2753. }
  2754. .left {
  2755. width: 40%;
  2756. }
  2757. .right {
  2758. width: 60%;
  2759. }
  2760. }
  2761. .car-right {
  2762. width: 60%;
  2763. background: #ffffff;
  2764. padding: 10px;
  2765. margin-left: 20px;
  2766. border-radius: 4px;
  2767. min-height: 760px;
  2768. }
  2769. .screen {
  2770. margin-bottom: 10px;
  2771. width: 100%;
  2772. display: flex;
  2773. .screen_left {
  2774. min-width: 215px;
  2775. width: 30%;
  2776. display: flex;
  2777. .select_css,
  2778. .noselect_css {
  2779. width: 76px;
  2780. height: 32px;
  2781. padding: 3px 10px;
  2782. border-radius: 4px;
  2783. margin-right: 10px;
  2784. font-size: 14px;
  2785. line-height: 28px;
  2786. text-align: center;
  2787. }
  2788. .select_css:hover,
  2789. .noselect_css:hover {
  2790. cursor: pointer;
  2791. }
  2792. .select_css {
  2793. color: #5878E8;
  2794. background: #F0F6FF;
  2795. }
  2796. }
  2797. .screen_right {
  2798. width: 70%;
  2799. justify-content: flex-end;
  2800. display: flex;
  2801. margin-right: 30px;
  2802. .jilu {
  2803. color: #5878E8;
  2804. }
  2805. .jilu:hover {
  2806. cursor: pointer;
  2807. }
  2808. }
  2809. /deep/.el-select {
  2810. width: 50%;
  2811. }
  2812. }
  2813. .frame {
  2814. border-bottom: 1px solid #D8DCE6;
  2815. height: 40px;
  2816. }
  2817. .word_css {
  2818. margin-left: 15px;
  2819. font-size: 18px;
  2820. font-weight: 600;
  2821. text-align: left;
  2822. }
  2823. .mask {
  2824. background: black;
  2825. width: 100vw;
  2826. height: 100vh;
  2827. position: fixed;
  2828. top: 0;
  2829. z-index: 99;
  2830. opacity: 0.3;
  2831. }
  2832. .print-type-title {
  2833. text-align: center;
  2834. font-size: 18px;
  2835. margin: 20px;
  2836. }
  2837. .bottom-btn {
  2838. display: flex;
  2839. margin-top: 20px;
  2840. justify-content: space-around;
  2841. }
  2842. .print-type-checkbox {
  2843. // padding-left: 20px;
  2844. }
  2845. .print-type {
  2846. position: absolute;
  2847. top: 0;
  2848. bottom: 0;
  2849. left: 0;
  2850. right: 0;
  2851. margin: auto;
  2852. width: 440px;
  2853. height: 446px;
  2854. background: white;
  2855. border-radius: 10px;
  2856. z-index: 999;
  2857. }
  2858. /deep/.el-radio-group {
  2859. width: 100%;
  2860. display: flex;
  2861. }
  2862. /deep/.el-radio__label {
  2863. font-size: 20px;
  2864. }
  2865. /deep/.el-radio__inner {
  2866. // background: red;
  2867. height: 20px;
  2868. width: 20px;
  2869. }
  2870. .label-width {
  2871. width: 100%;
  2872. text-align: center;
  2873. font-size: 20px;
  2874. }
  2875. .show-excel {
  2876. opacity: 0;
  2877. }
  2878. /deep/.base_header_layout .find.el-button--primary {
  2879. width: 30px;
  2880. border-top-left-radius: 0px;
  2881. border-bottom-left-radius: 0px;
  2882. }
  2883. /deep/.base_header_layout .findinput input {
  2884. border-top-right-radius: 0px;
  2885. border-bottom-right-radius: 0px;
  2886. }
  2887. .ew-print {
  2888. padding: 0 20px;
  2889. margin-top: 10px;
  2890. // display: flex;
  2891. // justify-content: space-between;
  2892. // align-content: center;
  2893. .row {
  2894. display: flex;
  2895. margin-top: 10px;
  2896. align-items: center;
  2897. }
  2898. }
  2899. .sh-address {
  2900. display: flex;
  2901. }
  2902. .print-type-ew {
  2903. display: flex;
  2904. justify-content: space-between;
  2905. padding: 0 20px;
  2906. /deep/.el-radio__label {
  2907. font-size: 14px;
  2908. }
  2909. margin-top: 10px;
  2910. }
  2911. /deep/.el-table .cell {
  2912. text-align: center;
  2913. }
  2914. .shdw-style {
  2915. display: flex;
  2916. justify-content: space-between;
  2917. align-items: center;
  2918. padding: 0 20px;
  2919. margin-top: 20px;
  2920. }
  2921. /deep/.el-table__body .current-row td {
  2922. border-top: 4px solid #2aff7c;
  2923. border-bottom: 4px solid #2aff7c;
  2924. }
  2925. /deep/.el-table__body .current-row td:first-child {
  2926. border-left: 4px solid #2aff7c;
  2927. // border-bottom: 1px solid #2aff7c ;
  2928. }
  2929. /deep/.el-table__body .current-row td:last-child {
  2930. border-right: 4px solid #2aff7c;
  2931. // border-bottom: 1px solid #2aff7c ;
  2932. }
  2933. .canvas {
  2934. width: 300px;
  2935. height: 300px
  2936. }
  2937. </style>