codeMan пре 2 година
родитељ
комит
e7e661cc72

+ 1 - 1
src/HDrpManagement/serveWorkBill/components/printTable.vue

@@ -43,7 +43,7 @@
             <td class="td__title">是否保内</td>
             <td>{{ detail.workorder.inqualityguaranteeperiod ? '是' : '否' }}</td>
             <td class="td__title">售后人员</td>
-            <td>{{ detail.workorder.saler_name || '--' }}</td>
+            <td>{{ detail.workorder.projectleader || '--' }}</td>
             <td class="td__title">经销商名称</td>
             <td>{{ detail.workorder.enterprisename || '--' }}</td>
           </tr>

+ 23 - 0
src/HManagement/roleManage/modules/role_details.vue

@@ -17,6 +17,9 @@
       <div slot="tags">
       </div>
       <div slot="customOperation" >
+        <el-popconfirm title="确定复制当前角色吗?" @confirm="copyRow()">
+          <el-button slot="reference" v-if="tool.checkAuth($route.name,'copy')" class="inline-16" size="mini">复 制</el-button>
+        </el-popconfirm>
         <el-popconfirm title="确定删除当前角色吗?" @confirm="deleteRow()">
           <el-button slot="reference" v-if="tool.checkAuth($route.name,'delete')" class="inline-16" size="mini">删 除</el-button>
         </el-popconfirm>
@@ -103,6 +106,26 @@ export default {
       res.data.apps[0]?this.appoptionselect(res.data.apps[0]):''
       this.changeDataStructure()
     },
+    async copyRow () {
+      let res = await this.$api.requested({
+        id:20230508130402,
+        content: {
+          roleid:this.$route.query.id
+        }
+      })
+      this.tool.showMessage(res,() => {
+        this.$store.dispatch('changeDetailDrawer',false)
+        setTimeout(() => {
+          this.$router.push({
+            path:'/roleDetail',
+            query:{
+              id:res.data.roleid
+            }
+          })
+          this.$store.dispatch('changeDetailDrawer',true)
+        })
+      })
+    },
     changeDataStructure() {
       this.mainAreaData = [
         {