|
@@ -121,7 +121,7 @@ export default {
|
|
},
|
|
},
|
|
edit: {
|
|
edit: {
|
|
conditions: ({ row, index, column }) => {
|
|
conditions: ({ row, index, column }) => {
|
|
- return this?.greemall_user?.type == 0 && ~['SAVE', 'SUBMIT'].indexOf(row.state)
|
|
|
|
|
|
+ return this?.greemall_user?.type == 0 && ~['SAVE', 'SUBMIT'].indexOf(row.status)
|
|
},
|
|
},
|
|
click: ({ row, index, column }) => {
|
|
click: ({ row, index, column }) => {
|
|
this.fromPm = {
|
|
this.fromPm = {
|
|
@@ -134,7 +134,7 @@ export default {
|
|
del: {
|
|
del: {
|
|
prompt: '确定删除吗?',
|
|
prompt: '确定删除吗?',
|
|
conditions: ({ row, index, column }) => {
|
|
conditions: ({ row, index, column }) => {
|
|
- return this?.greemall_user?.type == 0 && ~['SAVE', 'CANCEL'].indexOf(row.state)
|
|
|
|
|
|
+ return this?.greemall_user?.type == 0 && ~['SAVE', 'CANCEL'].indexOf(row.status)
|
|
},
|
|
},
|
|
click: ({ row, index, column }) => {
|
|
click: ({ row, index, column }) => {
|
|
partsPartssalesorderDeleteById({ id: row.id })
|
|
partsPartssalesorderDeleteById({ id: row.id })
|
|
@@ -152,33 +152,33 @@ export default {
|
|
},
|
|
},
|
|
examine: {
|
|
examine: {
|
|
name: ({ row, index, column }) => {
|
|
name: ({ row, index, column }) => {
|
|
- return row.state == 'SUBMIT'
|
|
|
|
|
|
+ return row.status == 'SUBMIT'
|
|
? '支付'
|
|
? '支付'
|
|
- : row.state == 'EXCEPTION'
|
|
|
|
|
|
+ : row.status == 'EXCEPTION'
|
|
? '编辑'
|
|
? '编辑'
|
|
- : row.state == 'PAYED' && ~[0].indexOf(row.deliveryConfirmFlag)
|
|
|
|
|
|
+ : row.status == 'PAYED' && ~[0].indexOf(row.deliveryConfirmFlag)
|
|
? '提货'
|
|
? '提货'
|
|
: ''
|
|
: ''
|
|
},
|
|
},
|
|
conditions: ({ row, index, column }) => {
|
|
conditions: ({ row, index, column }) => {
|
|
return (
|
|
return (
|
|
this?.greemall_user?.type == 0 &&
|
|
this?.greemall_user?.type == 0 &&
|
|
- (row.state == 'SUBMIT' ||
|
|
|
|
- row.state == 'EXCEPTION' ||
|
|
|
|
- (row.state == 'PAYED' && ~[0].indexOf(row.deliveryConfirmFlag)))
|
|
|
|
|
|
+ (row.status == 'SUBMIT' ||
|
|
|
|
+ row.status == 'EXCEPTION' ||
|
|
|
|
+ (row.status == 'PAYED' && ~[0].indexOf(row.deliveryConfirmFlag)))
|
|
)
|
|
)
|
|
},
|
|
},
|
|
click: ({ row, index, column }) => {
|
|
click: ({ row, index, column }) => {
|
|
- if (row.state == 'SUBMIT') {
|
|
|
|
|
|
+ if (row.status == 'SUBMIT') {
|
|
this.rowData = row
|
|
this.rowData = row
|
|
this.visible = true
|
|
this.visible = true
|
|
- } else if (row.state == 'EXCEPTION') {
|
|
|
|
|
|
+ } else if (row.status == 'EXCEPTION') {
|
|
this.fromPm = {
|
|
this.fromPm = {
|
|
type: 3,
|
|
type: 3,
|
|
item: { ...row }
|
|
item: { ...row }
|
|
}
|
|
}
|
|
this.showFromBool = true
|
|
this.showFromBool = true
|
|
- } else if (row.state == 'PAYED' && ~[0].indexOf(row.deliveryConfirmFlag)) {
|
|
|
|
|
|
+ } else if (row.status == 'PAYED' && ~[0].indexOf(row.deliveryConfirmFlag)) {
|
|
this.fromPm = {
|
|
this.fromPm = {
|
|
type: 3,
|
|
type: 3,
|
|
item: { ...row }
|
|
item: { ...row }
|