Browse Source

报价管理

yuanchengman 1 year ago
parent
commit
0aae3149a2
2 changed files with 3 additions and 16 deletions
  1. 1 14
      src/views/modules/cus/quoted-add-or-update.vue
  2. 2 2
      src/views/modules/cus/quoted.vue

+ 1 - 14
src/views/modules/cus/quoted-add-or-update.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <div class="my-title">{{ title }}</div>
+    <div class="my-title">{{ id ? '编辑' : '新增' }}</div>
     <el-form
       :model="dataForm"
       :rules="dataRule"
@@ -394,8 +394,6 @@ export default {
   methods: {
     init (id, type) {
       this.id = id || 0
-      this.type = type
-      this.setTitle(type)
       if (this.id) {
         this.getDetail(this.id)
       }
@@ -404,17 +402,6 @@ export default {
       this.worderVisible = false
       this.$emit('onChose')
     },
-    setTitle (type) {
-      if (type === 'detail') {
-        this.title = '查看'
-      } else if (type === 'insert') {
-        this.title = '新增'
-      } else if (type === 'update') {
-        this.title = '更新'
-      } else if (type === 'first') {
-        this.title = '初次报价'
-      }
-    },
     getDetail (priceId) {
       getDetail(priceId).then(({ data }) => {
         if (data && data.code === '200') {

+ 2 - 2
src/views/modules/cus/quoted.vue

@@ -221,14 +221,14 @@
             <el-button
               type="text"
               size="small"
-              @click="showDetail(scope.row.programId)"
+              @click="showDetail(scope.row.priceId)"
               >查看</el-button
             >
             <el-button
               v-if="isAuth('quoted:update')"
               type="text"
               size="small"
-              @click="showDetail"
+              @click="addOrUpdateHandle(scope.row.priceId)"
               >编辑</el-button
             >
             <el-button