Commit 1355c526 authored by Facius's avatar Facius

备件单操作

parent 6281d5a9
......@@ -72,6 +72,9 @@
'10': '',
'15': '签收',
'20': '',
'-2': '',
'-1': '',
'100': ''
}
},
isHorizontal() {
......@@ -83,6 +86,9 @@
'10': '',
'15': 'receiveParts',
'20': '',
'-2': '',
'-1': '',
'100': ''
}
},
buttonOperateType() {
......
......@@ -74,7 +74,10 @@
'1': '取消申请',
'10': '',
'15': '签收',
'20': '',
'20': '',
'-2': '',
'-1': '',
'100': ''
}
},
buttonText() {
......@@ -146,6 +149,9 @@
'10': '',
'15': 'receiveParts',
'20': '',
'-2': '',
'-1': '',
'100': ''
}
},
buttonOperateType() {
......@@ -159,7 +165,8 @@
'15': '20',
'20': '',
'-2': '',
'-1': ''
'-1': '',
'100': ''
}
},
willStatus() {
......@@ -180,10 +187,9 @@
this.$u.api[this.operateType](this.info.id).then(res => {
var type = 'error'
var message = res.message
if (res.code === 200) {
if (res.data == true) {
this.info.status = this.willStatus
}
if (res.code == 200) {
type = 'success'
this.info.status = this.willStatus
} else {
console.log(res.message)
}
......
......@@ -116,6 +116,7 @@
var type = 'error'
var message = res.message
if (res.code === 200) {
type = 'success'
for (var item of this.partsList) {
if (item.id == partsId) {
item.status = willStatus
......@@ -190,7 +191,8 @@
.content-item {
padding: 10rpx 30rpx 20rpx 30rpx;
height: 100%;
overflow: auto;
.empty-result {
display: flex;
flex-direction: column;
......
......@@ -908,6 +908,7 @@
var type = 'error'
var message = res.message
if (res.code === 200) {
type = 'success'
for (var item of this.partsList) {
if (item.id == partsId) {
item.status = willStatus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment