liuhj 3 月之前
父節點
當前提交
d2d73a66dc
共有 2 個文件被更改,包括 121 次插入9 次删除
  1. 1 0
      src/components/MCR/MarketCustomerResourcesHome.vue
  2. 120 9
      src/components/OP/backwardtabke.vue

+ 1 - 0
src/components/MCR/MarketCustomerResourcesHome.vue

@@ -345,6 +345,7 @@ export default {
         },
         //logchange
         logchange(){
+            this.logcurrentPage=1;
             let opTypeLabels='';
             let opUserLabels='';
             for(let i=0;i<this.form.opTypeLabel.length;i++){

+ 120 - 9
src/components/OP/backwardtabke.vue

@@ -11,11 +11,11 @@
                     </el-select>
                 </div>
                 <div class="backward-head-li">
+                    <span style="color: red;"><spu>*</spu>会务倒退表没有预览直接下载即可</span>
+                    <el-button @click="InforRetrogressTableFileDownload" type="primary">导出会务倒退表</el-button>
                     <el-button @click="PostInvertedListCreate" type="primary">生成倒推表</el-button>
                     <el-button @click="PostInvertedListUpdate" type="primary">保 存</el-button>
-                    <el-button @click="PostInvertedListFileDownload" type="primary">导出倒推表
-
-                    </el-button>
+                    <el-button @click="PostInvertedListFileDownload" type="primary">导出倒推表</el-button>
                 </div>
             </div>
             <div class="backward-title">
@@ -70,7 +70,7 @@
                         <el-date-picker value-format="yyyy-MM-dd" v-model="datainfo.issueApprovalDt" type="date" placeholder="选择日期">
                         </el-date-picker>
                     </div>
-                    <div class="backward-li-span"><p style="line-height: 10px;padding: 0;">出批件</p><p  style="line-height: 10px;padding: 0;">护照办理</p></div>
+                    <div class="backward-li-span"><div style="line-height: 25px;padding: 0;">出批件</div><div  style="line-height: 25px;padding: 0;">护照办理</div></div>
                     <div class="backward-li-span">
                         <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 2}" placeholder="请输入内容"
                             v-model="datainfo.issueApprovalRemark">
@@ -246,6 +246,8 @@
 export default {
     data () {
         return {
+            userId:'',
+            token:'',
             value:'',
             options:[],
             groupinfo:{},
@@ -504,6 +506,35 @@ export default {
             this.PostShareGroupInfo();
             this.PostInvertedListInfo();
         },
+        //生成会务倒推表
+        InforRetrogressTableFileDownload() {
+            var url = "/api/Groups/InforRetrogressTableFileDownload"
+            var that = this
+            this.$axios({
+                method: 'post',
+                url: url,
+                headers: {
+                    Authorization: 'Bearer ' + this.token
+                },
+                data: {
+                    groupId:that.value,
+                    currUserId: that.userId
+                }
+            }).then(function (res) {
+                if (res.data.code == 200) {
+                    that.$message({
+                        message:res.data.msg ,
+                        type: 'success',
+                        offset:50
+                    });
+                    window.open(res.data.data.url)
+                }else{
+                    that.$message.error(res.data.msg);
+                }
+            }).catch(function (error) {
+                that.$message.error(error);
+            });
+        },
         //生成倒推表
         PostInvertedListCreate() {
             var url = "/api/Groups/PostInvertedListCreate"
@@ -526,6 +557,7 @@ export default {
                         offset:50
                     });
                     that.PostInvertedListInfo();
+                    
                 }else{
                     that.$message.error(res.data.msg);
                 }
@@ -535,8 +567,8 @@ export default {
         },
         //保存
         PostInvertedListUpdate() {
-            var url = "/api/Groups/PostInvertedListUpdate"
             var that = this
+            var url = "/api/Groups/PostInvertedListUpdate"
             this.$axios({
                 method: 'post',
                 url: url,
@@ -613,17 +645,66 @@ export default {
         },
         //导出倒推表
         PostInvertedListFileDownload() {
-            var url = "/api/Groups/PostInvertedListFileDownload"
             var that = this
+            var url = "/api/Groups/PostInvertedListUpdate"
             this.$axios({
                 method: 'post',
                 url: url,
                 headers: {
-                    Authorization: 'Bearer ' + that.token
+                    Authorization: 'Bearer ' + this.token
                 },
                 data: {
                     portType: 1,
-                    diId: that.value
+                    isQuery:that.datainfo.isQuery,
+                    id: that.datainfo.id,
+                    diId: that.datainfo.diId,
+                    approvalDataDt: that.datainfo.approvalDataDt,
+                    isApprovalData: that.datainfo.isApprovalData,
+                    approvalDataRemark: that.datainfo.approvalDataRemark,
+                    approvalDt: that.datainfo.approvalDt,
+                    approvalType: that.datainfo.approvalType,
+                    isApproval: that.datainfo.isApproval,
+                    approvalRemark: that.datainfo.approvalRemark,
+                    issueApprovalDt: that.datainfo.issueApprovalDt,
+                    isIssueApproval: that.datainfo.isIssueApproval,
+                    issueApprovalRemark: that.datainfo.issueApprovalRemark,
+                    applyPassportDt: that.datainfo.applyPassportDt,
+                    isApplyPassport: that.datainfo.isApplyPassport,
+                    applyPassportRemark: that.datainfo.applyPassportRemark,
+                    visaInformationDt: that.datainfo.visaInformationDt,
+                    isVisaInformation: that.datainfo.isVisaInformation,
+                    visaInformationRemark: that.datainfo.visaInformationRemark,
+                    visaCountryData: that.datainfo.visaCountryData,
+                    sendVisaDt: that.datainfo.sendVisaDt,
+                    isSendVisa: that.datainfo.isSendVisa,
+                    sendVisaRemark: that.datainfo.sendVisaRemark,
+                    issueVisaDt: that.datainfo.issueVisaDt,
+                    isIssueVisa: that.datainfo.isIssueVisa,
+                    issueVisaRemark: that.datainfo.issueVisaRemark,
+
+                    airTicketDt: that.datainfo.airTicketDt,
+                    isAirTicket: that.datainfo.isAirTicket,
+                    airTicketRemark: that.datainfo.airTicketRemark,
+                    hotelDt: that.datainfo.hotelDt,
+                    isHotel: that.datainfo.isHotel,
+                    hotelRemark: that.datainfo.hotelRemark,
+                    isSelectedAirportd: that.datainfo.isSelectedAirportd,
+                    isSelectedApprovalData: that.datainfo.isSelectedApprovalData,
+                    isSelectedIssueApproval: that.datainfo.isSelectedIssueApproval,
+                    isSelectedVisaInfo: that.datainfo.isSelectedVisaInfo,
+                    isSelectedSendVisa: that.datainfo.isSelectedSendVisa,
+                    isSelectedIssueVisa: that.datainfo.isSelectedIssueVisa,
+                    isSelectedAirTicket: that.datainfo.isSelectedAirTicket,
+                    isSelectedHotel: that.datainfo.isSelectedHotel,
+                    isSelectedPreTripMeeting: that.datainfo.isSelectedPreTripMeeting,
+                    isSelectedAirportdDropOff: that.datainfo.isSelectedAirportdDropOff,
+
+                    preTripMeetingDt: that.datainfo.preTripMeetingDt,
+                    isPreTripMeeting: that.datainfo.isPreTripMeeting,
+                    preTripMeetingRemark: that.datainfo.preTripMeetingRemark,
+                    airportdDropOffDt: that.datainfo.airportdDropOffDt,
+                    isAirportdDropOff: that.datainfo.isAirportdDropOff,
+                    airportdDropOffRemark: that.datainfo.airportdDropOffRemark,
                 }
             }).then(function (res) {
                 if (res.data.code == 200) {
@@ -632,7 +713,32 @@ export default {
                         type: 'success',
                         offset:50
                     });
-                    window.open(res.data.data);
+                    that.PostInvertedListInfo();
+                    var urls = "/api/Groups/PostInvertedListFileDownload"
+                    that.$axios({
+                        method: 'post',
+                        url: urls,
+                        headers: {
+                            Authorization: 'Bearer ' + that.token
+                        },
+                        data: {
+                            portType: 1,
+                            diId: that.value
+                        }
+                    }).then(function (res) {
+                        if (res.data.code == 200) {
+                            that.$message({
+                                message:res.data.msg ,
+                                type: 'success',
+                                offset:50
+                            });
+                            window.open(res.data.data);
+                        }else{
+                            that.$message.error(res.data.msg);
+                        }
+                    }).catch(function (error) {
+                        that.$message.error(error);
+                    });
                 }else{
                     that.$message.error(res.data.msg);
                 }
@@ -649,7 +755,12 @@ export default {
     },
     created(){
         this.GetGroupNameList()
+    },
+    mounted(){
+        this.token = JSON.parse(localStorage.getItem('userinif')).token;
+        this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId;   
     }
+    
 }
 </script>
 <style>