Browse Source

订单管理详情变更业务员列表调整

qymljy 5 months ago
parent
commit
9dbbdac959
2 changed files with 19 additions and 13 deletions
  1. 3 2
      src/HDrpManagement/orderManage/details/index.vue
  2. 16 11
      src/template/selectSaler/index.vue

+ 3 - 2
src/HDrpManagement/orderManage/details/index.vue

@@ -17,9 +17,10 @@
         @onEditSuccess="queryMainData($route.query.id)">
         <div slot="customOperation"  v-if="Object.keys(mainData).length > 0">
           <!-- <Edit class="inline-16" v-if="tool.checkAuth($route.name,'update') && (mainData.status == '新建')" :data="mainData" @onSuccess="queryMainData();$refs.prod && $refs.prod.listData()" /> -->
-          <Edit style="display: inline-block !important;"   v-if="mainData.status === '新建'" :data="mainData" @onSuccess="queryMainData();$refs.prod && $refs.prod.listData()" />
+          <Edit style="display: inline-block !important;margin-left: -10px"   v-if="mainData.status === '新建'" :data="mainData" @onSuccess="queryMainData();$refs.prod && $refs.prod.listData()" />
 <!--          <Edit class="inline-16" v-if="mainData.status !== '新建' && mainData.status !== '关闭'" :data="mainData" @onSuccess="queryMainData();$refs.prod && $refs.prod.listData()" />-->
-          <EditRemark style="margin-right: 20px !important;"  :data="mainData" @onSuccess="queryMainData"></EditRemark>
+          <EditRemark style="margin-right: 20px !important;" v-if="mainData.status === '新建'" :data="mainData" @onSuccess="queryMainData"></EditRemark>
+          <EditRemark style="margin-right: 20px !important;margin-left: -10px" v-if="mainData.status !== '新建'" :data="mainData" @onSuccess="queryMainData"></EditRemark>
           <changeSaler class="inline-16" style="margin-left: -10px" ref="saler" @selectRow="salerChange">
             <el-button v-if="tool.checkAuth($route.name,'changeSaler')" type="primary" slot="input" size="mini" @click="$refs.saler.visible=true;$refs.saler.listData()">{{$t(`变更业务员`)}}</el-button>
           </changeSaler>

+ 16 - 11
src/template/selectSaler/index.vue

@@ -25,6 +25,11 @@
             :label="$t('姓名')"
             width="100">
           </el-table-column>
+          <el-table-column
+              prop="depfullname"
+              :label="$t('部门')"
+              width="120">
+          </el-table-column>
           <el-table-column
             prop="position"
             :label="$t('职位')"
@@ -34,19 +39,19 @@
               prop="areaname"
               :label="$t(`负责区域`)"
               width="0">
-<!--            <template slot-scope="scope">-->
-<!--              <span v-if="scope.row.salearea">-->
-<!--                <span v-for="(item,index) in scope.row.salearea" :key="index">-->
-<!--                  {{index === scope.row.salearea.length -1?item.areafullname:item.areafullname + ','}}-->
-<!--                </span>-->
-<!--              </span>-->
-<!--              <span v-else>-->
-<!--                {{'&#45;&#45;'}}-->
-<!--              </span>-->
-<!--            </template>-->
+            <template slot-scope="scope">
+              <span v-if="scope.row.salearea">
+                <span v-for="(item,index) in scope.row.salearea" :key="index">
+                  {{index === scope.row.salearea.length -1?item.areaname:item.areaname + ','}}
+                </span>
+              </span>
+              <span v-else>
+                {{'--'}}
+              </span>
+            </template>
           </el-table-column>
           <el-table-column
-            prop="userphonenumber"
+            prop="phonenumber"
             :label="$t(`手机号码`)"
             width="150">
           </el-table-column>