This commit is contained in:
linfso 2024-08-01 12:06:32 +08:00
parent c487d018b2
commit 0cdd2a1fcc
4 changed files with 45 additions and 37 deletions

View File

@ -615,6 +615,11 @@ export default {
return Math.random().toString(36).substring(3,10); return Math.random().toString(36).substring(3,10);
}, },
clearSelection(){
this.$nextTick(()=>{
this.$refs.table.$refs.elTable.clearSelection();
});
},
initKeyDown(){ initKeyDown(){
let that=this; let that=this;
document.addEventListener('keydown', function(e) { document.addEventListener('keydown', function(e) {

View File

@ -110,7 +110,11 @@
</el-row> </el-row>
</div> </div>
<el-table-column label="序号" align="center" min-width="60">
<template slot-scope="scope">
<span v-text="getIndex(scope.$index)"> </span>
</template>
</el-table-column>
<el-table-column type="selection" width="55" :reserve-selection="true" align="center" /> <el-table-column type="selection" width="55" :reserve-selection="true" align="center" />
<el-table-column :label="$t('运单编号')" align="center" prop="billCode" min-width="120" :show-overflow-tooltip="true" /> <el-table-column :label="$t('运单编号')" align="center" prop="billCode" min-width="120" :show-overflow-tooltip="true" />
<el-table-column :label="$t('订单号')" align="center" prop="orderSn" width="100" :show-overflow-tooltip="true"/> <el-table-column :label="$t('订单号')" align="center" prop="orderSn" width="100" :show-overflow-tooltip="true"/>
@ -537,10 +541,12 @@ export default {
this.queryParams.billCode=newBillCodeStr; this.queryParams.billCode=newBillCodeStr;
} }
}else{
this.queryParams=this.addDateRange(this.queryParams, this.dateTimeRange,"Date");
} }
// this.queryParams=this.addDateRange(this.queryParams, this.dateTimeRange,"sendDate"); // this.queryParams=this.addDateRange(this.queryParams, this.dateTimeRange,"sendDate");
this.queryParams=this.addDateRange(this.queryParams, this.dateTimeRange,"Date");
queryPrintListSimple(this.queryParams).then(response => { queryPrintListSimple(this.queryParams).then(response => {
this.emisWaybillList = response.rows; this.emisWaybillList = response.rows;
@ -558,7 +564,9 @@ export default {
handleQuery() { handleQuery() {
// 清除已选择 // 清除已选择
// this.$refs.refQueryTable.clearSelection(); if(this.ids&&this.ids.length>0){
this.$refs.refQueryTable.clearSelection();
}
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
this.getList(); this.getList();

View File

@ -808,6 +808,7 @@ import TransProductCasPicker from '@/views/emis/EmisBaseTools/TransProductCasPic
// import TransProductCasPicker from '@/views/emis/EmisBaseTools/TransProductCasPicker.vue'; // import TransProductCasPicker from '@/views/emis/EmisBaseTools/TransProductCasPicker.vue';
import feeItemForm from './feeItemForm.vue'; import feeItemForm from './feeItemForm.vue';
import TanexPrinterPanel from '@/views/emis/EmisBaseTools/TanexPrinterPanel.vue'; import TanexPrinterPanel from '@/views/emis/EmisBaseTools/TanexPrinterPanel.vue';
@ -1360,15 +1361,8 @@ methods: {
this.form = response.data; this.form = response.data;
if(this.$store.getters.ownerSiteCode!='88888'&&this.addFrom!='userOrder'){ if(this.$store.getters.ownerSiteCode!='88888'&&this.addFrom!='userOrder'){
if(this.$store.getters.ownerSiteCode!=this.form.sendSiteCode){ if(this.$store.getters.ownerSiteCode!=this.form.sendSiteCode){
this.$confirm("此单归属不允许修改", '提示', { this.$message.error('此单归属不允许修改');
confirmButtonText: '确认', return;
cancelButtonText: '返回',
type: 'warning'
}).then(() => {
}).catch(() => {
})
} }
} }
@ -1384,14 +1378,6 @@ methods: {
} }
if(!this.form.feeItems){
this.form.feeItems=[];
}
if(!this.form.cargoList){
this.form.cargoList=[];
this.handleInitGenGoods();
}
if(!this.form.attachmentList){ if(!this.form.attachmentList){
this.form.attachmentList=[]; this.form.attachmentList=[];
@ -1409,7 +1395,19 @@ methods: {
}) })
} }
if(this.addFrom=="userOrder"){ if(this.addFrom=="userOrder"){
if(!this.form.feeItems){
this.form.feeItems=[];
}
if(!this.form.cargoList){
this.form.cargoList=[];
this.handleInitGenGoods();
}
// 获取可用运单数 // 获取可用运单数
this.initGetTotalAvailablePag(this.form.sendSiteCode); this.initGetTotalAvailablePag(this.form.sendSiteCode);
this.startTimer(); this.startTimer();

View File

@ -1361,15 +1361,8 @@ methods: {
this.form = response.data; this.form = response.data;
if(this.$store.getters.ownerSiteCode!='88888'&&this.addFrom!='userOrder'){ if(this.$store.getters.ownerSiteCode!='88888'&&this.addFrom!='userOrder'){
if(this.$store.getters.ownerSiteCode!=this.form.sendSiteCode){ if(this.$store.getters.ownerSiteCode!=this.form.sendSiteCode){
this.$confirm("此单归属不允许修改", '提示', { this.$message.error('此单归属不允许修改');
confirmButtonText: '确认', return;
cancelButtonText: '返回',
type: 'warning'
}).then(() => {
}).catch(() => {
})
} }
} }
@ -1385,14 +1378,6 @@ methods: {
} }
if(!this.form.feeItems){
this.form.feeItems=[];
}
if(!this.form.cargoList){
this.form.cargoList=[];
this.handleInitGenGoods();
}
if(!this.form.attachmentList){ if(!this.form.attachmentList){
this.form.attachmentList=[]; this.form.attachmentList=[];
@ -1410,7 +1395,19 @@ methods: {
}) })
} }
if(this.addFrom=="userOrder"){ if(this.addFrom=="userOrder"){
if(!this.form.feeItems){
this.form.feeItems=[];
}
if(!this.form.cargoList){
this.form.cargoList=[];
this.handleInitGenGoods();
}
// 获取可用运单数 // 获取可用运单数
this.initGetTotalAvailablePag(this.form.sendSiteCode); this.initGetTotalAvailablePag(this.form.sendSiteCode);
this.startTimer(); this.startTimer();