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);
},
clearSelection(){
this.$nextTick(()=>{
this.$refs.table.$refs.elTable.clearSelection();
});
},
initKeyDown(){
let that=this;
document.addEventListener('keydown', function(e) {

View File

@ -110,7 +110,11 @@
</el-row>
</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 :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"/>
@ -537,10 +541,12 @@ export default {
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,"Date");
queryPrintListSimple(this.queryParams).then(response => {
this.emisWaybillList = response.rows;
@ -558,7 +564,9 @@ export default {
handleQuery() {
// 清除已选择
// this.$refs.refQueryTable.clearSelection();
if(this.ids&&this.ids.length>0){
this.$refs.refQueryTable.clearSelection();
}
this.queryParams.pageNum = 1;
this.getList();

View File

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

View File

@ -1361,15 +1361,8 @@ methods: {
this.form = response.data;
if(this.$store.getters.ownerSiteCode!='88888'&&this.addFrom!='userOrder'){
if(this.$store.getters.ownerSiteCode!=this.form.sendSiteCode){
this.$confirm("此单归属不允许修改", '提示', {
confirmButtonText: '确认',
cancelButtonText: '返回',
type: 'warning'
}).then(() => {
}).catch(() => {
})
this.$message.error('此单归属不允许修改');
return;
}
}
@ -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){
this.form.attachmentList=[];
@ -1410,7 +1395,19 @@ methods: {
})
}
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.startTimer();