|
@@ -957,6 +957,41 @@ export default {
|
|
|
},
|
|
|
|
|
|
clickSubmitForm() {
|
|
|
+ if (this.websitNumber === "GZ") {
|
|
|
+ if (!this.detailData.serviceId) {
|
|
|
+ return this.$errorMsg("请选择业务员");
|
|
|
+ }
|
|
|
+ this.$confirm("此操作将审批订单, 是否继续?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ const saleManItem = this.salesmanList.find(
|
|
|
+ (o) => o.adminUserId == this.detailData.serviceId
|
|
|
+ );
|
|
|
+ const params = JSON.parse(JSON.stringify(this.detailData));
|
|
|
+ params.enginInfoId = this.listItem.enginInfoId;
|
|
|
+ params.mainId = this.listItem.mainId;
|
|
|
+ params.examineResult = this.examineForm.examineResult;
|
|
|
+ params.examineNote = this.examineForm.remark;
|
|
|
+ params.isPlanOrder = this.examineForm.isPlanOrder;
|
|
|
+ params.serviceName = saleManItem.nickName;
|
|
|
+ params.items = this.goodsList;
|
|
|
+ this.formLoading = true;
|
|
|
+ examineEngin(params)
|
|
|
+ .then((res) => {
|
|
|
+ this.$successMsg("审批成功");
|
|
|
+ this.goBack();
|
|
|
+ this.$parent.getList();
|
|
|
+ })
|
|
|
+ .finally((res) => {
|
|
|
+ this.formLoading = false;
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.$confirm("请确认信息单是否未计划单,请勾选是否计划单选项", "提示", {
|
|
|
confirmButtonText: "是计划单",
|
|
|
cancelButtonText: "不是计划单",
|