spring
2025-02-20 10bd1c0bbba80d86313b86559546557b2bdbc920
Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-before into dev
已删除1个文件
已修改11个文件
862 ■■■■ 文件已修改
src/api/business/productOrder.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/business/rawMaterialOrder.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Table/lims-table.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/rawMaterialInspection/dataLookVisible.vue 162 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/materialOrder/copperOrder.vue 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/materialOrder/customsInspection.vue 82 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/materialOrder/index.vue 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/materialOrderComponents/materialOrder/dataLookVisible.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/materialOrderComponents/materialOrder/filesLookVisible.vue 52 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/productOrder/index.vue 342 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/rawMaterialInspection/index.vue 108 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/business/productOrder.js
@@ -78,6 +78,14 @@
  return request({
    url: '/insOrder/delInsOrder',
    method: 'delete',
    data: query
    params: query
  })
}
// å°†å¾…审核更新成撤销状态
export function selectNoProducts(query) {
  return request({
    url: '/insOrder/selectNoProducts',
    method: 'get',
    params: query
  })
}
src/api/business/rawMaterialOrder.js
@@ -44,7 +44,7 @@
// èŽ·å–å½“å‰ç™»å½•çš„å®¢æˆ·ä¿¡æ¯
export function getUserNow(query) {
  return request({
    url: '/user/getUserNow',
    url: '/system/newUser/getUserNow',
    method: 'get',
  })
}
@@ -138,7 +138,7 @@
// é“œå•丝下单
export function addRawCopperOrder(query) {
  return request({
    url: '/insOrder/addRawCopperOrder',
    url: '/rawMaterialOrder/addRawCopperOrder',
    method: 'post',
    data: query
  })
src/components/Table/lims-table.vue
@@ -46,7 +46,7 @@
        :label="item.label"
        :min-width="item.minWidth"
        :prop="item.prop"
        show-overflow-tooltip
        :show-overflow-tooltip="item.dataType === 'action' ? false : true"
        :sortable="item.sortable ? true : false"
        :type="item.type"
        :width="
@@ -370,7 +370,6 @@
  methods: {
    getWidth(row) {
      let count = 0;
      console.log("row---", row);
      row.forEach((a) => {
        count += a.name.length;
      });
src/components/rawMaterialInspection/dataLookVisible.vue
ÎļþÒÑɾ³ý
src/router/index.js
@@ -100,12 +100,18 @@
    permissions: ["business:order"],
    children: [
      {
        // åŽŸææ–™ä¸‹å•
        path: 'customsInspection',
        component: () => import('@/views/business/materialOrder/customsInspection'),
        name: 'customsInspection',
        meta: { title: '原材料下单详情', activeMenu: '/business/materialOrder' }
      },
      {
        // é“œææ–™ä¸‹å•
        path: "customsInspection",
        component: () =>
          import("@/views/business/materialOrder/customsInspection"),
        name: "customsInspection",
        meta: { title: "铜材料下单", activeMenu: "/business/materialOrder" },
        path: 'copperOrder',
        component: () => import('@/views/business/materialOrder/copperOrder'),
        name: 'copperOrder',
        meta: { title: '铜材料下单', activeMenu: '/business/materialOrder' }
      },
    ],
  },
src/views/business/materialOrder/copperOrder.vue
@@ -515,8 +515,6 @@
      bsm2: false,
      bsm2Val: null,
      bsm2Dia: false,
      bsm2Val2: [],
      bsm2Val3: [],
      bsmRow3: null,
      bsm3Val: null,
      bsm3Dia: false,
@@ -649,7 +647,6 @@
        item.quantity = 1
      })
      this.count++
      this.computationalPairing(this.sampleList.length)
    },
    noNeedCheck () {
      this.$refs['addObj'].validate((valid) => {
@@ -902,10 +899,6 @@
            this.$message.error('请选择检验标准')
            return
          }
          // if (!this.sampleList.every(m => m.quantity)) {
          //   this.$message.error('请选择待检项数量')
          //   return
          // }
          const sampleList = this.HaveJson(this.sampleList)
          sampleList.forEach(item => {
            item.quantity = 1
@@ -1148,25 +1141,27 @@
    saveMethod(sampleList){
      this.saveLoad = true
      addRawCopperOrder({
        str: JSON.stringify({
          insOrder: this.addObj,
          list: JSON.stringify(sampleList.map(a => {
            if (a.modelNum) {
              const index = a.modelNum.indexOf('×')
              if (index === 0) {
                a.model = a.model + a.modelNum
              } else if (index === -1) {
                a.model = a.model + '-' + a.modelNum
              } else {
                a.model = a.modelNum + a.model
              }
        copperInsOrder: this.addObj,
        sampleList: sampleList.map(a => {
          if (a.insProduct.length > 0) {
            a.insProduct.forEach(c => {
              delete c.id
            })
          }
          if (a.modelNum) {
            const index = a.modelNum.indexOf('×')
            if (index === 0) {
              a.model = a.model + a.modelNum
            } else if (index === -1) {
              a.model = a.model + '-' + a.modelNum
            } else {
              a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum))
              a.model = a.modelNum + a.model
            }
            a.insProduct = a.insProduct.filter(b=>b.state === 1)
            return a
          })),
          pairing: JSON.stringify(this.bsm2Val2)
          } else {
            a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum))
          }
          a.insProduct = a.insProduct.filter(b=>b.state === 1)
          return a
        })
      }).then(res => {
        this.saveLoad = false
@@ -1333,8 +1328,6 @@
        this.sampleList.push(this.HaveJson(this.sample))
        // this.count++
      }
      this.computationalPairing(this.sampleList.length)
      this.bsm2Val2 = this.HaveJson(this.bsm2Val3)
    },
    selectSample(val) {
      this.sampleIds = []
@@ -1463,13 +1456,6 @@
      }
      backtrack([], nums);
      return result;
    },
    computationalPairing(n) {
      const nums = [];
      for (let i = 1; i <= n; i++) {
        nums.push(i);
      }
      this.bsm2Val3 = this.HaveJson(this.permute(nums))
    },
    tableRowClassName({row, rowIndex}) {
      if (row.state === 0) {
src/views/business/materialOrder/customsInspection.vue
@@ -431,8 +431,8 @@
</template>
<script>
import ValueTable from "@/components/Table/value-table.vue";
import {
  addExemptionOrder,
  addInsOrder,
  addRawMaterOrderTemplate, delRawMaterOrderTemplate,
  getInsOrder,
@@ -444,9 +444,7 @@
export default {
  name: "CustomsInspection",
  dicts: ['check_type', 'urgency_level'],
  components: {
    ValueTable,
  },
  components: {},
  props: {
    currentId: {
      type: Number,
@@ -998,28 +996,26 @@
      this.addObj.ifsInventoryId = this.customsInspection.id
      this.noNeedCheckLoad = true
      addExemptionOrder({
        str: JSON.stringify({
          insOrder: this.addObj,
          list: JSON.stringify(sampleList.map(a => {
            if (a.modelNum) {
              // æ ¹æ®x号判断型号参数与样品型号的拼接位置
              // ä¾‹å¦‚×4,就为500ML×4;4×,就为4×500ML
              const index = a.modelNum.indexOf('×')
              if (index === 0) {
                a.model = a.model + a.modelNum
              } else if (index === -1) {
                a.model = a.model + '-' + a.modelNum
              } else {
                a.model = a.modelNum + a.model
              }
        insOrder: this.addObj,
        list: sampleList.map(a => {
          if (a.modelNum) {
            // æ ¹æ®x号判断型号参数与样品型号的拼接位置
            // ä¾‹å¦‚×4,就为500ML×4;4×,就为4×500ML
            const index = a.modelNum.indexOf('×')
            if (index === 0) {
              a.model = a.model + a.modelNum
            } else if (index === -1) {
              a.model = a.model + '-' + a.modelNum
            } else {
              a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum))
              a.model = a.modelNum + a.model
            }
            a.insProduct = a.insProduct.filter(b=>b.state === 1)
            return a
          })),
          pairing: JSON.stringify(pairing)
        })
          } else {
            a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum))
          }
          a.insProduct = a.insProduct.filter(b=>b.state === 1)
          return a
        }),
        pairing: pairing
      }).then(res => {
        this.noNeedCheckLoad = false
        if (res.code == 201) return
@@ -1049,28 +1045,26 @@
      this.addObj.ifsInventoryId = this.customsInspection.id
      this.saveLoad = true
      addInsOrder({
        str: JSON.stringify({
          insOrder: this.addObj,
          list: JSON.stringify(sampleList.map(a => {
            if (a.modelNum) {
              // æ ¹æ®x号判断型号参数与样品型号的拼接位置
              // ä¾‹å¦‚×4,就为500ML×4;4×,就为4×500ML
              const index = a.modelNum.indexOf('×')
              if (index === 0) {
                a.model = a.model + a.modelNum
              } else if (index === -1) {
                a.model = a.model + '-' + a.modelNum
              } else {
                a.model = a.modelNum + a.model
              }
        insOrder: this.addObj,
        list: sampleList.map(a => {
          if (a.modelNum) {
            // æ ¹æ®x号判断型号参数与样品型号的拼接位置
            // ä¾‹å¦‚×4,就为500ML×4;4×,就为4×500ML
            const index = a.modelNum.indexOf('×')
            if (index === 0) {
              a.model = a.model + a.modelNum
            } else if (index === -1) {
              a.model = a.model + '-' + a.modelNum
            } else {
              a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum))
              a.model = a.modelNum + a.model
            }
            a.insProduct = a.insProduct.filter(b=>b.state === 1)
            return a
          })),
          pairing: JSON.stringify(pairing)
        })
          } else {
            a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum))
          }
          a.insProduct = a.insProduct.filter(b=>b.state === 1)
          return a
        }),
        pairing: pairing
      }).then(res => {
        this.saveLoad = false
        if (res.code == 201) return
src/views/business/materialOrder/index.vue
@@ -195,7 +195,6 @@
</template>
<script>
import CustomsInspection from "./customsInspection.vue";
import PrintDialog from "@/views/business/materialOrderComponents/materialOrder/printDialog.vue";
import ShowInfo from "@/views/business/materialOrderComponents/materialOrder/showInfo.vue";
import DataLookVisible from "@/views/business/materialOrderComponents/materialOrder/dataLookVisible.vue";
@@ -206,9 +205,7 @@
  concessionRelease,
  getIfsByAll,
  getIfsByOver,
  getIfsByQuarter,
  getIfsByStateOne,
  getPurchaseOrder,
  rawAllExport,
  rawOrderRelease,
  repealEnterRawOrder,
@@ -222,7 +219,7 @@
export default {
  name: "b1-material-inspection-order",
  // import å¼•入的组件需要注入到对象中才能使用
  components: {limsTable,DownFileDialog, FilesLookVisible, DataLookVisible, ShowInfo, PrintDialog, CustomsInspection},
  components: {limsTable,DownFileDialog, FilesLookVisible, DataLookVisible, ShowInfo, PrintDialog},
  data() {
    // è¿™é‡Œå­˜æ”¾æ•°æ®
    return {
@@ -240,14 +237,14 @@
            if (params == 1) {
              return '过期物料'
            } else {
              return ''
              return null
            }
          },
          formatType: (params) => {
            if (params == 1) {
              return 'info'
            } else {
              return ''
              return null
            }
          }
        },
@@ -309,14 +306,14 @@
            if (params == 1) {
              return '过期物料'
            } else {
              return ''
              return null
            }
          },
          formatType: (params) => {
            if (params == 1) {
              return 'info'
            } else {
              return ''
              return null
            }
          }
        },
@@ -384,14 +381,14 @@
            if (params == 1) {
              return '过期物料'
            } else {
              return ''
              return null
            }
          },
          formatType: (params) => {
            if (params == 1) {
              return 'info'
            } else {
              return ''
              return null
            }
          }
        },
@@ -497,14 +494,14 @@
            if (params == 1) {
              return '过期物料'
            } else {
              return ''
              return null
            }
          },
          formatType: (params) => {
            if (params == 1) {
              return 'info'
            } else {
              return ''
              return null
            }
          }
        },
@@ -563,14 +560,14 @@
            if (params == 1) {
              return '过期物料'
            } else {
              return ''
              return null
            }
          },
          formatType: (params) => {
            if (params == 1) {
              return 'info'
            } else {
              return ''
              return null
            }
          }
        },
