exWarehousing.vue 40 KB

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