Quellcode durchsuchen

财务模块按钮修改

wengyuwen vor 4 Jahren
Ursprung
Commit
05515f2e5a

+ 39 - 23
src/views/finance/charge/index.vue

@@ -458,7 +458,7 @@
         <div style="display: flex">
           <el-button
             type="warning"
-            size="small"
+            size="mini"
             @click="charGe"
             :disabled="notChange"
             v-if="queryParams.fBillstatus < '4'"
@@ -466,18 +466,18 @@
           >
           <el-button
             type="primary"
-            size="small"
+            size="mini"
             @click="confirmCharge"
             :disabled="notChange"
             v-if="queryParams.fBillstatus < '4'"
           >确认收费</el-button
           >
-          <el-button type="warning" size="small" @click="handleExportItems"
+          <el-button type="warning" size="mini" @click="handleExportItems"
           >导出</el-button
           >
           <el-button
             type="success"
-            size="small"
+            size="mini"
             @click="revokeCharge"
             v-if="queryParams.fBillstatus === '6'"
           >撤销收费</el-button
@@ -487,12 +487,32 @@
         </el-button>-->
           <el-button
             type="danger"
-            size="small"
+            size="mini"
             :disabled="tablefilter"
             @click="approvalRevocation"
             v-show="queryParams.fBillstatus === '4'"
           >撤销审批</el-button
           >
+          <el-button v-if="approve === true" size="mini" @click="immediateApproval"
+          >审批</el-button
+          >
+          <el-button
+            type="primary"
+            size="mini"
+            v-if="queryParams.fBillstatus >= '3'"
+            @click="addOrUpdateHandle"
+          >查看审批流</el-button
+          >
+          <el-button type="primary" @click="submitForm" size="mini" :disabled="notChange"
+          >保 存</el-button
+          >
+          <el-button v-if="cancelButton === true" size="mini" @click="cancel"
+          >返 回</el-button
+          >
+          <el-button v-if="cancelButton === false" size="mini" @click="homePage"
+          >返 回</el-button
+          >
+          <el-button @click="addPage" size="mini">新 增</el-button>
         </div>
         <div style="margin: 0 12px">
           <el-button
@@ -650,24 +670,6 @@
           ref="ApprovalComments"
           @refreshDataList="returnData"
         ></approval-comments>
-        <el-button v-if="approve === true" @click="immediateApproval"
-        >审批</el-button
-        >
-        <el-button
-          type="primary"
-          v-if="queryParams.fBillstatus >= '3'"
-          @click="addOrUpdateHandle"
-        >查看审批流</el-button
-        >
-        <el-button type="primary" @click="submitForm" :disabled="notChange"
-        >保 存</el-button
-        >
-        <el-button v-if="cancelButton === true" @click="cancel"
-        >取 消</el-button
-        >
-        <el-button v-if="cancelButton === false" @click="homePage"
-        >取 消</el-button
-        >
       </div>
       <el-dialog
         v-dialogDrag
@@ -1357,6 +1359,10 @@ export default {
           value: "2",
           label: "车队",
         },
+        {
+          value: "3",
+          label: "船务",
+        }
       ],
       allCheck: false,
       showSetting: false,
