ソースを参照

用户管理团队信息

qymljy 2 年 前
コミット
e25cb7898b

+ 5 - 4
src/Form/QuotedPrice/edit.vue

@@ -496,10 +496,11 @@ export default {
       }
       this.$refs.form.validate(async (valid) => {
         if (!valid) return false
-        this.form.discountrate = this.form.discountrate / 100
+        console.log(this.form.discountrate,"discountrate")
+        this.form.discountrate = (this.form.discountrate / 100).toFixed(4)
+
         const res = await this.$api.requested({
           "id": 20221020164803,
-          "version":1,
           "content": this.form
         })
         this.tool.showMessage(res,() => {
@@ -731,10 +732,10 @@ export default {
   },
   mounted() {
     this.queryItemType()
-    console.log("编辑内容2",this.data)
+
   },
   created() {
-    console.log("编辑内容1",this.data)
+
   }
 }
 </script>

+ 143 - 0
src/HManagement/accountManage/modules/teamInformation/detail.vue

@@ -0,0 +1,143 @@
+<template>
+  <div>
+    <el-button size="small" type="text" @click="onShow">详 情</el-button>
+    <el-drawer
+        title="团队成员"
+        :visible.sync="drawer"
+        size="900px"
+        direction="rtl"
+        append-to-body
+        :show-close="false"
+    >
+      <div class="drawer__panel">
+        <el-row :gutter="20">
+          <el-col :span="24">
+<!--            <el-input  style="width:200px;margin-bottom: 20px;margin-top: -10px" placeholder="搜索" :suffix-icon="param.content.where.condition?param.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="param.content.where.condition" @keyup.native.enter="listData(param.content.pageNumber = 1)" @clear="listData(param.content.pageNumber = 1)" size="small" class="input-with-select inline-16 layout_search__panel" clearable>
+            </el-input>-->
+            <el-table :data="list" height="802px" border size="mini">
+              <el-table-column
+                  label="登录账号"
+                  width="100">
+                <template slot-scope="scope">
+                  <span style="margin-left: 10px">{{ scope.row.accountno?scope.row.accountno:'--'}}</span>
+                </template>
+              </el-table-column>
+              <el-table-column
+                  label="姓名"
+                  width="120">
+                <template slot-scope="scope">
+                  <span style="margin-left: 10px">{{ scope.row.name?scope.row.name:'--'}}</span>
+                </template>
+              </el-table-column>
+              <el-table-column
+                  label="角色名称"
+                  width="200">
+                <template slot-scope="scope">
+                  <span style="margin-left: 10px" v-for="(item,index) in scope.row.userrole">
+                    <span v-if="scope.row.userrole.length -1 === index">{{item.rolename}}</span>
+                    <span v-else>{{item.rolename + ','}}</span>
+                  </span>
+                </template>
+              </el-table-column>
+              <el-table-column
+                  label="部门"
+                  width="150">
+                <template slot-scope="scope">
+                  <span style="margin-left: 10px">{{ scope.row.depname?scope.row.depname:'--'}}</span>
+                </template>
+              </el-table-column>
+              <el-table-column
+                  label="职位"
+                  width="160">
+                <template slot-scope="scope">
+                  <span style="margin-left: 10px">{{ scope.row.position?scope.row.position:'--'}}</span>
+                </template>
+              </el-table-column>
+              <el-table-column
+                  label="手机号"
+                  width="150">
+                <template slot-scope="scope">
+                  <span style="margin-left: 10px">{{ scope.row.phonenumber?scope.row.phonenumber:'--'}}</span>
+                </template>
+              </el-table-column>
+            </el-table>
+<!--            <div  class="container normal-panel" style="text-align:right">
+              <el-pagination
+                  background
+                  @size-change="handleSizeChange"
+                  @current-change="handleCurrentChange"
+                  :current-page="currentPage"
+                  :page-sizes="[20, 50, 100, 200]"
+                  layout="total,sizes, prev, pager, next, jumper"
+                  :total="total">
+              </el-pagination>
+            </div>-->
+            <!--                  <el-input slot="reference" :readonly="true" v-model="form.enterprisename" autocomplete="off" placeholder="请选择客户"  @input="selectCustomer"></el-input>-->
+          </el-col>
+        </el-row>
+      </div>
+      <div class="fixed__btn__panel">
+        <el-button size="small" @click="drawer = false" class="normal-btn-width">取 消</el-button>
+        <!--        <el-button size="small" type="primary"  class="normal-btn-width">确 定</el-button>-->
+      </div>
+    </el-drawer>
+  </div>
+</template>
+
+<script>
+export default {
+  props:['data'],
+  name: "detail",
+  data(){
+    return {
+      drawer:false,
+      form:{},
+      rules:{},
+      currentPage:0,
+      total:0,
+      list:[],
+      param:{
+        "id": 20230302174201,
+        "content": {
+          "pageNumber": 1,
+          "pageSize": 20,
+          "leaderuserid":'',
+          "where": {
+            "condition": "",
+          }
+        }
+      }
+    }
+  },
+  methods:{
+    async listData(){
+      this.param.content.leaderuserid = this.createuserid
+      const res = await this.$api.requested(this.param)
+      this.list = res.data
+      this.total = res.total
+      this.currentPage = res.pageNumber
+    },
+    onShow(){
+      this.drawer = true
+      this.listData()
+    },
+    handleSizeChange(val) {
+      // console.log(`每页 ${val} 条`);
+      this.param.content.pageSize = val
+      this.listData()
+    },
+    handleCurrentChange(val) {
+      // console.log(`当前页: ${val}`);
+      this.param.content.pageNumber = val
+      this.listData()
+    },
+  },
+  mounted() {
+    console.log(this.data,"data")
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 8 - 6
src/HManagement/accountManage/modules/teamInformation/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
     <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
-      <el-tab-pane label="负责的" name="负责的">
+      <el-tab-pane label="负责的" name="负责的">
         <div style="margin-bottom: 15px">
           <add  class="inline-16"  @addSuccess="leaderData"></add>
 <!--          <el-input  style="width:200px;" placeholder="搜索" :suffix-icon="leader.params.content.where.condition?leader.params.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="leader.params.content.where.condition"
@@ -37,9 +37,9 @@
           </tableLayout>
         </div>
       </el-tab-pane>
-      <el-tab-pane label="参与的" name="参与的">
+      <el-tab-pane label="参与的" name="参与的">
         <div style="margin-top: 15px">
-          <tableLayout ref="partakeTable" :layout="tablecols" :data="partake.list" :opwidth="200" :custom="true"  fixedName="operation">
+          <tableLayout ref="partakeTable" :layout="tablecolsPartake" :data="partake.list" :opwidth="200" :custom="true"  fixedName="operation">
             <template v-slot:customcol="scope">
               <div v-if="scope.column.columnname === 'operation'">
                 <span>{{scope.column.data[scope.column.columnname]}}</span>
@@ -56,6 +56,7 @@
               <p v-else>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
             </template>
             <template v-slot:opreation="scope">
+              <detail :data="scope.data"></detail>
             </template>
           </tableLayout>
         </div>
@@ -74,15 +75,16 @@
 
 <script>
 import add from './add'
+import detail from './detail'
 export default {
   name: "index",
-  components:{add},
+  components:{add,detail},
   data(){
     return {
       tablecols:[],
       tablecolsPartake:[],
       dialogTableVisible:false,
-      activeName: '负责的',
+      activeName: '负责的',
       radio:'1',
       leader:{
         params:{
@@ -131,7 +133,7 @@ export default {
       }, 300);
     },
     handleClick(){
-      if (this.activeName === '负责的'){
+      if (this.activeName === '负责的'){
         this.leaderData()
       }else {
         this.partakeData()

+ 1 - 1
src/SDrpManagement/QuotedPrice/modules/ProjectQuotationAdd.vue

@@ -495,7 +495,7 @@ export default {
 
       this.$refs.form.validate(async (valid) => {
         if (!valid) return false
-        this.form.discountrate = this.form.discountrate / 100
+        this.form.discountrate = this.form.discountrate?(this.form.discountrate / 100).toFixed(4):''
         const res = await this.$api.requested({
           "id": 20221020164803,
           "content": this.form