warehouseManagementNoWeightIn.vue 66 KB

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