|
@@ -130,7 +130,7 @@ import { gainUser } from "@/api/basicData/customerInquiry";
|
|
|
import { getUserInfo } from "@/api/system/user";
|
|
|
import { getDeptTree } from "@/api/system/dept";
|
|
|
import { getCurrentDate } from "@/util/date";
|
|
|
-import { dataDetail, typeSave, removeGoods, pleaseCheck, getGoodsDescList } from "@/api/standAlone/saleLeads";
|
|
|
+import { dataDetail, typeSave, removeGoods, pleaseCheck, getGoodsDescList, leadsSubmit } from "@/api/standAlone/saleLeads";
|
|
|
import { contrastObj, contrastList } from "@/util/contrastData";
|
|
|
import check from "@/components/check/check";
|
|
|
import checkSchedule from "@/components/check/checkSchedule";
|
|
@@ -454,10 +454,20 @@ export default {
|
|
|
...this.form,
|
|
|
itemList: this.dataList
|
|
|
}
|
|
|
- this.$router.push({
|
|
|
- path: '/workManagement/main-items/list',
|
|
|
- query: { data: data }
|
|
|
- });
|
|
|
+ this.btnLoading = true;
|
|
|
+ leadsSubmit(data).then(res => {
|
|
|
+ this.$message.success('提交成功')
|
|
|
+ // this.$message({ type: "success", message: this.form.id ? "修改成功!" : "新增成功!" });
|
|
|
+ // this.queryData(res.data.data);
|
|
|
+ data.corpId=res.data.data
|
|
|
+ this.$router.push({
|
|
|
+ path: '/workManagement/main-items/list',
|
|
|
+ query: { data: data }
|
|
|
+ });
|
|
|
+ }).finally(() => {
|
|
|
+ this.btnLoading = false;
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
getCropId(row) {
|
|
|
this.form.corpId = row
|