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

导游计划表修改

parent cd342ecd
......@@ -252,6 +252,24 @@
<td width="100">{{item.DayNum}}</td>
<td style="text-align:left;">{{item.Title}}</td>
</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>
</div>
</template>
......@@ -273,6 +291,12 @@
//购物店
shopList: [],
isShow: false,
PostConfig: {
ID: 0,
TCIDs: "",
PlanDescription: ""
},
Loading: false
};
},
methods: {
......@@ -288,13 +312,13 @@
msg,
res => {
if (res.data.resultCode == 1) {
console.log(res);
this.BaseInfo = res.data.data.BaseInfo;
this.PrincipalList = res.data.data.PrincipalList;
this.JourneyTitle = res.data.data.JourneyTitle;
this.guestList = res.data.data.guestList;
this.DMCStaticsCommon = res.data.data.DMCStaticsCommon;
this.shopList = res.data.data.shopList;
this.PostConfig = res.data.data.DMCStaticsCommon.LeaderApply;
this.isShow = true;
} else {
this.Error(res.data.message);
......@@ -328,12 +352,34 @@
})
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() {
this.TCIDs = this.$route.query.id;
this.PostConfig.TCIDs = this.TCIDs;
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