sale-client 3.5.44 → 3.5.46

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": "sale-client",
3
- "version": "3.5.44",
3
+ "version": "3.5.46",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -88,7 +88,7 @@
88
88
  "style-loader": "^0.20.3",
89
89
  "system-clients": "3.2.6-1",
90
90
  "url-loader": "^0.5.7",
91
- "vue-client": "1.24.61",
91
+ "vue-client": "1.24.67",
92
92
  "vue-clipboard2": "0.3.1",
93
93
  "vue-hot-reload-api": "^1.2.0",
94
94
  "vue-html-loader": "^1.0.0",
@@ -123,7 +123,7 @@
123
123
  </div>
124
124
  <div class="col-sm-4">
125
125
  <label class="font_normal_body_new">是否自动阀控</label>
126
- <input class="input-underline" style="width:45%" :value="row.f_network_valve == '1' ? '' : ''" readonly>
126
+ <input class="input-underline" style="width:45%" :value="row.f_network_valve == '1' ? '' : ''" readonly>
127
127
  </div>
128
128
  </div>
129
129
  <div v-if="row.f_collection_type == '按气量'" >
@@ -120,15 +120,15 @@
120
120
  style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
121
121
  汇总信息
122
122
  </td>
123
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
124
- 气量合计:&emsp;{{model.sums.f_pregas}}
125
- </td>
126
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
127
- 金额合计:&emsp;{{model.sums.f_preamount}}
128
- </td>
129
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
130
- 应交合计:&emsp;{{model.sums.f_oughtfee}}
131
- </td>
123
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
124
+ <!-- 气量合计:&emsp;{{model.sums.f_pregas}}-->
125
+ <!-- </td>-->
126
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
127
+ <!-- 金额合计:&emsp;{{model.sums.f_preamount}}-->
128
+ <!-- </td>-->
129
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
130
+ <!-- 应交合计:&emsp;{{model.sums.f_oughtfee}}-->
131
+ <!-- </td>-->
132
132
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
133
133
  实收合计:&emsp;{{model.sums.f_collection}}
134
134
  </td>
@@ -176,7 +176,7 @@ let reprintGen = function * (self, row) {
176
176
  model: new PagedList('rs/sql/sale_ChargeQuery', 20, {}, {
177
177
  f_preamount: 0,
178
178
  f_pregas: 0,
179
- f_oughtfee :0,
179
+ f_oughtfee: 0,
180
180
  f_collection: 0
181
181
  }),
182
182
  show: false,
@@ -185,10 +185,10 @@ let reprintGen = function * (self, row) {
185
185
  label: '全部',
186
186
  value: ''
187
187
  }, ...this.$appdata.getParam('缴费状态')] : [],
188
- types: this.$appdata.getParam('收费类型') ? [{
189
- label: '全部',
190
- value: ''
191
- }, ...this.$appdata.getParam('收费类型')] : [],
188
+ types: this.$appdata.getParam('收费类型') ? [{
189
+ label: '全部',
190
+ value: ''
191
+ }, ...this.$appdata.getParam('收费类型')] : [],
192
192
  // 控制单选
193
193
  radio: [],
194
194
  // 选中的页
@@ -156,9 +156,9 @@
156
156
  <!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
157
157
  <!--欠费气量合计:&emsp;{{model.sums.f_totalowe_gas}}-->
158
158
  <!--</td>-->
159
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
160
- 欠费金额合计:&emsp;{{model.sums.f_qianfei_fee}}
161
- </td>
159
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
160
+ <!-- 欠费金额合计:&emsp;{{model.sums.f_qianfei_fee}}-->
161
+ <!-- </td>-->
162
162
  </tr>
163
163
  </table>
164
164
  </div>
@@ -156,12 +156,12 @@
156
156
  </div>
157
157
  </div>
158
158
  </criteria>
159
- <data-grid class="list_area table_sy" :model="model" partial='list' v-ref:grid>
159
+ <data-grid class="list_area table_sy" :model="model" partial='list' v-ref:grid :optional="true">
160
160
  <template partial='head'>
161
- <th>
162
- <input type="checkbox" id="f_operator" v-model="$parent.$parent.$parent.all[model.pageIndex-1]"
163
- @change="$parent.$parent.$parent.select()"/>
164
- </th>
161
+ <!--<th>-->
162
+ <!--<input type="checkbox" id="f_operator" v-model="$parent.$parent.$parent.all[model.pageIndex-1]"-->
163
+ <!--@change="$parent.$parent.$parent.select()"/>-->
164
+ <!--</th>-->
165
165
  <th><nobr>序号</nobr></th>
166
166
  <th><nobr>客户编号</nobr></th>
167
167
  <th><nobr>客户名称</nobr></th>
@@ -175,10 +175,10 @@
175
175
  <th><nobr>表底数</nobr></th>
176
176
  </template>
177
177
  <template partial='body'>
178
- <td>
179
- <input :id="'body'+model.pageIndex" type='checkbox' @change="$parent.$parent.$parent.selectOne($event,row,$index)"
180
- :checked="$parent.$parent.$parent.ischecked(model.pageIndex-1,$index)"/>
181
- </td>
178
+ <!--<td>-->
179
+ <!--<input :id="'body'+model.pageIndex" type='checkbox' @change="$parent.$parent.$parent.selectOne($event,row,$index)"-->
180
+ <!--:checked="$parent.$parent.$parent.ischecked(model.pageIndex-1,$index)"/>-->
181
+ <!--</td>-->
182
182
  <td>{{$index+1}}</td>
