Commit 40c6242f authored by 1483922988@qq.com's avatar 1483922988@qq.com

6

parent 76798144
......@@ -1074,9 +1074,8 @@ export function copyOrder(orderId) {
// 强制到仓
export function order_warehouse_check_force(data) {
return request({
url: "/order/order-warehouse-check/force",
method: "post",
data
url: "/order/order-warehouse-check/force/" + data.orderId,
method: "post"
})
}
......@@ -1090,9 +1089,8 @@ export function order_warehouse_check_query(id) {
// 撤销到仓
export function order_warehouse_check_revoke(data) {
return request({
url: "/order/order-warehouse-check/revoke",
method: "post",
data
url: "/order/order-warehouse-check/revoke/" + data.orderId,
method: "post"
})
}
// 到仓修改
......
......@@ -301,11 +301,13 @@ export default {
order_warehouse_check_revoke(orderId) {
this.$confirm(this.$t("确定要撤销到仓么?")).then(async () => {
let r = await order_warehouse_check_revoke({ orderId })
this.getLoadGoodsList()
})
},
order_warehouse_check_force(orderId) {
this.$confirm(this.$t("确定要强制到仓么?")).then(async () => {
let r = await order_warehouse_check_force({ orderId })
this.getLoadGoodsList()
})
},
getTotlContent,
......
......@@ -386,7 +386,7 @@ export default {
console.log(r)
this.form.customerId = this.customerId
this.form.number = r.data.number
this.form.nubmerId = r.data.nubmerId
this.form.numberId = r.data.numberId
this.form.numberVersion = r.data.numberVersion
this.form.status = 0
this.init()
......@@ -407,7 +407,7 @@ export default {
followTime: row.nextTime,
nextTime: "",
number: r.data.number,
nubmerId: r.data.nubmerId,
numberId: r.data.numberId,
numberVersion: r.data.numberVersion,
nextPlan: "",
status: 0
......
......@@ -234,7 +234,7 @@
<el-input-number v-model="form.weightYearly" :min="1" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-col :span="12">
<el-form-item :label="$t('主要竞争对手')" prop="competitorIds">
<el-select clearable v-model="form.competitorIds" :placeholder="$t('请选择')" @change="changeCompetitor">
<el-option v-for="item in competitorList" :key="item.id" :label="item.name" :value="item.id" />
......
......@@ -411,8 +411,9 @@
</div>
<div class="form-section">
<el-form-item :label="$t('竞争对手')" prop="competitor">
<el-select clearable v-model="form.competitor" :placeholder="$t('请选择')" class="w-200">
<el-select clearable v-model="form.competitor" :placeholder="$t('请选择')" class="w-200" @change="changeCompetitor">
<el-option v-for="item in competitorList" :key="item.id" :label="item.name" :value="item.id" />
<el-option :label="$t('其他')" :value="0" />
</el-select>
</el-form-item>
<el-form-item :label="$t('重要程度')" prop="importance">
......@@ -563,7 +564,7 @@ import { getCustomerContactsSelect } from "@/api/ecw/customerContacts"
import Decimal from "decimal.js"
import getQuote from "@/views/ecw/customer/index.vue"
import { getRegionList } from "@/api/ecw/order"
import { competitorListAll } from "@/api/ecw/customer"
import { competitorListAll, addCompetitor } from "@/api/ecw/customer"
import { getCustomerContactsListByCustomer } from "@/api/ecw/customerContacts"
import { parse } from "querystring"
......@@ -1435,6 +1436,27 @@ export default {
arr.push(tmp)
})
return arr
},
changeCompetitor(val) {
if (val == 0) {
this.$prompt("请输入主要竞争对手", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消"
}).then((data) => {
console.log(data)
addCompetitor({
name: data.value
}).then((r) => {
this.$message.success("添加成功!")
competitorListAll().then((res) => {
this.competitorList = res.data
this.$nextTick(() => {
this.form.competitor = r.data
})
})
})
})
}
}
}
}
......
......@@ -161,7 +161,7 @@
</el-table-column>
<el-table-column :label="$t('储位')" prop="orderLocationBackVOList" width="150px">
<template v-slot="{ row, column, $index }">
<warehouse-area-select v-if="visible" v-model="form.table[$index].orderLocationBackVOList" :order-id="orderId" :order-item-id="warehousing.orderItemId" :warehouse-in-id="form.table[$index].id" :warehouse-id="warehouseId" :is-editing="false"></warehouse-area-select>
<warehouse-area-select v-if="visible" v-model="form.table[$index].orderLocationBackVOList" :order-id="orderId" :order-item-id="warehousing.orderItemId" :warehouse-in-id="form.table[$index].id" :warehouse-id="warehouseId" :is-editing="false" readonly></warehouse-area-select>
</template>
</el-table-column>
<el-table-column :label="$t('备注')">
......
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