Commit 820a2803 authored by 我在何方's avatar 我在何方

更新客户延期,间接客户

parent ff7ca453
// 导出客户 Excel
import request from '@/utils/request'
import query from "@/views/ecw/customer/query";
import * as url from "url";
export function exportCustomerExcel(query) {
return request({
url: '/ecw/indirect-customer/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}
// 获得客户
export function getCustomer(id) {
return request({
url: '/ecw/indirect-customer/get?id=' + id,
method: 'get'
})
}
// 获得客户分页
export function getCustomerPage(query) {
return request({
url: '/ecw/indirect-customer/page',
method: 'get',
params: query
})
}
// 更新客户
export function updateCustomer(data) {
return request({
url: '/ecw/indirect-customer/update',
method: 'put',
data: data
})
}
// 根据客户ID获得联系人列表
export function getCustomerContactsListByCustomer(id) {
return request({
url: '/ecw/indirect-customer-contacts/list-by-customer/get?customerId=' + id,
method: 'get'
})
}
...@@ -133,11 +133,13 @@ ...@@ -133,11 +133,13 @@
// this.$modal.msgError(this.$t('请上传报关资料')); // this.$modal.msgError(this.$t('请上传报关资料'));
// return // return
// } // }
this.handlerParams.ccIds = Array.isArray(this.handlerParams.ccIds) ? this.handlerParams.ccIds.join(',') : this.handlerParams.ccIds var params = Object.assign({},this.handlerParams)
this.handlerParams.voucher = Array.isArray(this.handlerParams.voucher) ? this.handlerParams.voucher.join(',') : this.handlerParams.voucher var ccIds = Array.isArray(this.handlerParams.ccIds) ? this.handlerParams.ccIds.join(',') : this.handlerParams.ccIds
params.ccIds = ccIds
params.voucher = Array.isArray(this.handlerParams.voucher) ? this.handlerParams.voucher.join(',') : this.handlerParams.voucher
this.$set(this.handlerParams,'createTime',this.formatDate()) this.$set(this.handlerParams,'createTime',this.formatDate())
this.handlerParams.estimateEnterOpenSeaTime = this.getNowDate(this.handlerParams.estimateEnterOpenSeaTime) params.estimateEnterOpenSeaTime = this.getNowDate(this.handlerParams.estimateEnterOpenSeaTime)
creatDelayApproval(this.handlerParams).then(res=>{ creatDelayApproval(params).then(res=>{
this.$modal.msgSuccess(this.$t('提交成功')); this.$modal.msgSuccess(this.$t('提交成功'));
this.$store.dispatch('tagsView/delCurrentView') this.$store.dispatch('tagsView/delCurrentView')
}) })
......
...@@ -407,10 +407,8 @@ import { getDictDatas, DICT_TYPE } from '@/utils/dict'; ...@@ -407,10 +407,8 @@ import { getDictDatas, DICT_TYPE } from '@/utils/dict';
import upload from '@/components/ImageUpload' import upload from '@/components/ImageUpload'
import { import {
createCustomer, createCustomer,
getCustomer,
getCustomerList, getCustomerList,
getCustomerPage, memberUserList, memberUserList,
updateCustomer,
userMemberUserList, userMemberUserList,
getCustomerLines, fillupCustomeInfo getCustomerLines, fillupCustomeInfo
} from '@/api/ecw/customer' } from '@/api/ecw/customer'
...@@ -420,10 +418,10 @@ import { getProductList } from '@/api/ecw/product' ...@@ -420,10 +418,10 @@ import { getProductList } from '@/api/ecw/product'
import {getTradeCityList} from "@/api/ecw/region" import {getTradeCityList} from "@/api/ecw/region"
import {getWarehouseList} from "@/api/ecw/warehouse" import {getWarehouseList} from "@/api/ecw/warehouse"
import CustomerLineTable from '@/components/CustomerLineTable' import CustomerLineTable from '@/components/CustomerLineTable'
import {getCustomerSelect} from "@/api/ecw/customer" import {getCustomerSelect,getCustomerContactsListByCustomer,getCustomer,getCustomerPage,updateCustomer} from "@/api/ecw/indirectCustomer"
import {listServiceUser, listSimpleUsers} from "@/api/system/user" import {listServiceUser, listSimpleUsers} from "@/api/system/user"
import { getZhongPaoBest, getZhongPaoPage } from '@/api/ecw/zhongPao' import { getZhongPaoBest, getZhongPaoPage } from '@/api/ecw/zhongPao'
import { getCustomerContactsListByCustomer } from '@/api/ecw/customerContacts' // import { getCustomerContactsListByCustomer } from '@/api/ecw/customerContacts'
import { getCountryListAll } from '@/api/ecw/country' import { getCountryListAll } from '@/api/ecw/country'
import Template from "@/views/cms/template"; import Template from "@/views/cms/template";
import {validatorMobile} from "@/api/ecw/validate" import {validatorMobile} from "@/api/ecw/validate"
...@@ -696,14 +694,14 @@ export default { ...@@ -696,14 +694,14 @@ export default {
} }
// 添加的提交 // 添加的提交
//我的客户页面跳转直接 //我的客户页面跳转直接
form.isCustomerServiceConfirmed = true; // form.isCustomerServiceConfirmed = true;
createCustomer(form).then(response => { // createCustomer(form).then(response => {
this.$modal.msgSuccess(this.$t('新增成功')); // this.$modal.msgSuccess(this.$t('新增成功'));
this.open = false; // this.open = false;
// this.getList(); // // this.getList();
const obj = { path: "/customer/customer" }; // const obj = { path: "/customer/customer" };
this.$tab.closeOpenPage(obj); // this.$tab.closeOpenPage(obj);
}) // })
}); });
}) })
}, },
......
...@@ -84,14 +84,11 @@ ...@@ -84,14 +84,11 @@
</template> </template>
<script> <script>
import { createCustomer, updateCustomer, deleteCustomer, getCustomer, import {updateCustomer, getCustomer,
getCustomerPage, exportCustomerExcel } from "@/api/ecw/customer"; getCustomerPage, exportCustomerExcel } from "@/api/ecw/indirectCustomer";
import { getDictDatas, DICT_TYPE } from '@/utils/dict'; import { getDictDatas, DICT_TYPE } from '@/utils/dict';
import {CommonStatusEnum} from '@/utils/constants'
import {getNodeList} from "@/api/ecw/node"
import {listServiceUser} from "@/api/system/user"; import {listServiceUser} from "@/api/system/user";
import {getCreditPage} from "@/api/customer/credit";
export default { export default {
name: "IndirectCustomer", name: "IndirectCustomer",
......
...@@ -395,7 +395,6 @@ ...@@ -395,7 +395,6 @@
<script> <script>
import { import {
getCustomer,
getCustomerSelect, getCustomerSelect,
getBrankByCustomer, getBrankByCustomer,
levelLogPage, levelLogPage,
...@@ -405,7 +404,7 @@ import { ...@@ -405,7 +404,7 @@ import {
orderStatistics, orderStatistics,
creditLogCreate, creditLogCreate,
creditScoreStatistic, creditScoreStatistic,
infoListReceiptPage, userMemberUserList, memberUserList infoListReceiptPage, memberUserList
} from '@/api/ecw/customer' } from '@/api/ecw/customer'
import { DICT_TYPE, getDictDataLabel, getDictDatas2 } from '@/utils/dict' import { DICT_TYPE, getDictDataLabel, getDictDatas2 } from '@/utils/dict'
import { getProductTypeList } from '@/api/ecw/productType' import { getProductTypeList } from '@/api/ecw/productType'
...@@ -414,7 +413,7 @@ import CustomerFollow from "@/components/CustomerFollow" ...@@ -414,7 +413,7 @@ import CustomerFollow from "@/components/CustomerFollow"
import { parseTime } from '@/utils/ruoyi' import { parseTime } from '@/utils/ruoyi'
import CustomerComplaint from '@/views/ecw/customerComplaint' import CustomerComplaint from '@/views/ecw/customerComplaint'
import { listServiceUser } from '@/api/system/user' import { listServiceUser } from '@/api/system/user'
import { getCustomerContactsListByCustomer } from '@/api/ecw/customerContacts' import { getCustomerContactsListByCustomer,getCustomer } from '@/api/ecw/indirectCustomer'
import {getOrderPage} from "@/api/ecw/order"; import {getOrderPage} from "@/api/ecw/order";
import Template from "@/views/cms/template"; import Template from "@/views/cms/template";
import {getCreditRulePage} from "@/api/customer/creditRule"; import {getCreditRulePage} from "@/api/customer/creditRule";
......
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