|
@@ -270,6 +270,48 @@
|
|
|
</view>
|
|
|
<button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button>
|
|
|
</view>
|
|
|
+ <view v-show="gridList.type == '潮粮'&&utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==1"
|
|
|
+ class="c-row">
|
|
|
+ <view class="title">水分增价(元/公斤)</view>
|
|
|
+ <view class="con-list">
|
|
|
+ <input v-model='gridList.waterPriceIncrease' :disabled='disabled1' @input='deductionchange'
|
|
|
+ placeholder="自动获取,不可编辑" name="input" type="digit"></input>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view v-show="gridList.type == '潮粮'&&utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==1"
|
|
|
+ class="c-row">
|
|
|
+ <view class="title">水分扣价(元/公斤)</view>
|
|
|
+ <view class="con-list">
|
|
|
+ <input v-model='gridList.waterPriceDeduction' :disabled='disabled1' @input='deductionchange'
|
|
|
+ placeholder="自动获取,不可编辑" name="input" type="digit"></input>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view v-show="gridList.type == '潮粮'&&utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==1"
|
|
|
+ class="c-row">
|
|
|
+ <view class="title">质量增价(元/公斤)</view>
|
|
|
+ <view class="con-list">
|
|
|
+ <input v-model='gridList.qualityPriceIncrease' :disabled='disabled1' @input='deductionchange'
|
|
|
+ placeholder="自动获取,不可编辑" name="input" type="digit"></input>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view v-show="gridList.type == '潮粮'&&utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==1"
|
|
|
+ class="c-row">
|
|
|
+ <view class="title">质量扣价(元/公斤)</view>
|
|
|
+ <view class="con-list">
|
|
|
+ <input v-model='gridList.qualityPriceDeduction' :disabled='disabled1' @input='deductionchange'
|
|
|
+ placeholder="自动获取,不可编辑" name="input" type="digit"></input>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view v-show="gridList.type == '潮粮'&&utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==1"
|
|
|
+ class="c-row">
|
|
|
+ <view class="title">净重单价(元/公斤)</view>
|
|
|
+ <view class="con-list">
|
|
|
+ <input v-model='gridList.tidalGrainPrice' :disabled='disabled1' @blur='inputprice'
|
|
|
+ placeholder="自动获取,不可编辑" name="input" type="digit"></input>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view v-show="gridList.type == '潮粮'&&utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==1"
|
|
|
class="c-row">
|
|
|
<view class="title">净重单价(元/公斤)</view>
|
|
@@ -474,6 +516,10 @@
|
|
|
customerPhone: '',
|
|
|
bulkDensity: "",
|
|
|
imperfectGrain: "",
|
|
|
+ waterPriceIncrease:0,
|
|
|
+ waterPriceDeduction:0,
|
|
|
+ qualityPriceIncrease:0,
|
|
|
+ qualityPriceDeduction:0,
|
|
|
waterContent: "",
|
|
|
jiaorenli: "",
|
|
|
impurity: "",
|
|
@@ -576,6 +622,7 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade: '',
|
|
|
+
|
|
|
// inOutDate: new Date().toISOString().slice(0, 10),
|
|
|
netWeight: 0,
|
|
|
pureWeight: 0,
|
|
@@ -836,6 +883,11 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ deductionchange(){
|
|
|
+ if(this.gridList.tidalGrainPrice&&this.gridList.waterPriceIncreas&&this.gridList.waterPriceDeduction&&this.gridList.qualityPriceIncrease&&this.gridList.qualityPriceDeduction){
|
|
|
+ this.gridList.tidalGrainPrice=this.gridList.tidalGrainPrice-this.gridList.waterPriceIncrease-this.gridList.waterPriceDeduction-this.gridList.qualityPriceIncrease-this.gridList.qualityPriceDeduction
|
|
|
+ }
|
|
|
+ },
|
|
|
carNopicker(e){
|
|
|
this.gridList.carNumber=this.tranCarInfoList[e[0]].carNo
|
|
|
for (let i = 0; i < this.tranCarInfoList.length; i++) {
|
|
@@ -1306,11 +1358,26 @@
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
+ if (this.gridList.waterPriceIncrease>10||this.gridList.waterPriceIncrease<0) {
|
|
|
+ this.$api.msg('水分增价输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.gridList.waterPriceDeduction>10||this.gridList.waterPriceDeduction<0) {
|
|
|
+ this.$api.msg('水分扣价输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.gridList.qualityPriceIncrease>10||this.gridList.qualityPriceIncrease<0) {
|
|
|
+ this.$api.msg('质量增价输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.gridList.qualityPriceDeduction>10||this.gridList.qualityPriceDeduction<0) {
|
|
|
+ this.$api.msg('质量扣价输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
if (!this.gridList.type) {
|
|
|
this.$api.msg('类型不能为空')
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
if (this.value == false) {
|
|
|
if (!this.gridList.grade) {
|
|
|
this.$api.msg('等级不能为空')
|