zhujun 2 лет назад
Родитель
Сommit
7bc2ab71df

+ 1 - 1
src/api/saleManage/quotation.js

@@ -76,7 +76,7 @@ export async function getExport(id) {
 
 export async function getProduceTreeByPid() {
   const res = await request.get(
-    `/main/categoryLevel/getProduceTreeByPid?type=1`,
+    `/main/categoryLevel/getTreeByPid/9`,
     {}
   );
   if (res.data.code == 0) {

+ 4 - 0
src/components/productTree/index.vue

@@ -9,6 +9,7 @@
         :highlight-current="true"
         :expand-on-click-node="false"
         @node-click="handleNodeClick"
+        :default-expanded-keys="defaultExpandedKeys"
         v-bind="$attrs"
         :default-expand-all="defaultExpandAll"
       >
@@ -68,6 +69,7 @@
       },
       data() {
         return {
+          defaultExpandedKeys: [],
           treeList: [],
           treeLoading: false,
           parentName: '',
@@ -97,9 +99,11 @@
               idField: 'id',
               parentIdField: 'parentId'
             });
+            this.defaultExpandedKeys=[this.treeList[0].id||'']
             this.$nextTick(() => {
                 // 默认高亮第一级树节点
                 if (this.treeList[0]&&this.isFirstRefreshTable) {
+                  
                   this.setCurrentKey(this.treeList[0].id);
                   this.handleNodeClick(
                     this.treeList[0],

+ 1 - 1
src/views/saleManage/quotation/components/detailDialog.vue

@@ -30,7 +30,7 @@
              prop="contactName"
              style="margin-bottom: 22px"
            >
-           {{form.categoryName}}
+           {{form.contactName}}
            </el-form-item>
            <el-form-item
              label="询价方联系人"

+ 10 - 6
src/views/saleManage/quotation/components/inventoryTable.vue

@@ -138,7 +138,7 @@
           message: '请输入',
           trigger: 'change'
         }">
-            <el-input v-model="scope.row.technicalParams" placeholder="请输入"></el-input>
+            <el-input type="textarea" v-model="scope.row.technicalParams" placeholder="请输入"></el-input>
         </el-form-item>
       </template>
       <template v-slot:technicalDrawings="scope">
@@ -257,25 +257,25 @@ export default {
           slot: 'singlePrice'
         },
         {
-          width: 120,
+          width: 80,
           prop: 'totalCount',
           label: '数量',
           slot: 'totalCount'
         },
         {
-          width: 120,
+          width: 80,
           prop: 'measuringUnit',
           label: '计量单位',
           slot: 'measuringUnit'
         },
         {
-          width: 120,
+          width: 80,
           prop: 'totalPrice',
           label: '合计',
           slot: 'totalPrice'
         },
         {
-          width: 120,
+          width: 80,
           prop: 'deliveryDays',
           label: '交期(天)',
           slot: 'deliveryDays'
@@ -293,7 +293,7 @@ export default {
         //   slot: 'guaranteePeriodUnitCode'
         // },
          {
-          width: 120,
+          width: 130,
           prop: 'technicalAnswerName',
           label: '技术答疑人',
           slot: 'technicalAnswerName'
@@ -501,4 +501,8 @@ display: flex;
 }
  
 }
+
+::v-deep .time-form tbody > tr:hover>td {
+  background-color: transparent !important;
+}
 </style>