telephone-clients 3.0.102 → 3.0.103-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telephone-clients",
3
- "version": "3.0.102",
3
+ "version": "3.0.103-2",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,177 +1,177 @@
1
- <template>
2
- <div class="auto select-overspread" style="overflow-y: scroll;overflow-x: hidden">
3
- <ul class="nav nav-tabs" style="position: relative">
4
- <p class="bg-info text-center" style="padding: 8px;">{{ title }}</p>
5
- <h3 class="txtline" v-if="model.parent_name">上一级【{{ model.parent_name }}】</h3>
6
- </ul>
7
- <div class="row" style="margin-top:1rem;">
8
- <div class="col-sm-6">
9
- <label class="font_normal_body">名称</label>
10
- <input type="text"
11
- :disabled="look"
12
- v-model="model.name" style="width:60%"
13
- class="input_search full-with" placeholder="名称">
14
- </div>
15
- <div class="col-sm-6">
16
- <label style="width: 80px" class="font_normal_body">类别</label>
17
- <v-select :disabled="look"
18
- v-model="model.type"
19
- placeholder='项目类别'
20
- :value.sync="model.type"
21
- :value-single="true"
22
- :options='types'></v-select>
23
- </div>
24
- </div>
25
- <div class="row" style="margin-top:1rem;" v-if="model.type ==='型号'">
26
- <div class="col-sm-6">
27
- <label class="font_normal_body">单位</label>
28
- <input type="text"
29
- :disabled="look"
30
- v-model="model.unit" style="width:60%"
31
- class="input_search full-with" id="name" placeholder="计量单位">
32
- </div>
33
- <div class="col-sm-6">
34
- <label style="width: 80px" class="font_normal_body">编码</label>
35
- <input type="text"
36
- :disabled="look"
37
- v-model="model.code" style="width:60%"
38
- class="input_search full-with" id="name" placeholder="物料编码">
39
- </div>
40
- <div class="col-sm-6">
41
- <label class="font_normal_body">单价</label>
42
- <input type="text"
43
- :disabled="look"
44
- v-model="model.price" style="width:60%"
45
- class="input_search full-with" id="name" placeholder="物料单价">
46
- </div>
47
- <div class="col-sm-6">
48
- <label style="width: 80px" class="font_normal_body">业务类型</label>
49
- <v-select
50
- v-model="model.material_type"
51
- placeholder='请选择'
52
- :value.sync="model.material_type"
53
- :value-single="true"
54
- :options='materialTypeOptions'></v-select>
55
- </div>
56
- </div>
57
- <!-- 按钮 -->
58
- <div class="row col-sm-12" style="margin-top: 1rem">
59
- <button @click="confirm()" v-show="!look" class="btn button_search col-sm-1 col-sm-offset-5"
60
- style="width: 70px">
61
- <span class="glyphicon glyphicon-floppy-disk"></span>保存
62
- </button>
63
- <button @click='cancel()' class="btn button_clear col-sm-1 col-sm-offset-1" style="width: 70px">
64
- <span class=" glyphicon glyphicon-log-out"></span>返回
65
- </button>
66
- </div>
67
- <div class="row col-sm-12" style="margin-top: 18rem">
68
- </div>
69
- <work-busy :is-busy="isbusy"></work-busy>
70
- </div>
71
- </template>
72
-
73
- <script>
74
-
75
- export default {
76
- title: '功能',
77
- props: ['parent', 'data', 'look', 'title'],
78
- data () {
79
- return {
80
- model: {
81
- menu_id: null,
82
- menu_name: '',
83
- parent_id: '0',
84
- component: null,
85
- create_by: '',
86
- depict: '',
87
- type: '',
88
- material_type: '',
89
- org_id: ''
90
- },
91
- type: '',
92
- isbusy: false,
93
- types: this.$appdata.getParam('材料管理-项目类别') ? this.$appdata.getParam('材料管理-项目类别') : [{
94
- label: '型号',
95
- value: '型号'
96
- }, {label: '燃气具设备', value: '燃气具设备'}, {label: '报建', value: '报建'},
97
- {label: '规格', value: '规格'}, {label: '材料', value: '材料'}, {label: '品名', value: '品名'}],
98
- showFile: 'false',
99
- file: [],
100
- materialTypeOptions: this.$appdata.getParam('材料管理-业务类型')
101
- }
102
- },
103
- watch: {
104
- data: {
105
- handler (n, o) {
106
- // if (!n.menu_id&&n.menu_id !== o.menu_id)
107
- this.initdata()
108
- },
109
- deep: true // 对象内部属性的监听,关键。
110
- }
111
- },
112
- ready () {
113
- this.initdata()
114
- },
115
- methods: {
116
- // 初始化数据
117
- initdata () {
118
- this.model = {
119
- id: null,
120
- name: '',
121
- parent_id: '0',
122
- create_by: '',
123
- type: '',
124
- org_id: ''
125
- }
126
- this.model = Object.assign({}, this.model, this.data)
127
- this.model.org_id = this.$login.f.orgid
128
- // this.type = this.model.type
129
- // if (this.model.id) {
130
- // this.$resetpost('rs/sql/singleTable_OrderBy', {
131
- // data: {
132
- // items: '*',
133
- // table: 't_material_info',
134
- // condition: ` 1 = 1 and id = ${this.model.id}`,
135
- // order: 'id desc'
136
- // }
137
- // }, {rejectMsg: null, resolveMsg: null})
138
- // }
139
- },
140
- // 关闭文件上传对话框
141
- closeFile () {
142
- this.showFile = 'false'
143
- // 将选的文件清空
144
- this.$refs.file.$el.querySelector('input').value = ''
145
- },
146
- cancel () {
147
- this.$dispatch('cancel')
148
- },
149
- async confirm () {
150
- await this.$resetpost('rs/entity/t_material_info', this.model).then(res =>
151
- this.$parent.$refs.funlist.searchData()
152
- )
153
- },
154
- importFile () {
155
- this.showFile = 'true'
156
- },
157
- delFile (row) {
158
- if (!this.look) {
159
- this.$resetdelete(`rs/entity/t_material_info`, {id: row.id}).then(res =>
160
- this.initdata()
161
- )
162
- }
163
- }
164
- },
165
- events: {}
166
- }
167
- </script>
168
-
169
- <style>
170
- .full-with {
171
- width: 100%;
172
- }
173
-
174
- #ldapDisplayUploadFile {
175
- height: auto !important;
176
- }
177
- </style>
1
+ <template>
2
+ <div class="auto select-overspread" style="overflow-y: scroll;overflow-x: hidden">
3
+ <ul class="nav nav-tabs" style="position: relative">
4
+ <p class="bg-info text-center" style="padding: 8px;">{{ title }}</p>
5
+ <h3 class="txtline" v-if="model.parent_name">上一级【{{ model.parent_name }}】</h3>
6
+ </ul>
7
+ <div class="row" style="margin-top:1rem;">
8
+ <div class="col-sm-6">
9
+ <label class="font_normal_body">名称</label>
10
+ <input type="text"
11
+ :disabled="look"
12
+ v-model="model.name" style="width:60%"
13
+ class="input_search full-with" placeholder="名称">
14
+ </div>
15
+ <div class="col-sm-6">
16
+ <label style="width: 80px" class="font_normal_body">类别</label>
17
+ <v-select :disabled="look"
18
+ v-model="model.type"
19
+ placeholder='项目类别'
20
+ :value.sync="model.type"
21
+ :value-single="true"
22
+ :options='types'></v-select>
23
+ </div>
24
+ </div>
25
+ <div class="row" style="margin-top:1rem;" v-if="model.type ==='型号'">
26
+ <div class="col-sm-6">
27
+ <label class="font_normal_body">单位</label>
28
+ <input type="text"
29
+ :disabled="look"
30
+ v-model="model.unit" style="width:60%"
31
+ class="input_search full-with" id="name" placeholder="计量单位">
32
+ </div>
33
+ <div class="col-sm-6">
34
+ <label style="width: 80px" class="font_normal_body">编码</label>
35
+ <input type="text"
36
+ :disabled="look"
37
+ v-model="model.code" style="width:60%"
38
+ class="input_search full-with" id="name" placeholder="物料编码">
39
+ </div>
40
+ <div class="col-sm-6">
41
+ <label class="font_normal_body">单价</label>
42
+ <input type="text"
43
+ :disabled="look"
44
+ v-model="model.price" style="width:60%"
45
+ class="input_search full-with" id="name" placeholder="物料单价">
46
+ </div>
47
+ <div class="col-sm-6">
48
+ <label style="width: 80px" class="font_normal_body">业务类型</label>
49
+ <v-select
50
+ v-model="model.material_type"
51
+ placeholder='请选择'
52
+ :value.sync="model.material_type"
53
+ :value-single="true"
54
+ :options='materialTypeOptions'></v-select>
55
+ </div>
56
+ </div>
57
+ <!-- 按钮 -->
58
+ <div class="row col-sm-12" style="margin-top: 1rem">
59
+ <button @click="confirm()" v-show="!look" class="btn button_search col-sm-1 col-sm-offset-5"
60
+ style="width: 70px">
61
+ <span class="glyphicon glyphicon-floppy-disk"></span>保存
62
+ </button>
63
+ <button @click='cancel()' class="btn button_clear col-sm-1 col-sm-offset-1" style="width: 70px">
64
+ <span class=" glyphicon glyphicon-log-out"></span>返回
65
+ </button>
66
+ </div>
67
+ <div class="row col-sm-12" style="margin-top: 18rem">
68
+ </div>
69
+ <work-busy :is-busy="isbusy"></work-busy>
70
+ </div>
71
+ </template>
72
+
73
+ <script>
74
+
75
+ export default {
76
+ title: '功能',
77
+ props: ['parent', 'data', 'look', 'title'],
78
+ data () {
79
+ return {
80
+ model: {
81
+ menu_id: null,
82
+ menu_name: '',
83
+ parent_id: '0',
84
+ component: null,
85
+ create_by: '',
86
+ depict: '',
87
+ type: '',
88
+ material_type: '',
89
+ org_id: ''
90
+ },
91
+ type: '',
92
+ isbusy: false,
93
+ types: this.$appdata.getParam('材料管理-项目类别') ? this.$appdata.getParam('材料管理-项目类别') : [{
94
+ label: '型号',
95
+ value: '型号'
96
+ }, {label: '燃气具设备', value: '燃气具设备'}, {label: '报建', value: '报建'},
97
+ {label: '规格', value: '规格'}, {label: '材料', value: '材料'}, {label: '品名', value: '品名'}],
98
+ showFile: 'false',
99
+ file: [],
100
+ materialTypeOptions: this.$appdata.getParam('材料管理-业务类型')
101
+ }
102
+ },
103
+ watch: {
104
+ data: {
105
+ handler (n, o) {
106
+ // if (!n.menu_id&&n.menu_id !== o.menu_id)
107
+ this.initdata()
108
+ },
109
+ deep: true // 对象内部属性的监听,关键。
110
+ }
111
+ },
112
+ ready () {
113
+ this.initdata()
114
+ },
115
+ methods: {
116
+ // 初始化数据
117
+ initdata () {
118
+ this.model = {
119
+ id: null,
120
+ name: '',
121
+ parent_id: '0',
122
+ create_by: '',
123
+ type: '',
124
+ org_id: ''
125
+ }
126
+ this.model = Object.assign({}, this.model, this.data)
127
+ this.model.org_id = this.$login.f.orgid
128
+ // this.type = this.model.type
129
+ // if (this.model.id) {
130
+ // this.$resetpost('rs/sql/singleTable_OrderBy', {
131
+ // data: {
132
+ // items: '*',
133
+ // table: 't_material_info',
134
+ // condition: ` 1 = 1 and id = ${this.model.id}`,
135
+ // order: 'id desc'
136
+ // }
137
+ // }, {rejectMsg: null, resolveMsg: null})
138
+ // }
139
+ },
140
+ // 关闭文件上传对话框
141
+ closeFile () {
142
+ this.showFile = 'false'
143
+ // 将选的文件清空
144
+ this.$refs.file.$el.querySelector('input').value = ''
145
+ },
146
+ cancel () {
147
+ this.$dispatch('cancel')
148
+ },
149
+ async confirm () {
150
+ await this.$resetpost('rs/entity/t_material_info', this.model).then(res =>
151
+ this.$parent.$refs.funlist.searchData()
152
+ )
153
+ },
154
+ importFile () {
155
+ this.showFile = 'true'
156
+ },
157
+ delFile (row) {
158
+ if (!this.look) {
159
+ this.$resetdelete(`rs/entity/t_material_info`, {id: row.id}).then(res =>
160
+ this.initdata()
161
+ )
162
+ }
163
+ }
164
+ },
165
+ events: {}
166
+ }
167
+ </script>
168
+
169
+ <style>
170
+ .full-with {
171
+ width: 100%;
172
+ }
173
+
174
+ #ldapDisplayUploadFile {
175
+ height: auto !important;
176
+ }
177
+ </style>