liqianyi 2 years ago
parent
commit
92c74f5c63
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/modules/order/order-add-or-update.vue

+ 6 - 2
src/views/modules/order/order-add-or-update.vue

@@ -175,7 +175,7 @@
             </el-table-column>
           </el-table>
           <el-row style="text-align: center; margin-top: 10px;">
-            <el-button v-show="!display" type="primary" icon="el-icon-plus" @click="addProduct"></el-button>
+            <el-button :disabled="addType === 2" v-show="!display" type="primary" icon="el-icon-plus" @click="addProduct"></el-button>
           </el-row>
         </el-row>
       </el-form>
@@ -316,7 +316,11 @@
               return
             }
             this.$http({
-              url: !this.id ? this.$http.adornUrl(`/biz-service/order/save`) : this.$http.adornUrl(`/biz-service/order/update`),
+              url: !this.id
+                ? this.$http.adornUrl(`/biz-service/order/save`)
+                : (this.addType === 2
+                  ? this.$http.adornUrl(`/biz-service/order/determine`)
+                  : this.$http.adornUrl(`/biz-service/order/update`)),
               method: 'post',
               data: this.$http.adornData({...this.dataForm, orgId: this.orgId})
             }).then(({data}) => {