wupengfei
7 天以前 42cb53916a430a19843913f2601b5d16779c7010
src/views/Home/BatchChange.vue
@@ -145,6 +145,26 @@
    name: '身份证号',
  },
  {
    id: '3',
    enCode: 'occupationType',
    name: '职业类型',
  },
  {
    id: '3',
    enCode: 'occupationCode',
    name: '职业码值',
  },
  {
    id: '3',
    enCode: 'workEnterprise',
    name: '用工单位',
  },
  {
    id: '3',
    enCode: 'workAddress',
    name: '用工地点',
  },
  {
    id: '4',
    enCode: 'workType',
    name: '雇员工种',
@@ -233,19 +253,23 @@
              idNumber: '证件号码',
              age: '年龄',
              phoneNumber: '手机号',
              occupationType: '职业类型',
              occupationCode: '职业码值',
              workEnterprise: '用工单位',
              workAddress: '用工地点',
              workType: '职业/工种',
              gender: '性别',
              birthDay: '出生日期',
              note: '备注',
              remark: '备注',
            },
          });
        })
        .catch(() => {
          state.staffList = res.addOrSub;
          state.staffList = _.uniqBy(res.addOrSub, 'idNumber');
          getList();
        });
    }
    state.staffList = res.addOrSub;
    state.staffList = _.uniqBy(res.addOrSub, 'idNumber');
    getList();
  } catch (error) {}
}
@@ -288,20 +312,24 @@
              certType: '证件类型',
              idNumber: '证件号码',
              phoneNumber: '手机号',
              occupationType: '职业类型',
              occupationCode: '职业码值',
              workEnterprise: '用工单位',
              workAddress: '用工地点',
              workType: '职业/工种',
              gender: '性别',
              age: '年龄',
              birthDay: '出生日期',
              note: '备注',
              remark: '备注',
            },
          });
        })
        .catch(() => {
          state.staffList = res.update;
          state.staffList = _.uniqBy(_.uniqBy(res.update, 'idNumber'), 'orginIdNumber');
          getList();
        });
    }
    state.staffList = res.update;
    state.staffList = _.uniqBy(_.uniqBy(res.update, 'idNumber'), 'orginIdNumber');
    getList();
  } catch (error) {}
}