haoxuan
2024-04-17 1888b426ff2b6a529f5fdef0f0453dadef71824b
src/views/reportForm/inboundOutboundDetail/index.vue
@@ -6,6 +6,7 @@
        :showAdd="false"
        :placeholder="'请根据单号、产品、业务类型进行搜索'"
        :amount-view="false"
        :inputName="params.keyWord"
        @addCommonClick="addBtnClick"
        @searchClick="getList"
      />
@@ -130,11 +131,11 @@
        },
        {
          label: "业务类型",
          prop: "baseOperationType",
          prop: "operationTypeName",
          isShowColumn: true,
          default: true,
          conversion: true,
          getStatus: this.getBaseOperationTypeList
          // conversion: true,
          // getStatus: this.getBaseOperationTypeList
        },
        {
          label: "从",
@@ -211,15 +212,17 @@
          page: this.pagerOptions.currPage,
          pageSize: this.pagerOptions.pageSize
        }).then((res) => {
          if (res.code === 200) {
          if (res.code === 200&&res.data) {
            res.data.map((item)=>{
                let dateObject = new Date(item.date);  
                let formattedDateString = dateObject.toISOString().split('T')[0];  
                item.date=formattedDateString
            })
            this.tableList.tableInfomation = res.data
            this.pagerOptions.totalCount = res.total
            this.tableList.tableInfomation = res.data||[]
          }else{
            this.tableList.tableInfomation = res.data||[]
          }
          this.pagerOptions.totalCount = res.total
        })
      } else {
        await getHistory({
@@ -228,7 +231,7 @@
          page: this.pagerOptions.currPage,
          pageSize: this.pagerOptions.pageSize
        }).then((res) => {
          if (res.code === 200) {
          if (res.code === 200&&res.data) {
            res.data.map((item)=>{
                if(item.status===""){
                  item.status=4
@@ -237,9 +240,11 @@
                let formattedDateString = dateObject.toISOString().split('T')[0];  
                item.date=formattedDateString
            })
            this.tableList.tableInfomation = res.data?res.data:[]
            this.pagerOptions.totalCount = res.total
            this.tableList.tableInfomation = res.data||[]
          }else{
            this.tableList.tableInfomation = res.data||[]
          }
          this.pagerOptions.totalCount = res.total
        })
      }
    },
@@ -250,8 +255,16 @@
    },
    // 行点击
    async tableRowClick(row) {
      console.log(row,"看看row")
      // window.sessionStorage.sessionStorage.setItem('paramsData', {
      //   // name: "拼夕夕仓库-出库",
      //   workType: row.baseOperationType,
      //   id: row.operationId,
      //   // code: "PX"
      // });
      await getOperationInfo(row.operationId).then((res)=>{
        this.editConfig.infomation = { ...res.data }
        this.editConfig.infomation = { ...res.data,workType:res.baseOperationType }
      })
      this.editConfig.visible = true
      this.editConfig.title = "查看"