183
183
  <td>{{row.f_userinfo_code}}</td>
184
184
  <td>{{row.f_user_name}}</td>
@@ -47,13 +47,18 @@
47
47
  },
48
48
  'add-tobook-confirm' (model) {
49
49
  model.userfilesids = []
50
+ this.rowsdata = this.$refs.mbpeople_list.$refs.paged.$refs.grid.getRowData()
50
51
  let msg = '确认将选中的用户全部移入表册?'
51
52
  var alluser=[]
52
53
  if (this.rowsdata === null || this.rowsdata.length == 0) {
53
54
  this.$showAlert('请勾选用户!!', 'warning', 3000)
54
55
  } else {
55
- model.userfilesids = this.rowsdata
56
- alluser = this.$refs.mbpeople_list.rowsdata[0]
56
+ let userfilesids = []
57
+ this.rowsdata.forEach((row) => {
58
+ userfilesids.push(row.f_userfiles_id + '')
59
+ })
60
+ model.userfilesids = userfilesids
61
+ alluser = this.rowsdata
57
62
  // 变成可以直接使用的格式
58
63
  this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
59
64
  if (res === 'confirm') {
@@ -9,6 +9,15 @@
9
9
  <input class="input_search" style="width:60%" type="number" @blur="pregas"
10
10
  v-validate:f_pregas='{ dctest: [0, ">=" ]}' v-model="model.f_pregas" placeholder="应补气量" v-ref:f_pregas>
11
11
  </div>
12
+ <div class="col-sm-4">
13
+ <label class=" font_normal_body">上次气量是否上表:</label>
14
+ <div style="display: inline-block;padding-top: 7px">
15
+ <input type="radio" id="true1" name="filllast" value="1" v-model="filllast">
16
+ <label for="true1">是</label>
17
+ <input type="radio" id="false1" name="filllast" value="0" v-model="filllast">
18
+ <label for="false1">否</label>
19
+ </div>
20
+ </div>
12
21
  <div class="col-sm-4">
13
22
  <label for="f_add_gas" class="font_normal_body">是否入累计</label>
14
23
  <v-select id="f_add_gas"
@@ -35,6 +44,15 @@
35
44
  <label for="f_preamount" class=" font_normal_body">应补金额:</label>
36
45
  <input class="input_search" style="width:60%" type="number" min = "0" v-model="model.f_preamount" placeholder="金额">
37
46
  </div>
47
+ <div class="col-sm-4">
48
+ <label class=" font_normal_body">上次气量是否上表:</label>
49
+ <div style="display: inline-block;padding-top: 7px">
50
+ <input type="radio" id="true2" name="filllast" value="1" v-model="filllast">
51
+ <label for="true2">是</label>
52
+ <input type="radio" id="false2" name="filllast" value="0" v-model="filllast">
53
+ <label for="false2">否</label>
54
+ </div>
55
+ </div>
38
56
  <div class="col-sm-4">
39
57
  <label for="f_add_gas" class="font_normal_body">是否入累计:</label>
40
58
  <v-select v-model="model.f_add_gas"
@@ -180,6 +198,16 @@ let otherGasGen = async function (self) {
180
198
  if (!(self.row.f_hascard == null) && !(self.row.f_share_times == null) && self.row.f_meter_type == '物联网表' && self.row.f_hascard == '是' && self.row.f_share_times == '是') {
181
199
  params.cs = self.row.f_times + 1
182
200
  }
201
+ // 如果上次气量上表,就把上次气量变成上上次气量,上上次变为上上上次
202
+ if(self.filllast == '1'){
203
+ params.csql = params.ccsql
204
+ params.lastmoney = params.lastlastmoney
205
+ params.ccsql = params.cccsql
206
+ params.lastlastmoney = params.lastlastlastmoney
207
+ }
208
+ // 删除多余参数
209
+ delete params.cccsql
210
+ delete params.lastlastlastmoney
183
211
  console.log('获取其他补气写卡参数,,', params)
184
212
 
185
213
  let url = (getLastOper.data.last_oper === '补卡' || getLastOper.data.last_oper === '换表')
@@ -223,6 +251,7 @@ export default {
223
251
  data () {
224
252
  return {
225
253
  isGas: false,
254
+ filllast: '0',
226
255
  config: {
227
256
  hasPrint: false, // 默认打票
228
257
  hasBillManage: false, // 默认不启用发票管理
@@ -213,6 +213,8 @@ let CommonService = {
213
213
  lastmoney: cardParams.data.scje,
214
214
  ccsql: cardParams.data.ssc,
215
215
  lastlastmoney: cardParams.data.sscje,
216
+ cccsql: cardParams.data.sssc ? cardParams.data.sssc : null,
217
+ lastlastlastmoney: cardParams.data.ssscje ? cardParams.data.ssscje : null,
216
218
  ljgql: cardParams.data.f_pregas,
217
219
  ljyql: cardParams.data.f_pregasall,
218
220
  yhh: cardParams.data.f_meterid,