Commit 85014ccf authored by liwenhong's avatar liwenhong

fix:email

parent d9329b8f
...@@ -124,6 +124,7 @@ ...@@ -124,6 +124,7 @@
v-model="commodityForm.inventory_total" v-model="commodityForm.inventory_total"
placeholder="" placeholder=""
@input="inventoryIpt" @input="inventoryIpt"
:rules="[{ required: true, message: '请输入库存' }]"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<div style="display: inline-block; height: 42px; margin-left: 33px"> <div style="display: inline-block; height: 42px; margin-left: 33px">
...@@ -234,8 +235,9 @@ ...@@ -234,8 +235,9 @@
<script> <script>
import { GOODS_URI } from "../../../../../server/config"; import { GOODS_URI } from "../../../../../server/config";
import store from "../../../../store/index";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import { getCookie } from "@/utils/util";
import { import {
addGoods, addGoods,
getBusinessList, getBusinessList,
...@@ -427,7 +429,8 @@ export default { ...@@ -427,7 +429,8 @@ export default {
marketing_name: this.editInfo.marketing_name, marketing_name: this.editInfo.marketing_name,
marketing_type: "4", marketing_type: "4",
ota_id: this.commodityForm.business1, ota_id: this.commodityForm.business1,
op_cur_user: store.state.userInfo.email, op_cur_user: getCookie('username'),
// op_cur_user: store.state.userInfo.email,
goods_sku_id: goodsSkuID, goods_sku_id: goodsSkuID,
}); });
if (res.code == 0) { if (res.code == 0) {
...@@ -494,7 +497,7 @@ export default { ...@@ -494,7 +497,7 @@ export default {
marketing_type: "4", marketing_type: "4",
price: this.commodityForm.price, price: this.commodityForm.price,
ota_id: this.commodityForm.business1, ota_id: this.commodityForm.business1,
op_cur_user: store.state.userInfo.email, op_cur_user: getCookie('username'),
}); });
if (res.code == 0) { if (res.code == 0) {
ElMessage.success({ ElMessage.success({
......
...@@ -55,6 +55,8 @@ import { ElMessage } from "element-plus"; ...@@ -55,6 +55,8 @@ import { ElMessage } from "element-plus";
import infoEditing from "./components/infoEditing.vue"; import infoEditing from "./components/infoEditing.vue";
import addProduc from "./components/addProduc.vue"; import addProduc from "./components/addProduc.vue";
import spellOrderSet from "./components/spellOrderSet.vue"; import spellOrderSet from "./components/spellOrderSet.vue";
import { getCookie } from "@/utils/util";
import { import {
addMarketing, addMarketing,
marketingInfo, marketingInfo,
...@@ -156,7 +158,7 @@ export default { ...@@ -156,7 +158,7 @@ export default {
goods_sku_id: this.goodsSkuIDArr.join(","), goods_sku_id: this.goodsSkuIDArr.join(","),
marketing_name: this.$refs.infoEdit.infoEditForm.title, marketing_name: this.$refs.infoEdit.infoEditForm.title,
marketing_type: "4", marketing_type: "4",
op_cur_user: this.$store.state.userInfo.email, op_cur_user: getCookie('username'),
start_time: dayJs(this.startDate).format("YYYY-MM-DD HH:mm:ss"), start_time: dayJs(this.startDate).format("YYYY-MM-DD HH:mm:ss"),
end_time: dayJs(this.endDate).format("YYYY-MM-DD HH:mm:ss"), end_time: dayJs(this.endDate).format("YYYY-MM-DD HH:mm:ss"),
pindan_pic: picList, pindan_pic: picList,
......
...@@ -182,6 +182,8 @@ ...@@ -182,6 +182,8 @@
<script> <script>
import { postBusiness, opCommit, opBusinessUpdate } from "@/service/enterprise"; import { postBusiness, opCommit, opBusinessUpdate } from "@/service/enterprise";
import { API_INTERNAL_URI } from "../../../../server/config"; import { API_INTERNAL_URI } from "../../../../server/config";
import { getCookie } from "@/utils/util";
export default { export default {
props: { props: {
enterpriseId: { type: Number }, enterpriseId: { type: Number },
...@@ -402,7 +404,7 @@ export default { ...@@ -402,7 +404,7 @@ export default {
data_from: 3, data_from: 3,
data_type, data_type,
mobile, mobile,
proxy_user_name: this.$store.state.userInfo.email proxy_user_name: getCookie('username')
}; };
postBusiness(enterpriseQuery).then(res => { postBusiness(enterpriseQuery).then(res => {
if (res.code !== 0) return this.$message.error(res.reason); if (res.code !== 0) return this.$message.error(res.reason);
......
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