891 lines
33 KiB
Vue
891 lines
33 KiB
Vue
<template>
|
|
<XdPageContainer >
|
|
<SearchForm slot="pageHeader" :model="queryParams" ref="queryForm" size="mini" :maxShow="10" label-width="100px" v-show="showSearch" @search="handleQuery" @reset="resetQuery">
|
|
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
|
<el-col :span="9">
|
|
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
|
<el-col :span="24">
|
|
<el-form-item label="" prop="billCode" label-width="100px">
|
|
<div slot="label" style="text-align: left;">
|
|
<el-radio-group class="query-label" v-model="queryOrderType">
|
|
<el-radio :key="2" label="2">进仓单号</el-radio>
|
|
<el-radio :key="1" label="1">运单号</el-radio>
|
|
</el-radio-group>
|
|
</div>
|
|
<XdTextareaInput
|
|
v-model="queryParams.queryKey"
|
|
:placeholder="$t('多个流水号逗号或换行隔开')"
|
|
clearable
|
|
:rows="2"
|
|
/>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="24">
|
|
<el-form-item label="下单时间" prop="createTime" label-width="100px" >
|
|
<div slot="label" style="text-align: left;">
|
|
<el-radio-group class="query-label" v-model="queryDateType">
|
|
<el-radio :key="1" label="1">下单时间</el-radio>
|
|
<el-radio :key="2" label="2">进仓时间</el-radio>
|
|
</el-radio-group>
|
|
</div>
|
|
|
|
<elDateAdvPicker v-model="dateTimeRange" ></elDateAdvPicker>
|
|
|
|
<!-- <elDateSimplePicker placeholder="" v-model="dateTimeRange" style="z-index:9999;width:300px" ></elDateSimplePicker> -->
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
</el-col>
|
|
|
|
<el-col :span="15">
|
|
|
|
<el-form-item :label="$t('进仓状态')" prop="stockInFlag">
|
|
<el-select clearable v-model="queryParams.stockInFlag" placeholder="">
|
|
<el-option key="0" label="未进仓" value="0"></el-option>
|
|
<el-option key="1" label="已进仓" value="1"></el-option>
|
|
<el-option key="2" label="部分进仓" value="2"></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item :label="$t('确认状态')" prop="confirmStatus">
|
|
<el-select clearable v-model="queryParams.confirmStatus" placeholder="">
|
|
<el-option key="0" label="未确认" value="0"></el-option>
|
|
<el-option key="1" label="已确认" value="1"></el-option>
|
|
<el-option key="2" label="部分确认" value="2"></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
|
|
<el-form-item :label="$t('图片上传')" prop="blUploadPic">
|
|
<el-select clearable v-model="queryParams.blUploadPic" placeholder="">
|
|
<el-option key="1" label="已上传" value="1"></el-option>
|
|
<el-option key="0" label="未上传" value="0"></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="寄件人" prop="sendName">
|
|
<el-input
|
|
v-model="queryParams.params.sendName"
|
|
:placeholder="$t('寄件人')"
|
|
clearable
|
|
/>
|
|
</el-form-item>
|
|
<el-form-item label="寄件人电话" prop="sendMobile">
|
|
<el-input
|
|
v-model="queryParams.params.sendMobile"
|
|
:placeholder="$t('寄件人电话')"
|
|
clearable
|
|
/>
|
|
</el-form-item>
|
|
<el-form-item label="寄件公司" prop="sendCompany">
|
|
<el-input
|
|
v-model="queryParams.params.sendCompany"
|
|
:placeholder="$t('寄件公司')"
|
|
clearable
|
|
/>
|
|
</el-form-item>
|
|
<el-form-item :label="$t('销售联系人')" prop="salesmen">
|
|
<EmpNamePicker1 :placeholder="$t('销售联系人')" v-model="queryParams.params.salesmen" ></EmpNamePicker1>
|
|
</el-form-item>
|
|
|
|
<el-form-item label="订单状态" prop="orderStatus">
|
|
<el-select v-model="queryParams.params.orderStatus" clearable placeholder="请选择">
|
|
<el-option
|
|
v-for="dict in dict.type.emis_order_status"
|
|
:key="dict.value"
|
|
:label="dict.label"
|
|
:value="dict.value"
|
|
></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="寄件网点" prop="productType">
|
|
<EmisSiteSimplePicker1 v-model="queryParams.params.sendSiteCode"></EmisSiteSimplePicker1>
|
|
</el-form-item>
|
|
|
|
<el-form-item label="进仓仓库" prop="intoWarehouseCode">
|
|
<EmisSiteSimplePicker1 v-model="queryParams.params.intoWarehouseCode"></EmisSiteSimplePicker1>
|
|
</el-form-item>
|
|
<el-form-item label="目的国" prop="receiveCountry">
|
|
<CountryPicker0 v-model="queryParams.params.receiveCountry" :placeholder="$t('目的国')" @onChange="handleQuery"></CountryPicker0>
|
|
</el-form-item>
|
|
|
|
<el-form-item label="寄件国" prop="sendCountry">
|
|
<CountryPicker1 v-model="queryParams.params.sendCountry" :placeholder="$t('目的国')" ></CountryPicker1>
|
|
</el-form-item>
|
|
<el-form-item label="线路" prop="transLineType">
|
|
<TransLineAllPicker v-model="queryParams.params.transLineType" isInitiated="true" ></TransLineAllPicker>
|
|
</el-form-item>
|
|
<el-form-item label="产品类型" prop="productType">
|
|
<TransProductAllPicker placeholder="产品类型" v-model="queryParams.params.productType" :transLineCode="queryParams.params.transLineType" ></TransProductAllPicker>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
|
|
</SearchForm>
|
|
|
|
|
|
<XdTable
|
|
|
|
slot="pageContent"
|
|
slot-scope="slotProps"
|
|
:height="(slotProps.contentHeight)+'px'"
|
|
|
|
v-loading="loading"
|
|
border
|
|
size="mini"
|
|
|
|
storageName="emisWarehouseInList_main1"
|
|
|
|
ref="refTable"
|
|
|
|
:data="emisWarehouseInList"
|
|
:showSearch.sync="showSearch"
|
|
:queryParams="queryParams"
|
|
:total="total"
|
|
@queryTable="getList"
|
|
@selection-change="handleSelectionChange"
|
|
@sort-change="handleSortChange"
|
|
@row-dblclick="handleSendDbClick"
|
|
>
|
|
|
|
<div slot="toolbar">
|
|
<el-row :gutter="10" class="mb8">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
type="primary"
|
|
plain
|
|
size="mini"
|
|
:disabled="single"
|
|
@click="handleStockIn"
|
|
>收货入库</el-button>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
type="primary"
|
|
plain
|
|
size="mini"
|
|
:disabled="single"
|
|
@click="handleAccept"
|
|
>货齐开单</el-button>
|
|
</el-col>
|
|
<!-- <el-col :span="1.5">
|
|
<el-button
|
|
type="primary"
|
|
plain
|
|
size="mini"
|
|
:disabled="single"
|
|
@click="handleException"
|
|
>异常回复</el-button>
|
|
</el-col> -->
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
type="primary"
|
|
plain
|
|
size="mini"
|
|
:disabled="single"
|
|
@click="handleView"
|
|
>查看货物信息</el-button>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
type="danger"
|
|
plain
|
|
icon="el-icon-delete"
|
|
size="mini"
|
|
:disabled="multiple"
|
|
@click="handleDelete"
|
|
v-hasPermi="['emis:emisWarehouseIn:remove']"
|
|
>删除</el-button>
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
type="warning"
|
|
plain
|
|
icon="el-icon-download"
|
|
size="mini"
|
|
@click="handleExport"
|
|
>导出</el-button>
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
type="warning"
|
|
plain
|
|
size="mini"
|
|
@click="handleExportDtl"
|
|
>导出进仓明细</el-button>
|
|
</el-col>
|
|
</el-row>
|
|
</div>
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column :label="$t('进仓单号')" align="left" prop="inNo" min-width="150" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span style="font-weight: bold;color:black">{{ scope.row.inNo }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="下单时间" align="center" prop="createTime" width="170"/>
|
|
<el-table-column :label="$t('运单号')" align="center" prop="billCode" min-width="150" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('订单号')" align="center" prop="orderSn" min-width="150" :show-overflow-tooltip="true"/>
|
|
<!-- <el-table-column :label="$t('客户编号')" align="center" prop="customerCode" min-width="100" /> -->
|
|
<el-table-column :label="$t('客户名称')" align="center" prop="customerName" min-width="100" :show-overflow-tooltip="true"/>
|
|
<!-- <el-table-column :label="$t('预计进仓日期')" align="center" prop="entryDate" min-width="170" :show-overflow-tooltip="true"/> -->
|
|
<!-- <el-table-column :label="$t('客户确认状态')" align="center" prop="confirmStatus" min-width="150" /> -->
|
|
<el-table-column :label="$t('线路')" align="center" prop="waybillDetail.transLineTypeName" min-width="100" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope" v-if="scope.row.waybillDetail.transLineTypeName">
|
|
{{scope.row.waybillDetail.transLineTypeName}}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column :label="$t('产品类型')" align="center" prop="waybillDetail.productTypeName" min-width="100" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
{{scope.row.waybillDetail.productTypeName}}
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column :label="$t('确认状态')" align="center" prop="confirmStatus" min-width="100" >
|
|
<template slot-scope="scope">
|
|
<el-tag v-if="scope.row.confirmStatus=='0'" type="info">未确认</el-tag>
|
|
<el-tag v-if="scope.row.confirmStatus=='1'" type="success">已确认</el-tag>
|
|
<el-tag v-if="scope.row.confirmStatus=='2'" type="warning">部分确认</el-tag>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column :label="$t('确认时间')" align="center" prop="confirmDate" min-width="100" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('进仓状态')" align="center" prop="stockInFlag" min-width="100" >
|
|
<template slot-scope="scope">
|
|
<el-tag v-if="scope.row.stockInFlag=='0'" type="info">未入仓</el-tag>
|
|
<el-tag v-if="scope.row.stockInFlag=='1'" type="success">已入仓</el-tag>
|
|
<el-tag v-if="scope.row.stockInFlag=='2'" type="warning">部分入仓</el-tag>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column :label="$t('总件数')" align="center" prop="totalParcelQty" min-width="100" />
|
|
<el-table-column :label="$t('总体积')" align="center" prop="totalVolume" min-width="100" />
|
|
<el-table-column :label="$t('总重量')" align="center" prop="totalWeight" min-width="100" />
|
|
<el-table-column :label="$t('图片上传')" align="center" prop="blUploadPic" min-width="100" >
|
|
<template slot-scope="scope">
|
|
<el-tag v-if="scope.row.blUploadPic==1" type="success">是</el-tag>
|
|
<el-tag v-else type="danger">否</el-tag>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column :label="$t('订单状态')" align="center" prop="waybillDetail.orderStatus" min-width="80" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<dict-tag :options="dict.type.emis_order_status" :value="scope.row.waybillDetail.orderStatus"/>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column :label="$t('寄件网点')" align="center" prop="waybillDetail.sendSiteName" min-width="80" :show-overflow-tooltip="true"/>
|
|
|
|
<el-table-column :label="$t('仓库名称')" align="center" prop="waybillDetail.intoWarehouseName" min-width="80" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('仓库联系人')" align="center" prop="waybillDetail.intoWarehouseContact" min-width="100" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('仓库联系电话')" align="center" prop="waybillDetail.intoWarehousePhone" min-width="150" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('仓库地址')" align="center" prop="waybillDetail.intoWarehouseAddress" min-width="80" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('预计入仓时间')" align="center" prop="waybillDetail.pickStartDate" min-width="150" :show-overflow-tooltip="true"/>
|
|
|
|
<el-table-column :label="$t('寄件人')" align="center" prop="waybillDetail.sendName" min-width="80" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('寄件公司')" align="center" prop="waybillDetail.sendCompany" min-width="80" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('寄件国家')" align="center" prop="waybillDetail.sendCountryName" min-width="80" :show-overflow-tooltip="true" />
|
|
<el-table-column :label="$t('寄件地址')" align="center" prop="waybillDetail.sendAddress" min-width="80" :show-overflow-tooltip="true"/>
|
|
|
|
<el-table-column :label="$t('收货人')" align="center" prop="waybillDetail.receiveName" min-width="80" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('收货公司')" align="center" prop="waybillDetail.receiveCompany" min-width="80" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('收货国家')" align="center" prop="waybillDetail.receiveCountryName" min-width="80" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('收货地址')" align="center" prop="waybillDetail.receiveAddress" min-width="80" :show-overflow-tooltip="true"/>
|
|
|
|
<el-table-column :label="$t('目的地')" align="center" prop="waybillDetail.destinationName" min-width="80" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('目的网点')" align="center" prop="waybillDetail.dispatchUnderlingSiteName" min-width="80" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
<!-- <el-table-column :label="$t('状态')" align="center" prop="status" min-width="100" /> -->
|
|
<!-- <el-table-column :label="$t('备注')" align="center" prop="remark" min-width="100" /> -->
|
|
|
|
<!-- <el-table-column label="创建人" align="center" prop="createByName" width="80" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="创建网点" align="center" prop="createSiteName" width="80" :show-overflow-tooltip="true"/>
|
|
-->
|
|
<!-- <el-table-column label="修改人" align="center" prop="updateByName" width="80" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="修改网点" align="center" prop="updateSiteName" width="80" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="修改时间" align="center" prop="updateTime" width="170"/> -->
|
|
|
|
</XdTable>
|
|
|
|
<el-dialog :title="titleForm" :visible.sync="openForm" width="50%" :destroy-on-close="true" v-dialogDrag append-to-body>
|
|
<emisWarehouseInForm :id="currentId" @on-changed="handleFormChanged" @on-cancel="cancelForm"></EmisWarehouseInForm>
|
|
</el-dialog>
|
|
|
|
</XdPageContainer>
|
|
</template>
|
|
|
|
<script>
|
|
import { listEmisWarehouseIn, getEmisWarehouseIn, delEmisWarehouseIn, addEmisWarehouseIn, updateEmisWarehouseIn } from "@/api/emis/emisWarehouseIn";
|
|
import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker';
|
|
import elDateAdvPicker from '@/components/DatePickerAdv/elDateAdvPicker';
|
|
// import emisWarehouseInView from '@/views/emis/emisWarehouseIn/emisWarehouseInView';
|
|
import emisWarehouseInForm from '@/views/emis/emisWarehouseIn/emisWarehouseInForm';
|
|
import EmpNamePicker1 from '@/views/emis/EmisBaseTools/EmpNamePicker.vue';
|
|
|
|
import EmisSiteSimplePicker1 from '@/views/emis/EmisBaseTools/EmisSiteSimplePicker.vue';
|
|
import CountryPicker0 from '@/views/emis/EmisBaseTools/CountryPicker.vue';
|
|
import CountryPicker1 from '@/views/emis/EmisBaseTools/CountryPicker.vue';
|
|
import TransLineAllPicker from '@/views/emis/EmisBaseTools/TransLineAllPicker.vue'
|
|
import TransProductAllPicker from '@/views/emis/EmisBaseTools/TransProductAllPicker.vue'
|
|
|
|
export default {
|
|
name: "emisWarehouseIn",
|
|
components: { elDateSimplePicker,elDateAdvPicker,emisWarehouseInForm,EmpNamePicker1,EmisSiteSimplePicker1,CountryPicker0,CountryPicker1,TransLineAllPicker,TransProductAllPicker },
|
|
dicts: ['emis_qujian_fangshi','emis_declare_mode','emis_customs_clear','emis_order_status',
|
|
'emis_tab_packing_type','emis_tab_dispatch_mode','emis_payment_type',
|
|
'emis_calc_fee_type','emis_print_type','emis_payment_status','emis_waybill_status','emis_tab_dispatch_mode'
|
|
],
|
|
data() {
|
|
return {
|
|
// 遮罩层
|
|
loading: true,
|
|
// 选中数组
|
|
ids: [],
|
|
// 非单个禁用
|
|
single: true,
|
|
// 非多个禁用
|
|
multiple: true,
|
|
// 显示搜索条件
|
|
showSearch: true,
|
|
// 创建时间搜索
|
|
dateTimeRange:[],
|
|
// 总条数
|
|
total: 0,
|
|
// 进仓单表格数据
|
|
emisWarehouseInList: [],
|
|
|
|
selectionList:[],
|
|
|
|
currentId:null,
|
|
openForm: false,
|
|
titleForm: "",
|
|
|
|
queryOrderType:null,
|
|
queryDateType:null,
|
|
|
|
// 弹出展示层
|
|
id:null,
|
|
titleView:"",
|
|
openView: false,
|
|
// 更新站点时间范围
|
|
daterangeEntryDate: [],
|
|
// 更新站点时间范围
|
|
daterangeConfirmDate: [],
|
|
// 更新站点时间范围
|
|
daterangeCreateTime: [],
|
|
// 更新站点时间范围
|
|
daterangeUpdateTime: [],
|
|
// 查询参数
|
|
queryParams: {
|
|
pageNum: 1,
|
|
pageSize: 20,
|
|
serialNo: null,
|
|
inNo: null,
|
|
orderSn: null,
|
|
billCode: null,
|
|
queryKey:null,
|
|
customerCode: null,
|
|
customerName: null,
|
|
entryDate: null,
|
|
confirmStatus: null,
|
|
confirmDate: null,
|
|
usedStatus: null,
|
|
status: null,
|
|
remark: null,
|
|
delFlag: null,
|
|
params:{
|
|
salesmen:null,
|
|
sendName:null,
|
|
sendMobile:null,
|
|
sendCompany:null,
|
|
orderStatus:null,
|
|
sendSiteCode:null,
|
|
blUploadGoodsPic:null,
|
|
intoWarehouseCode:null,
|
|
receiveCountry:null,
|
|
sendCountry:null,
|
|
transLineType:null,
|
|
productType:null,
|
|
}
|
|
},
|
|
};
|
|
},
|
|
created() {
|
|
|
|
this.queryOrderType="2"
|
|
this.queryDateType="1";
|
|
this.getList();
|
|
},
|
|
methods: {
|
|
|
|
initQueryParams(){
|
|
// 按运单查询时的处理
|
|
if(this.queryOrderType==2){
|
|
this.queryParams.inNo=this.queryParams.queryKey;
|
|
this.queryParams.billCode=null;
|
|
}
|
|
else if(this.queryOrderType==1){
|
|
this.queryParams.inNo=null;
|
|
this.queryParams.billCode=this.queryParams.queryKey;
|
|
}
|
|
|
|
let thisQueryParams = {...this.queryParams};
|
|
if(this.queryDateType==1){
|
|
thisQueryParams = this.addDateRange(this.queryParams, this.dateTimeRange,"createTime");
|
|
}
|
|
else if(this.queryDateType==2){
|
|
thisQueryParams = this.addDateRange(this.queryParams, this.dateTimeRange,"pickStartDate");
|
|
}
|
|
|
|
return thisQueryParams;
|
|
},
|
|
/** 查询进仓单列表 */
|
|
getList() {
|
|
this.loading = true;
|
|
|
|
let qParam=this.initQueryParams();
|
|
|
|
listEmisWarehouseIn(qParam).then(response => {
|
|
this.emisWarehouseInList = response.rows;
|
|
this.total = response.total;
|
|
this.loading = false;
|
|
});
|
|
},
|
|
handleSendDbClick(row){
|
|
this.$emit("onSelect",row);
|
|
},
|
|
handleException(){
|
|
|
|
},
|
|
handleStockIn(){
|
|
// 跳转收货入仓
|
|
if(this.selectionList&&this.selectionList.length>0){
|
|
let inNo=this.selectionList[0].inNo;
|
|
let id=this.selectionList[0].id;
|
|
// this.$router.push({ path: '/d24/orderManagement/WarehouseStockIn', query: {name:"收货入仓", action: "add",id:id,inNo: inNo,addFrom:"stockIn"}})
|
|
this.$emit("onStockIn",inNo);
|
|
}
|
|
},
|
|
handleAccept(){
|
|
// 跳转到开单界面
|
|
if(this.selectionList&&this.selectionList.length>0){
|
|
let billCode=this.selectionList[0].billCode;
|
|
this.$router.push({ path: '/d24/waybillManagement/WaybillRecord', query: {name:"货齐开单", action: "got",billCode: billCode,addFrom:"wsIn"}})
|
|
}
|
|
},
|
|
/** 搜索按钮操作 */
|
|
handleQuery() {
|
|
this.queryParams.pageNum = 1;
|
|
this.getList();
|
|
},
|
|
/** 重置按钮操作 */
|
|
resetQuery() {
|
|
this.resetForm("queryForm");
|
|
this.handleQuery();
|
|
},
|
|
// 多选框选中数据
|
|
handleSelectionChange(selection) {
|
|
this.ids = selection.map(item => item.id)
|
|
this.single = selection.length!==1
|
|
this.multiple = !selection.length
|
|
|
|
this.selectionList=selection;
|
|
if(this.selectionList&&this.selectionList.length>0){
|
|
// this.currentSelectOrder=this.selectionList[0];
|
|
}
|
|
|
|
},
|
|
// 排序 查询字段是表格中字段名字 动态取值排序顺序
|
|
handleSortChange(column) {
|
|
this.queryParams.orderByColumn = column.prop;
|
|
this.queryParams.isAsc = column.order;
|
|
this.getList();
|
|
},
|
|
/** 新增按钮操作 */
|
|
handleAdd(row) {
|
|
this.currentId=null;
|
|
this.openForm= true;
|
|
this.titleForm = "新增";
|
|
},
|
|
handleShowMoreInput(){
|
|
this.moreInputVisible = !this.moreInputVisible;
|
|
},
|
|
/** 修改按钮操作 */
|
|
handleUpdate(row) {
|
|
this.currentId= row.id;
|
|
this.openForm = true;
|
|
this.titleForm = "修改";
|
|
},
|
|
handleView(row) {
|
|
let rowItem=this.selectionList[0];
|
|
this.$emit("onSelect",rowItem);
|
|
},
|
|
handleFormChanged(){
|
|
this.openForm = false;
|
|
this.getList();
|
|
},
|
|
cancelForm(){
|
|
this.openForm = false;
|
|
},
|
|
/** 删除按钮操作 */
|
|
handleDelete(row) {
|
|
const ids = row.id || this.ids;
|
|
this.$modal.confirm('是否确认删除').then(function() {
|
|
return delEmisWarehouseIn(ids);
|
|
}).then(() => {
|
|
this.getList();
|
|
this.$modal.msgSuccess("删除成功");
|
|
}).catch(() => {});
|
|
},
|
|
handleExportDtl() {
|
|
if(this.selectionList&&this.selectionList.length>0){
|
|
|
|
let inNos = [];
|
|
for(let i=0;i<this.selectionList.length;i++){
|
|
let item=this.selectionList[i];
|
|
inNos.push(item.inNo)
|
|
}
|
|
|
|
this.downloadByPostJsonBody('emis/emisWarehouseIn/exportWarehouseInInfo',
|
|
inNos, "进仓货物明细.xlsx")
|
|
}
|
|
},
|
|
/** 导出按钮操作 */
|
|
handleExport() {
|
|
const loadingInstance = this.$loading({
|
|
text: '正在导出...'
|
|
})
|
|
|
|
if(this.selectionList&&this.selectionList.length>0){
|
|
this.exportData(this.selectionList,loadingInstance);
|
|
}
|
|
else{
|
|
let qExportParam=this.initQueryParams();
|
|
qExportParam.pageNum=1;
|
|
qExportParam.pageSize=5000;
|
|
|
|
listEmisWarehouseIn(qExportParam).then(response => {
|
|
if (response.code === 200) {
|
|
this.exportData(response.rows,loadingInstance);
|
|
}
|
|
});
|
|
}
|
|
},
|
|
exportData(selData,loadingInstance){
|
|
const curList =selData
|
|
import('@/vendor/Export2Excel').then(excel => {
|
|
const exportParam=this.$refs.refTable.getExportParam();
|
|
const tHeader = exportParam.header;
|
|
const filterVal = exportParam.filter;
|
|
const data = this.formatJson(filterVal, curList, selData)
|
|
excel.export_json_to_excel({
|
|
header: tHeader,
|
|
data,
|
|
filename: '进仓导出',
|
|
autoWidth: true
|
|
})
|
|
loadingInstance.close()
|
|
})
|
|
},
|
|
formatJson(filterVal, jsonData, resData) {
|
|
let index = 0
|
|
return jsonData.map(v => filterVal.map(j => {
|
|
|
|
console.log("===>1111===>",v);
|
|
|
|
if (j === 'index') {
|
|
return ++index
|
|
}
|
|
if (j === 'kjlx') {
|
|
return v['waybillDetail']['sendSiteName']+'--'+v['waybillDetail']['dispatchUnderlingSiteName'];
|
|
}
|
|
if (j === 'fjr') {
|
|
return v['sendName']+'--'+v['receiveName'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.sendSiteName') {
|
|
return v['waybillDetail']['sendSiteName'];
|
|
}
|
|
|
|
|
|
if (j === 'waybillDetail.sendDate') {
|
|
return v['waybillDetail']['sendDate'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.sendCompany') {
|
|
return v['waybillDetail']['sendCompany'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.transLineTypeName') {
|
|
return v['waybillDetail']['transLineTypeName'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.productTypeName') {
|
|
return v['waybillDetail']['productTypeName'];
|
|
}
|
|
|
|
|
|
if (j === 'waybillDetail.sendName') {
|
|
return v['waybillDetail']['sendName'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.parcelQty') {
|
|
return v['waybillDetail']['parcelQty'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.billWeight') {
|
|
return v['waybillDetail']['billWeight'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.volumeWeight') {
|
|
return v['waybillDetail']['volumeWeight'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.totalVolume') {
|
|
return v['waybillDetail']['totalVolume'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.settlementWeight') {
|
|
return v['waybillDetail']['settlementWeight'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.freight') {
|
|
return v['waybillDetail']['freight'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.realFee') {
|
|
return v['waybillDetail']['realFee'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.remark') {
|
|
return v['waybillDetail']['remark'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.feeRemark') {
|
|
return v['waybillDetail']['feeRemark'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.salesmen') {
|
|
return v['waybillDetail']['salesmen'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.payee') {
|
|
return v['waybillDetail']['payee'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.payee') {
|
|
return v['waybillDetail']['payee'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.problemTypeName') {
|
|
return v['waybillDetail']['problemTypeName'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.problemCause') {
|
|
return v['waybillDetail']['problemCause'];
|
|
}
|
|
|
|
|
|
if (j === 'waybillDetail.intoWarehouseName') {
|
|
return v['waybillDetail']['intoWarehouseName'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.intoWarehouseContact') {
|
|
return v['waybillDetail']['intoWarehouseContact'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.intoWarehousePhone') {
|
|
return v['waybillDetail']['intoWarehousePhone'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.intoWarehouseAddress') {
|
|
return v['waybillDetail']['intoWarehouseAddress'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.pickStartDate') {
|
|
return v['waybillDetail']['pickStartDate'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.sendName') {
|
|
return v['waybillDetail']['sendName'];
|
|
}
|
|
|
|
|
|
if (j === 'waybillDetail.sendCompany') {
|
|
return v['waybillDetail']['sendCompany'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.sendCountryName') {
|
|
return v['waybillDetail']['sendCountryName'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.sendAddress') {
|
|
return v['waybillDetail']['sendAddress'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.receiveName') {
|
|
return v['waybillDetail']['receiveName'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.receiveCompany') {
|
|
return v['waybillDetail']['receiveCompany'];
|
|
}
|
|
|
|
|
|
if (j === 'waybillDetail.receiveCountryName') {
|
|
return v['waybillDetail']['receiveCountryName'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.receiveAddress') {
|
|
return v['waybillDetail']['receiveAddress'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.destinationName') {
|
|
return v['waybillDetail']['destinationName'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.dispatchUnderlingSiteName') {
|
|
return v['waybillDetail']['dispatchUnderlingSiteName'];
|
|
}
|
|
|
|
|
|
if (j === 'waybillDetail.sendSiteName') {
|
|
return v['waybillDetail']['sendSiteName'];
|
|
}
|
|
|
|
if (j === 'waybillDetail.sendMobile') {
|
|
return "";
|
|
}
|
|
|
|
if (j === 'waybillDetail.calcFeeType') {
|
|
return this.selectDictLabel(this.dict.type.emis_calc_fee_type,v['waybillDetail']['calcFeeType']);
|
|
}
|
|
|
|
if (j === 'waybillDetail.orderStatus') {
|
|
return this.selectDictLabel(this.dict.type.emis_order_status,v['waybillDetail']['orderStatus']);
|
|
}
|
|
|
|
|
|
|
|
if (j === 'waybillDetail.paymentStatus') {
|
|
return this.selectDictLabel(this.dict.type.emis_payment_status,v['waybillDetail']['paymentStatus']);
|
|
}
|
|
|
|
if (j === 'waybillDetail.pickupMethod') {
|
|
return this.selectDictLabel(this.dict.type.emis_qujian_fangshi,v['waybillDetail']['pickupMethod']);
|
|
}
|
|
if (j === 'waybillDetail.customsEclaration') {
|
|
return this.selectDictLabel(this.dict.type.emis_declare_mode,v['waybillDetail']['customsEclaration']);
|
|
}
|
|
if (j === 'waybillDetail.customsClear') {
|
|
return this.selectDictLabel(this.dict.type.emis_customs_clear,v['waybillDetail']['customsClear']);
|
|
}
|
|
if (j === 'waybillDetail.packType') {
|
|
return this.selectDictLabels(this.dict.type.emis_tab_packing_type,v['waybillDetail']['packType']);
|
|
}
|
|
|
|
if (j === 'waybillDetail.dispatchMethod') {
|
|
if(v['waybillDetail']['dispatchMethod'] == 1){
|
|
return '派送';
|
|
}else{
|
|
return '自提';
|
|
}
|
|
}
|
|
|
|
|
|
if (j === 'confirmStatus') {
|
|
if(v['confirmStatus'] == 0){
|
|
return '未确认';
|
|
}
|
|
else if(v['confirmStatus'] == 1){
|
|
return '已确认';
|
|
}
|
|
else if(v['confirmStatus'] == 2){
|
|
return '部分确认';
|
|
}
|
|
else{
|
|
return '/';
|
|
}
|
|
}
|
|
|
|
if (j === 'stockInFlag') {
|
|
if(v['stockInFlag'] == 0){
|
|
return '未入仓';
|
|
}
|
|
else if(v['stockInFlag'] == 1){
|
|
return '已入仓';
|
|
}
|
|
else if(v['stockInFlag'] == 2){
|
|
return '部分入仓';
|
|
}
|
|
else{
|
|
return '/';
|
|
}
|
|
}
|
|
if (j === 'waybillDetail.blMessage') {
|
|
if(v['waybillDetail']['blMessage'] == 1){
|
|
return '发送';
|
|
}else{
|
|
return '不发送';
|
|
}
|
|
}
|
|
if (j === 'waybillDetail.blAcceptMessage') {
|
|
if(v['waybillDetail']['blAcceptMessage'] == 1){
|
|
return '发送';
|
|
}else{
|
|
return '不发送';
|
|
}
|
|
}
|
|
if (j === 'waybillDetail.blSign') {
|
|
if(v['waybillDetail']['blSign'] == 1){
|
|
return '已签收';
|
|
}else{
|
|
return '未签收';
|
|
}
|
|
}
|
|
if (j === 'waybillDetail.paymentType') {
|
|
return this.selectDictLabel(this.dict.type.emis_payment_type,v['waybillDetail']['paymentType']);
|
|
}
|
|
if(j === 'waybillDetail.transLineTypeName'){
|
|
return v['waybillDetail']['transLineTypeName'];
|
|
}
|
|
if(j === 'waybillDetail.productTypeName'){
|
|
return v['waybillDetail']['productTypeName'];
|
|
}
|
|
return v[j]
|
|
}))
|
|
},
|
|
/** 列索引函数 */
|
|
getIndex($index) {
|
|
return (this.queryParams.pageNum - 1) * this.queryParams.pageSize + $index + 1
|
|
},
|
|
/** 时间搜索响应函数 */
|
|
dateTimeChange(value){
|
|
this.dateTimeRange=value;
|
|
},
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.el-divider{
|
|
margin-top: 0px;
|
|
background: 0 0;
|
|
border-top: 1px solid #E6EBF5;
|
|
}
|
|
.el-divider__text {
|
|
color: #0955ee;
|
|
cursor: pointer;
|
|
}
|
|
.query-label {
|
|
.el-radio{
|
|
display: block;
|
|
line-height: 23px;
|
|
white-space: normal;
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
</style>
|