warehouseManagementTare.vue 65 KB

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