This commit is contained in:
@@ -410,8 +410,8 @@ export default {
|
|||||||
async submitNewContract() {
|
async submitNewContract() {
|
||||||
//save new contract route, this only ever gets called from a clean wo with no dirty edits so just save the contract and reset the wo from the result
|
//save new contract route, this only ever gets called from a clean wo with no dirty edits so just save the contract and reset the wo from the result
|
||||||
let res = await window.$gz.api.post(
|
let res = await window.$gz.api.post(
|
||||||
`${API_BASE_URL}contract/${this.obj.id}`,
|
`${API_BASE_URL}set-contract/${this.obj.id}`,
|
||||||
this.obj.contractId
|
{ newContractId: this.obj.contractId }
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
this.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
|
|||||||
Reference in New Issue
Block a user