warehouseManagementTare.vue 64 KB

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