sale-client 3.7.45 → 3.7.47-ly

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.7.45",
3
+ "version": "3.7.47-ly",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -228,8 +228,8 @@
228
228
  self.model.f_pregas = (self.model.f_pregas - 0).toFixed(0)
229
229
  }
230
230
  self.model.f_meter_type = self.row.f_meter_type
231
- // 判断限购
232
- if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0) {
231
+ // 限购检查只检查购气量(不含补气量),限购值限制的是额外购买的气量
232
+ if ((self.model.f_pregasBuy - 0) - (self.maxgas - 0) <= 0) {
233
233
  if ((self.model.f_fill_gas - 0) < (self.model.f_pregas - 0)) {
234
234
  // 超出【补气气量不符】部分走划价
235
235
  let gas = self.model.f_pregas - self.model.f_fill_gas
@@ -250,6 +250,13 @@
250
250
  self.model.f_collection = 0
251
251
  }
252
252
  self.remstrgas()
253
+ } else {
254
+ self.$showAlert(`购气量不能超过限购值${self.maxgas}方`, 'warning', 3000)
255
+ self.model.f_preamount = 0
256
+ self.model.f_totalcost = 0
257
+ self.model.f_collection = 0
258
+ self.model.f_pregasBuy = 0
259
+ self.model.f_pregas = self.model.f_fill_gas
253
260
  }
254
261
  }
255
262
 
@@ -37,7 +37,7 @@
37
37
  <input type="text" v-show="false" v-model="$refs.model.selectedItems"
38
38
  v-validate:model='{required: true }'>
39
39
  <v-select :value.sync="row.gasmodel" :options='row.gasbrand[0].gasmodel' placeholder='气表型号'
40
- close-on-select :disabled="!jurisdiction.includes('档案信息查询修改') || (jurisdiction.includes('气表型号') == false && controlledArray.includes('气表型号') == false)"
40
+ close-on-select :disabled="!jurisdiction.includes('档案信息查询修改') || (jurisdiction.includes('气表型号') == false && controlledArray.includes('气表型号') == true)"
41
41
  v-model='row.gasmodel' :disabled='row.gasbrand.length === 0 ' v-ref:model></v-select>
42
42
  </div>
43
43
  <div class="col-sm-4 form-group" :class="[$m.name.required ? 'has-error' : '']">
@@ -21,8 +21,8 @@ let GetSaleParam = {
21
21
  inputtors: [],
22
22
  async initinputtor () {
23
23
  let res = await Vue.resetpost('rs/sql/sale_getAlluserRes?pageNo=1&pageSize=999999', {data: {
24
- condition: ' 1=1'
25
- }}, {resolveMsg: null, rejectMsg: '获取用户出错!!!'})
24
+ condition: ' 1=1'
25
+ }}, {resolveMsg: null, rejectMsg: '获取用户出错!!!'})
26
26
  console.log('resdata:', res.data)
27
27
  if (res.data) {
28
28
  GetSaleParam.inputtors = res.data
@@ -115,7 +115,7 @@ let GetSaleParam = {
115
115
  getPriceByOrgNoLow (filialeid) {
116
116
  let result = []
117
117
  GetSaleParam.prices.forEach((item) => {
118
- if (item.f_state === '有效' && filialeid == item.f_filialeid && item.f_islow_income != 0) {
118
+ if (item.f_state === '有效' && filialeid == item.f_filialeid && (item.f_islow_income == null || item.f_islow_income == 0)) {
119
119
  let value = {
120
120
  label: item.f_price_name,
121
121
  value: item
@@ -247,7 +247,7 @@ let GetSaleParam = {
247
247
  if (item.f_state === '有效' && object.f_user_type === item.f_user_type &&
248
248
  object.f_gasproperties === item.f_gasproperties &&
249
249
  object.f_price_type === item.f_price_type &&
250
- object.filter == item.f_filialeid && item.f_islow_income != 0) {
250
+ object.filter == item.f_filialeid && (item.f_islow_income == null || item.f_islow_income == 0)) {
251
251
  let value = {
252
252
  label: item.f_price_name,
253
253
  value: item
@@ -257,7 +257,7 @@ let GetSaleParam = {
257
257
  })
258
258
  } else {
259
259
  GetSaleParam.prices.forEach((item) => {
260
- if (item.f_state === '有效' && object.f_user_type === item.f_user_type && object.f_gasproperties === item.f_gasproperties && object.f_price_type === item.f_price_type && item.f_islow_income != 0) {
260
+ if (item.f_state === '有效' && object.f_user_type === item.f_user_type && object.f_gasproperties === item.f_gasproperties && object.f_price_type === item.f_price_type && (item.f_islow_income == null || item.f_islow_income == 0)) {
261
261
  let value = {
262
262
  label: item.f_price_name,
263
263
  value: item