haoxuan
2023-10-18 f9dde5f2f75298ff2aa50f2f7ecff3b47ac570e9
src/views/warehouseManage/bussinessType/index.vue
@@ -3,7 +3,7 @@
    <div class="top">
      <SearchCommonView
        :add-title="'新建'"
        :placeholder="'请输入单号'"
        :placeholder="'请输入入库类型'"
        :amount-view="false"
        @addCommonClick="addBtnClick"
        @searchClick="getList"
@@ -58,7 +58,8 @@
    setTable() {
      this.tableList = {
        tableInfomation: [],
        selectBox: true,
        selectBox: false,
        selectIndex: true,
        showcol: this.showcol,
        allcol: [],
        tableColumn: this.setTableColumn(this.showcol)
@@ -77,7 +78,7 @@
      let tableColumn = [
        {
          label: "入库类型",
          prop: "id",
          prop: "name",
          isShowColumn: true,
          default: true
        },
@@ -123,15 +124,25 @@
    // 行点击
    tableRowClick(row) {
      this.editConfig.title = "编辑"
      this.editConfig.infomation = { ...row }
      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 }
      this.editConfig.visible = true
    },
    // 新建
    addBtnClick() {
      this.editConfig.title = "新建"
      this.editConfig.infomation={
         name:'',
         prefix:'',
         // 作业类型
         baseOperationType:null,
        baseOperationType:null,
        // 退货类型
        returnOperationTypeID:null,
        // 创建欠单
@@ -139,7 +150,8 @@
        // 仓库
        warehouseId:null,
        // 显示作业详情
        showOperations:null,
        showOperations:false,
        earlyOperations:null,
        // 保留方式
        reservationMethod:null,
        // 默认原位置