sale-client 4.2.87 → 4.2.89

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,2 +1,2 @@
1
- #Mon Oct 13 09:26:02 CST 2025
1
+ #Mon Oct 13 17:27:02 CST 2025
2
2
  gradle.version=5.2.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.2.87",
3
+ "version": "4.2.89",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -90,6 +90,7 @@ export default {
90
90
  instructtype: '阀门控制',
91
91
  isOpen: '关阀',
92
92
  instructTitle: '手动关阀',
93
+ auto_adjust_option: '手动',
93
94
  reasonInfo: '表具停用自动关阀',
94
95
  f_instruct_state: '待发送',
95
96
  inputtor: this.$login.f.name
@@ -226,12 +226,12 @@
226
226
  <strong style="color:red;margin-right: 5px">{{ $refs.givechange.promptText }}</strong>
227
227
  <strong style="font-size: large" v-if="!config.notShowFormula">计算公式:{{calculatedetail ? calculatedetail : ' 暂无'}}</strong><br/>
228
228
  <strong style="font-size: large" v-if="deductdetail">{{deductdetail ? deductdetail : ' 暂无'}}</strong><br/>
229
- <payment-code-button :clickable="!$v.valid || validateOk || !islegal || clickConfirm|| model.f_preamount === 0"
229
+ <payment-code-button :clickable="!$v.valid || validateOk || !islegal || clickConfirm || model.f_preamount === 0 || curbalanceInvalid"
230
230
  :payment.sync="model.f_payment" :payment-data="paytype"
231
231
  @confirm-payment="confirm()">
232
232
  </payment-code-button>
233
233
  <button class="button_search btn-gn" type="submit" @click="checkInvoiceMsg()"
234
- :disabled='!$v.valid || validateOk || !islegal || clickConfirm || model.f_preamount === 0'>确认
234
+ :disabled='!$v.valid || validateOk || !islegal || clickConfirm || model.f_preamount === 0 || curbalanceInvalid'>确认
235
235
  </button>
236
236
  <button class="button_clear btn-gn" @click="clean()">取消</button>
237
237
  </div>
@@ -606,6 +606,7 @@
606
606
  },
607
607
  sumCollection: 0,
608
608
  calculateCollectionFlag: false,
609
+ curbalanceInvalid: false,
609
610
  calculatedetail: '',
610
611
  deductdetail: '',
611
612
 
@@ -721,6 +722,12 @@
721
722
  // 获取计算优惠
722
723
  this.getPrivilegeList()
723
724
  this.sumCollection = (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
725
+ },
726
+ curbalance (val) {
727
+ this.curbalanceInvalid = val < 0
728
+ if (this.curbalanceInvalid) {
729
+ this.$showAlert('本期结余不能为负', 'warning', 5000)
730
+ }
724
731
  }
725
732
  },
726
733
  events: {
@@ -824,6 +831,10 @@
824
831
  }
825
832
  },
826
833
  confirm () {
834
+ if (this.curbalanceInvalid) {
835
+ this.$showAlert('本期结余不能为负', 'warning', 3000)
836
+ return
837
+ }
827
838
  if (this.insurance && this.insurance.f_money_all > 0) {
828
839
  if (!this.insurance.f_insurance_company) {
829
840
  return this.$showMessage('请填写保险公司')
File without changes
File without changes
Binary file