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

View File

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

View File

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