|
@@ -31,7 +31,7 @@
|
|
|
</template>
|
|
|
<custList ref="custList" :isEnabled="true" @change="custChange"></custList>
|
|
|
</a-form-model-item>
|
|
|
- <a-form-model-item prop="showPrice">
|
|
|
+ <!-- <a-form-model-item prop="showPrice">
|
|
|
<template slot="label">
|
|
|
<a-tooltip placement="top">
|
|
|
<template slot="title">
|
|
@@ -50,7 +50,7 @@
|
|
|
非铺货产品——不显示价格
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
- </a-form-model-item>
|
|
|
+ </a-form-model-item> -->
|
|
|
</a-form-model>
|
|
|
<div class="btn-cont">
|
|
|
<a-button type="primary" id="shelfSet-basicInfo-modal-save" @click="handleSave">保存</a-button>
|
|
@@ -64,7 +64,8 @@
|
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
import { VSelect } from '@/components'
|
|
|
import custList from '@/views/common/custList.vue'
|
|
|
-import { shelfSave, updateShelfPriceShow } from '@/api/shelf'
|
|
|
+// , updateShelfPriceShow
|
|
|
+import { shelfSave } from '@/api/shelf'
|
|
|
export default {
|
|
|
name: 'ShelfSetBasicInfoModal',
|
|
|
components: { VSelect, custList },
|
|
@@ -121,22 +122,28 @@ export default {
|
|
|
_this.spinning = true
|
|
|
shelfSave(form).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
+ _this.$message.success(res.message)
|
|
|
+ setTimeout(() => {
|
|
|
+ _this.isShow = false
|
|
|
+ _this.$emit('ok', res.data)
|
|
|
+ _this.spinning = false
|
|
|
+ }, 100)
|
|
|
// 更新价格显示
|
|
|
- updateShelfPriceShow({
|
|
|
- shelfSn: form.shelfSn,
|
|
|
- paramValue: form.showPrice
|
|
|
- }).then(ret => {
|
|
|
- if (ret.status == 200) {
|
|
|
- _this.$message.success(ret.message)
|
|
|
- setTimeout(() => {
|
|
|
- _this.isShow = false
|
|
|
- _this.$emit('ok', res.data)
|
|
|
- _this.spinning = false
|
|
|
- }, 100)
|
|
|
- } else {
|
|
|
- _this.spinning = false
|
|
|
- }
|
|
|
- })
|
|
|
+ // updateShelfPriceShow({
|
|
|
+ // shelfSn: form.shelfSn,
|
|
|
+ // paramValue: form.showPrice
|
|
|
+ // }).then(ret => {
|
|
|
+ // if (ret.status == 200) {
|
|
|
+ // _this.$message.success(ret.message)
|
|
|
+ // setTimeout(() => {
|
|
|
+ // _this.isShow = false
|
|
|
+ // _this.$emit('ok', res.data)
|
|
|
+ // _this.spinning = false
|
|
|
+ // }, 100)
|
|
|
+ // } else {
|
|
|
+ // _this.spinning = false
|
|
|
+ // }
|
|
|
+ // })
|
|
|
} else {
|
|
|
_this.spinning = false
|
|
|
}
|