浏览代码

维多利亚数字框所有页面禁用滚轮

cz 1 年之前
父节点
当前提交
f15faf43a4

+ 6 - 0
src/views/WDLY/basic/product/index.vue

@@ -128,6 +128,7 @@
                         :min="1"
                         :controls="false"
                         :precision="0"
+                        onmousewheel="return false;"
                       />
                     </el-form-item>
                   </template>
@@ -165,6 +166,7 @@
                     :precision="0"
                     style="width: 100%"
                     @change="changeDay(10)"
+                    onmousewheel="return false;"
                   >
                   </el-input-number>
                 </el-col>
@@ -179,6 +181,7 @@
                     :controls="false"
                     :precision="0"
                     style="width: 100%"
+                    onmousewheel="return false;"
                   />
                 </el-col>
               </el-row>
@@ -204,6 +207,7 @@
                     :precision="0"
                     style="width: 100%"
                     @change="changeDay(20)"
+                    onmousewheel="return false;"
                   >
                   </el-input-number>
                 </el-col>
@@ -218,6 +222,7 @@
                     :controls="false"
                     :precision="0"
                     style="width: 100%"
+                    onmousewheel="return false;"
                   />
                 </el-col>
               </el-row>
@@ -238,6 +243,7 @@
                   :controls="false"
                   :precision="0"
                   style="width: 100%"
+                  onmousewheel="return false;"
                 />
               </el-col>
             </el-row>

+ 1 - 0
src/views/WDLY/outInBound/jdOrderReceive/index.vue

@@ -126,6 +126,7 @@
                       :precision="4"
                       :controls="false"
                       :min="0"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>

+ 11 - 10
src/views/WDLY/outInBound/transfer/index.vue

@@ -80,7 +80,7 @@
                 label="调仓数量"
                 v-if="modalType == 'edit'"
               />
-                  <el-table-column
+              <el-table-column
                 prop="alQuantity"
                 label="已接收数量"
                 v-if="modalType == 'edit'"
@@ -109,6 +109,7 @@
                       :precision="2"
                       :controls="false"
                       :min="1"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>
@@ -130,6 +131,7 @@
                       :precision="2"
                       :controls="false"
                       :min="1"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>
