manage-client-xy 3.2.1 → 3.2.3

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/.cursorrules ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "rules": {
3
+ "javascript": {
4
+ "formatter": "prettier",
5
+ "formatOnSave": true,
6
+ "defaultFormatter": "prettier",
7
+ "validate": true,
8
+ "lintOnSave": true,
9
+ "lintCommand": "eslint --fix"
10
+ },
11
+ "vue": {
12
+ "formatter": "prettier",
13
+ "formatOnSave": true,
14
+ "defaultFormatter": "prettier",
15
+ "validate": true
16
+ },
17
+ "less": {
18
+ "formatter": "prettier",
19
+ "formatOnSave": true
20
+ },
21
+ "html": {
22
+ "formatter": "prettier",
23
+ "formatOnSave": true
24
+ },
25
+ "files": {
26
+ "exclude": {
27
+ "**/node_modules": true,
28
+ "**/dist": true,
29
+ "**/build": true,
30
+ "**/.git": true,
31
+ "**/coverage": true,
32
+ "**/lib": true,
33
+ "**/*.min.js": true,
34
+ "**/*.map": true,
35
+ "**/yarn-error.log": true,
36
+ "**/hs_err_pid*.log": true
37
+ }
38
+ },
39
+ "search": {
40
+ "exclude": {
41
+ "**/node_modules": true,
42
+ "**/dist": true,
43
+ "**/build": true,
44
+ "**/.git": true,
45
+ "**/coverage": true,
46
+ "**/lib": true,
47
+ "**/*.min.js": true,
48
+ "**/*.map": true
49
+ }
50
+ },
51
+ "editor": {
52
+ "tabSize": 2,
53
+ "insertSpaces": true,
54
+ "trimTrailingWhitespace": true,
55
+ "insertFinalNewline": true,
56
+ "rulers": [100],
57
+ "wordWrap": "off"
58
+ },
59
+ "terminal": {
60
+ "defaultProfile": "PowerShell",
61
+ "integrated": {
62
+ "shell": {
63
+ "windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
64
+ }
65
+ }
66
+ },
67
+ "git": {
68
+ "enabled": true,
69
+ "autofetch": true
70
+ },
71
+ "path-intellisense": {
72
+ "autoTriggerNextSuggestion": true,
73
+ "exclude": {
74
+ "**/node_modules": true,
75
+ "**/dist": true,
76
+ "**/build": true
77
+ }
78
+ }
79
+ }
80
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client-xy",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,187 +1,187 @@
1
- <template>
2
- <div class="auto select-overspread">
3
- <div class="panel panel-info">
4
- <div class="panel-heading">
5
- <h3 class="panel-title">修改用户信息</h3>
6
- </div>
7
- </div>
8
- <validator name="v">
9
- <form class="form-horizontal">
10
- <div class="col-sm-12 form-group" style="margin-top: 100px;">
11
- <div class="col-sm-4" :class="[$v.f_gasmun.required ? 'has-error': '']">
12
- <label class="col-sm-6 control-label">供气量:</label>
13
- <div class="col-sm-4">
14
- <input type="text" onkeyup="value=value.replace(/[^\.\d]/g,'')" onblur="value=value.replace(/[^\.\d]/g,'')" onblur="this.v();" class="form-control" v-model="model.f_gasmun" v-validate:f_gasmun='{required: true }'/>
15
- </div>
16
- </div>
17
- <div class="col-sm-4" :class="[$v.f_gasunits.required ? 'has-error': '']">
18
- <label class="col-sm-6 control-label">供气单位:</label>
19
- <div class="col-sm-4">
20
- <input type="text" class="form-control" v-model="model.f_gasunits" v-validate:f_gasunits='{required: true }'/>
21
- </div>
22
- </div>
23
- <!--<div class="col-sm-4" :class="[$v.fcredentials.required ? 'has-error select-error': '']">-->
24
- <!--<label class="col-sm-6 control-label">证件类型:</label>-->
25
- <!--<div class="col-sm-4">-->
26
- <!--<input type="text" v-show="false" v-model="$refs.fcredentials.value[0]" v-validate:fcredentials='{required: true }'>-->
27
- <!--<v-select :value.sync="model.f_credentials" v-model="model.f_credentials" v-ref:fcredentials :options='credentials'-->
28
- <!--placeholder='请选择' close-on-select></v-select>-->
29
- <!--</div>-->
30
- <!--</div>-->
31
- <!--//<div class="col-sm-4" :class="[$v.f_gasdate.required ? 'has-error select-error': '']"></div>-->
32
- <div class="col-sm-4">
33
- <label for="startDate" class="col-sm-6 control-label">供气时间:</label>
34
- <div class="col-sm-4" >
35
- <datepicker id="startDate" placeholder="开始日期"
36
- v-model="model.f_gasdate"
37
- :value.sync="model.f_gasdate"
38
- :disabled-days-of-Week="[]"
39
- :format="'yyyy-MM-dd'"
40
- :show-reset-button="reset">
41
- </datepicker>
42
- </div>
43
- </div>
44
-
45
-
46
- </div>
47
- <div class="col-sm-12 form-group">
48
-
49
- <div class="col-sm-4" :class="[$v.f_department.required ? 'has-error': '']">
50
- <label class="col-sm-6 control-label">操作部门:</label>
51
- <div class="col-sm-4">
52
- <input type="text" class="form-control" v-model="model.f_department" v-validate:f_department='{required: true }'/>
53
- </div>
54
- </div>
55
- <!--<div class="col-sm-4" :class="[$v.f_password.required ? 'has-error': '']">-->
56
- <!--<label class="col-sm-6 control-label">密码:</label>-->
57
- <!--<div class="col-sm-4">-->
58
- <!--<input type="text" class="form-control" v-model="model.f_password" v-validate:f_password='{required: true }'/>-->
59
- <!--</div>-->
60
- <!--</div>-->
61
- </div>
62
- <div class="col-sm-12 form-group">
63
-
64
-
65
- </div>
66
- <div class="col-sm-12 form-group">
67
- <div class="col-sm-4">
68
- <label class="col-sm-6 control-label">分公司:</label>
69
- <div class="col-sm-4">
70
- <input type="text" class="form-control" v-model="model.f_filiale" disabled/>
71
- </div>
72
- </div>
73
- <div class="col-sm-4">
74
- <label class="col-sm-6 control-label">操作时间:</label>
75
- <div class="col-sm-4">
76
- <input type="text" class="form-control" v-model="model.f_date" disabled/>
77
- </div>
78
- </div>
79
- <div class="col-sm-4">
80
- <label class="col-sm-6 control-label">操作人:</label>
81
- <div class="col-sm-4">
82
- <input type="text" class="form-control" v-model="model.f_operator" disabled/>
83
- </div>
84
- </div>
85
- </div>
86
- </form>
87
- </validator>
88
- <div class="col-sm-12 form-group" style="margin-top: 40px;">
89
- <center>
90
- <button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:40px;" :disabled='$v.invalid'>
91
- 保存
92
- </button>
93
- <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
94
- 撤销
95
- </button>
96
- </center>
97
- </div>
98
- </div>
99
- </template>
100
- <script>
101
- import * as Util from '../../../stores/Util'
102
- //import AppData from '../../../../stores/AppData'
103
- export default {
104
- title: '添加人员信息',
105
- data () {
106
- return {
107
- model: {
108
- //f_filiale: Util. f.f_fengongsi,
109
- //id: 185,
110
- f_filiale: null,
111
- f_date: Util.toStandardDateString(),
112
- // f_operator: Util.f.name,
113
- f_operator: null,
114
- f_gasdate: Util.toStandardDateString(),
115
- f_gasmun : null,
116
- f_gasunits : null,
117
- f_department : null
118
- }
119
- }
120
- },
121
- props: ['upperson'],
122
- ready () {
123
- this.$nextTick(() => {
124
- this.$dispatch('hiddenpaged')
125
- // this.upperson.f_credentials = this.upperson.f_credentials ? this.upperson.f_credentials : this.model.f_credentials
126
- // this.upperson.f_inputtor_type = this.upperson.f_inputtor_type ? this.upperson.f_inputtor_type : this.model.f_inputtor_type
127
- // this.upperson.f_parentname = this.upperson.f_parentname ? this.upperson.f_parentname : this.model.f_parentname
128
- // this.model = Object.assign({}, this.model, this.upperson)
129
- // this.model.f_credentials = [this.model.f_credentials]
130
- // this.model.f_inputtor_type = [this.model.f_inputtor_type]
131
- // this.model.f_parentname = [this.model.f_parentname]
132
- console.log("组件之间的传值 f_gasmun,f_gasunits,f_department")
133
- this.model = Object.assign({}, this.model, this.upperson) //添加id,识别是否为更新操作
134
- console.log(this.upperson.f_gasmun);
135
- console.log(this.model.f_gasmun);
136
- console.log(this.upperson.f_gasunits);
137
- console.log(this.upperson.f_department)
138
- //thi.model.id = this.upperson.id
139
- this.model.f_gasmun = this.upperson.f_gasmun //? this.upperson.f_gasmun :this.model.f_gasmun;
140
- this.model.f_gasunits = this.upperson.f_gasunits //? this.upperson.f_gasunits :this.model.f_gasunits;
141
- this.model.f_department = this.upperson.f_department //? this.upperson.f_department :this.model.f_department;
142
- })
143
- },
144
- methods: {
145
- confirm() {
146
- console.log(this.model),
147
- this.model.f_gasdate //= this.model.startDate;//供气时间赋值
148
- //姓名相同所以不需要赋值
149
- this.model.f_department=this.model.f_department;//操作部门
150
- this.model.f_filiale //= this.model.f_fengongsi;//分公司赋值
151
- this.model.f_date //= this.model.f_operator_date;//操作日期赋值
152
- this.$resetpost('rs/entity/t_supplygas', this.model).then(() => {
153
- this.reset()
154
- })
155
- },
156
- reset () {
157
- this.$dispatch('close')
158
- }
159
- },
160
- watch: {
161
- 'upperson' () {
162
- this.$nextTick(() => {
163
- this.$dispatch('hiddenpaged')
164
- // this.upperson.f_credentials = this.upperson.f_credentials ? this.upperson.f_credentials : this.model.f_credentials
165
- // this.upperson.f_inputtor_type = this.upperson.f_inputtor_type ? this.upperson.f_inputtor_type : this.model.f_inputtor_type
166
- // this.upperson.f_parentname = this.upperson.f_parentname ? this.upperson.f_parentname : this.model.f_parentname
167
- // this.model = Object.assign({}, this.model, this.upperson)
168
- this.model.f_gasmun = [this.model.f_gasmun]
169
- this.model.f_gasunits = [this.model.f_gasunits]
170
- this.model.f_date = [this.model.f_date]
171
- })
172
- }
173
- },
174
- computed: {
175
- // credentials (){
176
- // return AppData.getParam("证件类型")
177
- // },
178
- // inputtortype () {
179
- // return AppData.getParam("角色类型")
180
- // },
181
- // parentname () {
182
- // return AppData.getParam("营业网点")
183
- // }
184
- }
185
- }
186
- </script>
187
-
1
+ <template>
2
+ <div class="auto select-overspread">
3
+ <div class="panel panel-info">
4
+ <div class="panel-heading">
5
+ <h3 class="panel-title">修改用户信息</h3>
6
+ </div>
7
+ </div>
8
+ <validator name="v">
9
+ <form class="form-horizontal">
10
+ <div class="col-sm-12 form-group" style="margin-top: 100px;">
11
+ <div class="col-sm-4" :class="[$v.f_gasmun.required ? 'has-error': '']">
12
+ <label class="col-sm-6 control-label">供气量:</label>
13
+ <div class="col-sm-4">
14
+ <input type="text" onkeyup="value=value.replace(/[^\.\d]/g,'')" onblur="value=value.replace(/[^\.\d]/g,'')" onblur="this.v();" class="form-control" v-model="model.f_gasmun" v-validate:f_gasmun='{required: true }'/>
15
+ </div>
16
+ </div>
17
+ <div class="col-sm-4" :class="[$v.f_gasunits.required ? 'has-error': '']">
18
+ <label class="col-sm-6 control-label">供气单位:</label>
19
+ <div class="col-sm-4">
20
+ <input type="text" class="form-control" v-model="model.f_gasunits" v-validate:f_gasunits='{required: true }'/>
21
+ </div>
22
+ </div>
23
+ <!--<div class="col-sm-4" :class="[$v.fcredentials.required ? 'has-error select-error': '']">-->
24
+ <!--<label class="col-sm-6 control-label">证件类型:</label>-->
25
+ <!--<div class="col-sm-4">-->
26
+ <!--<input type="text" v-show="false" v-model="$refs.fcredentials.value[0]" v-validate:fcredentials='{required: true }'>-->
27
+ <!--<v-select :value.sync="model.f_credentials" v-model="model.f_credentials" v-ref:fcredentials :options='credentials'-->
28
+ <!--placeholder='请选择' close-on-select></v-select>-->
29
+ <!--</div>-->
30
+ <!--</div>-->
31
+ <!--//<div class="col-sm-4" :class="[$v.f_gasdate.required ? 'has-error select-error': '']"></div>-->
32
+ <div class="col-sm-4">
33
+ <label for="startDate" class="col-sm-6 control-label">供气时间:</label>
34
+ <div class="col-sm-4" >
35
+ <datepicker id="startDate" placeholder="开始日期"
36
+ v-model="model.f_gasdate"
37
+ :value.sync="model.f_gasdate"
38
+ :disabled-days-of-Week="[]"
39
+ :format="'yyyy-MM-dd'"
40
+ :show-reset-button="reset">
41
+ </datepicker>
42
+ </div>
43
+ </div>
44
+
45
+
46
+ </div>
47
+ <div class="col-sm-12 form-group">
48
+
49
+ <div class="col-sm-4" :class="[$v.f_department.required ? 'has-error': '']">
50
+ <label class="col-sm-6 control-label">操作部门:</label>
51
+ <div class="col-sm-4">
52
+ <input type="text" class="form-control" v-model="model.f_department" v-validate:f_department='{required: true }'/>
53
+ </div>
54
+ </div>
55
+ <!--<div class="col-sm-4" :class="[$v.f_password.required ? 'has-error': '']">-->
56
+ <!--<label class="col-sm-6 control-label">密码:</label>-->
57
+ <!--<div class="col-sm-4">-->
58
+ <!--<input type="text" class="form-control" v-model="model.f_password" v-validate:f_password='{required: true }'/>-->
59
+ <!--</div>-->
60
+ <!--</div>-->
61
+ </div>
62
+ <div class="col-sm-12 form-group">
63
+
64
+
65
+ </div>
66
+ <div class="col-sm-12 form-group">
67
+ <div class="col-sm-4">
68
+ <label class="col-sm-6 control-label">分公司:</label>
69
+ <div class="col-sm-4">
70
+ <input type="text" class="form-control" v-model="model.f_filiale" disabled/>
71
+ </div>
72
+ </div>
73
+ <div class="col-sm-4">
74
+ <label class="col-sm-6 control-label">操作时间:</label>
75
+ <div class="col-sm-4">
76
+ <input type="text" class="form-control" v-model="model.f_date" disabled/>
77
+ </div>
78
+ </div>
79
+ <div class="col-sm-4">
80
+ <label class="col-sm-6 control-label">操作人:</label>
81
+ <div class="col-sm-4">
82
+ <input type="text" class="form-control" v-model="model.f_operator" disabled/>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ </form>
87
+ </validator>
88
+ <div class="col-sm-12 form-group" style="margin-top: 40px;">
89
+ <center>
90
+ <button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:40px;" :disabled='$v.invalid'>
91
+ 保存
92
+ </button>
93
+ <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
94
+ 撤销
95
+ </button>
96
+ </center>
97
+ </div>
98
+ </div>
99
+ </template>
100
+ <script>
101
+ import * as Util from '../../../stores/Util'
102
+ //import AppData from '../../../../stores/AppData'
103
+ export default {
104
+ title: '添加人员信息',
105
+ data () {
106
+ return {
107
+ model: {
108
+ //f_filiale: Util. f.f_fengongsi,
109
+ //id: 185,
110
+ f_filiale: null,
111
+ f_date: Util.toStandardDateString(),
112
+ // f_operator: Util.f.name,
113
+ f_operator: null,
114
+ f_gasdate: Util.toStandardDateString(),
115
+ f_gasmun : null,
116
+ f_gasunits : null,
117
+ f_department : null
118
+ }
119
+ }
120
+ },
121
+ props: ['upperson'],
122
+ ready () {
123
+ this.$nextTick(() => {
124
+ this.$dispatch('hiddenpaged')
125
+ // this.upperson.f_credentials = this.upperson.f_credentials ? this.upperson.f_credentials : this.model.f_credentials
126
+ // this.upperson.f_inputtor_type = this.upperson.f_inputtor_type ? this.upperson.f_inputtor_type : this.model.f_inputtor_type
127
+ // this.upperson.f_parentname = this.upperson.f_parentname ? this.upperson.f_parentname : this.model.f_parentname
128
+ // this.model = Object.assign({}, this.model, this.upperson)
129
+ // this.model.f_credentials = [this.model.f_credentials]
130
+ // this.model.f_inputtor_type = [this.model.f_inputtor_type]
131
+ // this.model.f_parentname = [this.model.f_parentname]
132
+ console.log("组件之间的传值 f_gasmun,f_gasunits,f_department")
133
+ this.model = Object.assign({}, this.model, this.upperson) //添加id,识别是否为更新操作
134
+ console.log(this.upperson.f_gasmun);
135
+ console.log(this.model.f_gasmun);
136
+ console.log(this.upperson.f_gasunits);
137
+ console.log(this.upperson.f_department)
138
+ //thi.model.id = this.upperson.id
139
+ this.model.f_gasmun = this.upperson.f_gasmun //? this.upperson.f_gasmun :this.model.f_gasmun;
140
+ this.model.f_gasunits = this.upperson.f_gasunits //? this.upperson.f_gasunits :this.model.f_gasunits;
141
+ this.model.f_department = this.upperson.f_department //? this.upperson.f_department :this.model.f_department;
142
+ })
143
+ },
144
+ methods: {
145
+ confirm() {
146
+ console.log(this.model),
147
+ this.model.f_gasdate //= this.model.startDate;//供气时间赋值
148
+ //姓名相同所以不需要赋值
149
+ this.model.f_department=this.model.f_department;//操作部门
150
+ this.model.f_filiale //= this.model.f_fengongsi;//分公司赋值
151
+ this.model.f_date //= this.model.f_operator_date;//操作日期赋值
152
+ this.$resetpost('rs/entity/t_supplygas', this.model).then(() => {
153
+ this.reset()
154
+ })
155
+ },
156
+ reset () {
157
+ this.$dispatch('close')
158
+ }
159
+ },
160
+ watch: {
161
+ 'upperson' () {
162
+ this.$nextTick(() => {
163
+ this.$dispatch('hiddenpaged')
164
+ // this.upperson.f_credentials = this.upperson.f_credentials ? this.upperson.f_credentials : this.model.f_credentials
165
+ // this.upperson.f_inputtor_type = this.upperson.f_inputtor_type ? this.upperson.f_inputtor_type : this.model.f_inputtor_type
166
+ // this.upperson.f_parentname = this.upperson.f_parentname ? this.upperson.f_parentname : this.model.f_parentname
167
+ // this.model = Object.assign({}, this.model, this.upperson)
168
+ this.model.f_gasmun = [this.model.f_gasmun]
169
+ this.model.f_gasunits = [this.model.f_gasunits]
170
+ this.model.f_date = [this.model.f_date]
171
+ })
172
+ }
173
+ },
174
+ computed: {
175
+ // credentials (){
176
+ // return AppData.getParam("证件类型")
177
+ // },
178
+ // inputtortype () {
179
+ // return AppData.getParam("角色类型")
180
+ // },
181
+ // parentname () {
182
+ // return AppData.getParam("营业网点")
183
+ // }
184
+ }
185
+ }
186
+ </script>
187
+