Commit b9261ffd authored by 邓春圆's avatar 邓春圆

空运添加编辑提货单

parent 7b444552
...@@ -107,7 +107,8 @@ ...@@ -107,7 +107,8 @@
<el-dropdown-item command="error">{{$t('异常登记')}}</el-dropdown-item> <el-dropdown-item command="error">{{$t('异常登记')}}</el-dropdown-item>
<el-dropdown-item command="cost">{{$t('费用登记')}}</el-dropdown-item> <el-dropdown-item command="cost">{{$t('费用登记')}}</el-dropdown-item>
<el-dropdown-item command="batchMarkup">{{$t('批量加价')}}</el-dropdown-item> <el-dropdown-item command="batchMarkup">{{$t('批量加价')}}</el-dropdown-item>
<el-dropdown-item command="delete">{{$t('删除')}}</el-dropdown-item> <el-dropdown-item :disabled="scope.row.ldStatus<46" command="editLadingBill">{{$t('编辑提货单')}}</el-dropdown-item>
<!-- <el-dropdown-item command="delete">{{$t('删除')}}</el-dropdown-item>-->
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
...@@ -179,16 +180,20 @@ import { ...@@ -179,16 +180,20 @@ import {
downloadFileByUrl, downloadFileByUrl,
formatDate, formatDate,
} from "./shippingAir/utils"; } from "./shippingAir/utils";
import {getCabinetPage} from "@/api/ecw/cabinet";
import LadingBill from "@/views/ecw/box/ladingBill/index.vue";
export default { export default {
name: 'indexAir', name: 'indexAir',
components: { components: {
LadingBill,
costForm, costForm,
regError, regError,
editAirForm editAirForm
}, },
data() { data() {
return { return {
cabinetList:[],
dateTypes: [ dateTypes: [
{ value: '1', label: this.$t('分拣时间') }, { value: '1', label: this.$t('分拣时间') },
{ value: '2', label: this.$t('装柜时间') }, { value: '2', label: this.$t('装柜时间') },
...@@ -266,6 +271,16 @@ export default { ...@@ -266,6 +271,16 @@ export default {
} }
}, },
computed: { computed: {
getCabinetName() {
return (cabinetId) => {
for (let index in this.cabinetList) {
let cabinetItem = this.cabinetList[index];
if (cabinetItem.id == cabinetId) {
return cabinetItem.name;
}
}
};
},
exportWarehouseList() { exportWarehouseList() {
return this.warehouseList.filter((item) => item.tradeType == '2' || item.type == '3') return this.warehouseList.filter((item) => item.tradeType == '2' || item.type == '3')
}, },
...@@ -286,6 +301,9 @@ export default { ...@@ -286,6 +301,9 @@ export default {
} }
}, },
created() { created() {
getCabinetPage({status:0}).then((response) => {
this.cabinetList = response.data.list;
});
this.transportTypes = this.getDictDatas( this.transportTypes = this.getDictDatas(
this.DICT_TYPE.ECW_TRANSPORT_TYPE this.DICT_TYPE.ECW_TRANSPORT_TYPE
).filter((item) => item.value == "3");console.log(this.getDictDatas( ).filter((item) => item.value == "3");console.log(this.getDictDatas(
...@@ -389,7 +407,7 @@ export default { ...@@ -389,7 +407,7 @@ export default {
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
// 处理查询参数 // 处理查询参数
let params = { ...this.queryParams } let params = { ...this.queryParams }
params.pageNo = undefined params.pageNo = undefined
params.pageSize = undefined params.pageSize = undefined
this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime') this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime')
...@@ -423,9 +441,28 @@ export default { ...@@ -423,9 +441,28 @@ export default {
case 'delete': case 'delete':
this.handleDelete(row); this.handleDelete(row);
break; break;
case "editLadingBill":
const cabinetLabel = this.getCabinetName(row.cabinetId);
const title = this.$t(
"查看提单 {selfNo} 柜号:{cubNo} 柜型:{cabinetLabel}",
{
selfNo: row.selfNo,
cubNo: row.cubNo,
cabinetLabel: cabinetLabel,
}
);
this.$set(this.dialogCfg, "title", title);
this.$set(this.dialogCfg, "fullscreen", true);
break;
case 'batchMarkup': case 'batchMarkup':
this.$router.push('batch_markup?shipmentId=' + row.id) this.$router.push('batch_markup?shipmentId=' + row.id)
} }
if (["editLadingBill", "cost", "error"].includes(command)) {
this.currRow = row;
this.$set(this.dialogCfg, "dialogType", command);
this.$set(this.dialogCfg, "width", "600px");
this.$set(this.dialogCfg, "open", true);
}
}, },
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment