|
|
|
|
@ -989,11 +989,11 @@ export default {
|
|
|
|
|
if (!this.hasValue(value)) {
|
|
|
|
|
callback(new Error("必填"));
|
|
|
|
|
} else {
|
|
|
|
|
const { msg } = await checkContractName({ name: value });
|
|
|
|
|
if (msg === "未重名") {
|
|
|
|
|
const res = await checkContractName({ name: value });
|
|
|
|
|
if (res === "未重名") {
|
|
|
|
|
callback();
|
|
|
|
|
} else {
|
|
|
|
|
callback(new Error(msg));
|
|
|
|
|
callback(new Error("名称重名"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -1508,7 +1508,7 @@ export default {
|
|
|
|
|
this.btnLoading = false
|
|
|
|
|
//this.step = 3;
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: (this.form.is_simple || !this.form.is_purchase) ? '/contract/contractAll' : '/contract/contract/contractList',
|
|
|
|
|
path: (this.form.is_simple || !this.form.is_purchase) ? '/contractAll' : '/contract/contractList',
|
|
|
|
|
query: {
|
|
|
|
|
keyword: this.form.name,
|
|
|
|
|
},
|
|
|
|
|
|