Commit f56fe670 authored by zs嵩's avatar zs嵩
parents 2505bb99 4722185a
...@@ -291,6 +291,14 @@ export function infoListOrderPage(params){ ...@@ -291,6 +291,14 @@ export function infoListOrderPage(params){
params params
}) })
} }
//客户详情订单统计
export function infoListStatisticsOrder(params){
return request({
url:'/ecw/order/customer-statistics-order',
method:'get',
params
})
}
//客户详情 --- 报价 //客户详情 --- 报价
export function infoListOfferPage(params){ export function infoListOfferPage(params){
return request({ return request({
......
...@@ -359,6 +359,13 @@ export function feeApplicationGet(params) { ...@@ -359,6 +359,13 @@ export function feeApplicationGet(params) {
params params
}) })
} }
export function approvalFeeApplicationGet(params) {
return request({
url: "/order/fee-application/approval/get",
method: "get",
params
})
}
//获得调仓明细 //获得调仓明细
export function orderWarehouseInGetAdjustInfo(params) { export function orderWarehouseInGetAdjustInfo(params) {
......
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="88px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="108px">
<el-form-item :label="$t('自编号')" prop="selfNo"> <el-form-item :label="$t('自编号')" prop="selfNo">
<el-input v-model="queryParams.selfNo" :placeholder="$t('请输入自编号')" clearable @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.selfNo" :placeholder="$t('请输入自编号')" clearable @keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
...@@ -33,12 +33,12 @@ ...@@ -33,12 +33,12 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('状态')" prop="shipmentStatusAir"> <el-form-item :label="$t('状态')" prop="shipmentStatusAirList">
<el-select v-model="queryParams.shipmentStatusAir" :placeholder="$t('请选择状态')" clearable size="small"> <el-select v-model="queryParams.shipmentStatusAirList" :placeholder="$t('请选择状态')" clearable size="small" multiple collapse-tags>
<el-option v-for="dict in this.getDictDatas(DICT_TYPE.BOX_AIR_SHIPMENT_STATE)" :key="dict.value" :label="$l(dict, 'label')" :value="dict.value" /> <el-option v-for="dict in this.getDictDatas(DICT_TYPE.BOX_AIR_SHIPMENT_STATE)" :key="dict.value" :label="$l(dict, 'label')" :value="dict.value" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-row> <!-- <el-row> -->
<el-form-item :label="$t('时间')" prop="date"> <el-form-item :label="$t('时间')" prop="date">
<el-select v-model="queryParams.dateType" :placeholder="$t('请选择时间类型')" clearable size="small"> <el-select v-model="queryParams.dateType" :placeholder="$t('请选择时间类型')" clearable size="small">
<el-option v-for="item in dateTypes" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in dateTypes" :key="item.value" :label="item.label" :value="item.value" />
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('发货方式')" prop="deliveryType" v-show="showSearch"> <el-form-item :label="$t('发货方式')" prop="deliveryType" v-show="showSearch">
<el-select v-model="queryParams.deliveryType" :placeholder="$t('请选择发货方式')" clearable size="small"> <el-select v-model="queryParams.deliveryType" :placeholder="$t('请选择发货方式')" clearable size="small" multiple collapse-tags>
<el-option v-for="item in deliveryTypeData" :key="item.value" :label="item.label" :value="item.value"> <el-option v-for="item in deliveryTypeData" :key="item.value" :label="item.label" :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
...@@ -86,14 +86,11 @@ ...@@ -86,14 +86,11 @@
<supplierSelect v-model="queryParams.shipperId" :companyType="'5'" :placeholder="$t('请选择订舱代理')" :allSupplier="allSupplier" clearable multiple collapse-tags /> <supplierSelect v-model="queryParams.shipperId" :companyType="'5'" :placeholder="$t('请选择订舱代理')" :allSupplier="allSupplier" clearable multiple collapse-tags />
</el-form-item> </el-form-item>
<el-form-item :label="$t('航空公司')" v-show="showSearch"> <el-form-item :label="$t('航空公司')" v-show="showSearch">
<supplierSelect v-model="queryParams.airlineCompanyId" :placeholder="$t('请选择航空公司')" company-type="10" :allSupplier="allSupplier" clearable multiple collapse-tags /> <supplierSelect v-model="queryParams.airlineCompanyIdList" :placeholder="$t('请选择航空公司')" company-type="10" :allSupplier="allSupplier" clearable multiple collapse-tags />
</el-form-item> </el-form-item>
<el-form-item :label="$t('代理公司Agent')" v-show="showSearch"> <el-form-item :label="$t('代理公司Agent')" v-show="showSearch">
<supplierSelect v-model="queryParams.agentIdList" :placeholder="$t('请选择代理公司')" company-type="1" :allSupplier="allSupplier" clearable multiple collapse-tags /> <supplierSelect v-model="queryParams.agentIdList" :placeholder="$t('请选择代理公司')" company-type="1" :allSupplier="allSupplier" clearable multiple collapse-tags />
</el-form-item> </el-form-item>
<el-form-item :label="$t('预计起飞时间')" prop="flyTime" v-show="showSearch">
<el-date-picker type="datetimerange" :start-placeholder="$t('预计起飞开始日期')" :end-placeholder="$t('预计起飞结束日期')" value-format="yyyy-MM-dd HH:mm:ss" v-model="queryParams.flyBeginTime"></el-date-picker>
</el-form-item>
<el-form-item :label="$t('报关方式')" prop="dcCustomsType" v-show="showSearch"> <el-form-item :label="$t('报关方式')" prop="dcCustomsType" v-show="showSearch">
<el-select v-model="queryParams.dcCustomsType" :placeholder="$t('请选择报关方式')" clearable multiple collapse-tags> <el-select v-model="queryParams.dcCustomsType" :placeholder="$t('请选择报关方式')" clearable multiple collapse-tags>
<el-option v-for="type in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_CUSTOMS_TYPE)" :key="type.value" :label="$l(type, 'label')" :value="type.value"></el-option> <el-option v-for="type in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_CUSTOMS_TYPE)" :key="type.value" :label="$l(type, 'label')" :value="type.value"></el-option>
...@@ -102,11 +99,16 @@ ...@@ -102,11 +99,16 @@
<el-form-item :label="$t('报关公司')" v-show="showSearch"> <el-form-item :label="$t('报关公司')" v-show="showSearch">
<supplierSelect v-model="queryParams.dcCompanyId" :companyType="'2'" :placeholder="$t('请选择报关公司')" :allSupplier="allSupplier" clearable multiple collapse-tags /> <supplierSelect v-model="queryParams.dcCompanyId" :companyType="'2'" :placeholder="$t('请选择报关公司')" :allSupplier="allSupplier" clearable multiple collapse-tags />
</el-form-item> </el-form-item>
<el-row>
<el-form-item :label="$t('预计起飞时间')" prop="flyTime" v-show="showSearch">
<el-date-picker type="datetimerange" :start-placeholder="$t('预计起飞开始日期')" :end-placeholder="$t('预计起飞结束日期')" value-format="yyyy-MM-dd HH:mm:ss" v-model="queryParams.flyBeginTime"></el-date-picker>
</el-form-item>
<el-form-item :label="$t('放行时间')" v-show="showSearch"> <el-form-item :label="$t('放行时间')" v-show="showSearch">
<el-date-picker type="datetimerange" :start-placeholder="$t('放行开始日期')" :end-placeholder="$t('放行结束日期')" v-model="queryParams.dcPassBeginTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> <el-date-picker type="datetimerange" :start-placeholder="$t('放行开始日期')" :end-placeholder="$t('放行结束日期')" v-model="queryParams.dcPassBeginTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-form-item> </el-form-item>
</el-row> </el-row>
<!-- </el-row> -->
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('搜索') }}</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('搜索') }}</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">{{ $t('重置') }}</el-button> <el-button icon="el-icon-refresh" @click="resetQuery">{{ $t('重置') }}</el-button>
...@@ -748,6 +750,26 @@ export default { ...@@ -748,6 +750,26 @@ export default {
} }
}); });
}, },
formatQuery() {
let obj = {}
//始发仓
// if (this.startWarehouseId != null && this.startWarehouseId != "") {
// obj.startWarehouseIds = this.startWarehouseId
// }
//目的国
if (this.countryIdList != null && this.countryIdList != "") {
obj.countryIdLists = this.countryIdList
}
//目的城市
if (this.destCityIdList != null && this.destCityIdList != "") {
obj.destCityIdLists = this.destCityIdList
}
//目的仓
if (this.destWarehouseIdList != null && this.destWarehouseIdList != "") {
obj.destWarehouseIdList = this.destWarehouseIdList
}
return obj
},
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true this.loading = true
...@@ -758,7 +780,7 @@ export default { ...@@ -758,7 +780,7 @@ export default {
this.addBeginAndEndTimeNew(params, params.flyBeginTime, 'fly');// 预计起飞时间 this.addBeginAndEndTimeNew(params, params.flyBeginTime, 'fly');// 预计起飞时间
this.addBeginAndEndTimeNew(params, params.dcPassBeginTime, 'dcPass');// 放行时间 this.addBeginAndEndTimeNew(params, params.dcPassBeginTime, 'dcPass');// 放行时间
// 执行查询 // 执行查询
getboxPage(params).then((response) => { getboxPage({...params, ...this.formatQuery()}).then((response) => {
this.list = response.data.list this.list = response.data.list
this.total = response.data.total this.total = response.data.total
// var lineParams = [] // var lineParams = []
...@@ -793,6 +815,9 @@ export default { ...@@ -793,6 +815,9 @@ export default {
destWarehouseIdList: undefined, destWarehouseIdList: undefined,
transportType: undefined transportType: undefined
} }
this.countryIdList = null;
this.destCityIdList = null;
this.destWarehouseIdList = null;
this.resetForm('form') this.resetForm('form')
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
...@@ -861,7 +886,7 @@ export default { ...@@ -861,7 +886,7 @@ export default {
.confirm(this.$t('是否确认导出所有出货数据项?')) .confirm(this.$t('是否确认导出所有出货数据项?'))
.then(() => { .then(() => {
this.exportLoading = true this.exportLoading = true
return exportboxExcel(params) return exportboxExcel({...params, ...this.formatQuery()})
}) })
.then((response) => { .then((response) => {
this.$download.excel(response, this.$t("空运管理") + ".xls"); this.$download.excel(response, this.$t("空运管理") + ".xls");
......
This diff is collapsed.
...@@ -118,6 +118,9 @@ ...@@ -118,6 +118,9 @@
<el-table-column :label="$t('清关状态')" align="center" prop=""> <el-table-column :label="$t('清关状态')" align="center" prop="">
<template slot-scope="scope">{{ clearStatus(scope.row) }}</template> <template slot-scope="scope">{{ clearStatus(scope.row) }}</template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('卸柜/到仓时间')" align="center" prop="">
<template slot-scope="scope">{{ scope.row.unloadTime }}</template>
</el-table-column>
<el-table-column :label="$t('始发仓')" align="center" prop="startWarehouseName" /> <el-table-column :label="$t('始发仓')" align="center" prop="startWarehouseName" />
<el-table-column :label="$t('目的仓')" align="center" prop="destWarehouseName" /> <el-table-column :label="$t('目的仓')" align="center" prop="destWarehouseName" />
<el-table-column :label="$t('体积')" align="center" prop="volume" /> <el-table-column :label="$t('体积')" align="center" prop="volume" />
...@@ -142,9 +145,9 @@ ...@@ -142,9 +145,9 @@
<div class="btns"> <div class="btns">
<el-button type="danger" size="small" @click="openError(scope.row)">{{ $t("异常") }}</el-button> <el-button type="danger" size="small" @click="openError(scope.row)">{{ $t("异常") }}</el-button>
<el-button v-if="pageData.boxCustomsBackVO && pageData.boxCustomsBackVO.overMachineStatus == 2 && pageData.boxCustomsBackVO.overMachineAbnormalStatus == 2" plain type="primary" size="small" @click="$router.push('/order/warehousing-update?id=' + scope.row.orderId)">{{ $t("入仓修改 ") }}</el-button> <el-button v-if="pageData.boxCustomsBackVO && pageData.boxCustomsBackVO.overMachineStatus == 2 && pageData.boxCustomsBackVO.overMachineAbnormalStatus == 2" plain type="primary" size="small" @click="$router.push('/order/warehousing-update?id=' + scope.row.orderId)">{{ $t("入仓修改 ") }}</el-button>
<el-button plain type="primary" size="small" @click="order_warehouse_check_revoke(scope.row.orderId)" v-if="scope.row.inWarehouseState == 218">{{ $t("撤销到仓") }}</el-button> <el-button type="primary" size="small" @click="order_warehouse_check_revoke(scope.row.orderId)" v-if="scope.row.inWarehouseState == 218">{{ $t("撤销到仓") }}</el-button>
<el-button plain type="primary" size="small" @click="order_warehouse_check_force(scope.row.orderId)" v-if="scope.row.installNum > scope.row.unloadNum">{{ $t("强制到仓") }}</el-button> <el-button type="primary" size="small" @click="order_warehouse_check_force(scope.row.orderId)" v-if="scope.row.inWarehouseState == 218 && scope.row.installNum > scope.row.unloadNum">{{ $t("强制到仓") }}</el-button>
<el-button plain type="primary" size="small" @click="$router.push('/order/warehousingTo-update?id=' + scope.row.orderId)" v-if="scope.row.inWarehouseState == 218">{{ $t("到仓修改") }}</el-button> <el-button type="primary" size="small" @click="$router.push('/order/warehousingTo-update?id=' + scope.row.orderId)" v-if="scope.row.inWarehouseState == 218">{{ $t("到仓修改") }}</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -109,6 +109,9 @@ ...@@ -109,6 +109,9 @@
<el-table-column :label="$t('清关状态')" align="center" prop=""> <el-table-column :label="$t('清关状态')" align="center" prop="">
<template slot-scope="scope">{{ clearStatus(scope.row) }}</template> <template slot-scope="scope">{{ clearStatus(scope.row) }}</template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('卸柜/到仓时间')" align="center" prop="">
<template slot-scope="scope">{{ scope.row.unloadTime }}</template>
</el-table-column>
<el-table-column :label="$t('始发仓')" align="center" prop="startWarehouseName" /> <el-table-column :label="$t('始发仓')" align="center" prop="startWarehouseName" />
<el-table-column :label="$t('目的仓')" align="center" prop="destWarehouseName" /> <el-table-column :label="$t('目的仓')" align="center" prop="destWarehouseName" />
<el-table-column :label="$t('体积')" align="center" prop="volume" /> <el-table-column :label="$t('体积')" align="center" prop="volume" />
...@@ -132,9 +135,9 @@ ...@@ -132,9 +135,9 @@
<template slot-scope="scope"> <template slot-scope="scope">
<div class="btns"> <div class="btns">
<el-button type="danger" size="small" @click="openError(scope.row)">{{ $t("异常") }}</el-button> <el-button type="danger" size="small" @click="openError(scope.row)">{{ $t("异常") }}</el-button>
<el-button plain type="primary" size="small" @click="order_warehouse_check_revoke(scope.row.orderId)" v-if="scope.row.inWarehouseState == 218">{{ $t("撤销到仓") }}</el-button> <el-button type="primary" size="small" @click="order_warehouse_check_revoke(scope.row.orderId)" v-if="scope.row.inWarehouseState == 218">{{ $t("撤销到仓") }}</el-button>
<el-button plain type="primary" size="small" @click="order_warehouse_check_force(scope.row.orderId)" v-if="scope.row.installNum > scope.row.unloadNum">{{ $t("强制到仓") }}</el-button> <el-button type="primary" size="small" @click="order_warehouse_check_force(scope.row.orderId)" v-if="scope.row.inWarehouseState == 218 && scope.row.installNum > scope.row.unloadNum">{{ $t("强制到仓") }}</el-button>
<el-button plain type="primary" size="small" @click="$router.push('/order/warehousingTo-update?id=' + scope.row.orderId)" v-if="scope.row.inWarehouseState == 218">{{ $t("到仓修改") }}</el-button> <el-button type="primary" size="small" @click="$router.push('/order/warehousingTo-update?id=' + scope.row.orderId)" v-if="scope.row.inWarehouseState == 218">{{ $t("到仓修改") }}</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<el-col :span="12" v-else> <el-col :span="12" v-else>
<el-form-item :label="$t('联系人')" required> <el-form-item :label="$t('联系人')" required>
<div class="contact"> <div class="contact">
<el-input :value="form.contactName" placeholder="" disabled /> <el-input v-model="form.contactName" :value="form.customerContactsId" placeholder="" disabled />
<img src="@/assets/svg/contacts.svg" class="phonebook" @click="ChooseContactDialog = true" /> <img src="@/assets/svg/contacts.svg" class="phonebook" @click="ChooseContactDialog = true" />
</div> </div>
</el-form-item> </el-form-item>
...@@ -268,12 +268,14 @@ export default { ...@@ -268,12 +268,14 @@ export default {
console.log(item) console.log(item)
if (item) { if (item) {
this.form.contactId = item.customerContactsId
this.form.contactName = item.contactsName this.form.contactName = item.contactsName
this.form.customerId = item.customerId this.form.customerId = item.customerId
this.form.contactPhone = "+" + item.areaCode + item.phoneNew this.form.contactPhone = "+" + item.areaCode + item.phoneNew
if (item.customerService) this.form.followUserId = item.customerService if (item.customerService) this.form.followUserId = item.customerService
if (item.customerNumber) this.form.customerNumber = item.customerNumber if (item.customerNumber) this.form.customerNumber = item.customerNumber
} else { } else {
this.form.contactId = null
this.form.contactName = null this.form.contactName = null
this.form.contactPhone = null this.form.contactPhone = null
} }
...@@ -283,6 +285,7 @@ export default { ...@@ -283,6 +285,7 @@ export default {
if (val) { if (val) {
for (const item of this.customerContactsList) { for (const item of this.customerContactsList) {
if (item.id == val) { if (item.id == val) {
this.form.contactId = item.id
this.form.contactName = item.name this.form.contactName = item.name
this.form.customerId = item.customerId this.form.customerId = item.customerId
this.form.contactPhone = "+" + item.areaCode + item.phoneNew this.form.contactPhone = "+" + item.areaCode + item.phoneNew
......
...@@ -362,7 +362,7 @@ ...@@ -362,7 +362,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('主营类别')"> <el-table-column :label="$t('主营类别')">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
{{ getProductTypeNames(row.productType) }} {{ getProductTypeNames(row.productTypes) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('主要竞争对手')" prop="competitorNames"> </el-table-column> <el-table-column :label="$t('主要竞争对手')" prop="competitorNames"> </el-table-column>
...@@ -519,15 +519,15 @@ ...@@ -519,15 +519,15 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item :label="$t('主营类别')" prop="productType"> <el-form-item :label="$t('主营类别')" prop="productTypes">
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="11"> <el-col :span="11">
<el-select v-model="form.productType" :placeholder="$t('请选择产品类别')"> <el-select v-model="form.productTypes" :placeholder="$t('请选择产品类别')">
<!-- <el-option :label="$t('请选择字典生成')" value="" />--> <!-- <el-option :label="$t('请选择字典生成')" value="" />-->
</el-select> </el-select>
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
<el-select v-model="form.productType" :placeholder="$t('请选择主营类别')"> <el-select v-model="form.productTypes" :placeholder="$t('请选择主营类别')">
<!-- <el-option :label="$t('请选择字典生成')" value="" />--> <!-- <el-option :label="$t('请选择字典生成')" value="" />-->
</el-select> </el-select>
</el-col> </el-col>
...@@ -1289,8 +1289,8 @@ export default { ...@@ -1289,8 +1289,8 @@ export default {
agentId: undefined, agentId: undefined,
company: undefined, company: undefined,
address: undefined, address: undefined,
productType: undefined, productTypes: undefined,
productId: undefined, productIds: undefined,
pickupPoint: undefined, pickupPoint: undefined,
memberId: undefined, memberId: undefined,
birthday: undefined, birthday: undefined,
......
...@@ -134,6 +134,12 @@ ...@@ -134,6 +134,12 @@
<el-button type="primary" @click="handleOrderReset">{{ $t("重置") }}</el-button> <el-button type="primary" @click="handleOrderReset">{{ $t("重置") }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="15" v-if="statisticsOrder">
<!-- 订单列表显示搜索条件对应箱数、仓库实测、收款方数、重量 -->
{{ $t("合计:{totalNum}箱,{totalVolume}m³(测) {totalChargeVolume}m³(重) {totalWeight}KG(测), {totalChargeWeight}kg(收费)", statisticsOrder) }}
</el-col>
</el-row>
</div> </div>
<el-descriptions :column="2"> <el-descriptions :column="2">
<el-descriptions-item :label="$t('海空联运/海运拼柜/海运整柜/专线空运')"> {{ orderStatisticsObj.hklyTotal || 0 }}/{{ orderStatisticsObj.hypgTotal || 0 }}/{{ orderStatisticsObj.hyzgTotal || 0 }}/{{ orderStatisticsObj.zxkyTotal || 0 }} </el-descriptions-item> <el-descriptions-item :label="$t('海空联运/海运拼柜/海运整柜/专线空运')"> {{ orderStatisticsObj.hklyTotal || 0 }}/{{ orderStatisticsObj.hypgTotal || 0 }}/{{ orderStatisticsObj.hyzgTotal || 0 }}/{{ orderStatisticsObj.zxkyTotal || 0 }} </el-descriptions-item>
...@@ -657,7 +663,21 @@ ...@@ -657,7 +663,21 @@
</template> </template>
<script> <script>
import { getCustomer, getCustomerSelect, getBrankByCustomer, levelLogPage, customerCreditLogPage, infoListOrderPage, orderStatistics, creditLogCreate, creditScoreStatistic, infoListReceiptPage, memberUserList, deleteCustomer } from "@/api/ecw/customer" import {
getCustomer,
getCustomerSelect,
getBrankByCustomer,
levelLogPage,
customerCreditLogPage,
infoListOrderPage,
orderStatistics,
creditLogCreate,
creditScoreStatistic,
infoListReceiptPage,
memberUserList,
deleteCustomer,
infoListStatisticsOrder
} from "@/api/ecw/customer"
import { getOfferPage as infoListOfferPage } from "@/api/ecw/offer" import { getOfferPage as infoListOfferPage } from "@/api/ecw/offer"
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"
...@@ -876,8 +896,8 @@ export default { ...@@ -876,8 +896,8 @@ export default {
agentId: undefined, agentId: undefined,
company: undefined, company: undefined,
address: undefined, address: undefined,
productType: undefined, productTypes: undefined,
productId: undefined, productIds: undefined,
pickupPoint: undefined, pickupPoint: undefined,
memberId: undefined, memberId: undefined,
birthday: undefined, birthday: undefined,
...@@ -932,6 +952,7 @@ export default { ...@@ -932,6 +952,7 @@ export default {
importances: [] importances: []
}, },
orderList: [], orderList: [],
statisticsOrder: {},
orderTotal: 0, orderTotal: 0,
infoListOfferFrom: { infoListOfferFrom: {
pageNo: 1, pageNo: 1,
...@@ -1105,6 +1126,11 @@ export default { ...@@ -1105,6 +1126,11 @@ export default {
if (this.destWarehouseId != null && this.destWarehouseId != "") { if (this.destWarehouseId != null && this.destWarehouseId != "") {
queryParams.destWarehouseIds = this.destWarehouseId queryParams.destWarehouseIds = this.destWarehouseId
} }
infoListStatisticsOrder({ customerDetailId: this.id, ...this.queryParams, ...queryParams }).then((r) => {
if (r.code === 0) {
this.statisticsOrder = r.data
}
})
infoListOrderPage({ customerDetailId: this.id, ...this.queryParams, ...queryParams }).then((r) => { infoListOrderPage({ customerDetailId: this.id, ...this.queryParams, ...queryParams }).then((r) => {
if (r.code === 0) { if (r.code === 0) {
this.orderList = r.data.list this.orderList = r.data.list
......
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card> <el-card>
<div slot="header" class="card-title">{{$t('报价单详情')}}</div> <div slot="header" class="card-title">{{$t('报价单')}}{{list.number}} - <dict-tag :type="DICT_TYPE.ECW_OFFER_STATUS" :value="list.status" /></div>
<!-- 列表 --> <!-- 列表 -->
<div class="offer-header"> <div class="offer-header">
<span style="font-size: 15px;">{{$t('报价单号')}}{{list.number}} - <dict-tag :type="DICT_TYPE.ECW_OFFER_STATUS" :value="list.status" /></span> <span style="font-size: 15px;"></span>
<div class="btns"> <div class="btns">
<el-button v-hasPermi="['ecw:offer:update']" size="mini" type="primary" v-if="[4,5,6].indexOf(list.status) == -1" @click="$router.push('edit?id=' + offerId)">{{$t('编辑')}}</el-button> <el-button v-hasPermi="['ecw:offer:update']" size="mini" type="primary" v-if="[4,5,6].indexOf(list.status) == -1" @click="$router.push('edit?id=' + offerId)">{{$t('编辑')}}</el-button>
<el-button v-hasPermi="['ecw:offer:loglist']" type="primary" v-if="[1,3,7].indexOf(list.status) > -1" size="mini" @click="handleAdd">{{$t('跟进')}}</el-button> <el-button v-hasPermi="['ecw:offer:loglist']" type="primary" v-if="[1,3,7].indexOf(list.status) > -1" size="mini" @click="handleAdd">{{$t('跟进')}}</el-button>
......
...@@ -165,7 +165,7 @@ import { ...@@ -165,7 +165,7 @@ import {
warehouseAreaPositionList warehouseAreaPositionList
} from "@/api/ecw/batchSingleApplication"; } from "@/api/ecw/batchSingleApplication";
import { import {
applicationGetOrderByProcessId, applicationGetOrderByProcessId, approvalFeeApplicationGet,
feeApplicationGet, feeApplicationGet,
getOrder, getOrder,
getOrderPage, getOrderPage,
...@@ -229,10 +229,12 @@ export default { ...@@ -229,10 +229,12 @@ export default {
getChannelList().then(r => this.channelList = r.data); getChannelList().then(r => this.channelList = r.data);
warehouseAreaPositionList().then(r => this.warehouseList = r.data) warehouseAreaPositionList().then(r => this.warehouseList = r.data)
if(this.type === 2){ if(this.type === 2){
feeApplicationGet({id:this.processId}).then(r => { // feeApplicationGet({id:this.processId}).then(r => {
approvalFeeApplicationGet({id:this.processId}).then(r => {
if(r.code === 0){ if(r.code === 0){
this.processInstanceID = r.data.bpmProcessId; // this.processInstanceID = r.data.bpmProcessId;
this.getDetails() // this.getDetails()
this.FeeDetails = r.data
} }
}) })
}else { }else {
...@@ -268,13 +270,13 @@ export default { ...@@ -268,13 +270,13 @@ export default {
}); });
break; break;
case 2: // case 2:
// 费用申请 // // 费用申请
applicationGetOrderByProcessId({processId:this.processInstanceID}).then(r => { // applicationGetOrderByProcessId({processId:this.processInstanceID}).then(r => {
this.FeeDetails = r.data // this.FeeDetails = r.data
console.log(this.FeeDetails,'FeeDetails') // console.log(this.FeeDetails,'FeeDetails')
}) // })
break; // break;
case 3: case 3:
//退仓 //退仓
warehouseApprovalGetByFormId({formId:this.processInstanceID}).then( res => { warehouseApprovalGetByFormId({formId:this.processInstanceID}).then( res => {
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
> >
<el-button <el-button
type="text" type="text"
v-if="scope.row.id && scope.row.applicationFee === 0" v-if="scope.row.id && scope.row.applicationFee === 0 && scope.row.status === 2 && !scope.row.editMode"
@click="deleteByFeeIsZero(scope.row.id)" @click="deleteByFeeIsZero(scope.row.id)"
>删除 >删除
</el-button </el-button
......
...@@ -192,12 +192,6 @@ ...@@ -192,12 +192,6 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<div v-if="edit && order.status !== 3">
<h2>{{ $t("审批流程") }}</h2>
<work-flow xmlkey="free_apply" v-model="selectedUsers" />
<!-- <div>选择的用户:{{selectedUsers}}</div>-->
</div>
<span slot="footer"> <span slot="footer">
<el-button @click="handleClose">{{ $t("关 闭") }}</el-button> <el-button @click="handleClose">{{ $t("关 闭") }}</el-button>
<el-button type="primary" :loading="submitting" @click="handleSubmit()">{{ $t("确认修改") }}</el-button> <el-button type="primary" :loading="submitting" @click="handleSubmit()">{{ $t("确认修改") }}</el-button>
...@@ -239,9 +233,8 @@ import ProductSelector from "@/components/ProductSelector" ...@@ -239,9 +233,8 @@ import ProductSelector from "@/components/ProductSelector"
import WarehouseAreaSelect from "@/components/WarehouseAreaSelect" import WarehouseAreaSelect from "@/components/WarehouseAreaSelect"
import { getFeeTypeByOrderProduct, getProductBrankPage } from "@/api/ecw/productBrank" import { getFeeTypeByOrderProduct, getProductBrankPage } from "@/api/ecw/productBrank"
import { cancelProcessInstance } from "@/api/bpm/processInstance" import { cancelProcessInstance } from "@/api/bpm/processInstance"
import WorkFlow from "@/components/WorkFlow"
import { DICT_TYPE, getDictDataLabel, getDictDatas } from "@/utils/dict" import { DICT_TYPE, getDictDataLabel, getDictDatas } from "@/utils/dict"
import { orderWarehouseIn, orderWarehouseInUpdateApply, warehousePictureDelete, warehousePictureList, order_warehouse_check_update } from "@/api/ecw/order" import { orderWarehouseIn, orderWarehouseInUpdateApply, warehousePictureDelete, warehousePictureList, order_warehouse_check_update, order_warehouse_check_query } from "@/api/ecw/order"
import { getProductAttrList } from "@/api/ecw/productAttr" import { getProductAttrList } from "@/api/ecw/productAttr"
import { getProductTypeList } from "@/api/ecw/productType" import { getProductTypeList } from "@/api/ecw/productType"
import { addProduct } from "@/api/ecw/product" import { addProduct } from "@/api/ecw/product"
...@@ -255,8 +248,7 @@ export default { ...@@ -255,8 +248,7 @@ export default {
WarehouseRecordDetail, WarehouseRecordDetail,
ImageAndVideoUpload, ImageAndVideoUpload,
ProductSelector, ProductSelector,
WarehouseAreaSelect, WarehouseAreaSelect
WorkFlow
}, },
props: { props: {
...@@ -423,8 +415,6 @@ export default { ...@@ -423,8 +415,6 @@ export default {
// // quantityAll: [{required: true, message: this.$t("数量不能为空"), trigger: "change"}] // // quantityAll: [{required: true, message: this.$t("数量不能为空"), trigger: "change"}]
}, },
selectedUsers: undefined,
// 入仓修改正在审核中 // 入仓修改正在审核中
isEditing: false, isEditing: false,
// 审批业务id // 审批业务id
...@@ -456,7 +446,7 @@ export default { ...@@ -456,7 +446,7 @@ export default {
}, },
methods: { methods: {
init() { async init() {
this.form.brandType = this.warehousing.brandType this.form.brandType = this.warehousing.brandType
this.form.orderId = this.warehousing.orderId this.form.orderId = this.warehousing.orderId
this.form.orderItemId = this.warehousing.orderNo this.form.orderItemId = this.warehousing.orderNo
...@@ -484,13 +474,29 @@ export default { ...@@ -484,13 +474,29 @@ export default {
if (this.form.usageIds.length > 0 && this.form.usageIds[0] === "") { if (this.form.usageIds.length > 0 && this.form.usageIds[0] === "") {
this.usageIds.splice(0, 1) this.usageIds.splice(0, 1)
} }
this.warehousing.orderWarehouseInBackItemDoList.forEach((e) => { // this.warehousing.orderWarehouseInBackItemDoList.forEach((e) => {
// let bg = {}
// if (e.boxGauge) {
// const boxGauge = e.boxGauge.split("*")
// // e.boxGauge1 = boxGauge[0]
// // e.boxGauge2 = boxGauge[1]
// // e.boxGauge3 = boxGauge[2]
// bg = {
// boxGauge1: boxGauge[0],
// boxGauge2: boxGauge[1],
// boxGauge3: boxGauge[2]
// }
// }
// this.form.table.push({ ...e, ...bg })
// })
let r = await order_warehouse_check_query(this.warehousing.orderItemId)
console.log(r)
r.data.forEach((e) => {
let bg = {} let bg = {}
if (e.boxGauge) { if (e.boxGauge) {
const boxGauge = e.boxGauge.split("*") const boxGauge = e.boxGauge.split("*")
// e.boxGauge1 = boxGauge[0]
// e.boxGauge2 = boxGauge[1]
// e.boxGauge3 = boxGauge[2]
bg = { bg = {
boxGauge1: boxGauge[0], boxGauge1: boxGauge[0],
boxGauge2: boxGauge[1], boxGauge2: boxGauge[1],
...@@ -570,14 +576,13 @@ export default { ...@@ -570,14 +576,13 @@ export default {
prodId: this.form.prodId, prodId: this.form.prodId,
warehouseCheckProdAttrIds: this.form.warehouseCheckProdAttrIds.join(","), warehouseCheckProdAttrIds: this.form.warehouseCheckProdAttrIds.join(","),
usageIds: this.form.usageIds.join(","), usageIds: this.form.usageIds.join(","),
orderWarehouseInUpdateItemDoList: this.form.table.map((e) => { updates: this.form.table.map((e) => {
return { return {
...e, ...e,
boxGauge: e.boxGauge1 + "*" + e.boxGauge2 + "*" + e.boxGauge3, boxGauge: e.boxGauge1 + "*" + e.boxGauge2 + "*" + e.boxGauge3,
orderLocationCreateReqVOList: e.orderLocationBackVOList orderLocationCreateReqVOList: e.orderLocationBackVOList
} }
}), })
copyUserId: this.selectedUsers
}) })
.then((r) => { .then((r) => {
this.submitting = false this.submitting = false
......
...@@ -60,24 +60,6 @@ ...@@ -60,24 +60,6 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-card v-if="order.parentOrderId" style="margin-top: 20px">
<div slot="header" class="clearfix">
<span style="font-size: 18px">{{ $t("标签箱号") }}</span>
</div>
<div v-for="(item, index) in label.orderLabelDtoList" :key="index" style="margin-bottom: 10px">
<el-input-number v-model="item.start" controls-position="right"></el-input-number>
-
<el-input-number v-model="item.end" controls-position="right"></el-input-number>
<el-button icon="el-icon-minus" circle v-show="index !== 0" @click="label.orderLabelDtoList.splice(index, 1)" style="margin-left: 10px"></el-button>
<el-button icon="el-icon-plus" circle @click="handleLabelAdd(index)"></el-button>
</div>
<div style="text-align: center">
<el-button type="primary" @click="handleLabelSubmit">{{ $t("修改箱号") }}</el-button>
</div>
</el-card>
<h2 v-if="orderSpecialNeeds.length > 0">{{ $t("特殊需求") }}</h2>
<el-form ref="form" :model="form" label-width="200px"> <el-form ref="form" :model="form" label-width="200px">
<el-form-item :label="$i18n.locale === 'en_US' ? item.labelEn : item.label" v-for="(item, index) in orderSpecialNeeds" :key="item.value" style="width: 600px"> <el-form-item :label="$i18n.locale === 'en_US' ? item.labelEn : item.label" v-for="(item, index) in orderSpecialNeeds" :key="item.value" style="width: 600px">
<el-input-number v-model="form.orderSpecialNeedReceivableReqVoList[index].receivableMoney" type="number" :min="0" step-strictly :placeholder="$t('请输入') + ($i18n.locale === 'en_US' ? item.labelEn : item.label)"></el-input-number> <el-input-number v-model="form.orderSpecialNeedReceivableReqVoList[index].receivableMoney" type="number" :min="0" step-strictly :placeholder="$t('请输入') + ($i18n.locale === 'en_US' ? item.labelEn : item.label)"></el-input-number>
...@@ -111,7 +93,7 @@ ...@@ -111,7 +93,7 @@
</template> </template>
<script> <script>
import { getCurrencyList } from "@/api/ecw/currency" import { getCurrencyList } from "@/api/ecw/currency"
import { getLabelByOrder, getLabelWaitInByOrder, getOrder, getOrderWarehouseIn, getSpecialListByOrderId, listByOrderId, orderWarehouseInFinish, orderWarehouseInUpdateLabel, rollbackDelete, warehousePictureList } from "@/api/ecw/order" import { getLabelWaitInByOrder, getOrder, getOrderWarehouseIn, getSpecialListByOrderId, listByOrderId, orderWarehouseInFinish, orderWarehouseInUpdateLabel, rollbackDelete, warehousePictureList } from "@/api/ecw/order"
import orderBaseInfo from "@/components/OrderBaseInfo" import orderBaseInfo from "@/components/OrderBaseInfo"
import WarehouseAreaDialog from "@/components/WarehouseAreaDialog" import WarehouseAreaDialog from "@/components/WarehouseAreaDialog"
import { DICT_TYPE } from "@/utils/dict" import { DICT_TYPE } from "@/utils/dict"
...@@ -229,39 +211,6 @@ export default { ...@@ -229,39 +211,6 @@ export default {
return arr.indexOf(state) == -1 return arr.indexOf(state) == -1
} }
}, },
handleLabelSubmit() {
orderWarehouseInUpdateLabel({
...this.label,
orderId: this.orderId
}).then((r) => {
if (r.code === 0) {
this.$message.success(r.msg || this.$t("修改标签箱号成功"))
}
})
},
// 箱号标签回显
getLabelByOrder() {
getLabelByOrder(this.orderId).then((r) => {
if (r.code === 0 && !!r.data && r.data.length > 0) {
this.label.orderLabelDtoList = r.data
} else {
// 没有历史数据,查默认值
getLabelWaitInByOrder(this.orderId).then((r) => {
console.log(r)
if (r.code === 0 && !!r.data) {
this.label.orderLabelDtoList = [r.data]
}
})
}
})
},
handleLabelAdd(index) {
this.label.orderLabelDtoList.splice(index + 1, 0, {
end: "",
start: ""
})
},
getTowSum() { getTowSum() {
// let sumVolume = 0 // let sumVolume = 0
// let sumWeight = 0 // let sumWeight = 0
...@@ -279,7 +228,6 @@ export default { ...@@ -279,7 +228,6 @@ export default {
this.getTowSum() this.getTowSum()
}) })
.then(() => { .then(() => {
this.getLabelByOrder()
this.getWarehousePictureList() this.getWarehousePictureList()
}) })
}, },
......
...@@ -1601,6 +1601,10 @@ export default { ...@@ -1601,6 +1601,10 @@ export default {
resetQuery() { resetQuery() {
this.dateRangeCreateTime = []; this.dateRangeCreateTime = [];
this.resetForm("queryForm"); this.resetForm("queryForm");
this.destCountryId = null
this.destWarehouseId = null
this.objectiveId = null
this.handleQuery(); this.handleQuery();
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
......
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