exWarehousing.vue 40 KB

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