Commit dfaeab9c authored by liuzeheng's avatar liuzeheng

空运放入品名字体标红

parent 918dc24d
......@@ -438,6 +438,11 @@
<span class="mr-10">{{ $t('数量(个)') }}:{{ putin.quantity || 0 }},</span>
<span class="mr-10">{{ $t('入仓方数') }}:{{ putin.volume || 0 }}m³, </span>
<span class="mr-10">{{ $t('入仓重量') }}:{{ putin.weight || 0 }}kg</span>
<span style="margin-left: 250px;color: #ff3430;">{{ $t('剩余收费方数') }}:{{ leftData.chargeVolume || 0 }}m³</span>
<span style="margin-left: 10px;color: #ff3430;">{{ $t('剩余收费重量') }}:{{ leftData.chargeWeight || 0 }}kg</span>
<span style="margin-left: 5px;color: #ff3430;" v-if="orderLeftData">{{ $t('剩余订单货值') }}:{{ orderLeftData.splitResidueWorth || 0 }}元</span>
</div>
<el-form-item :label="$t('收费方数')" prop="chargeVolume">
<el-input-number v-model="shopForm.chargeVolume" controls-position="right"></el-input-number>
......@@ -1065,6 +1070,28 @@ export default {
if(this.putin.num > this.leftData.num){
return this.$message.error(this.$t("放入箱数不能大于可拆箱数"));
}
//放入数据 收费方数不能小于入仓方数
if(this.shopForm.chargeVolume < this.putin.volume){
return this.$message.error(this.$t("收费方数<入仓方数,请参考剩余收费方数并修改"));
}
//当收费方数大于剩余收费方数
if(this.shopForm.chargeVolume > this.leftData.chargeVolume){
return this.$message.error(this.$t("收费方数>剩余收费方数,请参考剩余收费方数并修改"));
}
//当收费重量小于入仓重量
if(this.shopForm.chargeWeight < this.putin.weight){
return this.$message.error(this.$t("收费重量<入仓重量,请参考剩余收费重量并修改"));
}
//当收费重量大于剩余收费重量
if(this.shopForm.chargeWeight > this.leftData.chargeWeight){
return this.$message.error(this.$t("收费重量>剩余收费重量,请参考剩余收费重量并修改"));
}
//放入货值 要大于0
if(this.shopForm.worth <=0){
return this.$message.error(this.$t("订单货值必须大于0,请参考剩余订单货值并修改"));
}
this.shopForm.specsRecordVOList.forEach(item => {
item.boxGauge = `${item.boxGauge1}*${item.boxGauge2}*${item.boxGauge3}`
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment