From 8745be5d72c3056cc8ea5f7ea7e5b7631a588b84 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期四, 04 十二月 2025 09:56:19 +0800
Subject: [PATCH] 1
---
项目代码/WMS/WIDESEA_WMSClient/src/components/basic/ViewGrid/methods.jsx | 7 ++++++-
项目代码/WMS/WIDESEA_WMSClient/src/components/basic/VolTable.vue | 37 ++++++++++++++++++-------------------
项目代码/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx | 12 ++++++------
3 files changed, 30 insertions(+), 26 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/components/basic/ViewGrid/methods.jsx" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/components/basic/ViewGrid/methods.jsx"
index 610469d..11e2a9c 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/components/basic/ViewGrid/methods.jsx"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/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()
//璁剧疆杩滅▼鏌ヨ琛ㄥ崟鐨勯粯璁ey/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 &&
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/components/basic/VolTable.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/components/basic/VolTable.vue"
index c2f2c75..fdc00d4 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/components/basic/VolTable.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/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)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx"
index 60bfde7..ba77333 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/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
--
Gitblit v1.9.3