apply-clients 3.5.5-33 → 3.5.5-35

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.
@@ -1,176 +1,176 @@
1
- <template>
2
- <div class="y-form" style="border-bottom: 1px dashed grey;">
3
- <div class="y-form-head">
4
- <span style="text-align: center;font-weight: bolder;">材料{{ index + 1 }}信息</span>
5
- <button
6
- style="float: right"
7
- class="button_delete button_spacing"
8
- @click.prevent="deleteUserFile(index)"
9
- >删除
10
- </button>
11
- </div>
12
- <div class="y-form-item">
13
- <label>材料名称</label>
14
- <v-select
15
- :width="'70%'"
16
- :value.sync="item.f_material_name"
17
- v-model="item.f_material_name"
18
- :options='newmaterialnameandcode'
19
- placeholder='请选择'
20
- close-on-select
21
- :value-single="true"
22
- @change="changeMaterialName"
23
- ></v-select>
24
- </div>
25
- <div class="y-form-item">
26
- <label>型号</label>
27
- <v-select
28
- :width="'70%'"
29
- :value.sync="item.f_typenumber"
30
- v-model="item.f_typenumber"
31
- :options='materialnameandtype'
32
- placeholder='请选择'
33
- close-on-select
34
- @change="changeType"
35
- :value-single="true"
36
- ></v-select>
37
- </div>
38
- <div class="y-form-item">
39
- <label>单价(元/{{ item.unit }})</label>
40
- <input type="number" class="form-control y-form-item-input"
41
- v-model="item.f_material_price"
42
- @change="material_number_chenge"
43
- >
44
- </div>
45
- <div class="y-form-item">
46
- <label>数量</label>
47
- <input type="number" class="form-control y-form-item-input" v-model="item.f_material_number" @change="material_number_chenge"
48
- :readOnly="item.f_process_id && item.f_state != '未收费' ? true : false">
49
- </div>
50
- <div class="y-form-item">
51
- <label>超支单价</label>
52
- <input type="number" class="form-control y-form-item-input" v-model="item.f_overlength_unitprice" @change="material_number_chenge"
53
- :readOnly="item.f_process_id && item.f_state != '未收费' ? true : false">
54
- </div>
55
- <div class="y-form-item">
56
- <label>超支数量</label>
57
- <input type="number" class="form-control y-form-item-input" v-model="item.f_overlength_number" @change="material_number_chenge"
58
- :readOnly="item.f_process_id && item.f_state != '未收费' ? true : false">
59
- </div>
60
- <div class="y-form-item">
61
- <label>优惠金额</label>
62
- <input type="number" class="form-control y-form-item-input" v-model="item.f_discounts_money_detail" @change="material_number_chenge"
63
- :readOnly="item.f_process_id && item.f_state != '未收费' ? true : false">
64
- </div>
65
- <div class="y-form-item">
66
- <label>材料实际耗材</label>
67
- <input type="number" class="form-control y-form-item-input" v-model="item.f_actual_materials_detail"
68
- :readOnly="item.f_process_id && item.f_state != '未收费' ? true : false">
69
- </div>
70
- </div>
71
- </template>
72
- <script>
73
- import {isEmpty} from "../../../components/Util";
74
-
75
- export default {
76
- props:["index",'item','materialnameandcode','typenumbers','newmaterialnameandcode','newmaterialnameandtype'],
77
- data(){
78
- return {
79
- materialtypenumber:[],
80
- materialnameandtype:[],
81
- }
82
- },
83
- methods:{
84
- changeMaterialName(val){
85
- this.materialnameandtype=[]
86
- console.log(val)
87
- if(val){
88
- for (let i = 0; i < this.newmaterialnameandtype.length; i++){
89
-
90
- if(this.newmaterialnameandtype[i].parent_id == val.id){
91
- this.materialnameandtype.push(
92
- {
93
- label:this.newmaterialnameandtype[i].name,
94
- value: this.newmaterialnameandtype[i]
95
- }
96
- )
97
- }
98
- }
99
- }
100
- },
101
- changeType(val){
102
- this.item.unit =val.unit
103
- this.item.f_material_price =val.price
104
- this.item.f_typename =val.name
105
- this.item.material_type = this.item.f_material_name.name+val.name
106
- },
107
- material_number_chenge(){
108
- this.$emit('number_chenge')
109
- },
110
- deleteUserFile(i){
111
- this.$emit('delete_material',i)
112
- }
113
- },
114
- ready () {
115
- if (this.item.f_material_name && this.item.f_material_style) {
116
- let f_material_name = ''
117
- this.newmaterialnameandcode.filter((item) => {
118
- if (item.label == this.item.f_material_name) {
119
- f_material_name = item.value
120
- }
121
- })
122
- this.item.f_material_name = f_material_name
123
- this.changeMaterialName(f_material_name)
124
- let f_typenumber = ''
125
- this.materialnameandtype.filter((item) => {
126
- if (item.label == this.item.f_material_style) {
127
- f_typenumber = item.value
128
- }
129
- })
130
- this.item.f_typenumber = f_typenumber
131
- this.changeType(f_typenumber)
132
- }
133
- console.log(this.item)
134
- }
135
- }
136
- </script>
137
- <style lang="less">
138
- .y-form {
139
- display: flex;
140
- flex-flow: column;
141
- gap: 10px;
142
- padding: 10px 5px;
143
- .y-form-head {
144
- background-color: #e8f4ff;
145
- display: flex;
146
- padding: 10px 20px;
147
- align-items: center;
148
- justify-content: space-between;
149
- }
150
-
151
- .y-form-item {
152
- display: flex;
153
- gap: 10px;
154
- margin-top: 3px;
155
- label {
156
- width: 30%;
157
- margin-bottom: 0;
158
- display: flex;
159
- flex-direction: row-reverse;
160
- align-items: center;
161
- }
162
- .lab_sty{
163
- margin-bottom: 0;
164
- display: flex;
165
- flex-direction: row-reverse;
166
- align-items: center;
167
- }
168
-
169
- .y-form-item-input {
170
- width: 70%;
171
- }
172
- }
173
-
174
- }
175
-
176
- </style>
1
+ <template>
2
+ <div class="y-form" style="border-bottom: 1px dashed grey;">
3
+ <div class="y-form-head">
4
+ <span style="text-align: center;font-weight: bolder;">材料{{ index + 1 }}信息</span>
5
+ <button
6
+ style="float: right"
7
+ class="button_delete button_spacing"
8
+ @click.prevent="deleteUserFile(index)"
9
+ >删除
10
+ </button>
11
+ </div>
12
+ <div class="y-form-item">
13
+ <label>材料名称</label>
14
+ <v-select
15
+ :width="'70%'"
16
+ :value.sync="item.f_material_name"
17
+ v-model="item.f_material_name"
18
+ :options='newmaterialnameandcode'
19
+ placeholder='请选择'
20
+ close-on-select
21
+ :value-single="true"
22
+ @change="changeMaterialName"
23
+ ></v-select>
24
+ </div>
25
+ <div class="y-form-item">
26
+ <label>型号</label>
27
+ <v-select
28
+ :width="'70%'"
29
+ :value.sync="item.f_typenumber"
30
+ v-model="item.f_typenumber"
31
+ :options='materialnameandtype'
32
+ placeholder='请选择'
33
+ close-on-select
34
+ @change="changeType"
35
+ :value-single="true"
36
+ ></v-select>
37
+ </div>
38
+ <div class="y-form-item">
39
+ <label>单价(元/{{ item.unit }})</label>
40
+ <input type="number" class="form-control y-form-item-input"
41
+ v-model="item.f_material_price"
42
+ @change="material_number_chenge"
43
+ >
44
+ </div>
45
+ <div class="y-form-item">
46
+ <label>数量</label>
47
+ <input type="number" class="form-control y-form-item-input" v-model="item.f_material_number" @change="material_number_chenge"
48
+ :readOnly="item.f_process_id && item.f_state != '未收费' ? true : false">
49
+ </div>
50
+ <div class="y-form-item">
51
+ <label>超支单价</label>
52
+ <input type="number" class="form-control y-form-item-input" v-model="item.f_overlength_unitprice" @change="material_number_chenge"
53
+ :readOnly="item.f_process_id && item.f_state != '未收费' ? true : false">
54
+ </div>
55
+ <div class="y-form-item">
56
+ <label>超支数量</label>
57
+ <input type="number" class="form-control y-form-item-input" v-model="item.f_overlength_number" @change="material_number_chenge"
58
+ :readOnly="item.f_process_id && item.f_state != '未收费' ? true : false">
59
+ </div>
60
+ <div class="y-form-item">
61
+ <label>优惠金额</label>
62
+ <input type="number" class="form-control y-form-item-input" v-model="item.f_discounts_money_detail" @change="material_number_chenge"
63
+ :readOnly="item.f_process_id && item.f_state != '未收费' ? true : false">
64
+ </div>
65
+ <div class="y-form-item">
66
+ <label>材料实际耗材</label>
67
+ <input type="number" class="form-control y-form-item-input" v-model="item.f_actual_materials_detail"
68
+ :readOnly="item.f_process_id && item.f_state != '未收费' ? true : false">
69
+ </div>
70
+ </div>
71
+ </template>
72
+ <script>
73
+ import {isEmpty} from "../../../components/Util";
74
+
75
+ export default {
76
+ props:["index",'item','materialnameandcode','typenumbers','newmaterialnameandcode','newmaterialnameandtype'],
77
+ data(){
78
+ return {
79
+ materialtypenumber:[],
80
+ materialnameandtype:[],
81
+ }
82
+ },
83
+ methods:{
84
+ changeMaterialName(val){
85
+ this.materialnameandtype=[]
86
+ console.log(val)
87
+ if(val){
88
+ for (let i = 0; i < this.newmaterialnameandtype.length; i++){
89
+
90
+ if(this.newmaterialnameandtype[i].parent_id == val.id){
91
+ this.materialnameandtype.push(
92
+ {
93
+ label:this.newmaterialnameandtype[i].name,
94
+ value: this.newmaterialnameandtype[i]
95
+ }
96
+ )
97
+ }
98
+ }
99
+ }
100
+ },
101
+ changeType(val){
102
+ this.item.unit =val.unit
103
+ this.item.f_material_price =val.price
104
+ this.item.f_typename =val.name
105
+ this.item.material_type = this.item.f_material_name.name+val.name
106
+ },
107
+ material_number_chenge(){
108
+ this.$emit('number_chenge')
109
+ },
110
+ deleteUserFile(i){
111
+ this.$emit('delete_material',i)
112
+ }
113
+ },
114
+ ready () {
115
+ if (this.item.f_material_name && this.item.f_material_style) {
116
+ let f_material_name = ''
117
+ this.newmaterialnameandcode.filter((item) => {
118
+ if (item.label == this.item.f_material_name) {
119
+ f_material_name = item.value
120
+ }
121
+ })
122
+ this.item.f_material_name = f_material_name
123
+ this.changeMaterialName(f_material_name)
124
+ let f_typenumber = ''
125
+ this.materialnameandtype.filter((item) => {
126
+ if (item.label == this.item.f_material_style) {
127
+ f_typenumber = item.value
128
+ }
129
+ })
130
+ this.item.f_typenumber = f_typenumber
131
+ this.changeType(f_typenumber)
132
+ }
133
+ console.log(this.item)
134
+ }
135
+ }
136
+ </script>
137
+ <style lang="less">
138
+ .y-form {
139
+ display: flex;
140
+ flex-flow: column;
141
+ gap: 10px;
142
+ padding: 10px 5px;
143
+ .y-form-head {
144
+ background-color: #e8f4ff;
145
+ display: flex;
146
+ padding: 10px 20px;
147
+ align-items: center;
148
+ justify-content: space-between;
149
+ }
150
+
151
+ .y-form-item {
152
+ display: flex;
153
+ gap: 10px;
154
+ margin-top: 3px;
155
+ label {
156
+ width: 30%;
157
+ margin-bottom: 0;
158
+ display: flex;
159
+ flex-direction: row-reverse;
160
+ align-items: center;
161
+ }
162
+ .lab_sty{
163
+ margin-bottom: 0;
164
+ display: flex;
165
+ flex-direction: row-reverse;
166
+ align-items: center;
167
+ }
168
+
169
+ .y-form-item-input {
170
+ width: 70%;
171
+ }
172
+ }
173
+
174
+ }
175
+
176
+ </style>
@@ -37,7 +37,7 @@
37
37
  <div class="form-group col-sm-3 button-range">