@@ -1522,6 +1528,16 @@ export default {
 
   },
   methods: {
+    addPage(){
+      MessageBox.confirm("是否已保存?",{
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        }
+      ).then(()=> {
+        this.handleAdd()
+      })
+    },
     //导出明细
     handleExportItems() {
       const fIds = this.queryParams.fId;

+ 44 - 26
src/views/finance/contrast/index.vue

@@ -419,7 +419,7 @@
           <div style="display: flex">
             <el-button
               type="warning"
-              size="small"
+              size="mini"
               @click="reconciliation"
               :disabled="notChange"
               v-if="queryParams.fBillstatus < '4'"
@@ -427,18 +427,18 @@
             >
             <el-button
               type="primary"
-              size="small"
+              size="mini"
               @click="confirmReconciliation"
               :disabled="notChange"
               v-if="queryParams.fBillstatus < '4'"
             >确认对账</el-button
             >
-            <el-button type="warning" size="small" @click="handleExportItems"
+            <el-button type="warning" size="mini" @click="handleExportItems"
             >导出</el-button
             >
             <el-button
               type="success"
-              size="small"
+              size="mini"
               @click="backrRconciliation"
               v-if="queryParams.fBillstatus === '6'"
             >撤销对账</el-button
@@ -446,12 +446,33 @@
             <!--          <el-button type="info" size="small" @click="exportData">导出</el-button>-->
             <el-button
               type="danger"
-              size="small"
+              size="mini"
               :disabled="disappear"
               v-if="queryParams.fBillstatus === '4'"
               @click="backApproval"
-            >撤销审批</el-button
+            >撤销审批</el-button>
+            <el-button v-if="approve === true" size="mini" @click="goApproval">审批</el-button>
+            <el-button
+              type="primary"
+              size="mini"
+              v-if="queryParams.fBillstatus >= '3'"
+              @click="addOrUpdateHandle()"
+            >查看审批流</el-button
             >
+            <el-button
+              type="primary"
+              size="mini"
+              @click="submitForm(typevalue)"
+              :disabled="notChange"
+            >保 存</el-button
+            >
+            <el-button v-if="cancelButton === true" size="mini" @click="cancel"
+            >返 回</el-button
+            >
+            <el-button v-if="cancelButton === false" size="mini" @click="homePage"
+            >返 回</el-button
+            >
+            <el-button @click="addPage" size="mini">新 增</el-button>
           </div>
           <div style="margin: 0 12px">
             <el-button
@@ -640,25 +661,6 @@
           ref="ApprovalComments"
           @refreshDataList="returnData"
         ></approval-comments>
-        <el-button v-if="approve === true" @click="goApproval">审批</el-button>
-        <el-button
-          type="primary"
-          v-if="queryParams.fBillstatus >= '3'"
-          @click="addOrUpdateHandle()"
-        >查看审批流</el-button
-        >
-        <el-button
-          type="primary"
-          @click="submitForm(typevalue)"
-          :disabled="notChange"
-        >保 存</el-button
-        >
-        <el-button v-if="cancelButton === true" @click="cancel"
-        >取 消</el-button
-        >
-        <el-button v-if="cancelButton === false" @click="homePage"
-        >取消</el-button
-        >
       </div>
       <!-- 添加或修改财务数据主对话框 -->
       <el-dialog
@@ -1189,6 +1191,10 @@ export default {
           value: "2",
           label: "车队",
         },
+        {
+          value: "3",
+          label: "船务",
+        },
       ],
       typevalue: "",
       tableDate: [
@@ -1587,6 +1593,16 @@ export default {
     }
   },
   methods: {
+    addPage(){
+      MessageBox.confirm("是否已保存?",{
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        }
+      ).then(()=> {
+        this.handleAdd()
+      })
+    },
     full() {
       this.dialogFull = !this.dialogFull;
     },
@@ -1780,6 +1796,7 @@ export default {
           fFeesName: "", //结算单位
           fCorpid: "", //结算单位ID
         };
+        console.log(this.approval)
         getFee(this.approval.billId).then((response) => {
           this.Operator = response.data.tFee.createBy;
           if (response.data.feeDoList != 0) {
@@ -1953,6 +1970,7 @@ export default {
                 this.msgSuccess("操作成功");
                 this.getList();
               });
+              this.handleAdd()
             } else if (Cookies.get("sysType") == 2) {
               confirmFleet(formDate).then((response) => {
                 this.open = false;
@@ -2806,7 +2824,7 @@ export default {
               updateFee(formData).then((response) => {
                 console.log(response);
                 this.queryParams = response.data.tFee;
-                this.queryParams.fSystemType = response.data.tFee.fsystemType;
+                // this.queryParams.fSystemType = response.data.tFee.fsystemType;
                 this.msgSuccess("新增成功");
                 // this.DzfeeList = []
                 // this.open = false;

+ 39 - 23
src/views/finance/payment/index.vue

@@ -490,7 +490,7 @@
         <div style="display: flex">
           <el-button
             type="warning"
-            size="small"
+            size="mini"
             @click="charGe"
             :disabled="notChange"
             v-if="queryParams.fBillstatus < '4'"
@@ -498,18 +498,18 @@
           >
           <el-button
             type="primary"
-            size="small"
+            size="mini"
             @click="confirmCharge"
             :disabled="notChange"
             v-if="queryParams.fBillstatus < '4'"
           >确认付费</el-button
           >
-          <el-button type="warning" size="small" @click="handleExportItems"
+          <el-button type="warning" size="mini" @click="handleExportItems"
           >导出</el-button
           >
           <el-button
             type="success"
-            size="small"
+            size="mini"
             @click="revokeCharge"
             v-if="queryParams.fBillstatus === '6'"
           >撤销付费</el-button
@@ -518,12 +518,32 @@
           <!--        <el-button type="danger" size="small" :disabled="notChange" v-show="Lander == Operator">撤销审批</el-button>-->
           <el-button
             type="danger"
-            size="small"
+            size="mini"
             :disabled="tablefilter"
             @click="approvalRevocation"
             v-show="queryParams.fBillstatus === '4'"
           >撤销审批</el-button
           >
+          <el-button v-if="approve === true" size="mini" @click="immediateApproval"
+          >审批</el-button
+          >
+          <el-button
+            type="primary"
+            size="mini"
+            v-if="queryParams.fBillstatus >= '3'"
+            @click="addOrUpdateHandle"
+          >查看审批流</el-button
+          >
+          <el-button type="primary" @click="submitForm" size="mini" :disabled="notChange"
+          >保 存</el-button
+          >
+          <el-button v-if="cancelButton === true" size="mini" @click="cancel"
+          >返 回</el-button
+          >
+          <el-button v-if="cancelButton === false" size="mini" @click="homePage"
+          >返 回</el-button
+          >
+          <el-button @click="addPage" size="mini">新 增</el-button>
         </div>
         <div style="margin: 0 12px">
           <el-button
@@ -681,24 +701,6 @@
           ref="ApprovalComments"
           @refreshDataList="returnData"
         ></approval-comments>
-        <el-button v-if="approve === true" @click="immediateApproval"
-        >审批</el-button
-        >
-        <el-button
-          type="primary"
-          v-if="queryParams.fBillstatus >= '3'"
-          @click="addOrUpdateHandle"
-        >查看审批流</el-button
-        >
-        <el-button type="primary" @click="submitForm" :disabled="notChange"
-        >保 存</el-button
-        >
-        <el-button v-if="cancelButton === true" @click="cancel"
-        >取 消</el-button
-        >
-        <el-button v-if="cancelButton === false" @click="homePage"
-        >取 消</el-button
-        >
       </div>
       <el-dialog
         v-dialogDrag
@@ -2043,6 +2045,10 @@ export default {
           value: "2",
           label: "车队",
         },
+        {
+          value: "3",
+          label: "船务",
+        },
       ],
       //全屏放大
       dialogFull: false,
@@ -2207,6 +2213,16 @@ export default {
     }
   },
   methods: {
+    addPage(){
+      MessageBox.confirm("是否已保存?",{
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        }
+      ).then(()=> {
+        this.handleAdd()
+      })
+    },
     //导出明细
     handleExportItems() {
       const fIds = this.queryParams.fId;

+ 2 - 2
src/views/index.vue

@@ -174,7 +174,7 @@
                   <span v-else-if="item.refno2 === 'FF'">付费</span>
                   <span v-else-if="item.refno2 === 'JSCCF'">计算仓储费</span>
                 </div>
-                <div class="home_stock_table" @click="approval(item.refno2)">
+                <div class="home_stock_table" @click="approval(item)">
                   查看详情
                 </div>
               </div>
@@ -699,7 +699,7 @@ export default {
     },
     //跳转审批页面
     approval(row) {
-      switch (row) {
+      switch (row.refno2) {
         case "SJRK": {
           this.$router.push({
             path: "/business/inStock",