Browse Source

Merge branch 'master' of http://git.keao.tech/SupplyChain/front

zhanglb 3 years ago
parent
commit
c10efee174

+ 8 - 0
front-vue/src/api/system/notice.js

@@ -9,6 +9,14 @@ export function listNotice(query) {
   })
 }
 
+// 消息已读
+export function readWork(noticeId) {
+  return request({
+    url: '/system/ownNotice/readWork/' + noticeId,
+    method: 'get',
+  })
+}
+
 // 处理待办
 export function dealWork(data) {
   return request({

+ 28 - 5
front-vue/src/views/home.vue

@@ -100,7 +100,12 @@
                     <el-tabs v-model="activeName">
                         <el-tab-pane label="我的待办" name="first" style="height:400px">
                             <el-table :data="workList" :show-header="false">
-                                <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true"/>
+                                <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true">
+                                    <template slot-scope="scope">
+                                        <el-badge is-dot class="item" v-if="scope.row.snyrUserStatus == '0'"></el-badge>
+                                        <span>{{ scope.row.noticeTitle }}</span>
+                                    </template>
+                                </el-table-column>
                                 <el-table-column label="时间" align="center" prop="createTime" :show-overflow-tooltip="true">
                                     <template slot-scope="scope">
                                         <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
@@ -112,6 +117,7 @@
                                             size="mini"
                                             type="text"
                                             @click="handleDetail(scope.row)"
+                                            style="color:red"
                                         >去办理</el-button>
                                             <!-- v-if="scope.row.openUrl" -->
                                     </template>
@@ -317,7 +323,12 @@
                     <el-tabs v-model="activeName">
                         <el-tab-pane label="我的待办" name="first" style="height:400px">
                             <el-table :data="workList" :show-header="false">
-                                <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true"/>
+                                <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true">
+                                    <template slot-scope="scope">
+                                        <el-badge is-dot class="item" v-if="scope.row.snyrUserStatus == '0'"></el-badge>
+                                        <span>{{ scope.row.noticeTitle }}</span>
+                                    </template>
+                                </el-table-column>
                                 <el-table-column label="时间" align="center" prop="createTime" :show-overflow-tooltip="true">
                                     <template slot-scope="scope">
                                         <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
@@ -329,6 +340,7 @@
                                             size="mini"
                                             type="text"
                                             @click="handleDetail(scope.row)"
+                                            style="color:red"
                                         >去办理</el-button>
                                             <!-- v-if="scope.row.openUrl" -->
                                     </template>
@@ -552,7 +564,12 @@
                     <el-tabs v-model="activeName">
                         <el-tab-pane label="我的待办" name="first" style="height:400px">
                             <el-table :data="workList" :show-header="false">
-                                <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true"/>
+                                <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true">
+                                    <template slot-scope="scope">
+                                        <el-badge is-dot class="item" v-if="scope.row.snyrUserStatus == '0'"></el-badge>
+                                        <span>{{ scope.row.noticeTitle }}</span>
+                                    </template>
+                                </el-table-column>
                                 <el-table-column label="时间" align="center" prop="createTime" :show-overflow-tooltip="true">
                                     <template slot-scope="scope">
                                         <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
@@ -563,8 +580,8 @@
                                         <el-button
                                             size="mini"
                                             type="text"
-                                            icon="el-icon-info"
                                             @click="handleDetail(scope.row)"
+                                            style="color:red"
                                         >去办理</el-button>
                                     </template>
                                 </el-table-column>
@@ -711,7 +728,7 @@ import { getCreditLineAll, getAvailableBalance, getEffectBalance, getLoanBalance
 import { getCompanyNum, getFinanceSupplier, getFinanceNum, getCompanyReport } from '@/api/service/report/company'
 import { getOwnCompany } from "@/api/common/company";
 import { accAdd, accSub } from "@/utils/calculation";
-import { listNotice } from '@/api/system/notice'
+import { listNotice, readWork } from '@/api/system/notice'
 import { amtformat } from "@/utils/amtCommon"
 import  EchartPie  from '@/components/Echart/pie/index'
 import  EchartBar  from '@/components/Echart/bar/index'
@@ -1615,8 +1632,14 @@ export default {
                 this.noticeId = row.noticeId
                 this.workType = row.workType
                 this.tableId = row.tableId
+                readWork(row.noticeId).then(response => {
+                    this.getWorkList()
+                });
             }else if(row.openType == '01'){
                 this.$router.push({ path: row.openUrl });
+                readWork(row.noticeId).then(response => {
+                    this.getWorkList()
+                });
             }
         },
         // 取消按钮

+ 2 - 2
front-vue/src/views/service/bill/addBill.vue

@@ -969,9 +969,9 @@ export default {
         allAmount() {
             var strarr = [0.0];
             for (let i in this.fileList) {
-                // if (this.fileList[i]["ziiCheckStt"] == "1") {
+                if (this.fileList[i]["ziiCheckStt"] == "1") {
                 strarr.push(this.fileList[i]["ziiAmount"]);
-                // }
+                }
             }
             return (Math.floor(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
         },

+ 2 - 2
front-vue/src/views/service/bill/billAdd.vue

@@ -979,9 +979,9 @@ export default {
         allAmount() {
             var strarr = [0.0];
             for (let i in this.fileList) {
-                // if (this.fileList[i]["ziiCheckStt"] == "1") {
+                if (this.fileList[i]["ziiCheckStt"] == "1") {
                 strarr.push(this.fileList[i]["ziiAmount"]);
-                // }
+                }
             }
             return (Math.floor(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
         },

+ 2 - 2
front-vue/src/views/service/bill/billEdit.vue

@@ -1041,9 +1041,9 @@ export default {
         allAmount() {
             var strarr = [0.0];
             for (let i in this.fileList) {
-                // if (this.fileList[i]["ziiCheckStt"] == "1") {
+                if (this.fileList[i]["ziiCheckStt"] == "1") {
                 strarr.push(this.fileList[i]["ziiAmount"]);
-                // }
+                }
             }
             return (Math.floor(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
             // return this.handleInput(eval(strarr.join("+"))); //结果

+ 2 - 2
front-vue/src/views/service/bill/editBill.vue

@@ -1311,9 +1311,9 @@ export default {
     allAmount() {
       var strarr = [0.0];
       for (let i in this.fileList) {
-        // if (this.fileList[i]["ziiCheckStt"] == "1") {
+        if (this.fileList[i]["ziiCheckStt"] == "1") {
           strarr.push(this.fileList[i]["ziiAmount"]);
-        // }
+        }
       }
       return (Math.floor(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
       // return this.handleInput(eval(strarr.join("+"))); //结果

+ 1 - 1
front-vue/src/views/system/user/index.vue

@@ -226,7 +226,7 @@
             label="创建时间"
             align="center"
             prop="createTime"
-            width="150"
+            width="155"
             v-if="uncheckList.createTime"
           >
             <template slot-scope="scope">