|
@@ -74,7 +74,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="surplusWeight" class="table_td" label="剩余重量(吨)"></el-table-column>
|
|
<el-table-column prop="surplusWeight" class="table_td" label="剩余重量(吨)"></el-table-column>
|
|
<el-table-column prop="avgCost" class="table_td" label="平均成本(吨)"></el-table-column>
|
|
<el-table-column prop="avgCost" class="table_td" label="平均成本(吨)"></el-table-column>
|
|
- <el-table-column prop="issuingTime" class="table_td" label="入库单日期"></el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="issuingTimeOther" class="table_td" label="入库单日期"></el-table-column>
|
|
<el-table-column prop="outWeight" class="table_td" label="预计出库重量(吨)">
|
|
<el-table-column prop="outWeight" class="table_td" label="预计出库重量(吨)">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-input @input='outweightchange' v-model="scope.row.estimateOutWarehouseWeight" placeholder="输入本次出库重量"></el-input>
|
|
<el-input @input='outweightchange' v-model="scope.row.estimateOutWarehouseWeight" placeholder="输入本次出库重量"></el-input>
|
|
@@ -387,31 +387,31 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
submit(){
|
|
submit(){
|
|
- for (let i = 0; i < this.multipleSelection.length; i++) {
|
|
|
|
- if(!this.multipleSelection[i].estimateOutWarehouseWeight){
|
|
|
|
- this.$message({
|
|
|
|
- message: '预计出库重量不能为空',
|
|
|
|
- type: 'error'
|
|
|
|
- });
|
|
|
|
- return
|
|
|
|
|
|
+ if(this.multipleSelection.length>0){
|
|
|
|
+ for (let i = 0; i < this.multipleSelection.length; i++) {
|
|
|
|
+ if(!this.multipleSelection[i].estimateOutWarehouseWeight){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '预计出库重量不能为空',
|
|
|
|
+ type: 'error'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ if(this.multipleSelection[i].estimateOutWarehouseWeight>this.multipleSelection[i].surplusWeight){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '预计出库重量不能超过剩余重量',
|
|
|
|
+ type: 'error'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(this.multipleSelection[i].estimateOutWarehouseWeight.indexOf('.')!=-1&&this.multipleSelection[i].estimateOutWarehouseWeight.substring(this.multipleSelection[i].estimateOutWarehouseWeight.indexOf('.')+1, this.multipleSelection[i].estimateOutWarehouseWeight.length).length>3){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '预计出库重量输入错误',
|
|
|
|
+ type: 'error'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- if(this.multipleSelection[i].estimateOutWarehouseWeight>this.multipleSelection[i].surplusWeight){
|
|
|
|
- this.$message({
|
|
|
|
- message: '预计出库重量不能超过剩余重量',
|
|
|
|
- type: 'error'
|
|
|
|
- });
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.multipleSelection[i].estimateOutWarehouseWeight.indexOf('.')!=-1&&this.multipleSelection[i].estimateOutWarehouseWeight.substring(this.multipleSelection[i].estimateOutWarehouseWeight.indexOf('.')+1, this.multipleSelection[i].estimateOutWarehouseWeight.length).length>3){
|
|
|
|
- this.$message({
|
|
|
|
- message: '预计出库重量输入错误',
|
|
|
|
- type: 'error'
|
|
|
|
- });
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
var that=this
|
|
var that=this
|
|
this.$confirm(`确定提交货源信息?`, {
|
|
this.$confirm(`确定提交货源信息?`, {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -437,6 +437,12 @@
|
|
// // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
// // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
// })
|
|
// })
|
|
})
|
|
})
|
|
|
|
+ }else{
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '未勾选货源',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
returnsales(){
|
|
returnsales(){
|
|
this.$router.go(-1)
|
|
this.$router.go(-1)
|