Commit 31d93922 authored by lanbaoming's avatar lanbaoming

2024-05-23-4提交

parent 97a11006
...@@ -59,6 +59,15 @@ export function getCustomerContactsSelect(query) { ...@@ -59,6 +59,15 @@ export function getCustomerContactsSelect(query) {
params: query params: query
}) })
} }
export function getCustomerContactsSelect2(query) {
return request({
url: '/ecw/customer-contacts/select2',
method: 'get',
params: query
})
}
// 导出客户联系人 Excel // 导出客户联系人 Excel
export function exportCustomerContactsExcel(query) { export function exportCustomerContactsExcel(query) {
return request({ return request({
......
...@@ -62,7 +62,10 @@ ...@@ -62,7 +62,10 @@
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { getCustomerContactsSelect } from "@/api/ecw/customerContacts"; import {
getCustomerContactsSelect,
getCustomerContactsSelect2,
} from "@/api/ecw/customerContacts";
export default { export default {
props: { props: {
type: Number, type: Number,
...@@ -89,11 +92,18 @@ export default { ...@@ -89,11 +92,18 @@ export default {
this.loadList(); this.loadList();
}, },
loadList() { loadList() {
//加载联系人数据 //加载联系人数据,怎样使用属性
if (this.type == "1") {
getCustomerContactsSelect2(this.form).then((res) => {
this.list = res.data.list;
this.total = res.data.total;
});
} else {
getCustomerContactsSelect(this.form).then((res) => { getCustomerContactsSelect(this.form).then((res) => {
this.list = res.data.list; this.list = res.data.list;
this.total = res.data.total; this.total = res.data.total;
}); });
}
}, },
closeDialog() { closeDialog() {
this.show = false; this.show = false;
......
...@@ -228,13 +228,14 @@ ...@@ -228,13 +228,14 @@
:label="$t('报关费用')" :label="$t('报关费用')"
align="center" align="center"
></el-table-column> ></el-table-column>
<!--
<el-table-column <el-table-column
prop="" prop=""
:label="$t('异常操作')" :label="$t('异常操作')"
align="center" align="center"
width="120px" width="120px"
> >
<!--lanbm 2024-05-23 添加异常登记功能--> lanbm 2024-05-23 添加异常登记功能
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="primary"
...@@ -243,7 +244,8 @@ ...@@ -243,7 +244,8 @@
>{{ $t("异常登记") }}</el-button >{{ $t("异常登记") }}</el-button
> >
</template> </template>
</el-table-column> </el-table-column>-->
<el-table-column <el-table-column
prop="" prop=""
:label="$t('操作')" :label="$t('操作')"
...@@ -492,7 +494,6 @@ ...@@ -492,7 +494,6 @@
</el-tabs> </el-tabs>
</el-col> </el-col>
</el-row> </el-row>
<!-- 对话框(添加 / 修改) --> <!-- 对话框(添加 / 修改) -->
<el-dialog <el-dialog
:title="dialogConfig.title" :title="dialogConfig.title"
...@@ -538,6 +539,23 @@ ...@@ -538,6 +539,23 @@
/> />
</template> </template>
</el-dialog> </el-dialog>
<!-- 对话框 lanbm 2024-05-23 add异常登记对话框 -->
<el-dialog
custom-class="shipping-dialog"
:title="$t('异常')"
:visible.sync="dialogVisible"
width="600px"
:modal-append-to-body="false"
append-to-body
>
<unloadingError
v-if="dialogVisible"
@closeDialog="closeDialog_2"
v-bind="$attrs"
:currRow="currRow"
/>
</el-dialog>
</div> </div>
</template> </template>
...@@ -570,6 +588,7 @@ import updateError from "./updateError.vue"; ...@@ -570,6 +588,7 @@ import updateError from "./updateError.vue";
import { listUser } from "@/api/system/user"; import { listUser } from "@/api/system/user";
//lanbm 2024-05-16 add //lanbm 2024-05-16 add
import { getCurrencyList } from "@/api/ecw/currency"; import { getCurrencyList } from "@/api/ecw/currency";
import unloadingError from "@/views/ecw/box/shippingSea/nodePage/unloading/unloadingError.vue";
export default { export default {
name: "EcwBoxQuery", name: "EcwBoxQuery",
...@@ -581,6 +600,8 @@ export default { ...@@ -581,6 +600,8 @@ export default {
regError, regError,
editForm, editForm,
updateError, updateError,
//lanbm 2024-05-23 异常登记对话框
unloadingError,
}, },
created() { created() {
this.transportTypes = this.getDictDatas( this.transportTypes = this.getDictDatas(
...@@ -693,6 +714,9 @@ export default { ...@@ -693,6 +714,9 @@ export default {
}, },
//币种信息 lanbm 2024-05-16 add //币种信息 lanbm 2024-05-16 add
currencyList: [], currencyList: [],
// 当前行
currRow: {},
dialogVisible: false,
}; };
}, },
methods: { methods: {
...@@ -712,11 +736,14 @@ export default { ...@@ -712,11 +736,14 @@ export default {
handleSelectionChange(selected) { handleSelectionChange(selected) {
this.selectedRows = selected; this.selectedRows = selected;
}, },
closeDialog_2() {
//关闭异常对话框
this.dialogVisible = false;
},
updateStatus_2(type, row) { updateStatus_2(type, row) {
//lanbm 2024-05-23 添加的异常登记功能 //lanbm 2024-05-23 添加的异常登记功能
this.$set(this.dialogConfig, "visible", true); this.currRow = row;
this.$set(this.dialogConfig, "title", this.$t("异常登记")); this.dialogVisible = true;
this.$set(this.dialogConfig, "type", "error");
}, },
/* 更新状态 */ /* 更新状态 */
updateStatus(type, row) { updateStatus(type, row) {
......
...@@ -274,6 +274,7 @@ ...@@ -274,6 +274,7 @@
:label="$t('报关费用')" :label="$t('报关费用')"
align="center" align="center"
></el-table-column> ></el-table-column>
<!--
<el-table-column <el-table-column
prop="" prop=""
:label="$t('异常操作')" :label="$t('异常操作')"
...@@ -289,7 +290,8 @@ ...@@ -289,7 +290,8 @@
>{{ $t("异常登记") }}</el-button >{{ $t("异常登记") }}</el-button
> >
</template> </template>
</el-table-column> </el-table-column>-->
<el-table-column <el-table-column
prop="" prop=""
:label="$t('操作')" :label="$t('操作')"
......
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
<el-button type="primary" @click="handleQuery">{{ <el-button type="primary" @click="handleQuery">{{
$t("查找") $t("查找")
}}</el-button> }}</el-button>
<!--
<el-button type="primary" @click="handleQuery2">{{ <el-button type="primary" @click="handleQuery2">{{
$t("批量反审核") $t("批量反审核")
}}</el-button> }}</el-button>
...@@ -85,7 +86,8 @@ ...@@ -85,7 +86,8 @@
}}</el-button> }}</el-button>
<el-button type="primary" @click="handleQuery3">{{ <el-button type="primary" @click="handleQuery3">{{
$t("批量核销") $t("批量核销")
}}</el-button> }}</el-button>-->
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
......
...@@ -909,6 +909,7 @@ ...@@ -909,6 +909,7 @@
<choose-contact-dialog <choose-contact-dialog
v-if="!!contactChooseType" v-if="!!contactChooseType"
:type="1"
@choose="onContactChoose" @choose="onContactChoose"
@close="contactChooseType = null" @close="contactChooseType = null"
/> />
......
...@@ -626,7 +626,7 @@ ...@@ -626,7 +626,7 @@
</div> </div>
</el-dialog> </el-dialog>
<choose-contact-dialog v-if="!!contactChooseType" @choose="onContactChoose" @close="contactChooseType=null" /> <choose-contact-dialog v-if="!!contactChooseType" :type="2" @choose="onContactChoose" @close="contactChooseType=null" />
<quick-create-customer v-if="quickCreateType" :type="quickCreateType" @success="onContactChoose" @close="quickCreateType=null" /> <quick-create-customer v-if="quickCreateType" :type="quickCreateType" @success="onContactChoose" @close="quickCreateType=null" />
</div> </div>
</template> </template>
......
This diff is collapsed.
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