Commit 3913bfdf authored by 黄奎's avatar 黄奎

导游计划表修改

parent cd342ecd
...@@ -252,6 +252,24 @@ ...@@ -252,6 +252,24 @@
<td width="100">{{item.DayNum}}</td> <td width="100">{{item.DayNum}}</td>
<td style="text-align:left;">{{item.Title}}</td> <td style="text-align:left;">{{item.Title}}</td>
</tr> </tr>
</table>
<table>
<tr>
<td>
注意事项:
</td>
<td>
<el-input v-model="PostConfig.PlanDescription" type="textarea" :autosize="{minRows: 3, maxRows: 3 }"
resize="none" placeholder="注意事项" maxlength="300"></el-input>
</td>
</tr>
<tr>
<td colspan="2">
<input type="button" class="leader2Btn" @click="UpdateLeaderPay" value="保存" />
<input type="button" class="leader2Btn" @click="DownLoadLeaderPay" value="下载" />
</td>
</tr>
</table> </table>
</div> </div>
</template> </template>
...@@ -273,6 +291,12 @@ ...@@ -273,6 +291,12 @@
//购物店 //购物店
shopList: [], shopList: [],
isShow: false, isShow: false,
PostConfig: {
ID: 0,
TCIDs: "",
PlanDescription: ""
},
Loading: false
}; };
}, },
methods: { methods: {
...@@ -288,13 +312,13 @@ ...@@ -288,13 +312,13 @@
msg, msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
console.log(res);
this.BaseInfo = res.data.data.BaseInfo; this.BaseInfo = res.data.data.BaseInfo;
this.PrincipalList = res.data.data.PrincipalList; this.PrincipalList = res.data.data.PrincipalList;
this.JourneyTitle = res.data.data.JourneyTitle; this.JourneyTitle = res.data.data.JourneyTitle;
this.guestList = res.data.data.guestList; this.guestList = res.data.data.guestList;
this.DMCStaticsCommon = res.data.data.DMCStaticsCommon; this.DMCStaticsCommon = res.data.data.DMCStaticsCommon;
this.shopList = res.data.data.shopList; this.shopList = res.data.data.shopList;
this.PostConfig = res.data.data.DMCStaticsCommon.LeaderApply;
this.isShow = true; this.isShow = true;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
...@@ -328,12 +352,34 @@ ...@@ -328,12 +352,34 @@
}) })
return totalPrice return totalPrice
}, },
UpdateLeaderPay() {
this.PostConfig.TCIDs = this.TCIDs;
this.apipost('dmcstatistics_post_AuditLeaderapply', this.PostConfig, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
} else {
this.Error(res.data.message);
}
}, err => {})
},
DownLoadLeaderPay() {
let msg = {
TCIDs: this.TCIDs,
NewCombinationNum: '',
uid: this.getLocalStorage().EmployeeId
};
this.Loading = true;
let fileName = "导游计划表" + this.$commonUtils.getCurrentDate() + ".xls";
this.GetLocalFile("dmcstatistics_get_DwonLoadLeaderapply", qMsg, fileName,
res => {
this.Loading = false;
});
}
}, },
mounted() { mounted() {
this.TCIDs = this.$route.query.id; this.TCIDs = this.$route.query.id;
this.PostConfig.TCIDs = this.TCIDs;
this.getConfirmName(); this.getConfirmName();
} }
}; };
</script>
</script> \ No newline at end of file
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