Commit a0e8aa30 authored by huhaiqing's avatar huhaiqing

修改海运缺陷单

parent 0450f69a
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
<costForm v-if="dialogCfg.open" @closeDialog="closeDialog" :shipmentObj="currRow" /> <costForm v-if="dialogCfg.open" @closeDialog="closeDialog" :shipmentObj="currRow" />
</template> </template>
<template v-if="dialogCfg.dialogType === 'error'"> <template v-if="dialogCfg.dialogType === 'error'">
<regError v-if="dialogCfg.open" @closeDialog="closeDialog" :shipmentObj="currRow" /> <regError v-if="dialogCfg.open" @closeDialog="closeDialog" :shipmentObj="currRow" :allUsers="allUsers"/>
</template> </template>
<template v-if="dialogCfg.dialogType === 'editLadingBill'"> <template v-if="dialogCfg.dialogType === 'editLadingBill'">
<ladingBill v-if="dialogCfg.open" @closeDialog="closeDialog" :shipmentObj="currRow" :getCabinetName="getCabinetName" /> <ladingBill v-if="dialogCfg.open" @closeDialog="closeDialog" :shipmentObj="currRow" :getCabinetName="getCabinetName" />
...@@ -212,6 +212,7 @@ import costForm from "./costForm.vue"; ...@@ -212,6 +212,7 @@ import costForm from "./costForm.vue";
import regError from "./regError.vue"; import regError from "./regError.vue";
import editForm from "./editForm.vue"; import editForm from "./editForm.vue";
import ladingBill from "./ladingBill/index.vue"; import ladingBill from "./ladingBill/index.vue";
import { listUser } from "@/api/system/user";
export default { export default {
name: "EcwBoxIndexsea", name: "EcwBoxIndexsea",
...@@ -266,6 +267,7 @@ export default { ...@@ -266,6 +267,7 @@ export default {
countryList: [], countryList: [],
// 通知列表 // 通知列表
noticeList: [], noticeList: [],
allUsers: [],
}; };
}, },
computed: { computed: {
...@@ -301,6 +303,11 @@ export default { ...@@ -301,6 +303,11 @@ export default {
this.getList(); this.getList();
this.getCountryList(); this.getCountryList();
this.queryNotice(); this.queryNotice();
// 用户
listUser({ pageNo: "1", pageSize: "10000" }).then((res) => {
const { data } = res;
this.allUsers = data.list ?? [];
});
}, },
methods: { methods: {
formatDate, formatDate,
......
...@@ -290,6 +290,7 @@ ...@@ -290,6 +290,7 @@
v-if="dialogCfg.open" v-if="dialogCfg.open"
@closeDialog="closeDialog" @closeDialog="closeDialog"
:shipmentObj="currRow" :shipmentObj="currRow"
:allUsers="allUsers"
/> />
</template> </template>
<template v-if="dialogCfg.dialogType === 'editLadingBill'"> <template v-if="dialogCfg.dialogType === 'editLadingBill'">
...@@ -318,6 +319,7 @@ import costForm from './costForm.vue' ...@@ -318,6 +319,7 @@ import costForm from './costForm.vue'
import regError from './regError.vue' import regError from './regError.vue'
import editForm from './editSeaAirForm.vue' import editForm from './editSeaAirForm.vue'
import ladingBill from "./ladingBill/index.vue"; import ladingBill from "./ladingBill/index.vue";
import { listUser } from "@/api/system/user";
export default { export default {
name: 'EcwBoxIndexseaair', name: 'EcwBoxIndexseaair',
...@@ -379,6 +381,7 @@ export default { ...@@ -379,6 +381,7 @@ export default {
cabinetList: [], cabinetList: [],
channelList: [], channelList: [],
warehouseList: [], warehouseList: [],
allUsers: []
} }
}, },
computed: { computed: {
...@@ -418,6 +421,11 @@ export default { ...@@ -418,6 +421,11 @@ export default {
} }
}, },
created() { created() {
// 用户
listUser({ pageNo: "1", pageSize: "10000" }).then((res) => {
const { data } = res;
this.allUsers = 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 == '4') ).filter((item) => item.value == '4')
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('控货')" align="center" prop=""> <el-table-column :label="$t('控货')" align="center" prop="">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.isCargoControl}} {{scope.row.isCargoControl ? '' : '' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('计划箱数')" align="center" prop="loadNum"> <el-table-column :label="$t('计划箱数')" align="center" prop="loadNum">
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
if (type === "query") { if (type === "query") {
this.getBillList(); this.getBillList();
} }
if(type === 'close'){ if (type === "close") {
this.$emit("closeDialog"); this.$emit("closeDialog");
} }
}, },
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<!-- <el-form-item :label="$t('装箱单')"> <!-- <el-form-item :label="$t('装箱单')">
<el-button type="primary">{{$t('下载装箱单')}}</el-button> <el-button type="primary">{{$t('下载装箱单')}}</el-button>
</el-form-item> --> </el-form-item> -->
<el-form-item :label="$t('报关单')"> <el-form-item :label="$t('报关单')" v-show="isDownload">
<el-button type="primary" @click="downloadCusFile">{{$t('下载所有报关单')}}</el-button> <el-button type="primary" @click="downloadCusFile">{{$t('下载所有报关单')}}</el-button>
</el-form-item> </el-form-item>
...@@ -228,6 +228,7 @@ export default { ...@@ -228,6 +228,7 @@ export default {
inspectionTimecustoms: this.getDictDatas( inspectionTimecustoms: this.getDictDatas(
this.DICT_TYPE.BOX_INSPECTION_TIME_CUSTOMS this.DICT_TYPE.BOX_INSPECTION_TIME_CUSTOMS
)[0].value, )[0].value,
isDownload: false,
}; };
}, },
created() { created() {
...@@ -533,6 +534,12 @@ export default { ...@@ -533,6 +534,12 @@ export default {
}, },
}, },
watch: { watch: {
"cusDeclarationObj.documentInfo"(val) {
this.isDownload = false;
if (val.includes("2")) {
this.isDownload = true;
}
},
"cusDeclarationObj.dcBoxWgt"(dcBoxWgt) { "cusDeclarationObj.dcBoxWgt"(dcBoxWgt) {
this.calcVGM(dcBoxWgt, this.cusDeclarationObj.dcGoodsWgt); this.calcVGM(dcBoxWgt, this.cusDeclarationObj.dcGoodsWgt);
}, },
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
<div> <div>
<el-form ref="unloadingForm" :model="unloadingObj" label-width="100px"> <el-form ref="unloadingForm" :model="unloadingObj" label-width="100px">
<el-form-item :label="$t('网点')"> <el-form-item :label="$t('网点')">
<dockSelect v-model="unloadingObj.ulOutletsId" :placeholder="$t('请选择网点')" :allDocks="this.$attrs.allDocks" /> <el-select filterable v-model="unloadingObj.ulOutletsId" clearable>
<el-option v-for="node in nodes" :key="node.id" :label="$l(node, 'title')" :value="node.id"></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('到仓时间')"> <el-form-item :label="$t('到仓时间')">
<el-date-picker type="datetime" :placeholder="$t('请选择日期')" v-model="unloadingObj.ulWarehouseTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> <el-date-picker type="datetime" :placeholder="$t('请选择日期')" v-model="unloadingObj.ulWarehouseTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
...@@ -30,7 +32,7 @@ ...@@ -30,7 +32,7 @@
import startUnloading from "./startUnloading.vue"; import startUnloading from "./startUnloading.vue";
import { unloadCreate } from "@/api/ecw/boxSea"; import { unloadCreate } from "@/api/ecw/boxSea";
import { formatDateStr, serviceMsg } from "../../utils"; import { formatDateStr, serviceMsg } from "../../utils";
import dockSelect from "../common/dockSelect.vue"; import { getNodePage } from "@/api/ecw/node";
/** /**
* 卸柜 * 卸柜
...@@ -38,13 +40,14 @@ import dockSelect from "../common/dockSelect.vue"; ...@@ -38,13 +40,14 @@ import dockSelect from "../common/dockSelect.vue";
export default { export default {
name: "unloading", name: "unloading",
inheritAttrs: false, inheritAttrs: false,
components: { startUnloading, dockSelect }, components: { startUnloading },
data() { data() {
return { return {
// 清关对象 // 清关对象
unloadingObj: {}, unloadingObj: {},
// 弹窗状态 // 弹窗状态
dialogVisible: false, dialogVisible: false,
nodes: [],
}; };
}, },
created() { created() {
...@@ -52,6 +55,10 @@ export default { ...@@ -52,6 +55,10 @@ export default {
let oldData = { ...this.$attrs.shipmentObj[voName] }; let oldData = { ...this.$attrs.shipmentObj[voName] };
oldData = formatDateStr(oldData, ["ulWarehouseTime", "ulBoxTime"]); oldData = formatDateStr(oldData, ["ulWarehouseTime", "ulBoxTime"]);
this.unloadingObj = oldData; this.unloadingObj = oldData;
getNodePage({ pageNo: 1, pageSize: 1000, status: 0 }).then((res) => {
const { data } = res;
this.nodes = data?.list ?? [];
});
}, },
methods: { methods: {
/** 提交 */ /** 提交 */
......
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