warehousing.vue 39 KB

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