|
@@ -48,7 +48,7 @@ export default {
|
|
|
'selection-change': this.selectionChange
|
|
|
},
|
|
|
formData: {
|
|
|
- examineStatus_cp:"",
|
|
|
+ examineStatus_cp: "",
|
|
|
examineStatus: "",
|
|
|
examineRemark: "",
|
|
|
},
|
|
@@ -89,12 +89,12 @@ export default {
|
|
|
}]
|
|
|
}
|
|
|
},
|
|
|
- created(){
|
|
|
- if(this.$route.query.id){
|
|
|
- this.formType = 0
|
|
|
- this.getDetail(this.$route.query.id)
|
|
|
- }
|
|
|
- },
|
|
|
+ created() {
|
|
|
+ if (this.$route.query.id) {
|
|
|
+ this.formType = 0
|
|
|
+ this.getDetail(this.$route.query.id)
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
// 列表请求函数
|
|
|
getList(p, cb) {
|
|
@@ -126,19 +126,19 @@ export default {
|
|
|
selectionChange(data) {
|
|
|
this.recordSelected = data
|
|
|
},
|
|
|
-
|
|
|
- getDetail(id){
|
|
|
- enginMaterialDetail({
|
|
|
- id
|
|
|
- }).then(res => {
|
|
|
- this.openType = 0
|
|
|
- this.formData = res.data
|
|
|
- this.$nextTick(() => {
|
|
|
- this.formBool = true
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
+
|
|
|
+ getDetail(id) {
|
|
|
+ enginMaterialDetail({
|
|
|
+ id
|
|
|
+ }).then(res => {
|
|
|
+ this.openType = 0
|
|
|
+ this.formData = res.data
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.formBool = true
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
operation() {
|
|
|
return this.operationBtn({
|
|
|
detail: {
|
|
@@ -155,7 +155,7 @@ export default {
|
|
|
id: row.orderId
|
|
|
}).then(res => {
|
|
|
this.openType = 1
|
|
|
- this.formData = res.data
|
|
|
+ this.formData = { ...res.data, examineStatus_cp: res.data.examineStatus }
|
|
|
this.$nextTick(() => {
|
|
|
this.formBool = true
|
|
|
})
|