|
@@ -335,6 +335,9 @@ export default {
|
|
|
},
|
|
|
examine: {
|
|
|
btnType: 'text',
|
|
|
+ conditions: ({ row, index, column }) => {
|
|
|
+ return row.status !== 'OK'
|
|
|
+ },
|
|
|
click: ({ row, index, column }) => {
|
|
|
this.openForm('examine', row.id)
|
|
|
}
|
|
@@ -416,19 +419,31 @@ export default {
|
|
|
formConfirm(cancel) {
|
|
|
this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
|
|
|
if (valid) {
|
|
|
- websitGoodsMoveAdd({ ...this.formData }).then(res => {
|
|
|
- websitGoodsMoveSubmit({ id: this.formData.id }).then(res => {
|
|
|
- websitGoodsMoveConfirm({ id: this.formData.id, statusEnum: 'OK' }).then(res => {
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: `审核成功!`
|
|
|
+ if (this.formData.status == 'WAIT') {
|
|
|
+ websitGoodsMoveConfirm({ id: this.formData.id, statusEnum: 'OK' }).then(res => {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: `审核成功!`
|
|
|
+ })
|
|
|
+ cancel('list')
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ // 备注
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ websitGoodsMoveAdd({ ...this.formData }).then(res => {
|
|
|
+ websitGoodsMoveSubmit({ id: this.formData.id }).then(res => {
|
|
|
+ websitGoodsMoveConfirm({ id: this.formData.id, statusEnum: 'OK' }).then(res => {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: `审核成功!`
|
|
|
+ })
|
|
|
+ cancel('list')
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ // 备注
|
|
|
})
|
|
|
- cancel('list')
|
|
|
- this.$refs.pageRef.refreshList()
|
|
|
- // 备注
|
|
|
})
|
|
|
})
|
|
|
- })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
}
|