|
@@ -66,8 +66,7 @@
|
|
<view class="row">
|
|
<view class="row">
|
|
<view class="left">品级</view>
|
|
<view class="left">品级</view>
|
|
<view @click='show3=true'>{{detailData.grade}}</view>
|
|
<view @click='show3=true'>{{detailData.grade}}</view>
|
|
- <u-picker :range="pjList" range-key="grade" @confirm='pjPicker($event)' v-model="show3"
|
|
|
|
- mode="selector">
|
|
|
|
|
|
+ <u-picker :range="pjList" range-key="grade" @confirm='pjPicker($event)' v-model="show3" mode="selector">
|
|
</u-picker>
|
|
</u-picker>
|
|
</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="row">
|
|
@@ -100,7 +99,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="row row-bottom has-btn">
|
|
<view class="row row-bottom has-btn">
|
|
<view class="left">成本(元/吨)</view>
|
|
<view class="left">成本(元/吨)</view>
|
|
- <input v-if="detailData.inOutType=='采购入库'" v-model='detailData.cost' class="right-bottom"
|
|
|
|
|
|
+ <input v-if="detailData.inOutType=='采购入库'" v-model='detailData.unitContractPrice' class="right-bottom"
|
|
placeholder="自动获取" :disabled="isEditCB"></input>
|
|
placeholder="自动获取" :disabled="isEditCB"></input>
|
|
<input v-if="detailData.inOutType!='采购入库'" v-model='detailData.cost' class="right-bottom"
|
|
<input v-if="detailData.inOutType!='采购入库'" v-model='detailData.cost' class="right-bottom"
|
|
placeholder="自动获取" :disabled="isEditCB"></input>
|
|
placeholder="自动获取" :disabled="isEditCB"></input>
|
|
@@ -191,9 +190,9 @@
|
|
year: true,
|
|
year: true,
|
|
month: true,
|
|
month: true,
|
|
day: true,
|
|
day: true,
|
|
- hour: true,
|
|
|
|
- minute: true,
|
|
|
|
- second: true
|
|
|
|
|
|
+ // hour: true,
|
|
|
|
+ // minute: true,
|
|
|
|
+ // second: true
|
|
},
|
|
},
|
|
isEditCB: 'false',
|
|
isEditCB: 'false',
|
|
isEditYF: 'false',
|
|
isEditYF: 'false',
|
|
@@ -274,7 +273,10 @@
|
|
this.detailData.goodsName = _data.goodsName;
|
|
this.detailData.goodsName = _data.goodsName;
|
|
this.detailData.contractNo = _data.contractNo;
|
|
this.detailData.contractNo = _data.contractNo;
|
|
this.detailData.goodsNameKey = _data.goodsNameKey;
|
|
this.detailData.goodsNameKey = _data.goodsNameKey;
|
|
- this.detailData.cost = _data.unitContractPrice
|
|
|
|
|
|
+ this.detailData.unitContractPrice = _data.unitContractPrice
|
|
|
|
+ let _day = new Date();
|
|
|
|
+ _day.setTime(_day.getTime());
|
|
|
|
+ this.detailData.inOutDate = _day.getFullYear() + "-" + (_day.getMonth() + 1) + "-" + _day.getDate();
|
|
if (_data.inOutType == '采购入库') {
|
|
if (_data.inOutType == '采购入库') {
|
|
this.detailData.freight = 0
|
|
this.detailData.freight = 0
|
|
}
|
|
}
|
|
@@ -337,7 +339,7 @@
|
|
pjPicker(e) {
|
|
pjPicker(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
this.detailData.gradeKey = e[0]
|
|
this.detailData.gradeKey = e[0]
|
|
- this.detailData.grade = this.pjList[e].grade
|
|
|
|
|
|
+ this.detailData.grade = this.pjList[e].grade
|
|
},
|
|
},
|
|
handlerPicker(e) {
|
|
handlerPicker(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
@@ -345,8 +347,8 @@
|
|
},
|
|
},
|
|
dateChange(e) {
|
|
dateChange(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
- this.detailData.inOutDate = e.year + "-" + e.month + "-" + e.day + " " + e.hour + ":" + e.minute + ":" + e.second
|
|
|
|
- // this.inOutDate1 = e.year + "-" + e.month + "-" + e.day + " " + e.hour + ":" + e.minute
|
|
|
|
|
|
+ this.detailData.inOutDate = e.year + "-" + e.month + "-" + e.day
|
|
|
|
+ this.inOutDate1 = e.year + "-" + e.month + "-" + e.day + "-" + e.hour + "-" + e.minute + "-" + e.second
|
|
},
|
|
},
|
|
warehousingTypePicker(e) {
|
|
warehousingTypePicker(e) {
|
|
this.detailData.inOutType = this.warehousingTypeList[e].constValue
|
|
this.detailData.inOutType = this.warehousingTypeList[e].constValue
|
|
@@ -419,6 +421,7 @@
|
|
this.isEditYF = false
|
|
this.isEditYF = false
|
|
},
|
|
},
|
|
submit(num) {
|
|
submit(num) {
|
|
|
|
+ debugger
|
|
if (isNaN(this.detailData.grossWeight) ||
|
|
if (isNaN(this.detailData.grossWeight) ||
|
|
(String(this.detailData.grossWeight).indexOf('.') != -1 &&
|
|
(String(this.detailData.grossWeight).indexOf('.') != -1 &&
|
|
String(this.detailData.grossWeight).length -
|
|
String(this.detailData.grossWeight).length -
|
|
@@ -445,7 +448,7 @@
|
|
let title = ""
|
|
let title = ""
|
|
if (num == 1) {
|
|
if (num == 1) {
|
|
this.detailData.statusFlag = 1
|
|
this.detailData.statusFlag = 1
|
|
- // this.detailData.inOutDate = this.inOutDate1
|
|
|
|
|
|
+ this.detailData.inOutDate = this.inOutDate1
|
|
title = "暂存成功"
|
|
title = "暂存成功"
|
|
} else if (num == 2) {
|
|
} else if (num == 2) {
|
|
this.detailData.statusFlag = 3
|
|
this.detailData.statusFlag = 3
|
|
@@ -491,6 +494,9 @@
|
|
padding: 20rpx 20rpx 140rpx 20rpx;
|
|
padding: 20rpx 20rpx 140rpx 20rpx;
|
|
|
|
|
|
.top {
|
|
.top {
|
|
|
|
+ border-radius: 20rpx;
|
|
|
|
+ background: white;
|
|
|
|
+ padding: 20rpx;
|
|
display: flex;
|
|
display: flex;
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
align-items: center;
|
|
align-items: center;
|