exWarehousing.vue 41 KB

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