...
|
...
|
@@ -129,17 +129,17 @@ |
|
|
@click="handleAddAwbh(scope.row)">新增分单
|
|
|
</el-button>
|
|
|
<el-button size="mini" type="primary" @click="handleAwbSend(scope.row)"
|
|
|
:disabled="scope.row.status === '23'">发舱单报
|
|
|
:disabled="addStatus(scope.row.status)">发舱单报
|
|
|
</el-button>
|
|
|
<p></p>
|
|
|
<el-button size="mini" type="primary" @click="handleAwbEdit(scope.row)"
|
|
|
:disabled="scope.row.status ==='25'">发修改报</el-button>
|
|
|
:disabled="editStatus(scope.row.status)">发修改报</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)"
|
|
|
:disabled="scope.row.status ==='24'">发删除报</el-button>
|
|
|
:disabled="deleteStatus(scope.row.status)">发删除报</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</tree-table>
|
...
|
...
|
@@ -1269,6 +1269,15 @@ |
|
|
})
|
|
|
})
|
|
|
},
|
|
|
// 发送舱单报 按钮自灰
|
|
|
addStatus(status){
|
|
|
if(status=='23' || status=='24'||status=='25'){
|
|
|
return true;
|
|
|
}else if(status=='22' ) {
|
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
|
|
|
// >>>>>>>>>>>>>>>>更新运单数据<<<<<<<<<<<<<<<<<<
|
|
|
handleEdit(row) {
|
|
|
this.preModel = Object.assign({}, row)
|
...
|
...
|
@@ -1306,6 +1315,16 @@ |
|
|
this.$refs.preFormData.clearValidate()
|
|
|
})
|
|
|
},
|
|
|
|
|
|
// 发送修改报自灰
|
|
|
editStatus(status){
|
|
|
if(status=='23' || status=='24'||status=='25'){
|
|
|
return true;
|
|
|
}else if(status=='25' ) {
|
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
|
|
|
sendUpdate(){
|
|
|
this.respModel.reason = this.preModel.reason
|
|
|
this.respModel.contactName = this.preModel.contactName
|
...
|
...
|
@@ -1370,6 +1389,15 @@ |
|
|
this.$refs.sendDeleteForm.clearValidate()
|
|
|
})
|
|
|
},
|
|
|
|
|
|
// 发送删除报按钮自灰
|
|
|
deleteStatus(status){
|
|
|
if(status=='23' || status=='24'||status=='25'){
|
|
|
return true;
|
|
|
}else if(status=='24' ) {
|
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
sendDelete() {
|
|
|
this.$refs.sendDeleteForm.validate(valid =>{
|
|
|
if(valid){
|
...
|
...
|
|