@@ -1039,8 +1036,8 @@
    },
    // æ•°æ®æŸ¥çœ‹
    handleDataLook(row) {
      this.dataDialogVisible = true;
      this.dataLookInfo = row
      this.dataDialogVisible = true;
    },
    // å…³é—­æ•°æ®æŸ¥çœ‹å¼¹æ¡†
    closeDataLook () {
src/views/business/materialOrderComponents/materialOrder/dataLookVisible.vue
@@ -63,7 +63,7 @@
            } else if (params == 3) {
              return '不判定'
            } else {
              return ''
              return null
            }
          },
          formatType: (params) => {
@@ -74,7 +74,7 @@
            } else if (params == 3) {
              return ''
            }  else {
              return ''
              return null
            }
          }
        },
src/views/business/materialOrderComponents/materialOrder/filesLookVisible.vue
@@ -17,9 +17,9 @@
        </el-upload>
      </div>
      <div v-if="filesDialogVisible">
        <lims-table :tableData="tableData" :column="column"
                    @pagination="pagination" height="500px" key="tableData"
                    :page="page" :tableLoading="tableLoading"></lims-table>
        <lims-table :tableData="tableDataFile" :column="columnFile"
                    @pagination="paginationFile" height="500px" key="tableDataFile"
                    :page="pageFile" :tableLoading="tableLoadingFile"></lims-table>
      </div>
    </el-dialog>
  </div>
