weighingManagementNew.vue 119 KB

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