chris 3 年之前
父節點
當前提交
c593de814a
共有 2 個文件被更改,包括 4 次插入5 次删除
  1. 3 0
      src/views/modules/cus/contract-record-add-or-update.vue
  2. 1 5
      src/views/modules/works/work.vue

+ 3 - 0
src/views/modules/cus/contract-record-add-or-update.vue

@@ -89,6 +89,9 @@
                 align="center"
                 min-width="100"
                 label="含税总价">
+                <template slot-scope="scope">
+                  <span>{{ (scope.row.cnt*scope.row.price).toFixed(1) }}</span>
+                </template>
               </el-table-column>
               <el-table-column
                 prop="rate"

+ 1 - 5
src/views/modules/works/work.vue

@@ -220,11 +220,7 @@ export default {
       this.opColVisible = (Number(this.dataForm.state) !== 3 && value === this.userId)
     },
     'dataForm.state' (value) {
-      if (this.dataForm.userId) {
-        this.opColVisible = (Number(value) !== 3 && this.dataForm.userId === this.userId)
-      } else {
-        this.opColVisible = (Number(value) !== 3)
-      }
+      this.opColVisible = this.dataForm.userId ? (Number(value) !== 3 && this.dataForm.userId === this.userId) : (Number(value) !== 3)
     }
   },
   data () {