Browse Source

修改水运单价复制新增

liyg 2 years ago
parent
commit
65eba3badd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/RMS/components/addContractPrice.vue

+ 2 - 1
src/views/RMS/components/addContractPrice.vue

@@ -123,9 +123,10 @@ export default {
         }).then(()=>{
         }).then(()=>{
           let copy=this.$route.query;
           let copy=this.$route.query;
           console.log("copy:",copy);
           console.log("copy:",copy);
+          //如果有值,则复制新增
           if(copy){
           if(copy){
             if(copy.portId){
             if(copy.portId){
-              copy.portId=copy.portId * 1;
+              copy.portId=[copy.portId * 1];
             }
             }
             this.$set(this,"form",copy);
             this.$set(this,"form",copy);
           }
           }