warehouseManagementGross.vue 87 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784
  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
  10. class="bg-bottom"
  11. type="primary"
  12. size="small"
  13. @click="revert()"
  14. >
  15. <img
  16. width="6"
  17. height="10"
  18. style="vertical-align: bottom; margin-right: 3px"
  19. src="../../../public/img/lujing.png"
  20. alt
  21. />返回
  22. </el-button>
  23. </el-col>
  24. </el-row>
  25. <ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
  26. <div class="basicInformation">
  27. <h2>
  28. <img
  29. style="position: relative; top: 2px"
  30. width="19"
  31. height="19"
  32. src="../../../public/img/cangku.png"
  33. alt
  34. />
  35. {{ deptBudgetList.warehouseName }}
  36. <span class="position" v-show="this.$route.query.warehouseType == 1"
  37. >{{ deptBudgetList.binNumber }}仓位</span
  38. >
  39. <span v-show="this.$route.query.warehouseType == 2">(临)</span>
  40. </h2>
  41. <div class="balance-row">
  42. <BalanceAlert
  43. class="left"
  44. v-if="isShowBalance"
  45. ref="weightChild"
  46. :deptBudgetList="deptBudgetList"
  47. :information="information"
  48. v-on:balanceListen="setVal"
  49. ></BalanceAlert>
  50. <div class="top">
  51. <div class="car-type">毛重</div>
  52. <div class="weight">
  53. {{ deptBudgetList.grossWeight }} <span class="kg-style">kg</span>
  54. </div>
  55. <!-- <div v-else class="weight">{{weighingList.tare}} <span class="kg-style">kg</span></div> -->
  56. <div class="car-no">{{ deptBudgetList.carNo }}</div>
  57. </div>
  58. </div>
  59. <div class="flex">
  60. <div class="left" style="width: 66.6666%">
  61. <ws-info-table>
  62. <!--任务编号-->
  63. <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
  64. <el-select
  65. filterable
  66. clearable
  67. v-model="deptBudgetList.inOutTaskNo"
  68. placeholder="请选择任务编号"
  69. class="typeselect"
  70. @change="contractNoChange"
  71. >
  72. <el-option
  73. v-for="item in deptBudgetList1"
  74. :key="item.inOutTaskNo"
  75. :label="item.inOutTaskNo"
  76. :value="item.inOutTaskNo"
  77. />
  78. </el-select>
  79. </ws-form-item>
  80. <!--毛重(公斤)-->
  81. <ws-form-item label="毛重(公斤)" span="1" prop="grossWeight">
  82. <ws-input
  83. :disabled="allowEdit"
  84. @input="grossWeightchange"
  85. v-model="deptBudgetList.grossWeight"
  86. placeholder="请输入毛重"
  87. maxlength="20"
  88. type="number"
  89. @mousewheel.native.prevent
  90. size="small"
  91. />
  92. <el-button
  93. type="primary"
  94. v-if="information == '毛重检斤'"
  95. @click="openPort"
  96. >重新获取</el-button
  97. >
  98. </ws-form-item>
  99. <!--合同编号-->
  100. <ws-form-item label="合同编号" span="1" prop="contractNo">
  101. <el-select
  102. disabled
  103. filterable
  104. clearable
  105. v-model="deptBudgetList.contractNo"
  106. class="typeselect"
  107. @change="contractNoChange1"
  108. >
  109. <el-option
  110. v-for="item in options1"
  111. :key="item.constKey"
  112. :label="item.contractNo"
  113. :value="item.contractNo"
  114. />
  115. </el-select>
  116. </ws-form-item>
  117. <!--皮重(公斤)-->
  118. <ws-form-item
  119. label="皮重(公斤)"
  120. span="1"
  121. prop="tare"
  122. class="readonly"
  123. >
  124. <ws-input
  125. :disabled="allowEdit"
  126. @input="tarechange"
  127. v-model="deptBudgetList.tare"
  128. placeholder="请输入皮重"
  129. type="number"
  130. @mousewheel.native.prevent
  131. maxlength="100"
  132. size="small"
  133. />
  134. <el-button
  135. type="primary"
  136. v-if="information == '皮重检斤'"
  137. @click="openPort"
  138. >重新获取</el-button
  139. >
  140. </ws-form-item>
  141. <ws-form-item label="提示" span="1" prop="tips">
  142. <ws-input
  143. onmouseover="this.title=this.value"
  144. v-model="deptBudgetList.tips"
  145. maxlength="20"
  146. size="small"
  147. />
  148. </ws-form-item>
  149. <ws-form-item
  150. label="扣重(公斤)"
  151. span="1"
  152. prop="deductionWeight"
  153. class="readonly"
  154. >
  155. <ws-input
  156. @input="tarechange"
  157. v-model="deptBudgetList.deductionWeight"
  158. placeholder="请输入扣重"
  159. type="number"
  160. @mousewheel.native.prevent
  161. maxlength="100"
  162. size="small"
  163. />
  164. </ws-form-item>
  165. <!-- 货名 -->
  166. <ws-form-item label="货名" span="1">
  167. <ws-select
  168. disabled
  169. v-model="deptBudgetList.goodsName"
  170. placeholder
  171. class="typeselect"
  172. @change="selectgoodsName"
  173. >
  174. <ws-option
  175. v-for="item in goodnameList"
  176. :key="item.constKey"
  177. :label="item.constValue"
  178. :value="item.constValue"
  179. />
  180. </ws-select>
  181. </ws-form-item>
  182. <!--净重(公斤)-->
  183. <ws-form-item label="净重(公斤)" span="1" prop="netWeight">
  184. <ws-input
  185. disabled
  186. v-model="deptBudgetList.netWeight"
  187. placeholder="不可编辑,自动计算"
  188. maxlength="120"
  189. size="small"
  190. />
  191. </ws-form-item>
  192. <ws-form-item label="类型" span="1" prop="type">
  193. <ws-select
  194. disabled
  195. v-model="deptBudgetList.type"
  196. @change="typeChange"
  197. >
  198. <ws-option
  199. v-for="item in typeList"
  200. :key="item"
  201. :label="item"
  202. :value="item"
  203. />
  204. </ws-select>
  205. </ws-form-item>
  206. <ws-form-item
  207. label="扣款(元/公斤)"
  208. span="1"
  209. prop="deductionAmount"
  210. >
  211. <ws-input
  212. @input="kkInput(deptBudgetList.deductionAmount)"
  213. v-model="deptBudgetList.deductionAmount"
  214. placeholder="请输入扣款金额"
  215. maxlength="120"
  216. size="small"
  217. />
  218. </ws-form-item>
  219. <!-- <ws-form-item
  220. v-if="deptBudgetList.type == '潮粮'"
  221. label="扣重比"
  222. span="1"
  223. prop="buckleWeightRatio"
  224. class="readonly"
  225. >
  226. <ws-input
  227. @input="pureweight"
  228. v-model="deptBudgetList.buckleWeightRatio"
  229. placeholder="请输入扣重比"
  230. type="number"
  231. @mousewheel.native.prevent
  232. maxlength="100"
  233. size="small"
  234. />
  235. </ws-form-item>
  236. <ws-form-item
  237. v-if="deptBudgetList.type == '潮粮'"
  238. label="干粮水分占比"
  239. span="1"
  240. prop="solidGrainWater"
  241. class="readonly"
  242. >
  243. <ws-input
  244. @input="pureweight"
  245. v-model="deptBudgetList.solidGrainWater"
  246. placeholder="请输入干粮水分占比"
  247. maxlength="100"
  248. type="number"
  249. @mousewheel.native.prevent
  250. size="small"
  251. />
  252. </ws-form-item>
  253. <ws-form-item
  254. v-if="deptBudgetList.type == '潮粮'"
  255. label="潮粮水分占比"
  256. span="1"
  257. prop="tidalGrainWater"
  258. class="readonly"
  259. >
  260. <ws-input
  261. @input="pureweight(1)"
  262. v-model="deptBudgetList.tidalGrainWater"
  263. placeholder="请输入潮粮水分占比"
  264. maxlength="100"
  265. type="number"
  266. @mousewheel.native.prevent
  267. size="small"
  268. />
  269. </ws-form-item>
  270. <ws-form-item
  271. v-if="deptBudgetList.type == '潮粮'"
  272. label="纯重"
  273. span="1"
  274. prop="pureWeight"
  275. class="readonly"
  276. >
  277. <ws-input
  278. disabled
  279. v-model="deptBudgetList.pureWeight"
  280. placeholder="不可编辑,自动计算"
  281. maxlength="100"
  282. size="small"
  283. />
  284. </ws-form-item>
  285. -->
  286. <!-- 品级 -->
  287. <ws-form-item label="品级" span="1" class="readonly">
  288. <ws-select
  289. v-model="deptBudgetList.grade"
  290. placeholder
  291. class="typeselect"
  292. @change="selectpackingMethod"
  293. >
  294. <ws-option
  295. v-for="item in gradeList"
  296. :key="item.constKey"
  297. :label="item.constValue"
  298. :value="item.constValue"
  299. />
  300. </ws-select>
  301. </ws-form-item>
  302. <ws-form-item
  303. label="入库日期"
  304. span="1"
  305. prop="inOutDate"
  306. class="deliverydate"
  307. >
  308. <el-date-picker
  309. v-model="deptBudgetList.inOutDate"
  310. placeholder="请选择入库日期"
  311. type="date"
  312. value-format="yyyy-MM-dd"
  313. ></el-date-picker>
  314. </ws-form-item>
  315. <!--经办人-->
  316. <ws-form-item label="经办人" span="1" prop="agent">
  317. <el-select
  318. v-model="deptBudgetList.agent"
  319. placeholder="请选择经办人"
  320. filterable
  321. clearable
  322. @change="selectstaff"
  323. >
  324. <el-option
  325. v-for="item in options"
  326. :key="item.value"
  327. :label="item.staffName"
  328. :value="item.staffName"
  329. />
  330. </el-select>
  331. </ws-form-item>
  332. <!-- 经办人(可多选) -->
  333. <!-- <ws-form-item label="经办人" span="1" prop="agent">
  334. <el-select
  335. v-model="deptBudgetList.agent"
  336. multiple
  337. filterable
  338. allow-create
  339. default-first-option
  340. placeholder="请选择经办人"
  341. @change="selectstaff"
  342. >
  343. <el-option
  344. v-for="item in options"
  345. :key="item.value"
  346. :label="item.staffName"
  347. :value="item.staffName"
  348. >
  349. </el-option>
  350. </el-select>
  351. </ws-form-item> -->
  352. <!-- 入库类型 -->
  353. <ws-form-item label="入库类型" span="1">
  354. <ws-select
  355. v-model="deptBudgetList.inOutType"
  356. placeholder
  357. class="typeselect"
  358. @change="selectstorageType"
  359. :disabled="isSelectType"
  360. >
  361. <ws-option
  362. v-for="item in storageType"
  363. :key="item.constKey"
  364. :label="item.constValue"
  365. :value="item.constValue"
  366. />
  367. </ws-select>
  368. </ws-form-item>
  369. <!-- onkeyup="value=value.replace(/[^\A-\Z0-9\u4E00-\u9FA5\.]/g,'')" -->
  370. </ws-info-table>
  371. </div>
  372. <div class="right" style="width: 33.3333%">
  373. <ws-info-table>
  374. <ws-form-item label="成本(元/吨)" span="1" prop="cost">
  375. <ws-input
  376. :disabled="disabled1"
  377. v-model="deptBudgetList.cost"
  378. placeholder="请输入成本"
  379. size="small"
  380. type="number"
  381. @mousewheel.native.prevent
  382. />
  383. <img
  384. width="17"
  385. height="18"
  386. style="
  387. vertical-align: text-top;
  388. position: relative;
  389. top: -1px;
  390. "
  391. src="../../../public/img/edit.png"
  392. @click="editClick(1)"
  393. alt=""
  394. />
  395. </ws-form-item>
  396. <ws-form-item label="运费(元/吨)" span="1" prop="freight">
  397. <ws-input
  398. :disabled="disabled2"
  399. v-model="deptBudgetList.freight"
  400. placeholder="请输入运费"
  401. size="small"
  402. type="number"
  403. @mousewheel.native.prevent
  404. />
  405. <img
  406. width="17"
  407. height="18"
  408. style="
  409. vertical-align: text-top;
  410. position: relative;
  411. top: -1px;
  412. "
  413. src="../../../public/img/edit.png"
  414. @click="editClick(2)"
  415. alt=""
  416. />
  417. </ws-form-item>
  418. <!--入库方式-->
  419. <ws-form-item label="运输方式" span="1" prop="outType">
  420. <el-select
  421. v-model="deptBudgetList.outType"
  422. placeholder="请选择运输方式"
  423. >
  424. <el-option
  425. v-for="item in multiSelector"
  426. :key="item.value"
  427. :label="item.name"
  428. :value="item.name"
  429. />
  430. </el-select>
  431. </ws-form-item>
  432. <!--车牌号 -->
  433. <ws-form-item
  434. label="车牌号"
  435. span="1"
  436. prop="carNo"
  437. v-if="
  438. deptBudgetList.outType == '汽运' ||
  439. deptBudgetList.outType == '集装箱船'
  440. "
  441. >
  442. <ws-input
  443. v-if="options2.length == 0"
  444. v-model="deptBudgetList.carNo"
  445. placeholder="请输入车牌号"
  446. maxlength="7"
  447. size="small"
  448. />
  449. <el-select
  450. v-if="carstatus && options2.length > 0"
  451. filterable clearable
  452. :filter-method="dataFilter2"
  453. v-model="deptBudgetList.carNo"
  454. placeholder="请选择车牌号"
  455. class="typeselect"
  456. @change="carChange"
  457. >
  458. <el-option
  459. v-for="item in options2"
  460. :key="item.constKey"
  461. :label="item.carNo + '(' + item.tranCarNo + ')'"
  462. :value="item.carNo"
  463. />
  464. </el-select>
  465. <el-select
  466. v-if="!carstatus && options2.length > 0"
  467. filterable clearable
  468. :filter-method="dataFilter2"
  469. v-model="deptBudgetList.carNo"
  470. placeholder="请选择车牌号"
  471. class="typeselect"
  472. @change="carChange"
  473. >
  474. <el-option
  475. v-for="item in options2"
  476. :key="item.constKey"
  477. :label="item.carNo"
  478. :value="item.carNo"
  479. />
  480. </el-select>
  481. <span style='padding-left:10px;'>发货重量(吨):{{deptBudgetList.loadNetWeight}}</span>
  482. </ws-form-item>
  483. <!--船名 -->
  484. <ws-form-item
  485. label="船名"
  486. span="1"
  487. prop="carNo"
  488. v-if="deptBudgetList.outType == '散船'"
  489. >
  490. <ws-input
  491. v-model="deptBudgetList.carNo"
  492. placeholder="请输入船名"
  493. size="small"
  494. />
  495. </ws-form-item>
  496. <ws-form-item
  497. label="航次"
  498. span="1"
  499. prop="shipNumber"
  500. v-if="deptBudgetList.outType == '散船'"
  501. >
  502. <ws-input
  503. v-model="deptBudgetList.shipNumber"
  504. placeholder="请输入航次"
  505. maxlength="20"
  506. size="small"
  507. />
  508. </ws-form-item>
  509. <!--车号 -->
  510. <ws-form-item
  511. label="车号"
  512. span="1"
  513. prop="carNo"
  514. v-if="deptBudgetList.outType == '火运'"
  515. >
  516. <ws-input
  517. v-model="deptBudgetList.carNo"
  518. placeholder="请输入车号"
  519. size="small"
  520. />
  521. </ws-form-item>
  522. <ws-form-item
  523. label="箱号-1"
  524. span="1"
  525. prop="boxNo"
  526. v-if="
  527. deptBudgetList.outType == '汽运' ||
  528. deptBudgetList.outType == '集装箱船'
  529. "
  530. >
  531. <ws-input
  532. v-model="deptBudgetList.boxNo"
  533. placeholder="请输入箱号"
  534. maxlength="20"
  535. size="small"
  536. />
  537. </ws-form-item>
  538. <ws-form-item
  539. label="箱号-2"
  540. span="1"
  541. prop="boxNoOther"
  542. v-if="
  543. deptBudgetList.outType == '汽运' ||
  544. deptBudgetList.outType == '集装箱船'
  545. "
  546. >
  547. <ws-input
  548. v-model="deptBudgetList.boxNoOther"
  549. placeholder="请输入箱号"
  550. maxlength="20"
  551. size="small"
  552. />
  553. </ws-form-item>
  554. <ws-form-item
  555. label="封号-1"
  556. span="1"
  557. prop="titleNo"
  558. v-if="
  559. deptBudgetList.outType == '汽运' ||
  560. deptBudgetList.outType == '集装箱船'
  561. "
  562. >
  563. <ws-input
  564. v-model="deptBudgetList.titleNo"
  565. placeholder="请输入封号"
  566. maxlength="20"
  567. size="small"
  568. />
  569. </ws-form-item>
  570. <ws-form-item
  571. label="封号-2"
  572. span="1"
  573. prop="titleNoOther"
  574. v-if="
  575. deptBudgetList.outType == '汽运' ||
  576. deptBudgetList.outType == '集装箱船'
  577. "
  578. >
  579. <ws-input
  580. v-model="deptBudgetList.titleNoOther"
  581. placeholder="请输入封号"
  582. maxlength="20"
  583. size="small"
  584. />
  585. </ws-form-item>
  586. <ws-form-item
  587. label="车厢号-1"
  588. span="1"
  589. prop="wingNumber"
  590. v-if="deptBudgetList.outType == '火运'"
  591. >
  592. <ws-input
  593. v-model="deptBudgetList.wingNumber"
  594. placeholder="请输入车厢号"
  595. maxlength="20"
  596. size="small"
  597. />
  598. </ws-form-item>
  599. <ws-form-item
  600. label="车厢号-2"
  601. span="1"
  602. prop="wingNumberOther"
  603. v-if="deptBudgetList.outType == '火运'"
  604. >
  605. <ws-input
  606. v-model="deptBudgetList.wingNumberOther"
  607. placeholder="请输入车厢号"
  608. maxlength="20"
  609. size="small"
  610. />
  611. </ws-form-item>
  612. <!-- onkeyup="value=value.replace(/[^\A-\Z0-9\u4E00-\u9FA5\.]/g,'')" -->
  613. </ws-info-table>
  614. </div>
  615. </div>
  616. <div
  617. v-show="
  618. this.$route.query.warehouseType == 2 &&
  619. this.deptBudgetList.createType == 2
  620. "
  621. >
  622. <el-checkbox v-model="checked" checked>退库并出库</el-checkbox>
  623. <ws-info-table
  624. v-show="checked == true && this.deptBudgetList.createType == 2"
  625. >
  626. <!-- 出库类型 -->
  627. <ws-form-item label="出库类型" span="1" prop="temporaryOutType">
  628. <!-- v-model="deptBudgetList.deliveryType" -->
  629. <ws-select
  630. v-model="deptBudgetList.temporaryOutType"
  631. placeholder
  632. class="typeselect"
  633. >
  634. <ws-option
  635. v-for="item in deliveryType"
  636. :key="item.constKey"
  637. :label="item.constValue"
  638. :value="item.constValue"
  639. />
  640. </ws-select>
  641. </ws-form-item>
  642. <!-- 出库合同编号 -->
  643. <ws-form-item label="出库合同编号" span="1">
  644. <ws-select
  645. v-model="deptBudgetList.outContractNo"
  646. placeholder="请选择合同编号或移库任务编号"
  647. class="typeselect"
  648. >
  649. <ws-option
  650. v-for="item in outContractNo"
  651. :key="item.constKey"
  652. :label="item.contractNo"
  653. :value="item.contractNo"
  654. />
  655. </ws-select>
  656. </ws-form-item>
  657. </ws-info-table>
  658. </div>
  659. </div>
  660. <!-- <div class="small-title">上传磅单照片</div>
  661. <el-upload
  662. action="https://www.zthymaoyi.com/upload/admin"
  663. :show-file-list="false"
  664. :on-success="
  665. (res) => {
  666. uploadSuccessHandle1(res)
  667. }
  668. "
  669. class="avatar-uploader"
  670. accept=".jpg, .jpeg, .png, .gif"
  671. >
  672. <el-button size="small" type="primary">点击上传</el-button>
  673. </el-upload> -->
  674. <div v-if="deptBudgetList.addressUrl != ''">
  675. <img
  676. style="width: 100px; height: 100px"
  677. :src="deptBudgetList.addressUrl"
  678. alt=""
  679. />
  680. </div>
  681. <div class="small-title">化验数据(选填)</div>
  682. <div class="inspector">
  683. <!--自检员-->
  684. <!-- <ws-form-item label="质检员" span="1" prop="qualityInspector">
  685. <ws-input
  686. v-model="deptBudgetList.warehouseInOutDetail.qualityInspector"
  687. placeholder="请输入质检员姓名"
  688. maxlength="10"
  689. size="small"
  690. />
  691. </ws-form-item> -->
  692. <ws-form-item label="质检员" span="1" prop="qualityInspector">
  693. <el-select
  694. v-model="deptBudgetList.warehouseInOutDetail.qualityInspector"
  695. placeholder="请选择质检员"
  696. filterable
  697. clearable
  698. @change="qualityInspectorChange"
  699. >
  700. <el-option
  701. v-for="item in qualityInspectorList"
  702. :key="item.value"
  703. :label="item.staffName"
  704. :value="item.staffName"
  705. />
  706. </el-select>
  707. </ws-form-item>
  708. </div>
  709. <div class="neifor">
  710. <ws-info-table>
  711. <!--水分(%)<=-->
  712. <ws-form-item label="水分(%)" span="1" prop="waterContent">
  713. <ws-input
  714. v-model="deptBudgetList.warehouseInOutDetail.waterContent"
  715. type="number"
  716. @mousewheel.native.prevent
  717. placeholder="请输入水分占比"
  718. maxlength="40"
  719. size="small"
  720. />
  721. </ws-form-item>
  722. <!--杂质(%)<=-->
  723. <ws-form-item label="杂质(%)" span="1" prop="impurity">
  724. <ws-input
  725. v-model="deptBudgetList.warehouseInOutDetail.impurity"
  726. type="number"
  727. @mousewheel.native.prevent
  728. placeholder="请输入杂质占比"
  729. maxlength="40"
  730. size="small"
  731. />
  732. </ws-form-item>
  733. <!--容重(克/升)-->
  734. <ws-form-item label="容重(克/升)" span="1" prop="bulkDensity">
  735. <ws-input
  736. v-model="deptBudgetList.warehouseInOutDetail.bulkDensity"
  737. type="number"
  738. @mousewheel.native.prevent
  739. placeholder="请输入容重"
  740. maxlength="40"
  741. size="small"
  742. />
  743. </ws-form-item>
  744. <!--霉变粒(%)<=-->
  745. <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
  746. <ws-input
  747. v-model="deptBudgetList.warehouseInOutDetail.mildewGrain"
  748. type="number"
  749. @mousewheel.native.prevent
  750. placeholder="请输入霉变粒占比"
  751. maxlength="40"
  752. size="small"
  753. />
  754. </ws-form-item>
  755. <!--热损伤(%)<=-->
  756. <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
  757. <ws-input
  758. v-model="deptBudgetList.warehouseInOutDetail.jiaorenli"
  759. type="number"
  760. @mousewheel.native.prevent
  761. placeholder="请输入热损伤占比"
  762. maxlength="40"
  763. size="small"
  764. />
  765. </ws-form-item>
  766. <!--不完善粒(%)<=-->
  767. <ws-form-item label="不完善粒(%)" span="1" prop="imperfectGrain">
  768. <ws-input
  769. v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain"
  770. type="number"
  771. @mousewheel.native.prevent
  772. placeholder="请输入不完善粒占比"
  773. maxlength="40"
  774. size="small"
  775. />
  776. </ws-form-item>
  777. </ws-info-table>
  778. </div>
  779. <div style="text-align: right; padding: 10px">
  780. <el-button
  781. v-if="information == '毛重检斤'"
  782. class="bg-bottom-up"
  783. type="primary"
  784. size="small"
  785. @click="temporaryStorage()"
  786. >保存</el-button
  787. >
  788. <el-button
  789. v-if="!allowEdit"
  790. class="bg-bottom-up"
  791. type="primary"
  792. size="small"
  793. @click="submit()"
  794. >提交</el-button
  795. >
  796. </div>
  797. </ws-form>
  798. </div>
  799. </template>
  800. <script>
  801. import {
  802. pullDown,
  803. addstorageputList,
  804. xialaNo,
  805. getstaff,
  806. getReceiptTaskNo,
  807. } from '@/model/warehouse/index'
  808. import Pagination from '@/components/Pagination'
  809. import WsUpload from '@/components/WsUpload'
  810. import BalanceAlert from '@/components/balanceAlert'
  811. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  812. import { dayjs, EventBus } from 'base-core-lib'
  813. export default {
  814. name: 'viewSpareMoney',
  815. components: {
  816. WsUpload,
  817. Pagination,
  818. BalanceAlert,
  819. },
  820. watch: {
  821. // vesselId(val) {
  822. // this.getList()
  823. // },
  824. isShow(val) {
  825. this.showType = val
  826. },
  827. },
  828. data() {
  829. return {
  830. //有没有称
  831. isShowBalance: false,
  832. deptBudgetList1: [],
  833. qualityInspectorList: [],
  834. isGetCost: false,
  835. isSelectType: true,
  836. //弹出框
  837. dialogViewSpareMoney: false,
  838. dialogApproveFormVisible: false,
  839. // 船舶类型
  840. monetaryKey: null,
  841. // 表格显示数据
  842. tableDate: [],
  843. // 是否显示
  844. showType: true,
  845. typeList: ['干粮', '潮粮'],
  846. // 年
  847. year: '',
  848. carstatus: false,
  849. deptBudgetTotal: 0,
  850. currentPage: 1,
  851. pageSize: 10,
  852. searchType: 1,
  853. searchKeyWord: '',
  854. contractType: 2,
  855. startDate: null,
  856. endDate: null,
  857. goodnameList: {},
  858. checked: true,
  859. agent: [],
  860. staffList: [],
  861. options: [],
  862. options1: [],
  863. options2: [],
  864. outContractNo1: [],
  865. outContractNo: [],
  866. // 提交类型
  867. submitType: true,
  868. storageType: [],
  869. deliveryType: [],
  870. readonly: true,
  871. appendixIdsAdd: '',
  872. uploadSuccess: {},
  873. onChange: {},
  874. gradeList: [],
  875. rules: {},
  876. size: 10,
  877. disabled1: true,
  878. disabled2: true,
  879. tranCarInfoList: [],
  880. compId: localStorage.getItem('ws-pf_compId'),
  881. secretaryWeigher: localStorage.getItem('ws-pf_staffName'),
  882. deptCircularPage: {},
  883. packtypeList: {},
  884. date: {
  885. year: dayjs().format('YYYY'),
  886. month: dayjs().format('MM'),
  887. },
  888. contractList: [],
  889. deptBudgetList: {
  890. type: '干粮',
  891. freight: 0,
  892. cost: '',
  893. addressUrl: '',
  894. warehouseInOutDetail: {},
  895. deductionAmount: 0,
  896. deductionWeight: 0,
  897. grossWeight: '',
  898. tare: '',
  899. inOutDate: '',
  900. },
  901. historyList: [],
  902. cost: '',
  903. pickerBeginDateBefore: {
  904. disabledDate: (time) => {
  905. return time.getTime() > Date.now()
  906. },
  907. },
  908. accessoryTFs: false,
  909. allowEdit: true,
  910. param: 9600,
  911. information: '',
  912. result1: '00',
  913. multiSelector: [
  914. {
  915. name: '汽运',
  916. value: '0',
  917. },
  918. {
  919. name: '火运',
  920. value: '1',
  921. },
  922. {
  923. name: '集装箱船',
  924. value: '2',
  925. },
  926. {
  927. name: '散船',
  928. value: '3',
  929. },
  930. ],
  931. }
  932. },
  933. mounted() {
  934. let date = new Date()
  935. var year = date.getFullYear()
  936. var month = date.getMonth() + 1
  937. var strDate = date.getDate()
  938. this.deptBudgetList.inOutDate = '' + year + '-' + month + '-' + strDate
  939. this.information = this.$route.query.information
  940. if (this.$route.query.allowEdit == 1) {
  941. this.allowEdit = false
  942. } else {
  943. this.allowEdit = true
  944. }
  945. this.deptBudgetList.baseId = this.$route.query.baseId
  946. this.deptBudgetList.positionId = this.$route.query.positionId
  947. this.deptBudgetList.warehouseName = this.$route.query.warehouseName
  948. this.deptBudgetList.binNumber = this.$route.query.binNumber
  949. this.deptBudgetList.warehouseType = this.$route.query.warehouseType
  950. this.deptBudgetList.createType = this.$route.query.createType
  951. this.getList()
  952. // this.deptBudgetList.grade = '一等品'
  953. // this.deptBudgetList.gradeKey = '1'
  954. this.deptBudgetList.inOutTypeFlag = 1
  955. if (this.deptBudgetList.cost) {
  956. if (this.deptBudgetList.cost > this.deptBudgetList.deductionAmount) {
  957. this.deptBudgetList.cost =
  958. this.cost - this.deptBudgetList.deductionAmount
  959. } else {
  960. }
  961. }
  962. getReceiptTaskNo({
  963. flag: 2,
  964. warehouseName: this.deptBudgetList.warehouseName,
  965. agentKey: localStorage.getItem('ws-pf_userId'),
  966. })
  967. .toPromise()
  968. .then((response) => {
  969. console.log(response)
  970. this.deptBudgetList1 = response
  971. })
  972. // if (this.deptBudgetList.warehouseType == 1) {
  973. // // this.deptBudgetList.inOutType = '采购入库'
  974. // this.deptBudgetList.inOutTypeKey = '1'
  975. // } else {
  976. // // this.deptBudgetList.inOutType = '退库'
  977. // this.deptBudgetList.inOutTypeKey = '1'
  978. // }
  979. if (this.$route.query.automaticWeightAcquisition == '1') {
  980. this.isShowBalance = true
  981. }
  982. },
  983. methods: {
  984. setVal(data) {
  985. if (this.information == '毛重检斤') {
  986. this.deptBudgetList.grossWeight = data
  987. } else {
  988. this.deptBudgetList.tare = data
  989. }
  990. },
  991. openPort() {
  992. this.$refs.weightChild.openPort()
  993. },
  994. qualityInspectorChange(e) {
  995. console.log(e)
  996. },
  997. kkInput(val) {
  998. console.log(val)
  999. if (this.isGetCost) {
  1000. if (this.deptBudgetList.cost > val) {
  1001. this.deptBudgetList.cost =
  1002. this.cost - this.deptBudgetList.deductionAmount
  1003. }
  1004. }
  1005. },
  1006. uploadSuccessHandle1(res) {
  1007. this.deptBudgetList.addressUrl = res.url
  1008. console.log(this.deptBudgetList.addressUrl)
  1009. },
  1010. dataFilter1(val) {
  1011. console.log(val)
  1012. this.deptBudgetList.contractNo = val
  1013. if (val) {
  1014. //val存在
  1015. this.options1 = this.outContractNo1.filter((item) => {
  1016. if (
  1017. !!~item.contractNo.indexOf(val) ||
  1018. !!~item.contractNo.toUpperCase().indexOf(val.toUpperCase())
  1019. ) {
  1020. return true
  1021. }
  1022. })
  1023. } else {
  1024. //val为空时,还原数组
  1025. this.options1 = this.outContractNo
  1026. }
  1027. },
  1028. dataFilter2(val) {
  1029. this.deptBudgetList.carNo = val
  1030. if (val) {
  1031. //val存在
  1032. this.options1 = this.outContractNo1.filter((item) => {
  1033. if (
  1034. !!~item.carNo.indexOf(val) ||
  1035. !!~item.carNo.toUpperCase().indexOf(val.toUpperCase())
  1036. ) {
  1037. return true
  1038. }
  1039. })
  1040. } else {
  1041. //val为空时,还原数组
  1042. this.options2 = this.tranCarInfoList
  1043. }
  1044. },
  1045. editClick(status) {
  1046. this.isGetCost = false
  1047. if (status == 1) {
  1048. this.disabled1 = !this.disabled1
  1049. } else {
  1050. this.disabled2 = !this.disabled2
  1051. }
  1052. },
  1053. //返回按钮
  1054. revert() {
  1055. this.$router.push({
  1056. path: 'warehouseManagementList',
  1057. })
  1058. },
  1059. carChange(e) {
  1060. for (let i = 0; i < this.tranCarInfoList.length; i++) {
  1061. if (this.tranCarInfoList[i].carNo == this.deptBudgetList.carNo) {
  1062. this.deptBudgetList.tranCarNo = this.tranCarInfoList[i].tranCarNo
  1063. this.deptBudgetList.freight = Math.round(
  1064. this.tranCarInfoList[i].tranPrice
  1065. )
  1066. if(this.deptBudgetList.inOutType=='移库入库'){
  1067. if(!this.deptBudgetList.cost){
  1068. this.deptBudgetList.cost=this.tranCarInfoList[i].cost
  1069. }
  1070. this.deptBudgetList.loadNetWeight=this.tranCarInfoList[i].loadNetWeight
  1071. }
  1072. }
  1073. }
  1074. },
  1075. dataFilter(val) {
  1076. // console.log(val,"名")
  1077. this.deptBudgetList.staffList = val
  1078. if (val) {
  1079. //val存在
  1080. this.options = this.staffList.filter((item) => {
  1081. if (
  1082. !!~item.staffName.indexOf(val) ||
  1083. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  1084. ) {
  1085. return true
  1086. }
  1087. })
  1088. } else {
  1089. //val为空时,还原数组
  1090. this.options = this.staffList
  1091. }
  1092. },
  1093. selectstaff(e) {
  1094. // console.log(this.deptBudgetList.agent)
  1095. for (var i = 0; i < this.staffList.length; i++) {
  1096. if (this.staffList[i].staffName == e) {
  1097. this.deptBudgetList.personChargeKey = this.staffList[i].staffId
  1098. }
  1099. }
  1100. },
  1101. //提交按钮
  1102. submit() {
  1103. if (this.reader) {
  1104. this.reader.cancel()
  1105. }
  1106. if (!this.deptBudgetList.goodsName) {
  1107. this.$message({
  1108. message: '货名不能为空',
  1109. type: 'warning',
  1110. })
  1111. return
  1112. }
  1113. if (!this.deptBudgetList.grossWeight) {
  1114. this.$message({
  1115. message: '毛重不能为空',
  1116. type: 'warning',
  1117. })
  1118. return
  1119. }
  1120. if (
  1121. this.deptBudgetList.grossWeight < 100 ||
  1122. this.deptBudgetList.grossWeight > 500000 ||
  1123. (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
  1124. String(this.deptBudgetList.grossWeight).length -
  1125. (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
  1126. 3)
  1127. ) {
  1128. this.$message({
  1129. message: '毛重输入错误(单位:公斤)',
  1130. type: 'warning',
  1131. })
  1132. return
  1133. }
  1134. if (!String(this.deptBudgetList.tare)) {
  1135. this.$message({
  1136. message: '皮重不能为空',
  1137. type: 'warning',
  1138. })
  1139. return
  1140. }
  1141. if (
  1142. this.deptBudgetList.tare < 0 ||
  1143. this.deptBudgetList.tare > 5000000 ||
  1144. (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
  1145. String(this.deptBudgetList.tare).length -
  1146. (String(this.deptBudgetList.tare).indexOf('.') + 1) >
  1147. 3)
  1148. ) {
  1149. this.$message({
  1150. message: '皮重输入错误(单位:公斤)',
  1151. type: 'warning',
  1152. })
  1153. return
  1154. }
  1155. if (!String(this.deptBudgetList.deductionWeight)) {
  1156. this.$message({
  1157. message: '扣重不能为空',
  1158. type: 'warning',
  1159. })
  1160. return
  1161. }
  1162. if (
  1163. this.deptBudgetList.deductionWeight < 0 ||
  1164. this.deptBudgetList.deductionWeight > 1000 ||
  1165. (String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
  1166. String(this.deptBudgetList.deductionWeight).length -
  1167. (String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
  1168. 3)
  1169. ) {
  1170. this.$message({
  1171. message: '扣重输入错误',
  1172. type: 'warning',
  1173. })
  1174. return
  1175. }
  1176. if (
  1177. this.deptBudgetList.type == '潮粮' &&
  1178. !this.deptBudgetList.buckleWeightRatio
  1179. ) {
  1180. this.$message({
  1181. message: '扣重比不能为空',
  1182. type: 'warning',
  1183. })
  1184. return
  1185. }
  1186. if (
  1187. (this.deptBudgetList.type == '潮粮' &&
  1188. this.deptBudgetList.buckleWeightRatio < 0) ||
  1189. (this.deptBudgetList.type == '潮粮' &&
  1190. this.deptBudgetList.buckleWeightRatio > 3) ||
  1191. (this.deptBudgetList.type == '潮粮' &&
  1192. String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
  1193. String(this.deptBudgetList.buckleWeightRatio).length -
  1194. (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
  1195. 2)
  1196. ) {
  1197. this.$message({
  1198. message: '扣重比输入错误',
  1199. type: 'warning',
  1200. })
  1201. return
  1202. }
  1203. if (
  1204. this.deptBudgetList.type == '潮粮' &&
  1205. !this.deptBudgetList.tidalGrainWater
  1206. ) {
  1207. this.$message({
  1208. message: '潮粮水分不能为空',
  1209. type: 'warning',
  1210. })
  1211. return
  1212. }
  1213. if (
  1214. (this.deptBudgetList.type == '潮粮' &&
  1215. this.deptBudgetList.tidalGrainWater < 1) ||
  1216. (this.deptBudgetList.type == '潮粮' &&
  1217. this.deptBudgetList.tidalGrainWater > 40) ||
  1218. (this.deptBudgetList.type == '潮粮' &&
  1219. String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
  1220. String(this.deptBudgetList.tidalGrainWater).length -
  1221. (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
  1222. 2)
  1223. ) {
  1224. this.$message({
  1225. message: '潮粮水分输入错误',
  1226. type: 'warning',
  1227. })
  1228. return
  1229. }
  1230. if (
  1231. this.deptBudgetList.type == '潮粮' &&
  1232. !this.deptBudgetList.solidGrainWater
  1233. ) {
  1234. this.$message({
  1235. message: '干粮水分不能为空',
  1236. type: 'warning',
  1237. })
  1238. return
  1239. }
  1240. if (
  1241. (this.deptBudgetList.type == '潮粮' &&
  1242. this.deptBudgetList.solidGrainWater < 1) ||
  1243. (this.deptBudgetList.type == '潮粮' &&
  1244. this.deptBudgetList.solidGrainWater > 40) ||
  1245. (this.deptBudgetList.type == '潮粮' &&
  1246. String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
  1247. String(this.deptBudgetList.solidGrainWater).length -
  1248. (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
  1249. 1)
  1250. ) {
  1251. this.$message({
  1252. message: '干粮水分输入错误',
  1253. type: 'warning',
  1254. })
  1255. return
  1256. }
  1257. if (!String(this.deptBudgetList.deductionAmount)) {
  1258. this.$message({
  1259. message: '扣款不能为空',
  1260. type: 'warning',
  1261. })
  1262. return
  1263. }
  1264. if (
  1265. this.deptBudgetList.deductionAmount < 0 ||
  1266. this.deptBudgetList.deductionAmount > 10000 ||
  1267. (String(this.deptBudgetList.deductionAmount).indexOf('.') != -1 &&
  1268. String(this.deptBudgetList.deductionAmount).length -
  1269. (String(this.deptBudgetList.deductionAmount).indexOf('.') + 1) >
  1270. 2)
  1271. ) {
  1272. this.$message({
  1273. message: '扣款输入错误',
  1274. type: 'warning',
  1275. })
  1276. return
  1277. }
  1278. if (!this.deptBudgetList.cost) {
  1279. this.$message({
  1280. message: '未获取到成本,请编辑后提交',
  1281. type: 'warning',
  1282. })
  1283. return
  1284. }
  1285. if (
  1286. this.deptBudgetList.cost < 0 ||
  1287. this.deptBudgetList.cost > 20000 ||
  1288. (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
  1289. String(this.deptBudgetList.cost).length -
  1290. (String(this.deptBudgetList.cost).indexOf('.') + 1) >
  1291. 2)
  1292. ) {
  1293. this.$message({
  1294. message: '成本输入错误',
  1295. type: 'warning',
  1296. })
  1297. return
  1298. }
  1299. if (!String(this.deptBudgetList.freight)) {
  1300. this.$message({
  1301. message: '运费不能为空',
  1302. type: 'warning',
  1303. })
  1304. return
  1305. }
  1306. if (
  1307. this.deptBudgetList.freight < 0 ||
  1308. this.deptBudgetList.freight > 100000 ||
  1309. (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
  1310. String(this.deptBudgetList.freight).length -
  1311. (String(this.deptBudgetList.freight).indexOf('.') + 1) >
  1312. 2)
  1313. ) {
  1314. this.$message({
  1315. message: '运费输入错误',
  1316. type: 'warning',
  1317. })
  1318. return
  1319. }
  1320. if (!this.deptBudgetList.agent) {
  1321. this.$message({
  1322. message: '经办人不能为空',
  1323. type: 'warning',
  1324. })
  1325. return
  1326. }
  1327. if (
  1328. this.deptBudgetList.agent.length < 2 ||
  1329. this.deptBudgetList.agent.length > 10
  1330. ) {
  1331. this.$message({
  1332. message: '经办人输入有误',
  1333. type: 'warning',
  1334. })
  1335. return
  1336. }
  1337. if (!this.deptBudgetList.grade) {
  1338. this.$message({
  1339. message: '品级不能为空!',
  1340. type: 'warning',
  1341. })
  1342. return
  1343. }
  1344. if (!this.deptBudgetList.inOutDate) {
  1345. this.$message({
  1346. message: '入库日期不能为空!',
  1347. type: 'warning',
  1348. })
  1349. return
  1350. }
  1351. if (!this.deptBudgetList.inOutType) {
  1352. this.$message({
  1353. message: '入库类型不能为空!',
  1354. type: 'warning',
  1355. })
  1356. return
  1357. }
  1358. if (!this.deptBudgetList.carNo) {
  1359. this.$message({
  1360. message: '车牌号不能为空',
  1361. type: 'warning',
  1362. })
  1363. return
  1364. }
  1365. if (this.deptBudgetList.carNo.length > 7) {
  1366. this.$message({
  1367. message: '车牌号输入错误,请输入7个字符之内',
  1368. type: 'warning',
  1369. })
  1370. return
  1371. }
  1372. if (this.deptBudgetList.boxNo && this.deptBudgetList.boxNo.length > 20) {
  1373. this.$message({
  1374. message: '箱号-1输入错误',
  1375. type: 'warning',
  1376. })
  1377. return
  1378. }
  1379. if (
  1380. this.deptBudgetList.boxNoOther &&
  1381. this.deptBudgetList.boxNoOther.length > 20
  1382. ) {
  1383. this.$message({
  1384. message: '箱号-2输入错误',
  1385. type: 'warning',
  1386. })
  1387. return
  1388. }
  1389. if (
  1390. this.deptBudgetList.titleNo &&
  1391. this.deptBudgetList.titleNo.length > 20
  1392. ) {
  1393. this.$message({
  1394. message: '封号-1输入错误',
  1395. type: 'warning',
  1396. })
  1397. return
  1398. }
  1399. if (
  1400. this.deptBudgetList.titleNoOther &&
  1401. this.deptBudgetList.titleNoOther.length > 20
  1402. ) {
  1403. this.$message({
  1404. message: '封号-2输入错误',
  1405. type: 'warning',
  1406. })
  1407. return
  1408. }
  1409. if (!this.deptBudgetList.contractNo) {
  1410. this.$message({
  1411. message: '合同编号不能为空',
  1412. type: 'warning',
  1413. })
  1414. return
  1415. }
  1416. // if (
  1417. // this.deptBudgetList.contractNo.length < 6 ||
  1418. // this.deptBudgetList.contractNo.length > 20
  1419. // ) {
  1420. // this.$message({
  1421. // message: '合同编号长度不符合要求,请输入6-20个字符之内',
  1422. // type: 'warning',
  1423. // })
  1424. // return
  1425. // }
  1426. // if (!this.deptBudgetList.addressUrl) {
  1427. // this.$message({
  1428. // message: '附件不能为空',
  1429. // type: 'warning',
  1430. // })
  1431. // return
  1432. // }
  1433. //自检员
  1434. if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
  1435. if (
  1436. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
  1437. 2 ||
  1438. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
  1439. ) {
  1440. this.$message({
  1441. message: '质检员姓名长度错误!',
  1442. type: 'warning',
  1443. })
  1444. return
  1445. }
  1446. }
  1447. if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
  1448. if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
  1449. this.$message({
  1450. message: '水分(%)非数字!',
  1451. type: 'warning',
  1452. })
  1453. return
  1454. }
  1455. if (
  1456. this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
  1457. this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
  1458. (String(
  1459. this.deptBudgetList.warehouseInOutDetail.waterContent
  1460. ).indexOf('.') != -1 &&
  1461. String(this.deptBudgetList.warehouseInOutDetail.waterContent)
  1462. .length -
  1463. (String(
  1464. this.deptBudgetList.warehouseInOutDetail.waterContent
  1465. ).indexOf('.') +
  1466. 1) >
  1467. 2)
  1468. ) {
  1469. this.$message({
  1470. message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1471. type: 'warning',
  1472. })
  1473. return
  1474. }
  1475. }
  1476. //杂质
  1477. if (this.deptBudgetList.warehouseInOutDetail.impurity) {
  1478. if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
  1479. this.$message({
  1480. message: '杂质(%)非数字!',
  1481. type: 'warning',
  1482. })
  1483. return
  1484. }
  1485. if (
  1486. this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
  1487. this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
  1488. (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
  1489. '.'
  1490. ) != -1 &&
  1491. String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
  1492. (String(
  1493. this.deptBudgetList.warehouseInOutDetail.impurity
  1494. ).indexOf('.') +
  1495. 1) >
  1496. 2)
  1497. ) {
  1498. this.$message({
  1499. message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1500. type: 'warning',
  1501. })
  1502. return
  1503. }
  1504. }
  1505. //霉变
  1506. if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
  1507. if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
  1508. this.$message({
  1509. message: '霉变粒(%)非数字!',
  1510. type: 'warning',
  1511. })
  1512. return
  1513. }
  1514. if (
  1515. this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
  1516. this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
  1517. (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
  1518. '.'
  1519. ) != -1 &&
  1520. String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
  1521. .length -
  1522. (String(
  1523. this.deptBudgetList.warehouseInOutDetail.mildewGrain
  1524. ).indexOf('.') +
  1525. 1) >
  1526. 2)
  1527. ) {
  1528. this.$message({
  1529. message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1530. type: 'warning',
  1531. })
  1532. return
  1533. }
  1534. }
  1535. //热损伤
  1536. if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
  1537. if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
  1538. this.$message({
  1539. message: '热损伤(%)非数字!',
  1540. type: 'warning',
  1541. })
  1542. return
  1543. }
  1544. if (
  1545. this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
  1546. this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
  1547. (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
  1548. '.'
  1549. ) != -1 &&
  1550. String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
  1551. (String(
  1552. this.deptBudgetList.warehouseInOutDetail.jiaorenli
  1553. ).indexOf('.') +
  1554. 1) >
  1555. 2)
  1556. ) {
  1557. this.$message({
  1558. message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1559. type: 'warning',
  1560. })
  1561. return
  1562. }
  1563. }
  1564. //不完善粒(%)
  1565. if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
  1566. if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
  1567. this.$message({
  1568. message: '不完善粒(%)非数字!',
  1569. type: 'warning',
  1570. })
  1571. return
  1572. }
  1573. if (
  1574. this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
  1575. this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
  1576. (String(
  1577. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  1578. ).indexOf('.') != -1 &&
  1579. String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
  1580. .length -
  1581. (String(
  1582. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  1583. ).indexOf('.') +
  1584. 1) >
  1585. 2)
  1586. ) {
  1587. this.$message({
  1588. message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1589. type: 'warning',
  1590. })
  1591. return
  1592. }
  1593. }
  1594. //容重
  1595. if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
  1596. if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
  1597. this.$message({
  1598. message: '容重(克/升)非数字!',
  1599. type: 'warning',
  1600. })
  1601. return
  1602. }
  1603. if (
  1604. (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
  1605. String(
  1606. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  1607. ).indexOf('.') != -1 &&
  1608. String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
  1609. .length -
  1610. (String(
  1611. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  1612. ).indexOf('.') +
  1613. 1) >
  1614. 2) ||
  1615. this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
  1616. this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
  1617. ) {
  1618. this.$message({
  1619. message: '容重输入错误',
  1620. type: 'warning',
  1621. })
  1622. return
  1623. }
  1624. }
  1625. console.log(this.deptBudgetList, '入库对象')
  1626. this.$confirm(`确定提交入库信息`, {
  1627. cancelButtonText: '取消',
  1628. confirmButtonText: '确定',
  1629. type: 'warning',
  1630. })
  1631. .then(() => {
  1632. this.$refs.deptBudgetList.validate((valid) => {
  1633. if (valid) {
  1634. this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
  1635. this.deptBudgetList.secretaryWeigher =
  1636. localStorage.getItem('ws-pf_staffName')
  1637. this.deptBudgetList.inOutFlag = 2
  1638. this.deptBudgetList.pcFlag = 1
  1639. this.deptBudgetList.statusFlag = 3
  1640. this.deptBudgetList.grossWeight = (
  1641. this.deptBudgetList.grossWeight / 1000
  1642. ).toFixed(2)
  1643. this.deptBudgetList.tare = (
  1644. this.deptBudgetList.tare / 1000
  1645. ).toFixed(2)
  1646. this.deptBudgetList.netWeight = (
  1647. this.deptBudgetList.netWeight / 1000
  1648. ).toFixed(2)
  1649. if (!this.deptBudgetList.pureWeight) {
  1650. this.deptBudgetList.pureWeight = 0
  1651. }
  1652. this.deptBudgetList.pureWeight = (
  1653. this.deptBudgetList.pureWeight / 1000
  1654. ).toFixed(2)
  1655. if (!this.deptBudgetList.deductionWeight) {
  1656. this.deptBudgetList.deductionWeight = 0
  1657. }
  1658. if (!this.deptBudgetList.deductionAmount) {
  1659. this.deptBudgetList.deductionAmount = 0
  1660. }
  1661. this.deptBudgetList.deductionWeight = (
  1662. this.deptBudgetList.deductionWeight / 1000
  1663. ).toFixed(2)
  1664. this.deptBudgetList.deductionAmount = Math.round(
  1665. this.deptBudgetList.deductionAmount * 1000
  1666. )
  1667. // this.deptBudgetList.grossWeight /= 1000
  1668. // this.deptBudgetList.tare /= 1000
  1669. // this.deptBudgetList.netWeight /= 1000
  1670. // this.deptBudgetList.pureWeight /= 1000
  1671. // this.deptBudgetList.deductionAmount *= 1000
  1672. // this.deptBudgetList.deductionWeight /= 1000
  1673. addstorageputList(this.deptBudgetList)
  1674. .toPromise()
  1675. .then((response) => {
  1676. // this.deptBudgetList.grossWeight = Math.round(this.dataList.grossWeight*1000)
  1677. // this.deptBudgetList.tare = Math.round(this.dataList.tare*1000)
  1678. // this.deptBudgetList.netWeight = Math.round(this.dataList.netWeight*1000)
  1679. // this.deptBudgetList.pureWeight = Math.round(this.dataList.pureWeight*1000)
  1680. // this.deptBudgetList.deductionWeight = Math.round(this.dataList.deductionWeight*1000)
  1681. if (this.reader) {
  1682. this.reader.cancel()
  1683. }
  1684. this.$message.success('添加成功')
  1685. this.$router.push({
  1686. path: 'warehouseManagementList',
  1687. })
  1688. })
  1689. .catch((response) => {
  1690. this.deptBudgetList.grossWeight = Math.round(
  1691. this.deptBudgetList.grossWeight * 1000
  1692. )
  1693. this.deptBudgetList.tare = Math.round(
  1694. this.deptBudgetList.tare * 1000
  1695. )
  1696. this.deptBudgetList.netWeight = Math.round(
  1697. this.deptBudgetList.netWeight * 1000
  1698. )
  1699. this.deptBudgetList.pureWeight = Math.round(
  1700. this.deptBudgetList.pureWeight * 1000
  1701. )
  1702. this.deptBudgetList.deductionWeight = Math.round(
  1703. this.deptBudgetList.deductionWeight * 1000
  1704. )
  1705. })
  1706. } else {
  1707. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1708. return false
  1709. }
  1710. })
  1711. })
  1712. .catch(() => {
  1713. return false
  1714. })
  1715. },
  1716. temporaryStorage() {
  1717. if (this.reader) {
  1718. this.reader.cancel()
  1719. }
  1720. if (!this.deptBudgetList.goodsName) {
  1721. this.$message({
  1722. message: '货名不能为空',
  1723. type: 'warning',
  1724. })
  1725. return
  1726. }
  1727. if (this.information == '毛重检斤' && !this.deptBudgetList.grossWeight) {
  1728. this.$message({
  1729. message: '毛重不能为空',
  1730. type: 'warning',
  1731. })
  1732. return
  1733. }
  1734. if (
  1735. this.information == '毛重检斤' &&
  1736. (this.deptBudgetList.grossWeight < 0 ||
  1737. this.deptBudgetList.grossWeight > 2000000 ||
  1738. (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
  1739. String(this.deptBudgetList.grossWeight).length -
  1740. (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
  1741. 3))
  1742. ) {
  1743. this.$message({
  1744. message: '毛重输入错误',
  1745. type: 'warning',
  1746. })
  1747. return
  1748. }
  1749. if (this.information == '皮重检斤' && !this.deptBudgetList.tare) {
  1750. this.$message({
  1751. message: '皮重不能为空',
  1752. type: 'warning',
  1753. })
  1754. return
  1755. }
  1756. if (
  1757. this.information == '皮重检斤' &&
  1758. (this.deptBudgetList.tare < 0 ||
  1759. this.deptBudgetList.tare > 1000000 ||
  1760. (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
  1761. String(this.deptBudgetList.tare).length -
  1762. (String(this.deptBudgetList.tare).indexOf('.') + 1) >
  1763. 3))
  1764. ) {
  1765. this.$message({
  1766. message: '皮重输入错误',
  1767. type: 'warning',
  1768. })
  1769. return
  1770. }
  1771. // if (!this.deptBudgetList.deductionWeight) {
  1772. // this.$message({
  1773. // message: '扣重不能为空',
  1774. // type: 'warning',
  1775. // })
  1776. // return
  1777. // }
  1778. // if (
  1779. // this.deptBudgetList.deductionWeight < 0 ||
  1780. // this.deptBudgetList.deductionWeight > 10 ||
  1781. // (String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
  1782. // String(this.deptBudgetList.deductionWeight).length -
  1783. // (String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
  1784. // 3)
  1785. // ) {
  1786. // this.$message({
  1787. // message: '扣重输入错误',
  1788. // type: 'warning',
  1789. // })
  1790. // return
  1791. // }
  1792. // if (
  1793. // this.deptBudgetList.type == '潮粮' &&
  1794. // !this.deptBudgetList.buckleWeightRatio
  1795. // ) {
  1796. // this.$message({
  1797. // message: '扣重比不能为空',
  1798. // type: 'warning',
  1799. // })
  1800. // return
  1801. // }
  1802. // if (
  1803. // (this.deptBudgetList.type == '潮粮' &&
  1804. // this.deptBudgetList.buckleWeightRatio < 0) ||
  1805. // (this.deptBudgetList.type == '潮粮' &&
  1806. // this.deptBudgetList.buckleWeightRatio > 3) ||
  1807. // (this.deptBudgetList.type == '潮粮' &&
  1808. // String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
  1809. // String(this.deptBudgetList.buckleWeightRatio).length -
  1810. // (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
  1811. // 2)
  1812. // ) {
  1813. // this.$message({
  1814. // message: '扣重比输入错误',
  1815. // type: 'warning',
  1816. // })
  1817. // return
  1818. // }
  1819. // if (
  1820. // this.deptBudgetList.type == '潮粮' &&
  1821. // !this.deptBudgetList.tidalGrainWater
  1822. // ) {
  1823. // this.$message({
  1824. // message: '潮粮水分不能为空',
  1825. // type: 'warning',
  1826. // })
  1827. // return
  1828. // }
  1829. // if (
  1830. // (this.deptBudgetList.type == '潮粮' &&
  1831. // this.deptBudgetList.tidalGrainWater < 1) ||
  1832. // (this.deptBudgetList.type == '潮粮' &&
  1833. // this.deptBudgetList.tidalGrainWater > 40) ||
  1834. // (this.deptBudgetList.type == '潮粮' &&
  1835. // String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
  1836. // String(this.deptBudgetList.tidalGrainWater).length -
  1837. // (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
  1838. // 2)
  1839. // ) {
  1840. // this.$message({
  1841. // message: '潮粮水分输入错误',
  1842. // type: 'warning',
  1843. // })
  1844. // return
  1845. // }
  1846. // if (
  1847. // this.deptBudgetList.type == '潮粮' &&
  1848. // !this.deptBudgetList.solidGrainWater
  1849. // ) {
  1850. // this.$message({
  1851. // message: '干粮水分不能为空',
  1852. // type: 'warning',
  1853. // })
  1854. // return
  1855. // }
  1856. // if (
  1857. // (this.deptBudgetList.type == '潮粮' &&
  1858. // this.deptBudgetList.solidGrainWater < 1) ||
  1859. // (this.deptBudgetList.type == '潮粮' &&
  1860. // this.deptBudgetList.solidGrainWater > 40) ||
  1861. // (this.deptBudgetList.type == '潮粮' &&
  1862. // String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
  1863. // String(this.deptBudgetList.solidGrainWater).length -
  1864. // (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
  1865. // 1)
  1866. // ) {
  1867. // this.$message({
  1868. // message: '干粮水分输入错误',
  1869. // type: 'warning',
  1870. // })
  1871. // return
  1872. // }
  1873. // if (!this.deptBudgetList.deductionAmount) {
  1874. // this.$message({
  1875. // message: '扣款不能为空',
  1876. // type: 'warning',
  1877. // })
  1878. // return
  1879. // }
  1880. // if (
  1881. // this.deptBudgetList.deductionAmount < 0 ||
  1882. // this.deptBudgetList.deductionAmount > 10000 ||
  1883. // (String(this.deptBudgetList.deductionAmount).indexOf('.') != -1 &&
  1884. // String(this.deptBudgetList.deductionAmount).length -
  1885. // (String(this.deptBudgetList.deductionAmount).indexOf('.') + 1) >
  1886. // 2)
  1887. // ) {
  1888. // this.$message({
  1889. // message: '扣款输入错误',
  1890. // type: 'warning',
  1891. // })
  1892. // return
  1893. // }
  1894. // if (!this.deptBudgetList.cost) {
  1895. // this.$message({
  1896. // message: '未获取到成本,请编辑后提交',
  1897. // type: 'warning',
  1898. // })
  1899. // return
  1900. // }
  1901. // if (
  1902. // this.deptBudgetList.cost < 0 ||
  1903. // this.deptBudgetList.cost > 20000 ||
  1904. // (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
  1905. // String(this.deptBudgetList.cost).length -
  1906. // (String(this.deptBudgetList.cost).indexOf('.') + 1) >
  1907. // 2)
  1908. // ) {
  1909. // this.$message({
  1910. // message: '成本输入错误',
  1911. // type: 'warning',
  1912. // })
  1913. // return
  1914. // }
  1915. // if (!this.deptBudgetList.freight) {
  1916. // this.$message({
  1917. // message: '运费不能为空',
  1918. // type: 'warning',
  1919. // })
  1920. // return
  1921. // }
  1922. // if (
  1923. // this.deptBudgetList.freight < 0 ||
  1924. // this.deptBudgetList.freight > 100000 ||
  1925. // (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
  1926. // String(this.deptBudgetList.freight).length -
  1927. // (String(this.deptBudgetList.freight).indexOf('.') + 1) >
  1928. // 2)
  1929. // ) {
  1930. // this.$message({
  1931. // message: '运费输入错误',
  1932. // type: 'warning',
  1933. // })
  1934. // return
  1935. // }
  1936. // if (!this.deptBudgetList.agent) {
  1937. // this.$message({
  1938. // message: '经办人不能为空',
  1939. // type: 'warning',
  1940. // })
  1941. // return
  1942. // }
  1943. // if (
  1944. // this.deptBudgetList.agent.length < 2 ||
  1945. // this.deptBudgetList.agent.length > 10
  1946. // ) {
  1947. // this.$message({
  1948. // message: '经办人输入有误',
  1949. // type: 'warning',
  1950. // })
  1951. // return
  1952. // }
  1953. // if (!this.deptBudgetList.carNo) {
  1954. // this.$message({
  1955. // message: '车牌号不能为空',
  1956. // type: 'warning'
  1957. // })
  1958. // return
  1959. // }
  1960. // if (this.deptBudgetList.carNo.length > 7) {
  1961. // this.$message({
  1962. // message: '车牌号输入错误,请输入7个字符之内',
  1963. // type: 'warning'
  1964. // })
  1965. // return
  1966. // }
  1967. if (!this.deptBudgetList.contractNo) {
  1968. this.$message({
  1969. message: '合同编号不能为空',
  1970. type: 'warning',
  1971. })
  1972. return
  1973. }
  1974. // if (
  1975. // this.deptBudgetList.contractNo.length < 6 ||
  1976. // this.deptBudgetList.contractNo.length > 20
  1977. // ) {
  1978. // this.$message({
  1979. // message: '合同编号长度不符合要求,请输入6-20个字符之内',
  1980. // type: 'warning',
  1981. // })
  1982. // return
  1983. // }
  1984. // if (this.deptBudgetList.netWeight > this.$route.query.capacity) {
  1985. // this.$message({
  1986. // message: '入库量大于该仓库容量!',
  1987. // type: 'warning',
  1988. // })
  1989. // return
  1990. // }
  1991. //自检员
  1992. if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
  1993. if (
  1994. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
  1995. 2 ||
  1996. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
  1997. ) {
  1998. this.$message({
  1999. message: '质检员姓名长度错误!',
  2000. type: 'warning',
  2001. })
  2002. return
  2003. }
  2004. }
  2005. if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
  2006. if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
  2007. this.$message({
  2008. message: '水分(%)非数字!',
  2009. type: 'warning',
  2010. })
  2011. return
  2012. }
  2013. if (
  2014. this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
  2015. this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
  2016. (String(
  2017. this.deptBudgetList.warehouseInOutDetail.waterContent
  2018. ).indexOf('.') != -1 &&
  2019. String(this.deptBudgetList.warehouseInOutDetail.waterContent)
  2020. .length -
  2021. (String(
  2022. this.deptBudgetList.warehouseInOutDetail.waterContent
  2023. ).indexOf('.') +
  2024. 1) >
  2025. 2)
  2026. ) {
  2027. this.$message({
  2028. message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
  2029. type: 'warning',
  2030. })
  2031. return
  2032. }
  2033. }
  2034. //杂质
  2035. if (this.deptBudgetList.warehouseInOutDetail.impurity) {
  2036. if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
  2037. this.$message({
  2038. message: '杂质(%)非数字!',
  2039. type: 'warning',
  2040. })
  2041. return
  2042. }
  2043. if (
  2044. this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
  2045. this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
  2046. (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
  2047. '.'
  2048. ) != -1 &&
  2049. String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
  2050. (String(
  2051. this.deptBudgetList.warehouseInOutDetail.impurity
  2052. ).indexOf('.') +
  2053. 1) >
  2054. 2)
  2055. ) {
  2056. this.$message({
  2057. message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
  2058. type: 'warning',
  2059. })
  2060. return
  2061. }
  2062. }
  2063. //霉变
  2064. if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
  2065. if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
  2066. this.$message({
  2067. message: '霉变粒(%)非数字!',
  2068. type: 'warning',
  2069. })
  2070. return
  2071. }
  2072. if (
  2073. this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
  2074. this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
  2075. (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
  2076. '.'
  2077. ) != -1 &&
  2078. String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
  2079. .length -
  2080. (String(
  2081. this.deptBudgetList.warehouseInOutDetail.mildewGrain
  2082. ).indexOf('.') +
  2083. 1) >
  2084. 2)
  2085. ) {
  2086. this.$message({
  2087. message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  2088. type: 'warning',
  2089. })
  2090. return
  2091. }
  2092. }
  2093. //热损伤
  2094. if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
  2095. if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
  2096. this.$message({
  2097. message: '热损伤(%)非数字!',
  2098. type: 'warning',
  2099. })
  2100. return
  2101. }
  2102. if (
  2103. this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
  2104. this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
  2105. (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
  2106. '.'
  2107. ) != -1 &&
  2108. String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
  2109. (String(
  2110. this.deptBudgetList.warehouseInOutDetail.jiaorenli
  2111. ).indexOf('.') +
  2112. 1) >
  2113. 2)
  2114. ) {
  2115. this.$message({
  2116. message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
  2117. type: 'warning',
  2118. })
  2119. return
  2120. }
  2121. }
  2122. //不完善粒(%)
  2123. if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
  2124. if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
  2125. this.$message({
  2126. message: '不完善粒(%)非数字!',
  2127. type: 'warning',
  2128. })
  2129. return
  2130. }
  2131. if (
  2132. this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
  2133. this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
  2134. (String(
  2135. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  2136. ).indexOf('.') != -1 &&
  2137. String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
  2138. .length -
  2139. (String(
  2140. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  2141. ).indexOf('.') +
  2142. 1) >
  2143. 2)
  2144. ) {
  2145. this.$message({
  2146. message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  2147. type: 'warning',
  2148. })
  2149. return
  2150. }
  2151. }
  2152. //容重
  2153. if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
  2154. if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
  2155. this.$message({
  2156. message: '容重(克/升)非数字!',
  2157. type: 'warning',
  2158. })
  2159. return
  2160. }
  2161. if (
  2162. (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
  2163. String(
  2164. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  2165. ).indexOf('.') != -1 &&
  2166. String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
  2167. .length -
  2168. (String(
  2169. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  2170. ).indexOf('.') +
  2171. 1) >
  2172. 2) ||
  2173. this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
  2174. this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
  2175. ) {
  2176. this.$message({
  2177. message: '容重输入错误',
  2178. type: 'warning',
  2179. })
  2180. return
  2181. }
  2182. }
  2183. this.$confirm(`是否保存毛重检斤`, {
  2184. cancelButtonText: '取消',
  2185. confirmButtonText: '确定',
  2186. type: 'warning',
  2187. })
  2188. .then(() => {
  2189. this.$refs.deptBudgetList.validate((valid) => {
  2190. if (valid) {
  2191. this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
  2192. this.deptBudgetList.secretaryWeigher =
  2193. localStorage.getItem('ws-pf_staffName')
  2194. this.deptBudgetList.inOutFlag = 2
  2195. this.deptBudgetList.statusFlag = 1
  2196. let _data = JSON.parse(
  2197. localStorage.getItem('winseaview-userInfo')
  2198. )
  2199. this.deptBudgetList.backOffice =
  2200. _data.content.showCompName + '-' + _data.content.staffName
  2201. this.deptBudgetList.grossWeight /= 1000
  2202. this.deptBudgetList.tare /= 1000
  2203. this.deptBudgetList.netWeight /= 1000
  2204. this.deptBudgetList.pureWeight /= 1000
  2205. this.deptBudgetList.deductionAmount *= 1000
  2206. this.deptBudgetList.deductionWeight /= 1000
  2207. addstorageputList(this.deptBudgetList)
  2208. .toPromise()
  2209. .then((response) => {
  2210. if (this.reader) {
  2211. this.reader.cancel()
  2212. }
  2213. this.$message.success('保存成功')
  2214. this.$router.push({
  2215. path: 'warehouseManagementList',
  2216. })
  2217. })
  2218. } else {
  2219. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  2220. return false
  2221. }
  2222. })
  2223. })
  2224. .catch(() => {
  2225. return false
  2226. })
  2227. },
  2228. tarechange(e) {
  2229. if (
  2230. this.deptBudgetList.grossWeight &&
  2231. this.deptBudgetList.tare &&
  2232. (this.deptBudgetList.deductionWeight ||
  2233. this.deptBudgetList.deductionWeight == 0)
  2234. ) {
  2235. this.deptBudgetList.netWeight = Number(
  2236. this.deptBudgetList.grossWeight -
  2237. this.deptBudgetList.tare -
  2238. this.deptBudgetList.deductionWeight
  2239. ).toFixed(2)
  2240. }
  2241. },
  2242. grossWeightchange(e) {
  2243. if (
  2244. this.deptBudgetList.grossWeight &&
  2245. this.deptBudgetList.tare &&
  2246. (this.deptBudgetList.deductionWeight ||
  2247. this.deptBudgetList.deductionWeight == 0)
  2248. ) {
  2249. this.deptBudgetList.netWeight = Number(
  2250. this.deptBudgetList.grossWeight -
  2251. this.deptBudgetList.tare -
  2252. this.deptBudgetList.deductionWeight
  2253. ).toFixed(2)
  2254. }
  2255. },
  2256. contractNoChange(e) {
  2257. this.disabled1 = true
  2258. for (let i = 0; i < this.deptBudgetList1.length; i++) {
  2259. console.log(this.deptBudgetList1[i])
  2260. if (this.deptBudgetList1[i].inOutTaskNo == e) {
  2261. var data = this.deptBudgetList1[i]
  2262. if (this.deptBudgetList1[i].contractNo) {
  2263. this.deptBudgetList.contractNo = this.deptBudgetList1[i].contractNo
  2264. } else {
  2265. this.deptBudgetList.contractNo = this.deptBudgetList1[i].moveTaskNo
  2266. }
  2267. }
  2268. }
  2269. for (var i = 0; i < this.outContractNo.length; i++) {
  2270. if (
  2271. this.outContractNo[i].contractNo == this.deptBudgetList.contractNo
  2272. ) {
  2273. console.log(this.outContractNo[i])
  2274. this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
  2275. this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
  2276. this.deptBudgetList.grade = this.outContractNo[i].grade
  2277. if (this.outContractNo[i].inOutType == '采购入库') {
  2278. if (!this.outContractNo[i].unitContractPrice) {
  2279. this.deptBudgetList.tips = '卖方' + this.outContractNo[i].seller
  2280. } else {
  2281. this.deptBudgetList.tips =
  2282. '卖方' +
  2283. this.outContractNo[i].seller +
  2284. '( ' +
  2285. this.outContractNo[i].unitContractPrice +
  2286. '元/吨)'
  2287. }
  2288. this.deptBudgetList.inOutTypeKey = 1
  2289. } else if (this.outContractNo[i].inOutType == '移库入库') {
  2290. this.deptBudgetList.goodsName = data.goodsName
  2291. this.deptBudgetList.goodsNameKey = data.goodsNameKey
  2292. this.deptBudgetList.grade = data.grade
  2293. if (this.outContractNo[i].unitContractPrice) {
  2294. this.deptBudgetList.tips =
  2295. '出货库' +
  2296. data.sendWarehouse +
  2297. ' (' +
  2298. this.outContractNo[i].unitContractPrice +
  2299. '元/吨)'
  2300. } else {
  2301. this.deptBudgetList.tips = '出货库' + data.sendWarehouse
  2302. }
  2303. this.deptBudgetList.inOutTypeKey = 3
  2304. } else if (this.outContractNo[i].inOutType == '移库出库') {
  2305. this.deptBudgetList.tips = '入货库' + data.receiveWarehouse
  2306. } else if (this.outContractNo[i].inOutType == '暂存入库') {
  2307. this.deptBudgetList.inOutTypeKey = 4
  2308. } else if (this.outContractNo[i].inOutType == '贸易服务入库') {
  2309. this.deptBudgetList.inOutTypeKey = 5
  2310. } else if (this.outContractNo[i].inOutType == '退库') {
  2311. if (this.outContractNo[i].contractNo) {
  2312. this.deptBudgetList.tips = '买方' + this.outContractNo[i].buyer
  2313. } else {
  2314. this.deptBudgetList.tips = '出货库' + data.sendWarehouse
  2315. }
  2316. this.deptBudgetList.inOutTypeKey = 6
  2317. }
  2318. // this.deptBudgetList.cost = this.outContractNo[i].contractPrice
  2319. this.cost = this.outContractNo[i].contractPrice
  2320. if (this.cost) {
  2321. this.isGetCost = true
  2322. this.deptBudgetList.cost =
  2323. this.cost - this.deptBudgetList.deductionAmount
  2324. } else {
  2325. this.isGetCost = false
  2326. this.deptBudgetList.cost = this.deptBudgetList.cost
  2327. }
  2328. this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
  2329. if (this.outContractNo[i].inOutType == '移库入库') {
  2330. this.isSelectType = false
  2331. } else {
  2332. this.isSelectType = true
  2333. }
  2334. if (this.outContractNo[i].priceType == '随行就市') {
  2335. this.disabled1 = !this.disabled1
  2336. }
  2337. if (this.outContractNo[i].deliverType == '1') {
  2338. this.carstatus = true
  2339. } else {
  2340. this.carstatus = false
  2341. }
  2342. if (this.outContractNo[i].tranCarInfoList) {
  2343. this.options2 = this.outContractNo[i].tranCarInfoList
  2344. this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
  2345. // this.carstatus = true
  2346. }
  2347. }
  2348. }
  2349. },
  2350. contractNoChange1(e) {
  2351. for (var i = 0; i < this.outContractNo.length; i++) {
  2352. if (this.outContractNo[i].contractNo == e) {
  2353. if (this.outContractNo[i].inOutType == '采购入库') {
  2354. this.deptBudgetList.inOutTypeKey = 1
  2355. } else if (this.outContractNo[i].inOutType == '移库入库') {
  2356. this.deptBudgetList.inOutTypeKey = 3
  2357. } else if (this.outContractNo[i].inOutType == '暂存入库') {
  2358. this.deptBudgetList.inOutTypeKey = 4
  2359. } else if (this.outContractNo[i].inOutType == '贸易服务入库') {
  2360. this.deptBudgetList.inOutTypeKey = 5
  2361. } else if (this.outContractNo[i].inOutType == '退库') {
  2362. this.deptBudgetList.inOutTypeKey = 6
  2363. }
  2364. this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
  2365. this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
  2366. this.deptBudgetList.grade = this.outContractNo[i].grade
  2367. // this.deptBudgetList.cost = this.outContractNo[i].contractPrice
  2368. this.cost = this.outContractNo[i].contractPrice
  2369. if (this.cost) {
  2370. this.isGetCost = true
  2371. this.deptBudgetList.cost =
  2372. this.cost - this.deptBudgetList.deductionAmount
  2373. } else {
  2374. this.isGetCost = false
  2375. this.deptBudgetList.cost = this.deptBudgetList.cost
  2376. }
  2377. this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
  2378. if (this.outContractNo[i].inOutType == '移库入库') {
  2379. this.isSelectType = false
  2380. } else {
  2381. this.isSelectType = true
  2382. }
  2383. if (this.outContractNo[i].deliverType == '1') {
  2384. this.carstatus = true
  2385. } else {
  2386. this.carstatus = false
  2387. }
  2388. if (this.outContractNo[i].tranCarInfoList) {
  2389. this.options2 = this.outContractNo[i].tranCarInfoList
  2390. this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
  2391. this.carstatus = true
  2392. }
  2393. }
  2394. }
  2395. },
  2396. typeChange(e) {},
  2397. pureweight(status) {
  2398. console.log(this.deptBudgetList)
  2399. if (
  2400. this.deptBudgetList.netWeight &&
  2401. this.deptBudgetList.tidalGrainWater &&
  2402. this.deptBudgetList.solidGrainWater &&
  2403. this.deptBudgetList.buckleWeightRatio
  2404. ) {
  2405. this.deptBudgetList.pureWeight =
  2406. (this.deptBudgetList.netWeight *
  2407. (100 -
  2408. (this.deptBudgetList.tidalGrainWater -
  2409. this.deptBudgetList.solidGrainWater) *
  2410. this.deptBudgetList.buckleWeightRatio)) /
  2411. 100
  2412. }
  2413. },
  2414. selectgoodsName(e) {
  2415. for (var i = 0; i < this.goodnameList.length; i++) {
  2416. if (this.goodnameList[i].constValue == e) {
  2417. this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
  2418. if (e == '玉米(潮粮)') {
  2419. this.deptBudgetList.type = '潮粮'
  2420. } else {
  2421. this.deptBudgetList.type = '干粮'
  2422. }
  2423. }
  2424. }
  2425. },
  2426. selectpackingMethod(e) {
  2427. for (var i = 0; i < this.packtypeList.length; i++) {
  2428. if (this.packtypeList[i].constValue == e) {
  2429. this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
  2430. }
  2431. }
  2432. },
  2433. selectstorageType(e) {
  2434. for (var i = 0; i < this.storageType.length; i++) {
  2435. if (this.storageType[i].constValue == e) {
  2436. this.deptBudgetList.inOutTypeKey = this.storageType[i].constKey
  2437. }
  2438. }
  2439. },
  2440. handleClose() {
  2441. this.accessoryTFs = false
  2442. },
  2443. handleSizeChange(val) {
  2444. console.log(`每页 ${val} 条`)
  2445. this.pageSize = val
  2446. this.getList()
  2447. },
  2448. handleCurrentChange(val) {
  2449. this.currentPage = val
  2450. console.log(`当前页: ${val}`)
  2451. this.getList()
  2452. },
  2453. getList() {
  2454. // 货名
  2455. pullDown({
  2456. constId: 'CON2',
  2457. })
  2458. .toPromise()
  2459. .then((response) => {
  2460. this.goodnameList = response
  2461. })
  2462. // 品级
  2463. pullDown({
  2464. constId: 'CON3',
  2465. })
  2466. .toPromise()
  2467. .then((response) => {
  2468. this.gradeList = response
  2469. })
  2470. // 类型
  2471. if (this.deptBudgetList.warehouseType == '1') {
  2472. this.storageType = []
  2473. pullDown({
  2474. constId: 'CON5',
  2475. })
  2476. .toPromise()
  2477. .then((response) => {
  2478. // this.storageType = response
  2479. for (let i = 0; i < response.length; i++) {
  2480. if (
  2481. response[i].constValue == '移库入库' ||
  2482. response[i].constValue == '退库'
  2483. ) {
  2484. this.storageType.push(response[i])
  2485. }
  2486. }
  2487. })
  2488. } else if (this.deptBudgetList.warehouseType == '2') {
  2489. pullDown({
  2490. constId: 'WARE1',
  2491. })
  2492. .toPromise()
  2493. .then((response) => {
  2494. this.storageType = response
  2495. })
  2496. pullDown({
  2497. constId: 'WARE2',
  2498. })
  2499. .toPromise()
  2500. .then((response) => {
  2501. this.deliveryType = response
  2502. })
  2503. }
  2504. //合同编号
  2505. xialaNo({
  2506. compId: localStorage.getItem('ws-pf_compId'),
  2507. flag: 7,
  2508. })
  2509. .toPromise()
  2510. .then((response) => {
  2511. this.options1 = response
  2512. this.outContractNo = response
  2513. })
  2514. //经办人
  2515. getstaff({
  2516. compId: localStorage.getItem('ws-pf_compId'),
  2517. warehouseId: this.deptBudgetList.baseId,
  2518. })
  2519. .toPromise()
  2520. .then((response) => {
  2521. this.options = response
  2522. this.qualityInspectorList = response
  2523. this.staffList = response
  2524. // this.agent = response
  2525. })
  2526. },
  2527. selecttaskType(e) {
  2528. for (var i = 0; i < this.taskTypeList.length; i++) {
  2529. if (this.taskTypeList[i].value == e) {
  2530. this.searchType = this.taskTypeList[i].type
  2531. }
  2532. }
  2533. },
  2534. fujian(row) {
  2535. if (
  2536. row.receiveAttachmentPath === null ||
  2537. row.receiveAttachmentPath === ''
  2538. ) {
  2539. EventBus.$emit(
  2540. 'warning',
  2541. this.$t('system.noticeCircular.NoInformation')
  2542. )
  2543. } else {
  2544. this.accessoryTFs = true
  2545. }
  2546. this.appendixIdss = row.receiveAttachmentPath
  2547. },
  2548. handleExamine(row) {
  2549. this.$router.push({
  2550. name: 'salesContractExamine',
  2551. query: {
  2552. id: row.id,
  2553. },
  2554. })
  2555. },
  2556. },
  2557. }
  2558. </script>
  2559. <style lang="scss" scoped>
  2560. /deep/.basicInformation {
  2561. .ws-info-table {
  2562. border: none;
  2563. }
  2564. .left {
  2565. .el-form-item {
  2566. width: 50%;
  2567. // width: 33.3333%;
  2568. border: none;
  2569. .el-form-item__label {
  2570. background: transparent;
  2571. border: none;
  2572. }
  2573. .el-form-item__content {
  2574. border: none;
  2575. }
  2576. }
  2577. }
  2578. .right {
  2579. .el-form-item {
  2580. width: 100%;
  2581. // width: 33.3333%;
  2582. border: none;
  2583. .el-form-item__label {
  2584. background: transparent;
  2585. border: none;
  2586. }
  2587. .el-form-item__content {
  2588. border: none;
  2589. }
  2590. }
  2591. }
  2592. }
  2593. .title {
  2594. position: relative;
  2595. padding-left: 10px;
  2596. }
  2597. .title::before {
  2598. content: '';
  2599. display: inline-block;
  2600. width: 5px;
  2601. height: 30px;
  2602. background: #5473e8;
  2603. position: absolute;
  2604. left: 0;
  2605. }
  2606. .el-form {
  2607. padding: 0 10%;
  2608. }
  2609. .el-button--primary {
  2610. background-color: #5878e8;
  2611. border-color: #5878e8;
  2612. }
  2613. .el-col {
  2614. background: #f6f7fc;
  2615. }
  2616. .bg-right {
  2617. text-align: right;
  2618. padding: 16px 20px;
  2619. }
  2620. .center {
  2621. position: relative;
  2622. top: 50px;
  2623. width: 40%;
  2624. height: 2000px;
  2625. margin: 0 auto;
  2626. }
  2627. //选填
  2628. /deep/.el-form-item {
  2629. width: 50%;
  2630. }
  2631. .container {
  2632. overflow: scroll;
  2633. height: 120vh;
  2634. }
  2635. /deep/.ws-info-table .el-form-item .el-form-item__label {
  2636. text-align: center;
  2637. }
  2638. .deliverydate {
  2639. display: inline-block;
  2640. width: 10%;
  2641. }
  2642. .center {
  2643. margin-top: -60px;
  2644. width: 80%;
  2645. }
  2646. //仓位
  2647. .position {
  2648. background: #afb5cb;
  2649. border-radius: 2px;
  2650. font-size: 12px;
  2651. color: #ffffff;
  2652. line-height: 20px;
  2653. display: inline-grid;
  2654. padding: 2px 4px;
  2655. }
  2656. //表格文字
  2657. /deep/.ws-info-table .el-form-item .el-form-item__label {
  2658. text-align: left;
  2659. font-size: 14px;
  2660. font-family: PingFangSC-Regular, PingFang SC;
  2661. font-weight: 400;
  2662. color: #8890b1;
  2663. line-height: 16px;
  2664. }
  2665. .inspector {
  2666. width: 50%;
  2667. }
  2668. //质检员
  2669. .inspector .el-form-item__content {
  2670. text-align: left;
  2671. margin-left: 0px;
  2672. }
  2673. .small-title {
  2674. position: relative;
  2675. padding: 10px;
  2676. font-weight: 600;
  2677. }
  2678. .small-title::before {
  2679. position: absolute;
  2680. content: '';
  2681. display: block;
  2682. background: #5473e8;
  2683. width: 4px;
  2684. height: 14px;
  2685. left: 0px;
  2686. top: 13px;
  2687. padding: 4px 2px;
  2688. }
  2689. .top {
  2690. width: 100%;
  2691. background: black;
  2692. color: #2aff7c;
  2693. font-size: 32px;
  2694. text-align: right;
  2695. padding: 20px;
  2696. border-radius: 10px;
  2697. margin: 0 20px 0px 20px;
  2698. .car-type {
  2699. text-align: left;
  2700. }
  2701. .kg-style {
  2702. font-size: 30px;
  2703. }
  2704. }
  2705. .weight {
  2706. font-size: 68px;
  2707. }
  2708. //下面列表
  2709. .neifor {
  2710. width: 80%;
  2711. background-color: #f6f7fc;
  2712. }
  2713. /deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
  2714. width: 35%;
  2715. text-align: center;
  2716. }
  2717. /deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
  2718. width: 60%;
  2719. background-color: #f6f7fc;
  2720. }
  2721. /deep/.neifor .el-input--small .el-input__inner {
  2722. width: 100%;
  2723. }
  2724. .balance-row {
  2725. display: flex;
  2726. margin: 20px 0;
  2727. .left {
  2728. width: 500px;
  2729. margin-bottom: 0;
  2730. }
  2731. }
  2732. </style>