exWarehousing.vue 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198
  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,warehouseName: this.warehouseName,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. else{
  542. this.carList =[]
  543. }
  544. uni.hideLoading()
  545. }
  546. })
  547. })
  548. // this.$api.doRequest('get', 'warehouseBaseInfo/selectContractNoList', ).then(res => {
  549. // this.contractNoList = res.data.data
  550. // for (var i = 0; i < this.contractNoList.length; i++) {
  551. // if (this.contractNoList[i].contractNo == this.detailData.contractNo) {
  552. // if (this.detailData.inOutType == '销售出库') {
  553. // this.detailData.tips = '买方' + this.contractNoList[i].buyer
  554. // } else if (this.detailData.inOutType == '移库出库') {
  555. // this.detailData.tips = '入货库' + this.inOutNoList[0].warehouseName
  556. // }
  557. // }
  558. // }
  559. // })
  560. },
  561. inOutChange(e) {
  562. console.log(e)
  563. this.detailData.inOutTaskNo = this.inOutNoList[e[0]].inOutTaskNo
  564. this.detailData.inOutType = this.inOutNoList[e[0]].inOutType
  565. this.detailData.goodsName = this.inOutNoList[e[0]].goodsName
  566. this.detailData.goodsNameKey = this.inOutNoList[e[0]].goodsNameKey
  567. this.detailData.grade = this.inOutNoList[e[0]].grade
  568. // this.detailData.inOutType = this.inOutNoList[e[0]].inOutType
  569. this.weightbills.goodsName = this.inOutNoList[e[0]].goodsName
  570. // this.contractType = this.inOutNoList[e[0]].contractType //获取合同类型 用于判断输入车牌号
  571. this.detailData.agent = this.inOutNoList[e[0]].agent
  572. if (this.inOutNoList[e[0]].contractNo) {
  573. this.detailData.contractNo = this.inOutNoList[e[0]].contractNo
  574. } else {
  575. this.detailData.contractNo = this.inOutNoList[e[0]].moveTaskNo
  576. }
  577. this.$api.doRequest('get', '/contractManagementInfo/getOutContract', {
  578. contractNo:this.detailData.contractNo,warehouseName: this.warehouseName,compId:uni.getStorageSync('pcUserInfo').compId
  579. }).then(res => {
  580. this.contractList=res.data.data
  581. if(this.detailData.inOutType != '移库出库'){
  582. this.contractType = this.contractList.contractType //获取合同类型 用于判断输入车牌号
  583. }
  584. if (this.contractList.deliverType == '1') { //判断自运1,他运2合同
  585. this.showCar = true
  586. } else {
  587. this.showCar = false
  588. }
  589. if (res.data.data.tranCarInfoList) {
  590. for(var num = 0 ; num < res.data.data.tranCarInfoList.length; num++){
  591. res.data.data.tranCarInfoList[num].carNo1 = res.data.data.tranCarInfoList[num].carNo + '('+res.data.data.tranCarInfoList[num].tranCarNo+')'
  592. }
  593. this.carList = res.data.data.tranCarInfoList //车牌号下拉列表
  594. }
  595. else{
  596. this.carList = []
  597. }
  598. if (this.detailData.inOutType == '销售出库') {
  599. this.detailData.inOutTypeKey=1
  600. this.weightbills.buyer = this.inOutNoList[e[0]].buyer
  601. if(uni.getStorageSync('compName1')){
  602. this.weightbills.seller = uni.getStorageSync('compName1').company
  603. }
  604. if (this.contractList.unitContractPrice) {
  605. this.detailData.tips = '买方' + this.contractList.buyer +
  606. '( ' +
  607. this.contractList.unitContractPrice +
  608. '元/吨)'
  609. this.detailData.cost=this.contractList.unitContractPrice
  610. } else {
  611. this.detailData.tips = '买方' + this.contractList.buyer
  612. this.detailData.cost=''
  613. }
  614. } else if (this.detailData.inOutType == '移库出库') {
  615. this.detailData.inOutTypeKey=3
  616. this.weightbills.buyer = this.inOutNoList[e[0]].receiveWarehouse
  617. if(uni.getStorageSync('compName1')){
  618. this.weightbills.seller = uni.getStorageSync('compName1').company
  619. }
  620. this.detailData.tips = '入货库' + this.inOutNoList[e[0]].receiveWarehouse
  621. }
  622. })
  623. },
  624. toUpperCase(val) {
  625. this.detailData.boxNo = val.detail.value.toUpperCase()
  626. },
  627. toUpperCase1(val) {
  628. this.detailData.boxNoOther = val.detail.value.toUpperCase()
  629. },
  630. usestartChange(e) {
  631. this.usestart = this.multiSelector1[e].name
  632. },
  633. //计算纯重
  634. pureWeightCount() {
  635. if (this.netWeight && this.detailData.buckleWeightRatio && this.detailData.solidGrainWater && this
  636. .detailData.tidalGrainWater) {
  637. // 纯重=净重x[100-(潮粮水分-干粮水分)x扣重比]/100
  638. this.detailData.pureWeight = 100 - (this.detailData.tidalGrainWater - this.detailData
  639. .solidGrainWater) * this.netWeight * this.detailData.buckleWeightRatio / 100
  640. this.detailData.pureWeight = this.detailData.pureWeight.toFixed(3)
  641. }
  642. },
  643. outtypeChange(e) {
  644. this.detailData.outType = this.multiSelector[e].name
  645. console.log(e)
  646. },
  647. toUpperCase2(val) {
  648. this.detailData.wingNumber = val.detail.value.toUpperCase()
  649. },
  650. toUpperCase3(val) {
  651. this.detailData.wingNumberOther = val.detail.value.toUpperCase()
  652. },
  653. outWarehouse() {
  654. this.$api.doRequest('get', '/commonSysParameter/getInfo', {
  655. constId: 'CON6'
  656. }).then(res => {
  657. this.warehousingTypeList = res.data.data
  658. })
  659. },
  660. handler() {
  661. this.$api.doRequest('get', '/staff/query/getStaffListByCompIdAndWarehouseId', {
  662. compId: helper.erpWarehouse.compId,
  663. warehouseId: helper.erpWarehouse.warehouseId
  664. }).then(res => {
  665. this.handlerList = res.data.data
  666. })
  667. },
  668. contractNopicker(e) {
  669. },
  670. typePicker(e) {
  671. this.detailData.type = this.typeList[e].type
  672. },
  673. pjPicker(e) {
  674. this.detailData.gradeKey = e[0] + 1
  675. this.detailData.grade = this.pjList[e].type
  676. },
  677. handlerPicker(e) {
  678. this.detailData.agentKey = e[0]
  679. this.detailData.agent = this.handlerList[e].staffName
  680. },
  681. dateChange(e) {
  682. this.detailData.inOutDate = e.year + "-" + e.month + "-" + e.day
  683. },
  684. warehousingTypePicker(e) {
  685. this.detailData.inOutType = this.warehousingTypeList[e].constValue
  686. if (this.detailData.inOutType == '销售出库') {
  687. this.detailData.inOutTypeKey = 1
  688. } else if (this.detailData.inOutType == '移库出库') {
  689. this.detailData.inOutTypeKey = 3
  690. } else if (this.detailData.inOutType == '暂存出库') {
  691. this.detailData.inOutTypeKey = 4
  692. } else if (this.detailData.inOutType == '贸易服务出库') {
  693. this.detailData.inOutTypeKey = 5
  694. } else if (this.detailData.inOutType == '采购出库') {
  695. this.detailData.inOutTypeKey = 6
  696. }
  697. },
  698. filterFileType(index, lists) {
  699. if (lists[index].fileType != 'jpg' && lists[index].fileType != 'png' && lists[index].fileType != 'gif') {
  700. lists.splice(index, 1);
  701. // 当前文件不支持
  702. uni.showModal({
  703. title: '暂不支持当前图片类型',
  704. showCancel: false
  705. });
  706. } else {
  707. this.isAdd = false;
  708. }
  709. },
  710. calculate() {
  711. if (this.detailData.grossWeight && this.detailData.tare) {
  712. this.netWeight =(this.detailData.grossWeight - this.detailData.tare).toFixed(3)
  713. }
  714. },
  715. getImgUrl(res) {
  716. this.detailData.addressUrl = res
  717. },
  718. onError(error) {
  719. console.log('------------error-----------')
  720. console.log(error)
  721. },
  722. binNumberpicker(e) {
  723. this.detailData.binNumber = this.positionList[e[0]].binNumber
  724. },
  725. carPicker(e) {
  726. // this.detailData.gradeKey = e[0] + 1
  727. // this.detailData.tranCarNo = this.carList[e].tranCarNo
  728. this.detailData.carNo = this.carList[e].carNo
  729. this.detailData.tranCarNo = this.carList[e].tranCarNo
  730. this.detailData.carId = this.carList[e].id
  731. },
  732. onProgress(e) {},
  733. onRemove() {
  734. this.detailData.addressUrl = ""
  735. },
  736. submit(num) {
  737. if (!this.detailData.inOutTaskNo) {
  738. this.$api.msg('暂无出库任务')
  739. return
  740. }
  741. if (!this.detailData.contractNo) {
  742. this.$api.msg('合同编号不能为空')
  743. return
  744. }
  745. if (!this.detailData.goodsName) {
  746. this.$api.msg('货名不能为空')
  747. return
  748. }
  749. if (!this.detailData.grossWeight && num == 2) {
  750. this.$api.msg('毛重不能为空')
  751. return
  752. }
  753. if (isNaN(this.detailData.grossWeight) ||
  754. (String(this.detailData.grossWeight).indexOf('.') != -1 &&
  755. String(this.detailData.grossWeight).length -
  756. (String(this.detailData.grossWeight).indexOf('.') + 1) >
  757. 3) ||
  758. this.detailData.grossWeight < 0 ||
  759. this.detailData.grossWeight > 10000
  760. ) {
  761. this.$api.msg('毛重输入错误!')
  762. return
  763. }
  764. if (!this.detailData.tare && num == 2) {
  765. this.$api.msg('皮重不能为空')
  766. return
  767. }
  768. if (isNaN(this.detailData.tare) ||
  769. (String(this.detailData.tare).indexOf('.') != -1 &&
  770. String(this.detailData.tare).length -
  771. (String(this.detailData.tare).indexOf('.') + 1) >
  772. 3) ||
  773. this.detailData.tare < 0 ||
  774. this.detailData.tare > 10000
  775. ) {
  776. this.$api.msg('皮重输入错误!')
  777. return
  778. }
  779. if (Number(this.detailData.tare) > Number(this.detailData.grossWeight)) {
  780. this.$api.msg('皮重不能大于毛重')
  781. return
  782. }
  783. if (this.netWeight <= 0 && num == 2) {
  784. this.$api.msg('净重不能小于等于0')
  785. return
  786. }
  787. if (this.detailData.type == "潮粮") {
  788. if (!this.detailData.buckleWeightRatio && num == 2) {
  789. this.$api.msg('扣重比不能为空')
  790. return
  791. }
  792. if (isNaN(this.detailData.buckleWeightRatio) ||
  793. (String(this.detailData.buckleWeightRatio).indexOf('.') != -1 &&
  794. String(this.detailData.buckleWeightRatio).length -
  795. (String(this.detailData.buckleWeightRatio).indexOf('.') + 1) >
  796. 2) ||
  797. this.detailData.buckleWeightRatio < 0 ||
  798. this.detailData.buckleWeightRatio > 3
  799. ) {
  800. this.$api.msg('扣重比输入错误!')
  801. return
  802. }
  803. if (!this.detailData.solidGrainWater && num == 2) {
  804. this.$api.msg('干粮水分不能为空')
  805. return
  806. }
  807. if (isNaN(this.detailData.solidGrainWater) ||
  808. (String(this.detailData.solidGrainWater).indexOf('.') != -1 &&
  809. String(this.detailData.solidGrainWater).length -
  810. (String(this.detailData.solidGrainWater).indexOf('.') + 1) >
  811. 1) ||
  812. this.detailData.solidGrainWater < 1 ||
  813. this.detailData.solidGrainWater > 40
  814. ) {
  815. this.$api.msg('干粮水分输入错误!')
  816. return
  817. }
  818. if (!this.detailData.tidalGrainWater && num == 2) {
  819. this.$api.msg('潮粮水分不能为空')
  820. return
  821. }
  822. if (isNaN(this.detailData.tidalGrainWater) ||
  823. (String(this.detailData.tidalGrainWater).indexOf('.') != -1 &&
  824. String(this.detailData.tidalGrainWater).length -
  825. (String(this.detailData.tidalGrainWater).indexOf('.') + 1) >
  826. 1) ||
  827. this.detailData.tidalGrainWater < 1 ||
  828. this.detailData.tidalGrainWater > 40
  829. ) {
  830. this.$api.msg('潮粮水分输入错误!')
  831. return
  832. }
  833. if (this.detailData.tidalGrainWater <= this.detailData.solidGrainWater) {
  834. this.$api.msg('潮粮水分输入错误!')
  835. return
  836. }
  837. if (!this.detailData.pureWeight && num == 2) {
  838. this.$api.msg('纯重不能为空')
  839. return
  840. }
  841. }
  842. if (this.detailData.grade == "请输入品级" && num == 2) {
  843. this.$api.msg('品级不能为空')
  844. return
  845. }
  846. if (!this.detailData.cost && this.detailData.inOutType == '销售出库'&& num == 2) {
  847. this.$api.msg('价格不能为空')
  848. return
  849. }
  850. if (this.detailData.agent == "请选择经办人") {
  851. this.$api.msg('经办人不能为空')
  852. return
  853. }
  854. if (this.detailData.inOutDate == "请选择出库日期") {
  855. this.$api.msg('出库日期不能为空')
  856. return
  857. }
  858. if (this.detailData.inOutType == "请选择出库类型") {
  859. this.$api.msg('出库类型不能为空')
  860. return
  861. }
  862. if (this.detailData.outType == "集装箱船" || this.detailData.outType == "汽运") {
  863. if (!this.detailData.carNo && num == 2) {
  864. this.$api.msg('车牌号不能为空')
  865. return
  866. }
  867. if (this.detailData.carNo.length != 7) {
  868. this.$api.msg('车牌号输入有误!')
  869. return
  870. }
  871. }
  872. if (!this.detailData.addressUrl && num == 2) {
  873. this.$api.msg('请上传磅单')
  874. return
  875. }
  876. if (this.detailData.warehouseInOutDetail.qualityInspector) {
  877. if (this.detailData.warehouseInOutDetail.qualityInspector.length < 2 || this.detailData.warehouseInOutDetail
  878. .qualityInspector.length > 10) {
  879. this.$api.msg('质检员姓名需要2-10个字')
  880. return
  881. }
  882. }
  883. if (this.detailData.warehouseInOutDetail.waterContent) {
  884. if (this.detailData.type == "潮粮" && this.detailData.warehouseInOutDetail.waterContent != this
  885. .detailData.tidalGrainWater) {
  886. this.$api.msg('水分占比与潮粮水分不一致')
  887. return
  888. }
  889. if (this.detailData.type == "干粮") {
  890. if (this.detailData.warehouseInOutDetail.waterContent < 0 || this.detailData.warehouseInOutDetail
  891. .waterContent > 40) {
  892. this.$api.msg('水分占比输入错误')
  893. return
  894. }
  895. }
  896. if (String(this.detailData.warehouseInOutDetail.waterContent).indexOf('.') != -1 && String(this
  897. .detailData.warehouseInOutDetail.waterContent).length - (String(
  898. this.detailData.warehouseInOutDetail.waterContent).indexOf('.') + 1) > 1) {
  899. this.$api.msg('水分占比输入错误')
  900. return
  901. }
  902. }
  903. if (this.detailData.warehouseInOutDetail.bulkDensity) {
  904. if (this.detailData.warehouseInOutDetail.bulkDensity < 500 || this.detailData.warehouseInOutDetail
  905. .bulkDensity > 1000) {
  906. this.$api.msg('容重输入错误')
  907. return
  908. }
  909. if (String(this.detailData.warehouseInOutDetail.bulkDensity).indexOf('.') != -1 && String(this
  910. .detailData.warehouseInOutDetail.bulkDensity).length - (
  911. String(this.detailData.warehouseInOutDetail.bulkDensity).indexOf('.') + 1) > 0) {
  912. this.$api.msg('容重输入错误')
  913. return
  914. }
  915. }
  916. if(this.detailData.goodsName!='小麦'){
  917. if (this.detailData.warehouseInOutDetail.jiaorenli) {
  918. if (this.detailData.warehouseInOutDetail.jiaorenli < 0 || this.detailData.warehouseInOutDetail
  919. .jiaorenli > 40) {
  920. this.$api.msg('热损伤占比输入错误')
  921. return
  922. }
  923. if (String(this.detailData.warehouseInOutDetail.jiaorenli).indexOf('.') != -1 && String(this
  924. .detailData
  925. .warehouseInOutDetail.jiaorenli).length - (String(
  926. this.detailData.warehouseInOutDetail.jiaorenli).indexOf('.') + 1) > 1) {
  927. this.$api.msg('热损伤占比输入错误')
  928. return
  929. }
  930. }
  931. }
  932. if (this.detailData.warehouseInOutDetail.impurity) {
  933. if (this.detailData.warehouseInOutDetail.impurity < 0 || this.detailData.warehouseInOutDetail
  934. .impurity > 40) {
  935. this.$api.msg('杂质占比输入错误')
  936. return
  937. }
  938. if (String(this.detailData.warehouseInOutDetail.impurity).indexOf('.') != -1 && String(this.detailData
  939. .warehouseInOutDetail.impurity).length - (String(
  940. this.detailData.warehouseInOutDetail.impurity).indexOf('.') + 1) > 1) {
  941. this.$api.msg('杂质占比输入错误')
  942. return
  943. }
  944. }
  945. if (this.detailData.warehouseInOutDetail.mildewGrain) {
  946. if (this.detailData.warehouseInOutDetail.mildewGrain < 0 || this.detailData.warehouseInOutDetail
  947. .mildewGrain > 40) {
  948. this.$api.msg('霉变粒占比输入错误')
  949. return
  950. }
  951. if (String(this.detailData.warehouseInOutDetail.mildewGrain).indexOf('.') != -1 && String(this
  952. .detailData
  953. .warehouseInOutDetail.mildewGrain).length - (String(
  954. this.detailData.warehouseInOutDetail.mildewGrain).indexOf('.') + 1) > 1) {
  955. this.$api.msg('霉变粒占比输入错误')
  956. return
  957. }
  958. }
  959. if (this.detailData.warehouseInOutDetail.imperfectGrain) {
  960. if (this.detailData.warehouseInOutDetail.imperfectGrain < 0 || this.detailData.warehouseInOutDetail
  961. .imperfectGrain > 40) {
  962. this.$api.msg('不完善粒占比输入错误')
  963. return
  964. }
  965. if (String(this.detailData.warehouseInOutDetail.imperfectGrain).indexOf('.') != -1 && String(this
  966. .detailData
  967. .warehouseInOutDetail.imperfectGrain).length - (String(
  968. this.detailData.warehouseInOutDetail.imperfectGrain).indexOf('.') + 1) > 1) {
  969. this.$api.msg('不完善粒占比输入错误')
  970. return
  971. }
  972. }
  973. if(!this.showCar){//若自运的合同该字段置空
  974. this.detailData.selfLoading = ""
  975. }
  976. if (this.detailData.boxNo) {
  977. this.detailData.boxNo = this.detailData.boxNo.toUpperCase()
  978. }
  979. if (this.detailData.boxNoOther) {
  980. this.detailData.boxNoOther = this.detailData.boxNoOther.toUpperCase()
  981. }
  982. this.detailData.baseId = helper.erpWarehouse.warehouseId
  983. this.detailData.warehouseName = helper.erpWarehouse.warehouseName
  984. this.detailData.positionId = helper.erpWarehouse.positionId
  985. this.detailData.binNumber = this.binNumber
  986. this.detailData.compId = helper.erpWarehouse.compId
  987. this.detailData.netWeight = this.netWeight
  988. this.detailData.inOutFlag = 1
  989. this.detailData.taskType = "出库任务"
  990. this.detailData.pcFlag = 0
  991. let title = ""
  992. if (num == 1) {
  993. this.detailData.statusFlag = 1
  994. this.detailData.backOffice = this.userInfo.userName
  995. this.detailData.backOfficeId = this.userInfo.id
  996. title = "暂存成功"
  997. } else if (num == 2) {
  998. this.detailData.statusFlag = 3
  999. this.detailData.backOffice = this.userInfo.userName
  1000. this.detailData.backOfficeId = this.userInfo.id
  1001. title = "提交成功"
  1002. }
  1003. let that = this
  1004. uni.showModal({
  1005. content: "确定提交出库信息?",
  1006. success(res) {
  1007. if (res.confirm) {
  1008. uni.showLoading({
  1009. title: "正在提交",
  1010. mask: true
  1011. })
  1012. that.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse',
  1013. that.detailData).then(res => {
  1014. console.log(res, "报异常")
  1015. if (res.data.code == 200) {
  1016. that.weightbills.carNo = that.detailData.carNo
  1017. that.weightbills.boxNo = that.detailData.boxNo
  1018. that.weightbills.boxNoOther = that.detailData.boxNoOther
  1019. that.weightbills.wingNumber = that.detailData.wingNumber
  1020. that.weightbills.wingNumberOther = that.detailData.wingNumberOther
  1021. that.weightbills.shipName = that.detailData.shipName
  1022. that.weightbills.shipNumber = that.detailData.shipNumber
  1023. that.weightbills.type = that.detailData.type
  1024. that.weightbills.grossWeight = that.detailData.grossWeight
  1025. that.weightbills.tare = that.detailData.tare
  1026. that.weightbills.netWeight = that.detailData.netWeight
  1027. that.weightbills.outType = that.detailData.outType
  1028. that.weightbills.backOffice = that.detailData.outType
  1029. var date = new Date()
  1030. that.weightbills.updateDate = date.getFullYear() + '-' + (date
  1031. .getMonth() + 1) + '-' + date.getDate() + ' ' + date
  1032. .getHours() + ':' + date.getMinutes() + ':' + date.getSeconds()
  1033. that.$api.msg(title)
  1034. that.isShowPrint = true
  1035. uni.setStorageSync("exWarehousing_print", that.weightbills)
  1036. // setTimeout(() => {
  1037. // uni.navigateBack()
  1038. // }, 1000)
  1039. } else {
  1040. that.$api.msg(res.data.message)
  1041. }
  1042. uni.hideLoading()
  1043. })
  1044. .catch(res => {
  1045. uni.hideLoading()
  1046. })
  1047. }
  1048. }
  1049. })
  1050. },
  1051. slectcontractNo() {
  1052. uni.navigateTo({
  1053. url: '/pages/erp/exWarehousing/selectContractNo?flag=' + 5
  1054. })
  1055. },
  1056. slectCarNo() {
  1057. uni.navigateTo({
  1058. url: '/pages/erp/exWarehousing/selectCarNo'
  1059. })
  1060. },
  1061. }
  1062. }
  1063. </script>
  1064. <style scoped lang="scss">
  1065. uni-page-body {
  1066. overflow: hidden;
  1067. }
  1068. .warp {
  1069. margin: 10rpx;
  1070. padding: 20rpx 20rpx 300rpx 20rpx;
  1071. .top {
  1072. display: flex;
  1073. margin-bottom: 20rpx;
  1074. align-items: center;
  1075. .top-left {
  1076. margin-right: 20rpx;
  1077. }
  1078. }
  1079. }
  1080. .content,
  1081. .content1,
  1082. .content2 {
  1083. border-radius: 20rpx;
  1084. background: white;
  1085. padding: 20rpx;
  1086. .title {
  1087. font-size: 28rpx;
  1088. font-weight: 600;
  1089. color: #333333;
  1090. }
  1091. .row {
  1092. display: flex;
  1093. justify-content: space-between;
  1094. border-bottom: 1px solid #EEEEEE;
  1095. padding: 21rpx 0;
  1096. .right,
  1097. input {
  1098. font-size: 28rpx;
  1099. color: #333333;
  1100. }
  1101. }
  1102. .row-bottom {
  1103. // border: 0;
  1104. .right-bottom {
  1105. width: 280rpx;
  1106. text-align: right;
  1107. }
  1108. }
  1109. }
  1110. .content1 {
  1111. margin-top: 20rpx;
  1112. }
  1113. .content2 {
  1114. margin-top: 10px;
  1115. // display: flex;
  1116. align-items: center;
  1117. .left {
  1118. margin-right: 20px;
  1119. }
  1120. }
  1121. .submit {
  1122. width: 40%;
  1123. background: #22C572;
  1124. border-radius: 10rpx;
  1125. }
  1126. .edit-btn {
  1127. background: #22C572;
  1128. width: 100rpx;
  1129. height: 50rpx;
  1130. margin: 0;
  1131. color: white;
  1132. }
  1133. .has-btn {
  1134. align-items: center;
  1135. }
  1136. .bottom-btn {
  1137. padding: 30rpx;
  1138. background: #FFFFFF;
  1139. width: 92%;
  1140. position: fixed;
  1141. bottom: 0rpx;
  1142. display: flex;
  1143. z-index: 9999;
  1144. }
  1145. .buns_item {
  1146. display: flex;
  1147. padding: 80rpx 0 50rpx 0;
  1148. justify-content: space-around;
  1149. }
  1150. .but_css {
  1151. background: #22C572;
  1152. width: 40%;
  1153. padding: 20rpx;
  1154. color: #fff;
  1155. text-align: center;
  1156. border-radius: 20rpx;
  1157. }
  1158. .carNo_but{
  1159. // padding: 2rpx 5rpx;
  1160. background: #19be6b;
  1161. line-height: 50rpx;
  1162. text-align: center;
  1163. width: 130rpx!important;
  1164. height: 50rpx;
  1165. color: #FFFFFF;
  1166. border-radius: 10rpx;
  1167. }
  1168. </style>