|
@@ -136,7 +136,7 @@
|
|
placeholder="请输入提单号"
|
|
placeholder="请输入提单号"
|
|
v-Space
|
|
v-Space
|
|
>
|
|
>
|
|
- <el-button slot="append" icon="el-icon-search" :disabled="!form.fMblno" @click="getData"></el-button>
|
|
|
|
|
|
+ <el-button slot="append" icon="el-icon-search" :disabled="!form.fMblno || browseStatus" @click="getData"></el-button>
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -319,7 +319,8 @@
|
|
:disabled="
|
|
:disabled="
|
|
browseStatus || current !== before || form.warehouseStatus > 3
|
|
browseStatus || current !== before || form.warehouseStatus > 3
|
|
"
|
|
"
|
|
- @change="tfGrossweight"
|
|
|
|
|
|
+ @input="tfGrossweight"
|
|
|
|
+ @change="changePlangrossweight"
|
|
>
|
|
>
|
|
<template slot="append">{{ tfGrossweightnum }}吨</template>
|
|
<template slot="append">{{ tfGrossweightnum }}吨</template>
|
|
</el-input>
|
|
</el-input>
|
|
@@ -333,11 +334,11 @@
|
|
maxlength="16"
|
|
maxlength="16"
|
|
v-input-limit="2"
|
|
v-input-limit="2"
|
|
placeholder="计划净重"
|
|
placeholder="计划净重"
|
|
- @input="changePlannetWeight"
|
|
|
|
|
|
+ @change="changePlannetWeight"
|
|
:disabled="
|
|
:disabled="
|
|
browseStatus || current !== before || form.warehouseStatus > 3
|
|
browseStatus || current !== before || form.warehouseStatus > 3
|
|
"
|
|
"
|
|
- @change="tfNetweight"
|
|
|
|
|
|
+ @input="tfNetweight"
|
|
>
|
|
>
|
|
<template slot="append">{{ tfNetweightnum }}吨</template>
|
|
<template slot="append">{{ tfNetweightnum }}吨</template>
|
|
</el-input>
|
|
</el-input>
|
|
@@ -9388,8 +9389,21 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
changePlannetWeight() {
|
|
changePlannetWeight() {
|
|
- if (this.bring == '0') {
|
|
|
|
|
|
+ if (this.form.fPlangrossweight) {
|
|
|
|
+ return
|
|
|
|
+ } else {
|
|
this.$set(this.form, 'fPlangrossweight', this.form.fPlannetweight)
|
|
this.$set(this.form, 'fPlangrossweight', this.form.fPlannetweight)
|
|
|
|
+ this.tfGrossweightnum = (Number(this.form.fPlangrossweight) / 1000).toFixed(4);
|
|
|
|
+ }
|
|
|
|
+ if (this.bring == '0') {
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ changePlangrossweight() {
|
|
|
|
+ if (this.form.fPlannetweight) {
|
|
|
|
+ return
|
|
|
|
+ } else {
|
|
|
|
+ this.$set(this.form, 'fPlannetweight', this.form.fPlangrossweight)
|
|
|
|
+ this.tfNetweightnum = (Number(this.form.fPlannetweight) / 1000).toFixed(4);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 费用明细撤销请核
|
|
// 费用明细撤销请核
|
|
@@ -9524,24 +9538,24 @@ export default {
|
|
type: "warning"
|
|
type: "warning"
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
const data = await this.fMblnoSearch();
|
|
const data = await this.fMblnoSearch();
|
|
- this.$nextTick(() => {
|
|
|
|
- if (!data) {
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- this.$set(this.form, 'fPlanqty', data.fPlanqty)
|
|
|
|
- this.$set(this.form, 'fPlangrossweight', data.fPlangrossweight)
|
|
|
|
- this.$set(this.form, 'fPlannetweight', data.fPlannetweight)
|
|
|
|
- })//PASUQ046992263
|
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ if (!data) {
|
|
|
|
+ return this.$message.error('该提单号未查到数据')
|
|
|
|
+ }
|
|
|
|
+ this.$set(this.form, 'fPlanqty', data.fPlanqty)
|
|
|
|
+ this.$set(this.form, 'fPlangrossweight', data.fPlangrossweight)
|
|
|
|
+ this.$set(this.form, 'fPlannetweight', data.fPlannetweight)
|
|
|
|
+ })//PASUQ046992263
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.$message.info('已取消')
|
|
this.$message.info('已取消')
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
const data = await this.fMblnoSearch();
|
|
const data = await this.fMblnoSearch();
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- if (!data) {
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- this.$set(this.form, 'fPlanqty', data.fPlanqty)
|
|
|
|
|
|
+ if (!data) {
|
|
|
|
+ return this.$message.error('该提单号未查到数据')
|
|
|
|
+ }
|
|
|
|
+ this.$set(this.form, 'fPlanqty', data.fPlanqty)
|
|
this.$set(this.form, 'fPlangrossweight', data.fPlangrossweight)
|
|
this.$set(this.form, 'fPlangrossweight', data.fPlangrossweight)
|
|
this.$set(this.form, 'fPlannetweight', data.fPlannetweight)
|
|
this.$set(this.form, 'fPlannetweight', data.fPlannetweight)
|
|
})
|
|
})
|