拒绝.php
2.35 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php $this->load->view('common/header'); ?>
<body>
<div class="panel panel-default mb-20" id="refuse">
<div class="panel-body cl">
<div class="row cl">
<div class="form-group col-sm-6 col-md-3">
<label>拒绝原因</label>
<span class="form-control select-box">
<select class="select" size="1" v-model="refuse.rejectionReason">
<option v-for="(v, index, key) in rejectionReason" :value="key">{{v}}</option>
</select>
</span>
</div>
</div>
<div class="row cl">
<div class="form-group col-sm-12 col-md-12">
<label>审批意见</label>
<textarea class="textarea" v-model="refuse.opinion"></textarea>
</div>
</div>
</div>
<div class="row cl col-sm-12 pt-20">
<div class="col-sm-2">
<button class="btn btn-danger btn-block" onclick="layer_close();">取消</button>
</div>
<div class="col-sm-2">
<button class="btn btn-primary btn-block" @click="submit">提交</button>
</div>
</div>
</div>
<?php $this->load->view('common/footer'); ?>
<script>
var vm = new Vue({
el: '#refuse',
data: {
refuse: {
opinion: '',
orderId: <?=$orderId?>,
rejectionReason: 0,
},
rejectionReason: {},
},
mounted () {
var _this = this;
instance.get('flow/refuseStatus/enum').then( function (req) {
_this.rejectionReason = req.data.data;
});
},
methods: {
submit: function () {
var _this = this;
layer.confirm('确定要拒绝审核吗?', {
btn: ['确定','取消'] //按钮
}, function(){
ajax('flow/refuseStatus', 'put', _this.refuse, '提交成功', function () {
layer_close();
});
});
}
}
})
</script>
</body>
</html>