yangfeng
2023-10-18 0705d08f6ae7e554cb2a17103f6f93cbd93720cf
src/views/warehouseManage/bussinessType/index.vue
@@ -42,7 +42,7 @@
  data() {
    return {
      tableList: {},
      keyword:'',
      keyword: "",
      editConfig: {
        visible: false,
        title: "新建",
@@ -84,8 +84,8 @@
        },
        {
          label: "仓库",
          propType:'mulitple',
          propTwo:'name',
          propType: "mulitple",
          propTwo: "name",
          prop: "warehouse",
          isShowColumn: true,
          default: true
@@ -111,25 +111,25 @@
        }
      })
    },
    refresh(){
      this.pagerOptions.currPage=1
    refresh() {
      this.pagerOptions.currPage = 1
      this.getData()
    },
    // 搜索
    getList(val) {
      this.keyword=val;
      this.pagerOptions.currPage=1
      this.keyword = val
      this.pagerOptions.currPage = 1
      this.getData()
    },
    // 行点击
    tableRowClick(row) {
      this.editConfig.title = "编辑"
      let obj=JSON.parse(JSON.stringify(row))
      for(let i in obj){
        if(i=='name'||i=='prefix'){
          obj[i]=obj[i]?obj[i]:''
        }else{
          obj[i]=obj[i]?obj[i]:null
      let obj = JSON.parse(JSON.stringify(row))
      for (let i in obj) {
        if (i == "name" || i == "prefix") {
          obj[i] = obj[i] ? obj[i] : ""
        } else {
          obj[i] = obj[i] ? obj[i] : null
        }
      }
      this.editConfig.infomation = { ...obj }
@@ -138,26 +138,26 @@
    // 新建
    addBtnClick() {
      this.editConfig.title = "新建"
      this.editConfig.infomation={
         name:'',
         prefix:'',
         // 作业类型
        baseOperationType:null,
      this.editConfig.infomation = {
        name: "",
        prefix: "",
        // 作业类型
        baseOperationType: null,
        // 退货类型
        returnOperationTypeID:null,
        returnOperationTypeID: null,
        // 创建欠单
        createBackorder:null,
        createBackorder: null,
        // 仓库
        warehouseId:null,
        warehouseId: null,
        // 显示作业详情
        showOperations:false,
        earlyOperations:null,
        showOperations: false,
        earlyOperations: null,
        // 保留方式
        reservationMethod:null,
        reservationMethod: 1,
        // 默认原位置
        defaultLocationSrcId:null,
        defaultLocationSrcId: null,
        // 默认目标位置
        defaultLocationDestId:null,
        defaultLocationDestId: null
      }
      this.editConfig.visible = true
    }