|
@@ -73,7 +73,7 @@
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
<ws-form-item label="等级" span="1" prop="grade">
|
|
<ws-form-item label="等级" span="1" prop="grade">
|
|
<ws-select v-model="inspect.grade" placeholder="请输入等级" class="typeselect"
|
|
<ws-select v-model="inspect.grade" placeholder="请输入等级" class="typeselect"
|
|
- :disabled="disabled">
|
|
|
|
|
|
+ :disabled="disabled" @change="waterContentChange">
|
|
<ws-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
|
|
<ws-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
|
|
:value="item.constValue" />
|
|
:value="item.constValue" />
|
|
</ws-select>
|
|
</ws-select>
|
|
@@ -84,7 +84,7 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="水分(%)" span="1" prop="waterContent">
|
|
<ws-form-item label="水分(%)" span="1" prop="waterContent">
|
|
<ws-input v-model="inspect.waterContent" placeholder="请输入水分占比" maxlength="100" size="small"
|
|
<ws-input v-model="inspect.waterContent" placeholder="请输入水分占比" maxlength="100" size="small"
|
|
- @change="waterContentChange" :disabled="disabled" />
|
|
|
|
|
|
+ @change="waterContentChange('water')" :disabled="disabled" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
|
|
<ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
|
|
<ws-input v-model="inspect.mildewGrain" placeholder="请输入霉变粒占比" maxlength="100" size="small"
|
|
<ws-input v-model="inspect.mildewGrain" placeholder="请输入霉变粒占比" maxlength="100" size="small"
|
|
@@ -626,14 +626,7 @@
|
|
if (this.inspect.goodsName == this.purchasePriceList[i].goodsName) {
|
|
if (this.inspect.goodsName == this.purchasePriceList[i].goodsName) {
|
|
if ((this.purchasePriceList[i].saleLimit - response/1000 < 50 || count > 0)&&this.tipFlag) {
|
|
if ((this.purchasePriceList[i].saleLimit - response/1000 < 50 || count > 0)&&this.tipFlag) {
|
|
this.tipFlag = false
|
|
this.tipFlag = false
|
|
- this.$alert('当前客户已累计销售我司' +this.inspect.goodsName + (response/1000).toFixed(2) +'吨,最高可售' +this.purchasePriceList[i].saleLimit +'吨。',
|
|
|
|
- '提示',
|
|
|
|
- {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- callback: (action) => {
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
- )
|
|
|
|
|
|
+ this.$message('当前客户已累计销售我司' +this.inspect.goodsName + (response/1000).toFixed(2) +'吨,最高可售' +this.purchasePriceList[i].saleLimit +'吨。');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -641,8 +634,8 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
- waterContentChange() {
|
|
|
|
- if (this.inspect.goodsName) {
|
|
|
|
|
|
+ waterContentChange(type) {
|
|
|
|
+ if (this.inspect.goodsName&&type!='water') {
|
|
for (var i = 0; i < this.purchasePriceList.length; i++) {
|
|
for (var i = 0; i < this.purchasePriceList.length; i++) {
|
|
if (this.purchasePriceList[i].goodsName == this.inspect.goodsName) {
|
|
if (this.purchasePriceList[i].goodsName == this.inspect.goodsName) {
|
|
this.$set(this.inspect,'buckleWeightRatio',this.purchasePriceList[i].deductWeight)
|
|
this.$set(this.inspect,'buckleWeightRatio',this.purchasePriceList[i].deductWeight)
|
|
@@ -701,20 +694,12 @@
|
|
if (this.inspect.goodsName == this.purchasePriceList[i].goodsName) {
|
|
if (this.inspect.goodsName == this.purchasePriceList[i].goodsName) {
|
|
if ((this.purchasePriceList[i].saleLimit - response/1000 < 50 || count > 0 )&&this.tipFlag) {
|
|
if ((this.purchasePriceList[i].saleLimit - response/1000 < 50 || count > 0 )&&this.tipFlag) {
|
|
this.tipFlag = false
|
|
this.tipFlag = false
|
|
- this.$alert('当前客户已累计销售我司' +this.inspect.goodsName + (response/1000).toFixed(2) +'吨,最高可售' +this.purchasePriceList[i].saleLimit +'吨。',
|
|
|
|
- '提示',
|
|
|
|
- {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- callback: (action) => {
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
- )
|
|
|
|
|
|
+ this.$message('当前客户已累计销售我司' +this.inspect.goodsName + (response/1000).toFixed(2) +'吨,最高可售' +this.purchasePriceList[i].saleLimit +'吨。');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|