|
@@ -396,7 +396,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="fCntrweight" label="单箱重量(吨)" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input v-model="scope.row.fCntrweight" :disabled="scope.row.fManual == 0 || modify"/>
|
|
|
+ <el-input v-model="scope.row.fCntrweight" :disabled="scope.row.fManual == 0 || modify" @input="cntrWeight"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="fGoodsid" label="货名" align="center">
|
|
@@ -1358,7 +1358,21 @@ export default {
|
|
|
// this.name()
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
+ cntrWeight(res){
|
|
|
+ if (res < 40 && res > 0){
|
|
|
+ console.log("1111");
|
|
|
+ return
|
|
|
+ }else if( res == '' || res == null){
|
|
|
+ console.log("222")
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ showClose: true,
|
|
|
+ message: '单箱重量应在0-40吨之间',
|
|
|
+ type: 'error',
|
|
|
+ offset:90
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
//获取客户名称下拉
|
|
|
nameRemoteMethod(){
|
|
|
let queryParams = { pageNum: 1 }
|