Prechádzať zdrojové kódy

散件入库 新增产品 需求迭代

chenrui 3 rokov pred
rodič
commit
18f68f6e22

+ 10 - 2
src/views/purchasingManagement/bulkWarehousingOrder/productModal.vue

@@ -68,7 +68,7 @@
         </a-form-model-item>
       </a-form-model>
       <div class="btn-cont">
-        <a-button type="primary" id="bulkWarehousingOrder-product-modal-save" @click="handleSave">保存</a-button>
+        <a-button type="primary" id="bulkWarehousingOrder-product-modal-save" @click="handleSave">保存并新增</a-button>
         <a-button id="bulkWarehousingOrder-product-modal-back" @click="isShow = false" style="margin-left: 15px;">取消</a-button>
       </div>
     </a-spin>
@@ -201,9 +201,9 @@ export default {
             if (res.status == 200) {
               _this.$message.success(res.message)
               setTimeout(() => {
-                _this.isShow = false
                 _this.$emit('ok', res.data)
                 _this.spinning = false
+                _this.resetData()
               }, 1000)
             } else {
               _this.spinning = false
@@ -267,6 +267,14 @@ export default {
           this.warehouseCascadeData = []
         }
       })
+    },
+    resetData () {
+      this.form.productSn = undefined
+      this.form.productName = ''
+      this.form.productCode = ''
+      this.form.productOrigCode = ''
+      this.form.productCost = ''
+      this.form.productQty = ''
     }
   },
   watch: {