Commit 942ee5f9 authored by 黄奎's avatar 黄奎

页面修改

parent 5bbab6bb
...@@ -333,7 +333,7 @@ ...@@ -333,7 +333,7 @@
this.GetList = newList; this.GetList = newList;
}else{ }else{
this.GetList.forEach(y=>{ this.GetList.forEach(y=>{
y.showYes = true y.showYes = false
newList.push(JSON.parse(JSON.stringify(y))) newList.push(JSON.parse(JSON.stringify(y)))
}) })
} }
......
...@@ -102,13 +102,24 @@ ...@@ -102,13 +102,24 @@
<span>注:财务基本流程包括(收款流程,付款流程,发票流程),如果需要其他的流程,比如退款流程等请在自定义流程下新增流程设置</span> <span>注:财务基本流程包括(收款流程,付款流程,发票流程),如果需要其他的流程,比如退款流程等请在自定义流程下新增流程设置</span>
</li> --> </li> -->
<li><input type="button" class="normalBtn" value="新增流程" @click="goUrl('addFinancialProcess',0,8)"/> <li><input type="button" class="normalBtn" value="新增流程" @click="goUrl('addFinancialProcess',0,8)"/>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex();getTemplateList();"/> <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex()"/>
</li> </li>
</ul> </ul>
</div> </div>
<ul class="_nav clearfix"> <ul class="_nav clearfix">
<li class="_active" @click="getTemplateList()">流程列表</li> <li class="_active" @click="getTemplateList()">流程列表</li>
<!-- <li :class="active==1?'_active':''" @click="active=1,msg.TempLateWay=8,getTemplateList()">自定义流程</li> --> <!-- <li :class="active==1?'_active':''" @click="active=1,msg.TempLateWay=8,getTemplateList()">自定义流程</li> -->
<li>
<span>是否启用:</span>
<el-tooltip :content="msg.Status==1?'启用':'停用'" placement="top">
<el-switch
@change="resetPageIndex"
v-model="msg.Status"
active-value="1"
inactive-value="2">
</el-switch>
</el-tooltip>
</li>
</ul> </ul>
<el-form class="_info_box clearfix" label-width="110px"> <el-form class="_info_box clearfix" label-width="110px">
<el-row> <el-row>
...@@ -284,7 +295,8 @@ export default { ...@@ -284,7 +295,8 @@ export default {
pageSize:6, pageSize:6,
RB_BranchId:-1, RB_BranchId:-1,
Name:'', Name:'',
CostTypeID:0 CostTypeID:0,
Status:'1'
} }
} }
},created(){ },created(){
...@@ -419,6 +431,7 @@ export default { ...@@ -419,6 +431,7 @@ export default {
resetPageIndex() { resetPageIndex() {
this.msg.pageIndex = 1 this.msg.pageIndex = 1
this.currentPage = 1 this.currentPage = 1
this.getTemplateList()
}, },
goUrl(path,id,isZ,Branch_Id) { goUrl(path,id,isZ,Branch_Id) {
this.$router.push({ name: path,query:{"id":id,"isZ":isZ,"blank":'y',tab:"修改流程"} }) this.$router.push({ name: path,query:{"id":id,"isZ":isZ,"blank":'y',tab:"修改流程"} })
......
...@@ -168,8 +168,8 @@ ...@@ -168,8 +168,8 @@
<td rowspan="2" class="CP_ComTitle2 CostcomCenter" style="width:250px;">行程</td> <td rowspan="2" class="CP_ComTitle2 CostcomCenter" style="width:250px;">行程</td>
<td colspan="2" class="CP_ComTitle2 CostcomCenter">酒店</td> <td colspan="2" class="CP_ComTitle2 CostcomCenter">酒店</td>
<td colspan="2" class="CP_ComTitle2 CostcomCenter">车/天</td> <td colspan="2" class="CP_ComTitle2 CostcomCenter">车/天</td>
<td colspan="2" class="CP_ComTitle2 CostcomCenter">门票</td>
<td colspan="2" class="CP_ComTitle2 CostcomCenter"></td> <td colspan="2" class="CP_ComTitle2 CostcomCenter"></td>
<td colspan="2" class="CP_ComTitle2 CostcomCenter">门票</td>
<td colspan="2" class="CP_ComTitle2 CostcomCenter">其它费用<br />(保险、司导杂费等)</td> <td colspan="2" class="CP_ComTitle2 CostcomCenter">其它费用<br />(保险、司导杂费等)</td>
</tr> </tr>
<tr> <tr>
......
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
<td rowspan="2" class="CP_ComTitle2 CostcomCenter" style="width:250px;">行程</td> <td rowspan="2" class="CP_ComTitle2 CostcomCenter" style="width:250px;">行程</td>
<td colspan="2" class="CP_ComTitle2 CostcomCenter">酒店</td> <td colspan="2" class="CP_ComTitle2 CostcomCenter">酒店</td>
<td colspan="2" class="CP_ComTitle2 CostcomCenter">车/天</td> <td colspan="2" class="CP_ComTitle2 CostcomCenter">车/天</td>
<td colspan="2" class="CP_ComTitle2 CostcomCenter">门票</td>
<td colspan="2" class="CP_ComTitle2 CostcomCenter"></td> <td colspan="2" class="CP_ComTitle2 CostcomCenter"></td>
<td colspan="2" class="CP_ComTitle2 CostcomCenter">门票</td>
<td colspan="2" class="CP_ComTitle2 CostcomCenter">其它费用<br />(保险、司导杂费等)</td> <td colspan="2" class="CP_ComTitle2 CostcomCenter">其它费用<br />(保险、司导杂费等)</td>
</tr> </tr>
<tr> <tr>
......
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
<li> <li>
<button class="hollowFixedBtn" @click="getList(),resetPageIndex()">查询</button> <button class="hollowFixedBtn" @click="getList(),resetPageIndex()">查询</button>
<button class="hollowFixedBtn" @click="goMakeQuo('QuotationNewPrice',0)">新增</button> <button class="hollowFixedBtn" @click="goMakeQuo('QuotationNewPrice',0)">新增</button>
<button class="hollowFixedBtn" @click="ShowImportOffer()" style="display:none;">导入报价单</button> <button class="hollowFixedBtn" @click="ShowImportOffer()" style="">导入报价单</button>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -345,12 +345,10 @@ ...@@ -345,12 +345,10 @@
</table> </table>
</div> </div>
</el-dialog> </el-dialog>
<!-- 导入报价单弹窗 -->
<!-- 下载弹窗 -->
<el-dialog custom-class="w600" title="导入报价单" :visible.sync="isShowImportOffer" center> <el-dialog custom-class="w600" title="导入报价单" :visible.sync="isShowImportOffer" center>
<div class="BilldownLoadCommon">
<el-form label-width="80px"> <el-form label-width="80px">
<table style="width:580px;" border="0" cellspacing="0" cellpadding="0"> <table style="width:570px;" border="0" cellspacing="0" cellpadding="0">
<tbody> <tbody>
<tr> <tr>
<td> <td>
...@@ -411,23 +409,29 @@ ...@@ -411,23 +409,29 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td>
<el-upload class="upload-demo" action="" accept="*.*" :http-request="UploadAttachment" <el-upload class="upload-demo" action="" accept="*.*" :http-request="UploadAttachment"
:show-file-list="true"> :show-file-list="true" ref="uploadOffer">
<el-button size="small" type="primary">点击上传</el-button> <el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">只能上传.xls/.xlsx文件</div> <div slot="tip" class="el-upload__tip">只能上传.xls/.xlsx文件</div>
</el-upload> </el-upload>
</td> </td>
<td>
<a :href="`${downLoadUrl}`" target="OfferTemplate.xls"
style="color:blue;text-decoration: underline">下载导入模板</a>
</td>
</tr> </tr>
</tbody> </tbody>
<tr height="66"> <tr>
<td colspan="2" style="text-align:center;"> <td colspan="2" style="text-align:center;">
<input type="button" class="normalBtn" :value="$t('pub.sureBtn')" @click="ImportOffer()" /> <el-button type="primary" class="normalBtn" :loading="importOfferLoading" @click="ImportOffer()">保存
</el-button>
<input type="button" class="normalBtn" value="关闭" @click="isShowImportOffer=false,clearMsg()" />
</td> </td>
</tr> </tr>
</table> </table>
</el-form> </el-form>
</div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
...@@ -496,6 +500,8 @@ ...@@ -496,6 +500,8 @@
EmployeeId: 0, EmployeeId: 0,
}, },
myfile: "", myfile: "",
importOfferLoading: false,
downLoadUrl: "http://imgfile.oytour.com/static/offerTemplate.xlsx",
}; };
}, },
computed: { computed: {
...@@ -518,7 +524,7 @@ ...@@ -518,7 +524,7 @@
}, },
methods: { methods: {
UploadAttachment(files) { UploadAttachment(files) {
this.myfile = files.file this.myfile = files.file;
}, },
//线路切换 //线路切换
changeLine() { changeLine() {
...@@ -529,7 +535,9 @@ ...@@ -529,7 +535,9 @@
} }
this.getLineTeamList(this.postConfig.LineId, 1); this.getLineTeamList(this.postConfig.LineId, 1);
}, },
//显示导入报价单弹窗
ShowImportOffer() { ShowImportOffer() {
this.clearMsg();
this.isShowImportOffer = true; this.isShowImportOffer = true;
}, },
//情况导入数据 //情况导入数据
...@@ -541,15 +549,24 @@ ...@@ -541,15 +549,24 @@
this.postConfig.OutDateTime = ""; this.postConfig.OutDateTime = "";
this.postConfig.CustomerName = ""; this.postConfig.CustomerName = "";
this.postConfig.EmployeeId = 0; this.postConfig.EmployeeId = 0;
this.myfile = "";
}, },
//导入报价单 //导入报价单
ImportOffer() { ImportOffer() {
if (this.postConfig.OutDateTime == '') {
this.Error("请选择出发时间!");
return;
}
if (this.myfile == '') {
this.Error("请选择需要上传的文件!");
return;
}
this.importOfferLoading = true;
let urlObj = this.domainManager(); let urlObj = this.domainManager();
var formData = new FormData(); var formData = new FormData();
formData.append("myfile", this.myfile); formData.append("myfile", this.myfile);
this.postConfig.EmployeeId = this.getLocalStorage().EmployeeId; this.postConfig.EmployeeId = this.getLocalStorage().EmployeeId;
formData.append("msg", JSON.stringify(this.postConfig)); formData.append("msg", JSON.stringify(this.postConfig));
// 'Content-Type': 'multipart/form-data'
this.$http({ this.$http({
headers: { headers: {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
...@@ -558,14 +575,20 @@ ...@@ -558,14 +575,20 @@
url: urlObj.DomainUrl + '/api/file/UploadFile', url: urlObj.DomainUrl + '/api/file/UploadFile',
data: formData data: formData
}).then(res => { }).then(res => {
console.log("ImportOffer", res); this.importOfferLoading = false;
if (res.status === 200) { if (res.status === 200) {
if (res.data && res.data > 0) {
this.$refs.uploadOffer.clearFiles();
this.clearMsg(); this.clearMsg();
this.isShowImportOffer = false; this.isShowImportOffer = false;
this.getList();
} else { } else {
this.$message.error('上传失败!'); this.$message.error('上传失败!');
} }
}).catch(err => {}) }
}).catch(err => {
this.importOfferLoading = false;
})
}, },
//根据当前员工所在部门获取该部门及子部门员工信息 //根据当前员工所在部门获取该部门及子部门员工信息
getEmployeeList() { getEmployeeList() {
......
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