...
|
...
|
@@ -124,20 +124,22 @@ |
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="450">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="success" @click="handleEdit(scope.row)" :disabled="scope.row.status !=='22'">编辑</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"
|
|
|
@click="handleAddAwbh(scope.row)">新增分单
|
|
|
</el-button>
|
|
|
<el-button size="mini" type="primary" @click="handleAwbSend(scope.row)"
|
|
|
:disabled="scope.row.status !== '22'">发舱单报
|
|
|
:disabled="scope.row.status === '23'">发舱单报
|
|
|
</el-button>
|
|
|
<p></p>
|
|
|
<el-button size="mini" type="primary" @click="handleAwbEdit(scope.row)">发修改报</el-button>
|
|
|
<el-button size="mini" type="primary" @click="handleAwbEdit(scope.row)"
|
|
|
:disabled="scope.row.status ==='25'">发修改报</el-button>
|
|
|
<el-button size="mini" type="danger" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单</el-button>
|
|
|
<el-button size="mini" type="warning" @click="handleAwbStatus(scope.row)"
|
|
|
:disabled="scope.row.status === '22'">更改状态
|
|
|
</el-button>
|
|
|
<el-button size="mini" type="danger" @click="handleSendDelete(scope.row)">发删除报</el-button>
|
|
|
<el-button size="mini" type="danger" @click="handleSendDelete(scope.row)"
|
|
|
:disabled="scope.row.status ==='24'">发删除报</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</tree-table>
|
...
|
...
|
@@ -552,7 +554,7 @@ |
|
|
<!--</el-form-item>-->
|
|
|
<!--</el-col>-->
|
|
|
</el-row>
|
|
|
<div v-show="dialogStatus === 'sendUpdate'">
|
|
|
<div v-if="dialogStatus === 'sendUpdate'">
|
|
|
<div class="grid-content content">
|
|
|
运单信息
|
|
|
</div>
|
...
|
...
|
@@ -585,7 +587,7 @@ |
|
|
</el-dialog>
|
|
|
<el-dialog title="收发明细" :visible.sync="dialogTableVisible">
|
|
|
<el-table :data="detailData" border>
|
|
|
<el-table-column label="操作时间" width="150">
|
|
|
<el-table-column label="操作时间" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.busdate}}
|
|
|
</template>
|
...
|
...
|
@@ -623,26 +625,26 @@ |
|
|
</el-table>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="删除原因" :visible.sync="dialogDeleteVisble" width="30%">
|
|
|
<el-form ref="sendDeleteForm" :model="respModel" :rules="sendDeleteRules" label-width="120px"
|
|
|
style="margin-right:50px;">
|
|
|
<el-form-item label="删除原因" prop="reason">
|
|
|
<el-input v-model="respModel.reason" placeholder="删除原因"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="删除操作人" prop="contactName">
|
|
|
<el-input v-model="respModel.contactName" placeholder="操作人姓名"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="操作人Tel" prop="contactTel">
|
|
|
<el-input v-model="respModel.contactTel" placeholder="删除操作人联系方式"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="备注">
|
|
|
<el-input v-model="respModel.content" type="textarea"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogDeleteVisble = false">取消</el-button>
|
|
|
<el-button type="primary" @click="sendDelete()">发送</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<el-form ref="sendDeleteForm" :model="respModel" :rules="sendDeleteRules" label-width="120px"
|
|
|
style="margin-right:50px;">
|
|
|
<el-form-item label="删除原因" prop="reason">
|
|
|
<el-input v-model="respModel.reason" placeholder="删除原因"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="删除操作人" prop="contactName">
|
|
|
<el-input v-model="respModel.contactName" placeholder="操作人姓名"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="操作人Tel" prop="contactTel">
|
|
|
<el-input v-model="respModel.contactTel" placeholder="删除操作人联系方式"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="备注">
|
|
|
<el-input v-model="respModel.content" type="textarea"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogDeleteVisble = false">取消</el-button>
|
|
|
<el-button type="primary" @click="sendDelete()">发送</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
...
|
...
|
@@ -1252,8 +1254,10 @@ |
|
|
confirmButtonText: '发送',
|
|
|
cancelButtonText: '取消'
|
|
|
}).then(() => {
|
|
|
if (row.awbh === null) {
|
|
|
row.awbh = ''
|
|
|
}
|
|
|
sendCreateMt2201(row).then(res => {
|
|
|
console.log(res)
|
|
|
if (res.data.count > 0) {
|
|
|
Message.success(res.data.respMessage)
|
|
|
this.getList()
|
...
|
...
|
@@ -1304,14 +1308,28 @@ |
|
|
this.respModel.reason = this.preModel.reason
|
|
|
this.respModel.contactName = this.preModel.contactName
|
|
|
this.respModel.contactTel = this.preModel.contactTel
|
|
|
const map = {
|
|
|
'mt2201': this.preModel,
|
|
|
'reason' : this.preModel.reason,
|
|
|
'contactName':this.preModel.contactName,
|
|
|
'contactTel': this.preModel.contactTel,
|
|
|
}
|
|
|
//
|
|
|
delete this.preModel._expanded
|
|
|
delete this.preModel._level
|
|
|
delete this.preModel._marginLeft
|
|
|
delete this.preModel._show
|
|
|
delete this.preModel._width
|
|
|
|
|
|
const reason = this.preModel.reason
|
|
|
const contactName = this.preModel.contactName
|
|
|
const contactTel = this.preModel.contactTel
|
|
|
|
|
|
this.$refs.preFormData.validate(valid =>{
|
|
|
if(valid){
|
|
|
delete this.preModel.reason
|
|
|
delete this.preModel.contactName
|
|
|
delete this.preModel.contactTel
|
|
|
const map = {
|
|
|
'mt2201': this.preModel,
|
|
|
'reason' : reason,
|
|
|
'contactName': contactName,
|
|
|
'contactTel': contactTel,
|
|
|
}
|
|
|
sendUpdateMt2201(map).then(res =>{
|
|
|
if(res.data.count >0){
|
|
|
Message.success(res.data.respMessage)
|
...
|
...
|
@@ -1328,7 +1346,7 @@ |
|
|
// >>>>>>>>>>>>>>>>发送删除报<<<<<<<<<<<<<<<<<<
|
|
|
handleSendDelete(row) {
|
|
|
this.respModel = {
|
|
|
uuid: undefined,
|
|
|
carrier: undefined,
|
|
|
reason: undefined,
|
|
|
contactName: undefined,
|
|
|
contactTel: undefined,
|
...
|
...
|
@@ -1341,11 +1359,11 @@ |
|
|
}
|
|
|
this.dialogDeleteVisble = true
|
|
|
this.respModel.awba = row.awba
|
|
|
this.respModel.flightNo = row.carrier + row.flightno
|
|
|
this.respModel.flightNo = row.flightno
|
|
|
this.respModel.customCode = row.customcode
|
|
|
this.respModel.awbh = row.awbh
|
|
|
this.respModel.flightDate = row.flightdate
|
|
|
this.respModel.uuid = row.uuid
|
|
|
this.respModel.carrier = row.carrier
|
|
|
this.$nextTick(()=>{
|
|
|
this.$refs.sendDeleteForm.clearValidate()
|
|
|
})
|
...
|
...
|
@@ -1399,27 +1417,28 @@ |
|
|
},
|
|
|
// >>>>>>>>>>>>>>>>更改运单状态<<<<<<<<<<<<<<<<<<
|
|
|
handleAwbStatus(row) {
|
|
|
delete row.parent
|
|
|
delete row.children
|
|
|
this.$confirm("是否发送更改状态", "确认消息", {
|
|
|
distinguishCancelAndClose: true,
|
|
|
confirmButtonText: '确认更改',
|
|
|
cancelButtonText: '取消更改'
|
|
|
}).then(() => {
|
|
|
updateStatus(row).then(res => {
|
|
|
if (res.data.count > 0) {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: '当前运单状态已更改'
|
|
|
})
|
|
|
this.getList()
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: 'error',
|
|
|
message: '状态更改失败,请稍后重试'
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
if (row.status!==22){
|
|
|
row.status =22;
|
|
|
}
|
|
|
// updateStatus(row).then(res => {
|
|
|
// if (res.data.count > 0) {
|
|
|
// this.$message({
|
|
|
// type: 'success',
|
|
|
// message: '当前运单状态已更改'
|
|
|
// })
|
|
|
// this.getList()
|
|
|
// } else {
|
|
|
// this.$message({
|
|
|
// type: 'error',
|
|
|
// message: '状态更改失败,请稍后重试'
|
|
|
// })
|
|
|
// }
|
|
|
// })
|
|
|
|
|
|
}).catch(action => {
|
|
|
this.$message({
|
...
|
...
|
|