@@ -48,20 +48,18 @@
  data() {
    // è¿™é‡Œå­˜æ”¾æ•°æ®
    return {
      tableData: [],
      tableLoading: false,
      column: [
      tableDataFile: [],
      tableLoadingFile: false,
      columnFile: [
        {
          dataType: 'tag',
          label: '类型',
          prop: 'type',
          formatData: (params) => {
            if (params == 1) {
              return '合格'
            } else if (params == 0) {
              return '不合格'
            } else if (params == 3) {
              return '不判定'
              return '图片'
            } else if (params == 2) {
              return '文件'
            } else {
              return ''
            }
@@ -69,11 +67,9 @@
          formatType: (params) => {
            if (params == 1) {
              return 'success'
            } else if (params == 0) {
              return 'danger'
            } else if (params == 3) {
              return ''
            }  else {
            } else if (params == 2) {
              return 'warning'
            } else {
              return ''
            }
          }
@@ -104,7 +100,7 @@
          ]
        }
      ],
      page: {
      pageFile: {
        total:0,
        size:10,
        current:1
@@ -127,37 +123,37 @@
    }
  },
  mounted() {
    this.refreshTable()
    this.getFileList()
  },
  // æ–¹æ³•集合
  methods: {
    // åˆ‡æ¢æ•°æ®æŸ¥çœ‹tab栏
    handleDataVisibleTab (m, i) {
      this.dataVisibleIndex = i
      this.refreshTable()
      this.getFileList()
    },
    // æŸ¥è¯¢å›žè°ƒ
    refreshTable() {
    getFileList() {
      if (this.dataVisibleIndex === 0) {
        this.entity.insOrderId = this.filesLookInfo.enterOrderId
      } else {
        this.entity.insOrderId = this.filesLookInfo.quarterOrderId
      }
      this.tableLoading = true
      this.tableLoadingFile = true
      const params = {...this.entity}
      getFileList(params).then(res => {
        this.tableLoading = false
        this.tableLoadingFile = false
        if (res.code === 200) {
          this.tableData = res.data.records
          this.page.total = res.data.total
          this.tableDataFile = res.data.records
          this.pageFile.total = res.data.total
        }
      }).catch(err => {
        this.tableLoading = false
        this.tableLoadingFile = false
      })
    },
    pagination (page) {
      this.page.size = page.limit
      this.refreshTable()
    paginationFile (page) {
      this.pageFile.size = page.limit
      this.getFileList()
    },
    // ä¸‹è½½
    handleDown(row){
src/views/business/productOrder/index.vue
@@ -64,7 +64,7 @@
    <div class="table">
      <lims-table :tableData="tableData" :column="column"
                  :isSelection="true" :handleSelectionChange="selectMethod"
                  @pagination="pagination" :height="'calc(100vh - 290px)'" key="tableData"
                  @pagination="pagination" :height="'calc(100vh - 280px)'" key="tableData"
                  :page="page" :tableLoading="tableLoading"></lims-table>
    </div>
    <div>
@@ -148,34 +148,33 @@
                </span>
      </el-dialog>
      <el-dialog :visible.sync="dataDialogVisible" title="数据查看" width="80%">
        <div v-if="dataDialogVisible" style="height: 70vh;overflow-y: auto;">
          <ValueTable ref="ValueTableDataLook" :componentData="componentDataDataLook" :rowKey="'insProductId'"
                      :url="$api.insOrder.selectSampleAndProductByOrderId"/>
        <div v-if="dataDialogVisible">
          <lims-table :tableData="tableDataLook" :column="tableDataLookColumn"
                      @pagination="tableDataLookPagination" height="500px" key="tableDataLook"
                      :page="tableDataLookPage" :tableLoading="tableDataLookTableLoading"></lims-table>
        </div>
      </el-dialog>
      <el-dialog :visible.sync="filesDialogVisible" title="附件查看" width="80%">
        <div v-if="filesDialogVisible" style="height: 70vh;overflow-y: auto;">
          <ValueTable :key="upIndex" ref="fileList"
                      :componentData="componentData0"
                      :url="$api.insOrderPlan.getFileList"
                      class="value-table"/>
        <div v-if="filesDialogVisible">
          <lims-table :tableData="tableDataFile" :column="columnFile"
                      @pagination="paginationFile" height="500px" key="tableDataFile"
                      :page="pageFile" :tableLoading="tableLoadingFile"></lims-table>
        </div>
      </el-dialog>
      <el-dialog :title="deleteTilte" :visible.sync="deleteDialogVisible" width="80%">
        <div v-if="deleteDialogVisible" style="height: 70vh;overflow-y: auto;">
          <ValueTable ref="ValueTableDataDelete" :componentData="componentDataDelete"
                      :isColumnWidth="true" :url="$api.insOrder.selectNoProducts+'?orderId='+orderId+'&ids='+this.revocationInsProductIds"/>
          <lims-table :tableData="componentDataDelete" :column="columnDelete"
                      :isSelection="true" :handleSelectionChange="selectDelete"
                      @pagination="paginationDelete" height="500px" key="componentDataDelete"
                      :page="pageDelete" :tableLoading="tableLoadingDelete"></lims-table>
        </div>
        <span slot="footer" class="dialog-footer">
        <el-row>
          <el-button @click="handleNo">{{deleteTilte=='撤销'?'取 æ¶ˆ':'不通过'}}</el-button>
          <el-button :loading="printLoading" type="primary" @click="submitDelete">{{deleteTilte=='撤销'?'ç¡® å®š':'通 è¿‡'}}</el-button>
        </el-row>
      </span>
          <el-row>
            <el-button @click="handleNo">{{deleteTilte=='撤销'?'取 æ¶ˆ':'不通过'}}</el-button>
            <el-button :loading="printLoading" type="primary" @click="submitDelete">{{deleteTilte=='撤销'?'ç¡® å®š':'通 è¿‡'}}</el-button>
          </el-row>
        </span>
      </el-dialog>
    </div>
    <div>
<!--      <Add v-if="active<4" :active="active" :currentId="currentId" :examine = "examine" :tabIndex="tabIndex" />-->
    </div>
    <el-dialog :visible.sync="printDialogVisible" title="标签打印" top="5vh" width="40%">
      <div v-loading="loadPint" style="width:100%;height: 400px;overflow-y: auto;">
@@ -307,17 +306,15 @@
import PrintDialog from "@/views/business/productOrder/components/printDialog.vue";
import AddInspectionDia from "@/views/business/productOrder/components/addInspectionDia.vue";
import limsTable from "@/components/Table/lims-table.vue";
import {getWarehouseSubmit} from "@/api/business/materialInspection";
import {
  checkUpdate, delInsOrder,
  rawAllInsOrderExport,
  selectInsOrderParameter, selectOrderManDay,
  selectInsOrderParameter, selectNoProducts, selectOrderManDay,
  updateInspected,
  updateOrderEntrustCode, updateStatus, upInsOrder, upPlanUser2
} from "@/api/business/productOrder";
import {Message} from "element-ui";
import {selectUserCondition} from "@/api/performance/class";
import {downFile} from "@/api/business/rawMaterialOrder";
import {downFile, getFileList, selectSampleAndProductByOrderId} from "@/api/business/rawMaterialOrder";
// import Inspection from "../do/b1-inspect-order-plan/Inspection.vue";
export default {
  components: {
@@ -533,7 +530,104 @@
      quashDialogVisible: false,
      issuedDialogVisible: false,
      dataDialogVisible: false, // æ•°æ®æŸ¥çœ‹å¼¹æ¡†
      tableDataLookTableLoading: false, // æ•°æ®æŸ¥çœ‹å¼¹æ¡†
      tableDataLook: [],
      tableDataLookPage: {
        total:0,
        size:10,
        current:1
      },
      tableDataLookColumn: [
        {label: '样品编号', prop: 'sampleCode'},
        {label: '样品名称', prop: 'sample'},
        {label: '检验项分类', prop: 'inspectionItemClass'},
        {label: '检验项', prop: 'inspectionItem'},
        {label: '检验子项', prop: 'inspectionItemSubclass'},
        {label: '单位', prop: 'unit'},
        {label: '样品型号', prop: 'model'},
        {label: '条件', prop: 'radius'},
        {label: '电缆标识', prop: 'cableTag'},
        {label: '试验要求', prop: 'tell'},
        {label: '检验结果', prop: 'lastValue'},
        {
          dataType: 'tag',
          label: '结果判定',
          prop: 'insResult',
          formatData: (params) => {
            if (params == 1) {
              return '合格'
            } else if (params == 0) {
              return '不合格'
            } else if (params == 3) {
              return '不判定'
            } else {
              return ''
            }
          },
          formatType: (params) => {
            if (params == 1) {
              return 'success'
            } else if (params == 0) {
              return 'danger'
            } else if (params == 3) {
              return ''
            }  else {
              return ''
            }
          }
        },
      ],
      filesDialogVisible: false, // é™„件查看弹框
      tableDataFile: [],
      tableLoadingFile: false,
      columnFile: [
        {
          dataType: 'tag',
          label: '类型',
          prop: 'type',
          formatData: (params) => {
            if (params == 1) {
              return '图片'
            } else if (params == 2) {
              return '文件'
            } else {
              return ''
            }
          },
          formatType: (params) => {
            if (params == 1) {
              return 'success'
            } else if (params == 2) {
              return 'warning'
            } else {
              return ''
            }
          }
        },
        {label: '附件名称', prop: 'fileName'},
        {label: '上传人', prop: 'name'},
        {label: '上传时间', prop: 'createTime'},
        {
          dataType: 'action',
          fixed: 'right',
          label: '操作',
          width: '170px',
          operation: [
            {
              name: '下载',
              type: 'text',
              clickFun: (row) => {
                this.handleDown(row);
              }
            }
          ]
        }
      ],
      pageFile: {
        total:0,
        size:10,
        current:1
      },
      formData: {},
      formData0: {},
      formData1: {},
@@ -551,130 +645,25 @@
      personList: [],
      orderId:'',
      revocationInsProductIds:'',
      componentDataDataLook: {
        entity: {
          id: 0,
          orderBy: {
            field: 'sampleCode',
            order: 'asc'
          }
        },
        isIndex: false,
        showSelect: false,
        select: false,
        do: [],
        tagField: {
          insState: {
            select: []
          },
          insResult: {
            select: [{
              value: 1,
              label: '合格',
              type: 'success'
            },{
              value: 0,
              label: '不合格',
              type: 'danger'
            },{
              value: 3,
              label: '不判定',
              type: ''
            }]
          }
        },
        selectField: {},
        spanConfig:{
          rows:[
            {
              name:'sampleCode',
              index:0
            },
            {
              name:'sample',
              index:1
            },
            {
              name:'model',
              index:6
            }
          ]
        },
        requiredAdd: [],
        requiredUp: []
      },
      componentData0: {
        entity: {
          insOrderId:''
        },
        isIndex: true,
        showSelect: false,
        select: false,
        sort: false,
        init:false,
        do: [
          {
            id: 'parent',
            font: '下载',
            type: 'text',
            method: 'handleDown'
          }
        ],
        isPage: false,
        linkEvent: {},
        tagField: {
          type:{
            select:[
              {
                value: 1,
                label: '图片'
              },
              {
                value: 2,
                label: '文件'
              }
            ]
          }
        },
        currentId: '',
        selectField: {},
        requiredAdd: [],
        requiredUp: []
      },
      componentDataDelete: {
        entity: {
          // orderId: '',
          // orderBy: {
          //     field: 'sampleCode',
          //     order: 'asc'
          // }
        },
        isPage:true,
        isIndex: false,
        showSelect: true,
        select: true,
        selectMethod: 'selectDelete',
        do: [],
        tagField: {
          insState: {
            select: []
          },
          insResult: {
            select: [{
              value: 1,
              label: '合格',
              type: 'success'
            },{
              value: 0,
              label: '不合格',
              type: 'danger'
            }]
          }
        },
        selectField: {},
        spanConfig:{},
        requiredAdd: [],
        requiredUp: []
      componentDataDelete: [],
      tableLoadingDelete: false,
      columnDelete: [
        {label: '样品编号', prop: 'sampleCode'},
        {label: '检验项分类', prop: 'inspectionItemClass'},
        {label: '检验项', prop: 'inspectionItem'},
        {label: '检验项子类', prop: 'inspectionItemSubclass'},
        {label: '样品分类', prop: 'sampleType'},
        {label: '样品', prop: 'sample'},
        {label: '型号', prop: 'model'},
        {label: '线芯', prop: 'cableTag'},
        {label: '试验室', prop: 'sonLaboratory'},
        {label: '要求值', prop: 'ask'},
        {label: '要求描述', prop: 'tell'},
      ],
      pageDelete: {
        total:0,
        size:10,
        current:1
      },
      deleteDialogVisible:false,
      upLoad: false,
@@ -935,16 +924,46 @@
    },
    // æ•°æ®æŸ¥çœ‹
    handleDataLook(row) {
      this.componentDataDataLook.entity.id = row.id
      this.dataDialogVisible = true;
      this.getDataTableList(row)
    },
    // æŸ¥è¯¢æ•°æ®æŸ¥çœ‹åˆ—表数据
    getDataTableList (row) {
      this.tableDataLookTableLoading = true
      selectSampleAndProductByOrderId({id: row.id}).then(res => {
        this.tableDataLookTableLoading = false
        if (res.code === 200) {
          this.tableDataLook = res.data.records
          this.tableDataLookPage.total = res.data.total
        }
      }).catch(err => {
        this.tableDataLookTableLoading = false
      })
    },
    tableDataLookPagination (page) {
      this.tableDataLookPage.size = page.limit
      this.getDataTableList()
    },
    // é™„件查看
    handleFileLook (row) {
      this.componentData0.entity.insOrderId = row.id;
      this.filesDialogVisible = true
      this.$nextTick(() => {
        this.$refs.fileList.selectList()
      this.getFileList(row)
    },
    getFileList(row) {
      this.tableLoadingFile = true
      getFileList({insOrderId: row.id}).then(res => {
        this.tableLoadingFile = false
        if (res.code === 200) {
          this.tableDataFile = res.data.records
          this.pageFile.total = res.data.total
        }
      }).catch(err => {
        this.tableLoadingFile = false
      })
    },
    paginationFile (page) {
      this.pageFile.size = page.limit
      this.getFileList()
    },
    // é™„件下载
    handleDown(row){
@@ -993,14 +1012,26 @@
        this.quashDialogVisible = true;
        this.insOrderRow=row
      }else{
        // this.componentDataDelete.entity.orderId = row.id
        this.orderId = row.id
        this.revocationInsProductIds = ''
        this.componentDataDelete.showSelect= true
        this.componentDataDelete.select= true
        this.deleteTilte = '撤销'
        this.deleteDialogVisible = true;
        this.deleteDialogVisible = true
        this.getDeleteList()
      }
    },
    getDeleteList () {
      this.tableLoadingDelete = true
      selectNoProducts({orderId: this.orderId, revocationInsProductIds: this.revocationInsProductIds}).then(res => {
        this.tableLoadingDelete = false
        this.componentDataDelete = res.data.records
        this.pageDelete.total = res.data.total
      }).catch(err => {
        this.tableLoadingDelete = false
      })
    },
    paginationDelete (page) {
      this.pageDelete.size = page.limit
      this.getDeleteList()
    },
    selectDelete(arr){
      this.deleteList = arr;
@@ -1033,7 +1064,6 @@
      }
    },
    handlEquashCheck(row){
      // this.componentDataDelete.entity.orderId = row.id
      this.orderId = row.id
      this.revocationInsProductIds = row.revocationInsProductIds
      this.componentDataDelete.showSelect= false
src/views/business/rawMaterialInspection/index.vue
@@ -79,6 +79,7 @@
      <!--待报检、待下单-->
      <div class="table">
        <lims-table :tableData="tableData" :column="column" v-if="tabIndex === 0 || tabIndex === 1"
                    :isSelection="true" :handleSelectionChange="selectMethod"
                    @pagination="pagination" :height="'calc(100vh - 290px)'"
                    :page="page" :tableLoading="tableLoading"></lims-table>
      </div>
@@ -179,7 +180,7 @@
</template>
<script>
import DataLookVisible from "@/components/rawMaterialInspection/dataLookVisible.vue";
import DataLookVisible from "@/views/business/materialOrderComponents/materialOrder/dataLookVisible.vue";
import {
  addIfsInventoryQuantity,
  advancedGodown,
@@ -201,7 +202,41 @@
      tableData: [],
      tableLoading: false,
      column: [
        {label: '检验状态', prop: 'inspectStatus'},
        {
          dataType: 'tag',
          label: '检验状态',
          prop: 'inspectStatus',
          formatData: (params) => {
            if (params == 0) {
              return '检验中'
            } else if (params == 1) {
              return '合格'
            } else if (params == 2) {
              return '不合格'
            } else if (params == 3) {
              return '未下单'
            } else if (params == 4) {
              return '让步放行'
            } else {
              return null
            }
          },
          formatType: (params) => {
            if (params == 0) {
              return 'warning'
            } else if (params == 1) {
              return 'success'
            } else if (params == 2) {
              return 'danger'
            } else if (params == 3) {
              return 'info'
            } else if (params == 4) {
              return ''
            } else {
              return null
            }
          }
        },
        {label: '订单号', prop: 'orderNo'},
        {label: '抵达的采购数量', prop: 'qtyArrived',width: '140px',},
        {label: '批号', prop: 'updateBatchNo'},
@@ -216,14 +251,14 @@
            if (params == 1) {
              return '过期物料'
            } else {
              return ''
              return null
            }
          },
          formatType: (params) => {
            if (params == 1) {
              return 'info'
            } else {
              return ''
              return null
            }
          }
        },
@@ -232,9 +267,7 @@
        {label: '报检时间', prop: 'declareDate'},
        {
          dataType: 'action',
          fixed: 'right',
          label: '操作',
          width: '150px',
          operation: [
            {
              name: '报检',
@@ -278,7 +311,41 @@
      tableLoading1: false,
      column1: [
        {label: '委托编号', prop: 'entrustCode'},
        {label: '检验状态', prop: 'inspectStatus'},
        {
          dataType: 'tag',
          label: '检验状态',
          prop: 'inspectStatus',
          formatData: (params) => {
            if (params == 0) {
              return '检验中'
            } else if (params == 1) {
              return '合格'
            } else if (params == 2) {
              return '不合格'
            } else if (params == 3) {
              return '未下单'
            } else if (params == 4) {
              return '让步放行'
            } else {
              return null
            }
          },
          formatType: (params) => {
            if (params == 0) {
              return 'warning'
            } else if (params == 1) {
              return 'success'
            } else if (params == 2) {
              return 'danger'
            } else if (params == 3) {
              return 'info'
            } else if (params == 4) {
              return ''
            } else {
              return null
            }
          }
        },
        {label: '订单号', prop: 'orderNo'},
        {label: '抵达的采购数量', prop: 'qtyArrived'},
        {label: '下发时间', prop: 'sendTime'},
@@ -299,14 +366,14 @@
            if (params == 1) {
              return '过期物料'
            } else {
              return ''
              return null
            }
          },
          formatType: (params) => {
            if (params == 1) {
              return 'info'
            } else {
              return ''
              return null
            }
          }
        },
@@ -317,7 +384,6 @@
          dataType: 'action',
          fixed: 'right',
          label: '操作',
          width: '140px',
          operation: [
            {
              name: '数据查看',
@@ -552,8 +618,8 @@
    },
    // æ•°æ®æŸ¥çœ‹
    handleDataLook(row) {
      this.dataDialogVisible = true;
      this.dataLookInfo = row
      this.dataDialogVisible = true;
    },
    // ç›´æŽ¥æ”¾è¡Œ
    goPass (row) {
@@ -568,7 +634,7 @@
              type: 'success',
              message: '放行成功!'
            });
            this.refresh()
            this.refreshTable()
          }
        })
      }).catch(() => {
@@ -591,7 +657,7 @@
              type: 'success',
              message: '操作成功!'
            });
            this.refresh()
            this.refreshTable()
          }
        })
      }).catch(() => {
@@ -630,7 +696,7 @@
        if (res.code === 200) {
          this.declareDialogSVisible = false
          this.$message.success('报检成功')
          this.refresh()
          this.refreshTable()
        }
        this.submitDeclareLoading = false
      }).catch(err => {
@@ -653,7 +719,7 @@
              if (res.code === 200) {
                this.declareDialogVisible = false
                this.$message.success('报检成功')
                this.refresh()
                this.refreshTable()
              }
            }).catch(err => {
              console.log(err)
@@ -673,7 +739,7 @@
              if (res.code === 200) {
                this.declareDialogVisible = false
                this.$message.success('报检成功')
                this.refresh()
                this.refreshTable()
              }
            }).catch(err => {
              console.log(err)
@@ -698,11 +764,9 @@
    submitDelete () {
      this.deleteLoading = true
      delIfsInventory({id: this.deleteInfo.id}).then(res => {
        if (res.code === 200) {
          this.deleteVisible = false
          this.$message.success('删除成功')
          this.refresh()
        }
        this.deleteVisible = false
        this.$message.success('删除成功')
        this.refreshTable()
        this.deleteLoading = false
      }).catch(err => {
        console.log(err)
@@ -717,7 +781,7 @@
    openIFS() {
      this.btnLoading = true
      getIfsOrder().then(res => {
        this.refresh()
        this.refreshTable()
        this.btnLoading = false
      }).catch(err => {
        this.btnLoading = false