浏览代码

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

001295 1 年之前
父节点
当前提交
5cb3451f8e
共有 1 个文件被更改,包括 4 次插入0 次删除
  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 = "";
           }