gaoluyang
2025-02-19 30c8d72f0d75126a729e89aaeb1e194f63a75c9f
原材料报检联调
已修改3个文件
已删除1个文件
275 ■■■■■ 文件已修改
src/components/Table/lims-table.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/rawMaterialInspection/dataLookVisible.vue 162 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/materialOrder/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/rawMaterialInspection/index.vue 108 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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="
@@ -371,7 +371,6 @@
  methods: {
    getWidth(row) {
      let count = 0;
      console.log("row---", row);
      row.forEach((a) => {
        count += a.name.length;
      });
src/components/rawMaterialInspection/dataLookVisible.vue
ÎļþÒÑɾ³ý
src/views/business/materialOrder/index.vue
@@ -1036,8 +1036,8 @@
    },
    // æ•°æ®æŸ¥çœ‹
    handleDataLook(row) {
      this.dataDialogVisible = true;
      this.dataLookInfo = row
      this.dataDialogVisible = true;
    },
    // å…³é—­æ•°æ®æŸ¥çœ‹å¼¹æ¡†
    closeDataLook () {
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