切换导航条
此项目
正在载入...
登录
朱兆平
/
vue_cli
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
shenhailong
5 years ago
提交
c104a0c4a325eaf845d1c29695df2692be8301b3
1 个父辈
f78f1721
主单新增分单问题
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
22 行增加
和
16 行删除
src/views/nmms/ExitPre.vue
src/views/nmms/ExitPre.vue
查看文件 @
c104a0c
...
...
@@ -63,8 +63,10 @@
</el-table-column>
<el-table-column label="运单号" width="120" align="center">
<template slot-scope="scope">
<p class="tableInline">{{scope.row.awba}}</p>
<p class="tableInline" v-if="scope.row.awbh !==null">{{scope.row.awbh}}</p>
<p class="tableInline" v-if="scope.row.awbh !==''">{{scope.row.awbh}}</p>
<p class="tableInline" v-else>{{scope.row.awba}}</p>
</template>
</el-table-column>
<el-table-column label="运单件数/重量" width="100" align="center">
...
...
@@ -119,13 +121,13 @@
<el-table-column prop="receipt" label="回执信息" align="center">
<template slot-scope="scope">
{{scope.row.ext5}}
<el-button size="mini" @click="handleSend(scope.row)">收发明细</el-button>
</template>
</el-table-column>
<el-table-column label="操作" width="450">
<template slot-scope="scope">
<el-button size="mini" @click="handleSend(scope.row)">收发明细</el-button>
<el-button size="mini" type="success" @click="handleEdit(scope.row)" >编辑</el-button>
<el-button size="mini" type="success" v-if="scope.row.awbh ===
null
"
<el-button size="mini" type="success" v-if="scope.row.awbh ===
''
"
@click="handleAddAwbh(scope.row)">新增分单
</el-button>
<el-button size="mini" type="primary" @click="handleAwbSend(scope.row)"
...
...
@@ -167,7 +169,7 @@
<el-input :disabled="dialogStatus !== 'create'" v-model="awba" clearable/>
</el-form-item>
</el-col>
<el-col :span="7.5" v-if="
dialog
Status === 'addAwbh'">
<el-col :span="7.5" v-if="
fen
Status === 'addAwbh'">
<el-form-item label="分单号" prop="awbh">
<el-input v-model="awbh" clearable/>
</el-form-item>
...
...
@@ -179,17 +181,17 @@
<el-row>
<el-col :span="7.5">
<el-form-item label="承运人" prop="carrier">
<el-input v-model="carrier" :disabled="
dialog
Status === 'addAwbh'" clearable/>
<el-input v-model="carrier" :disabled="
fen
Status === 'addAwbh'" clearable/>
</el-form-item>
</el-col>
<el-col :span="7.5">
<el-form-item label="航班号" prop="flightno">
<el-input v-model="flightno" :disabled="
dialog
Status === 'addAwbh'" clearable/>
<el-input v-model="flightno" :disabled="
fen
Status === 'addAwbh'" clearable/>
</el-form-item>
</el-col>
<el-col :span="7.5">
<el-form-item label="航班日期" prop="flightdate">
<el-date-picker :disabled="
dialog
Status === 'addAwbh'"
<el-date-picker :disabled="
fen
Status === 'addAwbh'"
value-format="yyyy-MM-dd"
v-model="preModel.flightdate" align="right"
type="date" placeholder="请输入航班日期" clearable/>
...
...
@@ -210,7 +212,7 @@
:loading="airportLoading">
<el-option v-for="item in airportCode"
:key="item.airportid" :label="item.airportid"
:value="item.airportid" :disabled="
dialog
Status === 'addAwbh'">
:value="item.airportid" :disabled="
fen
Status === 'addAwbh'">
<span style="float: left">{{ item.airportdescchn }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.airportid }}</span>
</el-option>
...
...
@@ -223,7 +225,7 @@
v-model="destinationstation" :remote-method="remoteMethodAirport">
<el-option v-for="item in airportCode"
:key="item.airportid" :label="item.airportid"
:value="item.airportid" :disabled="
dialog
Status === 'addAwbh'" >
:value="item.airportid" :disabled="
fen
Status === 'addAwbh'" >
<span style="float: left">{{ item.airportdescchn }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.airportid }}</span>
</el-option>
...
...
@@ -294,12 +296,12 @@
</el-col>
</el-row>
<el-row>
<el-col :span="7.5" v-if="
dialog
Status !=='addAwbh'">
<el-col :span="7.5" v-if="
fen
Status !=='addAwbh'">
<el-form-item label="预配件数" prop="piece">
<el-input v-model="preModel.piece" clearable/>
</el-form-item>
</el-col>
<el-col :span="8" v-if="
dialog
Status ==='addAwbh'">
<el-col :span="8" v-if="
fen
Status ==='addAwbh'">
<el-col :span="13">
<el-form-item label="预配件数" prop="piece">
<el-input v-model="preModel.piece" clearable/>
...
...
@@ -309,12 +311,12 @@
<span>剩余件数:{{awbPiece}}</span>
</el-col>
</el-col>
<el-col :span="7.5" v-if="
dialog
Status !=='addAwbh'">
<el-col :span="7.5" v-if="
fen
Status !=='addAwbh'">
<el-form-item label="预配重量" prop="weight">
<el-input v-model="preModel.weight" clearable/>
</el-form-item>
</el-col>
<el-col :span="8" v-if="
dialog
Status ==='addAwbh'">
<el-col :span="8" v-if="
fen
Status ==='addAwbh'">
<el-col :span="13">
<el-form-item label="预配重量" prop="weight">
<el-input v-model="preModel.weight" clearable/>
...
...
@@ -338,7 +340,7 @@
<el-form-item label="关区代码" prop="customcode">
<el-select v-model="preModel.customcode" placeholder="请选择关区代码"
filterable clearable :remote-method="remoteMethodCustomCode" :loading="customLoading" remote
:disabled="
dialog
Status === 'addAwbh'">
:disabled="
fen
Status === 'addAwbh'">
<el-option v-for="item in customCodeList" :key="item.customcode" :label="item.customcode"
:value="item.customcode">
<span style="float: left">{{ item.customcode }}</span>
...
...
@@ -741,6 +743,7 @@
customCodeList: [],
airportCode:[],
dialogStatus: undefined,
fenStatus:undefined,
dialogTableVisible: false,
dialogDeleteVisble: false,
listLoading: false,
...
...
@@ -784,6 +787,7 @@
'awbinfo.pcs': [{required: true, trigger: 'change', validator: validatorNums}],
},
preModel: {
uuid: undefined,
awba: undefined,
awbh: undefined,
customcode: undefined,
...
...
@@ -1483,6 +1487,7 @@
handleAddAwbh(row) {
this.restModel()
const template = Object.assign({}, row) // copy obj
this.preModel.uuid = template.uuid
this.preModel.awba = template.awba
this.preModel.flightdate = template.flightdate
this.preModel.flightno = template.flightno
...
...
@@ -1520,7 +1525,8 @@
this.awbWeight = res.data.dataList[0].weight - residueWeight
}
})
this.dialogStatus = 'addAwbh'
this.dialogStatus = 'create'
this.fenStatus = 'addAwbh'
this.dialogFormVisible = true
this.$nextTick(() => {
this.$refs.preFormData.clearValidate()
...
...
请
注册
或
登录
后发表评论