@@ -448,7 +450,10 @@ const submitForm = () => {
       const list = formData.data.stockTransferDetailsList;
       for (let i = 0; i < list.length; i++) {
         const e = list[i];
-        if (Number(e.inQuantity)+Number(e.alQuantity) > Number(e.outQuantity)) {
+        if (
+          Number(e.inQuantity) + Number(e.alQuantity) >
+          Number(e.outQuantity)
+        ) {
           return ElMessage({
             message: `接收数量加已接收数量不可大于调出数量!`,
             type: "info",
@@ -486,12 +491,10 @@ const getDtl = (row, type) => {
   modalType.value = type;
   proxy.post("/stockTransfer/detail", { id: row.id }).then((res) => {
     if (type == "edit") {
-      res.stockTransferDetailsList.forEach(
-        (x) => {
-          x.alQuantity=x.inQuantity
-          x.inQuantity = x.outQuantity-x.alQuantity
-        }
-      );
+      res.stockTransferDetailsList.forEach((x) => {
+        x.alQuantity = x.inQuantity;
+        x.inQuantity = x.outQuantity - x.alQuantity;
+      });
     }
     formData.data = res;
     dialogVisible.value = true;
@@ -591,8 +594,6 @@ const pushGoods = (goods) => {
     type: "success",
   });
 };
-
-
 </script>
   
 <style lang="scss" scoped>

+ 1 - 0
src/views/WDLY/outInBound/waitInBound/index.vue

@@ -62,6 +62,7 @@
                       :precision="0"
                       :controls="false"
                       :min="1"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>

+ 2 - 0
src/views/WDLY/outInBound/waitOutBound/index.vue

@@ -59,6 +59,7 @@
                       :precision="2"
                       :controls="false"
                       :min="0"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>
@@ -80,6 +81,7 @@
                       :precision="2"
                       :controls="false"
                       :min="0"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>

+ 4 - 0
src/views/WDLY/purchaseManage/alreadyPurchase/index.vue

@@ -150,6 +150,7 @@
                       :precision="2"
                       :controls="false"
                       :min="0"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>
@@ -178,6 +179,7 @@
                       :precision="2"
                       :controls="false"
                       :min="0"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>
@@ -560,6 +562,7 @@
                 :min="1"
                 :precision="2"
                 style="width: 100%"
+                onmousewheel="return false;"
               />
             </el-col>
             <el-col :span="2" style="text-align: center"> 到 </el-col>
@@ -571,6 +574,7 @@
                 :min="1"
                 :precision="2"
                 style="width: 100%"
+                onmousewheel="return false;"
               />
             </el-col>
           </el-row>

+ 2 - 0
src/views/WDLY/purchaseManage/arrival/index.vue

@@ -84,6 +84,7 @@
                       :precision="2"
                       :controls="false"
                       :min="0"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>
@@ -108,6 +109,7 @@
                       :precision="2"
                       :controls="false"
                       :min="0"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>

+ 11 - 7
src/views/WDLY/purchaseManage/payment/index.vue

@@ -42,7 +42,7 @@
 
         <template #btn="{ item }">
           <div>
-            <el-button type="primary" link @click="handlePayment(10)"
+            <el-button type="primary" link @click="handlePayment(10, item)"
               >付款</el-button
             >
             <el-button
@@ -101,7 +101,7 @@
         </template>
       </byForm>
       <template #footer>
-        <el-button @click="dialogVisible = false" size="large">取 消</el-button>
+        <el-button @click="handleClose" size="large">取 消</el-button>
         <el-button
           type="primary"
           @click="submitForm('byform')"
@@ -132,9 +132,7 @@
               <div>aa</div>
             </template> -->
             <div>付款金额:{{ moneyFormat(activity.amount, 2) }}</div>
-            <div style="margin-top: 5px">
-              付款时间: {{ activity.createTime }}
-            </div>
+            <div style="margin-top: 5px">付款时间: {{ activity.payDate }}</div>
           </el-timeline-item>
         </el-timeline>
       </div>
@@ -168,6 +166,7 @@ let activities = ref([]);
 let modalType = ref("add");
 let rules = ref({
   amount: [{ required: true, message: "请输入付款金额", trigger: "blur" }],
+  payDate: [{ required: true, message: "请选择付款时间", trigger: "change" }],
 });
 const { proxy } = getCurrentInstance();
 const arrivalStatus = ref([
@@ -386,7 +385,7 @@ const submitForm = () => {
           message: "操作成功",
           type: "success",
         });
-        dialogVisible.value = false;
+        handleClose();
         setTimeout(() => {
           submitLoading.value = false;
         }, 5000);
@@ -398,11 +397,16 @@ const submitForm = () => {
     );
   });
 };
-
 const selectData = ref([]);
 const selectRow = (data) => {
   selectData.value = data;
 };
+
+const handleClose = () => {
+  dialogVisible.value = false;
+  selectData.value = [];
+};
+
 watch(selectData, (newVal, oldVal) => {
   if (newVal.length == 0) {
     sourceList.value.data.forEach((x) => {

+ 1 - 0
src/views/WDLY/purchaseManage/returnGoods/index.vue

@@ -102,6 +102,7 @@
                     :controls="false"
                     :min="0"
                     @change="handleChangeAmount"
+                     onmousewheel="return false;"
                   />
                 </el-form-item>
               </template>

+ 1 - 0
src/views/WDLY/salesMange/afterSale/index.vue

@@ -110,6 +110,7 @@
                       :precision="2"
                       :controls="false"
                       :min="0"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>

+ 2 - 0
src/views/WDLY/salesMange/jdOrder/index.vue

@@ -138,6 +138,7 @@
                       :controls="false"
                       :min="0"
                       @change="totalAmount"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>
@@ -155,6 +156,7 @@
                       :controls="false"
                       :min="0"
                       @change="totalAmount"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>

+ 1 - 0
src/views/WDLY/salesMange/jdReGoods/index.vue

@@ -80,6 +80,7 @@
                       :precision="4"
                       :controls="false"
                       :min="0"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>

+ 2 - 0
src/views/WDLY/salesMange/jdReGoodsInspection/index.vue

@@ -93,6 +93,7 @@
                       :precision="4"
                       :controls="false"
                       :min="0"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>
@@ -113,6 +114,7 @@
                       :precision="4"
                       :controls="false"
                       :min="0"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>

+ 1 - 0
src/views/WDLY/salesMange/jdSalesData/index.vue

@@ -69,6 +69,7 @@
                       :precision="4"
                       :controls="false"
                       :min="0"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>

+ 2 - 0
src/views/WDLY/salesMange/order/index.vue

@@ -120,6 +120,7 @@
                       :min="0"
                       @change="totalAmount"
                       placeholder="请输入"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>
@@ -138,6 +139,7 @@
                       :min="0"
                       @change="totalAmount"
                       placeholder="请输入"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>

+ 6 - 1
src/views/WDLY/stockManage/productCombination/index.vue

@@ -69,6 +69,7 @@
                       :controls="false"
                       :min="0"
                       @change="() => changeCanSum(row, $index)"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>
@@ -107,7 +108,11 @@
       width="70%"
       append-to-body
     >
-      <SelectProduct :isCombination="true" @handleSelect="handleSelect" key="a"></SelectProduct>
+      <SelectProduct
+        :isCombination="true"
+        @handleSelect="handleSelect"
+        key="a"
+      ></SelectProduct>
       <template #footer>
         <span class="dialog-footer">
           <el-button @click="openProduct = false">取消</el-button>

+ 1 - 0
src/views/WDLY/stockManage/productSplit/index.vue

@@ -69,6 +69,7 @@
                       :precision="0"
                       :controls="false"
                       :min="0"
+                      onmousewheel="return false;"
                     />
                   </el-form-item>
                 </template>

+ 5 - 1
src/views/WDLY/stockManage/query/index.vue

@@ -378,9 +378,13 @@ const formConfig = reactive([
     disabled: true,
   },
   {
-    type: "input",
+    type: "number",
     prop: "quantity",
     label: "数量",
+    itemWidth: 33,
+    precision: 2,
+    min: 0,
+    controls: false,
   },
 ]);
 const byform = ref(null);

+ 2 - 1
src/views/connect/E-mail/mail/com/mailDetail.vue

@@ -51,8 +51,9 @@
         <div class="label">附 件:</div>
         <div class="value">
           <div
-            v-for="item in fileList"
+            v-for="(item, index) in fileList"
             style="margin-right: 20px; display: flex; align-items: center"
+            :key="index"
           >
             <span style="cursor: pointer" @click="handleClickFile(item)">{{
               item.name

+ 15 - 6
src/views/connect/E-mail/mail/com/mailWrite.vue

@@ -333,6 +333,12 @@ const handleSend = () => {
           type: "info",
         });
       }
+      if (!validEmail(formData.data.replyTo)) {
+        return ElMessage({
+          message: "发件人邮箱格式不正确",
+          type: "info",
+        });
+      }
       if (data.content) {
         let replyTo = [
           {
@@ -401,11 +407,12 @@ const handleClose = (index, val) => {
 const handleAdd = (val) => {
   switch (val) {
     case 10: {
-      if (!validEmail(formData.data.to))
+      if (!validEmail(formData.data.to)) {
         return ElMessage({
-          message: "邮箱格式不正确",
+          message: "收件人邮箱格式不正确",
           type: "info",
         });
+      }
       to.value.push({
         address: formData.data.to,
         personal: null,
@@ -414,11 +421,12 @@ const handleAdd = (val) => {
       break;
     }
     case 20: {
-      if (!validEmail(formData.data.cc))
+      if (!validEmail(formData.data.cc)) {
         return ElMessage({
-          message: "邮箱格式不正确",
+          message: "抄送人邮箱格式不正确",
           type: "info",
         });
+      }
       cc.value.push({
         address: formData.data.cc,
         personal: null,
@@ -427,11 +435,12 @@ const handleAdd = (val) => {
       break;
     }
     case 30: {
-      if (!validEmail(formData.data.bcc))
+      if (!validEmail(formData.data.bcc)) {
         return ElMessage({
-          message: "邮箱格式不正确",
+          message: "密送人邮箱格式不正确",
           type: "info",
         });
+      }
       bcc.value.push({
         address: formData.data.bcc,
         personal: null,

+ 2 - 1
src/views/salesMange/saleContract/claim/index.vue

@@ -489,7 +489,8 @@ const getDtl = (row) => {
       waitAmount: Number(row.amount) - Number(res.data),
       accountManagementId: row.accountManagementId,
       accountManagementName: row.accountManagementName,
-      claimTime: proxy.parseTime(new Date()),
+      claimTime: row.transactionTime,
+      // claimTime: proxy.parseTime(new Date()),
       claimContractList: [],
     };
     dialogVisible.value = true;

+ 1 - 1
src/views/salesMange/saleContract/contractSelect/index.vue

@@ -20,7 +20,7 @@
         <template #refundMoney="{ item }">
           <div>
             <span style="padding-right: 4px">{{ item.currency }}</span>
-            <span>{{ moneyFormat(item.refundMoney, 2) }}</span>
+            <span>{{ moneyFormat(item.sumClaimMoney, 2) }}</span>
           </div>
         </template>
         <template #advanceRatio="{ item }">