Commit c9a5a0fc authored by tanjunxin's avatar tanjunxin

fix: 解决追加组合单接口冲突

parent 4a6e6836
......@@ -38,6 +38,15 @@ export function addCombination(data) {
// 新增生产组合单
export function batchAddCombination(data) {
return request({
url: '/pro/combination/batchAdd',
method: 'post',
data: data
})
}
// 生产组合单-新增-追加组合单
export function insertCombination(data) {
return request({
url: '/pro/combination/insert',
method: 'post',
......
......@@ -182,7 +182,7 @@ import VendorSelect from "@/components/vendorSelect/single.vue";
import { genCode } from "@/api/system/autocode/rule";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import { getToken } from "@/utils/auth";
import { batchAddCombination } from "@/api/mes/pro/combination";
import { insertCombination } from "@/api/mes/pro/combination";
export default {
name: "chooseWorkorderForComb",
......@@ -324,7 +324,7 @@ export default {
});
});
if (!shouldExit) {
batchAddCombination(params).then((response) => {
insertCombination(params).then((response) => {
if (response.length == 0) {
this.$modal.msgWarning("不允许组合");
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment