Ver Fonte

复制调拨日期不能晚于当天日期;

001295 há 1 ano atrás
pai
commit
5cb3451f8e
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      src/views/purchase/transferOrder/add.vue

+ 4 - 0
src/views/purchase/transferOrder/add.vue

@@ -1611,6 +1611,7 @@ export default {
       this.sonDisable = false;
       this.basicForm.id = "";
       this.basicForm.code = "";
+      this.basicForm.status = "0";
       this.basicForm.createByName = "";
       this.basicForm.createBy = "";
       this.basicForm.createTime = "";
@@ -1626,6 +1627,9 @@ export default {
       // 复制新增把id,编码,创建人置为空,子表去掉id
       if (this.basicForm.materialInfo.length !== 0) {
         this.basicForm.materialInfo.forEach((item) => {
+          if (item.allotDate) {
+            item.allotDate = new Date();
+          }
           if (item.deliveryCode) {
             item.deliveryCode = "";
           }