Commit cccda912 authored by youjie's avatar youjie

no message

parent adc9095c
......@@ -1692,6 +1692,7 @@
//提交
submitForm(addMsg) {
if(this.$route.query.orderID) this.CtObj.OrderId = this.$route.query.orderID
if(this.$route.query.TCID) this.CtObj.TCID = this.$route.query.TCID
//提交创建、修改表单
this.$refs[addMsg].validate(valid => {
if (valid) {
......@@ -1815,6 +1816,8 @@
}
},
GetData() {
if(this.$route.query.orderID) this.CtObj.OrderId = this.$route.query.orderID
if(this.$route.query.TCID) this.CtObj.TCID = this.$route.query.TCID
if(this.dataLoading) return
this.dataLoading = true
this.apipost(
......
......@@ -1606,6 +1606,8 @@
},
//提交
submitForm(addMsg) {
if(this.$route.query.orderID) this.CtObj.OrderId = this.$route.query.orderID
if(this.$route.query.TCID) this.CtObj.TCID = this.$route.query.TCID
//提交创建、修改表单
this.$refs[addMsg].validate(valid => {
if (valid) {
......
......@@ -1843,6 +1843,8 @@
document.documentElement.scrollTop = anchor.offsetTop - 70;
},
getList() {
if(this.$route.query.orderID) this.msg.orderID = this.$route.query.orderID
if(this.$route.query.TCID) this.msg.TCID = this.$route.query.TCID
if(this.dataLoading) return
this.dataLoading = true
this.apipost(
......@@ -2033,6 +2035,8 @@
},
//提交数据
SaveMsg() {
if(this.$route.query.orderID) this.CtObj.orderId = this.$route.query.orderID
if(this.$route.query.TCID) this.CtObj.tcid = this.$route.query.TCID
if(this.SaveLoading) return;
this.SaveLoading = true;
this.CtObj.status = 1;
......
......@@ -1585,6 +1585,7 @@
//提交
submitForm(addMsg) {
if(this.$route.query.orderID) this.CtObj.OrderId = this.$route.query.orderID
if(this.$route.query.TCID) this.CtObj.TCID = this.$route.query.TCID
//提交创建、修改表单
this.$refs[addMsg].validate(valid => {
if (valid) {
......@@ -1681,6 +1682,7 @@
if(this.dataLoading) return
this.dataLoading = true;
if(this.$route.query.orderID) this.CtObj.OrderId = this.$route.query.orderID
if(this.$route.query.TCID) this.CtObj.TCID = this.$route.query.TCID
this.apipost(
"travelcontract_get_GetTravelContractService", {
ID: this.CtObj.ID,
......@@ -2018,15 +2020,14 @@
},
created() {
if (this.$route.query.TCID && this.$route.query.TCID > 0) {
this.CtObj.TCID = this.$route.query.TCID;
this.GetTrip(this.CtObj.TCID);
this.GetTrip(this.$route.query.TCID);
}
},
mounted() {
if (this.$route.query.id && this.$route.query.id > 0) {
this.CtObj.ID = this.$route.query.id;
}
if (this.CtObj.ID > 0 || this.CtObj.TCID > 0) {
if (this.$route.query.id > 0 || this.$route.query.TCID > 0) {
this.GetData();
}
this.$nextTick(function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment