Commit 542e8e89 authored by 黄奎's avatar 黄奎

页面修改

parent f3d1a0e1
<style> <style>
.page_iisMgdetail { .page_iisMgdetail {
width: 830px; width: 830px;
background-color: white; background-color: white;
padding: 10px; padding: 10px;
position: relative; position: relative;
} }
.page_iisMgdetail > p {
.page_iisMgdetail>p {
font-size: 18px; font-size: 18px;
text-align: center; text-align: center;
padding-bottom: 15px; padding-bottom: 15px;
} }
.page_iisMgdetail p.iisMgdetail_status {
.page_iisMgdetail p.iisMgdetail_status {
position: absolute; position: absolute;
right: 10px; right: 10px;
top: 10px; top: 10px;
font-size: 14px; font-size: 14px;
} }
.page_iisMgdetail .page_iisMgdetail_table {
.page_iisMgdetail .page_iisMgdetail_table {
width: 100%; width: 100%;
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
} }
.page_iisMgdetail .page_iisMgdetail_table td {
.page_iisMgdetail .page_iisMgdetail_table td {
padding: 10px; padding: 10px;
} }
.page_iisMgdetail .page_iisMgdetail_table .page_iisMgdetail_bank td._bank_td{
.page_iisMgdetail .page_iisMgdetail_table .page_iisMgdetail_bank td._bank_td {
width: 679px; width: 679px;
} }
.iis_save{
.iis_save {
text-align: right; text-align: right;
padding: 10px 0 0 0; padding: 10px 0 0 0;
} }
.page_iisMgdetail .page_iisMgdetail_table tr td.font-weight{
.page_iisMgdetail .page_iisMgdetail_table tr td.font-weight {
font-weight: 800; font-weight: 800;
} }
.page_iisMgdetail .cursorpointer{
.page_iisMgdetail .cursorpointer {
text-decoration: underline; text-decoration: underline;
} }
.page_iisMgdetail .imd_img_box {
.page_iisMgdetail .imd_img_box {
position: absolute; position: absolute;
right: -400px; right: -400px;
top: 0; top: 0;
width: 400px; width: 400px;
/* background-color: #eaeaea; */ /* background-color: #eaeaea; */
} }
.page_iisMgdetail .imd_img_box .querenhan,.page_iisMgdetail .bg_white{
.page_iisMgdetail .imd_img_box .querenhan,
.page_iisMgdetail .bg_white {
background-color: white; background-color: white;
} }
.page_iisMgdetail .imd_img_box .querenhan{
.page_iisMgdetail .imd_img_box .querenhan {
margin-top: 50px; margin-top: 50px;
} }
.page_iisMgdetail .imd_img_box .querenhan>p{
.page_iisMgdetail .imd_img_box .querenhan>p {
padding: 10px 25px 15px 25px; padding: 10px 25px 15px 25px;
font-size: 14px; font-size: 14px;
} }
.page_iisMgdetail_red {
.page_iisMgdetail_red {
color: #FF0000; color: #FF0000;
} }
.page_iisMgdetail_blue { .page_iisMgdetail_blue {
color: #0000FF; color: #0000FF;
} }
.page_iisMgdetail_green { .page_iisMgdetail_green {
color: #008000; color: #008000;
} }
.page_iisMgdetail_black {
.page_iisMgdetail_black {
color: #000000; color: #000000;
} }
.page_iisMgdetail ._fujian_zhankai{
.page_iisMgdetail ._fujian_zhankai {
color: white; color: white;
width: 64px; width: 64px;
height: 0; height: 0;
...@@ -81,8 +97,9 @@ ...@@ -81,8 +97,9 @@
position: relative; position: relative;
left: -18px; left: -18px;
bottom: -27px; bottom: -27px;
} }
.page_iisMgdetail ._fujian_zhankai>span{
.page_iisMgdetail ._fujian_zhankai>span {
display: inline-block; display: inline-block;
height: 100%; height: 100%;
width: 50%; width: 50%;
...@@ -91,69 +108,82 @@ ...@@ -91,69 +108,82 @@
bottom: 15px; bottom: 15px;
-webkit-transform: rotate(90deg); -webkit-transform: rotate(90deg);
transform: rotate(90deg); transform: rotate(90deg);
} }
.page_iisMgdetail ._fujian_zhankai>span:nth-child(2){
.page_iisMgdetail ._fujian_zhankai>span:nth-child(2) {
left: 18px; left: 18px;
bottom: 3px; bottom: 3px;
} }
.page_iisMgdetail ._fujian_box_tit{
.page_iisMgdetail ._fujian_box_tit {
display: flex; display: flex;
justify-content:space-between; justify-content: space-between;
font-size: 14px; font-size: 14px;
color: #333333; color: #333333;
} }
.page_iisMgdetail ._fujian_box_tit .iconfont{
.page_iisMgdetail ._fujian_box_tit .iconfont {
font-size: 14px; font-size: 14px;
display: inline-block; display: inline-block;
margin-right: 8px; margin-right: 8px;
} }
.page_iisMgdetail ._fujian_box_tit .iconfont.icon-bangdingzhagnhuxinxi{
.page_iisMgdetail ._fujian_box_tit .iconfont.icon-bangdingzhagnhuxinxi {
color: #E95252; color: #E95252;
} }
.page_iisMgdetail ._fujian_box_tit .iconfont.icon-gengduo{
transform:rotate(90deg); .page_iisMgdetail ._fujian_box_tit .iconfont.icon-gengduo {
transform: rotate(90deg);
font-size: 12px; font-size: 12px;
} }
.page_iisMgdetail ._addUpload_box_btm .icon-excel{
.page_iisMgdetail ._addUpload_box_btm .icon-excel {
text-align: center; text-align: center;
font-size: 38px; font-size: 38px;
color: green; color: green;
line-height: 75px; line-height: 75px;
} }
.page_iisMgdetail ._wenjian{
.page_iisMgdetail ._wenjian {
padding: 15px; padding: 15px;
width: 91px; width: 91px;
height: 80px; height: 80px;
border:1px solid rgba(221,221,221,1); border: 1px solid rgba(221, 221, 221, 1);
float: left; float: left;
cursor: pointer; cursor: pointer;
margin-right: 10px; margin-right: 10px;
margin-top: 10px; margin-top: 10px;
} }
.page_iisMgdetail ._wenjian_P{
.page_iisMgdetail ._wenjian_P {
font-size: 30px; font-size: 30px;
text-align: center; text-align: center;
color: #41D2A1; color: #41D2A1;
} }
.page_iisMgdetail .el-carousel__item{
.page_iisMgdetail .el-carousel__item {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
display: flex; display: flex;
} }
.page_iisMgdetail ._addUpload_tips {
.page_iisMgdetail ._addUpload_tips {
margin-top: 20px; margin-top: 20px;
font-size: 12px; font-size: 12px;
color: #999999; color: #999999;
} }
.page_iisMgdetail ._addUpload_box {
.page_iisMgdetail ._addUpload_box {
display: block; display: block;
margin-top: 15px; margin-top: 15px;
} }
.page_iisMgdetail ._addUpload_box img {
.page_iisMgdetail ._addUpload_box img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.page_iisMgdetail ._addUpload_box > div {
.page_iisMgdetail ._addUpload_box>div {
float: left; float: left;
width: 138px; width: 138px;
height: 92px; height: 92px;
...@@ -164,18 +194,21 @@ ...@@ -164,18 +194,21 @@
padding: 5px; padding: 5px;
margin-right: 10px; margin-right: 10px;
position: relative; position: relative;
} }
.page_iisMgdetail ._addUpload_box > div:hover {
.page_iisMgdetail ._addUpload_box>div:hover {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.page_iisMgdetail ._addFile_name {
.page_iisMgdetail ._addFile_name {
padding-left: 15px; padding-left: 15px;
max-width: 450px; max-width: 450px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.page_iisMgdetail ._addUpload_box .icon-guanbi1 {
.page_iisMgdetail ._addUpload_box .icon-guanbi1 {
font-size: 12px; font-size: 12px;
color: white; color: white;
display: inline-block; display: inline-block;
...@@ -189,26 +222,30 @@ ...@@ -189,26 +222,30 @@
width: 20px; width: 20px;
text-align: center; text-align: center;
line-height: 20px; line-height: 20px;
} }
.page_iisMgdetail ._addUpload_box .icon-guanbi1:hover {
.page_iisMgdetail ._addUpload_box .icon-guanbi1:hover {
font-size: 12px; font-size: 12px;
color: #c94052; color: #c94052;
} }
.page_iisMgdetail ._addUpload_box .icon-excel,
.page_iisMgdetail ._addUpload_box .icon-pdf { .page_iisMgdetail ._addUpload_box .icon-excel,
.page_iisMgdetail ._addUpload_box .icon-pdf {
text-align: center; text-align: center;
font-size: 38px; font-size: 38px;
color: green; color: green;
line-height: 75px; line-height: 75px;
} }
.page_iisMgdetail .el-upload-dragger {
.page_iisMgdetail .el-upload-dragger {
font-size: 28px; font-size: 28px;
color: #8c939d; color: #8c939d;
width: 126px; width: 126px;
height: 80px; height: 80px;
line-height: 41px; line-height: 41px;
text-align: center; text-align: center;
} }
</style> </style>
<template> <template>
<div class="page_iisMgdetail" v-loading="loading"> <div class="page_iisMgdetail" v-loading="loading">
...@@ -221,12 +258,7 @@ ...@@ -221,12 +258,7 @@
<span v-if="detail.InvoiceApplyState === 5" class="groupTourOrder_tickets_red">欠票</span> <span v-if="detail.InvoiceApplyState === 5" class="groupTourOrder_tickets_red">欠票</span>
<span v-if="detail.InvoiceApplyState === 6" class="page_iisMgdetail_blue">发票追回</span> <span v-if="detail.InvoiceApplyState === 6" class="page_iisMgdetail_blue">发票追回</span>
</p> </p>
<table <table data-v-ca5157c2 border="1" class="page_iisMgdetail_table" style="border-collapse: collapse;">
data-v-ca5157c2
border="1"
class="page_iisMgdetail_table"
style="border-collapse: collapse;"
>
<tr> <tr>
<td width="130">{{$t('ios.bumen')}}</td> <td width="130">{{$t('ios.bumen')}}</td>
<td>{{detail.deptName}}</td> <td>{{detail.deptName}}</td>
...@@ -277,7 +309,8 @@ ...@@ -277,7 +309,8 @@
</td> </td>
</template> </template>
<td>{{$t('ios.ddanhao')}}</td> <td>{{$t('ios.ddanhao')}}</td>
<td class="text-align-left font-weight cursorpointer" :colspan="$route.query.InvoiceApplyType&&$route.query.InvoiceApplyType==4?3:0"> <td class="text-align-left font-weight cursorpointer"
:colspan="$route.query.InvoiceApplyType&&$route.query.InvoiceApplyType==4?3:0">
<span @click="goUrlO(detail.OrderId)">{{detail.OrderId}}</span> <span @click="goUrlO(detail.OrderId)">{{detail.OrderId}}</span>
</td> </td>
</tr> </tr>
...@@ -285,8 +318,9 @@ ...@@ -285,8 +318,9 @@
<tr> <tr>
<td>{{$t('ios.cwdanju')}}</td> <td>{{$t('ios.cwdanju')}}</td>
<td colspan="3" class="w600 text-align-left font-weight cursorpointer"> <td colspan="3" class="w600 text-align-left font-weight cursorpointer">
<template v-for="item in orderList.FrIDs"> <template v-for="(item,index) in orderList.FrIDs">
<span @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', detail.OrderId, detail.TCNUM, detail.TCID)">{{item}}</span> <span :key="index+10000"
@click="goUrlSFD('SalesFinancialDetail', '销售财务单据', detail.OrderId, detail.TCNUM, detail.TCID)">{{item}}</span>
</template> </template>
<span v-if="orderList.FrIDs && orderList.FrIDs.length<1">{{$t('ios.zanwu')}}</span> <span v-if="orderList.FrIDs && orderList.FrIDs.length<1">{{$t('ios.zanwu')}}</span>
</td> </td>
...@@ -345,13 +379,14 @@ ...@@ -345,13 +379,14 @@
</td> </td>
</tr> </tr>
</table> </table>
<el-dialog :title="$t('pub.hintMsg')" width="400px" :visible.sync="dialogFormVisible2" center :before-close="closeChangeMachie" > <el-dialog :title="$t('pub.hintMsg')" width="400px" :visible.sync="dialogFormVisible2" center
:before-close="closeChangeMachie">
<el-form label-width="110px"> <el-form label-width="110px">
<el-form-item :label="$t('ios.shuihao2')"> <el-form-item :label="$t('ios.shuihao2')">
<el-input class="" v-model="msg.InvoiceNo" :placeholder="$t('ios.qsrshuihao')"></el-input> <el-input class="" v-model="msg.InvoiceNo" :placeholder="$t('ios.qsrshuihao')"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer" > <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="dialogFormVisible2=false">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" @click="dialogFormVisible2=false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="setStatus(3)">{{$t('pub.sureBtn')}}</button> <button class="normalBtn" type="primary" @click="setStatus(3)">{{$t('pub.sureBtn')}}</button>
</div> </div>
...@@ -368,13 +403,14 @@ ...@@ -368,13 +403,14 @@
<button class="normalBtn" @click="dialogFormVisible2 = true">{{$t('ios.tonggei')}}</button> <button class="normalBtn" @click="dialogFormVisible2 = true">{{$t('ios.tonggei')}}</button>
<button class="hollowFixedBtn" @click="dialogFormVisible = true">{{$t('ios.jujue')}}</button> <button class="hollowFixedBtn" @click="dialogFormVisible = true">{{$t('ios.jujue')}}</button>
</div> </div>
<div class="iis_save" v-else-if="noDetail && detail.InvoiceApplyState===1 && (EmployeeId === detail.CreateById || EmployeeId===1 || F_GeneralManager)"> <div class="iis_save"
v-else-if="noDetail && detail.InvoiceApplyState===1 && (EmployeeId === detail.CreateById || EmployeeId===1 || F_GeneralManager)">
<button class="normalBtn" @click="setStatus(2)">{{$t('pub.cancelBtn')}}</button> <button class="normalBtn" @click="setStatus(2)">{{$t('pub.cancelBtn')}}</button>
</div> </div>
<div class="imd_img_box"> <div class="imd_img_box">
<!-- v-show="EmployeeId === detail.CreateById && detail.InvoiceApplyState === 4" --> <button class="normalBtn" v-show="EmployeeId === detail.CreateById && detail.InvoiceApplyState === 4"
<button class="normalBtn" v-show="EmployeeId === detail.CreateById && detail.InvoiceApplyState === 4" @click="goEdit()">修改</button> @click="goEdit()">修改</button>
<div class="_fujian_box" > <div class="_fujian_box">
<div v-if="detail.ApplyPics&&detail.ApplyPics.length>0"> <div v-if="detail.ApplyPics&&detail.ApplyPics.length>0">
<div class="_fujian_zhankai cursorpointer" v-if="!fujianShow" @click="fujianShow = true"> <div class="_fujian_zhankai cursorpointer" v-if="!fujianShow" @click="fujianShow = true">
<span>附件</span> <span>附件</span>
...@@ -397,24 +433,28 @@ ...@@ -397,24 +433,28 @@
</div> </div>
<div class="clearfix" v-if="detail.ApplyPics && detail.ApplyPics.length"> <div class="clearfix" v-if="detail.ApplyPics && detail.ApplyPics.length">
<template v-for="(file,fIndex) in detail.ApplyPics" v-if="file.Type==='1'"> <template v-for="(file,fIndex) in detail.ApplyPics" v-if="file.Type==='1'">
<div class="_wenjian" @click="showUpLoadFile(file)"> <div class="_wenjian" @click="showUpLoadFile(file)" :key="fIndex+20000">
<p v-if="file.Type==='1'" class="_wenjian_P iconfont" :class="file.Url.substring(file.Url.lastIndexOf('.')+1,file.Url.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"></p> <p v-if="file.Type==='1'" class="_wenjian_P iconfont"
:class="file.Url.substring(file.Url.lastIndexOf('.')+1,file.Url.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'">
</p>
</div> </div>
</template> </template>
</div> </div>
</div> </div>
</div> </div>
<div v-else-if="!detail.ApplyPics && EmployeeId === detail.CreateById"> <div v-else-if="!detail.ApplyPics && EmployeeId === detail.CreateById">
<div class="_addUpload_box _addUpload_box_btm clearfix" > <div class="_addUpload_box _addUpload_box_btm clearfix">
<template v-for="(file,fIndex) in saveMsg"> <template v-for="(file,fIndex) in saveMsg">
<div v-if="file.Type==3"> <div v-if="file.Type==3" :key="fIndex+30000">
<div style="width:100%;height:100%;overflow: hidden;"> <div style="width:100%;height:100%;overflow: hidden;">
<img :src="file.Url?file.Url:file.Content" @click="showImg(file.Url?file.Url:file.Content)"> <img :src="file.Url?file.Url:file.Content" @click="showImg(file.Url?file.Url:file.Content)">
</div> </div>
<span class="iconfont icon-guanbi1" @click="deleteUploadFile(fIndex)"></span> <span class="iconfont icon-guanbi1" @click="deleteUploadFile(fIndex)"></span>
</div> </div>
<div v-if="file.Type==1"> <div v-if="file.Type==1" :key="fIndex+40000">
<div class="iconfont _wenjian_P" :class="file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'" @click="showUpLoadFileT(file)"> <div class="iconfont _wenjian_P"
:class="file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"
@click="showUpLoadFileT(file)">
</div> </div>
<span class="iconfont icon-guanbi1" @click="deleteUploadFile(fIndex)"></span> <span class="iconfont icon-guanbi1" @click="deleteUploadFile(fIndex)"></span>
...@@ -422,11 +462,8 @@ ...@@ -422,11 +462,8 @@
</template> </template>
</div> </div>
<div style="margin-top: 80px;"> <div style="margin-top: 80px;">
<div class="_pic_upload" > <div class="_pic_upload">
<el-upload <el-upload drag :http-request="uploadFileBtn" :multiple="true" :show-file-list="false" action="">
drag
:http-request="uploadFileBtn"
:multiple="true" :show-file-list="false" action="">
<i class="el-icon-plus avatar-uploader-icon"></i> <i class="el-icon-plus avatar-uploader-icon"></i>
<div class="el-upload__text">点击/拖拽上传</div> <div class="el-upload__text">点击/拖拽上传</div>
</el-upload> </el-upload>
...@@ -435,16 +472,19 @@ ...@@ -435,16 +472,19 @@
</div> </div>
</div> </div>
<div class="querenhan"> <div class="querenhan">
<p >确认函</p> <p>确认函</p>
<div style="width:100%;" > <div style="width:100%;">
<div v-if="detail.ConfirmFileList && detail.ConfirmFileList.length>0"> <div v-if="detail.ConfirmFileList && detail.ConfirmFileList.length>0">
<el-carousel trigger="click" height="293px" width="440px" :interval="5000" v-if="detail.ConfirmFileList[0].Url.indexOf('.png')!=-1 || detail.ConfirmFileList[0].Url.indexOf('.jp')!=-1"> <el-carousel trigger="click" height="293px" width="440px" :interval="5000"
v-if="detail.ConfirmFileList[0].Url.indexOf('.png')!=-1 || detail.ConfirmFileList[0].Url.indexOf('.jp')!=-1">
<el-carousel-item style="height: 293px;"> <el-carousel-item style="height: 293px;">
<img @click="showImg(detail.ConfirmFileList[0].Url)" :src="domainManager().ViittoFileUrl + detail.ConfirmFileList[0].Url" alt="" style="width: 100%;"> <img @click="showImg(detail.ConfirmFileList[0].Url)"
:src="domainManager().ViittoFileUrl + detail.ConfirmFileList[0].Url" alt="" style="width: 100%;">
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
<div v-else> <div v-else>
<p style="padding-top: 5px;padding-left: 20px;font-size: 14px;margin-bottom: 10px;" class="cursorpointer"> <p style="padding-top: 5px;padding-left: 20px;font-size: 14px;margin-bottom: 10px;"
class="cursorpointer">
<a target="_blank" :href="domainManager().ViittoFileUrl + detail.ConfirmFileList[0].Url">下载文件</a> <a target="_blank" :href="domainManager().ViittoFileUrl + detail.ConfirmFileList[0].Url">下载文件</a>
</p> </p>
</div> </div>
...@@ -452,15 +492,14 @@ ...@@ -452,15 +492,14 @@
</div> </div>
</div> </div>
</div> </div>
<!-- v-if="detail.ConfirmFileList && detail.ConfirmFileList.length>0" -->
</div> </div>
<el-dialog title="提示信息" width="400px" :visible.sync="dialogFormVisible" center :before-close="closeChangeMachie" > <el-dialog title="提示信息" width="400px" :visible.sync="dialogFormVisible" center :before-close="closeChangeMachie">
<el-form label-width="110px"> <el-form label-width="110px">
<el-form-item label="拒绝理由"> <el-form-item label="拒绝理由">
<el-input type="textarea" v-model="msg.RefuseRemarks" class="w216"></el-input> <el-input type="textarea" v-model="msg.RefuseRemarks" class="w216"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer" > <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="dialogFormVisible=false">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" @click="dialogFormVisible=false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="setStatus(4)">{{$t('pub.sureBtn')}}</button> <button class="normalBtn" type="primary" @click="setStatus(4)">{{$t('pub.sureBtn')}}</button>
</div> </div>
...@@ -471,7 +510,7 @@ ...@@ -471,7 +510,7 @@
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
detail: {}, detail: {},
...@@ -490,13 +529,13 @@ export default { ...@@ -490,13 +529,13 @@ export default {
EmployeeId: 0, EmployeeId: 0,
images: [], images: [],
FuImgList: [], FuImgList: [],
imageOptions:{ imageOptions: {
navbar:false, navbar: false,
title:false title: false
}, },
fujianShow:true, fujianShow: true,
saveMsg: [], saveMsg: [],
F_GeneralManager:false, F_GeneralManager: false,
}; };
}, },
methods: { methods: {
...@@ -511,25 +550,40 @@ export default { ...@@ -511,25 +550,40 @@ export default {
}, },
// 修改 // 修改
goEdit: function () { goEdit: function () {
this.$router.push({ name: 'invoicesManagerAdd', query:{id: this.detail.ID, OrderId: this.detail.OrderId, TCID: this.detail.TCID, CustomerId: this.detail.CustomerId, edit: 1, blank:'y', tab:'修改发票单据'} }) this.$router.push({
name: 'invoicesManagerAdd',
query: {
id: this.detail.ID,
OrderId: this.detail.OrderId,
TCID: this.detail.TCID,
CustomerId: this.detail.CustomerId,
edit: 1,
blank: 'y',
tab: '修改发票单据'
}
})
}, },
uploadFileBtn(file) { //上传 uploadFileBtn(file) { //上传
if(file.file.size > 1024 * 1024 * 10) { if (file.file.size > 1024 * 1024 * 10) {
this.$message.warning('文件大小不能超过10M!') this.$message.warning('文件大小不能超过10M!')
return return
} }
// 1 文档 2 数据 3 图片 // 1 文档 2 数据 3 图片
let typeArr=[ let typeArr = [{
{stringArr:'GIF|JPG|JPEG|PNG|BMP',type:3}, stringArr: 'GIF|JPG|JPEG|PNG|BMP',
{stringArr:'DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF',type:1}, type: 3
},
{
stringArr: 'DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF',
type: 1
},
] ]
let ft=file.file.name.substring(file.file.name.lastIndexOf('.')+1,file.file.name.length).toUpperCase(); let ft = file.file.name.substring(file.file.name.lastIndexOf('.') + 1, file.file.name.length).toUpperCase();
let fileTypeNumber = 2; let fileTypeNumber = 2;
let typeOk = false; let typeOk = false;
typeArr.forEach(x=>{ typeArr.forEach(x => {
if(x.stringArr.indexOf(ft)!='-1') if (x.stringArr.indexOf(ft) != '-1') {
{ fileTypeNumber = x.type;
fileTypeNumber=x.type;
typeOk = true; typeOk = true;
} }
}); });
...@@ -539,7 +593,7 @@ export default { ...@@ -539,7 +593,7 @@ export default {
let path = "/Upload/Temporary/" let path = "/Upload/Temporary/"
this.$message.info('上传中...') this.$message.info('上传中...')
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0); let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
this.saveMsg.push({ this.saveMsg.push({
Type: fileTypeNumber, Type: fileTypeNumber,
Content: x.data.FilePath, Content: x.data.FilePath,
...@@ -548,38 +602,38 @@ export default { ...@@ -548,38 +602,38 @@ export default {
this.$message.success('上传成功'); this.$message.success('上传成功');
}); });
}, },
upLoadFuJian: function() { upLoadFuJian: function () {
if (this.saveMsg.length===0) return this.$message.error('请上传文件!'); if (this.saveMsg.length === 0) return this.$message.error('请上传文件!');
let msg = { let msg = {
ID: this.msg.ID, ID: this.msg.ID,
ApplyPics: this.saveMsg ApplyPics: this.saveMsg
}; };
this.apipost('InvoiceApply_get_UpdateInvoiceApplyInfo', msg, res=>{ this.apipost('InvoiceApply_get_UpdateInvoiceApplyInfo', msg, res => {
if (res.data.resultCode===1) { if (res.data.resultCode === 1) {
this.getDetail(this.msg.ID) this.getDetail(this.msg.ID)
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, null) }, null)
}, },
showUpLoadFile(i){ // 预览上传文件 showUpLoadFile(i) { // 预览上传文件
if(i.Url.substring(i.Url.lastIndexOf('.')+1,i.Url.length).toUpperCase()=='PDF'){ if (i.Url.substring(i.Url.lastIndexOf('.') + 1, i.Url.length).toUpperCase() == 'PDF') {
this.previewPDF(i.Url) this.previewPDF(i.Url)
}else{ } else {
window.open("https://view.officeapps.live.com/op/view.aspx?src="+i.Url) window.open("https://view.officeapps.live.com/op/view.aspx?src=" + i.Url)
} }
}, },
inited (viewer){ inited(viewer) {
this.$viewer = viewer this.$viewer = viewer
}, },
showImg(src ,t){ showImg(src, t) {
src = t ? src : this.domainManager().ViittoFileUrl + src; src = t ? src : this.domainManager().ViittoFileUrl + src;
let isExsit=false let isExsit = false
this.images.forEach(x=>{ this.images.forEach(x => {
if(x==src) if (x == src)
isExsit=true isExsit = true
}) })
if(!isExsit) { if (!isExsit) {
this.images.push(src) this.images.push(src)
} else { } else {
this.$viewer.view(this.images.indexOf(src)) this.$viewer.view(this.images.indexOf(src))
...@@ -587,19 +641,47 @@ export default { ...@@ -587,19 +641,47 @@ export default {
this.$viewer.show() this.$viewer.show()
}, },
goUrlO: function (OrderId) { goUrlO: function (OrderId) {
if(this.$route.query.InvoiceApplyType&&this.$route.query.InvoiceApplyType==4){ if (this.$route.query.InvoiceApplyType && this.$route.query.InvoiceApplyType == 4) {
this.$router.push({ name: 'CRMTicketOrderOP', query: { OrderId: OrderId, blank: 'y', tab: '单机票详情'} }); this.$router.push({
}else{ name: 'CRMTicketOrderOP',
this.$router.push({ name: 'enrollTotal', query: { id: OrderId, blank: 'y', tab: '报名统计'} }); query: {
OrderId: OrderId,
blank: 'y',
tab: '单机票详情'
}
});
} else {
this.$router.push({
name: 'enrollTotal',
query: {
id: OrderId,
blank: 'y',
tab: '报名统计'
}
});
} }
}, },
goUrlT: function (path, obj, title){ // 跳转团页面 goUrlT: function (path, obj, title) { // 跳转团页面
this.$router.push({ name:path,query:{"id":obj,blank:'y',tab:title}}) this.$router.push({
name: path,
query: {
"id": obj,
blank: 'y',
tab: title
}
})
}, },
goSaleFinacial: function () { // 跳转销售财务单据 goSaleFinacial: function () { // 跳转销售财务单据
if(this.$route.query.InvoiceApplyType&&this.$route.query.InvoiceApplyType==4){ if (this.$route.query.InvoiceApplyType && this.$route.query.InvoiceApplyType == 4) {
this.$router.push({ name: 'CRMTicketOrderOP', query: { OrderId: this.detail.OrderId, blank: 'y', tab: '单机票详情'} }); this.$router.push({
}else{ name: 'CRMTicketOrderOP',
query: {
OrderId: this.detail.OrderId,
blank: 'y',
tab: '单机票详情'
}
});
} else {
let obj = { let obj = {
orderId: this.detail.OrderId, orderId: this.detail.OrderId,
tcnum: this.detail.TCNUM, tcnum: this.detail.TCNUM,
...@@ -607,44 +689,52 @@ export default { ...@@ -607,44 +689,52 @@ export default {
} }
this.$router.push({ this.$router.push({
name: 'SalesFinancialDetail', name: 'SalesFinancialDetail',
query: {blank: 'y', tab: '销售财务单据', item: JSON.stringify(obj)} query: {
blank: 'y',
tab: '销售财务单据',
item: JSON.stringify(obj)
}
}); });
} }
}, },
setStatus: function (type) { // 审核发票单据 setStatus: function (type) { // 审核发票单据
this.msg.InvoiceApplyState = type this.msg.InvoiceApplyState = type
if (type === 3 && this.msg.InvoiceNo==='') { if (type === 3 && this.msg.InvoiceNo === '') {
return this.$message.error('请填写税号!') return this.$message.error('请填写税号!')
} }
this.apipost('InvoiceApply_get_UpdateInvoiceApply', this.msg, res=>{ this.apipost('InvoiceApply_get_UpdateInvoiceApply', this.msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message) this.$message.success(res.data.message)
if (type !== 2) { if (type !== 2) {
setTimeout(()=>{ setTimeout(() => {
this.$router.push({ this.$router.push({
name: 'invoicesManager', name: 'invoicesManager',
}); });
},1000) }, 1000)
} else { } else {
setTimeout(()=>{ setTimeout(() => {
this.$router.push({ this.$router.push({
name: 'groupTourOrder', name: 'groupTourOrder',
query: {blank: "y",} query: {
blank: "y",
}
}); });
},1000) }, 1000)
} }
} }
}, null) }, null)
}, },
getDetail: function (id) { // 获取详情 getDetail: function (id) { // 获取详情
let InvoiceApplyType = this.$route.query.InvoiceApplyType ? this.$route.query.InvoiceApplyType : 1 let InvoiceApplyType = this.$route.query.InvoiceApplyType ? this.$route.query.InvoiceApplyType : 1
this.apipost('InvoiceApply_get_GetDetails', {ID: id, InvoiceApplyType: InvoiceApplyType}, res=>{ this.apipost('InvoiceApply_get_GetDetails', {
ID: id,
InvoiceApplyType: InvoiceApplyType
}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let detail = res.data.data let detail = res.data.data
if(detail.ApplyPics && detail.ApplyPics.length>0){ if (detail.ApplyPics && detail.ApplyPics.length > 0) {
detail.ApplyPics.forEach(x=>{ detail.ApplyPics.forEach(x => {
if(x.Type==='3'){ if (x.Type === '3') {
this.FuImgList.push(x.Url); this.FuImgList.push(x.Url);
this.images.push(x.Url) this.images.push(x.Url)
} }
...@@ -662,13 +752,16 @@ export default { ...@@ -662,13 +752,16 @@ export default {
getOrderDetail: function () { // 获取交易信息详情 getOrderDetail: function () { // 获取交易信息详情
let OrderResource = this.$route.query.InvoiceApplyType ? 10 : 8 let OrderResource = this.$route.query.InvoiceApplyType ? 10 : 8
this.apipost( this.apipost(
'InvoiceApply_get_GetOrderFinanceList', 'InvoiceApply_get_GetOrderFinanceList', {
{OrderId: this.detail.OrderId, OrderResource: OrderResource, IsTravelMoney: 1}, OrderId: this.detail.OrderId,
OrderResource: OrderResource,
IsTravelMoney: 1
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.orderList = res.data.data this.orderList = res.data.data
} }
},err => {} }, err => {}
) )
}, },
goUrlSFD: function (path, name, OrderId, tcnum, tcid) { goUrlSFD: function (path, name, OrderId, tcnum, tcid) {
...@@ -679,18 +772,24 @@ export default { ...@@ -679,18 +772,24 @@ export default {
} }
this.$router.push({ this.$router.push({
name: path, name: path,
query: {blank: 'y', tab: name, item: JSON.stringify(obj)} query: {
blank: 'y',
tab: name,
item: JSON.stringify(obj)
}
}) })
}, },
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.EmployeeId=userInfo.EmployeeId; this.EmployeeId = userInfo.EmployeeId;
let id = this.$route.query.id let id = this.$route.query.id
//是否显示审核按钮
this.noDetail = this.$route.query.noDetail ? true : false this.noDetail = this.$route.query.noDetail ? true : false
this.msg.ID = id this.msg.ID = id
this.getDetail(id) this.getDetail(id)
this.GetSupperOrderEditAuth(); this.GetSupperOrderEditAuth();
} }
}; };
</script> </script>
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