This commit is contained in:
余同学 2024-08-19 17:17:41 +08:00
parent 637303fc1a
commit 22690317b9
3 changed files with 8 additions and 7 deletions

View File

@ -9,7 +9,7 @@
:modalHandles="modalHandles"
>
<obj-table-plus
v-show="tableData.length > 1"
v-show="modalData.specType == 1"
style="height: calc(100vh - 120px - 240px)"
slot="dialog__after"
ref="oTable"
@ -86,7 +86,7 @@ export default {
},
computed: {
modalCols() {
if (this.tableData.length == 1) {
if (this.modalData.specType == 0) {
return [
{
label: "价格",
@ -154,7 +154,7 @@ export default {
type: "primary",
submit: true,
handle: debounce(() => {
if (this.tableData.length == 1) {
if (this.modalData.specType == 0) {
this.$api.mer_admin
.saveProductBase(this.modalData)
.then((res) => {

View File

@ -91,7 +91,6 @@ export default {
//
tableData: [],
//
//
tableProp: {
height: "auto",
border: true,
@ -399,6 +398,8 @@ export default {
disabled: () => this.tableData.length <= 0,
// submit: true,
handle: () => {
let volume = "" //
let weight = "" //
let salePrice = ""; //
let stockNum = ""; //
let minSalePrice = Math.min.apply(

View File

@ -9,7 +9,7 @@
:modalHandles="modalHandles"
>
<obj-table-plus
v-show="tableData.length > 1"
v-show="modalData.specType == 1"
style="height: calc(100vh - 120px - 240px)"
slot="dialog__after"
ref="oTable"
@ -86,7 +86,7 @@ export default {
},
computed: {
modalCols() {
if (this.tableData.length == 1) {
if (this.modalData.specType == 0) {
return [
{
label: "库存",
@ -154,7 +154,7 @@ export default {
type: "primary",
submit: true,
handle: debounce(() => {
if (this.tableData.length == 1) {
if (this.modalData.specType == 0) {
this.$api.mer_admin
.saveProductBase(this.modalData)
.then((res) => {