warehouseManagementGross.vue 87 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781
  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="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. this.deptBudgetList.loadNetWeight=this.tranCarInfoList[i].loadNetWeight
  1068. }
  1069. }
  1070. }
  1071. },
  1072. dataFilter(val) {
  1073. // console.log(val,"名")
  1074. this.deptBudgetList.staffList = val
  1075. if (val) {
  1076. //val存在
  1077. this.options = this.staffList.filter((item) => {
  1078. if (
  1079. !!~item.staffName.indexOf(val) ||
  1080. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  1081. ) {
  1082. return true
  1083. }
  1084. })
  1085. } else {
  1086. //val为空时,还原数组
  1087. this.options = this.staffList
  1088. }
  1089. },
  1090. selectstaff(e) {
  1091. // console.log(this.deptBudgetList.agent)
  1092. for (var i = 0; i < this.staffList.length; i++) {
  1093. if (this.staffList[i].staffName == e) {
  1094. this.deptBudgetList.personChargeKey = this.staffList[i].staffId
  1095. }
  1096. }
  1097. },
  1098. //提交按钮
  1099. submit() {
  1100. if (this.reader) {
  1101. this.reader.cancel()
  1102. }
  1103. if (!this.deptBudgetList.goodsName) {
  1104. this.$message({
  1105. message: '货名不能为空',
  1106. type: 'warning',
  1107. })
  1108. return
  1109. }
  1110. if (!this.deptBudgetList.grossWeight) {
  1111. this.$message({
  1112. message: '毛重不能为空',
  1113. type: 'warning',
  1114. })
  1115. return
  1116. }
  1117. if (
  1118. this.deptBudgetList.grossWeight < 100 ||
  1119. this.deptBudgetList.grossWeight > 500000 ||
  1120. (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
  1121. String(this.deptBudgetList.grossWeight).length -
  1122. (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
  1123. 3)
  1124. ) {
  1125. this.$message({
  1126. message: '毛重输入错误(单位:公斤)',
  1127. type: 'warning',
  1128. })
  1129. return
  1130. }
  1131. if (!String(this.deptBudgetList.tare)) {
  1132. this.$message({
  1133. message: '皮重不能为空',
  1134. type: 'warning',
  1135. })
  1136. return
  1137. }
  1138. if (
  1139. this.deptBudgetList.tare < 0 ||
  1140. this.deptBudgetList.tare > 5000000 ||
  1141. (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
  1142. String(this.deptBudgetList.tare).length -
  1143. (String(this.deptBudgetList.tare).indexOf('.') + 1) >
  1144. 3)
  1145. ) {
  1146. this.$message({
  1147. message: '皮重输入错误(单位:公斤)',
  1148. type: 'warning',
  1149. })
  1150. return
  1151. }
  1152. if (!String(this.deptBudgetList.deductionWeight)) {
  1153. this.$message({
  1154. message: '扣重不能为空',
  1155. type: 'warning',
  1156. })
  1157. return
  1158. }
  1159. if (
  1160. this.deptBudgetList.deductionWeight < 0 ||
  1161. this.deptBudgetList.deductionWeight > 1000 ||
  1162. (String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
  1163. String(this.deptBudgetList.deductionWeight).length -
  1164. (String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
  1165. 3)
  1166. ) {
  1167. this.$message({
  1168. message: '扣重输入错误',
  1169. type: 'warning',
  1170. })
  1171. return
  1172. }
  1173. if (
  1174. this.deptBudgetList.type == '潮粮' &&
  1175. !this.deptBudgetList.buckleWeightRatio
  1176. ) {
  1177. this.$message({
  1178. message: '扣重比不能为空',
  1179. type: 'warning',
  1180. })
  1181. return
  1182. }
  1183. if (
  1184. (this.deptBudgetList.type == '潮粮' &&
  1185. this.deptBudgetList.buckleWeightRatio < 0) ||
  1186. (this.deptBudgetList.type == '潮粮' &&
  1187. this.deptBudgetList.buckleWeightRatio > 3) ||
  1188. (this.deptBudgetList.type == '潮粮' &&
  1189. String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
  1190. String(this.deptBudgetList.buckleWeightRatio).length -
  1191. (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
  1192. 2)
  1193. ) {
  1194. this.$message({
  1195. message: '扣重比输入错误',
  1196. type: 'warning',
  1197. })
  1198. return
  1199. }
  1200. if (
  1201. this.deptBudgetList.type == '潮粮' &&
  1202. !this.deptBudgetList.tidalGrainWater
  1203. ) {
  1204. this.$message({
  1205. message: '潮粮水分不能为空',
  1206. type: 'warning',
  1207. })
  1208. return
  1209. }
  1210. if (
  1211. (this.deptBudgetList.type == '潮粮' &&
  1212. this.deptBudgetList.tidalGrainWater < 1) ||
  1213. (this.deptBudgetList.type == '潮粮' &&
  1214. this.deptBudgetList.tidalGrainWater > 40) ||
  1215. (this.deptBudgetList.type == '潮粮' &&
  1216. String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
  1217. String(this.deptBudgetList.tidalGrainWater).length -
  1218. (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
  1219. 2)
  1220. ) {
  1221. this.$message({
  1222. message: '潮粮水分输入错误',
  1223. type: 'warning',
  1224. })
  1225. return
  1226. }
  1227. if (
  1228. this.deptBudgetList.type == '潮粮' &&
  1229. !this.deptBudgetList.solidGrainWater
  1230. ) {
  1231. this.$message({
  1232. message: '干粮水分不能为空',
  1233. type: 'warning',
  1234. })
  1235. return
  1236. }
  1237. if (
  1238. (this.deptBudgetList.type == '潮粮' &&
  1239. this.deptBudgetList.solidGrainWater < 1) ||
  1240. (this.deptBudgetList.type == '潮粮' &&
  1241. this.deptBudgetList.solidGrainWater > 40) ||
  1242. (this.deptBudgetList.type == '潮粮' &&
  1243. String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
  1244. String(this.deptBudgetList.solidGrainWater).length -
  1245. (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
  1246. 1)
  1247. ) {
  1248. this.$message({
  1249. message: '干粮水分输入错误',
  1250. type: 'warning',
  1251. })
  1252. return
  1253. }
  1254. if (!String(this.deptBudgetList.deductionAmount)) {
  1255. this.$message({
  1256. message: '扣款不能为空',
  1257. type: 'warning',
  1258. })
  1259. return
  1260. }
  1261. if (
  1262. this.deptBudgetList.deductionAmount < 0 ||
  1263. this.deptBudgetList.deductionAmount > 10000 ||
  1264. (String(this.deptBudgetList.deductionAmount).indexOf('.') != -1 &&
  1265. String(this.deptBudgetList.deductionAmount).length -
  1266. (String(this.deptBudgetList.deductionAmount).indexOf('.') + 1) >
  1267. 2)
  1268. ) {
  1269. this.$message({
  1270. message: '扣款输入错误',
  1271. type: 'warning',
  1272. })
  1273. return
  1274. }
  1275. if (!this.deptBudgetList.cost) {
  1276. this.$message({
  1277. message: '未获取到成本,请编辑后提交',
  1278. type: 'warning',
  1279. })
  1280. return
  1281. }
  1282. if (
  1283. this.deptBudgetList.cost < 0 ||
  1284. this.deptBudgetList.cost > 20000 ||
  1285. (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
  1286. String(this.deptBudgetList.cost).length -
  1287. (String(this.deptBudgetList.cost).indexOf('.') + 1) >
  1288. 2)
  1289. ) {
  1290. this.$message({
  1291. message: '成本输入错误',
  1292. type: 'warning',
  1293. })
  1294. return
  1295. }
  1296. if (!String(this.deptBudgetList.freight)) {
  1297. this.$message({
  1298. message: '运费不能为空',
  1299. type: 'warning',
  1300. })
  1301. return
  1302. }
  1303. if (
  1304. this.deptBudgetList.freight < 0 ||
  1305. this.deptBudgetList.freight > 100000 ||
  1306. (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
  1307. String(this.deptBudgetList.freight).length -
  1308. (String(this.deptBudgetList.freight).indexOf('.') + 1) >
  1309. 2)
  1310. ) {
  1311. this.$message({
  1312. message: '运费输入错误',
  1313. type: 'warning',
  1314. })
  1315. return
  1316. }
  1317. if (!this.deptBudgetList.agent) {
  1318. this.$message({
  1319. message: '经办人不能为空',
  1320. type: 'warning',
  1321. })
  1322. return
  1323. }
  1324. if (
  1325. this.deptBudgetList.agent.length < 2 ||
  1326. this.deptBudgetList.agent.length > 10
  1327. ) {
  1328. this.$message({
  1329. message: '经办人输入有误',
  1330. type: 'warning',
  1331. })
  1332. return
  1333. }
  1334. if (!this.deptBudgetList.grade) {
  1335. this.$message({
  1336. message: '品级不能为空!',
  1337. type: 'warning',
  1338. })
  1339. return
  1340. }
  1341. if (!this.deptBudgetList.inOutDate) {
  1342. this.$message({
  1343. message: '入库日期不能为空!',
  1344. type: 'warning',
  1345. })
  1346. return
  1347. }
  1348. if (!this.deptBudgetList.inOutType) {
  1349. this.$message({
  1350. message: '入库类型不能为空!',
  1351. type: 'warning',
  1352. })
  1353. return
  1354. }
  1355. if (!this.deptBudgetList.carNo) {
  1356. this.$message({
  1357. message: '车牌号不能为空',
  1358. type: 'warning',
  1359. })
  1360. return
  1361. }
  1362. if (this.deptBudgetList.carNo.length > 7) {
  1363. this.$message({
  1364. message: '车牌号输入错误,请输入7个字符之内',
  1365. type: 'warning',
  1366. })
  1367. return
  1368. }
  1369. if (this.deptBudgetList.boxNo && this.deptBudgetList.boxNo.length > 20) {
  1370. this.$message({
  1371. message: '箱号-1输入错误',
  1372. type: 'warning',
  1373. })
  1374. return
  1375. }
  1376. if (
  1377. this.deptBudgetList.boxNoOther &&
  1378. this.deptBudgetList.boxNoOther.length > 20
  1379. ) {
  1380. this.$message({
  1381. message: '箱号-2输入错误',
  1382. type: 'warning',
  1383. })
  1384. return
  1385. }
  1386. if (
  1387. this.deptBudgetList.titleNo &&
  1388. this.deptBudgetList.titleNo.length > 20
  1389. ) {
  1390. this.$message({
  1391. message: '封号-1输入错误',
  1392. type: 'warning',
  1393. })
  1394. return
  1395. }
  1396. if (
  1397. this.deptBudgetList.titleNoOther &&
  1398. this.deptBudgetList.titleNoOther.length > 20
  1399. ) {
  1400. this.$message({
  1401. message: '封号-2输入错误',
  1402. type: 'warning',
  1403. })
  1404. return
  1405. }
  1406. if (!this.deptBudgetList.contractNo) {
  1407. this.$message({
  1408. message: '合同编号不能为空',
  1409. type: 'warning',
  1410. })
  1411. return
  1412. }
  1413. // if (
  1414. // this.deptBudgetList.contractNo.length < 6 ||
  1415. // this.deptBudgetList.contractNo.length > 20
  1416. // ) {
  1417. // this.$message({
  1418. // message: '合同编号长度不符合要求,请输入6-20个字符之内',
  1419. // type: 'warning',
  1420. // })
  1421. // return
  1422. // }
  1423. // if (!this.deptBudgetList.addressUrl) {
  1424. // this.$message({
  1425. // message: '附件不能为空',
  1426. // type: 'warning',
  1427. // })
  1428. // return
  1429. // }
  1430. //自检员
  1431. if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
  1432. if (
  1433. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
  1434. 2 ||
  1435. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
  1436. ) {
  1437. this.$message({
  1438. message: '质检员姓名长度错误!',
  1439. type: 'warning',
  1440. })
  1441. return
  1442. }
  1443. }
  1444. if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
  1445. if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
  1446. this.$message({
  1447. message: '水分(%)非数字!',
  1448. type: 'warning',
  1449. })
  1450. return
  1451. }
  1452. if (
  1453. this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
  1454. this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
  1455. (String(
  1456. this.deptBudgetList.warehouseInOutDetail.waterContent
  1457. ).indexOf('.') != -1 &&
  1458. String(this.deptBudgetList.warehouseInOutDetail.waterContent)
  1459. .length -
  1460. (String(
  1461. this.deptBudgetList.warehouseInOutDetail.waterContent
  1462. ).indexOf('.') +
  1463. 1) >
  1464. 2)
  1465. ) {
  1466. this.$message({
  1467. message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1468. type: 'warning',
  1469. })
  1470. return
  1471. }
  1472. }
  1473. //杂质
  1474. if (this.deptBudgetList.warehouseInOutDetail.impurity) {
  1475. if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
  1476. this.$message({
  1477. message: '杂质(%)非数字!',
  1478. type: 'warning',
  1479. })
  1480. return
  1481. }
  1482. if (
  1483. this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
  1484. this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
  1485. (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
  1486. '.'
  1487. ) != -1 &&
  1488. String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
  1489. (String(
  1490. this.deptBudgetList.warehouseInOutDetail.impurity
  1491. ).indexOf('.') +
  1492. 1) >
  1493. 2)
  1494. ) {
  1495. this.$message({
  1496. message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1497. type: 'warning',
  1498. })
  1499. return
  1500. }
  1501. }
  1502. //霉变
  1503. if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
  1504. if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
  1505. this.$message({
  1506. message: '霉变粒(%)非数字!',
  1507. type: 'warning',
  1508. })
  1509. return
  1510. }
  1511. if (
  1512. this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
  1513. this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
  1514. (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
  1515. '.'
  1516. ) != -1 &&
  1517. String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
  1518. .length -
  1519. (String(
  1520. this.deptBudgetList.warehouseInOutDetail.mildewGrain
  1521. ).indexOf('.') +
  1522. 1) >
  1523. 2)
  1524. ) {
  1525. this.$message({
  1526. message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1527. type: 'warning',
  1528. })
  1529. return
  1530. }
  1531. }
  1532. //热损伤
  1533. if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
  1534. if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
  1535. this.$message({
  1536. message: '热损伤(%)非数字!',
  1537. type: 'warning',
  1538. })
  1539. return
  1540. }
  1541. if (
  1542. this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
  1543. this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
  1544. (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
  1545. '.'
  1546. ) != -1 &&
  1547. String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
  1548. (String(
  1549. this.deptBudgetList.warehouseInOutDetail.jiaorenli
  1550. ).indexOf('.') +
  1551. 1) >
  1552. 2)
  1553. ) {
  1554. this.$message({
  1555. message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1556. type: 'warning',
  1557. })
  1558. return
  1559. }
  1560. }
  1561. //不完善粒(%)
  1562. if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
  1563. if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
  1564. this.$message({
  1565. message: '不完善粒(%)非数字!',
  1566. type: 'warning',
  1567. })
  1568. return
  1569. }
  1570. if (
  1571. this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
  1572. this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
  1573. (String(
  1574. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  1575. ).indexOf('.') != -1 &&
  1576. String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
  1577. .length -
  1578. (String(
  1579. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  1580. ).indexOf('.') +
  1581. 1) >
  1582. 2)
  1583. ) {
  1584. this.$message({
  1585. message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1586. type: 'warning',
  1587. })
  1588. return
  1589. }
  1590. }
  1591. //容重
  1592. if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
  1593. if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
  1594. this.$message({
  1595. message: '容重(克/升)非数字!',
  1596. type: 'warning',
  1597. })
  1598. return
  1599. }
  1600. if (
  1601. (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
  1602. String(
  1603. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  1604. ).indexOf('.') != -1 &&
  1605. String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
  1606. .length -
  1607. (String(
  1608. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  1609. ).indexOf('.') +
  1610. 1) >
  1611. 2) ||
  1612. this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
  1613. this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
  1614. ) {
  1615. this.$message({
  1616. message: '容重输入错误',
  1617. type: 'warning',
  1618. })
  1619. return
  1620. }
  1621. }
  1622. console.log(this.deptBudgetList, '入库对象')
  1623. this.$confirm(`确定提交入库信息`, {
  1624. cancelButtonText: '取消',
  1625. confirmButtonText: '确定',
  1626. type: 'warning',
  1627. })
  1628. .then(() => {
  1629. this.$refs.deptBudgetList.validate((valid) => {
  1630. if (valid) {
  1631. this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
  1632. this.deptBudgetList.secretaryWeigher =
  1633. localStorage.getItem('ws-pf_staffName')
  1634. this.deptBudgetList.inOutFlag = 2
  1635. this.deptBudgetList.pcFlag = 1
  1636. this.deptBudgetList.statusFlag = 3
  1637. this.deptBudgetList.grossWeight = (
  1638. this.deptBudgetList.grossWeight / 1000
  1639. ).toFixed(2)
  1640. this.deptBudgetList.tare = (
  1641. this.deptBudgetList.tare / 1000
  1642. ).toFixed(2)
  1643. this.deptBudgetList.netWeight = (
  1644. this.deptBudgetList.netWeight / 1000
  1645. ).toFixed(2)
  1646. if (!this.deptBudgetList.pureWeight) {
  1647. this.deptBudgetList.pureWeight = 0
  1648. }
  1649. this.deptBudgetList.pureWeight = (
  1650. this.deptBudgetList.pureWeight / 1000
  1651. ).toFixed(2)
  1652. if (!this.deptBudgetList.deductionWeight) {
  1653. this.deptBudgetList.deductionWeight = 0
  1654. }
  1655. if (!this.deptBudgetList.deductionAmount) {
  1656. this.deptBudgetList.deductionAmount = 0
  1657. }
  1658. this.deptBudgetList.deductionWeight = (
  1659. this.deptBudgetList.deductionWeight / 1000
  1660. ).toFixed(2)
  1661. this.deptBudgetList.deductionAmount = Math.round(
  1662. this.deptBudgetList.deductionAmount * 1000
  1663. )
  1664. // this.deptBudgetList.grossWeight /= 1000
  1665. // this.deptBudgetList.tare /= 1000
  1666. // this.deptBudgetList.netWeight /= 1000
  1667. // this.deptBudgetList.pureWeight /= 1000
  1668. // this.deptBudgetList.deductionAmount *= 1000
  1669. // this.deptBudgetList.deductionWeight /= 1000
  1670. addstorageputList(this.deptBudgetList)
  1671. .toPromise()
  1672. .then((response) => {
  1673. // this.deptBudgetList.grossWeight = Math.round(this.dataList.grossWeight*1000)
  1674. // this.deptBudgetList.tare = Math.round(this.dataList.tare*1000)
  1675. // this.deptBudgetList.netWeight = Math.round(this.dataList.netWeight*1000)
  1676. // this.deptBudgetList.pureWeight = Math.round(this.dataList.pureWeight*1000)
  1677. // this.deptBudgetList.deductionWeight = Math.round(this.dataList.deductionWeight*1000)
  1678. if (this.reader) {
  1679. this.reader.cancel()
  1680. }
  1681. this.$message.success('添加成功')
  1682. this.$router.push({
  1683. path: 'warehouseManagementList',
  1684. })
  1685. })
  1686. .catch((response) => {
  1687. this.deptBudgetList.grossWeight = Math.round(
  1688. this.deptBudgetList.grossWeight * 1000
  1689. )
  1690. this.deptBudgetList.tare = Math.round(
  1691. this.deptBudgetList.tare * 1000
  1692. )
  1693. this.deptBudgetList.netWeight = Math.round(
  1694. this.deptBudgetList.netWeight * 1000
  1695. )
  1696. this.deptBudgetList.pureWeight = Math.round(
  1697. this.deptBudgetList.pureWeight * 1000
  1698. )
  1699. this.deptBudgetList.deductionWeight = Math.round(
  1700. this.deptBudgetList.deductionWeight * 1000
  1701. )
  1702. })
  1703. } else {
  1704. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1705. return false
  1706. }
  1707. })
  1708. })
  1709. .catch(() => {
  1710. return false
  1711. })
  1712. },
  1713. temporaryStorage() {
  1714. if (this.reader) {
  1715. this.reader.cancel()
  1716. }
  1717. if (!this.deptBudgetList.goodsName) {
  1718. this.$message({
  1719. message: '货名不能为空',
  1720. type: 'warning',
  1721. })
  1722. return
  1723. }
  1724. if (this.information == '毛重检斤' && !this.deptBudgetList.grossWeight) {
  1725. this.$message({
  1726. message: '毛重不能为空',
  1727. type: 'warning',
  1728. })
  1729. return
  1730. }
  1731. if (
  1732. this.information == '毛重检斤' &&
  1733. (this.deptBudgetList.grossWeight < 0 ||
  1734. this.deptBudgetList.grossWeight > 2000000 ||
  1735. (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
  1736. String(this.deptBudgetList.grossWeight).length -
  1737. (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
  1738. 3))
  1739. ) {
  1740. this.$message({
  1741. message: '毛重输入错误',
  1742. type: 'warning',
  1743. })
  1744. return
  1745. }
  1746. if (this.information == '皮重检斤' && !this.deptBudgetList.tare) {
  1747. this.$message({
  1748. message: '皮重不能为空',
  1749. type: 'warning',
  1750. })
  1751. return
  1752. }
  1753. if (
  1754. this.information == '皮重检斤' &&
  1755. (this.deptBudgetList.tare < 0 ||
  1756. this.deptBudgetList.tare > 1000000 ||
  1757. (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
  1758. String(this.deptBudgetList.tare).length -
  1759. (String(this.deptBudgetList.tare).indexOf('.') + 1) >
  1760. 3))
  1761. ) {
  1762. this.$message({
  1763. message: '皮重输入错误',
  1764. type: 'warning',
  1765. })
  1766. return
  1767. }
  1768. // if (!this.deptBudgetList.deductionWeight) {
  1769. // this.$message({
  1770. // message: '扣重不能为空',
  1771. // type: 'warning',
  1772. // })
  1773. // return
  1774. // }
  1775. // if (
  1776. // this.deptBudgetList.deductionWeight < 0 ||
  1777. // this.deptBudgetList.deductionWeight > 10 ||
  1778. // (String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
  1779. // String(this.deptBudgetList.deductionWeight).length -
  1780. // (String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
  1781. // 3)
  1782. // ) {
  1783. // this.$message({
  1784. // message: '扣重输入错误',
  1785. // type: 'warning',
  1786. // })
  1787. // return
  1788. // }
  1789. // if (
  1790. // this.deptBudgetList.type == '潮粮' &&
  1791. // !this.deptBudgetList.buckleWeightRatio
  1792. // ) {
  1793. // this.$message({
  1794. // message: '扣重比不能为空',
  1795. // type: 'warning',
  1796. // })
  1797. // return
  1798. // }
  1799. // if (
  1800. // (this.deptBudgetList.type == '潮粮' &&
  1801. // this.deptBudgetList.buckleWeightRatio < 0) ||
  1802. // (this.deptBudgetList.type == '潮粮' &&
  1803. // this.deptBudgetList.buckleWeightRatio > 3) ||
  1804. // (this.deptBudgetList.type == '潮粮' &&
  1805. // String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
  1806. // String(this.deptBudgetList.buckleWeightRatio).length -
  1807. // (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
  1808. // 2)
  1809. // ) {
  1810. // this.$message({
  1811. // message: '扣重比输入错误',
  1812. // type: 'warning',
  1813. // })
  1814. // return
  1815. // }
  1816. // if (
  1817. // this.deptBudgetList.type == '潮粮' &&
  1818. // !this.deptBudgetList.tidalGrainWater
  1819. // ) {
  1820. // this.$message({
  1821. // message: '潮粮水分不能为空',
  1822. // type: 'warning',
  1823. // })
  1824. // return
  1825. // }
  1826. // if (
  1827. // (this.deptBudgetList.type == '潮粮' &&
  1828. // this.deptBudgetList.tidalGrainWater < 1) ||
  1829. // (this.deptBudgetList.type == '潮粮' &&
  1830. // this.deptBudgetList.tidalGrainWater > 40) ||
  1831. // (this.deptBudgetList.type == '潮粮' &&
  1832. // String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
  1833. // String(this.deptBudgetList.tidalGrainWater).length -
  1834. // (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
  1835. // 2)
  1836. // ) {
  1837. // this.$message({
  1838. // message: '潮粮水分输入错误',
  1839. // type: 'warning',
  1840. // })
  1841. // return
  1842. // }
  1843. // if (
  1844. // this.deptBudgetList.type == '潮粮' &&
  1845. // !this.deptBudgetList.solidGrainWater
  1846. // ) {
  1847. // this.$message({
  1848. // message: '干粮水分不能为空',
  1849. // type: 'warning',
  1850. // })
  1851. // return
  1852. // }
  1853. // if (
  1854. // (this.deptBudgetList.type == '潮粮' &&
  1855. // this.deptBudgetList.solidGrainWater < 1) ||
  1856. // (this.deptBudgetList.type == '潮粮' &&
  1857. // this.deptBudgetList.solidGrainWater > 40) ||
  1858. // (this.deptBudgetList.type == '潮粮' &&
  1859. // String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
  1860. // String(this.deptBudgetList.solidGrainWater).length -
  1861. // (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
  1862. // 1)
  1863. // ) {
  1864. // this.$message({
  1865. // message: '干粮水分输入错误',
  1866. // type: 'warning',
  1867. // })
  1868. // return
  1869. // }
  1870. // if (!this.deptBudgetList.deductionAmount) {
  1871. // this.$message({
  1872. // message: '扣款不能为空',
  1873. // type: 'warning',
  1874. // })
  1875. // return
  1876. // }
  1877. // if (
  1878. // this.deptBudgetList.deductionAmount < 0 ||
  1879. // this.deptBudgetList.deductionAmount > 10000 ||
  1880. // (String(this.deptBudgetList.deductionAmount).indexOf('.') != -1 &&
  1881. // String(this.deptBudgetList.deductionAmount).length -
  1882. // (String(this.deptBudgetList.deductionAmount).indexOf('.') + 1) >
  1883. // 2)
  1884. // ) {
  1885. // this.$message({
  1886. // message: '扣款输入错误',
  1887. // type: 'warning',
  1888. // })
  1889. // return
  1890. // }
  1891. // if (!this.deptBudgetList.cost) {
  1892. // this.$message({
  1893. // message: '未获取到成本,请编辑后提交',
  1894. // type: 'warning',
  1895. // })
  1896. // return
  1897. // }
  1898. // if (
  1899. // this.deptBudgetList.cost < 0 ||
  1900. // this.deptBudgetList.cost > 20000 ||
  1901. // (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
  1902. // String(this.deptBudgetList.cost).length -
  1903. // (String(this.deptBudgetList.cost).indexOf('.') + 1) >
  1904. // 2)
  1905. // ) {
  1906. // this.$message({
  1907. // message: '成本输入错误',
  1908. // type: 'warning',
  1909. // })
  1910. // return
  1911. // }
  1912. // if (!this.deptBudgetList.freight) {
  1913. // this.$message({
  1914. // message: '运费不能为空',
  1915. // type: 'warning',
  1916. // })
  1917. // return
  1918. // }
  1919. // if (
  1920. // this.deptBudgetList.freight < 0 ||
  1921. // this.deptBudgetList.freight > 100000 ||
  1922. // (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
  1923. // String(this.deptBudgetList.freight).length -
  1924. // (String(this.deptBudgetList.freight).indexOf('.') + 1) >
  1925. // 2)
  1926. // ) {
  1927. // this.$message({
  1928. // message: '运费输入错误',
  1929. // type: 'warning',
  1930. // })
  1931. // return
  1932. // }
  1933. // if (!this.deptBudgetList.agent) {
  1934. // this.$message({
  1935. // message: '经办人不能为空',
  1936. // type: 'warning',
  1937. // })
  1938. // return
  1939. // }
  1940. // if (
  1941. // this.deptBudgetList.agent.length < 2 ||
  1942. // this.deptBudgetList.agent.length > 10
  1943. // ) {
  1944. // this.$message({
  1945. // message: '经办人输入有误',
  1946. // type: 'warning',
  1947. // })
  1948. // return
  1949. // }
  1950. // if (!this.deptBudgetList.carNo) {
  1951. // this.$message({
  1952. // message: '车牌号不能为空',
  1953. // type: 'warning'
  1954. // })
  1955. // return
  1956. // }
  1957. // if (this.deptBudgetList.carNo.length > 7) {
  1958. // this.$message({
  1959. // message: '车牌号输入错误,请输入7个字符之内',
  1960. // type: 'warning'
  1961. // })
  1962. // return
  1963. // }
  1964. if (!this.deptBudgetList.contractNo) {
  1965. this.$message({
  1966. message: '合同编号不能为空',
  1967. type: 'warning',
  1968. })
  1969. return
  1970. }
  1971. // if (
  1972. // this.deptBudgetList.contractNo.length < 6 ||
  1973. // this.deptBudgetList.contractNo.length > 20
  1974. // ) {
  1975. // this.$message({
  1976. // message: '合同编号长度不符合要求,请输入6-20个字符之内',
  1977. // type: 'warning',
  1978. // })
  1979. // return
  1980. // }
  1981. // if (this.deptBudgetList.netWeight > this.$route.query.capacity) {
  1982. // this.$message({
  1983. // message: '入库量大于该仓库容量!',
  1984. // type: 'warning',
  1985. // })
  1986. // return
  1987. // }
  1988. //自检员
  1989. if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
  1990. if (
  1991. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
  1992. 2 ||
  1993. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
  1994. ) {
  1995. this.$message({
  1996. message: '质检员姓名长度错误!',
  1997. type: 'warning',
  1998. })
  1999. return
  2000. }
  2001. }
  2002. if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
  2003. if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
  2004. this.$message({
  2005. message: '水分(%)非数字!',
  2006. type: 'warning',
  2007. })
  2008. return
  2009. }
  2010. if (
  2011. this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
  2012. this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
  2013. (String(
  2014. this.deptBudgetList.warehouseInOutDetail.waterContent
  2015. ).indexOf('.') != -1 &&
  2016. String(this.deptBudgetList.warehouseInOutDetail.waterContent)
  2017. .length -
  2018. (String(
  2019. this.deptBudgetList.warehouseInOutDetail.waterContent
  2020. ).indexOf('.') +
  2021. 1) >
  2022. 2)
  2023. ) {
  2024. this.$message({
  2025. message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
  2026. type: 'warning',
  2027. })
  2028. return
  2029. }
  2030. }
  2031. //杂质
  2032. if (this.deptBudgetList.warehouseInOutDetail.impurity) {
  2033. if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
  2034. this.$message({
  2035. message: '杂质(%)非数字!',
  2036. type: 'warning',
  2037. })
  2038. return
  2039. }
  2040. if (
  2041. this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
  2042. this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
  2043. (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
  2044. '.'
  2045. ) != -1 &&
  2046. String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
  2047. (String(
  2048. this.deptBudgetList.warehouseInOutDetail.impurity
  2049. ).indexOf('.') +
  2050. 1) >
  2051. 2)
  2052. ) {
  2053. this.$message({
  2054. message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
  2055. type: 'warning',
  2056. })
  2057. return
  2058. }
  2059. }
  2060. //霉变
  2061. if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
  2062. if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
  2063. this.$message({
  2064. message: '霉变粒(%)非数字!',
  2065. type: 'warning',
  2066. })
  2067. return
  2068. }
  2069. if (
  2070. this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
  2071. this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
  2072. (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
  2073. '.'
  2074. ) != -1 &&
  2075. String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
  2076. .length -
  2077. (String(
  2078. this.deptBudgetList.warehouseInOutDetail.mildewGrain
  2079. ).indexOf('.') +
  2080. 1) >
  2081. 2)
  2082. ) {
  2083. this.$message({
  2084. message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  2085. type: 'warning',
  2086. })
  2087. return
  2088. }
  2089. }
  2090. //热损伤
  2091. if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
  2092. if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
  2093. this.$message({
  2094. message: '热损伤(%)非数字!',
  2095. type: 'warning',
  2096. })
  2097. return
  2098. }
  2099. if (
  2100. this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
  2101. this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
  2102. (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
  2103. '.'
  2104. ) != -1 &&
  2105. String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
  2106. (String(
  2107. this.deptBudgetList.warehouseInOutDetail.jiaorenli
  2108. ).indexOf('.') +
  2109. 1) >
  2110. 2)
  2111. ) {
  2112. this.$message({
  2113. message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
  2114. type: 'warning',
  2115. })
  2116. return
  2117. }
  2118. }
  2119. //不完善粒(%)
  2120. if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
  2121. if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
  2122. this.$message({
  2123. message: '不完善粒(%)非数字!',
  2124. type: 'warning',
  2125. })
  2126. return
  2127. }
  2128. if (
  2129. this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
  2130. this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
  2131. (String(
  2132. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  2133. ).indexOf('.') != -1 &&
  2134. String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
  2135. .length -
  2136. (String(
  2137. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  2138. ).indexOf('.') +
  2139. 1) >
  2140. 2)
  2141. ) {
  2142. this.$message({
  2143. message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  2144. type: 'warning',
  2145. })
  2146. return
  2147. }
  2148. }
  2149. //容重
  2150. if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
  2151. if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
  2152. this.$message({
  2153. message: '容重(克/升)非数字!',
  2154. type: 'warning',
  2155. })
  2156. return
  2157. }
  2158. if (
  2159. (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
  2160. String(
  2161. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  2162. ).indexOf('.') != -1 &&
  2163. String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
  2164. .length -
  2165. (String(
  2166. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  2167. ).indexOf('.') +
  2168. 1) >
  2169. 2) ||
  2170. this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
  2171. this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
  2172. ) {
  2173. this.$message({
  2174. message: '容重输入错误',
  2175. type: 'warning',
  2176. })
  2177. return
  2178. }
  2179. }
  2180. this.$confirm(`是否保存毛重检斤`, {
  2181. cancelButtonText: '取消',
  2182. confirmButtonText: '确定',
  2183. type: 'warning',
  2184. })
  2185. .then(() => {
  2186. this.$refs.deptBudgetList.validate((valid) => {
  2187. if (valid) {
  2188. this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
  2189. this.deptBudgetList.secretaryWeigher =
  2190. localStorage.getItem('ws-pf_staffName')
  2191. this.deptBudgetList.inOutFlag = 2
  2192. this.deptBudgetList.statusFlag = 1
  2193. let _data = JSON.parse(
  2194. localStorage.getItem('winseaview-userInfo')
  2195. )
  2196. this.deptBudgetList.backOffice =
  2197. _data.content.showCompName + '-' + _data.content.staffName
  2198. this.deptBudgetList.grossWeight /= 1000
  2199. this.deptBudgetList.tare /= 1000
  2200. this.deptBudgetList.netWeight /= 1000
  2201. this.deptBudgetList.pureWeight /= 1000
  2202. this.deptBudgetList.deductionAmount *= 1000
  2203. this.deptBudgetList.deductionWeight /= 1000
  2204. addstorageputList(this.deptBudgetList)
  2205. .toPromise()
  2206. .then((response) => {
  2207. if (this.reader) {
  2208. this.reader.cancel()
  2209. }
  2210. this.$message.success('保存成功')
  2211. this.$router.push({
  2212. path: 'warehouseManagementList',
  2213. })
  2214. })
  2215. } else {
  2216. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  2217. return false
  2218. }
  2219. })
  2220. })
  2221. .catch(() => {
  2222. return false
  2223. })
  2224. },
  2225. tarechange(e) {
  2226. if (
  2227. this.deptBudgetList.grossWeight &&
  2228. this.deptBudgetList.tare &&
  2229. (this.deptBudgetList.deductionWeight ||
  2230. this.deptBudgetList.deductionWeight == 0)
  2231. ) {
  2232. this.deptBudgetList.netWeight = Number(
  2233. this.deptBudgetList.grossWeight -
  2234. this.deptBudgetList.tare -
  2235. this.deptBudgetList.deductionWeight
  2236. ).toFixed(2)
  2237. }
  2238. },
  2239. grossWeightchange(e) {
  2240. if (
  2241. this.deptBudgetList.grossWeight &&
  2242. this.deptBudgetList.tare &&
  2243. (this.deptBudgetList.deductionWeight ||
  2244. this.deptBudgetList.deductionWeight == 0)
  2245. ) {
  2246. this.deptBudgetList.netWeight = Number(
  2247. this.deptBudgetList.grossWeight -
  2248. this.deptBudgetList.tare -
  2249. this.deptBudgetList.deductionWeight
  2250. ).toFixed(2)
  2251. }
  2252. },
  2253. contractNoChange(e) {
  2254. this.disabled1 = true
  2255. for (let i = 0; i < this.deptBudgetList1.length; i++) {
  2256. console.log(this.deptBudgetList1[i])
  2257. if (this.deptBudgetList1[i].inOutTaskNo == e) {
  2258. var data = this.deptBudgetList1[i]
  2259. if (this.deptBudgetList1[i].contractNo) {
  2260. this.deptBudgetList.contractNo = this.deptBudgetList1[i].contractNo
  2261. } else {
  2262. this.deptBudgetList.contractNo = this.deptBudgetList1[i].moveTaskNo
  2263. }
  2264. }
  2265. }
  2266. for (var i = 0; i < this.outContractNo.length; i++) {
  2267. if (
  2268. this.outContractNo[i].contractNo == this.deptBudgetList.contractNo
  2269. ) {
  2270. console.log(this.outContractNo[i])
  2271. this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
  2272. this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
  2273. this.deptBudgetList.grade = this.outContractNo[i].grade
  2274. if (this.outContractNo[i].inOutType == '采购入库') {
  2275. if (!this.outContractNo[i].unitContractPrice) {
  2276. this.deptBudgetList.tips = '卖方' + this.outContractNo[i].seller
  2277. } else {
  2278. this.deptBudgetList.tips =
  2279. '卖方' +
  2280. this.outContractNo[i].seller +
  2281. '( ' +
  2282. this.outContractNo[i].unitContractPrice +
  2283. '元/吨)'
  2284. }
  2285. this.deptBudgetList.inOutTypeKey = 1
  2286. } else if (this.outContractNo[i].inOutType == '移库入库') {
  2287. this.deptBudgetList.goodsName = data.goodsName
  2288. this.deptBudgetList.goodsNameKey = data.goodsNameKey
  2289. this.deptBudgetList.grade = data.grade
  2290. if (this.outContractNo[i].unitContractPrice) {
  2291. this.deptBudgetList.tips =
  2292. '出货库' +
  2293. data.sendWarehouse +
  2294. ' (' +
  2295. this.outContractNo[i].unitContractPrice +
  2296. '元/吨)'
  2297. } else {
  2298. this.deptBudgetList.tips = '出货库' + data.sendWarehouse
  2299. }
  2300. this.deptBudgetList.inOutTypeKey = 3
  2301. } else if (this.outContractNo[i].inOutType == '移库出库') {
  2302. this.deptBudgetList.tips = '入货库' + data.receiveWarehouse
  2303. } else if (this.outContractNo[i].inOutType == '暂存入库') {
  2304. this.deptBudgetList.inOutTypeKey = 4
  2305. } else if (this.outContractNo[i].inOutType == '贸易服务入库') {
  2306. this.deptBudgetList.inOutTypeKey = 5
  2307. } else if (this.outContractNo[i].inOutType == '退库') {
  2308. if (this.outContractNo[i].contractNo) {
  2309. this.deptBudgetList.tips = '买方' + this.outContractNo[i].buyer
  2310. } else {
  2311. this.deptBudgetList.tips = '出货库' + data.sendWarehouse
  2312. }
  2313. this.deptBudgetList.inOutTypeKey = 6
  2314. }
  2315. // this.deptBudgetList.cost = this.outContractNo[i].contractPrice
  2316. this.cost = this.outContractNo[i].contractPrice
  2317. if (this.cost) {
  2318. this.isGetCost = true
  2319. this.deptBudgetList.cost =
  2320. this.cost - this.deptBudgetList.deductionAmount
  2321. } else {
  2322. this.isGetCost = false
  2323. this.deptBudgetList.cost = this.deptBudgetList.cost
  2324. }
  2325. this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
  2326. if (this.outContractNo[i].inOutType == '移库入库') {
  2327. this.isSelectType = false
  2328. } else {
  2329. this.isSelectType = true
  2330. }
  2331. if (this.outContractNo[i].priceType == '随行就市') {
  2332. this.disabled1 = !this.disabled1
  2333. }
  2334. if (this.outContractNo[i].deliverType == '1') {
  2335. this.carstatus = true
  2336. } else {
  2337. this.carstatus = false
  2338. }
  2339. if (this.outContractNo[i].tranCarInfoList) {
  2340. this.options2 = this.outContractNo[i].tranCarInfoList
  2341. this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
  2342. // this.carstatus = true
  2343. }
  2344. }
  2345. }
  2346. },
  2347. contractNoChange1(e) {
  2348. for (var i = 0; i < this.outContractNo.length; i++) {
  2349. if (this.outContractNo[i].contractNo == e) {
  2350. if (this.outContractNo[i].inOutType == '采购入库') {
  2351. this.deptBudgetList.inOutTypeKey = 1
  2352. } else if (this.outContractNo[i].inOutType == '移库入库') {
  2353. this.deptBudgetList.inOutTypeKey = 3
  2354. } else if (this.outContractNo[i].inOutType == '暂存入库') {
  2355. this.deptBudgetList.inOutTypeKey = 4
  2356. } else if (this.outContractNo[i].inOutType == '贸易服务入库') {
  2357. this.deptBudgetList.inOutTypeKey = 5
  2358. } else if (this.outContractNo[i].inOutType == '退库') {
  2359. this.deptBudgetList.inOutTypeKey = 6
  2360. }
  2361. this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
  2362. this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
  2363. this.deptBudgetList.grade = this.outContractNo[i].grade
  2364. // this.deptBudgetList.cost = this.outContractNo[i].contractPrice
  2365. this.cost = this.outContractNo[i].contractPrice
  2366. if (this.cost) {
  2367. this.isGetCost = true
  2368. this.deptBudgetList.cost =
  2369. this.cost - this.deptBudgetList.deductionAmount
  2370. } else {
  2371. this.isGetCost = false
  2372. this.deptBudgetList.cost = this.deptBudgetList.cost
  2373. }
  2374. this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
  2375. if (this.outContractNo[i].inOutType == '移库入库') {
  2376. this.isSelectType = false
  2377. } else {
  2378. this.isSelectType = true
  2379. }
  2380. if (this.outContractNo[i].deliverType == '1') {
  2381. this.carstatus = true
  2382. } else {
  2383. this.carstatus = false
  2384. }
  2385. if (this.outContractNo[i].tranCarInfoList) {
  2386. this.options2 = this.outContractNo[i].tranCarInfoList
  2387. this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
  2388. this.carstatus = true
  2389. }
  2390. }
  2391. }
  2392. },
  2393. typeChange(e) {},
  2394. pureweight(status) {
  2395. console.log(this.deptBudgetList)
  2396. if (
  2397. this.deptBudgetList.netWeight &&
  2398. this.deptBudgetList.tidalGrainWater &&
  2399. this.deptBudgetList.solidGrainWater &&
  2400. this.deptBudgetList.buckleWeightRatio
  2401. ) {
  2402. this.deptBudgetList.pureWeight =
  2403. (this.deptBudgetList.netWeight *
  2404. (100 -
  2405. (this.deptBudgetList.tidalGrainWater -
  2406. this.deptBudgetList.solidGrainWater) *
  2407. this.deptBudgetList.buckleWeightRatio)) /
  2408. 100
  2409. }
  2410. },
  2411. selectgoodsName(e) {
  2412. for (var i = 0; i < this.goodnameList.length; i++) {
  2413. if (this.goodnameList[i].constValue == e) {
  2414. this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
  2415. if (e == '玉米(潮粮)') {
  2416. this.deptBudgetList.type = '潮粮'
  2417. } else {
  2418. this.deptBudgetList.type = '干粮'
  2419. }
  2420. }
  2421. }
  2422. },
  2423. selectpackingMethod(e) {
  2424. for (var i = 0; i < this.packtypeList.length; i++) {
  2425. if (this.packtypeList[i].constValue == e) {
  2426. this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
  2427. }
  2428. }
  2429. },
  2430. selectstorageType(e) {
  2431. for (var i = 0; i < this.storageType.length; i++) {
  2432. if (this.storageType[i].constValue == e) {
  2433. this.deptBudgetList.inOutTypeKey = this.storageType[i].constKey
  2434. }
  2435. }
  2436. },
  2437. handleClose() {
  2438. this.accessoryTFs = false
  2439. },
  2440. handleSizeChange(val) {
  2441. console.log(`每页 ${val} 条`)
  2442. this.pageSize = val
  2443. this.getList()
  2444. },
  2445. handleCurrentChange(val) {
  2446. this.currentPage = val
  2447. console.log(`当前页: ${val}`)
  2448. this.getList()
  2449. },
  2450. getList() {
  2451. // 货名
  2452. pullDown({
  2453. constId: 'CON2',
  2454. })
  2455. .toPromise()
  2456. .then((response) => {
  2457. this.goodnameList = response
  2458. })
  2459. // 品级
  2460. pullDown({
  2461. constId: 'CON3',
  2462. })
  2463. .toPromise()
  2464. .then((response) => {
  2465. this.gradeList = response
  2466. })
  2467. // 类型
  2468. if (this.deptBudgetList.warehouseType == '1') {
  2469. this.storageType = []
  2470. pullDown({
  2471. constId: 'CON5',
  2472. })
  2473. .toPromise()
  2474. .then((response) => {
  2475. // this.storageType = response
  2476. for (let i = 0; i < response.length; i++) {
  2477. if (
  2478. response[i].constValue == '移库入库' ||
  2479. response[i].constValue == '退库'
  2480. ) {
  2481. this.storageType.push(response[i])
  2482. }
  2483. }
  2484. })
  2485. } else if (this.deptBudgetList.warehouseType == '2') {
  2486. pullDown({
  2487. constId: 'WARE1',
  2488. })
  2489. .toPromise()
  2490. .then((response) => {
  2491. this.storageType = response
  2492. })
  2493. pullDown({
  2494. constId: 'WARE2',
  2495. })
  2496. .toPromise()
  2497. .then((response) => {
  2498. this.deliveryType = response
  2499. })
  2500. }
  2501. //合同编号
  2502. xialaNo({
  2503. compId: localStorage.getItem('ws-pf_compId'),
  2504. flag: 7,
  2505. })
  2506. .toPromise()
  2507. .then((response) => {
  2508. this.options1 = response
  2509. this.outContractNo = response
  2510. })
  2511. //经办人
  2512. getstaff({
  2513. compId: localStorage.getItem('ws-pf_compId'),
  2514. warehouseId: this.deptBudgetList.baseId,
  2515. })
  2516. .toPromise()
  2517. .then((response) => {
  2518. this.options = response
  2519. this.qualityInspectorList = response
  2520. this.staffList = response
  2521. // this.agent = response
  2522. })
  2523. },
  2524. selecttaskType(e) {
  2525. for (var i = 0; i < this.taskTypeList.length; i++) {
  2526. if (this.taskTypeList[i].value == e) {
  2527. this.searchType = this.taskTypeList[i].type
  2528. }
  2529. }
  2530. },
  2531. fujian(row) {
  2532. if (
  2533. row.receiveAttachmentPath === null ||
  2534. row.receiveAttachmentPath === ''
  2535. ) {
  2536. EventBus.$emit(
  2537. 'warning',
  2538. this.$t('system.noticeCircular.NoInformation')
  2539. )
  2540. } else {
  2541. this.accessoryTFs = true
  2542. }
  2543. this.appendixIdss = row.receiveAttachmentPath
  2544. },
  2545. handleExamine(row) {
  2546. this.$router.push({
  2547. name: 'salesContractExamine',
  2548. query: {
  2549. id: row.id,
  2550. },
  2551. })
  2552. },
  2553. },
  2554. }
  2555. </script>
  2556. <style lang="scss" scoped>
  2557. /deep/.basicInformation {
  2558. .ws-info-table {
  2559. border: none;
  2560. }
  2561. .left {
  2562. .el-form-item {
  2563. width: 50%;
  2564. // width: 33.3333%;
  2565. border: none;
  2566. .el-form-item__label {
  2567. background: transparent;
  2568. border: none;
  2569. }
  2570. .el-form-item__content {
  2571. border: none;
  2572. }
  2573. }
  2574. }
  2575. .right {
  2576. .el-form-item {
  2577. width: 100%;
  2578. // width: 33.3333%;
  2579. border: none;
  2580. .el-form-item__label {
  2581. background: transparent;
  2582. border: none;
  2583. }
  2584. .el-form-item__content {
  2585. border: none;
  2586. }
  2587. }
  2588. }
  2589. }
  2590. .title {
  2591. position: relative;
  2592. padding-left: 10px;
  2593. }
  2594. .title::before {
  2595. content: '';
  2596. display: inline-block;
  2597. width: 5px;
  2598. height: 30px;
  2599. background: #5473e8;
  2600. position: absolute;
  2601. left: 0;
  2602. }
  2603. .el-form {
  2604. padding: 0 10%;
  2605. }
  2606. .el-button--primary {
  2607. background-color: #5878e8;
  2608. border-color: #5878e8;
  2609. }
  2610. .el-col {
  2611. background: #f6f7fc;
  2612. }
  2613. .bg-right {
  2614. text-align: right;
  2615. padding: 16px 20px;
  2616. }
  2617. .center {
  2618. position: relative;
  2619. top: 50px;
  2620. width: 40%;
  2621. height: 2000px;
  2622. margin: 0 auto;
  2623. }
  2624. //选填
  2625. /deep/.el-form-item {
  2626. width: 50%;
  2627. }
  2628. .container {
  2629. overflow: scroll;
  2630. height: 120vh;
  2631. }
  2632. /deep/.ws-info-table .el-form-item .el-form-item__label {
  2633. text-align: center;
  2634. }
  2635. .deliverydate {
  2636. display: inline-block;
  2637. width: 10%;
  2638. }
  2639. .center {
  2640. margin-top: -60px;
  2641. width: 80%;
  2642. }
  2643. //仓位
  2644. .position {
  2645. background: #afb5cb;
  2646. border-radius: 2px;
  2647. font-size: 12px;
  2648. color: #ffffff;
  2649. line-height: 20px;
  2650. display: inline-grid;
  2651. padding: 2px 4px;
  2652. }
  2653. //表格文字
  2654. /deep/.ws-info-table .el-form-item .el-form-item__label {
  2655. text-align: left;
  2656. font-size: 14px;
  2657. font-family: PingFangSC-Regular, PingFang SC;
  2658. font-weight: 400;
  2659. color: #8890b1;
  2660. line-height: 16px;
  2661. }
  2662. .inspector {
  2663. width: 50%;
  2664. }
  2665. //质检员
  2666. .inspector .el-form-item__content {
  2667. text-align: left;
  2668. margin-left: 0px;
  2669. }
  2670. .small-title {
  2671. position: relative;
  2672. padding: 10px;
  2673. font-weight: 600;
  2674. }
  2675. .small-title::before {
  2676. position: absolute;
  2677. content: '';
  2678. display: block;
  2679. background: #5473e8;
  2680. width: 4px;
  2681. height: 14px;
  2682. left: 0px;
  2683. top: 13px;
  2684. padding: 4px 2px;
  2685. }
  2686. .top {
  2687. width: 100%;
  2688. background: black;
  2689. color: #2aff7c;
  2690. font-size: 32px;
  2691. text-align: right;
  2692. padding: 20px;
  2693. border-radius: 10px;
  2694. margin: 0 20px 0px 20px;
  2695. .car-type {
  2696. text-align: left;
  2697. }
  2698. .kg-style {
  2699. font-size: 30px;
  2700. }
  2701. }
  2702. .weight {
  2703. font-size: 68px;
  2704. }
  2705. //下面列表
  2706. .neifor {
  2707. width: 80%;
  2708. background-color: #f6f7fc;
  2709. }
  2710. /deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
  2711. width: 35%;
  2712. text-align: center;
  2713. }
  2714. /deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
  2715. width: 60%;
  2716. background-color: #f6f7fc;
  2717. }
  2718. /deep/.neifor .el-input--small .el-input__inner {
  2719. width: 100%;
  2720. }
  2721. .balance-row {
  2722. display: flex;
  2723. margin: 20px 0;
  2724. .left {
  2725. width: 500px;
  2726. margin-bottom: 0;
  2727. }
  2728. }
  2729. </style>