yangpeixing
2025-12-04 25c71bc8a6015bf4885374e75576f3dc75d1424e
Merge branch 'master' of http://115.159.85.185:8098/r/MingHeZhiNeng/DuiDuoJiLiKu
已修改3个文件
56 ■■■■ 文件已修改
项目代码/WMS/WIDESEA_WMSClient/src/components/basic/ViewGrid/methods.jsx 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/WMS/WIDESEA_WMSClient/src/components/basic/VolTable.vue 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/components/basic/ViewGrid/methods.jsx
@@ -858,7 +858,7 @@
    if (!(await this.initBox())) return
    this.resetDetailTable(row)
    this.setEditForm(row)
    this.setContinueAdd(false)
    this.setContinueAddNew()
    //设置远程查询表单的默认key/value
    this.getRemoteFormDefaultKeyValue()
    //点击编辑按钮弹出框后,可以在此处写逻辑,如,从后台获取数据
@@ -887,6 +887,11 @@
      _button.name = isAdd ? this.continueAddName : '保 å­˜'
    }
  },
  setContinueAddNew() {
    this.boxButtons.forEach((btn) => {
        btn.hidden=true
      })
  },
  resetAdd() {
    if (this.hasDetail) {
      this.$refs.detail &&
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/components/basic/VolTable.vue
@@ -20,7 +20,7 @@
      <el-table-column v-if="ck" type="selection" :fixed="fixed" :selectable="selectable" width="55"></el-table-column>
      <!-- 2020.10.10移除table第一行强制排序 -->
      <el-table-column v-for="(column, cindex) in    filterColumns   " :prop="column.field" :label="column.title"
      <el-table-column v-for="(column, cindex) in filterColumns" :prop="column.field" :label="column.title"
        :min-width="column.width" :formatter="formatter" :fixed="column.fixed" :key="column.field + cindex"
        :align="column.align" :sortable="column.sort ? 'custom' : false" :show-overflow-tooltip="true">
        <template #header>
@@ -87,34 +87,34 @@
                <!-- 2020.07.24增加日期onChange事件 -->
                <el-date-picker clearable size="default" style="width: 100%"
                  v-if="['date', 'datetime'].indexOf(column.edit.type) != -1" v-model="scope.row[column.field]" @change="(val) => {
                    column.onChange && column.onChange(scope.row, column, val)
                  }
                      column.onChange && column.onChange(scope.row, column, val)
                    }
                    " :type="column.edit.type" :placeholder="column.placeholder || column.title"
                  :disabledDate="(val) => getDateOptions(val, column)" :value-format="getDateFormat(column)"
                  :disabled="initColumnDisabled(scope.row, column)">
                </el-date-picker>
                <el-time-picker clearable size="default" style="width: 100%" v-else-if="column.edit.type == 'time'"
                  v-model="scope.row[column.field]" @change="(val) => {
                    column.onChange && column.onChange(scope.row, column, val)
                  }
                      column.onChange && column.onChange(scope.row, column, val)
                    }
                    " :placeholder="column.placeholder || column.title" :value-format="column.format || 'HH:mm:ss'"
                  :disabled="initColumnDisabled(scope.row, column)">
                </el-time-picker>
                <el-switch v-else-if="column.edit.type == 'switch'" v-model="scope.row[column.field]"
                  active-color="#0f84ff" inactive-color="rgb(194 194 194)" active-text="是" inactive-text="否" inline-prompt
                  @change="(val) => {
                    switchChange(val, scope.row, column)
                  }
                      switchChange(val, scope.row, column)
                    }
                    " :active-value="typeof scope.row[column.field] == 'boolean'
    ? true
    : typeof scope.row[column.field] == 'string'
      ? '1'
      : 1
      ? true
      : typeof scope.row[column.field] == 'string'
        ? '1'
        : 1
    " :inactive-value="typeof scope.row[column.field] == 'boolean'
    ? false
    : typeof scope.row[column.field] == 'string'
      ? '0'
      : 0
      ? false
      : typeof scope.row[column.field] == 'string'
        ? '0'
        : 0
    " :disabled="initColumnDisabled(scope.row, column)">
                </el-switch>
                <template v-else-if="['select', 'selectList'].indexOf(column.edit.type) != -1">
@@ -194,8 +194,7 @@
              @click="dowloadFile(file)">{{ file.name }}</a>
            <span v-else-if="column.type == 'date'">{{ formatterDate(scope.row, column) }}</span>
            <div v-else-if="column.type == 'jsx'" @click="formatterClick(scope.row, column, $event)">
              <el-button v-for="item in column.formatter(scope.row, column) " :key="item" :type="item.type">{{
                item.name
              <el-button v-for="item in column.formatter(scope.row, column)" :key="item" :type="item.type">{{ item.name
              }}</el-button>
            </div>
            <div v-else-if="column.formatter" @click="formatterClick(scope.row, column, $event)"
@@ -211,8 +210,8 @@
              {{ scope.row[column.field] }}
            </div>
            <div @click="() => {
              column.click && formatterClick(scope.row, column)
            }
                column.click && formatterClick(scope.row, column)
              }
              " v-else-if="column.bind">
              <el-tag v-if="useTag" class="cell-tag" :class="[isEmptyTag(scope.row, column)]"
                :type="getColor(scope.row, column)" :effect="column.effect">{{ formatter(scope.row, column, true)
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx
@@ -71,7 +71,7 @@
        type: 'danger',
        icon: 'el-icon-check',
        disabled: false,
        plain: true,
        plain: false,
        onClick: function () {
          if (this.editFormFields.remark == '其他出库') {
            this.$confirm('是否其他出库', '警告', {
@@ -201,11 +201,11 @@
      })
      //示例:设置修改新建、编辑弹出框字段标签的长度
      this.boxOptions.labelWidth = 150
      this.buttons.forEach((btn) => {
        if (btn.name == '编辑') {
          btn.hidden = true
        }
      })
      // this.buttons.forEach((btn) => {
      //   if (btn.name == '编辑') {
      //     btn.hidden = true
      //   }
      // })
      this.boxButtons.forEach((btn) => {
        if (btn.name == '保 å­˜') {
          btn.hidden = true