exWarehousing.vue 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195
  1. <template>
  2. <view class="warp">
  3. <view class="top">
  4. <view class="top-left">{{warehouseName}}</view>
  5. <view>{{binNumber}}仓位</view>
  6. </view>
  7. <view class="content">
  8. <view class="row">
  9. <view class="left">任务编号</view>
  10. <view @click='inOutShow=true'>{{detailData.inOutTaskNo ? detailData.inOutTaskNo : "暂未获取到任务编号"}}</view>
  11. <u-picker :range="inOutNoList" range-key="inOutTaskNo" @confirm='inOutChange' v-model="inOutShow"
  12. mode="selector">
  13. </u-picker>
  14. </view>
  15. <view class="row row-bottom">
  16. <view class="left">合同编号</view>
  17. <!-- <view @click='slectcontractNo'>{{detailData.contractNo}}</view> -->
  18. <input v-model='detailData.contractNo' style="width: 200px;" class="right-bottom" placeholder="暂未获取到合同编号" disabled=""></input>
  19. </view>
  20. <view class="row">
  21. <view class="left" style="width: 100px;">提示</view>
  22. <view class="right" style="text-align: right;">{{detailData.tips}}</view>
  23. </view>
  24. <view class="row">
  25. <view class="left">货名</view>
  26. <view class="right">{{detailData.goodsName ? detailData.goodsName : "选择合同,自动获取"}}
  27. </view>
  28. </view>
  29. <view class="row row-bottom" v-if="detailData.inOutType == '销售出库'">
  30. <view class="left">价格(元/吨)</view>
  31. <input type="digit" v-model='detailData.cost' class="right-bottom"
  32. placeholder="输入价格"></input>
  33. </view>
  34. <!-- <view class="row">
  35. <view class="left">类型</view>
  36. <view @click='show1=true'>{{detailData.type}}</view>
  37. <u-picker :range="typeList" range-key="type" @confirm='typePicker($event)' v-model="show1"
  38. mode="selector">
  39. <view class="">{{detailData.type}}</view>
  40. </u-picker>
  41. </view> -->
  42. <view class="row row-bottom">
  43. <view class="left">毛重(吨)</view>
  44. <input type="digit" @input='calculate' v-model='detailData.grossWeight' class="right-bottom"
  45. placeholder="输入毛重"></input>
  46. </view>
  47. <view class="row row-bottom">
  48. <view class="left">皮重(吨)</view>
  49. <input type="digit" @input='calculate' v-model='detailData.tare' class="right-bottom"
  50. placeholder="输入皮重"></input>
  51. </view>
  52. <view class="row row-bottom">
  53. <view class="left">净重(吨)</view>
  54. <input v-model='netWeight' disabled class="right-bottom" placeholder="不可编辑,自动计算"></input>
  55. </view>
  56. <view class="row row-bottom" v-if="detailData.type == '潮粮'">
  57. <view class="left">扣重比</view>
  58. <input type="digit" v-model='detailData.buckleWeightRatio' class="right-bottom" placeholder="输入扣重比"
  59. @input="pureWeightCount"></input>
  60. </view>
  61. <view class="row row-bottom" v-if="detailData.type == '潮粮'">
  62. <view class="left">干粮水分(%)</view>
  63. <input type="digit" v-model='detailData.solidGrainWater' class="right-bottom" placeholder="输入干粮水分占比"
  64. @input="pureWeightCount"></input>
  65. </view>
  66. <view class="row row-bottom" v-if="detailData.type == '潮粮'">
  67. <view class="left">潮粮水分(%)</view>
  68. <input type="digit" v-model='detailData.tidalGrainWater' class="right-bottom" placeholder="输入潮粮水分占比"
  69. @input="pureWeightCount"></input>
  70. </view>
  71. <view class="row row-bottom" v-if="detailData.type == '潮粮'">
  72. <view class="left">纯重(吨)</view>
  73. <input v-model='detailData.pureWeight' class="right-bottom" placeholder="不可编辑,自动计算"></input>
  74. </view>
  75. <view class="row row-bottom">
  76. <view class="left">运费(元/吨)</view>
  77. <input v-model='detailData.freight' class="right-bottom" placeholder="输入运费"></input>
  78. </view>
  79. <view class="row">
  80. <view class="left">品级</view>
  81. <view @click='show3=true'>{{detailData.grade}}</view>
  82. <u-picker :range="pjList" range-key="type" @confirm='pjPicker($event)' v-model="show3" mode="selector">
  83. </u-picker>
  84. </view>
  85. <view class="row">
  86. <view class="left">经办人</view>
  87. <view @click='show6=true'>{{detailData.agent}}</view>
  88. <u-picker :range="handlerList" range-key="staffName" @confirm='handlerPicker($event)' v-model="show6"
  89. mode="selector">
  90. </u-picker>
  91. </view>
  92. <view class="row">
  93. <view class="left">出库日期</view>
  94. <view @click='show7=true'>{{detailData.inOutDate}}</view>
  95. <u-picker v-model="show7" mode="time" @confirm='dateChange($event)' :params="params">
  96. </u-picker>
  97. </view>
  98. <view class="row row-bottom">
  99. <view class="left">出库类型</view>
  100. <input v-model='detailData.inOutType' class="right-bottom" :disabled="isSelectType"
  101. placeholder="自动获取"></input>
  102. <!-- <u-picker :range="warehousingTypeList" range-key="constValue" @confirm='warehousingTypePicker($event)'
  103. v-model="show5" mode="selector">
  104. </u-picker> -->
  105. </view>
  106. <view class="row">
  107. <view class="left">出库方式</view>
  108. <view @click='show8=true'>{{detailData.outType?detailData.outType:'汽运'}}</view>
  109. <u-picker v-model="show8" mode="selector" range-key="name" :range="multiSelector"
  110. @confirm='outtypeChange($event)'>
  111. </u-picker>
  112. </view>
  113. <view class="row row-bottom" v-if="detailData.outType!='火运' && detailData.outType!='散船'">
  114. <!-- <view class="left">车牌号</view>
  115. <input v-if="!isPC" v-model='detailData.carNo' class="right-bottom" placeholder="请输入车牌号"></input>
  116. <view @click='slectCarNo' v-if="isPC">{{detailData.carNo}}</view> -->
  117. <view class="left">车牌号</view>
  118. <!-- 他运合同车牌号输入 -->
  119. <!-- <input v-model='detailData.carNo' @click.stop="handleShowKeyboard":disabled="true" class="right-bottom" placeholder="请输入车牌号" v-if="!showCar"></input> -->
  120. <view v-show="showCar" @click="carno = true" v-if="detailData.inOutType == '移库出库'|| (showCar&&contractType=='1')"><!-- showCar = true时为自运 carjudge为切换状态 contractType==1 为销售合同-->
  121. <view v-if="detailData.tranCarNo">
  122. {{detailData.carNo?detailData.carNo +'('+detailData.tranCarNo+')':"请选择车牌号"}}
  123. </view>
  124. <view v-else>
  125. {{detailData.carNo?detailData.carNo:"请选择车牌号"}}
  126. </view>
  127. </view>
  128. <input v-model='detailData.carNo' @click.stop="handleShowKeyboard":disabled="true" class="right-bottom" placeholder="请输入车牌号" v-else ></input>
  129. <master-keyboard ref="keyboard" keyboardtype="car" :randomNumber="true" :newCar="false" :defaultValue="detailData.carNo" @keyboardClick="handleClick"></master-keyboard>
  130. <!-- <view @click='slectCarNo' v-if="isPC">{{detailData.carNo}}</view> -->
  131. <!-- 自运合同车牌号需下拉 -->
  132. <u-picker :range="carList" range-key="carNo1" @confirm='carPicker($event)' v-model="carno"
  133. mode="selector">
  134. </u-picker>
  135. <!-- <view type="success" @click="carNoTypeChange" class="carNo_but" v-if="showCar||carjudge" v-show="showCar">{{carChange1}}</view> -->
  136. </view>
  137. <view class="row row-bottom" v-if="detailData.outType=='火运'">
  138. <view class="left">车号</view>
  139. <input v-model='detailData.carNo' class="right-bottom" placeholder="请输入车号"></input>
  140. </view>
  141. <view v-if='detailData.outType=="集装箱船"||!detailData.outType||detailData.outType=="汽运"'
  142. class="row row-bottom">
  143. <view class="left">箱号</view>
  144. <input v-model='detailData.boxNo' class="right-bottom" placeholder="请输入箱号" type="digit"></input>
  145. <input v-model='detailData.boxNoOther' class="right-bottom" type="digit" placeholder="请输入箱号"></input>
  146. </view>
  147. <view v-if='!detailData.outType||detailData.outType=="汽运" || detailData.outType=="集装箱船"'
  148. class="row row-bottom">
  149. <view class="left">封号</view>
  150. <input v-model='detailData.titleNo' class="right-bottom" placeholder="请输入封号" type="digit"></input>
  151. <input v-model='detailData.titleNoOther' class="right-bottom" placeholder="请输入封号" type="digit"></input>
  152. </view>
  153. <view v-if='detailData.outType=="火运"' class="row row-bottom">
  154. <view class="left">车厢号</view>
  155. <input v-model='detailData.wingNumber' @input="toUpperCase2" class="right-bottom" placeholder="请输入车厢号"
  156. type="digit"></input>
  157. <input v-model='detailData.wingNumberOther' @input="toUpperCase3" class="right-bottom"
  158. placeholder="请输入车厢号" type="digit"></input>
  159. </view>
  160. <view v-if='detailData.outType=="散船"' class="row row-bottom">
  161. <view class="left">航次</view>
  162. <input v-model='detailData.shipNumber' class="right-bottom" placeholder="请输入航次"></input>
  163. </view>
  164. <view v-if='detailData.outType=="散船"' class="row row-bottom">
  165. <view class="left">船名</view>
  166. <input v-model='detailData.shipName' class="right-bottom" placeholder="请输入船名"></input>
  167. </view>
  168. </view>
  169. <view class="content2">
  170. <view class="left">上传磅单</view>
  171. <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
  172. :size-type="['compressed']" @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
  173. @on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
  174. </view>
  175. <view class="content1">
  176. <view class="title">
  177. 质检数据(选填)
  178. </view>
  179. <view class="row row-bottom">
  180. <view class="left">质检员</view>
  181. <input v-model='detailData.warehouseInOutDetail.qualityInspector' class="right-bottom"
  182. placeholder="输入质检员姓名"></input>
  183. </view>
  184. <view class="row row-bottom">
  185. <view class="left">水分(%)</view>
  186. <input type="digit" v-model='detailData.warehouseInOutDetail.waterContent' class="right-bottom"
  187. placeholder="输入水分占比"></input>
  188. </view>
  189. <view class="row row-bottom">
  190. <view class="left">容重(克/升)</view>
  191. <input type="digit" v-model='detailData.warehouseInOutDetail.bulkDensity' class="right-bottom"
  192. placeholder="输入容重"></input>
  193. </view>
  194. <view class="row row-bottom">
  195. <view class="left">热损伤(%)</view>
  196. <input type="digit" v-model='detailData.warehouseInOutDetail.jiaorenli' class="right-bottom"
  197. placeholder="输入热损伤占比"></input>
  198. </view>
  199. <view class="row row-bottom">
  200. <view class="left">杂质(%)</view>
  201. <input type="digit" v-model='detailData.warehouseInOutDetail.impurity' class="right-bottom"
  202. placeholder="输入杂质占比"></input>
  203. </view>
  204. <view class="row row-bottom">
  205. <view class="left">霉变粒(%)</view>
  206. <input type="digit" v-model='detailData.warehouseInOutDetail.mildewGrain' class="right-bottom"
  207. placeholder="输入霉变粒占比"></input>
  208. </view>
  209. <view class="row row-bottom">
  210. <view class="left">不完善粒(%)</view>
  211. <input type="digit" v-model='detailData.warehouseInOutDetail.imperfectGrain' class="right-bottom"
  212. placeholder="输入不完善粒占比"></input>
  213. </view>
  214. </view>
  215. <u-toast ref="uToast" />
  216. <view class="bottom-btn">
  217. <u-button type="primary" class="submit" hover-class="none" @click="submit(1)">暂存</u-button>
  218. <u-button type="primary" class="submit" hover-class="none" @click="submit(2)">提交</u-button>
  219. </view>
  220. <u-popup v-model="isShowPrint" class="popup" @close="close" mode="bottom" border-radius="30" :closeable="true">
  221. <view class="buns_item">
  222. <view class="but_css" @click="print">打印小票</view>
  223. <view class="but_css" @click="close">返回</view>
  224. </view>
  225. </u-popup>
  226. </view>
  227. </template>
  228. <script>
  229. import upload from '@/components/upload.vue';
  230. import helper from '@/common/helper.js';
  231. import keyboard from "@/components/master-keyboard/master-keyboard.vue";
  232. import {
  233. mapState
  234. } from 'vuex';
  235. export default {
  236. components: {
  237. upload,
  238. keyboard
  239. },
  240. data() {
  241. return {
  242. weightbills: {},
  243. isShowPrint: false,
  244. show: false,
  245. show1: false,
  246. show2: false,
  247. show3: false,
  248. show4: false,
  249. show5: false,
  250. show6: false,
  251. show7: false,
  252. isPC: true,
  253. show8: false,
  254. carno: false,
  255. usestart: '',
  256. multiSelector: [{
  257. name: '汽运',
  258. value: '0'
  259. },
  260. {
  261. name: '火运',
  262. value: '1'
  263. },
  264. {
  265. name: '集装箱船',
  266. value: '2'
  267. },
  268. {
  269. name: '散船',
  270. value: '3'
  271. },
  272. ],
  273. show9: false,
  274. multiSelector1: [{
  275. name: '汽运',
  276. value: '0'
  277. },
  278. {
  279. name: '火运',
  280. value: '1'
  281. },
  282. {
  283. name: '集装箱船',
  284. value: '2'
  285. },
  286. {
  287. name: '散船',
  288. value: '3'
  289. },
  290. ],
  291. isSelectType: true,
  292. // contractNoList: [{
  293. // contractNo: ""
  294. // }],
  295. typeList: [{
  296. type: "干粮"
  297. },
  298. {
  299. type: "潮粮"
  300. }
  301. ],
  302. pjList: [{
  303. type: "一等品"
  304. },
  305. {
  306. type: "二等品"
  307. },
  308. {
  309. type: "三等品"
  310. },
  311. {
  312. type: "等外"
  313. }
  314. ],
  315. handlerList: [],
  316. warehousingTypeList: [],
  317. action: this.$uploadUrl,
  318. maxSize: 50 * 1024 * 1024, //限制文件大小 50M
  319. btnLoading: false, //防止重复点击
  320. isAdd: true,
  321. warehouseName: '',
  322. binNumber: '',
  323. detailData: {
  324. outType: '汽运',
  325. contractNo: "",
  326. type: "干粮",
  327. grade: "请输入品级",
  328. agent: "请选择经办人",
  329. inOutDate: "请选择出库日期",
  330. inOutType: "请选择出库类型",
  331. warehouseInOutDetail: {},
  332. gradeKey: "",
  333. grossWeight: "",
  334. tare: "",
  335. tips: '',
  336. cost:'',
  337. carNo:'',
  338. selfLoading:"0",
  339. goodsName:"",
  340. },
  341. params: {
  342. year: true,
  343. month: true,
  344. day: true,
  345. },
  346. netWeight: "",
  347. inOutShow: false,
  348. inOutNoList: [],
  349. carList: [], //车牌号下拉
  350. showCar: false,
  351. carChange1:"手动填写",
  352. carjudge:false,
  353. contractType:"",
  354. contractList:[],
  355. }
  356. },
  357. computed: {
  358. ...mapState(['hasLogin', 'userInfo'])
  359. },
  360. watch: {
  361. netWeight: function(v) {
  362. this.pureWeightCount()
  363. },
  364. },
  365. onLoad(options) {
  366. this.id = options.id
  367. this.cangId = options.cangId
  368. this.binNumber = helper.erpWarehouse.binNumber
  369. this.warehouseName = helper.erpWarehouse.warehouseName
  370. //查看任务编号
  371. // this.inOutNo()
  372. },
  373. onShow() {
  374. uni.showLoading({
  375. title:"加载中...",
  376. mask:true
  377. })
  378. // let _data = uni.getStorageSync('erpContractNoCK') == '' ? {} : uni.getStorageSync('erpContractNoCK')
  379. // if(_data.goodsName){
  380. // this.detailData.goodsName = _data.goodsName;
  381. // }
  382. // this.detailData.inOutType = _data.inOutType ? _data.inOutType : '';
  383. // if (this.detailData.inOutType == '销售出库') {
  384. // this.detailData.inOutTypeKey = 1
  385. // } else if (this.detailData.inOutType == '移库出库') {
  386. // this.detailData.inOutTypeKey = 3
  387. // } else if (this.detailData.inOutType == '暂存出库') {
  388. // this.detailData.inOutTypeKey = 4
  389. // } else if (this.detailData.inOutType == '贸易服务出库') {
  390. // this.detailData.inOutTypeKey = 5
  391. // } else if (this.detailData.inOutType == '采购出库') {
  392. // this.detailData.inOutTypeKey = 6
  393. // }
  394. // if (_data.contractNo) {
  395. // this.detailData.contractNo = _data.contractNo;
  396. // }
  397. // this.detailData.goodsNameKey = _data.goodsNameKey ? _data.goodsNameKey : '';
  398. // if (!_data.tranCarInfoList) {
  399. // this.isPC = false
  400. // _data.tranCarInfoList = []
  401. // } else {
  402. // this.isPC = true
  403. // if (uni.getStorageSync('ContractNoCarCK')) {
  404. // this.detailData.carNo = uni.getStorageSync('ContractNoCarCK')
  405. // } else {
  406. // this.detailData.carNo = _data.tranCarInfoList[0].carNo
  407. // }
  408. // }
  409. // if (this.detailData.carNo) {
  410. // for (let i = 0; i < uni.getStorageSync('erpContractNoCK').tranCarInfoList.length; i++) {
  411. // if (uni.getStorageSync('erpContractNoCK').tranCarInfoList[i].carNo == this.detailData.carNo)
  412. // this.detailData.tranCarNo = uni.getStorageSync('erpContractNoCK').tranCarInfoList[i].tranCarNo
  413. // }
  414. // }
  415. // if (!this.detailData.contractNo) {
  416. // this.detailData.contractNo = '请选择合同编号'
  417. // } else {
  418. // if (_data.tranCarInfoList.length == 0) {
  419. // this.isPC = false
  420. // }
  421. // }
  422. if (!this.detailData.goodsName) {
  423. this.detailData.goodsName = '暂无'
  424. }
  425. let _day = new Date();
  426. _day.setTime(_day.getTime());
  427. this.detailData.inOutDate = _day.getFullYear() + "-" + (_day.getMonth() + 1) + "-" + _day.getDate();
  428. //出库类型
  429. this.outWarehouse()
  430. if (helper.erpWarehouse.personCharge) {
  431. this.detailData.agent = helper.erpWarehouse.personCharge
  432. }
  433. //经办人
  434. this.handler()
  435. this.inOutNo()
  436. },
  437. methods: {
  438. //切换车牌号输入状态
  439. carNoTypeChange(){
  440. this.carjudge = !this.carjudge
  441. if(!this.carjudge){
  442. this.detailData.selfLoading = "0"
  443. this.carChange1="手动填写"
  444. }else{
  445. this.detailData.selfLoading = "1"
  446. this.carChange1="识别下拉"
  447. }
  448. },
  449. print() {
  450. uni.navigateTo({
  451. url: '/pages/erpbusiness/exbleConnect'
  452. })
  453. },
  454. close() {
  455. this.isShowPrint = false
  456. uni.navigateBack({})
  457. },
  458. hidden(){
  459. this.$refs.keyboard.open(false)
  460. },
  461. handleShowKeyboard(){
  462. if(this.$refs.keyboard.open){
  463. this.$refs.keyboard.open(true)//true 键盘显示 false 键盘隐藏
  464. }else{
  465. this.$refs.keyboard[0].open(true)
  466. }
  467. },
  468. handleClick(e){
  469. this.detailData.carNo = e.value //键盘输入值
  470. },
  471. inOutNo() {
  472. uni.showLoading({
  473. title:"加载中...",
  474. mask:true
  475. })
  476. var that=this
  477. this.$api.doRequest('get', '/inOutWarehouseTask/selectInOutWarehouseNo', {
  478. flag: 1,
  479. warehouseName: this.warehouseName,
  480. agentKey: this.userInfo.id
  481. }).then(res => {
  482. if(res.data.data.length == 0){
  483. this.$api.msg('暂无出库任务')
  484. }else{
  485. this.inOutNoList = res.data.data
  486. this.detailData.goodsNameKey = res.data.data[0].goodsNameKey
  487. this.detailData.inOutTaskNo = this.inOutNoList[0].inOutTaskNo ? this.inOutNoList[0]
  488. .inOutTaskNo : ''
  489. this.detailData.agent = this.inOutNoList[0].agent
  490. if (this.inOutNoList[0].contractNo) {
  491. this.detailData.contractNo = this.inOutNoList[0].contractNo
  492. } else {
  493. this.detailData.contractNo = this.inOutNoList[0].moveTaskNo
  494. }
  495. this.detailData.goodsName = this.inOutNoList[0].goodsName
  496. this.detailData.goodsNameKey = this.inOutNoList[0].goodsNameKey
  497. this.detailData.grade = this.inOutNoList[0].grade
  498. this.detailData.inOutType = this.inOutNoList[0].inOutType
  499. if (this.detailData.inOutType == '销售出库') {
  500. this.detailData.inOutTypeKey = 1
  501. } else if (this.detailData.inOutType == '移库出库') {
  502. this.detailData.inOutTypeKey = 3
  503. } else if (this.detailData.inOutType == '暂存出库') {
  504. this.detailData.inOutTypeKey = 4
  505. } else if (this.detailData.inOutType == '贸易服务出库') {
  506. this.detailData.inOutTypeKey = 5
  507. } else if (this.detailData.inOutType == '采购出库') {
  508. this.detailData.inOutTypeKey = 6
  509. }
  510. }
  511. this.$api.doRequest('get', '/contractManagementInfo/getOutContract', {
  512. contractNo:this.detailData.contractNo,compId:uni.getStorageSync('pcUserInfo').compId
  513. }).then(res => {
  514. if (res.data.code == 200) {
  515. this.contractList = res.data.data
  516. // "MYCGYMHLJ2021102401"
  517. if (this.detailData.inOutType == '销售出库') {
  518. this.detailData.tips = '买方' + res.data.data.buyer
  519. if(res.data.data.unitContractPrice){
  520. this.detailData.cost=res.data.data.unitContractPrice
  521. }
  522. } else if (this.detailData.inOutType == '移库出库') {
  523. this.detailData.tips = '入货库' + this.inOutNoList[0].receiveWarehouse
  524. }
  525. if(this.detailData.inOutType != '移库出库'){
  526. this.contractType = res.data.data.contractType //获取合同类型 用于判断输入车牌号
  527. }
  528. //如果查到该合同
  529. // res.data.data[i].deliverType = !res.data.data[i].deliverType?'1':res.data.data[i].deliverType
  530. if (res.data.data.deliverType == '1') { //判断自运1,他运2合同
  531. that.showCar = true
  532. } else {
  533. that.showCar = false
  534. }
  535. if (res.data.data.tranCarInfoList) {
  536. for(var num = 0 ; num < res.data.data.tranCarInfoList.length; num++){
  537. res.data.data.tranCarInfoList[num].carNo1 = res.data.data.tranCarInfoList[num].carNo + '('+res.data.data.tranCarInfoList[num].tranCarNo+')'
  538. }
  539. this.carList = res.data.data.tranCarInfoList //车牌号下拉列表
  540. }
  541. uni.hideLoading()
  542. }
  543. })
  544. })
  545. // this.$api.doRequest('get', 'warehouseBaseInfo/selectContractNoList', ).then(res => {
  546. // this.contractNoList = res.data.data
  547. // for (var i = 0; i < this.contractNoList.length; i++) {
  548. // if (this.contractNoList[i].contractNo == this.detailData.contractNo) {
  549. // if (this.detailData.inOutType == '销售出库') {
  550. // this.detailData.tips = '买方' + this.contractNoList[i].buyer
  551. // } else if (this.detailData.inOutType == '移库出库') {
  552. // this.detailData.tips = '入货库' + this.inOutNoList[0].warehouseName
  553. // }
  554. // }
  555. // }
  556. // })
  557. },
  558. inOutChange(e) {
  559. console.log(e)
  560. this.detailData.inOutTaskNo = this.inOutNoList[e[0]].inOutTaskNo
  561. this.detailData.inOutType = this.inOutNoList[e[0]].inOutType
  562. this.detailData.goodsName = this.inOutNoList[e[0]].goodsName
  563. this.detailData.goodsNameKey = this.inOutNoList[e[0]].goodsNameKey
  564. this.detailData.grade = this.inOutNoList[e[0]].grade
  565. // this.detailData.inOutType = this.inOutNoList[e[0]].inOutType
  566. this.weightbills.goodsName = this.inOutNoList[e[0]].goodsName
  567. // this.contractType = this.inOutNoList[e[0]].contractType //获取合同类型 用于判断输入车牌号
  568. this.detailData.agent = this.inOutNoList[e[0]].agent
  569. if (this.inOutNoList[e[0]].contractNo) {
  570. this.detailData.contractNo = this.inOutNoList[e[0]].contractNo
  571. } else {
  572. this.detailData.contractNo = this.inOutNoList[e[0]].moveTaskNo
  573. }
  574. this.$api.doRequest('get', '/contractManagementInfo/getOutContract', {
  575. contractNo:this.detailData.contractNo,compId:uni.getStorageSync('pcUserInfo').compId
  576. }).then(res => {
  577. this.contractList=res.data.data
  578. if(this.detailData.inOutType != '移库出库'){
  579. this.contractType = this.contractList.contractType //获取合同类型 用于判断输入车牌号
  580. }
  581. if (this.contractList.deliverType == '1') { //判断自运1,他运2合同
  582. this.showCar = true
  583. } else {
  584. this.showCar = false
  585. }
  586. if (res.data.data.tranCarInfoList) {
  587. for(var num = 0 ; num < res.data.data.tranCarInfoList.length; num++){
  588. res.data.data.tranCarInfoList[num].carNo1 = res.data.data.tranCarInfoList[num].carNo + '('+res.data.data.tranCarInfoList[num].tranCarNo+')'
  589. }
  590. this.carList = res.data.data.tranCarInfoList //车牌号下拉列表
  591. }
  592. else{
  593. this.carList = []
  594. }
  595. if (this.detailData.inOutType == '销售出库') {
  596. this.detailData.inOutTypeKey=1
  597. this.weightbills.buyer = this.inOutNoList[e[0]].buyer
  598. if(uni.getStorageSync('compName1')){
  599. this.weightbills.seller = uni.getStorageSync('compName1').company
  600. }
  601. if (this.contractList.unitContractPrice) {
  602. this.detailData.tips = '买方' + this.contractList.buyer +
  603. '( ' +
  604. this.contractList.unitContractPrice +
  605. '元/吨)'
  606. this.detailData.cost=this.contractList.unitContractPrice
  607. } else {
  608. this.detailData.tips = '买方' + this.contractList.buyer
  609. this.detailData.cost=''
  610. }
  611. } else if (this.detailData.inOutType == '移库出库') {
  612. this.detailData.inOutTypeKey=3
  613. this.weightbills.buyer = this.inOutNoList[e[0]].receiveWarehouse
  614. if(uni.getStorageSync('compName1')){
  615. this.weightbills.seller = uni.getStorageSync('compName1').company
  616. }
  617. this.detailData.tips = '入货库' + this.inOutNoList[e[0]].receiveWarehouse
  618. }
  619. })
  620. },
  621. toUpperCase(val) {
  622. this.detailData.boxNo = val.detail.value.toUpperCase()
  623. },
  624. toUpperCase1(val) {
  625. this.detailData.boxNoOther = val.detail.value.toUpperCase()
  626. },
  627. usestartChange(e) {
  628. this.usestart = this.multiSelector1[e].name
  629. },
  630. //计算纯重
  631. pureWeightCount() {
  632. if (this.netWeight && this.detailData.buckleWeightRatio && this.detailData.solidGrainWater && this
  633. .detailData.tidalGrainWater) {
  634. // 纯重=净重x[100-(潮粮水分-干粮水分)x扣重比]/100
  635. this.detailData.pureWeight = 100 - (this.detailData.tidalGrainWater - this.detailData
  636. .solidGrainWater) * this.netWeight * this.detailData.buckleWeightRatio / 100
  637. this.detailData.pureWeight = this.detailData.pureWeight.toFixed(3)
  638. }
  639. },
  640. outtypeChange(e) {
  641. this.detailData.outType = this.multiSelector[e].name
  642. console.log(e)
  643. },
  644. toUpperCase2(val) {
  645. this.detailData.wingNumber = val.detail.value.toUpperCase()
  646. },
  647. toUpperCase3(val) {
  648. this.detailData.wingNumberOther = val.detail.value.toUpperCase()
  649. },
  650. outWarehouse() {
  651. this.$api.doRequest('get', '/commonSysParameter/getInfo', {
  652. constId: 'CON6'
  653. }).then(res => {
  654. this.warehousingTypeList = res.data.data
  655. })
  656. },
  657. handler() {
  658. this.$api.doRequest('get', '/staff/query/getStaffListByCompIdAndWarehouseId', {
  659. compId: helper.erpWarehouse.compId,
  660. warehouseId: helper.erpWarehouse.warehouseId
  661. }).then(res => {
  662. this.handlerList = res.data.data
  663. })
  664. },
  665. contractNopicker(e) {
  666. },
  667. typePicker(e) {
  668. this.detailData.type = this.typeList[e].type
  669. },
  670. pjPicker(e) {
  671. this.detailData.gradeKey = e[0] + 1
  672. this.detailData.grade = this.pjList[e].type
  673. },
  674. handlerPicker(e) {
  675. this.detailData.agentKey = e[0]
  676. this.detailData.agent = this.handlerList[e].staffName
  677. },
  678. dateChange(e) {
  679. this.detailData.inOutDate = e.year + "-" + e.month + "-" + e.day
  680. },
  681. warehousingTypePicker(e) {
  682. this.detailData.inOutType = this.warehousingTypeList[e].constValue
  683. if (this.detailData.inOutType == '销售出库') {
  684. this.detailData.inOutTypeKey = 1
  685. } else if (this.detailData.inOutType == '移库出库') {
  686. this.detailData.inOutTypeKey = 3
  687. } else if (this.detailData.inOutType == '暂存出库') {
  688. this.detailData.inOutTypeKey = 4
  689. } else if (this.detailData.inOutType == '贸易服务出库') {
  690. this.detailData.inOutTypeKey = 5
  691. } else if (this.detailData.inOutType == '采购出库') {
  692. this.detailData.inOutTypeKey = 6
  693. }
  694. },
  695. filterFileType(index, lists) {
  696. if (lists[index].fileType != 'jpg' && lists[index].fileType != 'png' && lists[index].fileType != 'gif') {
  697. lists.splice(index, 1);
  698. // 当前文件不支持
  699. uni.showModal({
  700. title: '暂不支持当前图片类型',
  701. showCancel: false
  702. });
  703. } else {
  704. this.isAdd = false;
  705. }
  706. },
  707. calculate() {
  708. if (this.detailData.grossWeight && this.detailData.tare) {
  709. this.netWeight =(this.detailData.grossWeight - this.detailData.tare).toFixed(3)
  710. }
  711. },
  712. getImgUrl(res) {
  713. this.detailData.addressUrl = res
  714. },
  715. onError(error) {
  716. console.log('------------error-----------')
  717. console.log(error)
  718. },
  719. binNumberpicker(e) {
  720. this.detailData.binNumber = this.positionList[e[0]].binNumber
  721. },
  722. carPicker(e) {
  723. // this.detailData.gradeKey = e[0] + 1
  724. // this.detailData.tranCarNo = this.carList[e].tranCarNo
  725. this.detailData.carNo = this.carList[e].carNo
  726. this.detailData.tranCarNo = this.carList[e].tranCarNo
  727. this.detailData.carId = this.carList[e].id
  728. },
  729. onProgress(e) {},
  730. onRemove() {
  731. this.detailData.addressUrl = ""
  732. },
  733. submit(num) {
  734. if (!this.detailData.inOutTaskNo) {
  735. this.$api.msg('暂无出库任务')
  736. return
  737. }
  738. if (!this.detailData.contractNo) {
  739. this.$api.msg('合同编号不能为空')
  740. return
  741. }
  742. if (!this.detailData.goodsName) {
  743. this.$api.msg('货名不能为空')
  744. return
  745. }
  746. if (!this.detailData.grossWeight && num == 2) {
  747. this.$api.msg('毛重不能为空')
  748. return
  749. }
  750. if (isNaN(this.detailData.grossWeight) ||
  751. (String(this.detailData.grossWeight).indexOf('.') != -1 &&
  752. String(this.detailData.grossWeight).length -
  753. (String(this.detailData.grossWeight).indexOf('.') + 1) >
  754. 3) ||
  755. this.detailData.grossWeight < 0 ||
  756. this.detailData.grossWeight > 10000
  757. ) {
  758. this.$api.msg('毛重输入错误!')
  759. return
  760. }
  761. if (!this.detailData.tare && num == 2) {
  762. this.$api.msg('皮重不能为空')
  763. return
  764. }
  765. if (isNaN(this.detailData.tare) ||
  766. (String(this.detailData.tare).indexOf('.') != -1 &&
  767. String(this.detailData.tare).length -
  768. (String(this.detailData.tare).indexOf('.') + 1) >
  769. 3) ||
  770. this.detailData.tare < 0 ||
  771. this.detailData.tare > 10000
  772. ) {
  773. this.$api.msg('皮重输入错误!')
  774. return
  775. }
  776. if (Number(this.detailData.tare) > Number(this.detailData.grossWeight)) {
  777. this.$api.msg('皮重不能大于毛重')
  778. return
  779. }
  780. if (this.netWeight <= 0 && num == 2) {
  781. this.$api.msg('净重不能小于等于0')
  782. return
  783. }
  784. if (this.detailData.type == "潮粮") {
  785. if (!this.detailData.buckleWeightRatio && num == 2) {
  786. this.$api.msg('扣重比不能为空')
  787. return
  788. }
  789. if (isNaN(this.detailData.buckleWeightRatio) ||
  790. (String(this.detailData.buckleWeightRatio).indexOf('.') != -1 &&
  791. String(this.detailData.buckleWeightRatio).length -
  792. (String(this.detailData.buckleWeightRatio).indexOf('.') + 1) >
  793. 2) ||
  794. this.detailData.buckleWeightRatio < 0 ||
  795. this.detailData.buckleWeightRatio > 3
  796. ) {
  797. this.$api.msg('扣重比输入错误!')
  798. return
  799. }
  800. if (!this.detailData.solidGrainWater && num == 2) {
  801. this.$api.msg('干粮水分不能为空')
  802. return
  803. }
  804. if (isNaN(this.detailData.solidGrainWater) ||
  805. (String(this.detailData.solidGrainWater).indexOf('.') != -1 &&
  806. String(this.detailData.solidGrainWater).length -
  807. (String(this.detailData.solidGrainWater).indexOf('.') + 1) >
  808. 1) ||
  809. this.detailData.solidGrainWater < 1 ||
  810. this.detailData.solidGrainWater > 40
  811. ) {
  812. this.$api.msg('干粮水分输入错误!')
  813. return
  814. }
  815. if (!this.detailData.tidalGrainWater && num == 2) {
  816. this.$api.msg('潮粮水分不能为空')
  817. return
  818. }
  819. if (isNaN(this.detailData.tidalGrainWater) ||
  820. (String(this.detailData.tidalGrainWater).indexOf('.') != -1 &&
  821. String(this.detailData.tidalGrainWater).length -
  822. (String(this.detailData.tidalGrainWater).indexOf('.') + 1) >
  823. 1) ||
  824. this.detailData.tidalGrainWater < 1 ||
  825. this.detailData.tidalGrainWater > 40
  826. ) {
  827. this.$api.msg('潮粮水分输入错误!')
  828. return
  829. }
  830. if (this.detailData.tidalGrainWater <= this.detailData.solidGrainWater) {
  831. this.$api.msg('潮粮水分输入错误!')
  832. return
  833. }
  834. if (!this.detailData.pureWeight && num == 2) {
  835. this.$api.msg('纯重不能为空')
  836. return
  837. }
  838. }
  839. if (this.detailData.grade == "请输入品级" && num == 2) {
  840. this.$api.msg('品级不能为空')
  841. return
  842. }
  843. if (!this.detailData.cost && this.detailData.inOutType == '销售出库'&& num == 2) {
  844. this.$api.msg('价格不能为空')
  845. return
  846. }
  847. if (this.detailData.agent == "请选择经办人") {
  848. this.$api.msg('经办人不能为空')
  849. return
  850. }
  851. if (this.detailData.inOutDate == "请选择出库日期") {
  852. this.$api.msg('出库日期不能为空')
  853. return
  854. }
  855. if (this.detailData.inOutType == "请选择出库类型") {
  856. this.$api.msg('出库类型不能为空')
  857. return
  858. }
  859. if (this.detailData.outType == "集装箱船" || this.detailData.outType == "汽运") {
  860. if (!this.detailData.carNo && num == 2) {
  861. this.$api.msg('车牌号不能为空')
  862. return
  863. }
  864. if (this.detailData.carNo.length != 7) {
  865. this.$api.msg('车牌号输入有误!')
  866. return
  867. }
  868. }
  869. if (!this.detailData.addressUrl && num == 2) {
  870. this.$api.msg('请上传磅单')
  871. return
  872. }
  873. if (this.detailData.warehouseInOutDetail.qualityInspector) {
  874. if (this.detailData.warehouseInOutDetail.qualityInspector.length < 2 || this.detailData.warehouseInOutDetail
  875. .qualityInspector.length > 10) {
  876. this.$api.msg('质检员姓名需要2-10个字')
  877. return
  878. }
  879. }
  880. if (this.detailData.warehouseInOutDetail.waterContent) {
  881. if (this.detailData.type == "潮粮" && this.detailData.warehouseInOutDetail.waterContent != this
  882. .detailData.tidalGrainWater) {
  883. this.$api.msg('水分占比与潮粮水分不一致')
  884. return
  885. }
  886. if (this.detailData.type == "干粮") {
  887. if (this.detailData.warehouseInOutDetail.waterContent < 0 || this.detailData.warehouseInOutDetail
  888. .waterContent > 40) {
  889. this.$api.msg('水分占比输入错误')
  890. return
  891. }
  892. }
  893. if (String(this.detailData.warehouseInOutDetail.waterContent).indexOf('.') != -1 && String(this
  894. .detailData.warehouseInOutDetail.waterContent).length - (String(
  895. this.detailData.warehouseInOutDetail.waterContent).indexOf('.') + 1) > 1) {
  896. this.$api.msg('水分占比输入错误')
  897. return
  898. }
  899. }
  900. if (this.detailData.warehouseInOutDetail.bulkDensity) {
  901. if (this.detailData.warehouseInOutDetail.bulkDensity < 500 || this.detailData.warehouseInOutDetail
  902. .bulkDensity > 1000) {
  903. this.$api.msg('容重输入错误')
  904. return
  905. }
  906. if (String(this.detailData.warehouseInOutDetail.bulkDensity).indexOf('.') != -1 && String(this
  907. .detailData.warehouseInOutDetail.bulkDensity).length - (
  908. String(this.detailData.warehouseInOutDetail.bulkDensity).indexOf('.') + 1) > 0) {
  909. this.$api.msg('容重输入错误')
  910. return
  911. }
  912. }
  913. if(this.detailData.goodsName!='小麦'){
  914. if (this.detailData.warehouseInOutDetail.jiaorenli) {
  915. if (this.detailData.warehouseInOutDetail.jiaorenli < 0 || this.detailData.warehouseInOutDetail
  916. .jiaorenli > 40) {
  917. this.$api.msg('热损伤占比输入错误')
  918. return
  919. }
  920. if (String(this.detailData.warehouseInOutDetail.jiaorenli).indexOf('.') != -1 && String(this
  921. .detailData
  922. .warehouseInOutDetail.jiaorenli).length - (String(
  923. this.detailData.warehouseInOutDetail.jiaorenli).indexOf('.') + 1) > 1) {
  924. this.$api.msg('热损伤占比输入错误')
  925. return
  926. }
  927. }
  928. }
  929. if (this.detailData.warehouseInOutDetail.impurity) {
  930. if (this.detailData.warehouseInOutDetail.impurity < 0 || this.detailData.warehouseInOutDetail
  931. .impurity > 40) {
  932. this.$api.msg('杂质占比输入错误')
  933. return
  934. }
  935. if (String(this.detailData.warehouseInOutDetail.impurity).indexOf('.') != -1 && String(this.detailData
  936. .warehouseInOutDetail.impurity).length - (String(
  937. this.detailData.warehouseInOutDetail.impurity).indexOf('.') + 1) > 1) {
  938. this.$api.msg('杂质占比输入错误')
  939. return
  940. }
  941. }
  942. if (this.detailData.warehouseInOutDetail.mildewGrain) {
  943. if (this.detailData.warehouseInOutDetail.mildewGrain < 0 || this.detailData.warehouseInOutDetail
  944. .mildewGrain > 40) {
  945. this.$api.msg('霉变粒占比输入错误')
  946. return
  947. }
  948. if (String(this.detailData.warehouseInOutDetail.mildewGrain).indexOf('.') != -1 && String(this
  949. .detailData
  950. .warehouseInOutDetail.mildewGrain).length - (String(
  951. this.detailData.warehouseInOutDetail.mildewGrain).indexOf('.') + 1) > 1) {
  952. this.$api.msg('霉变粒占比输入错误')
  953. return
  954. }
  955. }
  956. if (this.detailData.warehouseInOutDetail.imperfectGrain) {
  957. if (this.detailData.warehouseInOutDetail.imperfectGrain < 0 || this.detailData.warehouseInOutDetail
  958. .imperfectGrain > 40) {
  959. this.$api.msg('不完善粒占比输入错误')
  960. return
  961. }
  962. if (String(this.detailData.warehouseInOutDetail.imperfectGrain).indexOf('.') != -1 && String(this
  963. .detailData
  964. .warehouseInOutDetail.imperfectGrain).length - (String(
  965. this.detailData.warehouseInOutDetail.imperfectGrain).indexOf('.') + 1) > 1) {
  966. this.$api.msg('不完善粒占比输入错误')
  967. return
  968. }
  969. }
  970. if(!this.showCar){//若自运的合同该字段置空
  971. this.detailData.selfLoading = ""
  972. }
  973. if (this.detailData.boxNo) {
  974. this.detailData.boxNo = this.detailData.boxNo.toUpperCase()
  975. }
  976. if (this.detailData.boxNoOther) {
  977. this.detailData.boxNoOther = this.detailData.boxNoOther.toUpperCase()
  978. }
  979. this.detailData.baseId = helper.erpWarehouse.warehouseId
  980. this.detailData.warehouseName = helper.erpWarehouse.warehouseName
  981. this.detailData.positionId = helper.erpWarehouse.positionId
  982. this.detailData.binNumber = this.binNumber
  983. this.detailData.compId = helper.erpWarehouse.compId
  984. this.detailData.netWeight = this.netWeight
  985. this.detailData.inOutFlag = 1
  986. this.detailData.taskType = "出库任务"
  987. this.detailData.pcFlag = 0
  988. let title = ""
  989. if (num == 1) {
  990. this.detailData.statusFlag = 1
  991. this.detailData.backOffice = this.userInfo.userName
  992. this.detailData.backOfficeId = this.userInfo.id
  993. title = "暂存成功"
  994. } else if (num == 2) {
  995. this.detailData.statusFlag = 3
  996. this.detailData.backOffice = this.userInfo.userName
  997. this.detailData.backOfficeId = this.userInfo.id
  998. title = "提交成功"
  999. }
  1000. let that = this
  1001. uni.showModal({
  1002. content: "确定提交出库信息?",
  1003. success(res) {
  1004. if (res.confirm) {
  1005. uni.showLoading({
  1006. title: "正在提交",
  1007. mask: true
  1008. })
  1009. that.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse',
  1010. that.detailData).then(res => {
  1011. console.log(res, "报异常")
  1012. if (res.data.code == 200) {
  1013. that.weightbills.carNo = that.detailData.carNo
  1014. that.weightbills.boxNo = that.detailData.boxNo
  1015. that.weightbills.boxNoOther = that.detailData.boxNoOther
  1016. that.weightbills.wingNumber = that.detailData.wingNumber
  1017. that.weightbills.wingNumberOther = that.detailData.wingNumberOther
  1018. that.weightbills.shipName = that.detailData.shipName
  1019. that.weightbills.shipNumber = that.detailData.shipNumber
  1020. that.weightbills.type = that.detailData.type
  1021. that.weightbills.grossWeight = that.detailData.grossWeight
  1022. that.weightbills.tare = that.detailData.tare
  1023. that.weightbills.netWeight = that.detailData.netWeight
  1024. that.weightbills.outType = that.detailData.outType
  1025. that.weightbills.backOffice = that.detailData.outType
  1026. var date = new Date()
  1027. that.weightbills.updateDate = date.getFullYear() + '-' + (date
  1028. .getMonth() + 1) + '-' + date.getDate() + ' ' + date
  1029. .getHours() + ':' + date.getMinutes() + ':' + date.getSeconds()
  1030. that.$api.msg(title)
  1031. that.isShowPrint = true
  1032. uni.setStorageSync("exWarehousing_print", that.weightbills)
  1033. // setTimeout(() => {
  1034. // uni.navigateBack()
  1035. // }, 1000)
  1036. } else {
  1037. that.$api.msg(res.data.message)
  1038. }
  1039. uni.hideLoading()
  1040. })
  1041. .catch(res => {
  1042. uni.hideLoading()
  1043. })
  1044. }
  1045. }
  1046. })
  1047. },
  1048. slectcontractNo() {
  1049. uni.navigateTo({
  1050. url: '/pages/erp/exWarehousing/selectContractNo?flag=' + 5
  1051. })
  1052. },
  1053. slectCarNo() {
  1054. uni.navigateTo({
  1055. url: '/pages/erp/exWarehousing/selectCarNo'
  1056. })
  1057. },
  1058. }
  1059. }
  1060. </script>
  1061. <style scoped lang="scss">
  1062. uni-page-body {
  1063. overflow: hidden;
  1064. }
  1065. .warp {
  1066. margin: 10rpx;
  1067. padding: 20rpx 20rpx 300rpx 20rpx;
  1068. .top {
  1069. display: flex;
  1070. margin-bottom: 20rpx;
  1071. align-items: center;
  1072. .top-left {
  1073. margin-right: 20rpx;
  1074. }
  1075. }
  1076. }
  1077. .content,
  1078. .content1,
  1079. .content2 {
  1080. border-radius: 20rpx;
  1081. background: white;
  1082. padding: 20rpx;
  1083. .title {
  1084. font-size: 28rpx;
  1085. font-weight: 600;
  1086. color: #333333;
  1087. }
  1088. .row {
  1089. display: flex;
  1090. justify-content: space-between;
  1091. border-bottom: 1px solid #EEEEEE;
  1092. padding: 21rpx 0;
  1093. .right,
  1094. input {
  1095. font-size: 28rpx;
  1096. color: #333333;
  1097. }
  1098. }
  1099. .row-bottom {
  1100. // border: 0;
  1101. .right-bottom {
  1102. width: 280rpx;
  1103. text-align: right;
  1104. }
  1105. }
  1106. }
  1107. .content1 {
  1108. margin-top: 20rpx;
  1109. }
  1110. .content2 {
  1111. margin-top: 10px;
  1112. // display: flex;
  1113. align-items: center;
  1114. .left {
  1115. margin-right: 20px;
  1116. }
  1117. }
  1118. .submit {
  1119. width: 40%;
  1120. background: #22C572;
  1121. border-radius: 10rpx;
  1122. }
  1123. .edit-btn {
  1124. background: #22C572;
  1125. width: 100rpx;
  1126. height: 50rpx;
  1127. margin: 0;
  1128. color: white;
  1129. }
  1130. .has-btn {
  1131. align-items: center;
  1132. }
  1133. .bottom-btn {
  1134. padding: 30rpx;
  1135. background: #FFFFFF;
  1136. width: 92%;
  1137. position: fixed;
  1138. bottom: 0rpx;
  1139. display: flex;
  1140. z-index: 9999;
  1141. }
  1142. .buns_item {
  1143. display: flex;
  1144. padding: 80rpx 0 50rpx 0;
  1145. justify-content: space-around;
  1146. }
  1147. .but_css {
  1148. background: #22C572;
  1149. width: 40%;
  1150. padding: 20rpx;
  1151. color: #fff;
  1152. text-align: center;
  1153. border-radius: 20rpx;
  1154. }
  1155. .carNo_but{
  1156. // padding: 2rpx 5rpx;
  1157. background: #19be6b;
  1158. line-height: 50rpx;
  1159. text-align: center;
  1160. width: 130rpx!important;
  1161. height: 50rpx;
  1162. color: #FFFFFF;
  1163. border-radius: 10rpx;
  1164. }
  1165. </style>