Browse Source

Merge branch 'feature/合同' into develop

liuzl 2 years ago
parent
commit
dbfe19d339
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/views/contract/components/Edit.vue

+ 9 - 1
src/views/contract/components/Edit.vue

@@ -2,7 +2,7 @@
  * @Author: liuzhenlin 461480418@qq.ocm
  * @Date: 2023-01-09 15:49:34
  * @LastEditors: liuzhenlin
- * @LastEditTime: 2023-01-11 16:05:02
+ * @LastEditTime: 2023-01-11 18:30:40
  * @Description: file content
  * @FilePath: \订单全流程管理系统\src\views\contract\components\Edit.vue
 -->
@@ -32,6 +32,7 @@
           <el-form-item label="关联项目" prop="nboName">
             <el-select
               v-model="editForm.nboName"
+              :disabled="businessData[0]"
               placeholder="请选择关联项目"
               readonly
               style="width: 100%"
@@ -194,6 +195,12 @@
       SelectProduct,
       SelectBusinessContact,
     },
+    props: {
+      businessData: {
+        type: Array,
+        default: () => [],
+      },
+    },
     data() {
       return {
         stepActive: 0, //步骤
@@ -274,6 +281,7 @@
           .catch((err) => console.log(err))
       },
       async init(id) {
+        if (this.businessData[0]) this.getBusinessInfo(this.businessData)
         if (!id) {
           this.title = '新增合同信息'
           // 设置销售工程师默认为当前用户