Merge branch 'master' of https://codeup.aliyun.com/bsdtec/biz-pc-cloud
This commit is contained in:
commit
5da50dbc19
6 files changed
+25
-19
No files matched your search
@@ -39,7 +39,7 @@ VITE_VERIFY_IMAGE_ENABLE = false
|
|||||||
VITE_WEBSOCKET_ENABLE = false
|
VITE_WEBSOCKET_ENABLE = false
|
||||||
|
|
||||||
# 是否开启注册
|
# 是否开启注册
|
||||||
VITE_REGISTER_ENABLE = true
|
VITE_REGISTER_ENABLE = false
|
||||||
|
|
||||||
# 是否开启租户自动选择 (根据租户域名)
|
# 是否开启租户自动选择 (根据租户域名)
|
||||||
VITE_AUTO_TENANT = false
|
VITE_AUTO_TENANT = false
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import request from "/@/utils/request"
|
||||||
|
|
||||||
|
export function codeList(query?: Object) {
|
||||||
|
return request({
|
||||||
|
url: '/wallet/wallet-code-use/code-list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -1,13 +1,5 @@
|
|||||||
import request from "/@/utils/request"
|
import request from "/@/utils/request"
|
||||||
|
|
||||||
export function codeList(query?: Object) {
|
|
||||||
return request({
|
|
||||||
url: '/wallet/wallet-stride/code-list',
|
|
||||||
method: 'get',
|
|
||||||
params: query
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function pageJoin(query?: Object) {
|
export function pageJoin(query?: Object) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wallet/wallet-stride/page-join',
|
url: '/wallet/wallet-stride/page-join',
|
||||||
|
|||||||
@@ -36,13 +36,13 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="12" class="mb20">
|
<el-col :span="12" class="mb20">
|
||||||
<el-form-item label="进价/单位分" prop="purchasePrice">
|
<el-form-item label="进价" prop="purchasePrice">
|
||||||
<el-input-number v-model="form.purchasePrice" placeholder="请输入进价" />
|
<el-input-number v-model="form.purchasePrice" placeholder="请输入进价" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="12" class="mb20">
|
<el-col :span="12" class="mb20">
|
||||||
<el-form-item label="零售价/单位分" prop="retailPrice">
|
<el-form-item label="零售价" prop="retailPrice">
|
||||||
<el-input-number v-model="form.retailPrice" placeholder="请输入零售价" />
|
<el-input-number v-model="form.retailPrice" placeholder="请输入零售价" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|||||||
@@ -66,9 +66,10 @@
|
|||||||
<el-tag v-if="scope.row.status == 1" type="danger">停销</el-tag>
|
<el-tag v-if="scope.row.status == 1" type="danger">停销</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="packageNum" label="内装数量" show-overflow-tooltip min-width="100" />
|
<el-table-column prop="packageNum" label="内装数量" show-overflow-tooltip />
|
||||||
<el-table-column prop="purchasePrice" label="进价/单位分" show-overflow-tooltip min-width="100" />
|
<el-table-column prop="purchasePrice" label="进价" show-overflow-tooltip />
|
||||||
<el-table-column prop="retailPrice" label="零售价/单位分" show-overflow-tooltip min-width="120" />
|
<el-table-column prop="retailPrice" label="零售价" show-overflow-tooltip />
|
||||||
|
<!-- <el-table-column prop="spuId" label="spuId" show-overflow-tooltip /> -->
|
||||||
<el-table-column prop="promotionPrice" label="促销价" show-overflow-tooltip />
|
<el-table-column prop="promotionPrice" label="促销价" show-overflow-tooltip />
|
||||||
<el-table-column prop="costPrice" label="成本价" show-overflow-tooltip />
|
<el-table-column prop="costPrice" label="成本价" show-overflow-tooltip />
|
||||||
<el-table-column label="操作" width="150" fixed="right">
|
<el-table-column label="操作" width="150" fixed="right">
|
||||||
|
|||||||
@@ -19,6 +19,11 @@
|
|||||||
:header-cell-style="tableStyle.headerCellStyle" @sort-change="sortChangeHandle">
|
:header-cell-style="tableStyle.headerCellStyle" @sort-change="sortChangeHandle">
|
||||||
<el-table-column type="index" label="#" width="100" />
|
<el-table-column type="index" label="#" width="100" />
|
||||||
<el-table-column prop="username" label="申请人" />
|
<el-table-column prop="username" label="申请人" />
|
||||||
|
<el-table-column prop="code" label="申请人" >
|
||||||
|
<template #default="{ row }">
|
||||||
|
<preview-image :src="row.code" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="status" label="是否使用">
|
<el-table-column prop="status" label="是否使用">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<dict-tag :options="yes_no_type" :value="row.status" />
|
<dict-tag :options="yes_no_type" :value="row.status" />
|
||||||
@@ -37,14 +42,13 @@
|
|||||||
|
|
||||||
<script setup lang="ts" name="code-use-table">
|
<script setup lang="ts" name="code-use-table">
|
||||||
import { BasicTableProps, useTable } from "/@/hooks/table";
|
import { BasicTableProps, useTable } from "/@/hooks/table";
|
||||||
import { codeList } from "/@/api/wallet/wallet-stride";
|
import { codeList } from "/@/api/wallet/wallet-code-use";
|
||||||
import { useDict } from '/@/hooks/dict';
|
import { useDict } from '/@/hooks/dict';
|
||||||
// 定义变量内容
|
// 定义变量内容
|
||||||
const visible = ref(false)
|
const visible = ref(false)
|
||||||
const loading = ref(false)
|
|
||||||
const queryRef = ref()
|
const queryRef = ref()
|
||||||
// 定义查询字典
|
// 定义查询字典
|
||||||
const { check_status, yes_no_type } = useDict('check_status', 'yes_no_type');
|
const { yes_no_type } = useDict('check_status', 'yes_no_type');
|
||||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||||
queryForm: {},
|
queryForm: {},
|
||||||
pageList: codeList
|
pageList: codeList
|
||||||
@@ -54,10 +58,10 @@ const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, do
|
|||||||
// 打开弹窗
|
// 打开弹窗
|
||||||
const openDialog = (id: string) => {
|
const openDialog = (id: string) => {
|
||||||
visible.value = true
|
visible.value = true
|
||||||
state.queryForm.id = ''
|
state.queryForm.bizId = ''
|
||||||
// 获取walletStride信息
|
// 获取walletStride信息
|
||||||
if (id) {
|
if (id) {
|
||||||
state.queryForm.id = id
|
state.queryForm.bizId = id
|
||||||
getDataList()
|
getDataList()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user