yangfeng
2024-03-13 9b7020d0fe83aa848e92551c5252add6e05c2c5b
状态就绪问题修改
2个文件已修改
24 ■■■■■ 已修改文件
src/api/data.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchaseManage/purchase/index.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/data.js
@@ -2,6 +2,14 @@
const purchaseStatus = [
  { id: 1, name: "待确认" },
  { id: 2, name: "待入库" },
  { id: 3, name: "已入库" },
  { id: 4, name: "已完成" },
  { id: 5, name: "已取消" }
]
// 收货状态
const receiveStatus = [
  { id: 1, name: "待确认" },
  { id: 2, name: "待入库" },
  { id: 3, name: "就绪" },
  { id: 4, name: "已完成" },
  { id: 5, name: "已取消" }
@@ -44,5 +52,7 @@
    return qualityStatus
  } else if (type == "returnedStatus") {
    return returnedStatus
  } else if (type == "receiveStatus") {
    return receiveStatus
  }
}
src/views/purchaseManage/purchase/index.vue
@@ -162,10 +162,11 @@
      { label: "数量", prop: "amount" },
      { label: "入库时间", prop: "overTime" },
      { label: "收货人", prop: "principal" },
      { label: "状态", prop: "status", isCallMethod: true, getCallMethod: this.getpurchaseStatus }
      { label: "状态", prop: "status", isCallMethod: true, getCallMethod: this.getreceiveStatusStatus }
    ]
    return {
      purchaseStatusList: getDataByType("purchaseStatus"),
      receiveStatusList: getDataByType("receiveStatus"),
      tableLoading: false,
      tableList: {}, // 列表
      selValueList: [],
@@ -259,6 +260,17 @@
        return "--"
      }
    },
    getreceiveStatusStatus(val) {
      if (val) {
        for (let i in this.receiveStatusList) {
          if (this.receiveStatusList[i].id == val) {
            return this.receiveStatusList[i].name
          }
        }
      } else {
        return "--"
      }
    },
    setColumnVisible(showCol, tableColumn) {
      return tableColumn.map((ele) => {
        return {