mushencc 1 년 전
부모
커밋
20e9dee659
6개의 변경된 파일191개의 추가작업 그리고 143개의 파일을 삭제
  1. 3 0
      src/App.vue
  2. 5 6
      src/views/cms.vue
  3. 3 2
      src/views/page/Finish/detail.vue
  4. 81 46
      src/views/page/Finish/detailed.vue
  5. 53 49
      src/views/page/Package/detail.vue
  6. 46 40
      src/views/page/Package/detailed.vue

+ 3 - 0
src/App.vue

@@ -25,4 +25,7 @@
 #nav a.router-link-exact-active {
   color: #42b983;
 }
+ol,ul{
+  padding: 0!important;
+}
 </style>

+ 5 - 6
src/views/cms.vue

@@ -229,17 +229,16 @@
           @click="handleGO"
           >{{ !qrState ? "扫码枪扫描" : "停止扫描" }}</Button
         >
-        <Button type="primary" style="height: 4rem" @click="handleGoQr"
-          >二维码扫描</Button
-        >
+<!--        <Button type="primary" style="height: 4rem" @click="handleGoQr"-->
+<!--          >二维码扫描</Button-->
+<!--        >-->
       </div>
     </Modal>
   </div>
 </template>
 <script>
-
 export default {
-  data() {
+  data () {
     return {
       state: 1,
       is_show: false,
@@ -349,4 +348,4 @@ export default {
 /deep/.ivu-modal {
   top: 35%;
 }
-</style>
+</style>

+ 3 - 2
src/views/page/Finish/detail.vue

@@ -101,7 +101,7 @@ export default {
     //   data.target = JSON.parse(localStorage.getItem('fyy_target'))
     // }
     this.tableData = []
-    const fyyTarget = ('PG20230815000028,PG2023081400027').split(',')
+    const fyyTarget = ('PG2023081000025,PG2023081000024').split(',')
     fyyTarget.forEach(v => {
       const data = {
         url: 'http://121.36.142.167:7774/jbl/api/module-data/dispatch_orders/page',
@@ -117,6 +117,7 @@ export default {
         res.data.content.forEach(v => {
           v.is_choose = false
           v.dispatch_no = v.dispatch_orders.dispatch_no
+          v.not_finished_num = v.dispatch_num - v.finished_num
         })
         this.tableData.push(...res.data.content)
       })
@@ -133,7 +134,7 @@ export default {
     },
     handleReturn () {
       localStorage.removeItem('fyy_target')
-      this.$router.push('/cms/finish')
+      this.$router.push('/cms/home')
     },
     handleChoose (item, index) {
       item.is_choose = !item.is_choose

+ 81 - 46
src/views/page/Finish/detailed.vue

@@ -16,14 +16,14 @@
             size="small"
             placeholder="请输入"
             style="width: 70%; padding: 0 0 0 0.2rem"
-            v-model="item['dispatch_num']"
+            v-model="item.finished_num"
             type="number"
           />
         </div>
         <div class="unit">
           <label>班组:</label>
           <b-form-select
-            v-model="item.team_id"
+            v-model="item.team_finish_id"
             :options="teamList"
             style="
               height: 1.4rem;
@@ -32,8 +32,8 @@
               border-radius: 0.6rem;
               background: #fff;
             "
-            @change="handleChooseTeam"
           >
+<!--            @change="handleChooseTeam"-->
             <template v-slot:first>
               <b-form-select-option value="" disabled
                 >请选择班组</b-form-select-option
@@ -49,6 +49,7 @@
               width: 70%;
               background: #fff;
             "
+              id="iSelect"
               size='small'
               transfer
               multiple
@@ -230,11 +231,25 @@ export default {
     this.axios.post('/api/testdwy', { ...data3 }).then(res => {
       this.employeeList = res.data.content
       this.employeeList.forEach(v => {
-        v.value = v.id
+        v.value = v.no
         v.text = v.name
       })
     })
   },
+  beforeRouteLeave (to, from, next) {
+    localStorage.removeItem(this.$route.query.id + '')
+    next()
+  },
+  beforeRouteEnter (to, from, next) {
+    if (localStorage.getItem(to.query.id)) {
+      next()
+    } else {
+      next(vm => {
+        vm.$router.replace('/cms/finish/detail')
+        // 跳到该路由页面后,再替换为from.path来源路径
+      })
+    }
+  },
   mounted () {
     const id = this.$route.query.id
     this.initData(id)
@@ -243,7 +258,10 @@ export default {
     initData (id) {
       this.list = JSON.parse(localStorage.getItem(id + ''))
       this.list.forEach(v => {
-        v.team_id = this.formData.team_id
+        v.team_finish_id = v.dispatch_orders.team_id
+        v.equipment_id = v.dispatch_orders.equipment_id
+        v.finished_num = v.not_finished_num
+        v.employee_id = v.dispatch_orders.employee_id.split(',')
         v.break = [
           { break_id: '', break_num: 0 }
         ]
@@ -265,52 +283,68 @@ export default {
       this.list.splice(index, 1, item)
     },
     handleReturn () {
+      localStorage.removeItem(this.$route.query.id + '')
       this.$router.go(-1)
     },
-    handleChooseTeam (e) {
-      if (e) {
-        this.formData.team_id = e
-        // 获取班组下的人员
-        const id = this.teamList.find(v => v.team_code === this.formData.team_id).dynamic_form_value_id
-        const data = {
-          url: `http://121.36.142.167:7774/jbl/api/module-data/team/team/472629516238663680/${id}`,
-          header: ['Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiYXV0aCI6IlJPTEVfSU5ORVJfVVNFUixST0xFX0FETUlOIiwidG9rZW5JZCI6IjM1IiwiZXhwIjoxNjk0MjM3NzIyfQ.aO1_RGWVxXygefwuUg_au3ys71zc2KuIbxZNWgTBeLRK9JVEqQZeza4X1gtoA8_BxoKZUuaPnTP9gUrEGgF3UQ', 'Content-Type:application/json']
-        }
-        this.axios.post('/api/testdwyget', { ...data }).then(res => {
-          this.employeeList = res.data.data.employee
-          this.employeeList.forEach(v => {
-            v.value = v.team_code
-            v.text = v.team_code_show
-          })
-          this.formData.employee_id = []
-        })
-      } else {
-        this.formData.employee_id = []
-      }
-    },
+    // handleChooseTeam (e) {
+    //   if (e) {
+    //     this.formData.team_id = e
+    //     // 获取班组下的人员
+    //     const id = this.teamList.find(v => v.team_code === this.formData.team_id).dynamic_form_value_id
+    //     const data = {
+    //       url: `http://121.36.142.167:7774/jbl/api/module-data/team/team/472629516238663680/${id}`,
+    //       header: ['Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiYXV0aCI6IlJPTEVfSU5ORVJfVVNFUixST0xFX0FETUlOIiwidG9rZW5JZCI6IjM1IiwiZXhwIjoxNjk0MjM3NzIyfQ.aO1_RGWVxXygefwuUg_au3ys71zc2KuIbxZNWgTBeLRK9JVEqQZeza4X1gtoA8_BxoKZUuaPnTP9gUrEGgF3UQ', 'Content-Type:application/json']
+    //     }
+    //     this.axios.post('/api/testdwyget', { ...data }).then(res => {
+    //       this.employeeList = res.data.data.employee
+    //       this.employeeList.forEach(v => {
+    //         v.value = v.team_code
+    //         v.text = v.team_code_show
+    //       })
+    //       this.formData.employee_id = []
+    //     })
+    //   } else {
+    //     this.formData.employee_id = []
+    //   }
+    // },
     handleSure () {
-      let data = [];
+      console.log(this.list)
       this.list.forEach(v => {
-        let obj = {};
-        obj.id = v.id;
-        obj.team_id = v.team_id,
-          obj.finished_id = v.employee_id,
-          obj.equipment_id = v.equipment_id,
-          obj.quantity = v.quantity;
-        data.push(obj)
-      });
-      if (!this.state) {
-        return
-      } else {
-        this.state = false;
-        this.axios.post('/api/mobileFinishedOrderAdd', { ...data }).then(res => {
-          if (res.code === 200) {
-            this.state = true
-            this.$Message.success(res.msg);
-            this.handleReturn()
-          }
+        const data3 = {
+          url: 'http://121.36.142.167:7774/jbl/api/module-data/completion_orders/completion_orders',
+          post: {
+            bizId: -1,
+            bizTypeEK: 'LOWCODE',
+            dynamicFormId: "474201923419320320",
+            showModelId: "474382714828959744",
+            data: {
+              completion_orders: {
+                completion_order_no: null,
+                completion_time: new Date(),
+                created_by: null,
+                created_date: null,
+                employee_id: v.employee_id.toString(),
+                employee_id_show: "郭银",
+                equipment_id: v.equipment_id,
+                equipment_id_show: "5号多层热压机",
+                last_modified_by: null,
+                last_modified_date: null,
+                process_id: v.dispatch_orders.process_id,
+                process_id_show: v.dispatch_orders.process_id_show,
+                remark: null,
+                site: null,
+                team_id: v.team_finish_id,
+                team_id_show: "包装一组",
+              },
+              completion_orders_dtl: v
+            }
+          },
+          header: ['Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiYXV0aCI6IlJPTEVfSU5ORVJfVVNFUixST0xFX0FETUlOLFJPTEVfSU5URVJGQUNFIiwidG9rZW5JZCI6IjM1IiwiZXhwIjoxNjk0Njc0MTE0fQ.L3Di3K_cpF0rWSgvzbcLufLm8bkCxd3Y-xudfKzSm4F-qdpDr0hYWWQP5K5BYTNuZnu4tWpGmSW2KRHU0pjt-A', 'Content-Type:application/json']
+        }
+        this.axios.post('/api/testdwy', { ...data3 }).then(res => {
+
         })
-      }
+      })
     }
   }
 }
@@ -386,4 +420,5 @@ export default {
   margin: 0.5rem;
   border: 0.1rem solid;
 }
+
 </style>

+ 53 - 49
src/views/page/Package/detail.vue

@@ -3,11 +3,11 @@
     <div class="header">
       <div class="header_top">
         <Button
-          type="primary"
-          class="header_btn"
-          ghost
-          @click="handleShow"
-          :icon="is_show ? 'ios-arrow-dropup' : 'ios-arrow-dropdown'"
+            type="primary"
+            class="header_btn"
+            ghost
+            @click="handleShow"
+            :icon="is_show ? 'ios-arrow-dropup' : 'ios-arrow-dropdown'"
         >
           <div style="margin-right: 0.6rem">
             {{ is_show ? "收起" : "展开" }}
@@ -45,42 +45,42 @@
     <div class="bdy">
       <table>
         <tr style="height: 2rem">
-          <th style="width: 3rem">生产订单号</th>
+          <th style="width: 3rem">派工单号</th>
           <th style="width: 4rem">产品名称</th>
           <th style="width: 3rem">规格型号</th>
-          <th style="width: 3rem">已完工数量</th>
-          <th style="width: 3rem">未完工数量</th>
+          <th style="width: 3rem">已包装数量</th>
+          <th style="width: 3rem">未包装数量</th>
         </tr>
         <tr
-          v-for="(item, index) in tableData"
-          :key="index"
-          @click="handleChoose(item, index)"
-          :class="item.is_choose ? 'choose_item' : ''"
+            v-for="(item, index) in tableData"
+            :key="index"
+            @click="handleChoose(item, index)"
+            :class="item.is_choose ? 'choose_item' : ''"
         >
           <td>
-            {{ item.production_no }}
+            {{ item.no }}
           </td>
-          <td>{{ item.product_title }}</td>
-          <td>{{ item.size }}</td>
-          <td>{{ item.finished_num }}</td>
-          <td>{{ item.un_finished_quantity }}</td>
+          <td>{{ item.material_code_show }}</td>
+          <td>{{item.specs }}</td>
+          <td>{{ item.box_num }}</td>
+          <td>{{ item.not_box_num }}</td>
         </tr>
       </table>
     </div>
     <div class="footer">
       <Button
-        type="primary"
-        class="header_btn"
-        style="margin-right: 3rem; height: 2.6rem"
-        @click="handleReturn"
+          type="primary"
+          class="header_btn"
+          style="margin-right: 3rem; height: 2.6rem"
+          @click="handleReturn"
       >
         返回</Button
       >
       <Button
-        type="primary"
-        class="header_btn"
-        style="margin-left: 3rem; height: 2.6rem"
-        @click="handelGoSure"
+          type="primary"
+          class="header_btn"
+          style="margin-left: 3rem; height: 2.6rem"
+          @click="handelGoSure"
       >
         确认</Button
       >
@@ -91,32 +91,35 @@
 export default {
   data () {
     return {
-
       tableData: [],
       is_show: true,
       is_use: false
-
     }
   },
   mounted () {
-    let data = {}
-    if (localStorage.getItem('fyy_target')) {
-      data.target = JSON.parse(localStorage.getItem('fyy_target'))
-    }
-    data = {
-      url: 'http://121.36.142.167:7774/jbl/api/module-data/production_orders_list/page',
-      post: {"direction":"DESC","property":"id","fromClientType":"pc","number":0,"sorts":[],"rules":[],"size":15,"specialConditions":[],"dynamicFormCode":"production_orders","developmentSystemId":null,"debugFlag":true},
-      header: ['Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiYXV0aCI6IlJPTEVfSU5ORVJfVVNFUixST0xFX0FETUlOIiwidG9rZW5JZCI6IjM1IiwiZXhwIjoxNjk0MjM3NzIyfQ.aO1_RGWVxXygefwuUg_au3ys71zc2KuIbxZNWgTBeLRK9JVEqQZeza4X1gtoA8_BxoKZUuaPnTP9gUrEGgF3UQ', 'Content-Sign: e2938faaabcd8654dfb07a98bd84d3f1', 'Content-Type:application/json']
-    }
-    this.initData(data)
+    // if (localStorage.getItem('fyy_target')) {
+    //   data.target = JSON.parse(localStorage.getItem('fyy_target'))
+    // }
+    this.tableData = []
+    const fyyTarget = ('SO202308070002,SO202308070001').split(',')
+    fyyTarget.forEach(v => {
+      const data = {
+        url: 'http://121.36.142.167:7774/jbl/api/module-data/sale_order/page',
+        post: {"direction":"DESC","property":"id","fromClientType":"pc","number":0,"sorts":[],"rules":[{"field":"exe_sale_order_b.no","option":"LIKE_ANYWHERE","values":[v]}],"size":15,"specialConditions":[],"workflowSearchBean":{},"dynamicFormCode":"sale_order","dynamicFormTable":null,"ignoreField":true,"developmentSystemId":null,"debugFlag":true},
+        header: ['Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiYXV0aCI6IlJPTEVfSU5ORVJfVVNFUixST0xFX0FETUlOLFJPTEVfSU5URVJGQUNFIiwidG9rZW5JZCI6IjM1IiwiZXhwIjoxNjk0Njc0MTE0fQ.L3Di3K_cpF0rWSgvzbcLufLm8bkCxd3Y-xudfKzSm4F-qdpDr0hYWWQP5K5BYTNuZnu4tWpGmSW2KRHU0pjt-A', 'Content-Sign:a2898699a4433b413d8473e4b59d64b8', 'Content-Type:application/json']
+      }
+      this.initData(data)
+    })
   },
   methods: {
     initData (row) {
       this.axios.post('/api/testdwy', { ...row }).then(res => {
-        this.tableData = res.data.content ? res.data.content : []
-        this.tableData.forEach(v => {
+        res.data.content.forEach(v => {
           v.is_choose = false
+          v.no = v.exe_sale_order_b.no
+          v.box_num = v.box_num || 0
         })
+        this.tableData.push(...res.data.content)
       })
     },
     handelGoSure () {
@@ -124,20 +127,21 @@ export default {
         return this.$Message.warning('请先选择数据!')
       }
       localStorage.removeItem('fyy_target')
-      const id = this.tableData.filter(v => v.is_choose).map(v => v['dynamic_form_value_id']).toString()
-      this.$router.push({ path: '/cms/Package/detailed', query: { id } })
+      const dataId = Math.floor(Math.random() * 100)
+      const text = JSON.stringify(this.tableData.filter(v => v.is_choose))
+      localStorage.setItem(dataId + '', text)
+      this.$router.push({ path: '/cms/package/detailed', query: { id: dataId } })
     },
     handleReturn () {
-      localStorage.removeItem('fyy_target');
-      this.$router.push('/cms/home');
+      localStorage.removeItem('fyy_target')
+      this.$router.push('/cms/home')
     },
-    handleChoose(item, index) {
-      item.is_choose = !item.is_choose;
-      this.tableData.splice(index, 1, item);
+    handleChoose (item, index) {
+      item.is_choose = !item.is_choose
+      this.tableData.splice(index, 1, item)
     },
     handleShow () {
-      this.is_show = !this.is_show;
-      console.log(document.getElementsByClassName('header'))
+      this.is_show = !this.is_show
       if (this.is_show) {
         document.getElementsByClassName('header')[0].style = 'height:7rem;overflow:hidden;transition:all .4s;'
         setTimeout(() => {
@@ -145,7 +149,7 @@ export default {
           this.is_use = false
         }, 400)
       } else {
-        this.is_use = true;
+        this.is_use = true
         document.getElementsByClassName('header')[0].style = 'height:2.7rem;overflow:hidden;transition:all .4s;'
       }
     }

+ 46 - 40
src/views/page/Package/detailed.vue

@@ -5,16 +5,16 @@
         <div class="add" @click="handleAdd(item, index)">+</div>
         <div class="delete" @click="handleDelete(index)">x</div>
         <div class="unit" style="display: flex">
-          <label style="width: 50%">生产订单号:</label>
-          <div style="width: 50%;word-break: break-all">{{ item.product_no}}</div>
+          <label style="width: 50%">销售订单号:</label>
+          <div style="width: 50%;word-break: break-all">{{ item.no}}</div>
         </div>
         <div style="display: flex" class="unit">
           <label>产品名称:</label>
-          <div style="width: 60%">{{ item.product_title }}</div>
+          <div style="width: 60%">{{ item.material_code_show }}</div>
         </div>
         <div style="display: flex; width: 100%; padding: 0.5rem">
           <label style="width: 15%; text-align: right">工艺:</label>
-          <div style="width: 60%">准分子爱格浅橡9327</div>
+          <div style="width: 60%">{{ item.specs }}</div>
         </div>
         <div style="display: flex" class="unit">
           <label>包装数量:</label>
@@ -23,7 +23,7 @@
             type="number"
             placeholder="  请输入"
             style="width: 60%; padding: 0 0 0 0.2rem"
-            v-model="item.quantity"
+            v-model="item.box_num"
           />
         </div>
         <div class="unit">
@@ -39,7 +39,7 @@
                 border-radius: 0.6rem;
                 background: #fff;
               "
-              @change="handleChooseTeam"
+              @change="handleChooseTeam($event,index)"
             >
               <template v-slot:first>
                 <b-form-select-option value="" disabled
@@ -52,7 +52,7 @@
         <div class="unit">
           <label>人员:</label>
           <Select
-            v-model="formData.employee_id"
+            v-model="item.employee_id"
             :options="employeeList"
             style="
               width: 60%;
@@ -61,7 +61,7 @@
             multiple
             transfer
             size="small"
-            :disabled="!formData.team_id"
+            :disabled="item.team_id ? false : true"
           >
             <Option v-for="item in employeeList" :key="item.id" :label="item.text" :value="item.value"/>
           </Select>
@@ -125,7 +125,7 @@ export default {
     const data = {
       url: 'http://121.36.142.167:7774/jbl/api/module-data/team_list/page',
       post: {"direction":"DESC","property":"id","fromClientType":"pc","number":0,"sorts":[],"rules":[],"size":15,"specialConditions":[],"dynamicFormCode":"team","developmentSystemId":null,"debugFlag":true},
-      header: ['Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiYXV0aCI6IlJPTEVfSU5ORVJfVVNFUixST0xFX0FETUlOIiwidG9rZW5JZCI6IjM1IiwiZXhwIjoxNjk0MjM3NzIyfQ.aO1_RGWVxXygefwuUg_au3ys71zc2KuIbxZNWgTBeLRK9JVEqQZeza4X1gtoA8_BxoKZUuaPnTP9gUrEGgF3UQ', 'Content-Sign: 88cb27fd67215452422c18f3ed71028e', 'Content-Type:application/json']
+      header: ['Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiYXV0aCI6IlJPTEVfSU5ORVJfVVNFUixST0xFX0FETUlOLFJPTEVfSU5URVJGQUNFIiwidG9rZW5JZCI6IjM1IiwiZXhwIjoxNjk0Njc0MTE0fQ.L3Di3K_cpF0rWSgvzbcLufLm8bkCxd3Y-xudfKzSm4F-qdpDr0hYWWQP5K5BYTNuZnu4tWpGmSW2KRHU0pjt-A', 'Content-Type:application/json']
     }
     this.axios.post('/api/testdwy', { ...data }).then(res => {
       this.teamList = res.data.content.filter(v => v.status)
@@ -134,51 +134,57 @@ export default {
         v.text = v.title
       })
     })
+    // 获取人员
+    const data1 = {
+      url: 'http://121.36.142.167:7774/jbl/api/module-data/team_code_btn/page',
+      post:{"direction":"DESC","property":"id","fromClientType":"pc","number":0,"sorts":[],"rules":[],"size":15,"specialConditions":[],"workflowSearchBean":{},"dynamicFormCode":"person","dynamicFormTable":null,"ignoreField":true,"developmentSystemId":null,"debugFlag":true},
+      header: ['Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiYXV0aCI6IlJPTEVfSU5ORVJfVVNFUixST0xFX0FETUlOLFJPTEVfSU5URVJGQUNFIiwidG9rZW5JZCI6IjM1IiwiZXhwIjoxNjk0Njc0MTE0fQ.L3Di3K_cpF0rWSgvzbcLufLm8bkCxd3Y-xudfKzSm4F-qdpDr0hYWWQP5K5BYTNuZnu4tWpGmSW2KRHU0pjt-A', 'Content-Type:application/json']
+    }
+    this.axios.post('/api/testdwy', { ...data1 }).then(res => {
+      this.employeeList = res.data.content
+      this.employeeList.forEach(v => {
+        v.value = v.no
+        v.text = v.name
+      })
+    })
+  },
+  beforeRouteLeave (to, from, next) {
+    localStorage.removeItem(this.$route.query.id + '')
+    next()
+  },
+  beforeRouteEnter (to, from, next) {
+    if (localStorage.getItem(to.query.id)) {
+      next()
+    } else {
+      next(vm => {
+        vm.$router.replace('/cms/package/detail')
+        // 跳到该路由页面后,再替换为from.path来源路径
+      })
+    }
   },
   mounted () {
-    this.list = []
-    const id = this.$route.query.id.split(',')
-    id.forEach(v => {
-      const data = {
-        url: `http://121.36.142.167:7774/jbl/api/module-data/production_orders/production_orders/473693703256879104/${v}`,
-        header: ['Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiYXV0aCI6IlJPTEVfSU5ORVJfVVNFUixST0xFX0FETUlOIiwidG9rZW5JZCI6IjM1IiwiZXhwIjoxNjk0MjM3NzIyfQ.aO1_RGWVxXygefwuUg_au3ys71zc2KuIbxZNWgTBeLRK9JVEqQZeza4X1gtoA8_BxoKZUuaPnTP9gUrEGgF3UQ', 'Content-Type:application/json']
-      }
-      this.initData(data)
-    })
+    const id = this.$route.query.id
+    this.initData(id)
   },
   methods: {
-    initData (row) {
-      this.axios.post('/api/testdwyget', { ...row }).then(res => {
-        this.list.push(...res.data.data['production_orders_dtl'])
-        this.formData = res.data.data['production_orders']
-        this.formData.employee_id = []
-        this.list.forEach(v => {
-          v.team_id = this.formData.team_id
-          v.break = [
-            { break_id: '', break_num: 0 }
-          ]
-        })
+    initData (id) {
+      this.list = JSON.parse(localStorage.getItem(id + ''))
+      this.list.forEach(v => {
+        v.team_id = ''
       })
     },
-    handleChooseTeam (e) {
+    handleChooseTeam (e, index) {
       if (e) {
-        this.formData.team_id = e
         // 获取班组下的人员
-        const id = this.teamList.find(v => v.team_code === this.formData.team_id).dynamic_form_value_id
+        const id = this.teamList.find(v => v.team_code === e).dynamic_form_value_id
         const data = {
           url: `http://121.36.142.167:7774/jbl/api/module-data/team/team/472629516238663680/${id}`,
           header: ['Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiYXV0aCI6IlJPTEVfSU5ORVJfVVNFUixST0xFX0FETUlOIiwidG9rZW5JZCI6IjM1IiwiZXhwIjoxNjk0MjM3NzIyfQ.aO1_RGWVxXygefwuUg_au3ys71zc2KuIbxZNWgTBeLRK9JVEqQZeza4X1gtoA8_BxoKZUuaPnTP9gUrEGgF3UQ', 'Content-Type:application/json']
         }
         this.axios.post('/api/testdwyget', { ...data }).then(res => {
-          this.employeeList = res.data.data.employee
-          this.employeeList.forEach(v => {
-            v.value = v.team_code
-            v.text = v.team_code_show
-          })
-          this.formData.employee_id = []
+          this.list[index].employee_id = res.data.data.employee.map(v => v.team_code)
+          this.$forceUpdate()
         })
-      } else {
-        this.formData.employee_id = []
       }
     },
     handleReturn () {