zouyu
2024-08-10 cd26d9664032ff33ac806dc507577b2acaa88a6d
复核人过滤
已修改2个文件
15 ■■■■ 文件已修改
src/components/do/b1-inspect-order-plan/Inspection.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/b1-inspect-order-plan.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -853,7 +853,7 @@
  import file from '../../../util/file'
  import excelFunction from '../../../util/excelFountion'
  export default {
    props: ['sonLaboratory', 'orderId', 'state'],
    props: ['sonLaboratory', 'orderId', 'state','inspectorList'],
    components: {
      ValueTable,
    },
@@ -3169,9 +3169,9 @@
      getAuthorizedPerson() {
        this.$axios.get(this.$api.user.getUserMenu).then(res => {
          let data = []
          let userName = JSON.parse(localStorage.getItem("user")).name;
          // let userName = JSON.parse(localStorage.getItem("user")).name;
          res.data.forEach(a => {
            if(a.name !== userName) {
            if(!this.inspectorList.includes(a.name)) {
              data.push({
              label: a.name,
              value: a.id
src/components/view/b1-inspect-order-plan.vue
@@ -202,7 +202,7 @@
        <div style="width: 100%;height: 100%;" v-if="activeFace >0">
            <Add :active="activeFace" :currentId="currentId"/>
        </div>
    <Inspection v-if="state>0" @goback="goback" :orderId="orderId" :sonLaboratory="componentData.entity.sonLaboratory" :state="state"/>
    <Inspection v-if="state>0" @goback="goback" :orderId="orderId" :inspectorList="inspectorList" :sonLaboratory="componentData.entity.sonLaboratory" :state="state"/>
      <el-dialog title="数据查看" :visible.sync="dataDialogVisible" width="80%">
                <div style="height: 70vh;overflow-y: auto;" v-if="dataDialogVisible">
                    <ValueTable ref="ValueTableDataLook" :url="$api.insOrder.selectSampleAndProductByOrderId"
@@ -228,6 +228,7 @@
        },
        data() {
            return {
        inspectorList: [],//检验人员列表
                alone: false,
                sampleUserForm: {
                    entrustCode: null,
@@ -590,6 +591,12 @@
                this.refreshTable('page')
            },
      handleInspection(row){
        //当前检验任务的检验人列表
        let inspectorList = []
        if(row.userName){
          inspectorList = row.userName.split(',')
        }
        this.inspectorList = inspectorList
        this.state = 1;
                this.orderId = row.id
      },