...
|
...
|
@@ -32,7 +32,9 @@ |
|
|
<div class="grid-content">
|
|
|
<el-col :span="4">
|
|
|
<div class="grid-content">
|
|
|
<el-input v-model="tidyQuery.awba" placeholder="请输入主单号" clearable></el-input>
|
|
|
<el-input v-model="tidyQuery.awba" placeholder="请输入主单号" clearable>
|
|
|
<template slot="prepend">主单号</template>
|
|
|
</el-input>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<div class="grid-content el-btn">
|
...
|
...
|
@@ -62,27 +64,38 @@ |
|
|
</el-table-column>
|
|
|
<el-table-column label="运单号" width="150" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{scope.row.awba}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="分单号" width="120" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{scope.row.awbh}}</span>
|
|
|
<a type="text" style="color: #409eff;text-decoration: underline" class="tableInline" @click="handleEdit(scope.row)" v-if="scope.row.awbh !==''">{{scope.row.awbh}}</a>
|
|
|
<a type="text" style="color: #409eff;text-decoration: underline" class="tableInline" @click="handleEdit(scope.row)" v-else>{{scope.row.awba}}</a>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column label="分单号" width="120" align="center">-->
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
<!-- <span>{{scope.row.awbh}}</span>-->
|
|
|
<!-- </template>-->
|
|
|
<!-- </el-table-column>-->
|
|
|
<!-- <el-table-column label="运单件数/重量" width="100" align="center">-->
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
<!-- <span>{{scope.row.awbpiece}} / {{scope.row.awbweight}}</span>-->
|
|
|
<!-- </template>-->
|
|
|
<!-- </el-table-column>-->
|
|
|
<el-table-column label="理货件数/重量" width="100" align="center">
|
|
|
<el-table-column label="理货件数" width="100" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{scope.row.piece}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="理货重量" width="100" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{scope.row.weight}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="装载开始时间" width="160" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{scope.row.piece}} / {{scope.row.weight}}</span>
|
|
|
<span>{{scope.row.starttime}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="装载开始/结束时间" width="260" align="center">
|
|
|
<el-table-column label="装载结束时间" width="160" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{scope.row.starttime}} - {{scope.row.endtime}}</span>
|
|
|
<span>{{scope.row.endtime}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" width="100" align="center">
|
...
|
...
|
@@ -117,7 +130,7 @@ |
|
|
<el-table-column prop="operation" label="操作" width="420px" align="center">
|
|
|
<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" @click="handleEdit(scope.row)">编辑</el-button>-->
|
|
|
<el-button size="mini" type="primary" @click="handleAwbSend(scope.row)"
|
|
|
:disabled="addStatus(scope.row.status)">发送出港理货报</el-button>
|
|
|
|
...
|
...
|
@@ -366,6 +379,7 @@ |
|
|
import {validAwb, validAlphabets, validAlphabetsAndNum, validAlphabetsAndSpanceKey,validatorNum} from "@/utils/validate"
|
|
|
import {getCustomCode,getAirportCode} from "@/api/country";
|
|
|
import util from "@/common/js/util.js";
|
|
|
import {loginedUserInfo} from "../../api/user";
|
|
|
|
|
|
export default {
|
|
|
name: "ExitTidy",
|
...
|
...
|
@@ -437,6 +451,8 @@ |
|
|
destinationstation: [{required: true, message:"目的站不能为空"}, { trigger: 'blur', validator: validatorAlphabets}],
|
|
|
weight: [{required: true, message:"重量不能为空"}, { trigger: 'change', validator: validatorNums}],
|
|
|
piece: [{required: true, message:"件数不能为空"}, { trigger: 'change', validator: validatorNums}],
|
|
|
customcode: [{required: true, message:"关区不能为空",trigger:'change'}],
|
|
|
starttime: [{required: true, message:"关区不能为空",trigger:'change'}],
|
|
|
|
|
|
},
|
|
|
tidyData: [],
|
...
|
...
|
@@ -485,9 +501,20 @@ |
|
|
rcfdep: 'MT5202',
|
|
|
},
|
|
|
tidyDeleteRules: {
|
|
|
reason: [{required: true, message: '删除原因不能为空', trigger: 'blur'}],
|
|
|
contactName: [{required: true, message: '删除操作人不能为空', trigger: 'blur'}],
|
|
|
contactTel: [{required: true, message: '操作人联系方式不能为空', trigger: 'blur'}]
|
|
|
reason:[{required:true,message:'原因不能为空',trigger:'blur'}],
|
|
|
contactName:[{required:true,message:'操作人不能为空',trigger:'blur'}],
|
|
|
contactTel:[
|
|
|
{ required: true, message: '手机号不能为空', trigger: 'blur' },
|
|
|
{ type: 'number', message: '手机号格式不正确', trigger: 'blur',
|
|
|
transform(value){
|
|
|
var phone = 11 && /^((13|14|15|16|17|18|19)[0-9]{1}\d{8})$/
|
|
|
if (!phone.test(value)){
|
|
|
return false;
|
|
|
}else {
|
|
|
return Number(value);
|
|
|
}
|
|
|
}}
|
|
|
],
|
|
|
},
|
|
|
|
|
|
rows:{},
|
...
|
...
|
@@ -763,12 +790,15 @@ |
|
|
confirmButtonText: '删除',
|
|
|
cancelButtonText: '取消'
|
|
|
}).then(() => {
|
|
|
row.userinfo = {
|
|
|
username : loginedUserInfo().username
|
|
|
}
|
|
|
deleteByIsDelete(row).then(res => {
|
|
|
if (res.data.count > 0) {
|
|
|
Message.success("删除成功")
|
|
|
if (res.data.code == "200") {
|
|
|
Message.success(res.data.msg)
|
|
|
this.getList()
|
|
|
} else {
|
|
|
Message.success("删除异常,请稍后重试")
|
|
|
Message.success(res.data.msg)
|
|
|
}
|
|
|
})
|
|
|
}).catch(action => {
|
...
|
...
|
@@ -857,12 +887,12 @@ |
|
|
this.$refs.tidyFormData.validate(valid => {
|
|
|
if (valid) {
|
|
|
addMt520X(this.tidyModel).then(res => {
|
|
|
if (res.data.count > 0) {
|
|
|
Message.success("出港理货新增成功")
|
|
|
if (res.data.code == "200") {
|
|
|
Message.success(res.data.msg);
|
|
|
this.dialogFormVisible = false
|
|
|
this.getList()
|
|
|
} else {
|
|
|
Message.error("出港理货新增失败,请检查数据")
|
|
|
Message.error(res.data.msg);
|
|
|
}
|
|
|
})
|
|
|
}
|
...
|
...
|
@@ -893,6 +923,9 @@ |
|
|
_this.tidyModel.user= {
|
|
|
username : JSON.parse(sessionStorage.getItem('user')).username
|
|
|
}
|
|
|
this.tidyModel.userinfo = {
|
|
|
username : loginUserInfo().username
|
|
|
}
|
|
|
|
|
|
updateMt520X(this.tidyModel).then(res => {
|
|
|
console.log(res.data)
|
...
|
...
|
|