优化sku展示
This commit is contained in:
@@ -69,7 +69,6 @@ export const BillModalMixin = {
|
|||||||
this.accountIdList = []
|
this.accountIdList = []
|
||||||
this.accountMoneyList = []
|
this.accountMoneyList = []
|
||||||
this.manyAccountBtnStatus = false
|
this.manyAccountBtnStatus = false
|
||||||
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
|
|
||||||
},
|
},
|
||||||
copyAddInit(amountNum) {
|
copyAddInit(amountNum) {
|
||||||
getAction('/sequence/buildNumber').then((res) => {
|
getAction('/sequence/buildNumber').then((res) => {
|
||||||
@@ -87,8 +86,16 @@ export const BillModalMixin = {
|
|||||||
getAction(url, params).then(res => {
|
getAction(url, params).then(res => {
|
||||||
if(res && res.code === 200){
|
if(res && res.code === 200){
|
||||||
tab.dataSource = res.data.rows
|
tab.dataSource = res.data.rows
|
||||||
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
|
|
||||||
for(let i=0; i<tab.dataSource.length; i++){
|
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) {
|
if(tab.dataSource[i].sku) {
|
||||||
this.changeFormTypes(this.materialTable.columns, 'sku', 1)
|
this.changeFormTypes(this.materialTable.columns, 'sku', 1)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -147,6 +147,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
//调用完edit()方法之后会自动调用此方法
|
//调用完edit()方法之后会自动调用此方法
|
||||||
editAfter() {
|
editAfter() {
|
||||||
|
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit(this.prefixNo)
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
|
|||||||
@@ -148,6 +148,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
//调用完edit()方法之后会自动调用此方法
|
//调用完edit()方法之后会自动调用此方法
|
||||||
editAfter() {
|
editAfter() {
|
||||||
|
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit(this.prefixNo)
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
|
|||||||
@@ -148,6 +148,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
//调用完edit()方法之后会自动调用此方法
|
//调用完edit()方法之后会自动调用此方法
|
||||||
editAfter() {
|
editAfter() {
|
||||||
|
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit(this.prefixNo)
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
|
|||||||
@@ -155,6 +155,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
//调用完edit()方法之后会自动调用此方法
|
//调用完edit()方法之后会自动调用此方法
|
||||||
editAfter() {
|
editAfter() {
|
||||||
|
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit(this.prefixNo)
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
|
|||||||
@@ -155,6 +155,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
//调用完edit()方法之后会自动调用此方法
|
//调用完edit()方法之后会自动调用此方法
|
||||||
editAfter() {
|
editAfter() {
|
||||||
|
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit(this.prefixNo)
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
|
|||||||
@@ -230,6 +230,7 @@
|
|||||||
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
|
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
|
||||||
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
|
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
|
||||||
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 0)
|
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 0)
|
||||||
|
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit(this.prefixNo)
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
|
|||||||
@@ -233,6 +233,7 @@
|
|||||||
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
|
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
|
||||||
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
|
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
|
||||||
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 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, 'preNumber', 0)
|
||||||
this.changeFormTypes(this.materialTable.columns, 'finishNumber', 0)
|
this.changeFormTypes(this.materialTable.columns, 'finishNumber', 0)
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
|
|||||||
@@ -155,6 +155,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
//调用完edit()方法之后会自动调用此方法
|
//调用完edit()方法之后会自动调用此方法
|
||||||
editAfter() {
|
editAfter() {
|
||||||
|
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit(this.prefixNo)
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
|
|||||||
@@ -198,6 +198,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
//调用完edit()方法之后会自动调用此方法
|
//调用完edit()方法之后会自动调用此方法
|
||||||
editAfter() {
|
editAfter() {
|
||||||
|
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit(this.prefixNo)
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
|
|||||||
@@ -201,6 +201,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
//调用完edit()方法之后会自动调用此方法
|
//调用完edit()方法之后会自动调用此方法
|
||||||
editAfter() {
|
editAfter() {
|
||||||
|
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit(this.prefixNo)
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
|
|||||||
@@ -235,6 +235,7 @@
|
|||||||
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
|
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
|
||||||
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
|
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
|
||||||
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 0)
|
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 0)
|
||||||
|
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit(this.prefixNo)
|
this.addInit(this.prefixNo)
|
||||||
this.personList.value = ''
|
this.personList.value = ''
|
||||||
|
|||||||
@@ -158,6 +158,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
//调用完edit()方法之后会自动调用此方法
|
//调用完edit()方法之后会自动调用此方法
|
||||||
editAfter() {
|
editAfter() {
|
||||||
|
this.changeFormTypes(this.materialTable.columns, 'sku', 0)
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit(this.prefixNo)
|
this.addInit(this.prefixNo)
|
||||||
this.personList.value = ''
|
this.personList.value = ''
|
||||||
|
|||||||
@@ -237,6 +237,7 @@
|
|||||||
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
|
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
|
||||||
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
|
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
|
||||||
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 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, 'preNumber', 0)
|
||||||
this.changeFormTypes(this.materialTable.columns, 'finishNumber', 0)
|
this.changeFormTypes(this.materialTable.columns, 'finishNumber', 0)
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
|
|||||||
Reference in New Issue
Block a user