Browse Source

工具借用单复制

qymljy 1 year ago
parent
commit
59766656f7

+ 10 - 2
src/SDrpManagement/QuotedPrice/detail/components/copyTo.vue

@@ -42,7 +42,15 @@ export default {
         "id": 20221209094103,
       })
       this.saQuotedPriceData = res.data
-      this.copyList()
+      if (res.code == 0){
+        this.$notify.error({
+          title: res.data,
+          message: res.msg
+        });
+      }else {
+        this.copyList()
+      }
+
     },
     copyList(){
       this.$store.dispatch('changeDetailDrawer',false)
@@ -77,4 +85,4 @@ export default {
 
 <style scoped>
 
-</style>
+</style>

+ 9 - 1
src/template/copyTo/index.vue

@@ -22,7 +22,15 @@ export default {
     async copyData(){
       this.param.content.sa_orderid = this.sa_orderid
       const res = await this.$api.requested(this.param)
-      this.copyPath(res.data)
+      if (res.code == 0){
+        this.$notify.error({
+          title: res.data,
+          message: res.msg
+        });
+      }else {
+        this.copyPath(res.data)
+      }
+
     },
     copyPath(item){
       this.$store.dispatch('changeDetailDrawer',false)