warehouseManagementTare.vue 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886
  1. // 出库登记
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="20">
  6. <h2 class="bg-left title">{{ information }}</h2>
  7. </el-col>
  8. <el-col :span="4" class="bg-right">
  9. <el-button class="bg-bottom" type="primary" size="small" @click="revert()"><img width="6" height="10"
  10. style="vertical-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
  11. </el-button>
  12. </el-col>
  13. </el-row>
  14. <ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
  15. <div class="basicInformation">
  16. <h2>
  17. {{ deptBudgetList.warehouseName }}
  18. <span class="position" v-show="this.deptBudgetList.warehouseType == 1">
  19. {{ deptBudgetList.binNumber }}仓位
  20. </span>
  21. <span v-show="this.deptBudgetList.warehouseType == 2">(临)</span>
  22. </h2>
  23. <div class="balance-row">
  24. <BalanceAlert v-if='isShowBalance' class="left" ref="weightChild" :deptBudgetList1='deptBudgetList'
  25. :information='information' v-on:balanceListen="setVal"></BalanceAlert>
  26. <div class="top">
  27. <div class="car-type">皮重</div>
  28. <!-- <div class="weight">{{deptBudgetList.grossWeight}} <span class="kg-style">kg</span></div> -->
  29. <div class="weight">
  30. {{ deptBudgetList.tare }} <span class="kg-style">kg</span>
  31. </div>
  32. <div class="car-no">{{ deptBudgetList.carNo }}</div>
  33. </div>
  34. </div>
  35. <div class="small-title">基本信息</div>
  36. <div class='flex'>
  37. <div class='left' style='width:66.6666%;'>
  38. <ws-info-table>
  39. <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
  40. <el-select filterable clearable v-model="deptBudgetList.inOutTaskNo" placeholder="请选择任务编号"
  41. class="typeselect" @change="contractNoChange">
  42. <el-option v-for="item in deptBudgetList1" :key="item.inOutTaskNo" :label="item.inOutTaskNo"
  43. :value="item.inOutTaskNo" />
  44. </el-select>
  45. </ws-form-item>
  46. <ws-form-item label="毛重(公斤)" span="1" prop="grossWeight">
  47. <ws-input :disabled="allowEdit" @input="grossWeightchange" v-model="deptBudgetList.grossWeight"
  48. type="number" @mousewheel.native.prevent placeholder="请输入毛重" maxlength="20" size="small" />
  49. <el-button type="primary" v-if="information == '毛重检斤'" @click="openPort">重新获取</el-button>
  50. </ws-form-item>
  51. <ws-form-item label="合同编号" span="1" prop="contractNo">
  52. <ws-select disabled v-model="deptBudgetList.contractNo" class="typeselect" @change="contractNoChange1">
  53. <ws-option v-for="item in outContractNo" :key="item.constKey" :label="item.contractNo"
  54. :value="item.contractNo" />
  55. </ws-select>
  56. </ws-form-item>
  57. <ws-form-item label="皮重(公斤)" span="1" prop="tare" class="readonly">
  58. <ws-input :disabled="allowEdit" @input="tarechange" v-model="deptBudgetList.tare" type="number"
  59. @mousewheel.native.prevent placeholder="请输入皮重" maxlength="100" size="small" />
  60. <el-button type="primary" v-if="information == '皮重检斤'" @click="openPort">重新获取</el-button>
  61. </ws-form-item>
  62. <ws-form-item label="提示" span="1" prop="tips">
  63. <ws-input onmouseover="this.title=this.value" v-model="deptBudgetList.tips" maxlength="20"
  64. size="small" />
  65. </ws-form-item>
  66. <ws-form-item label="净重(公斤)" span="1" prop="netWeight">
  67. <ws-input disabled v-model="deptBudgetList.netWeight" placeholder="不可编辑,自动计算" maxlength="120"
  68. size="small" />
  69. </ws-form-item>
  70. <ws-form-item label="货名" span="1">
  71. <ws-select disabled v-model="deptBudgetList.goodsName" placeholder class="typeselect"
  72. @change="selectgoodsName">
  73. <ws-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
  74. :value="item.constValue" />
  75. </ws-select>
  76. </ws-form-item>
  77. <ws-form-item label="出库日期" span="1" prop="inOutDate" class="deliverydate">
  78. <ws-date-picker v-model="deptBudgetList.inOutDate" type="date" placeholder="请选择出库日期"
  79. value-format="yyyy-MM-dd" />
  80. </ws-form-item>
  81. <ws-form-item label="类型" span="1" prop="type">
  82. <ws-select disabled v-model="deptBudgetList.type" @change="typeChange">
  83. <ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
  84. </ws-select>
  85. </ws-form-item>
  86. <ws-form-item label="出库类型" span="1">
  87. <ws-input v-model="deptBudgetList.inOutType" class="right-bottom" :disabled="isSelectType"
  88. placeholder="暂无" />
  89. </ws-form-item>
  90. <ws-form-item v-if="deptBudgetList.type == '潮粮'" label="扣重比" span="1" prop="buckleWeightRatio"
  91. class="readonly">
  92. <ws-input @input="pureweight" v-model="deptBudgetList.buckleWeightRatio" type="number"
  93. @mousewheel.native.prevent placeholder="请输入扣重比" maxlength="100" size="small" />
  94. </ws-form-item>
  95. <!-- <ws-form-item
  96. v-if="deptBudgetList.type == '潮粮'"
  97. label="干粮水分占比"
  98. span="1"
  99. prop="solidGrainWater"
  100. class="readonly"
  101. >
  102. <ws-input
  103. @input="pureweight"
  104. v-model="deptBudgetList.solidGrainWater"
  105. type="number"
  106. @mousewheel.native.prevent
  107. placeholder="请输入干粮水分占比"
  108. maxlength="100"
  109. size="small"
  110. />
  111. </ws-form-item>
  112. <ws-form-item
  113. v-if="deptBudgetList.type == '潮粮'"
  114. label="潮粮水分占比"
  115. span="1"
  116. prop="tidalGrainWater"
  117. class="readonly"
  118. >
  119. <ws-input
  120. @input="pureweight"
  121. v-model="deptBudgetList.tidalGrainWater"
  122. type="number"
  123. @mousewheel.native.prevent
  124. placeholder="请输入潮粮水分占比"
  125. maxlength="100"
  126. size="small"
  127. />
  128. </ws-form-item>
  129. <ws-form-item
  130. v-if="deptBudgetList.type == '潮粮'"
  131. label="纯重"
  132. span="1"
  133. prop="pureWeight"
  134. class="readonly"
  135. >
  136. <ws-input
  137. disabled
  138. v-model="deptBudgetList.pureWeight"
  139. type="number"
  140. @mousewheel.native.prevent
  141. placeholder="不可编辑,自动计算"
  142. maxlength="100"
  143. size="small"
  144. />
  145. </ws-form-item> -->
  146. <ws-form-item label="品级" span="1" class="readonly">
  147. <ws-select v-model="deptBudgetList.grade" placeholder="" class="typeselect"
  148. @change="selectpackingMethod">
  149. <ws-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
  150. :value="item.constValue" />
  151. </ws-select>
  152. </ws-form-item>
  153. <ws-form-item label="经办人" span="1" prop="agent">
  154. <el-select v-model="deptBudgetList.agent" placeholder="请选择经办人" filterable clearable
  155. @change="selectstaff">
  156. <el-option v-for="item in options" :key="item.value" :label="item.staffName"
  157. :value="item.staffName" />
  158. </el-select>
  159. </ws-form-item>
  160. </ws-info-table>
  161. </div>
  162. <div class='right' style='width:33.3333%;'>
  163. <ws-info-table>
  164. <ws-form-item label="运输方式" span="1" prop="outType">
  165. <el-select v-model="deptBudgetList.outType" placeholder="请选择运输方式">
  166. <el-option v-for="item in multiSelector" :key="item.value" :label="item.name" :value="item.name" />
  167. </el-select>
  168. </ws-form-item>
  169. <ws-form-item label="车牌号" span="1" prop="carNo" v-if="
  170. deptBudgetList.outType == '汽运' ||
  171. deptBudgetList.outType == '集装箱船'
  172. ">
  173. <ws-input v-if="!carstatus" v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7"
  174. size="small" />
  175. <el-select v-if="carstatus" filterable clearable :filter-method="dataFilter2"
  176. v-model="deptBudgetList.carNo" placeholder="请选择车牌号" class="typeselect" @change="carChange">
  177. <el-option v-for="item in options2" :key="item.constKey"
  178. :label="item.carNo + '(' + item.tranCarNo + ')'" :value="item.carNo" />
  179. </el-select>
  180. </ws-form-item>
  181. <ws-form-item label="车号" span="1" prop="carNo" v-if="deptBudgetList.outType == '火运'">
  182. <ws-input v-model="deptBudgetList.carNo" placeholder="请输入车号" size="small" />
  183. </ws-form-item>
  184. <ws-form-item label="箱号-1" span="1" prop="boxNo" v-if="
  185. deptBudgetList.outType == '汽运' ||
  186. deptBudgetList.outType == '集装箱船'
  187. ">
  188. <ws-input v-model="deptBudgetList.boxNo" placeholder="请输入箱号" maxlength="20" size="small" />
  189. </ws-form-item>
  190. <ws-form-item label="箱号-2" span="1" prop="boxNoOther" v-if="
  191. deptBudgetList.outType == '汽运' ||
  192. deptBudgetList.outType == '集装箱船'
  193. ">
  194. <ws-input v-model="deptBudgetList.boxNoOther" placeholder="请输入箱号" maxlength="20" size="small" />
  195. </ws-form-item>
  196. <ws-form-item label="封号-1" span="1" prop="titleNo" v-if="
  197. deptBudgetList.outType == '汽运' ||
  198. deptBudgetList.outType == '集装箱船'
  199. ">
  200. <ws-input v-model="deptBudgetList.titleNo" placeholder="请输入封号" maxlength="20" size="small" />
  201. </ws-form-item>
  202. <ws-form-item label="封号-2" span="1" prop="titleNoOther" v-if="
  203. deptBudgetList.outType == '汽运' ||
  204. deptBudgetList.outType == '集装箱船'
  205. ">
  206. <ws-input v-model="deptBudgetList.titleNoOther" placeholder="请输入封号" maxlength="20" size="small" />
  207. </ws-form-item>
  208. <ws-form-item label="车厢号-1" span="1" prop="wingNumber" v-if="deptBudgetList.outType == '火运'">
  209. <ws-input v-model="deptBudgetList.wingNumber" placeholder="请输入车厢号" maxlength="20" size="small" />
  210. </ws-form-item>
  211. <ws-form-item label="车厢号-2" span="1" prop="wingNumberOther" v-if="deptBudgetList.outType == '火运'">
  212. <ws-input v-model="deptBudgetList.wingNumberOther" placeholder="请输入车厢号" maxlength="20" size="small" />
  213. </ws-form-item>
  214. <ws-form-item label="船名" span="1" prop="shipName" v-if="deptBudgetList.outType == '散船'">
  215. <ws-input v-model="deptBudgetList.shipName" placeholder="请输入船名" maxlength="20" size="small" />
  216. </ws-form-item>
  217. <ws-form-item label="航次" span="1" prop="shipNumber" v-if="deptBudgetList.outType == '散船'">
  218. <ws-input v-model="deptBudgetList.shipNumber" placeholder="请输入航次" maxlength="20" size="small" />
  219. </ws-form-item>
  220. </ws-info-table>
  221. </div>
  222. </div>
  223. </div>
  224. <!-- <div class="small-title">上传磅单照片</div>
  225. <el-upload
  226. action="https://www.zthymaoyi.com/upload/admin"
  227. :show-file-list="false"
  228. :on-success="
  229. (res) => {
  230. uploadSuccessHandle1(res)
  231. }
  232. "
  233. class="avatar-uploader"
  234. accept=".jpg, .jpeg, .png, .gif"
  235. ><el-button size="small" type="primary">点击上传</el-button>
  236. </el-upload>
  237. <div v-if='deptBudgetList.addressUrl!=""'>
  238. <img style='width:100px;height:100px;' :src="deptBudgetList.addressUrl" alt="">
  239. </div> -->
  240. <div class="small-title">化验数据(选填)</div>
  241. <div class="inspector">
  242. <!--自检员-->
  243. <!-- <ws-form-item label="质检员" span="1" prop="qualityInspector">
  244. <ws-input
  245. v-model="deptBudgetList.warehouseInOutDetail.qualityInspector"
  246. placeholder="请输入质检员姓名"
  247. maxlength="120"
  248. size="small"
  249. />
  250. </ws-form-item> -->
  251. <ws-form-item label="质检员" span="1" prop="qualityInspector">
  252. <el-select v-model="deptBudgetList.warehouseInOutDetail.qualityInspector" placeholder="请选择质检员" filterable
  253. clearable @change="qualityInspectorChange">
  254. <el-option v-for="item in qualityInspectorList" :key="item.value" :label="item.staffName"
  255. :value="item.staffName" />
  256. </el-select>
  257. </ws-form-item>
  258. </div>
  259. <div class="neifor">
  260. <ws-info-table>
  261. <!--水分(%)<=-->
  262. <ws-form-item label="水分(%)" span="1" prop="waterContent">
  263. <ws-input v-model="deptBudgetList.warehouseInOutDetail.waterContent" placeholder="请输入水分占比" maxlength="120"
  264. type="number" @mousewheel.native.prevent size="small" />
  265. </ws-form-item>
  266. <!--杂质(%)<=-->
  267. <ws-form-item label="杂质(%)" span="1" prop="impurity">
  268. <ws-input v-model="deptBudgetList.warehouseInOutDetail.impurity" placeholder="请输入杂质占比" type="number"
  269. @mousewheel.native.prevent maxlength="120" size="small" />
  270. </ws-form-item>
  271. <!--容重(克/升)>=-->
  272. <ws-form-item label="容重(克/升)" span="1" prop="bulkDensity">
  273. <ws-input v-model="deptBudgetList.warehouseInOutDetail.bulkDensity" placeholder="请输入容重" type="number"
  274. @mousewheel.native.prevent maxlength="120" size="small" />
  275. </ws-form-item>
  276. <!--霉变粒(%)<=-->
  277. <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
  278. <ws-input v-model="deptBudgetList.warehouseInOutDetail.mildewGrain" placeholder="请输入霉变粒占比" maxlength="120"
  279. type="number" @mousewheel.native.prevent size="small" />
  280. </ws-form-item>
  281. <!--热损伤(%)<=-->
  282. <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
  283. <ws-input v-model="deptBudgetList.warehouseInOutDetail.jiaorenli" placeholder="请输入热损伤占比" type="number"
  284. @mousewheel.native.prevent maxlength="120" size="small" />
  285. </ws-form-item>
  286. <!--不完善粒(%)<=-->
  287. <ws-form-item label="不完善粒(%)" span="1" prop="imperfectGrain">
  288. <ws-input v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain" placeholder="请输入不完善粒占比" type="number"
  289. @mousewheel.native.prevent maxlength="120" size="small" />
  290. </ws-form-item>
  291. </ws-info-table>
  292. </div>
  293. <div style="text-align: right; padding: 10px">
  294. <el-button v-if="information == '皮重检斤'" class="bg-bottom-up" size="small" @click="temporaryStorage()">保存
  295. </el-button>
  296. <el-button v-if="!allowEdit" class="bg-bottom-up" type="primary" size="small" @click="submit()">提交</el-button>
  297. <el-button v-if="!allowEdit" class="bg-bottom-up" type="primary" size="small" @click="print()">提交并打印</el-button>
  298. </div>
  299. </ws-form>
  300. </div>
  301. </template>
  302. <script>
  303. import {
  304. pullDown,
  305. addstorageputList,
  306. goodsname,
  307. xialaNo,
  308. getstaff,
  309. goodsnameXiala,
  310. getReceiptTaskNo,
  311. } from '@/model/warehouse/index'
  312. import Pagination from '@/components/Pagination'
  313. import WsUpload from '@/components/WsUpload'
  314. import BalanceAlert from '@/components/balanceAlert'
  315. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  316. import {
  317. dayjs,
  318. EventBus
  319. } from 'base-core-lib'
  320. export default {
  321. name: 'viewSpareMoney',
  322. components: {
  323. WsUpload,
  324. Pagination,
  325. BalanceAlert
  326. },
  327. watch: {
  328. isShow(val) {
  329. this.showType = val
  330. },
  331. },
  332. data() {
  333. return {
  334. isShowBalance: false,
  335. deptBudgetList1: [],
  336. isSelectType: true,
  337. carstatus: false,
  338. qualityInspectorList: [],
  339. //弹出框
  340. dialogViewSpareMoney: false,
  341. dialogApproveFormVisible: false,
  342. // 船舶类型
  343. monetaryKey: null,
  344. // 表格显示数据
  345. tableDate: [],
  346. // 是否显示
  347. showType: true,
  348. readonly: true,
  349. // 年
  350. year: '',
  351. deptBudgetTotal: 0,
  352. currentPage: 1,
  353. pageSize: 10,
  354. searchType: 1,
  355. searchKeyWord: '',
  356. contractType: 2,
  357. startDate: null,
  358. endDate: null,
  359. goodnameList: {},
  360. // 提交类型
  361. submitType: true,
  362. deliveryType: [],
  363. typeList: ['干粮', '潮粮'],
  364. outContractNo: [],
  365. appendixIdsAdd: '',
  366. uploadSuccess: {},
  367. gradeList: [],
  368. agent: [],
  369. staffList: [],
  370. options: [],
  371. value: '',
  372. rules: {
  373. netWeight: [{
  374. required: true,
  375. type: 'number',
  376. message: '请输入活动名称',
  377. trigger: 'blur',
  378. }, ],
  379. },
  380. size: 10,
  381. compId: localStorage.getItem('ws-pf_compId'),
  382. skinInspector: localStorage.getItem('ws-pf_staffName'),
  383. deptCircularPage: {},
  384. packtypeList: {},
  385. date: {
  386. year: dayjs().format('YYYY'),
  387. month: dayjs().format('MM'),
  388. },
  389. contractList: [],
  390. deptBudgetList: {
  391. type: '干粮',
  392. addressUrl: '',
  393. warehouseInOutDetail: {},
  394. grossWeight: '',
  395. tare: '',
  396. inOutDate: '',
  397. },
  398. weightbills: {},
  399. historyList: [],
  400. pickerBeginDateBefore: {
  401. disabledDate: (time) => {
  402. return time.getTime() > Date.now()
  403. },
  404. },
  405. accessoryTFs: false,
  406. allowEdit: true,
  407. param: 9600,
  408. information: '',
  409. result1: '00',
  410. multiSelector: [{
  411. name: '汽运',
  412. value: '0',
  413. },
  414. {
  415. name: '火运',
  416. value: '1',
  417. },
  418. {
  419. name: '集装箱船',
  420. value: '2',
  421. },
  422. {
  423. name: '散船',
  424. value: '3',
  425. },
  426. ],
  427. }
  428. },
  429. mounted() {
  430. let date = new Date()
  431. var year = date.getFullYear()
  432. var month = date.getMonth() + 1
  433. var strDate = date.getDate()
  434. this.deptBudgetList.inOutDate = year + '-' + month + '-' + strDate
  435. this.information = this.$route.query.information
  436. if (this.$route.query.allowEdit == 1) {
  437. this.allowEdit = false
  438. } else {
  439. this.allowEdit = true
  440. }
  441. this.deptBudgetList.baseId = this.$route.query.baseId
  442. this.deptBudgetList.positionId = this.$route.query.positionId
  443. this.deptBudgetList.warehouseName = this.$route.query.warehouseName
  444. this.deptBudgetList.binNumber = this.$route.query.binNumber
  445. this.deptBudgetList.warehouseType = this.$route.query.warehouseType
  446. this.deptBudgetList.warehouseId = this.$route.query.warehouseId
  447. this.getList()
  448. getReceiptTaskNo({
  449. flag: 1,
  450. warehouseName: this.deptBudgetList.warehouseName,
  451. agentKey: localStorage.getItem('ws-pf_userId'),
  452. })
  453. .toPromise()
  454. .then((response) => {
  455. console.log(response)
  456. this.deptBudgetList1 = response
  457. })
  458. if (this.$route.query.automaticWeightAcquisition == '1') {
  459. this.isShowBalance = true
  460. }
  461. },
  462. methods: {
  463. setVal(data) {
  464. if (this.information == '毛重检斤') {
  465. this.deptBudgetList.grossWeight = data
  466. } else {
  467. this.deptBudgetList.tare = data
  468. }
  469. },
  470. openPort() {
  471. this.$refs.weightChild.openPort()
  472. },
  473. qualityInspectorChange(e) {
  474. console.log(e)
  475. },
  476. uploadSuccessHandle1(res) {
  477. this.deptBudgetList.addressUrl = res.url
  478. },
  479. //返回按钮
  480. revert() {
  481. this.$router.push({
  482. path: 'warehouseManagementList',
  483. })
  484. },
  485. carChange(e) {
  486. for (let i = 0; i < this.tranCarInfoList.length; i++) {
  487. if (this.tranCarInfoList[i].carNo == this.deptBudgetList.carNo) {
  488. this.deptBudgetList.tranCarNo = this.tranCarInfoList[i].tranCarNo
  489. this.deptBudgetList.carId = this.tranCarInfoList[i].id
  490. }
  491. }
  492. },
  493. print() {
  494. this.submit(1)
  495. },
  496. typeChange(e) {},
  497. contractNoChange(e) {
  498. for (let i = 0; i < this.deptBudgetList1.length; i++) {
  499. if (this.deptBudgetList1[i].inOutTaskNo == e) {
  500. var data = this.deptBudgetList1[i]
  501. if (this.deptBudgetList1[i].contractNo) {
  502. this.deptBudgetList.contractNo = this.deptBudgetList1[i].contractNo
  503. } else {
  504. this.deptBudgetList.contractNo = this.deptBudgetList1[i].moveTaskNo
  505. }
  506. }
  507. }
  508. for (var i = 0; i < this.outContractNo.length; i++) {
  509. if (
  510. this.outContractNo[i].contractNo == this.deptBudgetList.contractNo
  511. ) {
  512. this.weightbills.goodsName = this.outContractNo[i].goodsName
  513. this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
  514. if (this.deptBudgetList.goodsName == '玉米(潮粮)') {
  515. this.deptBudgetList.type = '潮粮'
  516. } else {
  517. this.deptBudgetList.type = '干粮'
  518. }
  519. this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
  520. this.deptBudgetList.grade = this.outContractNo[i].grade
  521. this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
  522. if (this.outContractNo[i].inOutType == '销售出库') {
  523. this.weightbills.buyer = this.outContractNo[i].buyer
  524. this.weightbills.seller = localStorage.getItem('ws-pf_compName')
  525. if (!this.outContractNo[i].unitContractPrice) {
  526. this.deptBudgetList.tips =
  527. '买方' +
  528. this.outContractNo[i].buyer
  529. } else {
  530. this.deptBudgetList.tips =
  531. '买方' +
  532. this.outContractNo[i].buyer +
  533. '( ' +
  534. this.outContractNo[i].unitContractPrice +
  535. '元/吨)'
  536. }
  537. this.deptBudgetList.inOutTypeKey = 1
  538. } else if (this.outContractNo[i].inOutType == '移库出库') {
  539. this.weightbills.buyer = this.outContractNo[i].receiveWarehouse
  540. this.weightbills.seller = this.outContractNo[i].sendWarehouse
  541. this.deptBudgetList.goodsName = data.goodsName
  542. this.deptBudgetList.goodsNameKey = data.goodsNameKey
  543. this.deptBudgetList.grade = data.grade
  544. if (this.outContractNo[i].unitContractPrice) {
  545. this.deptBudgetList.tips =
  546. '入货库' +
  547. data.receiveWarehouse +
  548. '( ' +
  549. this.outContractNo[i].unitContractPrice +
  550. '元/吨)'
  551. } else {
  552. this.deptBudgetList.tips = '入货库' + data.receiveWarehouse
  553. }
  554. this.deptBudgetList.inOutTypeKey = 3
  555. } else if (this.outContractNo[i].inOutType == '暂存入库') {
  556. this.deptBudgetList.inOutTypeKey = 4
  557. } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
  558. this.deptBudgetList.inOutTypeKey = 5
  559. } else if (this.outContractNo[i].inOutType == '采购出库') {
  560. this.deptBudgetList.inOutTypeKey = 6
  561. }
  562. if (this.outContractNo[i].deliverType == '1') {
  563. this.carstatus = true
  564. } else {
  565. this.carstatus = false
  566. }
  567. if (this.outContractNo[i].tranCarInfoList) {
  568. this.options2 = this.outContractNo[i].tranCarInfoList
  569. this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
  570. this.carstatus = true
  571. }
  572. }
  573. }
  574. },
  575. contractNoChange1(e) {
  576. for (var i = 0; i < this.outContractNo.length; i++) {
  577. if (this.outContractNo[i].contractNo == e) {
  578. if (this.outContractNo[i].inOutType == '销售出库') {
  579. this.deptBudgetList.inOutTypeKey = 1
  580. } else if (this.outContractNo[i].inOutType == '移库出库') {
  581. this.deptBudgetList.inOutTypeKey = 3
  582. } else if (this.outContractNo[i].inOutType == '暂存入库') {
  583. this.deptBudgetList.inOutTypeKey = 4
  584. } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
  585. this.deptBudgetList.inOutTypeKey = 5
  586. } else if (this.outContractNo[i].inOutType == '采购出库') {
  587. this.deptBudgetList.inOutTypeKey = 6
  588. }
  589. this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
  590. this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
  591. this.deptBudgetList.grade = this.outContractNo[i].grade
  592. this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
  593. if (this.outContractNo[i].tranCarInfoList) {
  594. this.options2 = this.outContractNo[i].tranCarInfoList
  595. this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
  596. this.carstatus = true
  597. }
  598. }
  599. }
  600. },
  601. dataFilter2(val) {
  602. this.deptBudgetList.carNo = val
  603. if (val) {
  604. //val存在
  605. this.options1 = this.outContractNo1.filter((item) => {
  606. if (
  607. !!~item.carNo.indexOf(val) ||
  608. !!~item.carNo.toUpperCase().indexOf(val.toUpperCase())
  609. ) {
  610. return true
  611. }
  612. })
  613. } else {
  614. //val为空时,还原数组
  615. this.options2 = this.tranCarInfoList
  616. }
  617. },
  618. dataFilter(val) {
  619. // console.log(val,"名")
  620. this.deptBudgetList.staffList = val
  621. if (val) {
  622. //val存在
  623. this.options = this.staffList.filter((item) => {
  624. if (
  625. !!~item.staffName.indexOf(val) ||
  626. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  627. ) {
  628. return true
  629. }
  630. })
  631. } else {
  632. //val为空时,还原数组
  633. this.options = this.staffList
  634. }
  635. },
  636. selectstaff(e) {
  637. for (var i = 0; i < this.staffList.length; i++) {
  638. if (this.staffList[i].staffName == e) {
  639. this.deptBudgetList.personChargeKey = this.staffList[i].staffId
  640. }
  641. }
  642. },
  643. pureweight(e) {
  644. console.log(this.deptBudgetList)
  645. if (
  646. this.deptBudgetList.netWeight &&
  647. this.deptBudgetList.tidalGrainWater &&
  648. this.deptBudgetList.solidGrainWater &&
  649. this.deptBudgetList.buckleWeightRatio
  650. ) {
  651. this.deptBudgetList.pureWeight =
  652. (this.deptBudgetList.netWeight *
  653. (100 -
  654. (this.deptBudgetList.tidalGrainWater -
  655. this.deptBudgetList.solidGrainWater) *
  656. this.deptBudgetList.buckleWeightRatio)) /
  657. 100
  658. }
  659. },
  660. temporaryStorage() {
  661. if (!this.deptBudgetList.goodsName) {
  662. this.$message({
  663. message: '货名不能为空',
  664. type: 'warning',
  665. })
  666. return
  667. }
  668. if (this.information == '毛重检斤' && !this.deptBudgetList.grossWeight) {
  669. this.$message({
  670. message: '毛重不能为空',
  671. type: 'warning',
  672. })
  673. return
  674. }
  675. if (
  676. this.information == '毛重检斤' &&
  677. (this.deptBudgetList.grossWeight <= 0 ||
  678. this.deptBudgetList.grossWeight > 200000 ||
  679. (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
  680. String(this.deptBudgetList.grossWeight).length -
  681. (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
  682. 3))
  683. ) {
  684. this.$message({
  685. message: '毛重输入错误',
  686. type: 'warning',
  687. })
  688. return
  689. }
  690. if (this.information == '皮重检斤' && !this.deptBudgetList.tare) {
  691. this.$message({
  692. message: '皮重不能为空',
  693. type: 'warning',
  694. })
  695. return
  696. }
  697. if (
  698. this.information == '皮重检斤' &&
  699. (this.deptBudgetList.tare < 0 ||
  700. this.deptBudgetList.tare > 200000 ||
  701. (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
  702. String(this.deptBudgetList.tare).length -
  703. (String(this.deptBudgetList.tare).indexOf('.') + 1) >
  704. 3))
  705. ) {
  706. this.$message({
  707. message: '皮重输入错误',
  708. type: 'warning',
  709. })
  710. return
  711. }
  712. // if (this.deptBudgetList.carNo.length > 7) {
  713. // this.$message({
  714. // message: '车牌号输入错误,请输入7个字符之内',
  715. // type: 'warning',
  716. // })
  717. // return
  718. // }
  719. if (!this.deptBudgetList.contractNo) {
  720. this.$message({
  721. message: '合同编号不能为空',
  722. type: 'warning',
  723. })
  724. return
  725. }
  726. // if (
  727. // this.deptBudgetList.contractNo.length < 6 ||
  728. // this.deptBudgetList.contractNo.length > 20
  729. // ) {
  730. // this.$message({
  731. // message: '合同编号长度不符合要求,请输入6-20个字符之内',
  732. // type: 'warning',
  733. // })
  734. // return
  735. // }
  736. //自检员
  737. if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
  738. if (
  739. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
  740. 2 ||
  741. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
  742. ) {
  743. this.$message({
  744. message: '质检员姓名长度错误!',
  745. type: 'warning',
  746. })
  747. return
  748. }
  749. }
  750. if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
  751. if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
  752. this.$message({
  753. message: '水分(%)非数字!',
  754. type: 'warning',
  755. })
  756. return
  757. }
  758. if (
  759. this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
  760. this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
  761. (String(
  762. this.deptBudgetList.warehouseInOutDetail.waterContent
  763. ).indexOf('.') != -1 &&
  764. String(this.deptBudgetList.warehouseInOutDetail.waterContent)
  765. .length -
  766. (String(
  767. this.deptBudgetList.warehouseInOutDetail.waterContent
  768. ).indexOf('.') +
  769. 1) >
  770. 2)
  771. ) {
  772. this.$message({
  773. message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
  774. type: 'warning',
  775. })
  776. return
  777. }
  778. }
  779. //杂质
  780. if (this.deptBudgetList.warehouseInOutDetail.impurity) {
  781. if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
  782. this.$message({
  783. message: '杂质(%)非数字!',
  784. type: 'warning',
  785. })
  786. return
  787. }
  788. if (
  789. this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
  790. this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
  791. (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
  792. '.'
  793. ) != -1 &&
  794. String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
  795. (String(
  796. this.deptBudgetList.warehouseInOutDetail.impurity
  797. ).indexOf('.') +
  798. 1) >
  799. 2)
  800. ) {
  801. this.$message({
  802. message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
  803. type: 'warning',
  804. })
  805. return
  806. }
  807. }
  808. //霉变
  809. if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
  810. if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
  811. this.$message({
  812. message: '霉变粒(%)非数字!',
  813. type: 'warning',
  814. })
  815. return
  816. }
  817. if (
  818. this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
  819. this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
  820. (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
  821. '.'
  822. ) != -1 &&
  823. String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
  824. .length -
  825. (String(
  826. this.deptBudgetList.warehouseInOutDetail.mildewGrain
  827. ).indexOf('.') +
  828. 1) >
  829. 2)
  830. ) {
  831. this.$message({
  832. message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  833. type: 'warning',
  834. })
  835. return
  836. }
  837. }
  838. //热损伤
  839. if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
  840. if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
  841. this.$message({
  842. message: '热损伤(%)非数字!',
  843. type: 'warning',
  844. })
  845. return
  846. }
  847. if (
  848. this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
  849. this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
  850. (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
  851. '.'
  852. ) != -1 &&
  853. String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
  854. (String(
  855. this.deptBudgetList.warehouseInOutDetail.jiaorenli
  856. ).indexOf('.') +
  857. 1) >
  858. 2)
  859. ) {
  860. this.$message({
  861. message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
  862. type: 'warning',
  863. })
  864. return
  865. }
  866. }
  867. //不完善粒(%)
  868. if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
  869. if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
  870. this.$message({
  871. message: '不完善粒(%)非数字!',
  872. type: 'warning',
  873. })
  874. return
  875. }
  876. if (
  877. this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
  878. this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
  879. (String(
  880. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  881. ).indexOf('.') != -1 &&
  882. String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
  883. .length -
  884. (String(
  885. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  886. ).indexOf('.') +
  887. 1) >
  888. 2)
  889. ) {
  890. this.$message({
  891. message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  892. type: 'warning',
  893. })
  894. return
  895. }
  896. }
  897. //容重
  898. if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
  899. if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
  900. this.$message({
  901. message: '容重(克/升)非数字!',
  902. type: 'warning',
  903. })
  904. return
  905. }
  906. if (
  907. (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
  908. String(
  909. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  910. ).indexOf('.') != -1 &&
  911. String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
  912. .length -
  913. (String(
  914. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  915. ).indexOf('.') +
  916. 1) >
  917. 2) ||
  918. this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
  919. this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
  920. ) {
  921. this.$message({
  922. message: '容重输入错误',
  923. type: 'warning',
  924. })
  925. return
  926. }
  927. }
  928. this.$confirm(`是否保存皮重检斤`, {
  929. cancelButtonText: '取消',
  930. confirmButtonText: '确定',
  931. type: 'warning',
  932. })
  933. .then(() => {
  934. this.$refs.deptBudgetList.validate((valid) => {
  935. if (valid) {
  936. this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
  937. this.deptBudgetList.skinInspector =
  938. localStorage.getItem('ws-pf_staffName')
  939. this.deptBudgetList.inOutFlag = 1
  940. this.deptBudgetList.pcFlag = 1
  941. this.deptBudgetList.statusFlag = 1
  942. this.deptBudgetList.grossWeight /= 1000
  943. this.deptBudgetList.tare /= 1000
  944. if (this.deptBudgetList.netWeight) {
  945. this.deptBudgetList.netWeight = Number(
  946. this.deptBudgetList.netWeight
  947. ).toFixed(2)
  948. }
  949. this.deptBudgetList.pureWeight /= 1000
  950. addstorageputList(this.deptBudgetList)
  951. .toPromise()
  952. .then((response) => {
  953. if (this.reader) {
  954. this.reader.cancel()
  955. }
  956. this.$message.success('保存成功')
  957. this.$router.push({
  958. path: 'warehouseManagementList',
  959. })
  960. })
  961. } else {
  962. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  963. return false
  964. }
  965. })
  966. })
  967. .catch(() => {
  968. return false
  969. })
  970. },
  971. //提交按钮
  972. submit(status) {
  973. if (!this.deptBudgetList.goodsName) {
  974. this.$message({
  975. message: '货名不能为空!',
  976. type: 'warning',
  977. })
  978. return
  979. }
  980. if (!this.deptBudgetList.grossWeight) {
  981. this.$message({
  982. message: '毛重不能为空!',
  983. type: 'warning',
  984. })
  985. return
  986. }
  987. if (
  988. this.deptBudgetList.grossWeight <= 0 ||
  989. this.deptBudgetList.grossWeight > 5000000 ||
  990. (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
  991. String(this.deptBudgetList.grossWeight).length -
  992. (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
  993. 3)
  994. ) {
  995. this.$message({
  996. message: '毛重输入错误',
  997. type: 'warning',
  998. })
  999. return
  1000. }
  1001. if (!this.deptBudgetList.tare) {
  1002. this.$message({
  1003. message: '皮重不能为空!',
  1004. type: 'warning',
  1005. })
  1006. return
  1007. }
  1008. if (
  1009. this.deptBudgetList.tare < 0 ||
  1010. this.deptBudgetList.tare > 500000 ||
  1011. (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
  1012. String(this.deptBudgetList.tare).length -
  1013. (String(this.deptBudgetList.tare).indexOf('.') + 1) >
  1014. 3)
  1015. ) {
  1016. this.$message({
  1017. message: '皮重输入错误',
  1018. type: 'warning',
  1019. })
  1020. return
  1021. }
  1022. if (!this.deptBudgetList.netWeight) {
  1023. this.$message({
  1024. message: '净重不能为空!',
  1025. type: 'warning',
  1026. })
  1027. return
  1028. }
  1029. if (
  1030. this.deptBudgetList.netWeight <= 0 ||
  1031. this.deptBudgetList.netWeight >= 5000000
  1032. ) {
  1033. this.$message({
  1034. message: '净重输入错误!',
  1035. type: 'warning',
  1036. })
  1037. return
  1038. }
  1039. if (!this.deptBudgetList.grade) {
  1040. this.$message({
  1041. message: '品级不能为空!',
  1042. type: 'warning',
  1043. })
  1044. return
  1045. }
  1046. if (
  1047. this.deptBudgetList.type == '潮粮' &&
  1048. !this.deptBudgetList.buckleWeightRatio
  1049. ) {
  1050. this.$message({
  1051. message: '扣重比不能为空',
  1052. type: 'warning',
  1053. })
  1054. return
  1055. }
  1056. if (
  1057. (this.deptBudgetList.type == '潮粮' &&
  1058. this.deptBudgetList.buckleWeightRatio < 0) ||
  1059. (this.deptBudgetList.type == '潮粮' &&
  1060. this.deptBudgetList.buckleWeightRatio > 3) ||
  1061. (this.deptBudgetList.type == '潮粮' &&
  1062. String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
  1063. String(this.deptBudgetList.buckleWeightRatio).length -
  1064. (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
  1065. 2)
  1066. ) {
  1067. this.$message({
  1068. message: '扣重比输入错误',
  1069. type: 'warning',
  1070. })
  1071. return
  1072. }
  1073. if (
  1074. this.deptBudgetList.type == '潮粮' &&
  1075. !this.deptBudgetList.tidalGrainWater
  1076. ) {
  1077. this.$message({
  1078. message: '潮粮水分不能为空',
  1079. type: 'warning',
  1080. })
  1081. return
  1082. }
  1083. if (
  1084. (this.deptBudgetList.type == '潮粮' &&
  1085. this.deptBudgetList.tidalGrainWater < 1) ||
  1086. (this.deptBudgetList.type == '潮粮' &&
  1087. this.deptBudgetList.tidalGrainWater > 40) ||
  1088. (this.deptBudgetList.type == '潮粮' &&
  1089. String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
  1090. String(this.deptBudgetList.tidalGrainWater).length -
  1091. (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
  1092. 2)
  1093. ) {
  1094. this.$message({
  1095. message: '潮粮水分输入错误',
  1096. type: 'warning',
  1097. })
  1098. return
  1099. }
  1100. if (
  1101. this.deptBudgetList.type == '潮粮' &&
  1102. !this.deptBudgetList.solidGrainWater
  1103. ) {
  1104. this.$message({
  1105. message: '干粮水分不能为空',
  1106. type: 'warning',
  1107. })
  1108. return
  1109. }
  1110. if (
  1111. (this.deptBudgetList.type == '潮粮' &&
  1112. this.deptBudgetList.solidGrainWater < 1) ||
  1113. (this.deptBudgetList.type == '潮粮' &&
  1114. this.deptBudgetList.solidGrainWater > 40) ||
  1115. (this.deptBudgetList.type == '潮粮' &&
  1116. String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
  1117. String(this.deptBudgetList.solidGrainWater).length -
  1118. (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
  1119. 1)
  1120. ) {
  1121. this.$message({
  1122. message: '干粮水分输入错误',
  1123. type: 'warning',
  1124. })
  1125. return
  1126. }
  1127. if (!this.deptBudgetList.agent) {
  1128. this.$message({
  1129. message: '经办人不能为空!',
  1130. type: 'warning',
  1131. })
  1132. return
  1133. }
  1134. if (
  1135. this.deptBudgetList.agent.length < 2 ||
  1136. this.deptBudgetList.agent.length > 10
  1137. ) {
  1138. this.$message({
  1139. message: '经办人姓名输入有误!',
  1140. type: 'warning',
  1141. })
  1142. return
  1143. }
  1144. if (!this.deptBudgetList.inOutDate) {
  1145. this.$message({
  1146. message: '出库日期不能为空!',
  1147. type: 'warning',
  1148. })
  1149. return
  1150. }
  1151. if (!this.deptBudgetList.inOutType) {
  1152. this.$message({
  1153. message: '出库类型不能为空!',
  1154. type: 'warning',
  1155. })
  1156. return
  1157. }
  1158. if (this.deptBudgetList.boxNo && this.deptBudgetList.boxNo.length > 20) {
  1159. this.$message({
  1160. message: '箱号-1输入错误',
  1161. type: 'warning',
  1162. })
  1163. return
  1164. }
  1165. if (
  1166. this.deptBudgetList.boxNoOther &&
  1167. this.deptBudgetList.boxNoOther.length > 20
  1168. ) {
  1169. this.$message({
  1170. message: '箱号-2输入错误',
  1171. type: 'warning',
  1172. })
  1173. return
  1174. }
  1175. if (
  1176. this.deptBudgetList.titleNo &&
  1177. this.deptBudgetList.titleNo.length > 20
  1178. ) {
  1179. this.$message({
  1180. message: '封号-1输入错误',
  1181. type: 'warning',
  1182. })
  1183. return
  1184. }
  1185. if (
  1186. this.deptBudgetList.titleNoOther &&
  1187. this.deptBudgetList.titleNoOther.length > 20
  1188. ) {
  1189. this.$message({
  1190. message: '封号-2输入错误',
  1191. type: 'warning',
  1192. })
  1193. return
  1194. }
  1195. if (!this.deptBudgetList.contractNo) {
  1196. this.$message({
  1197. message: '合同编号不能为空!',
  1198. type: 'warning',
  1199. })
  1200. return
  1201. }
  1202. if (
  1203. this.deptBudgetList.contractNo.length < 6 ||
  1204. this.deptBudgetList.contractNo.length > 50
  1205. ) {
  1206. this.$message({
  1207. message: '合同编号输入有误!',
  1208. type: 'warning',
  1209. })
  1210. return
  1211. }
  1212. //自检员
  1213. if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
  1214. if (
  1215. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
  1216. 2 ||
  1217. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
  1218. ) {
  1219. this.$message({
  1220. message: '质检员姓名长度错误!',
  1221. type: 'warning',
  1222. })
  1223. return
  1224. }
  1225. }
  1226. if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
  1227. if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
  1228. this.$message({
  1229. message: '水分(%)非数字!',
  1230. type: 'warning',
  1231. })
  1232. return
  1233. }
  1234. if (
  1235. this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
  1236. this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
  1237. (String(
  1238. this.deptBudgetList.warehouseInOutDetail.waterContent
  1239. ).indexOf('.') != -1 &&
  1240. String(this.deptBudgetList.warehouseInOutDetail.waterContent)
  1241. .length -
  1242. (String(
  1243. this.deptBudgetList.warehouseInOutDetail.waterContent
  1244. ).indexOf('.') +
  1245. 1) >
  1246. 2)
  1247. ) {
  1248. this.$message({
  1249. message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1250. type: 'warning',
  1251. })
  1252. return
  1253. }
  1254. }
  1255. //杂质
  1256. if (this.deptBudgetList.warehouseInOutDetail.impurity) {
  1257. if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
  1258. this.$message({
  1259. message: '杂质(%)非数字!',
  1260. type: 'warning',
  1261. })
  1262. return
  1263. }
  1264. if (
  1265. this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
  1266. this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
  1267. (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
  1268. '.'
  1269. ) != -1 &&
  1270. String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
  1271. (String(
  1272. this.deptBudgetList.warehouseInOutDetail.impurity
  1273. ).indexOf('.') +
  1274. 1) >
  1275. 2)
  1276. ) {
  1277. this.$message({
  1278. message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1279. type: 'warning',
  1280. })
  1281. return
  1282. }
  1283. }
  1284. //霉变
  1285. if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
  1286. if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
  1287. this.$message({
  1288. message: '霉变粒(%)非数字!',
  1289. type: 'warning',
  1290. })
  1291. return
  1292. }
  1293. if (
  1294. this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
  1295. this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
  1296. (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
  1297. '.'
  1298. ) != -1 &&
  1299. String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
  1300. .length -
  1301. (String(
  1302. this.deptBudgetList.warehouseInOutDetail.mildewGrain
  1303. ).indexOf('.') +
  1304. 1) >
  1305. 2)
  1306. ) {
  1307. this.$message({
  1308. message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1309. type: 'warning',
  1310. })
  1311. return
  1312. }
  1313. }
  1314. //热损伤
  1315. if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
  1316. if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
  1317. this.$message({
  1318. message: '热损伤(%)非数字!',
  1319. type: 'warning',
  1320. })
  1321. return
  1322. }
  1323. if (
  1324. this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
  1325. this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
  1326. (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
  1327. '.'
  1328. ) != -1 &&
  1329. String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
  1330. (String(
  1331. this.deptBudgetList.warehouseInOutDetail.jiaorenli
  1332. ).indexOf('.') +
  1333. 1) >
  1334. 2)
  1335. ) {
  1336. this.$message({
  1337. message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1338. type: 'warning',
  1339. })
  1340. return
  1341. }
  1342. }
  1343. //不完善粒(%)
  1344. if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
  1345. if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
  1346. this.$message({
  1347. message: '不完善粒(%)非数字!',
  1348. type: 'warning',
  1349. })
  1350. return
  1351. }
  1352. if (
  1353. this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
  1354. this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
  1355. (String(
  1356. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  1357. ).indexOf('.') != -1 &&
  1358. String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
  1359. .length -
  1360. (String(
  1361. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  1362. ).indexOf('.') +
  1363. 1) >
  1364. 2)
  1365. ) {
  1366. this.$message({
  1367. message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1368. type: 'warning',
  1369. })
  1370. return
  1371. }
  1372. }
  1373. //容重
  1374. if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
  1375. if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
  1376. this.$message({
  1377. message: '容重(克/升)非数字!',
  1378. type: 'warning',
  1379. })
  1380. return
  1381. }
  1382. if (
  1383. (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
  1384. String(
  1385. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  1386. ).indexOf('.') != -1 &&
  1387. String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
  1388. .length -
  1389. (String(
  1390. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  1391. ).indexOf('.') +
  1392. 1) >
  1393. 2) ||
  1394. this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
  1395. this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
  1396. ) {
  1397. this.$message({
  1398. message: '容重输入错误',
  1399. type: 'warning',
  1400. })
  1401. return
  1402. }
  1403. }
  1404. this.$confirm(`确定提交出库信息`, {
  1405. cancelButtonText: '取消',
  1406. confirmButtonText: '确定',
  1407. type: 'warning',
  1408. }).then(() => {
  1409. this.$refs.deptBudgetList.validate((valid) => {
  1410. if (valid) {
  1411. this.deptBudgetList.grossWeight /= 1000
  1412. this.deptBudgetList.tare /= 1000
  1413. this.deptBudgetList.netWeight /= 1000
  1414. this.deptBudgetList.pureWeight /= 1000
  1415. this.deptBudgetList.deductionAmount *= 1000
  1416. this.deptBudgetList.deductionWeight /= 1000
  1417. this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
  1418. this.deptBudgetList.skinInspector =
  1419. localStorage.getItem('ws-pf_staffName')
  1420. this.deptBudgetList.inOutFlag = 1
  1421. this.deptBudgetList.statusFlag = 3
  1422. addstorageputList(this.deptBudgetList)
  1423. .toPromise()
  1424. .then((response) => {
  1425. if (this.reader) {
  1426. this.reader.cancel()
  1427. }
  1428. this.$message.success('添加成功')
  1429. if (status) {
  1430. this.weightbills.carNo = this.deptBudgetList.carNo
  1431. this.weightbills.boxNo = this.deptBudgetList.boxNo
  1432. this.weightbills.boxNoOther = this.deptBudgetList.boxNoOther
  1433. this.weightbills.wingNumber = this.deptBudgetList.wingNumber
  1434. this.weightbills.wingNumberOther = this.deptBudgetList.wingNumberOther
  1435. this.weightbills.shipName = this.deptBudgetList.shipName
  1436. this.weightbills.shipNumber = this.deptBudgetList.shipNumber
  1437. this.weightbills.type = this.deptBudgetList.type
  1438. this.weightbills.grossWeight = this.deptBudgetList.grossWeight
  1439. this.weightbills.tare = this.deptBudgetList.tare
  1440. this.weightbills.netWeight = this.deptBudgetList.netWeight
  1441. this.weightbills.outType = this.deptBudgetList.outType
  1442. this.weightbills.backOffice = this.deptBudgetList.outType
  1443. var date = new Date()
  1444. this.weightbills.updateDate = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' +
  1445. date.getDate() + ' ' + date.getHours() + ':' + date.getMinutes() + ':' + date
  1446. .getSeconds()
  1447. window.open('../../../../static/weightCheckOut.html?type=2&tableData=' +
  1448. encodeURIComponent(JSON.stringify(this.weightbills)))
  1449. }
  1450. this.$router.push({
  1451. path: 'warehouseManagementList',
  1452. })
  1453. })
  1454. .catch((response) => {
  1455. this.deptBudgetList.grossWeight = Math.round(
  1456. this.deptBudgetList.grossWeight * 1000
  1457. )
  1458. this.deptBudgetList.tare = Math.round(
  1459. this.deptBudgetList.tare * 1000
  1460. )
  1461. this.deptBudgetList.netWeight = Math.round(
  1462. this.deptBudgetList.netWeight * 1000
  1463. )
  1464. this.deptBudgetList.pureWeight = Math.round(
  1465. this.deptBudgetList.pureWeight * 1000
  1466. )
  1467. this.deptBudgetList.deductionAmount = Math.round(
  1468. this.deptBudgetList.deductionAmount / 1000
  1469. )
  1470. this.deptBudgetList.deductionWeight = Math.round(
  1471. this.deptBudgetList.deductionWeight * 1000
  1472. )
  1473. })
  1474. } else {
  1475. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1476. return false
  1477. }
  1478. })
  1479. })
  1480. },
  1481. tarechange(e) {
  1482. if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
  1483. this.deptBudgetList.netWeight = Number(
  1484. this.deptBudgetList.grossWeight - this.deptBudgetList.tare
  1485. ).toFixed(2)
  1486. }
  1487. },
  1488. grossWeightchange(e) {
  1489. if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
  1490. this.deptBudgetList.netWeight = Number(
  1491. this.deptBudgetList.grossWeight - this.deptBudgetList.tare
  1492. ).toFixed(2)
  1493. }
  1494. },
  1495. selectgoodsName(e) {
  1496. for (var i = 0; i < this.goodnameList.length; i++) {
  1497. if (this.goodnameList[i].goodsName == e) {
  1498. this.deptBudgetList.goodsNameKey = this.goodnameList[i].goodsNameKey
  1499. if (e == '玉米(潮粮)') {
  1500. this.deptBudgetList.type = '潮粮'
  1501. } else {
  1502. this.deptBudgetList.type = '干粮'
  1503. }
  1504. }
  1505. }
  1506. },
  1507. selectpackingMethod(e) {
  1508. for (var i = 0; i < this.packtypeList.length; i++) {
  1509. if (this.packtypeList[i].constValue == e) {
  1510. this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
  1511. }
  1512. }
  1513. },
  1514. selectstorageType(e) {
  1515. for (var i = 0; i < this.deliveryType.length; i++) {
  1516. if (this.deliveryType[i].constValue == e) {
  1517. this.deptBudgetList.inOutTypeKey = this.deliveryType[i].constKey
  1518. }
  1519. }
  1520. },
  1521. handleClose() {
  1522. this.accessoryTFs = false
  1523. },
  1524. handleSizeChange(val) {
  1525. console.log(`每页 ${val} 条`)
  1526. this.pageSize = val
  1527. this.getList()
  1528. },
  1529. handleCurrentChange(val) {
  1530. this.currentPage = val
  1531. console.log(`当前页: ${val}`)
  1532. this.getList()
  1533. },
  1534. getList() {
  1535. // 品级
  1536. pullDown({
  1537. constId: 'CON3',
  1538. })
  1539. .toPromise()
  1540. .then((response) => {
  1541. this.gradeList = response
  1542. })
  1543. // 类型
  1544. if (this.deptBudgetList.warehouseType == 1) {
  1545. // 货名
  1546. goodsname({
  1547. positionId: this.$route.query.positionId,
  1548. })
  1549. .toPromise()
  1550. .then((response) => {
  1551. this.goodnameList = response
  1552. })
  1553. //类型
  1554. pullDown({
  1555. constId: 'CON6',
  1556. })
  1557. .toPromise()
  1558. .then((response) => {
  1559. this.deliveryType = response
  1560. })
  1561. } else if (this.deptBudgetList.warehouseType == 2) {
  1562. goodsnameXiala({
  1563. baseId: this.deptBudgetList.warehouseId,
  1564. })
  1565. .toPromise()
  1566. .then((response) => {
  1567. this.goodnameList = response
  1568. })
  1569. pullDown({
  1570. constId: 'WARE2',
  1571. })
  1572. .toPromise()
  1573. .then((response) => {
  1574. this.deliveryType = response
  1575. })
  1576. }
  1577. //合同编号
  1578. xialaNo({
  1579. compId: localStorage.getItem('ws-pf_compId'),
  1580. flag: 5,
  1581. })
  1582. .toPromise()
  1583. .then((response) => {
  1584. this.outContractNo = response
  1585. })
  1586. //经办人
  1587. getstaff({
  1588. compId: localStorage.getItem('ws-pf_compId'),
  1589. warehouseId: this.deptBudgetList.baseId,
  1590. })
  1591. .toPromise()
  1592. .then((response) => {
  1593. // this.agent = response
  1594. this.qualityInspectorList = response
  1595. this.options = response
  1596. this.staffList = response
  1597. })
  1598. },
  1599. selecttaskType(e) {
  1600. for (var i = 0; i < this.taskTypeList.length; i++) {
  1601. if (this.taskTypeList[i].value == e) {
  1602. this.searchType = this.taskTypeList[i].type
  1603. }
  1604. }
  1605. },
  1606. fujian(row) {
  1607. if (
  1608. row.receiveAttachmentPath === null ||
  1609. row.receiveAttachmentPath === ''
  1610. ) {
  1611. EventBus.$emit(
  1612. 'warning',
  1613. this.$t('system.noticeCircular.NoInformation')
  1614. )
  1615. } else {
  1616. this.accessoryTFs = true
  1617. }
  1618. this.appendixIdss = row.receiveAttachmentPath
  1619. },
  1620. handleExamine(row) {
  1621. this.$router.push({
  1622. name: 'salesContractExamine',
  1623. query: {
  1624. id: row.id,
  1625. },
  1626. })
  1627. },
  1628. //删除
  1629. approve() {},
  1630. listQuery() {},
  1631. total() {},
  1632. clearfiltQuery() {},
  1633. selectCrtDuty() {},
  1634. },
  1635. }
  1636. </script>
  1637. <style lang="scss" scoped>
  1638. /deep/.basicInformation {
  1639. .ws-info-table {
  1640. border: none;
  1641. }
  1642. .left {
  1643. .el-form-item {
  1644. width: 50%;
  1645. // width: 33.3333%;
  1646. border: none;
  1647. .el-form-item__label {
  1648. background: transparent;
  1649. border: none;
  1650. }
  1651. .el-form-item__content {
  1652. border: none;
  1653. }
  1654. }
  1655. }
  1656. .right {
  1657. .el-form-item {
  1658. width: 100%;
  1659. // width: 33.3333%;
  1660. border: none;
  1661. .el-form-item__label {
  1662. background: transparent;
  1663. border: none;
  1664. }
  1665. .el-form-item__content {
  1666. border: none;
  1667. }
  1668. }
  1669. }
  1670. }
  1671. .el-button--default {
  1672. color: #5473e8;
  1673. border-color: #5473e8;
  1674. }
  1675. .title {
  1676. position: relative;
  1677. padding-left: 10px;
  1678. }
  1679. .title::before {
  1680. content: '';
  1681. display: inline-block;
  1682. width: 5px;
  1683. height: 30px;
  1684. background: #5473e8;
  1685. position: absolute;
  1686. left: 0;
  1687. }
  1688. .el-form {
  1689. padding: 0 10%;
  1690. }
  1691. .el-button--primary {
  1692. background-color: #5878e8;
  1693. border-color: #5878e8;
  1694. }
  1695. .el-col {
  1696. background: #f6f7fc;
  1697. }
  1698. .bg-right {
  1699. text-align: right;
  1700. padding: 16px 20px;
  1701. }
  1702. .center {
  1703. position: relative;
  1704. top: 50px;
  1705. width: 40%;
  1706. height: 2000px;
  1707. margin: 0 auto;
  1708. }
  1709. //选填
  1710. /deep/.el-form-item {
  1711. width: 50%;
  1712. }
  1713. .container {
  1714. overflow: scroll;
  1715. height: 120vh;
  1716. }
  1717. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1718. text-align: center;
  1719. }
  1720. .deliverydate {
  1721. display: inline-block;
  1722. width: 10%;
  1723. }
  1724. .center {
  1725. margin-top: -60px;
  1726. width: 80%;
  1727. }
  1728. //仓位
  1729. .position {
  1730. background: #afb5cb;
  1731. border-radius: 2px;
  1732. font-size: 12px;
  1733. color: #ffffff;
  1734. line-height: 20px;
  1735. padding: 2px 4px;
  1736. position: relative;
  1737. top: -2px;
  1738. }
  1739. .neifor /deep/.ws-info-table .el-form-item .el-form-item__label {
  1740. background: #f6f7fc;
  1741. }
  1742. .neifor .ws-info-table {
  1743. border-left: 1px solid #cdd2dc;
  1744. border-top: 1px solid #cdd2dc;
  1745. }
  1746. .neifor .ws-info-table .el-form-item {
  1747. border-right: 1px solid #cdd2dc;
  1748. border-bottom: 1px solid #cdd2dc;
  1749. }
  1750. .inspector /deep/.ws-info-table .el-form-item .el-form-item__label {
  1751. width: 59px;
  1752. }
  1753. //表格文字
  1754. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1755. text-align: center;
  1756. font-size: 14px;
  1757. font-family: PingFangSC-Regular, PingFang SC;
  1758. font-weight: 400;
  1759. color: #8890b1;
  1760. line-height: 16px;
  1761. }
  1762. .inspector {
  1763. width: 50%;
  1764. }
  1765. //质检员
  1766. .inspector .el-form-item__content {
  1767. text-align: left;
  1768. margin-left: 0px;
  1769. }
  1770. .small-title {
  1771. position: relative;
  1772. padding: 10px;
  1773. font-weight: 600;
  1774. }
  1775. .small-title::before {
  1776. position: absolute;
  1777. content: '';
  1778. display: block;
  1779. background: #5473e8;
  1780. width: 4px;
  1781. height: 14px;
  1782. left: 0px;
  1783. top: 13px;
  1784. }
  1785. .top {
  1786. width: 100%;
  1787. background: black;
  1788. color: #2aff7c;
  1789. font-size: 32px;
  1790. text-align: right;
  1791. padding: 20px;
  1792. border-radius: 10px;
  1793. margin: 0 20px 20px 20px;
  1794. .car-type {
  1795. text-align: left;
  1796. }
  1797. .kg-style {
  1798. font-size: 30px;
  1799. }
  1800. }
  1801. .weight {
  1802. font-size: 68px;
  1803. }
  1804. //下面列表
  1805. .neifor {
  1806. width: 80%;
  1807. background-color: #f6f7fc;
  1808. }
  1809. /deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
  1810. width: 35%;
  1811. text-align: center;
  1812. }
  1813. /deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
  1814. width: 60%;
  1815. background-color: #f6f7fc;
  1816. }
  1817. /deep/.neifor .el-input--small .el-input__inner {
  1818. width: 100%;
  1819. }
  1820. .balance-row {
  1821. display: flex;
  1822. margin: 20px 0;
  1823. .left {
  1824. width: 500px;
  1825. margin-bottom: 0;
  1826. }
  1827. }
  1828. </style>