sale-client 4.2.88 → 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.
package/package.json
CHANGED
|
@@ -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('请填写保险公司')
|