商品价格换算
This commit is contained in:
1 parent
40896dfb18
commit
39bc822b2c
2 files changed
+6
-6
No files matched your search
@@ -194,7 +194,6 @@ const uploadError = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.is-error {
|
.is-error {
|
||||||
.upload {
|
.upload {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24" class="mb20">
|
<el-col :span="24" class="mb20">
|
||||||
<el-form-item label="商品封面图" prop="picUrl">
|
<el-form-item label="商品封面图" prop="picUrl">
|
||||||
<upload-img v-model="form.picUrl"></upload-img>
|
<upload-img v-model:imageUrl="form.picUrl"></upload-img>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24" class="mb20">
|
<el-col :span="24" class="mb20">
|
||||||
@@ -75,7 +75,7 @@ import { useDict } from '/@/hooks/dict';
|
|||||||
import { useMessage } from '/@/hooks/message';
|
import { useMessage } from '/@/hooks/message';
|
||||||
import { getObj, addObj, putObj } from '/@/api/canteen/canteenOnlineSpu';
|
import { getObj, addObj, putObj } from '/@/api/canteen/canteenOnlineSpu';
|
||||||
import { rule } from '/@/utils/validate';
|
import { rule } from '/@/utils/validate';
|
||||||
import { storePrice } from '/@/utils/formatMoney';
|
import { displayPrice, storePrice } from '/@/utils/formatMoney';
|
||||||
const emit = defineEmits(['refresh']);
|
const emit = defineEmits(['refresh']);
|
||||||
|
|
||||||
// 定义变量内容
|
// 定义变量内容
|
||||||
@@ -159,9 +159,10 @@ const getcanteenOnlineSpuData = (id: string) => {
|
|||||||
loading.value = true;
|
loading.value = true;
|
||||||
getObj(id)
|
getObj(id)
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
// Object.assign(form, res.data, {
|
Object.assign(form, res.data, {
|
||||||
// res.data.
|
price: displayPrice(res.data.price, ''),
|
||||||
// });
|
marketPrice: displayPrice(res.data.marketPrice, ''),
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
|
|||||||
Reference in new issue
Block a user