warehouseManagementTare.vue 66 KB

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