chenrui 3 år sedan
förälder
incheckning
94275cc45e
1 ändrade filer med 5 tillägg och 3 borttagningar
  1. 5 3
      src/views/allocationManagement/transferOut/edit.vue

+ 5 - 3
src/views/allocationManagement/transferOut/edit.vue

@@ -308,7 +308,7 @@ export default {
       this.$refs.chooseTable.refresh(true)
     },
     //  添加/编辑
-    handleAdd (row, isEdit) {
+    handleAdd (row, isEdit, isRefresh) {
       const params = {
         id: isEdit ? row.id : undefined,
         allocateSn: this.$route.params.sn,
@@ -332,7 +332,9 @@ export default {
       allocateBillDetailSave(params).then(res => {
         if (res.status == 200) {
           this.$message.success(res.message)
-          this.$refs.table.refresh()
+          if (isRefresh == 'noRefresh') {
+            this.$refs.table.refresh()
+          }
           this.$refs.chooseTable.refresh()
           this.spinning = false
         } else {
@@ -418,7 +420,7 @@ export default {
     priceChange (val, record) {
       //  光标移出,值发生改变再调用编辑接口
       if (val != record.priceBackups) {
-        this.handleAdd(record, 'edit')
+        this.handleAdd(record, 'edit', 'noRefresh')
       }
     },
     // 获取价格