38
38
  <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
39
39
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
40
- <export-excel :data="$parent.$parent.getCondition"
40
+ <export-excel v-if="$parent.$parent.projectImport" :data="$parent.$parent.getCondition"
41
41
  :field="$parent.$parent.getfield"
42
42
  sqlurl="rs/logic/applyExportfile"
43
43
  sql-name="getApplyCharge"
@@ -635,6 +635,9 @@ export default {
635
635
  return {
636
636
  condition: this.model.condition
637
637
  }
638
+ },
639
+ projectImport () {
640
+ return this.$login.r.includes('收费明细-导出')
638
641
  }
639
642
  }
640
643
  }
@@ -19,10 +19,10 @@
19
19
  ></res-select>
20
20
  </div>
21
21
  <div class="form-group col-sm-3 button-range">
22
- <a type="button" class="button_new button_spacing" v-if="$parent.$parent.projectStart"
22
+ <a type="button" class="button_new button_spacing" v-if="$parent.$parent.projectTemplate"
23
23
  href="/apply/download/excel/散户报装模板.xlsx" download>模板下载</a>
24
24
  <button class="button_new button_spacing" style="width: max-content"
25
- v-if="$parent.$parent.projectStart"
25
+ v-if="$parent.$parent.projectImport"
26
26
  @click="$parent.$parent.showFile = !$parent.$parent.showFile">批量散户导入</button>
27
27
  <button class="button_new button_spacing" style="width: max-content"
28
28
  v-if="$parent.$parent.projectStart"
@@ -530,6 +530,12 @@
530
530
  computed: {
531
531
  projectStart () {
532
532
  return this.$login.r.includes('报建发起')
533
+ },
534
+ projectTemplate () {
535
+ return this.$login.r.includes('报建流程-模板下载')
536
+ },
537
+ projectImport () {
538
+ return this.$login.r.includes('报建流程-批量散户导入')
533
539
  }
534
540
  },
535
541
  watch: {