|
@@ -39,7 +39,7 @@
|
|
|
价格显示<a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
|
|
|
</a-tooltip>
|
|
|
</template>
|
|
|
- 非铺货产品——{{ basicInfoData&&basicInfoData.showPrice ? '显示': '不显示' }}价格
|
|
|
+ 非铺货产品——{{ showPrice == '1' ? '显示': '不显示' }}价格
|
|
|
</a-descriptions-item>
|
|
|
</a-descriptions>
|
|
|
</a-collapse-panel>
|
|
@@ -155,7 +155,7 @@ import bindProductModal from './bindProductModal.vue'
|
|
|
import ImportGuideModal from './importGuideModal.vue'
|
|
|
import basicInfoModal from './basicInfoModal.vue'
|
|
|
import importHuoweiModal from './importHuoweiModal.vue'
|
|
|
-import { shelfDetail, shelfProductList, shelfProductBatchInsert, delShelfPlaceSn } from '@/api/shelf'
|
|
|
+import { shelfDetail, shelfProductList, shelfProductBatchInsert, delShelfPlaceSn, getShelfPriceShow } from '@/api/shelf'
|
|
|
export default {
|
|
|
name: 'ShelfMonitoringWarehousing',
|
|
|
components: { STable, VSelect, commonModal, bindProductModal, addHwModal, ImportGuideModal, basicInfoModal, importHuoweiModal },
|
|
@@ -206,10 +206,20 @@ export default {
|
|
|
modalType: null,
|
|
|
openInfoModal: false,
|
|
|
openHwModal: false,
|
|
|
- openImportModal: false
|
|
|
+ openImportModal: false,
|
|
|
+ showPrice: ''
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 获取价格显示设置
|
|
|
+ getShelfPriceShow () {
|
|
|
+ getShelfPriceShow({ shelfSn: this.$route.params.sn }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ this.basicInfoData.showPrice = res.data.paramValue
|
|
|
+ this.showPrice = res.data.paramValue
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 导入或新增货位
|
|
|
addHW (type) {
|
|
|
// 导入货位
|
|
@@ -239,6 +249,7 @@ export default {
|
|
|
shelfDetail({ sn: this.$route.params.sn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.basicInfoData = res.data
|
|
|
+ this.getShelfPriceShow()
|
|
|
} else {
|
|
|
this.basicInfoData = null
|
|
|
}
|