|
@@ -80,8 +80,11 @@
|
|
|
</u-picker>
|
|
|
</view>
|
|
|
<view class="row row-bottom">
|
|
|
+ <!-- <view class="left">车牌号</view>
|
|
|
+ <input v-model='detailData.carNo' class="right-bottom" placeholder="请输入车牌号"></input> -->
|
|
|
<view class="left">车牌号</view>
|
|
|
- <input v-model='detailData.carNo' class="right-bottom" placeholder="请输入车牌号"></input>
|
|
|
+ <input v-if="!isPC" v-model='detailData.carNo' class="right-bottom" placeholder="请输入车牌号"></input>
|
|
|
+ <view @click='slectCarNo' v-if="isPC">{{detailData.carNo}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="content2">
|
|
@@ -158,9 +161,7 @@
|
|
|
show5: false,
|
|
|
show6: false,
|
|
|
show7: false,
|
|
|
- contractNoList: [{
|
|
|
- contractNo: ""
|
|
|
- }],
|
|
|
+ isPC:true,
|
|
|
typeList: [{
|
|
|
type: "干粮"
|
|
|
},
|
|
@@ -219,16 +220,18 @@
|
|
|
onLoad(options) {
|
|
|
this.detailData = JSON.parse(options.data)
|
|
|
this.netWeight = this.detailData.netWeight
|
|
|
- this.imgUrl.push({
|
|
|
+ if(this.detailData.addressUrl){
|
|
|
+ this.imgUrl.push({
|
|
|
url: this.detailData.addressUrl.split(",")[0]
|
|
|
})
|
|
|
+ }
|
|
|
this.cangId = options.cangId
|
|
|
},
|
|
|
onShow() {
|
|
|
this.binNumber = helper.erpWarehouse.binNumber
|
|
|
this.warehouseName = helper.erpWarehouse.warehouseName
|
|
|
- this.detailData.goodsName = uni.getStorageSync('erpContractNo').goodsName;
|
|
|
- this.detailData.contractNo = uni.getStorageSync('erpContractNo').contractNo;
|
|
|
+ // this.detailData.goodsName = uni.getStorageSync('erpContractNo').goodsName;
|
|
|
+ // this.detailData.contractNo = uni.getStorageSync('erpContractNo').contractNo;
|
|
|
this.detailData.goodsNameKey = uni.getStorageSync('erpContractNo').goodsNameKey;
|
|
|
if (!this.detailData.contractNo) {
|
|
|
this.detailData.contractNo = '请选择合同编号'
|
|
@@ -236,6 +239,18 @@
|
|
|
if (!this.detailData.goodsName) {
|
|
|
this.detailData.goodsName = '货名'
|
|
|
}
|
|
|
+ let _data = uni.getStorageSync('erpContractNoCK') == '' ? {} : uni.getStorageSync('erpContractNoCK')
|
|
|
+ if (!_data.tranCarInfoList) {
|
|
|
+ this.isPC = false
|
|
|
+ _data.tranCarInfoList = []
|
|
|
+ } else {
|
|
|
+ this.isPC = true
|
|
|
+ if (uni.getStorageSync('ContractNoCarCK')) {
|
|
|
+ this.detailData.carNo = uni.getStorageSync('ContractNoCarCK')
|
|
|
+ } else {
|
|
|
+ this.detailData.carNo = _data.tranCarInfoList[0].carNo
|
|
|
+ }
|
|
|
+ }
|
|
|
//出库类型
|
|
|
this.outWarehouse()
|
|
|
//经办人
|
|
@@ -328,8 +343,6 @@
|
|
|
this.$api.msg('货名不能为空')
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
if (!this.detailData.grossWeight) {
|
|
|
this.$api.msg('毛重不能为空')
|
|
|
return
|
|
@@ -379,7 +392,7 @@
|
|
|
(String(this.detailData.buckleWeightRatio).indexOf('.') + 1) >
|
|
|
2) ||
|
|
|
this.detailData.buckleWeightRatio < 0 ||
|
|
|
- this.detailData.buckleWeightRatio > 2
|
|
|
+ this.detailData.buckleWeightRatio > 10
|
|
|
) {
|
|
|
this.$api.msg('扣重比输入错误!')
|
|
|
return
|
|
@@ -467,16 +480,16 @@
|
|
|
if (this.detailData.type == "干粮") {
|
|
|
if (this.detailData.warehouseInOutDetail.waterContent < 0 || this.detailData.warehouseInOutDetail
|
|
|
.waterContent > 40) {
|
|
|
- this.$api.msg('热损伤占比输入错误')
|
|
|
- return
|
|
|
- }
|
|
|
- if (String(this.detailData.warehouseInOutDetail.waterContent).indexOf('.') != -1 && String(this
|
|
|
- .detailData.warehouseInOutDetail.jiaorenli).length - (String(
|
|
|
- this.detailData.warehouseInOutDetail.waterContent).indexOf('.') + 1) > 1) {
|
|
|
- this.$api.msg('热损伤占比输入错误')
|
|
|
+ this.$api.msg('水分占比输入错误')
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
+ if (String(this.detailData.warehouseInOutDetail.waterContent).indexOf('.') != -1 && String(this
|
|
|
+ .detailData.warehouseInOutDetail.waterContent).length - (String(
|
|
|
+ this.detailData.warehouseInOutDetail.waterContent).indexOf('.') + 1) > 1) {
|
|
|
+ this.$api.msg('水分占比输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
if (this.detailData.warehouseInOutDetail.bulkDensity) {
|
|
|
if (this.detailData.warehouseInOutDetail.bulkDensity < 500 || this.detailData.warehouseInOutDetail
|
|
@@ -687,10 +700,12 @@
|
|
|
}
|
|
|
|
|
|
.bottom-btn {
|
|
|
+ padding: 30rpx;
|
|
|
+ background: #FFFFFF;
|
|
|
width: 92%;
|
|
|
position: fixed;
|
|
|
- bottom: 40rpx;
|
|
|
+ bottom: 0rpx;
|
|
|
display: flex;
|
|
|
- z-index: 2;
|
|
|
+ z-index: 9999;
|
|
|
}
|
|
|
</style>
|