Commit 2a6cd853 authored by 我在何方's avatar 我在何方
parents 6cbbfe7d bc3f84b4
...@@ -5,7 +5,7 @@ NODE_ENV = 'production' ...@@ -5,7 +5,7 @@ NODE_ENV = 'production'
VUE_APP_TITLE = 捷道管理系统 VUE_APP_TITLE = 捷道管理系统
# 捷道管理系统/开发环境 # 捷道管理系统/开发环境
VUE_APP_BASE_API = 'http://jd.admtest.jdshangmen.com' VUE_APP_BASE_API = 'https://jd.admtest.jdshangmen.com'
# VUE_APP_BASE_API = '/api' # VUE_APP_BASE_API = '/api'
# 路由懒加载 # 路由懒加载
......
...@@ -5,7 +5,7 @@ ENV = 'development' ...@@ -5,7 +5,7 @@ ENV = 'development'
VUE_APP_TITLE = 捷道管理系统 VUE_APP_TITLE = 捷道管理系统
# 捷道管理系统/开发环境 # 捷道管理系统/开发环境
VUE_APP_BASE_API = 'http://jd.admtest.jdshangmen.com' VUE_APP_BASE_API = 'https://jd.admtest.jdshangmen.com'
# VUE_APP_BASE_API = '/api' # VUE_APP_BASE_API = '/api'
# 路由懒加载 # 路由懒加载
......
...@@ -364,6 +364,36 @@ export function abnormalCreate(data) { ...@@ -364,6 +364,36 @@ export function abnormalCreate(data) {
}); });
} }
/**
* 单个费用重置
*
* @export
* @param {*} data
* @return {*}
*/
export function resetById(params) {
return request({
url: "/ecw/box-customs-extra-cost/resetById",
method: "get",
params,
});
}
/**
* 出货单费用重置
*
* @export
* @param {*} data
* @return {*}
*/
export function resetByShipmentId(params) {
return request({
url: "ecw/box-customs-extra-cost/resetByShipmentId",
method: "get",
params,
});
}
/***************************** 预装 start **********************************/ /***************************** 预装 start **********************************/
/** /**
......
...@@ -102,14 +102,14 @@ ...@@ -102,14 +102,14 @@
</el-form> </el-form>
</el-row> </el-row>
<el-row> <el-row>
<el-table :data="costOrderList"> <el-table :data="costOrderList" border class="table-inputNumber">
<el-table-column :label="$t('订单号')" align="center" prop="orderNo" /> <el-table-column :label="$t('订单号')" align="center" prop="orderNo" />
<el-table-column :label="$t('报关费用')" align="center" prop="fee"> <el-table-column :label="$t('报关费用')" align="center" prop="fee" width="220">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input-number v-model="scope.row.fee" controls-position="right" :min="1"></el-input-number> <el-input-number v-model="scope.row.fee" controls-position="right" :min="1"></el-input-number>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width"> <el-table-column :label="$t('操作')" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" size="small" @click="createExtraCost(scope.row)">{{$t('确定')}}</el-button> <el-button type="primary" size="small" @click="createExtraCost(scope.row)">{{$t('确定')}}</el-button>
</template> </template>
...@@ -123,15 +123,15 @@ ...@@ -123,15 +123,15 @@
</div> </div>
</el-row> </el-row>
<el-row> <el-row>
<el-table :data="costList"> <el-table :data="costList" border height="300px" class="table-inputNumber">
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column :label="$t('订单号')" align="center" prop="orderNo" /> <el-table-column :label="$t('订单号')" align="center" prop="orderNo" />
<el-table-column :label="$t('报关费用')" align="center" prop="fee" width="220px"> <el-table-column :label="$t('报关费用')" align="center" prop="fee" width="220">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input-number v-model="scope.row.fee" controls-position="right" :min="1"></el-input-number> <el-input-number v-model="scope.row.fee" controls-position="right" :min="1"></el-input-number>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width"> <el-table-column :label="$t('操作')" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" size="small" @click="updateExtraCost(scope.row)">{{$t('修改')}}</el-button> <el-button type="primary" size="small" @click="updateExtraCost(scope.row)">{{$t('修改')}}</el-button>
<el-button size="small" @click="restCostList(scope.row)">{{$t('重置')}}</el-button> <el-button size="small" @click="restCostList(scope.row)">{{$t('重置')}}</el-button>
...@@ -153,6 +153,8 @@ import { ...@@ -153,6 +153,8 @@ import {
extraCostCreate, extraCostCreate,
extraCostUpdate, extraCostUpdate,
approvalCancel, approvalCancel,
resetById,
resetByShipmentId,
} from "@/api/ecw/boxSea"; } from "@/api/ecw/boxSea";
import { import {
formatNumberString, formatNumberString,
...@@ -180,9 +182,15 @@ export default { ...@@ -180,9 +182,15 @@ export default {
cusDeclarationObj: {}, cusDeclarationObj: {},
// 校验 // 校验
rules: { rules: {
dcBoxWgt: [{ required: true, message: this.$t("必填"), trigger: "change" }], dcBoxWgt: [
dcGoodsWgt: [{ required: true, message: this.$t("必填"), trigger: "change" }], { required: true, message: this.$t("必填"), trigger: "change" },
dcCustomsType: [{ required: true, message: this.$t("必填"), trigger: "change" }], ],
dcGoodsWgt: [
{ required: true, message: this.$t("必填"), trigger: "change" },
],
dcCustomsType: [
{ required: true, message: this.$t("必填"), trigger: "change" },
],
dcCustomsStatus: [ dcCustomsStatus: [
{ required: true, message: this.$t("必填"), trigger: "change" }, { required: true, message: this.$t("必填"), trigger: "change" },
], ],
...@@ -330,24 +338,23 @@ export default { ...@@ -330,24 +338,23 @@ export default {
shipmentId: this.shipmentObj.id, shipmentId: this.shipmentObj.id,
orderNo: this.orderNo, orderNo: this.orderNo,
}).then((res) => { }).then((res) => {
this.costOrderList = [ serviceMsg(res, this).then(() => {
{ this.costOrderList = [
orderNo: this.orderNo, {
orderId: res.data, orderNo: this.orderNo,
}, orderId: res.data,
]; },
this.searchCostList(res.data); ];
this.searchCostList();
});
}); });
}, },
/* 查询额外费用订单 */ /* 查询额外费用订单 */
searchCostList(orderId) { searchCostList() {
extraCostList({ extraCostList({
shipmentId: this.shipmentObj.id, shipmentId: this.shipmentObj.id,
orderId: orderId,
}).then((res) => { }).then((res) => {
this.costList = res.data.map((item) => { this.costList = res.data;
return { originalFee: item.fee, ...item };
});
}); });
}, },
/* 创建额外费用 */ /* 创建额外费用 */
...@@ -363,7 +370,7 @@ export default { ...@@ -363,7 +370,7 @@ export default {
shipmentId: this.shipmentObj.id, shipmentId: this.shipmentObj.id,
}).then((res) => { }).then((res) => {
serviceMsg(res, this).then(() => { serviceMsg(res, this).then(() => {
this.searchCostList(row.orderId); this.searchCostList();
}); });
}); });
}, },
...@@ -375,27 +382,25 @@ export default { ...@@ -375,27 +382,25 @@ export default {
} }
extraCostUpdate(row).then((res) => { extraCostUpdate(row).then((res) => {
serviceMsg(res, this).then(() => { serviceMsg(res, this).then(() => {
this.searchCostList(row.orderId); this.searchCostList();
}); });
}); });
}, },
/* 重置 */ /* 重置 */
restCostList(row) { restCostList(row) {
this.costList = this.costList.map((item) => { if (row) {
if (row && row.id === item.id) { resetById({ id: row.id }).then((res) => {
return { serviceMsg(res, this).then(() => {
...item, this.searchCostList();
fee: item.originalFee, });
}; });
} } else {
if (!row) { resetByShipmentId({ id: this.shipmentObj.id }).then((res) => {
return { serviceMsg(res, this).then(() => {
...item, this.searchCostList();
fee: item.originalFee, });
}; });
} }
return item;
});
}, },
/** 取消 */ /** 取消 */
cancel(type) { cancel(type) {
...@@ -416,9 +421,10 @@ export default { ...@@ -416,9 +421,10 @@ export default {
this.$set( this.$set(
this.dialogConfig, this.dialogConfig,
"title", "title",
`${this.shipmentObj.selfNo} ` + this.$t('报关费用') `${this.shipmentObj.selfNo} ` + this.$t("报关费用")
); );
this.$set(this.dialogConfig, "dialogVisible", true); this.$set(this.dialogConfig, "dialogVisible", true);
this.searchCostList();
}, },
// 计算VGM重量 // 计算VGM重量
calcVGM(dcBoxWgt, dcGoodsWgt) { calcVGM(dcBoxWgt, dcGoodsWgt) {
...@@ -477,7 +483,9 @@ export default { ...@@ -477,7 +483,9 @@ export default {
}, },
/* 下载报关单 */ /* 下载报关单 */
downloadCusFile() { downloadCusFile() {
downloadFileByUrl('downloadCustomFiles', { shipmentId: this.shipmentObj.id }); downloadFileByUrl("downloadCustomFiles", {
shipmentId: this.shipmentObj.id,
});
}, },
}, },
watch: { watch: {
...@@ -523,7 +531,9 @@ export default { ...@@ -523,7 +531,9 @@ export default {
} = this.shipmentObj; } = this.shipmentObj;
const { dcCheckStatus } = customsInfo; const { dcCheckStatus } = customsInfo;
if (checkExamineStatus === 1) { if (checkExamineStatus === 1) {
return dcCheckStatus === 1 ? this.$t("退场审核中") : this.$t("部分退场审核中"); return dcCheckStatus === 1
? this.$t("退场审核中")
: this.$t("部分退场审核中");
} }
if (checkExamineStatus === 2 && checkDealStatus === 0) { if (checkExamineStatus === 2 && checkDealStatus === 0) {
return dcCheckStatus === 1 return dcCheckStatus === 1
...@@ -605,5 +615,10 @@ export default { ...@@ -605,5 +615,10 @@ export default {
text-align: right; text-align: right;
} }
} }
.el-table.table-inputNumber {
.cell {
overflow: visible;
}
}
} }
</style> </style>
...@@ -581,6 +581,20 @@ export default { ...@@ -581,6 +581,20 @@ export default {
createGoods(params).then((res) => { createGoods(params).then((res) => {
serviceMsg(res, this).then(() => { serviceMsg(res, this).then(() => {
this.queryAllData(); this.queryAllData();
}).catch(() => {
if(res.code === 555) {
this.$confirm(res.msg, this.$t("提示"), {
type: "warning",
})
.then((_) => {
createGoods({...params, relationStatus: 1}).then((res) => {
serviceMsg(res, this).then(() => {
this.queryAllData();
})
})
})
.catch((_) => {});
}
}); });
}); });
} else { } else {
......
...@@ -46,7 +46,6 @@ import { listUser } from "@/api/system/user"; ...@@ -46,7 +46,6 @@ import { listUser } from "@/api/system/user";
// 这里引入的数据切换语言后要刷新才生效,优化办法是label同时配备labelEn字段,然后再页面上用$l函数调用 // 这里引入的数据切换语言后要刷新才生效,优化办法是label同时配备labelEn字段,然后再页面上用$l函数调用
import { getSeaStatus, getStatusName, seaBaseData } from "./utils"; import { getSeaStatus, getStatusName, seaBaseData } from "./utils";
console.log(seaBaseData())
/** /**
* 海运操作主页面 * 海运操作主页面
*/ */
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<!-- 列表 --> <!-- 列表 -->
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column :label="$t('客货投诉')" align="center" prop="code" > <el-table-column :label="$t('投诉编号')" align="center" prop="code" >
</el-table-column> </el-table-column>
<el-table-column :label="$t('投诉类型')" align="center" prop="type"> <el-table-column :label="$t('投诉类型')" align="center" prop="type">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -85,8 +85,9 @@ ...@@ -85,8 +85,9 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('赔付金额')" align="center" prop="handleAt" width="180"> <el-table-column :label="$t('赔付金额')" align="center" prop="handleAt" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.indemnity || '0.00'}} {{ scope.row.status === 3 ? scope.row.indemnity : '/'}}
<dict-tag <dict-tag
v-if="scope.row.status === 3"
:value="scope.row.currencyUnit" :value="scope.row.currencyUnit"
:type="DICT_TYPE.COMMISSION_CURRENCY_TYPE"></dict-tag> :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE"></dict-tag>
</template> </template>
......
...@@ -105,6 +105,11 @@ ...@@ -105,6 +105,11 @@
v-hasPermi="['ecw:customer:update']">{{$t('确认接收')}}</el-button> v-hasPermi="['ecw:customer:update']">{{$t('确认接收')}}</el-button>
<el-button size="mini" type="text" @click="handOver(scope.row)" <el-button size="mini" type="text" @click="handOver(scope.row)"
v-hasPermi="['ecw:customer:update']">{{$t('移交')}}</el-button> v-hasPermi="['ecw:customer:update']">{{$t('移交')}}</el-button>
<router-link style="margin: 0 10px;" to="/offer/create">
<el-button size="mini" type="text">
{{$t('报价')}}
</el-button>
</router-link>
<el-button size="mini" type="text" @click="handleUpdate(scope.row)" <el-button size="mini" type="text" @click="handleUpdate(scope.row)"
v-hasPermi="['ecw:customer:update']">{{$t('完善')}}</el-button> v-hasPermi="['ecw:customer:update']">{{$t('完善')}}</el-button>
</template> </template>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="120px" inline :validate-on-rule-change="false"> <el-form ref="form" :model="form" :rules="rules" label-width="120px" inline :validate-on-rule-change="false">
<el-card> <el-card>
<div slot="header" class="card-title">{{$t('新建报价单')}}</div> <div slot="header" class="card-title">{{$route.path.indexOf('create') > -1 ? $t('新建报价单') : $t('编辑报价单')}}</div>
<el-form-item :label="$t('所属人')" prop="relation"> <el-form-item :label="$t('所属人')" prop="relation">
<el-radio-group v-model="form.relation"> <el-radio-group v-model="form.relation">
<el-radio :label="1">{{$t('发件人')}}</el-radio> <el-radio :label="1">{{$t('发件人')}}</el-radio>
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,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}">
<el-input v-model.number="row.quantity" @input="calculationPrice" :disabled="!canAddProduct" /> <el-input v-model="row.quantity" @input="calculationPrice" :disabled="!canAddProduct" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('总体积') + '(m³)'" width="100px"> <el-table-column :label="$t('总体积') + '(m³)'" width="100px">
...@@ -871,6 +871,7 @@ export default { ...@@ -871,6 +871,7 @@ export default {
"lineId": item.lineId, "lineId": item.lineId,
"prodId": item.prodId, "prodId": item.prodId,
"num": item.num, "num": item.num,
"quantity": item.quantity,
"boxGauge": item.boxGauge, "boxGauge": item.boxGauge,
"volume": item.volume, "volume": item.volume,
"transportId": item.transportId, "transportId": item.transportId,
...@@ -891,11 +892,12 @@ export default { ...@@ -891,11 +892,12 @@ export default {
}) })
}, },
onContactChoose(contact){ onContactChoose(contact){
console.log('选择联系人', contact) if(!contact) return
if(!this.contactChooseType && !this.quickCreateType) return if(!this.contactChooseType && !this.quickCreateType) return
if(!this.contactChooseType && this.quickCreateType){ if(!this.contactChooseType && this.quickCreateType){
this.contactChooseType = this.quickCreateType == 0 ? 'consignor' : 'consignee' this.contactChooseType = this.quickCreateType == 0 ? 'consignor' : 'consignee'
} }
this.$set(this.form, this.contactChooseType + 'Company', contact.company) this.$set(this.form, this.contactChooseType + 'Company', contact.company)
this.$set(this.form, this.contactChooseType + 'Id', contact.customerContactsId) this.$set(this.form, this.contactChooseType + 'Id', contact.customerContactsId)
this.$set(this.form, this.contactChooseType + 'CountryCode', contact.areaCode) this.$set(this.form, this.contactChooseType + 'CountryCode', contact.areaCode)
......
...@@ -50,7 +50,12 @@ ...@@ -50,7 +50,12 @@
<el-form-item :label="$t('唛头')" prop="marks"> <el-form-item :label="$t('唛头')" prop="marks">
<el-input v-model="queryParams.marks" placeholder="唛头" clearable @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.marks" placeholder="唛头" clearable @keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('外部仓')" prop="number">
<el-select v-model="queryParams.isExternalWarehouse" :placeholder="$t('请选择')" clearable @change="handleQuery">
<el-option :label="$t('外部仓')" :value="1"></el-option>
<el-option :label="$t('自有仓')" :value="0"></el-option>
</el-select>
</el-form-item>
<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 type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
{{order.isExternalWarehouse ? $t('外部仓') : $t('自有仓') }} {{order.isExternalWarehouse ? $t('外部仓') : $t('自有仓') }}
<template v-for="(item, index) in order.externalWarehouseDtoList" > <template v-for="(item, index) in order.externalWarehouseDtoList" >
<div v-if="item.estLoadingTime || item.loadingAddress" :key="index"> <div v-if="item.estLoadingTime || item.loadingAddress" :key="index">
<!-- {{$t('装柜时间')}}{{item.estLoadingTime}} --> {{$t('装柜时间')}}{{item.estLoadingTime}}
{{$t('装柜地址')}}{{item.loadingAddress}} {{$t('装柜地址')}}{{item.loadingAddress}}
</div> </div>
</template> </template>
......
...@@ -305,7 +305,7 @@ ...@@ -305,7 +305,7 @@
</el-form-item> </el-form-item>
<div v-if="form.isExternalWarehouse" class="pl-50"> <div v-if="form.isExternalWarehouse" class="pl-50">
<div v-for="(item, index) in form.externalWarehouseDtoList" class="flex" :key="index"> <div v-for="(item, index) in form.externalWarehouseDtoList" class="flex" :key="index">
<!-- <div class="w-300"> <div class="w-300">
<el-form-item :label="$t('装货时间')" <el-form-item :label="$t('装货时间')"
:prop="'externalWarehouseDtoList.' + index + '.estLoadingTime'" :prop="'externalWarehouseDtoList.' + index + '.estLoadingTime'"
:rules="{ :rules="{
...@@ -314,7 +314,7 @@ ...@@ -314,7 +314,7 @@
> >
<el-date-picker v-model="item.estLoadingTime" value-format="yyyy-MM-dd HH:mm:ss" class="w-200"></el-date-picker> <el-date-picker v-model="item.estLoadingTime" value-format="yyyy-MM-dd HH:mm:ss" class="w-200"></el-date-picker>
</el-form-item> </el-form-item>
</div> --> </div>
<div class="w-300"> <div class="w-300">
<el-form-item :label="$t('装货地址')" <el-form-item :label="$t('装货地址')"
:prop="'externalWarehouseDtoList.' + index + '.loadingAddress'" :prop="'externalWarehouseDtoList.' + index + '.loadingAddress'"
...@@ -330,7 +330,7 @@ ...@@ -330,7 +330,7 @@
</div> </div>
</div> </div>
</div> </div>
<div> <div v-if="!form.isExternalWarehouse">
<el-form-item :label="$t('预计送货日期')" prop="deliveryDate"> <el-form-item :label="$t('预计送货日期')" prop="deliveryDate">
<el-date-picker v-model="form.deliveryDate" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> <el-date-picker v-model="form.deliveryDate" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-form-item> </el-form-item>
...@@ -806,21 +806,26 @@ export default { ...@@ -806,21 +806,26 @@ export default {
this.form.type = this.form.type ? this.form.type.split(',').filter(item => item != '') : [] this.form.type = this.form.type ? this.form.type.split(',').filter(item => item != '') : []
this.form.packageTypeArr = this.form.packageType ? this.form.packageType.split(',').filter(item => item != '') : [] this.form.packageTypeArr = this.form.packageType ? this.form.packageType.split(',').filter(item => item != '') : []
this.$set(this.form, 'consignorCompany', res.data.consignorVO.company) if(res.data.consignorVO){
this.$set(this.form, 'consignorContactsId', res.data.consignorVO.customerContactsId) this.$set(this.form, 'consignorCompany', res.data.consignorVO.company)
this.$set(this.form, 'consignorCountryCode', res.data.consignorVO.countryCode.replace('+', '')) this.$set(this.form, 'consignorContactsId', res.data.consignorVO.customerContactsId)
this.$set(this.form, 'consignorEmail', res.data.consignorVO.email) this.$set(this.form, 'consignorCountryCode', res.data.consignorVO.countryCode.replace('+', ''))
this.$set(this.form, 'consignorId', res.data.consignorVO.customerId) this.$set(this.form, 'consignorEmail', res.data.consignorVO.email)
this.$set(this.form, 'consignorName', res.data.consignorVO.name) this.$set(this.form, 'consignorId', res.data.consignorVO.customerId)
this.$set(this.form, 'consignorPhone', res.data.consignorVO.phone) this.$set(this.form, 'consignorName', res.data.consignorVO.name)
this.$set(this.form, 'consignorPhone', res.data.consignorVO.phone)
}
this.$set(this.form, 'consigneeCompany', res.data.consigneeVO.company) if(res.data.consigneeVO){
this.$set(this.form, 'consigneeContactsId', res.data.consigneeVO.customerContactsId) this.$set(this.form, 'consigneeCompany', res.data.consigneeVO.company)
this.$set(this.form, 'consigneeCountryCode', res.data.consigneeVO.countryCode.replace('+', '')) this.$set(this.form, 'consigneeContactsId', res.data.consigneeVO.customerContactsId)
this.$set(this.form, 'consigneeEmail', res.data.consigneeVO.email) this.$set(this.form, 'consigneeCountryCode', res.data.consigneeVO.countryCode.replace('+', ''))
this.$set(this.form, 'consigneeId', res.data.consigneeVO.customerId) this.$set(this.form, 'consigneeEmail', res.data.consigneeVO.email)
this.$set(this.form, 'consigneeName', res.data.consigneeVO.name) this.$set(this.form, 'consigneeId', res.data.consigneeVO.customerId)
this.$set(this.form, 'consigneePhone', res.data.consigneeVO.phone) this.$set(this.form, 'consigneeName', res.data.consigneeVO.name)
this.$set(this.form, 'consigneePhone', res.data.consigneeVO.phone)
}
if(res.data.ccIds){ if(res.data.ccIds){
this.ccIdArr = res.data.ccIds.split(",").filter(item => item && item != '') this.ccIdArr = res.data.ccIds.split(",").filter(item => item && item != '')
} }
......
...@@ -60,6 +60,12 @@ ...@@ -60,6 +60,12 @@
<el-option v-for="item in creatorData" :key="item.id" :label="item.nickname" :value="item.id"/> <el-option v-for="item in creatorData" :key="item.id" :label="item.nickname" :value="item.id"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('外部仓')" prop="number">
<el-select v-model="queryParams.isExternalWarehouse" :placeholder="$t('请选择')" clearable @change="handleQuery">
<el-option :label="$t('外部仓')" :value="1"></el-option>
<el-option :label="$t('自有仓')" :value="0"></el-option>
</el-select>
</el-form-item>
<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="reset">重置</el-button> --> <!-- <el-button icon="el-icon-refresh" @click="reset">重置</el-button> -->
......
...@@ -91,6 +91,12 @@ ...@@ -91,6 +91,12 @@
<el-form-item :label="$t('快递单号')" prop="number"> <el-form-item :label="$t('快递单号')" prop="number">
<el-input v-model="queryParams.number" :placeholder="$t('快递单号')" clearable @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.number" :placeholder="$t('快递单号')" clearable @keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('外部仓')" prop="number">
<el-select v-model="queryParams.isExternalWarehouse" :placeholder="$t('请选择')" clearable @change="handleQuery">
<el-option :label="$t('外部仓')" :value="1"></el-option>
<el-option :label="$t('自有仓')" :value="0"></el-option>
</el-select>
</el-form-item>
<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>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 分页组件 --> <!-- 分页组件 -->
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.rows"
@pagination="getList"/> @pagination="getList"/>
<!-- 对话框(添加 / 修改) --> <!-- 对话框(添加 / 修改) -->
...@@ -106,8 +106,8 @@ export default { ...@@ -106,8 +106,8 @@ export default {
dateRangeCreateTime: [], dateRangeCreateTime: [],
// 查询参数 // 查询参数
queryParams: { queryParams: {
pageNo: 1, page: 1,
pageSize: 10, rows: 10,
warehouseId: null, warehouseId: null,
name: null, name: null,
code: null, code: null,
...@@ -185,7 +185,7 @@ export default { ...@@ -185,7 +185,7 @@ export default {
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.pageNo = 1; this.queryParams.page = 1;
this.getList(); this.getList();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
...@@ -270,8 +270,8 @@ export default { ...@@ -270,8 +270,8 @@ export default {
handleExport() { handleExport() {
// 处理查询参数 // 处理查询参数
let params = {...this.queryParams}; let params = {...this.queryParams};
params.pageNo = undefined; params.page = undefined;
params.pageSize = undefined; params.rows = undefined;
this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime'); this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime');
// 执行导出 // 执行导出
this.$modal.confirm(this.$t('是否确认导出所有库区库域数据项?')).then(() => { this.$modal.confirm(this.$t('是否确认导出所有库区库域数据项?')).then(() => {
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 分页组件 --> <!-- 分页组件 -->
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.rows"
@pagination="getList"/> @pagination="getList"/>
<!-- 对话框(添加 / 修改) --> <!-- 对话框(添加 / 修改) -->
...@@ -152,8 +152,8 @@ export default { ...@@ -152,8 +152,8 @@ export default {
dateRangeCreateTime: [], dateRangeCreateTime: [],
// 查询参数 // 查询参数
queryParams: { queryParams: {
pageNo: 1, page: 1,
pageSize: 10, rows: 10,
domainId: null, domainId: null,
domainName: null, domainName: null,
areaId: null, areaId: null,
...@@ -315,7 +315,7 @@ computed: { ...@@ -315,7 +315,7 @@ computed: {
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.pageNo = 1; this.queryParams.page = 1;
this.getList(); this.getList();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
...@@ -384,8 +384,8 @@ computed: { ...@@ -384,8 +384,8 @@ computed: {
handleExport() { handleExport() {
// 处理查询参数 // 处理查询参数
let params = {...this.queryParams}; let params = {...this.queryParams};
params.pageNo = undefined; params.page = undefined;
params.pageSize = undefined; params.rows = undefined;
this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime'); this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime');
// 执行导出 // 执行导出
this.$modal.confirm(this.$t('是否确认导出所有储位数据项?')).then(() => { this.$modal.confirm(this.$t('是否确认导出所有储位数据项?')).then(() => {
......
...@@ -388,7 +388,7 @@ export default { ...@@ -388,7 +388,7 @@ export default {
if(!this.form.postIds) return false if(!this.form.postIds) return false
let has = false let has = false
this.postOptions.forEach(item => { this.postOptions.forEach(item => {
if(this.form.postIds.indexOf(item.id) > -1 && item.code == 'customer service'){ if(this.form.postIds.indexOf(item.id) > -1 && item.code == 'documentary customer service'){
has = true has = 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