优化sku展示

This commit is contained in:
季圣华
2021-10-02 21:37:24 +08:00
parent 8090b4bc79
commit 319d10dc2e
14 changed files with 22 additions and 2 deletions

View File

@@ -69,7 +69,6 @@ export const BillModalMixin = {
this.accountIdList = []
this.accountMoneyList = []
this.manyAccountBtnStatus = false
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
},
copyAddInit(amountNum) {
getAction('/sequence/buildNumber').then((res) => {
@@ -87,8 +86,16 @@ export const BillModalMixin = {
getAction(url, params).then(res => {
if(res && res.code === 200){
tab.dataSource = res.data.rows
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
for(let i=0; i<tab.dataSource.length; i++){
if(tab.dataSource[i].snList) {
this.changeFormTypes(this.materialTable.columns, 'snList', 1)
}
if(tab.dataSource[i].batchNumber) {
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 1)
}
if(tab.dataSource[i].expirationDate) {
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 1)
}
if(tab.dataSource[i].sku) {
this.changeFormTypes(this.materialTable.columns, 'sku', 1)
}

View File

@@ -147,6 +147,7 @@
methods: {
//调用完edit()方法之后会自动调用此方法
editAfter() {
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
if (this.action === 'add') {
this.addInit(this.prefixNo)
this.fileList = []

View File

@@ -148,6 +148,7 @@
methods: {
//调用完edit()方法之后会自动调用此方法
editAfter() {
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
if (this.action === 'add') {
this.addInit(this.prefixNo)
this.fileList = []

View File

@@ -148,6 +148,7 @@
methods: {
//调用完edit()方法之后会自动调用此方法
editAfter() {
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
if (this.action === 'add') {
this.addInit(this.prefixNo)
this.fileList = []

View File

@@ -155,6 +155,7 @@
methods: {
//调用完edit()方法之后会自动调用此方法
editAfter() {
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
if (this.action === 'add') {
this.addInit(this.prefixNo)
this.fileList = []

View File

@@ -155,6 +155,7 @@
methods: {
//调用完edit()方法之后会自动调用此方法
editAfter() {
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
if (this.action === 'add') {
this.addInit(this.prefixNo)
this.fileList = []

View File

@@ -230,6 +230,7 @@
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 0)
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
if (this.action === 'add') {
this.addInit(this.prefixNo)
this.fileList = []

View File

@@ -233,6 +233,7 @@
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 0)
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
this.changeFormTypes(this.materialTable.columns, 'preNumber', 0)
this.changeFormTypes(this.materialTable.columns, 'finishNumber', 0)
if (this.action === 'add') {

View File

@@ -155,6 +155,7 @@
methods: {
//调用完edit()方法之后会自动调用此方法
editAfter() {
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
if (this.action === 'add') {
this.addInit(this.prefixNo)
this.fileList = []

View File

@@ -198,6 +198,7 @@
methods: {
//调用完edit()方法之后会自动调用此方法
editAfter() {
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
if (this.action === 'add') {
this.addInit(this.prefixNo)
this.fileList = []

View File

@@ -201,6 +201,7 @@
methods: {
//调用完edit()方法之后会自动调用此方法
editAfter() {
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
if (this.action === 'add') {
this.addInit(this.prefixNo)
this.fileList = []

View File

@@ -235,6 +235,7 @@
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 0)
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
if (this.action === 'add') {
this.addInit(this.prefixNo)
this.personList.value = ''

View File

@@ -158,6 +158,7 @@
methods: {
//调用完edit()方法之后会自动调用此方法
editAfter() {
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
if (this.action === 'add') {
this.addInit(this.prefixNo)
this.personList.value = ''

View File

@@ -237,6 +237,7 @@
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 0)
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
this.changeFormTypes(this.materialTable.columns, 'preNumber', 0)
this.changeFormTypes(this.materialTable.columns, 'finishNumber', 0)
if (this.action === 'add') {