|
@@ -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}) => {
|