瀏覽代碼

Bug Fix: 015

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

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

@@ -24,7 +24,7 @@
         <el-row class="my-row">
           <el-col :span="8">
             <el-form-item label="评审编码" prop="reCode">
-              <el-input v-model="dataForm.reCode" :disabled="display || !id" placeholder="系统自动生成,无需填写"></el-input>
+              <el-input v-model="dataForm.reCode" :disabled="true" placeholder="系统自动生成,无需填写"></el-input>
             </el-form-item>
           </el-col>
           <el-col :span="8" style="padding-left: 20px">

+ 4 - 2
src/views/modules/cus/contract.vue

@@ -38,7 +38,8 @@
         prop="customerName"
         header-align="center"
         align="center"
-        min-width="100"
+        min-width="120"
+        :show-overflow-tooltip="true"
         label="客户名称">
       </el-table-column>
       <el-table-column
@@ -92,7 +93,8 @@
         label="操作">
         <template slot-scope="scope">
           <el-button v-if="isAuth('cus:contract:info')" type="text" size="small" @click="addOrUpdateHandle(scope.row.reId, true)">查看</el-button>
-          <el-button v-if="isAuth('cus:contract:revoke')" type="text" size="small" @click="cancelContract(scope.row)">撤回</el-button>
+          <el-button v-if="isAuth('cus:contract:revoke') && (scope.row.state === '1' || scope.row.state === '2')" type="text" size="small" @click="cancelContract(scope.row)">撤回</el-button>
+          <el-button v-if="isAuth('cus:contract:submit') && (scope.row.state === '0')" type="text" size="small" @click="addOrUpdateHandle(scope.row.reId, false)">编辑</el-button>
         </template>
       </el-table-column>
     </el-table>