haoxuan
2024-04-17 67517b477cbb05cd9dbe467b16192d95b9e2695f
src/components/makepager/CommonFormTableView.vue
@@ -142,12 +142,12 @@
                </div>
              </el-form-item>
              <el-form-item
                v-else-if="item.inputFloat"
                v-else-if="item.inputFloat||item.inputFloatValue"
                label=" "
                :prop="'tableData.' + scope.$index + '.' + item.prop"
                :rules="[{ required: item.isRequird ? true : false, message: '输入不能为空' }]"
              >
                <span v-if="scope.row.isEdit">{{ scope.row[item.prop] }}</span>
                <span v-if="scope.row.isEdit||(item.inputFloatValue&&!scope.row[item.isInputFloat])">{{ scope.row[item.prop] }}</span>
                <div v-else @click.stop="commoInput">
                  <el-input-number
                    v-model="scope.row[item.prop]"
@@ -194,7 +194,7 @@
                    style="width: 80%"
                    @change="
                      (val) => {
                        selLocationClick(val, item.prop)
                        selLocationClick(val, item.prop,scope.row)
                      }
                    "
                  >
@@ -430,7 +430,7 @@
        <slot name="tableButton" />
      </el-table>
    </el-form>
    <div v-if="!detailEnter && !isinventory && !isReorder" style="margin: 10px">
    <div v-if="!detailEnter && !isinventory && !isReorder&&isOperateAdd" style="margin: 10px">
      <el-button size="small" type="primary" @click="add">新增</el-button>
      <el-button size="small" type="primary" @click="empty">清空</el-button>
    </div>
@@ -507,7 +507,12 @@
    isOperate: {
      type: Boolean,
      default: true
    }
    },
    // 是否有新增和清空操作
    isOperateAdd: {
      type: Boolean,
      default: true
    },
  },
  data() {
    return {