diff --git a/src/views/plan/jh/index.vue b/src/views/plan/jh/index.vue
index 13c9808..7dd35cf 100644
--- a/src/views/plan/jh/index.vue
+++ b/src/views/plan/jh/index.vue
@@ -294,7 +294,7 @@
-
+
@@ -309,7 +309,7 @@
-
+
@@ -805,14 +805,26 @@ function handlePrint(){
// showContent.value = false;
}
// 合同金额改变
-function htDjChange(e) {
- console.log(e,form.value,'e===>');
+function htDjChange(e,name) {
+ console.log(e,form.value,name,'e===>');
if(e){
const htDj = form.value?.htDj
const jhQty = form.value?.jhQty
const jhAmt = (Number(htDj) * Number(jhQty)* 100*10000) / ( 100*10000)
console.log(jhAmt,'jhAmt==>');
- form.value.jhAmt=jhAmt
+ if(!(/^-?\d+(\.\d+)?$/.test(e))){
+ if(name == 'htDj'){
+ proxy.$modal.msgError("合同单价请输入数字");
+ return;
+ }
+ if(name == 'jhQty'){
+ proxy.$modal.msgError("计划交货数量请输入数字");
+ return;
+ }
+ form.value.jhAmt=''
+ }else{
+ form.value.jhAmt=jhAmt
+ }
}
}