diff --git a/ruoyi-admin/src/main/resources/templates/manage/order/add.html b/ruoyi-admin/src/main/resources/templates/manage/order/add.html
index eba56013..7a46608e 100644
--- a/ruoyi-admin/src/main/resources/templates/manage/order/add.html
+++ b/ruoyi-admin/src/main/resources/templates/manage/order/add.html
@@ -5,14 +5,14 @@
@@ -55,7 +55,8 @@
@@ -124,13 +125,13 @@
@@ -296,6 +297,10 @@
top: '30px',
left: '300px'
});
+
+ $('[name="versionCode"]').on('focus',function (){
+ $(this).blur()
+ })
});
function addRow(row) {
@@ -461,9 +466,17 @@
let res = Number((price * quantity * discount).toFixed(2))
$(ele).parent().parent().find('.amount').val(res)
}
- $('[name="versionCode"]').on('focus',function (){
- $(this).blur()
- })
+ function changeOrderType(){
+ let orderType=$('[name="orderType"]').val()
+ if(orderType=='zq'){
+ $('[name="orderPartnerName"]').removeAttr('required')
+ $('[name="orderPartnerName"]').parent().parent().parent().find('label').removeClass('is-required')
+ }else{
+ $('[name="orderPartnerName"]').attr('required',true)
+ $('[name="orderPartnerName"]').parent().parent().parent().find('label').addClass('is-required')
+ }
+ }
+