浏览代码

no message

linwenxin 1 年之前
父节点
当前提交
8330d07730

+ 13 - 1
src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/productColumns.js

@@ -287,7 +287,19 @@ export default {
         })
       }
     },
-    eidtProduct(row) {
+    eidtProduct(row, index) {
+      try {
+        this.orderInfo.orderProducts.map((item, index_) => {
+          if (
+            `${row.brandId}_${row.mainId}_${row.smallId}_${row.productName}` == `${item.brandId}_${item.mainId}_${item.smallId}_${item.productName}` &&
+            index_ != index
+          ) {
+            throw new Error('');
+          }
+        })
+      } catch (error) {
+        console.log(error)
+      }
       this.appointVerify(this.getVfyKey(this.isEditIndex), (v) => {
         if (v) {
           if (this.id) {

+ 5 - 0
src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/serviceInfo.js

@@ -99,6 +99,11 @@ export default {
             style: { width: '100%' },
             placeholder: '请选择',
             'value-format': 'yyyy-MM-dd HH:mm:ss',
+            'picker-options': {
+              disabledDate: time => {
+                return time.getTime() < (Date.now() - 86400000)
+              }
+            }
           },
           formItemAttributes: {
             label: '预约上门日期',