improvedExWaehousingDetail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699
  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='slectcontractNo'>{{detailData.contractNo}}</view>
  11. </view>
  12. <view class="row">
  13. <view class="left">货名</view>
  14. <view class="right">{{detailData.goodsName ? detailData.goodsName : "选择合同,自动获取"}}
  15. </view>
  16. </view>
  17. <view class="row">
  18. <view class="left">类型</view>
  19. <view @click='show1=true'>{{detailData.type}}</view>
  20. <u-picker :range="typeList" range-key="type" @confirm='typePicker($event)' v-model="show1"
  21. mode="selector">
  22. <!-- <view class="">{{detailData.type}}</view> -->
  23. </u-picker>
  24. </view>
  25. <view class="row row-bottom">
  26. <view class="left">毛重(吨)</view>
  27. <input @input='calculate' v-model='detailData.grossWeight' class="right-bottom"
  28. placeholder="输入毛重"></input>
  29. </view>
  30. <view class="row row-bottom">
  31. <view class="left">皮重(吨)</view>
  32. <input @input='calculate' v-model='detailData.tare' class="right-bottom" placeholder="输入皮重"></input>
  33. </view>
  34. <view class="row row-bottom">
  35. <view class="left">净重(吨)</view>
  36. <input v-model='netWeight' disabled class="right-bottom" placeholder="不可编辑,自动计算"></input>
  37. </view>
  38. <view class="row row-bottom" v-if="detailData.type == '潮粮'">
  39. <view class="left">扣重比</view>
  40. <input v-model='detailData.buckleWeightRatio' class="right-bottom" placeholder="输入扣重比"
  41. @input="pureWeightCount"></input>
  42. </view>
  43. <view class="row row-bottom" v-if="detailData.type == '潮粮'">
  44. <view class="left">干粮水分(%)</view>
  45. <input v-model='detailData.solidGrainWater' class="right-bottom" placeholder="输入干粮水分占比"
  46. @input="pureWeightCount"></input>
  47. </view>
  48. <view class="row row-bottom" v-if="detailData.type == '潮粮'">
  49. <view class="left">潮粮水分(%)</view>
  50. <input v-model='detailData.tidalGrainWater' class="right-bottom" placeholder="输入潮粮水分占比"
  51. @input="pureWeightCount"></input>
  52. </view>
  53. <view class="row row-bottom" v-if="detailData.type == '潮粮'">
  54. <view class="left">纯重(吨)</view>
  55. <input v-model='detailData.pureWeight' class="right-bottom" placeholder="不可编辑,自动计算"></input>
  56. </view>
  57. <view class="row">
  58. <view class="left">品级</view>
  59. <view @click='show3=true'>{{detailData.grade}}</view>
  60. <u-picker :range="pjList" range-key="type" @confirm='pjPicker($event)' v-model="show3" mode="selector">
  61. </u-picker>
  62. </view>
  63. <view class="row">
  64. <view class="left">经办人</view>
  65. <view @click='show6=true'>{{detailData.agent}}</view>
  66. <u-picker :range="handlerList" range-key="staffName" @confirm='handlerPicker($event)' v-model="show6"
  67. mode="selector">
  68. </u-picker>
  69. </view>
  70. <view class="row">
  71. <view class="left">出库日期</view>
  72. <view @click='show7=true'>{{detailData.inOutDate}}</view>
  73. <u-picker v-model="show7" mode="time" @confirm='dateChange($event)' :params="params">
  74. </u-picker>
  75. </view>
  76. <view class="row">
  77. <view class="left">出库类型</view>
  78. <view @click='show5=true'>{{detailData.inOutType}}</view>
  79. <u-picker :range="warehousingTypeList" range-key="constValue" @confirm='warehousingTypePicker($event)'
  80. v-model="show5" mode="selector">
  81. </u-picker>
  82. </view>
  83. <view class="row row-bottom">
  84. <view class="left">车牌号</view>
  85. <input v-model='detailData.carNo' class="right-bottom" placeholder="请输入车牌号"></input>
  86. </view>
  87. </view>
  88. <view class="content2">
  89. <view class="left">上传磅单</view>
  90. <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1" :file-list="imgUrl"
  91. :size-type="['compressed']" @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
  92. @on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
  93. </view>
  94. <view class="content1">
  95. <view class="title">
  96. 质检数据(选填)
  97. </view>
  98. <view class="row row-bottom">
  99. <view class="left">质检员</view>
  100. <input v-model='detailData.warehouseInOutDetail.qualityInspector' class="right-bottom"
  101. placeholder="输入质检员姓名"></input>
  102. </view>
  103. <view class="row row-bottom">
  104. <view class="left">水分(%)</view>
  105. <input v-model='detailData.warehouseInOutDetail.waterContent' class="right-bottom"
  106. placeholder="输入水分占比"></input>
  107. </view>
  108. <view class="row row-bottom">
  109. <view class="left">容重(克/升)</view>
  110. <input v-model='detailData.warehouseInOutDetail.bulkDensity' class="right-bottom"
  111. placeholder="输入容重"></input>
  112. </view>
  113. <view class="row row-bottom">
  114. <view class="left">热损伤(%)</view>
  115. <input v-model='detailData.warehouseInOutDetail.jiaorenli' class="right-bottom"
  116. placeholder="输入热损伤占比"></input>
  117. </view>
  118. <view class="row row-bottom">
  119. <view class="left">杂质(%)</view>
  120. <input v-model='detailData.warehouseInOutDetail.impurity' class="right-bottom"
  121. placeholder="输入杂质占比"></input>
  122. </view>
  123. <view class="row row-bottom">
  124. <view class="left">霉变粒(%)</view>
  125. <input v-model='detailData.warehouseInOutDetail.mildewGrain' class="right-bottom"
  126. placeholder="输入霉变粒占比"></input>
  127. </view>
  128. <view class="row row-bottom">
  129. <view class="left">不完善粒(%)</view>
  130. <input v-model='detailData.warehouseInOutDetail.imperfectGrain' class="right-bottom"
  131. placeholder="输入不完善粒占比"></input>
  132. </view>
  133. </view>
  134. <u-toast ref="uToast" />
  135. <view class="bottom-btn">
  136. <u-button type="primary" class="submit" hover-class="none" @click="submit(1)">暂存</u-button>
  137. <u-button type="primary" class="submit" hover-class="none" @click="submit(2)">提交</u-button>
  138. </view>
  139. </view>
  140. </template>
  141. <script>
  142. import upload from '@/components/upload.vue';
  143. import helper from '@/common/helper.js';
  144. import {
  145. mapState
  146. } from 'vuex';
  147. export default {
  148. components: {
  149. upload
  150. },
  151. data() {
  152. return {
  153. show: false,
  154. show1: false,
  155. show2: false,
  156. show3: false,
  157. show4: false,
  158. show5: false,
  159. show6: false,
  160. show7: false,
  161. contractNoList: [{
  162. contractNo: ""
  163. }],
  164. typeList: [{
  165. type: "干粮"
  166. },
  167. {
  168. type: "潮粮"
  169. }
  170. ],
  171. pjList: [{
  172. type: "一等品"
  173. },
  174. {
  175. type: "二等品"
  176. },
  177. {
  178. type: "三等品"
  179. },
  180. {
  181. type: "等外"
  182. }
  183. ],
  184. handlerList: [{
  185. name: "张三"
  186. },
  187. {
  188. name: "二等"
  189. },
  190. {
  191. name: "三等"
  192. },
  193. {
  194. name: "等外"
  195. }
  196. ],
  197. warehousingTypeList: [],
  198. action: this.$uploadUrl,
  199. maxSize: 50 * 1024 * 1024, //限制文件大小 50M
  200. btnLoading: false, //防止重复点击
  201. isAdd: true,
  202. warehouseName: '',
  203. binNumber: '',
  204. detailData: {
  205. contractNo: "请选择合同编号或移库任务编号",
  206. type: "请选择类型",
  207. grade: "请输入品级",
  208. agent: "请选择经办人",
  209. inOutDate: "请选择出库日期",
  210. inOutType: "请选择出库类型",
  211. warehouseInOutDetail: {},
  212. gradeKey: "",
  213. },
  214. params: {
  215. year: true,
  216. month: true,
  217. day: true,
  218. },
  219. netWeight: "",
  220. imgUrl: [], //图片展示
  221. }
  222. },
  223. computed: {
  224. ...mapState(['hasLogin', 'userInfo'])
  225. },
  226. watch: {
  227. netWeight: function(v) {
  228. this.pureWeightCount()
  229. },
  230. },
  231. onLoad(options) {
  232. this.detailData = JSON.parse(options.data)
  233. this.netWeight = this.detailData.netWeight
  234. this.imgUrl.push({
  235. url:this.detailData.addressUrl.split(",")[0]
  236. })
  237. this.cangId = options.cangId
  238. },
  239. onShow() {
  240. this.binNumber = helper.erpWarehouse.binNumber
  241. this.warehouseName = helper.erpWarehouse.warehouseName
  242. this.detailData.goodsName = uni.getStorageSync('erpContractNo').goodsName;
  243. this.detailData.contractNo = uni.getStorageSync('erpContractNo').contractNo;
  244. this.detailData.goodsNameKey = uni.getStorageSync('erpContractNo').goodsNameKey;
  245. if (!this.detailData.contractNo) {
  246. this.detailData.contractNo = '请选择合同编号'
  247. }
  248. if (!this.detailData.goodsName) {
  249. this.detailData.goodsName = '货名'
  250. }
  251. //出库类型
  252. this.outWarehouse()
  253. //经办人
  254. this.handler()
  255. },
  256. methods: {
  257. //计算纯重
  258. pureWeightCount() {
  259. if (this.netWeight && this.detailData.buckleWeightRatio && this.detailData.solidGrainWater && this
  260. .detailData.tidalGrainWater) {
  261. // 纯重=净重x[100-(潮粮水分-干粮水分)x扣重比]/100
  262. this.detailData.pureWeight = 100 - (this.detailData.tidalGrainWater - this.detailData
  263. .solidGrainWater) * this.netWeight * this.detailData.buckleWeightRatio / 100
  264. this.detailData.pureWeight = this.detailData.pureWeight.toFixed(3)
  265. }
  266. },
  267. outWarehouse() {
  268. this.$api.doRequest('get', '/commonSysParameter/getInfo', {
  269. constId: 'CON6'
  270. }).then(res => {
  271. this.warehousingTypeList = res.data.data
  272. })
  273. },
  274. handler() {
  275. this.$api.doRequest('get', '/staff/query/getStaffListByCompIdAndWarehouseId', {
  276. compId: helper.erpWarehouse.compId,
  277. warehouseId: helper.erpWarehouse.warehouseId
  278. }).then(res => {
  279. this.handlerList = res.data.data
  280. })
  281. },
  282. contractNopicker(e) {
  283. },
  284. typePicker(e) {
  285. this.detailData.type = this.typeList[e].type
  286. },
  287. pjPicker(e) {
  288. this.detailData.gradeKey = e[0]
  289. this.detailData.grade = this.pjList[e].type
  290. },
  291. handlerPicker(e) {
  292. this.detailData.agentKey = e[0]
  293. this.detailData.agent = this.handlerList[e].staffName
  294. },
  295. dateChange(e) {
  296. this.detailData.inOutDate = e.year + "-" + e.month + "-" + e.day
  297. },
  298. warehousingTypePicker(e) {
  299. this.detailData.inOutType = this.warehousingTypeList[e].constValue
  300. },
  301. filterFileType(index, lists) {
  302. if (lists[index].fileType != 'jpg' && lists[index].fileType != 'png' && lists[index].fileType != 'gif') {
  303. lists.splice(index, 1);
  304. // 当前文件不支持
  305. uni.showModal({
  306. title: '暂不支持当前图片类型',
  307. showCancel: false
  308. });
  309. } else {
  310. this.isAdd = false;
  311. }
  312. },
  313. calculate() {
  314. if (this.detailData.grossWeight && this.detailData.tare) {
  315. this.netWeight = this.detailData.grossWeight - this.detailData.tare
  316. }
  317. },
  318. getImgUrl(res) {
  319. this.detailData.addressUrl = res
  320. console.log(res)
  321. console.log('------------res-----------')
  322. },
  323. onError(error) {
  324. alert(error)
  325. console.log('------------error-----------')
  326. console.log(error)
  327. },
  328. binNumberpicker(e) {
  329. this.detailData.binNumber = this.positionList[e[0]].binNumber
  330. },
  331. onProgress(e) {},
  332. onRemove(index) {},
  333. submit(num) {
  334. if (!this.detailData.contractNo) {
  335. this.$api.msg('合同编号不能为空')
  336. return
  337. }
  338. if (!this.detailData.goodsName) {
  339. this.$api.msg('货名不能为空')
  340. return
  341. }
  342. if (!this.detailData.grossWeight) {
  343. this.$api.msg('毛重不能为空')
  344. return
  345. }
  346. if (isNaN(this.detailData.grossWeight) ||
  347. (String(this.detailData.grossWeight).indexOf('.') != -1 &&
  348. String(this.detailData.grossWeight).length -
  349. (String(this.detailData.grossWeight).indexOf('.') + 1) >
  350. 1) ||
  351. this.detailData.grossWeight < 1 ||
  352. this.detailData.grossWeight > 100000
  353. ) {
  354. this.$api.msg('毛重输入错误!')
  355. return
  356. }
  357. if (!this.detailData.tare) {
  358. this.$api.msg('皮重不能为空')
  359. return
  360. }
  361. if (isNaN(this.detailData.tare) ||
  362. (String(this.detailData.tare).indexOf('.') != -1 &&
  363. String(this.detailData.tare).length -
  364. (String(this.detailData.tare).indexOf('.') + 1) >
  365. 1) ||
  366. this.detailData.tare < 1 ||
  367. this.detailData.tare > 100000
  368. ) {
  369. this.$api.msg('皮重输入错误!')
  370. return
  371. }
  372. if (this.detailData.tare > this.detailData.grossWeight) {
  373. this.$api.msg('皮重不能大于毛重')
  374. return
  375. }
  376. if (this.netWeight < 0) {
  377. this.$api.msg('净重不能小于0')
  378. return
  379. }
  380. if (this.detailData.type == "潮粮") {
  381. if (!this.detailData.buckleWeightRatio) {
  382. this.$api.msg('扣重比不能为空')
  383. return
  384. }
  385. if (isNaN(this.detailData.buckleWeightRatio) ||
  386. (String(this.detailData.buckleWeightRatio).indexOf('.') != -1 &&
  387. String(this.detailData.buckleWeightRatio).length -
  388. (String(this.detailData.buckleWeightRatio).indexOf('.') + 1) >
  389. 2) ||
  390. this.detailData.buckleWeightRatio < 0 ||
  391. this.detailData.buckleWeightRatio > 2
  392. ) {
  393. this.$api.msg('扣重比输入错误!')
  394. return
  395. }
  396. if (!this.detailData.solidGrainWater) {
  397. this.$api.msg('干粮水分不能为空')
  398. return
  399. }
  400. if (isNaN(this.detailData.solidGrainWater) ||
  401. (String(this.detailData.solidGrainWater).indexOf('.') != -1 &&
  402. String(this.detailData.solidGrainWater).length -
  403. (String(this.detailData.solidGrainWater).indexOf('.') + 1) >
  404. 1) ||
  405. this.detailData.solidGrainWater < 1 ||
  406. this.detailData.solidGrainWater > 40
  407. ) {
  408. this.$api.msg('干粮水分输入错误!')
  409. return
  410. }
  411. if (!this.detailData.tidalGrainWater) {
  412. this.$api.msg('潮粮水分不能为空')
  413. return
  414. }
  415. if (isNaN(this.detailData.tidalGrainWater) ||
  416. (String(this.detailData.tidalGrainWater).indexOf('.') != -1 &&
  417. String(this.detailData.tidalGrainWater).length -
  418. (String(this.detailData.tidalGrainWater).indexOf('.') + 1) >
  419. 1) ||
  420. this.detailData.tidalGrainWater < 1 ||
  421. this.detailData.tidalGrainWater > 40
  422. ) {
  423. this.$api.msg('潮粮水分输入错误!')
  424. return
  425. }
  426. if (this.detailData.tidalGrainWater < this.detailData.solidGrainWater) {
  427. this.$api.msg('潮粮水分输入错误!')
  428. return
  429. }
  430. if (!this.detailData.pureWeight) {
  431. this.$api.msg('纯重不能为空')
  432. return
  433. }
  434. }
  435. if (this.detailData.grade == "请输入品级") {
  436. this.$api.msg('品级不能为空')
  437. return
  438. }
  439. if (this.detailData.agent == "请选择经办人") {
  440. this.$api.msg('经办人不能为空')
  441. return
  442. }
  443. if (this.detailData.inOutDate == "请选择出库日期") {
  444. this.$api.msg('出库日期不能为空')
  445. return
  446. }
  447. if (this.detailData.inOutType == "请选择出库类型") {
  448. this.$api.msg('出库类型不能为空')
  449. return
  450. }
  451. if (!this.detailData.carNo) {
  452. this.$api.msg('车牌号不能为空')
  453. return
  454. }
  455. if (!this.detailData.addressUrl) {
  456. this.$api.msg('请上传磅单')
  457. return
  458. }
  459. if (this.detailData.warehouseInOutDetail.qualityInspector) {
  460. if (this.detailData.warehouseInOutDetail.qualityInspector < 2 || this.detailData.warehouseInOutDetail
  461. .qualityInspector > 10) {
  462. this.$api.msg('质检员姓名需要2-10个字')
  463. return
  464. }
  465. }
  466. if (this.detailData.warehouseInOutDetail.waterContent) {
  467. if (this.detailData.type == "潮粮" && this.detailData.warehouseInOutDetail.waterContent != this
  468. .detailData.tidalGrainWater) {
  469. this.$api.msg('水分占比与潮粮水分不一致')
  470. return
  471. }
  472. if (this.detailData.type == "干粮") {
  473. if (this.detailData.warehouseInOutDetail.waterContent < 0 || this.detailData.warehouseInOutDetail
  474. .waterContent > 40) {
  475. this.$api.msg('热损伤占比输入错误')
  476. return
  477. }
  478. if (String(this.detailData.warehouseInOutDetail.waterContent).indexOf('.') != -1 && String(this
  479. .detailData.warehouseInOutDetail.jiaorenli).length - (String(
  480. this.detailData.warehouseInOutDetail.waterContent).indexOf('.') + 1) > 1) {
  481. this.$api.msg('热损伤占比输入错误')
  482. return
  483. }
  484. }
  485. }
  486. if (this.detailData.warehouseInOutDetail.bulkDensity) {
  487. if (this.detailData.warehouseInOutDetail.bulkDensity < 500 || this.detailData.warehouseInOutDetail
  488. .bulkDensity > 1000) {
  489. this.$api.msg('容重输入错误')
  490. return
  491. }
  492. if (String(this.detailData.warehouseInOutDetail.bulkDensity).indexOf('.') != -1 && String(this
  493. .detailData.warehouseInOutDetail.bulkDensity).length - (
  494. String(this.detailData.warehouseInOutDetail.bulkDensity).indexOf('.') + 1) > 0) {
  495. this.$api.msg('容重输入错误')
  496. return
  497. }
  498. }
  499. if (this.detailData.warehouseInOutDetail.jiaorenli) {
  500. if (this.detailData.warehouseInOutDetail.jiaorenli < 0 || this.detailData.warehouseInOutDetail
  501. .jiaorenli > 40) {
  502. this.$api.msg('热损伤占比输入错误')
  503. return
  504. }
  505. if (String(this.detailData.warehouseInOutDetail.jiaorenli).indexOf('.') != -1 && String(this.detailData
  506. .warehouseInOutDetail.jiaorenli).length - (String(
  507. this.detailData.warehouseInOutDetail.jiaorenli).indexOf('.') + 1) > 1) {
  508. this.$api.msg('热损伤占比输入错误')
  509. return
  510. }
  511. }
  512. if (this.detailData.warehouseInOutDetail.impurity) {
  513. if (this.detailData.warehouseInOutDetail.impurity < 0 || this.detailData.warehouseInOutDetail
  514. .impurity > 40) {
  515. this.$api.msg('杂质占比输入错误')
  516. return
  517. }
  518. if (String(this.detailData.warehouseInOutDetail.impurity).indexOf('.') != -1 && String(this.detailData
  519. .warehouseInOutDetail.impurity).length - (String(
  520. this.detailData.warehouseInOutDetail.impurity).indexOf('.') + 1) > 1) {
  521. this.$api.msg('杂质占比输入错误')
  522. return
  523. }
  524. }
  525. if (this.detailData.warehouseInOutDetail.mildewGrain) {
  526. if (this.detailData.warehouseInOutDetail.mildewGrain < 0 || this.detailData.warehouseInOutDetail
  527. .mildewGrain > 40) {
  528. this.$api.msg('霉变粒占比输入错误')
  529. return
  530. }
  531. if (String(this.detailData.warehouseInOutDetail.mildewGrain).indexOf('.') != -1 && String(this.detailData
  532. .warehouseInOutDetail.mildewGrain).length - (String(
  533. this.detailData.warehouseInOutDetail.mildewGrain).indexOf('.') + 1) > 1) {
  534. this.$api.msg('霉变粒占比输入错误')
  535. return
  536. }
  537. }
  538. if (this.detailData.warehouseInOutDetail.imperfectGrain) {
  539. if (this.detailData.warehouseInOutDetail.imperfectGrain < 0 || this.detailData.warehouseInOutDetail
  540. .imperfectGrain > 40) {
  541. this.$api.msg('不完整粒占比输入错误')
  542. return
  543. }
  544. if (String(this.detailData.warehouseInOutDetail.imperfectGrain).indexOf('.') != -1 && String(this.detailData
  545. .warehouseInOutDetail.imperfectGrain).length - (String(
  546. this.detailData.warehouseInOutDetail.imperfectGrain).indexOf('.') + 1) > 1) {
  547. this.$api.msg('不完整粒占比输入错误')
  548. return
  549. }
  550. }
  551. this.detailData.baseId = helper.erpWarehouse.warehouseId
  552. this.detailData.positionId = helper.erpWarehouse.positionId
  553. this.detailData.warehouseName = helper.erpWarehouse.warehouseName
  554. this.detailData.binNumber = this.binNumber
  555. this.detailData.goodsNameKey = uni.getStorageSync('erpContractNo').goodsNameKey;
  556. this.detailData.compId = helper.erpWarehouse.compId
  557. this.detailData.netWeight = this.netWeight
  558. this.detailData.inOutFlag = 1
  559. this.detailData.taskType = "出库任务"
  560. this.detailData.pcFlag = 0
  561. let title = ""
  562. if (num == 1) {
  563. this.detailData.statusFlag = 1
  564. this.detailData.backOffice = this.userInfo.userName
  565. this.detailData.backOfficeId = this.userInfo.id
  566. title = "暂存成功"
  567. } else if (num == 2) {
  568. this.detailData.statusFlag = 3
  569. title = "提交成功"
  570. }
  571. let that = this
  572. uni.showModal({
  573. content: "确定提交出库信息?",
  574. success(res) {
  575. if (res.confirm) {
  576. that.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse',
  577. that.detailData).then(res => {
  578. if (res.data.code == 200) {
  579. that.$api.msg(title)
  580. uni.navigateBack()
  581. }
  582. })
  583. }
  584. }
  585. })
  586. },
  587. slectcontractNo() {
  588. uni.navigateTo({
  589. url: '/pages/erp/warehousing/selectContractNo?flag=' + 5
  590. })
  591. },
  592. slectCarNo() {
  593. uni.navigateTo({
  594. url: '/pages/erp/exWarehousing/selectCarNo'
  595. })
  596. },
  597. }
  598. }
  599. </script>
  600. <style scoped lang="scss">
  601. uni-page-body {
  602. overflow: hidden;
  603. }
  604. .warp {
  605. margin: 10rpx;
  606. padding: 20rpx 20rpx 140rpx 20rpx;
  607. .top {
  608. display: flex;
  609. margin-bottom: 20rpx;
  610. .top-left {
  611. margin-right: 20rpx;
  612. }
  613. }
  614. }
  615. .content,
  616. .content1,
  617. .content2 {
  618. border-radius: 20rpx;
  619. background: white;
  620. padding: 20rpx;
  621. .title {
  622. font-size: 28rpx;
  623. font-weight: 600;
  624. color: #333333;
  625. }
  626. .row {
  627. display: flex;
  628. justify-content: space-between;
  629. border-bottom: 1px solid #EEEEEE;
  630. padding: 21rpx 0;
  631. .right,
  632. input {
  633. font-size: 28rpx;
  634. color: #333333;
  635. }
  636. }
  637. .row-bottom {
  638. // border: 0;
  639. .right-bottom {
  640. width: 300rpx;
  641. text-align: right;
  642. }
  643. }
  644. }
  645. .content1 {
  646. margin-top: 20rpx;
  647. }
  648. .content2 {
  649. margin-top: 10px;
  650. // display: flex;
  651. align-items: center;
  652. .left {
  653. margin-right: 20px;
  654. }
  655. }
  656. .submit {
  657. width: 40%;
  658. background: #22C572;
  659. border-radius: 10rpx;
  660. }
  661. .edit-btn {
  662. background: #22C572;
  663. width: 100rpx;
  664. height: 50rpx;
  665. margin: 0;
  666. color: white;
  667. }
  668. .has-btn {
  669. align-items: center;
  670. }
  671. .bottom-btn {
  672. width: 92%;
  673. position: fixed;
  674. bottom: 40rpx;
  675. display: flex;
  676. z-index: 2;
  677. }
  678. </style>