1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import Api from "~/service/Api"
import Utils from "../utils"
export default {
data() {
return {}
},
mounted() {
//this.restoreDisplay()
},
methods: {
init(params) {
return Api.post(this.declareParams.trnName + "/init", { params })
},
save(params) {
return Api.post(this.declareParams.trnName + "saveData", this.wrapper(params))
},
exeuteCheck(rulePath, params) {
return Api.post(this.declareParams.trnName + "/executeCheck/" + rulePath, this.wrapper(params))
},
executeDefault(rulePath, params) {
return Api.post(this.declareParams.trnName + "/executeDefault/" + rulePath, this.wrapper(params))
},
executeRule(rulePath, params) {
return Api.post(this.declareParams.trnName + "/executeRule/" + rulePath, this.wrapper(params))
},
async checkAll(params) {
const res = await Api.post(this.declareParams.trnName + "/checkAll", this.wrapper(params))
return res
},
pedding(params) {
return Api.post(this.declareParams.trnName + "/pending", this.wrapper(params))
},
async restoreDisplay() {
let inr = this.$route.query.trn
if (!inr)
return
let data = await Api.post("display/" + inr)
Utils.copyValueFromVO(this.model, JSON.parse(data.data))
},
executeNotify(params) {
return Api.post(this.declareParams.trnName + "/executeNotify", this.wrapper(params))
},
}
}