...
|
...
|
@@ -447,6 +447,7 @@ |
|
|
import { getMt5201List,addMt5201,ediMt5201,delMt5201,sendCreateMt520x,sendRemoveMt520x,selectCustomcode,sendbatchRemoveMt5201,sendbatchCreateMt5201} from '../../api/mt5201'
|
|
|
import loginUserInfo from '@/api/base'
|
|
|
import {sendBatchApllyMt1201, sendBatchDelMt1201} from "../../api/mt1201";
|
|
|
import {mapActions, mapGetters} from 'vuex'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
...
|
...
|
@@ -491,7 +492,7 @@ |
|
|
wei:undefined,
|
|
|
ext5:undefined,
|
|
|
userinfo: {
|
|
|
username: '11111'
|
|
|
username: this.getUserInfoStore.username
|
|
|
},
|
|
|
},
|
|
|
FenStatus:'',
|
...
|
...
|
@@ -626,7 +627,7 @@ |
|
|
if(row.awbh==null){
|
|
|
row.awbh="";
|
|
|
}
|
|
|
const map = {'mt520x':row,'username':loginUserInfo.username}
|
|
|
const map = {'mt520x':row,'username':this.getUserInfoStore.username}
|
|
|
sendCreateMt520x(map).then(res=>{
|
|
|
let response=res.data;
|
|
|
//console.log(res);
|
...
|
...
|
@@ -672,7 +673,7 @@ |
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if(this.batichboolean){
|
|
|
let arr={ids:this.uuids,reason:this.Udform.operreason,contactName:loginUserInfo.username,contactTel:this.Udform.opertel,content:''}
|
|
|
let arr={ids:this.uuids,reason:this.Udform.operreason,contactName:this.getUserInfoStore.username,contactTel:this.Udform.opertel,content:''}
|
|
|
sendbatchRemoveMt5201(arr).then(res=>{
|
|
|
let response=res.data;
|
|
|
this.code=response.code;
|
...
|
...
|
@@ -696,7 +697,7 @@ |
|
|
'contactTel':this.Udform.opertel,
|
|
|
'rcfdep':this.rows.rcfdep,
|
|
|
'carrier':this.rows.carrier,
|
|
|
'username':loginUserInfo.username}
|
|
|
'username':this.getUserInfoStore.username}
|
|
|
sendRemoveMt520x(map).then(res=>{
|
|
|
let response=res.data;
|
|
|
//console.log(res);
|
...
|
...
|
@@ -828,7 +829,7 @@ |
|
|
_this.ruleForm.userinfo = {
|
|
|
username: ''
|
|
|
}
|
|
|
_this.ruleForm.userinfo.username=_this.LoginUserInfo.username;
|
|
|
_this.ruleForm.userinfo.username=_this.getUserInfoStore.username;
|
|
|
_this.ruleForm.status='22';
|
|
|
//this.ruleForm.endtime=this.ruleForm.starttime.add(Calendar.MINUTE, 15);
|
|
|
addMt5201(_this.ruleForm).then(res=>{
|
...
|
...
|
@@ -861,7 +862,7 @@ |
|
|
_this.ruleForm.userinfo = {
|
|
|
username: ''
|
|
|
}
|
|
|
_this.ruleForm.userinfo.username=_this.LoginUserInfo.username;
|
|
|
_this.ruleForm.userinfo.username=_this.getUserInfoStore.username;
|
|
|
ediMt5201(_this.ruleForm).then(res=>{
|
|
|
let response=res.data;
|
|
|
_this.code=response.code;
|
...
|
...
|
@@ -886,6 +887,9 @@ |
|
|
this.$router.go(-1);//返回上一层
|
|
|
},
|
|
|
},
|
|
|
computed:{
|
|
|
...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName
|
|
|
},
|
|
|
//渲染方法
|
|
|
mounted(){
|
|
|
this.getDefaultData();
|
...
|
...
|
|