md
This commit is contained in:
parent
390785ab87
commit
9830fb412d
@ -125,7 +125,7 @@
|
|||||||
style="margin-right: 5px;"
|
style="margin-right: 5px;"
|
||||||
type="warning"
|
type="warning"
|
||||||
plain
|
plain
|
||||||
:disabled="single"
|
:disabled="multiple"
|
||||||
icon="el-icon-download"
|
icon="el-icon-download"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container" >
|
<div class="app-container" >
|
||||||
<el-form ref="form" size="mini" :model="form" :rules="rules" :disabled="this.form.lockFlag=='T'" label-width="100px">
|
<el-form ref="form" size="mini" :model="form" :rules="rules" :disabled="this.action=='modify' && this.form.lockFlag=='T'" label-width="100px">
|
||||||
<el-collapse v-model="activeNames">
|
<el-collapse v-model="activeNames">
|
||||||
<el-collapse-item title="" name="1">
|
<el-collapse-item title="" name="1">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
@ -815,7 +815,6 @@ 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';
|
||||||
@ -1032,25 +1031,14 @@ data() {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route () {
|
|
||||||
if(this.$route.query.action=='got'){
|
|
||||||
this.action="got";
|
|
||||||
// 判断时间是否一致
|
|
||||||
if(this.lastTimestamp != this.$route.query.timestamp){
|
|
||||||
this.lastTimestamp=this.$route.query.timestamp;
|
|
||||||
this.billCode=this.$route.query.billCode;
|
|
||||||
const title = '接单:'+this.billCode;
|
|
||||||
const route = Object.assign({}, this.$route, { title: `${title}` })
|
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
|
||||||
this.initData();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
|
|
||||||
this.action=this.$route.query.action;
|
this.action=this.$route.query.action;
|
||||||
|
|
||||||
if(!this.action){
|
if(!this.action){
|
||||||
this.action="add";
|
this.action="add";
|
||||||
}
|
}
|
||||||
@ -1060,20 +1048,26 @@ created() {
|
|||||||
const title = '运单录入';
|
const title = '运单录入';
|
||||||
const route = Object.assign({}, this.$route, { title: `${title}` })
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
|
||||||
|
this.initData();
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(this.action=='got'){
|
else if(this.action=='got'){
|
||||||
this.billCode=this.$route.query.billCode;
|
this.billCode=this.$route.query.billCode;
|
||||||
const title = '接单:'+this.billCode;
|
const title = '接单:'+this.billCode;
|
||||||
const route = Object.assign({}, this.$route, { title: `${title}` })
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
this.initData();
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(this.action=='modify'){
|
else if(this.action=='modify'){
|
||||||
const title = '运单修改';
|
const title = '运单修改';
|
||||||
const route = Object.assign({}, this.$route, { title: `${title}` })
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
|
||||||
|
this.initData();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.initData();
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
@ -1456,12 +1450,17 @@ methods: {
|
|||||||
|
|
||||||
},
|
},
|
||||||
initData() {
|
initData() {
|
||||||
|
|
||||||
|
console.log("====>this.action=2222=>",this.action);
|
||||||
|
console.log("====>this.billCode=2222=>",this.billCode);
|
||||||
|
|
||||||
this.reset();
|
this.reset();
|
||||||
this.form.productTypeSelArr=null;
|
this.form.productTypeSelArr=null;
|
||||||
|
|
||||||
if(this.billCode && this.billCode!=undefined) {
|
if(this.billCode && this.billCode!=undefined) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
getWaybillDetail(this.billCode).then(response => {
|
getWaybillDetail(this.billCode).then(response => {
|
||||||
|
|
||||||
if(this.$store.getters.ownerSiteCode!='88888'&&this.action!='got'){
|
if(this.$store.getters.ownerSiteCode!='88888'&&this.action!='got'){
|
||||||
if(this.$store.getters.ownerSiteCode!=response.data.sendSiteCode){
|
if(this.$store.getters.ownerSiteCode!=response.data.sendSiteCode){
|
||||||
this.$modal.msgError('此单归属不允许修改');
|
this.$modal.msgError('此单归属不允许修改');
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container" >
|
<div class="app-container" >
|
||||||
<el-form ref="form" size="mini" :model="form" :rules="rules" :disabled="this.form.lockFlag=='T'" label-width="100px">
|
<el-form ref="form" size="mini" :model="form" :rules="rules" :disabled="this.action=='modify' && this.form.lockFlag=='T'" label-width="100px">
|
||||||
<el-collapse v-model="activeNames">
|
<el-collapse v-model="activeNames">
|
||||||
<el-collapse-item title="" name="1">
|
<el-collapse-item title="" name="1">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
@ -815,7 +815,6 @@ 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';
|
||||||
@ -1032,25 +1031,14 @@ data() {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route () {
|
|
||||||
if(this.$route.query.action=='got'){
|
|
||||||
this.action="got";
|
|
||||||
// 判断时间是否一致
|
|
||||||
if(this.lastTimestamp != this.$route.query.timestamp){
|
|
||||||
this.lastTimestamp=this.$route.query.timestamp;
|
|
||||||
this.billCode=this.$route.query.billCode;
|
|
||||||
const title = '接单:'+this.billCode;
|
|
||||||
const route = Object.assign({}, this.$route, { title: `${title}` })
|
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
|
||||||
this.initData();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
|
|
||||||
this.action=this.$route.query.action;
|
this.action=this.$route.query.action;
|
||||||
|
|
||||||
if(!this.action){
|
if(!this.action){
|
||||||
this.action="add";
|
this.action="add";
|
||||||
}
|
}
|
||||||
@ -1060,20 +1048,26 @@ created() {
|
|||||||
const title = '运单录入';
|
const title = '运单录入';
|
||||||
const route = Object.assign({}, this.$route, { title: `${title}` })
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
|
||||||
|
this.initData();
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(this.action=='got'){
|
else if(this.action=='got'){
|
||||||
this.billCode=this.$route.query.billCode;
|
this.billCode=this.$route.query.billCode;
|
||||||
const title = '接单:'+this.billCode;
|
const title = '接单:'+this.billCode;
|
||||||
const route = Object.assign({}, this.$route, { title: `${title}` })
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
this.initData();
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(this.action=='modify'){
|
else if(this.action=='modify'){
|
||||||
const title = '运单修改';
|
const title = '运单修改';
|
||||||
const route = Object.assign({}, this.$route, { title: `${title}` })
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
|
||||||
|
this.initData();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.initData();
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
@ -1456,12 +1450,17 @@ methods: {
|
|||||||
|
|
||||||
},
|
},
|
||||||
initData() {
|
initData() {
|
||||||
|
|
||||||
|
console.log("====>this.action=2222=>",this.action);
|
||||||
|
console.log("====>this.billCode=2222=>",this.billCode);
|
||||||
|
|
||||||
this.reset();
|
this.reset();
|
||||||
this.form.productTypeSelArr=null;
|
this.form.productTypeSelArr=null;
|
||||||
|
|
||||||
if(this.billCode && this.billCode!=undefined) {
|
if(this.billCode && this.billCode!=undefined) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
getWaybillDetail(this.billCode).then(response => {
|
getWaybillDetail(this.billCode).then(response => {
|
||||||
|
|
||||||
if(this.$store.getters.ownerSiteCode!='88888'&&this.action!='got'){
|
if(this.$store.getters.ownerSiteCode!='88888'&&this.action!='got'){
|
||||||
if(this.$store.getters.ownerSiteCode!=response.data.sendSiteCode){
|
if(this.$store.getters.ownerSiteCode!=response.data.sendSiteCode){
|
||||||
this.$modal.msgError('此单归属不允许修改');
|
this.$modal.msgError('此单归属不允许修改');
|
||||||
@ -1509,6 +1508,11 @@ methods: {
|
|||||||
if(this.action=="got"){
|
if(this.action=="got"){
|
||||||
// 获取可用运单数
|
// 获取可用运单数
|
||||||
this.initGetTotalAvailablePag(this.form.sendSiteCode);
|
this.initGetTotalAvailablePag(this.form.sendSiteCode);
|
||||||
|
|
||||||
|
if(!this.form.cargoList){
|
||||||
|
this.handleInitGenGoods();
|
||||||
|
}
|
||||||
|
|
||||||
this.startTimer();
|
this.startTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container" >
|
<div class="app-container" >
|
||||||
<el-form ref="form" size="mini" :model="form" :rules="rules" :disabled="this.form.lockFlag=='T'" label-width="100px">
|
<el-form ref="form" size="mini" :model="form" :rules="rules" :disabled="this.action=='modify' && this.form.lockFlag=='T'" label-width="100px">
|
||||||
<el-collapse v-model="activeNames">
|
<el-collapse v-model="activeNames">
|
||||||
<el-collapse-item title="" name="1">
|
<el-collapse-item title="" name="1">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
@ -815,7 +815,6 @@ 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';
|
||||||
@ -1032,25 +1031,14 @@ data() {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route () {
|
|
||||||
if(this.$route.query.action=='got'){
|
|
||||||
this.action="got";
|
|
||||||
// 判断时间是否一致
|
|
||||||
if(this.lastTimestamp != this.$route.query.timestamp){
|
|
||||||
this.lastTimestamp=this.$route.query.timestamp;
|
|
||||||
this.billCode=this.$route.query.billCode;
|
|
||||||
const title = '接单:'+this.billCode;
|
|
||||||
const route = Object.assign({}, this.$route, { title: `${title}` })
|
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
|
||||||
this.initData();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
|
|
||||||
this.action=this.$route.query.action;
|
this.action=this.$route.query.action;
|
||||||
|
|
||||||
if(!this.action){
|
if(!this.action){
|
||||||
this.action="add";
|
this.action="add";
|
||||||
}
|
}
|
||||||
@ -1060,20 +1048,26 @@ created() {
|
|||||||
const title = '运单录入';
|
const title = '运单录入';
|
||||||
const route = Object.assign({}, this.$route, { title: `${title}` })
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
|
||||||
|
this.initData();
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(this.action=='got'){
|
else if(this.action=='got'){
|
||||||
this.billCode=this.$route.query.billCode;
|
this.billCode=this.$route.query.billCode;
|
||||||
const title = '接单:'+this.billCode;
|
const title = '接单:'+this.billCode;
|
||||||
const route = Object.assign({}, this.$route, { title: `${title}` })
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
this.initData();
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(this.action=='modify'){
|
else if(this.action=='modify'){
|
||||||
const title = '运单修改';
|
const title = '运单修改';
|
||||||
const route = Object.assign({}, this.$route, { title: `${title}` })
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
|
||||||
|
this.initData();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.initData();
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
@ -1456,12 +1450,17 @@ methods: {
|
|||||||
|
|
||||||
},
|
},
|
||||||
initData() {
|
initData() {
|
||||||
|
|
||||||
|
console.log("====>this.action=2222=>",this.action);
|
||||||
|
console.log("====>this.billCode=2222=>",this.billCode);
|
||||||
|
|
||||||
this.reset();
|
this.reset();
|
||||||
this.form.productTypeSelArr=null;
|
this.form.productTypeSelArr=null;
|
||||||
|
|
||||||
if(this.billCode && this.billCode!=undefined) {
|
if(this.billCode && this.billCode!=undefined) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
getWaybillDetail(this.billCode).then(response => {
|
getWaybillDetail(this.billCode).then(response => {
|
||||||
|
|
||||||
if(this.$store.getters.ownerSiteCode!='88888'&&this.action!='got'){
|
if(this.$store.getters.ownerSiteCode!='88888'&&this.action!='got'){
|
||||||
if(this.$store.getters.ownerSiteCode!=response.data.sendSiteCode){
|
if(this.$store.getters.ownerSiteCode!=response.data.sendSiteCode){
|
||||||
this.$modal.msgError('此单归属不允许修改');
|
this.$modal.msgError('此单归属不允许修改');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user