jinhui.wang

数据状态修正,文本修正

......@@ -201,6 +201,7 @@ export default {
//日期选择变化
dateChange(val) {
this.routeList = []
this.formData.route = null
if (this.formData.fltNo && this.formData.fltNo != null && this.formData.fltNo != '') {
if (this.formData.fltDate && this.formData.fltDate != null && this.formData.fltDate != '') {
let obj = {
......
......@@ -775,6 +775,7 @@ export default {
// this.form.highLowPriceFlg = this.form.highLowPriceFlg === 1 ? true : false;
//是否预审
// this.form.isNeedRequired = this.form.isNeedRequired === 1 ? true : false;
this.ishighPriceWeightPercent = this.form.highLowPriceFlg === 1 ? false : true
// 计算高低价可配
// this.LowHighAvailable();
} else {
......
......@@ -140,11 +140,17 @@ export default {
},
//提交
submit() {
let obj = {}
let obj = {
goodsList: []
}
obj.goodsStation = this.formData.goodsStation
this.formData.goodsList = this.formData.goodsList.replace(/;/g, ";")
if (this.formData.goodsList != null && this.formData.goodsList != '') {
obj.goodsList = this.formData.goodsList.split(';')
this.formData.goodsList.split(';').forEach(item => {
if (item != null && item != '') {
obj.goodsList.push(item)
}
})
}
this.$refs['addForm'].validate(val => {
if (val) {
......
......@@ -9,7 +9,8 @@
</el-input>
</el-form-item>
<el-form-item label="航班号" prop="flightList">
<el-input type="textarea" v-model="flightList" rows="4" maxlength="125" placeholder="请输入航班号,多个用“;”隔开">
<el-input type="textarea" v-model="flightList" rows="4" maxlength="125"
placeholder="请输入航班号,多个用“;”隔开">
</el-input>
</el-form-item>
</el-form>
......@@ -62,11 +63,17 @@ export default {
methods: {
//提交
submit() {
let obj = {}
let obj = {
flightList: []
}
obj.goodsStation = this.formData.goodsStation
if (this.formData.flightList != null && this.formData.flightList != '') {
this.formData.flightList = this.formData.flightList.toUpperCase()
obj.flightList = this.formData.flightList.split(';')
this.formData.flightList.split(';').forEach(item => {
if (item != null && item != '') {
obj.flightList.push(item)
}
})
}
this.$refs['addForm'].validate(val => {
if (val) {
......
......@@ -65,13 +65,13 @@ export default {
ids: [],
fltNo: undefined,
fltDate: undefined,
route: undefined,
route: null,
overweight: false,
},
cargoHeader: [
{ name: "口岸代码", value: "portName", width: "" },
{ name: "运单号", value: "waybillNo", width: "" },
{ name: "货物状态", value: "statusName" , width: ""},
{ name: "货物状态", value: "statusName", width: "" },
{ name: "站点", value: "siteName", width: "" },
{ name: "申报类型", value: "typeName", width: "" },
{ name: "URSA", value: "ursa", width: "" },
......@@ -79,8 +79,8 @@ export default {
{ name: "件数", value: "qty", width: "" },
{ name: "ACCS原航班号", value: "fltNoAccs", width: "120" },
{ name: "ACCS原航班日期", value: "fltDateAccs", width: "130" },
{ name: "品名描述", value: "nameDescription" , width: ""},
{ name: "是否自动", value: "cargoRulesStatus" , width: ""},
{ name: "品名描述", value: "nameDescription", width: "" },
{ name: "是否自动", value: "cargoRulesStatus", width: "" },
{ name: "创建人", value: "createUserName", width: "" },
{ name: "创建时间", value: "createTime", width: "" },
],
......@@ -201,6 +201,7 @@ export default {
//日期选择变化
dateChange(val) {
this.routeList = []
this.formData.route = null
if (this.formData.fltNo && this.formData.fltNo != null && this.formData.fltNo != '') {
if (this.formData.fltDate && this.formData.fltDate != null && this.formData.fltDate != '') {
let obj = {
......