Commit ef3812d4 by liuliufashi

updater

parent d35dd5bb
...@@ -31,6 +31,9 @@ ...@@ -31,6 +31,9 @@
<template v-if="column.key === 'price'"> <template v-if="column.key === 'price'">
<div>{{ record.price / 100 }}</div> <div>{{ record.price / 100 }}</div>
</template> </template>
<template v-if="column.key === 'sellamount'">
<div>{{ record.sellamount / 100 }}</div>
</template>
<template v-if="column.key === 'status'"> <template v-if="column.key === 'status'">
<div v-if="record.status === 0" style="color: rgb(12, 191, 33);">正常</div> <div v-if="record.status === 0" style="color: rgb(12, 191, 33);">正常</div>
<div v-else style="color: #f56c6c;">已下架</div> <div v-else style="color: #f56c6c;">已下架</div>
...@@ -186,12 +189,12 @@ const columns = [ ...@@ -186,12 +189,12 @@ const columns = [
dataIndex: "sellcount", dataIndex: "sellcount",
}, },
{ {
title: "默认金额", title: "默认单价(元)",
key: "price", key: "price",
dataIndex: "price", dataIndex: "price",
}, },
{ {
title: "已售金额", title: "已售金额(元)",
key: "sellamount", key: "sellamount",
dataIndex: "sellamount", dataIndex: "sellamount",
}, },
......
<template> <template>
<div> <div>
<div style="display: flex;margin-bottom: 20px;"> <div style="display: flex;margin-bottom: 20px;">
<a-input-search v-model:value="value" placeholder="请输入订单号" style="width: 200px" @search="onSearchOrd" /> <a-input-search v-model:value="value" placeholder="请输入订单号" style="width: 200px" @search="onSearchOrd" />
</div> </div>
<a-table :columns="columns" :data-source="list" @change="tableChange" :pagination="pagination" :scroll="{ y: 'calc(100vh - 300px)' }"> <a-table :columns="columns" :data-source="list" @change="tableChange" :pagination="pagination"
:scroll="{ y: 'calc(100vh - 300px)' }">
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'amount'"> <template v-if="column.key === 'amount'">
<div v-if="record.amount"> <div v-if="record.amount">
<div>{{ record.amount/100 }}</div> <div>{{ record.amount / 100 }}</div>
</div> </div>
</template> </template>
...@@ -44,6 +45,17 @@ ...@@ -44,6 +45,17 @@
已支付 已支付
</div> </div>
</template> </template>
<template v-if="column.key === 'paytype'">
<div v-if="record.paytype === 1">
微信
</div>
<div v-else-if="record.paytype === 2">
支付宝
</div>
<div v-else>
未知
</div>
</template>
</template> </template>
</a-table> </a-table>
</div> </div>
...@@ -54,20 +66,29 @@ import { onFindPayInfo, onFindPayOrderid } from '@/api/index' ...@@ -54,20 +66,29 @@ import { onFindPayInfo, onFindPayOrderid } from '@/api/index'
import { getUid } from '@/utils/userInfo' import { getUid } from '@/utils/userInfo'
const columns = [ const columns = [
{ {
title: '订单号',
dataIndex: 'id',
key: 'id',
},
{
title: '商品名', title: '商品名',
dataIndex: 'subject', dataIndex: 'subject',
key: 'subject', key: 'subject',
}, },
{ {
title: '金额', title: '金额(元)',
dataIndex: 'amount', dataIndex: 'amount',
key: 'amount', key: 'amount',
}, },
{ {
title: '订单号', title: '订单时间',
dataIndex: 'id', dataIndex: 'updatetime',
key: 'id', key: 'updatetime',
},
{
title: '头像',
dataIndex: 'headimgurl',
key: 'headimgurl',
}, },
{ {
title: '昵称', title: '昵称',
...@@ -79,21 +100,19 @@ const columns = [ ...@@ -79,21 +100,19 @@ const columns = [
dataIndex: 'creator', dataIndex: 'creator',
key: 'creator', key: 'creator',
}, },
{ {
title: '头像', title: '支付渠道',
dataIndex: 'headimgurl', dataIndex: 'paytype',
key: 'headimgurl', key: 'paytype',
}, },
{ {
title: '状态', title: '状态',
dataIndex: 'status', dataIndex: 'status',
key: 'status', key: 'status',
}, },
{
title: '订单时间',
dataIndex: 'updatetime',
key: 'updatetime',
},
]; ];
let list = ref<any>([]) let list = ref<any>([])
let value = ref<any>('') let value = ref<any>('')
...@@ -134,20 +153,20 @@ const onSearch = async () => { ...@@ -134,20 +153,20 @@ const onSearch = async () => {
} }
} }
} }
const onSearchOrd =async()=>{ const onSearchOrd = async () => {
const uid = getUid() const uid = getUid()
const prarms= { const prarms = {
orderid:value.value, orderid: value.value,
uid uid
} }
const data:any = await onFindPayOrderid(prarms) const data: any = await onFindPayOrderid(prarms)
if (data.state === 1) { if (data.state === 1) {
list.value = [data.data] list.value = [data.data]
pagination.value.total = data.data.count pagination.value.total = data.data.count
} }
} }
const tableChange = async (e:any) => { const tableChange = async (e: any) => {
const uid = getUid() const uid = getUid()
const prarms: any = { const prarms: any = {
page: e.current, page: e.current,
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</a-checkbox> </a-checkbox>
<div style="margin-left:20px;">收款账户</div> <div style="margin-left:20px;">收款账户</div>
<div style="margin-left:20px;color: black;" v-if="listValue[index] &&listValue[index].paytype == 1">{{listValue[index].name}}</div> <div style="margin-left:20px;color: black;" v-if="listValue[index] &&listValue[index].paytype == 1">{{listValue[index].name}}</div>
<div style="margin-left:20px;color: black;" v-else-if="listValue[index] &&listValue[index].paytype == 2">{{listValue[index].payname}}</div> <div style="margin-left:20px;color: black;" v-else-if="listValue[index] &&listValue[index].paytype == 2">{{listValue[index].name}}</div>
<div style="margin-left:20px;color: black;" v-else>默认</div> <div style="margin-left:20px;color: black;" v-else>默认</div>
<div style="margin-left:20px;color: rgb(15, 64, 245);cursor: pointer;" @click="onSet(item.label)">设置</div> <div style="margin-left:20px;color: rgb(15, 64, 245);cursor: pointer;" @click="onSet(item.label)">设置</div>
</div> </div>
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<a-radio-group v-model:value="modalvalue"> <a-radio-group v-model:value="modalvalue">
<div v-for="item in list" :itemkey="item.id"> <div v-for="item in list" :itemkey="item.id">
<a-radio v-if="item.paytype == 1" :value="item.id" :lable="item.id" @change="onChangeRadioName(item)">{{item.name}}</a-radio> <a-radio v-if="item.paytype == 1" :value="item.id" :lable="item.id" @change="onChangeRadioName(item)">{{item.name}}</a-radio>
<a-radio v-else-if="item.paytype == 2" :value="item.id" :lable="item.id" @change="onChangeRadioName(item)">{{item.name}}</a-radio> <a-radio v-else-if="item.paytype == 2" :value="item.id" :lable="item.id" @change="onChangeRadioName(item)">{{item}}</a-radio>
</div> </div>
</a-radio-group> </a-radio-group>
</a-modal> </a-modal>
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
</div> </div>
</div> </div>
<div style="margin-top: 10px;" v-if="isShow"> <div style="margin-top: 10px;" v-if="isShow">
<a-table :dataSource="list" :columns="columns" :pagination="pagination" @change="tableChange" :scroll="{ y: 'calc(100vh - 270px)' }"> <a-table :dataSource="list" :columns="columns" :pagination="pagination" @change="tableChange"
:scroll="{ y: 'calc(100vh - 270px)' }">
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<div v-if="column.key == 'picurl'"> <div v-if="column.key == 'picurl'">
<div style="display:flex;align-items: center;"> <div style="display:flex;align-items: center;">
...@@ -19,7 +20,7 @@ ...@@ -19,7 +20,7 @@
</div> </div>
</div> </div>
<div v-else-if="column.key == 'status'" style="width:80px;"> <div v-else-if="column.key == 'status'" style="width:80px;">
<div v-if="record.status == 0" style="color: rgb(12, 191, 33);width:80px;" > <div v-if="record.status == 0" style="color: rgb(12, 191, 33);width:80px;">
正常 正常
</div> </div>
<div v-else-if="record.status == 1" style="color: #e6a23c;width:80px;"> <div v-else-if="record.status == 1" style="color: #e6a23c;width:80px;">
...@@ -30,22 +31,24 @@ ...@@ -30,22 +31,24 @@
</div> </div>
</div> </div>
<div v-if="column.key == 'payment'"> <div v-if="column.key == 'payment'">
{{record.payment/100}} {{ record.payment / 100 }}
</div> </div>
<div v-if="column.key == 'tags'" style="display:flex;"> <div v-if="column.key == 'tags'" style="display:flex;">
<a-button type="primary" @click="onEdit(record)" style=";width: 80px;" >编辑</a-button> <a-button type="primary" @click="onEdit(record)" style=";width: 80px;">编辑</a-button>
<a-button type="primary" style="margin-left: 10px;width: 90px;" @click="onCopy(record)">支付链接</a-button> <a-button type="primary" style="margin-left: 10px;width: 90px;" @click="onCopy(record)">支付链接
</a-button>
<!-- <a-button type="primary" style="margin-left: 20px;">统计</a-button> --> <!-- <a-button type="primary" style="margin-left: 20px;">统计</a-button> -->
<a-popconfirm title="确定下架这条数据" ok-text="确定" cancel-text="取消" @confirm="onDel(record)" style=";width: 80px;"> <a-popconfirm title="确定下架这条数据" ok-text="确定" cancel-text="取消" @confirm="onDel(record)"
style=";width: 80px;">
<a-button type="primary" style="margin-left: 10px">删除</a-button> <a-button type="primary" style="margin-left: 10px">删除</a-button>
</a-popconfirm> </a-popconfirm>
</div> </div>
<div v-if="column.key == 'time' && (record.starttime >= new Date())" style="color: #DDD222;"> <div v-if="column.key == 'time' && (record.starttime >= new Date())" style="color: #DDD222;">
{{moment(record.starttime).format('YYYY-MM-DD HH:mm')}} {{ moment(record.starttime).format('YYYY-MM-DD HH:mm') }}
</div> </div>
<div v-else-if="column.key == 'time' && (record.starttime<new Date())" style="color: red;"> <div v-else-if="column.key == 'time' && (record.starttime < new Date())" style="color: red;">
{{moment(record.starttime).format('YYYY-MM-DD HH:mm')}} {{ moment(record.starttime).format('YYYY-MM-DD HH:mm') }}
</div> </div>
</template> </template>
</a-table> </a-table>
...@@ -60,14 +63,17 @@ ...@@ -60,14 +63,17 @@
</div> </div>
<CreatePay @onBack="onBack"></CreatePay> <CreatePay @onBack="onBack"></CreatePay>
</div> </div>
<a-modal v-model:visible="visible" title="编辑" @ok="handleOk" :width="1000" > <a-modal v-model:visible="visible" title="编辑" @ok="handleOk" :width="1000">
<a-form :model="formState" name="basic" :label-col="{ span: 8 }" :wrapper-col="{ span: 16 }" <a-form :model="formState" name="basic" :label-col="{ span: 8 }" :wrapper-col="{ span: 16 }"
autocomplete="off" > autocomplete="off">
<a-form-item label="选择商品" name="subject" :label-col="{ span: 2 }" labelAlign="left"> <a-form-item label="选择商品" name="subject" :label-col="{ span: 2 }" labelAlign="left">
<div style="width:100%;display: flex;align-items: center;"> <div style="width:100%;display: flex;align-items: center;">
<a-select v-model:value="formState.subject" mode="multiple" style="width: 100%" placeholder="请选择商品" @focus="onSubSearch" @search="onSubSearch" @select="onSelect" @popupScroll="popupScroll"> <a-select v-model:value="formState.subject" mode="multiple" style="width: 100%"
<a-select-option v-for="item,index in listArray" :itemKey="item" :value="item.subject" :label="index" :key="index"> placeholder="请选择商品" @focus="onSubSearch" @search="onSubSearch" @select="onSelect"
<span>{{item.subject}}</span> @popupScroll="popupScroll">
<a-select-option v-for="item, index in listArray" :itemKey="item" :value="item.subject"
:label="index" :key="index">
<span>{{ item.subject }}</span>
</a-select-option> </a-select-option>
</a-select> </a-select>
</div> </div>
...@@ -78,15 +84,17 @@ ...@@ -78,15 +84,17 @@
<a-form-item label="支付金额" name="price" :label-col="{ span: 2 }" labelAlign="left"> <a-form-item label="支付金额" name="price" :label-col="{ span: 2 }" labelAlign="left">
<a-radio-group v-model:value="formState.paymentmodel" name="radioGroup" class="pay"> <a-radio-group v-model:value="formState.paymentmodel" name="radioGroup" class="pay">
<div style="display: flex;height: 35px;"> <div style="display: flex;height: 35px;">
<a-radio value="0" style="width:150px;" >商品默认金额</a-radio> <a-radio value="0" style="width:150px;">商品默认金额</a-radio>
<a-input-number style="width:200px;height: 35px;" :value="formState.price" :formatter="value => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')" <a-input-number style="width:200px;height: 35px;" :value="formState.price"
:parser="value => value.replace(/\$\s?|(,*)/g, '')" :disabled="true"/> :formatter="value => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')"
:parser="value => value.replace(/\$\s?|(,*)/g, '')" :disabled="true" />
<div style="width:50px;"></div> <div style="width:50px;"></div>
</div> </div>
<div style="display: flex;height: 35px;margin-top: 20px;"> <div style="display: flex;height: 35px;margin-top: 20px;">
<a-radio value="1" style="width:150px;">自定义金额</a-radio> <a-radio value="1" style="width:150px;">自定义金额</a-radio>
<a-input-number style="width:200px;height: 35px;" v-model:value="formState.payment" :formatter="value => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')" <a-input-number style="width:200px;height: 35px;" v-model:value="formState.payment"
:parser="value => value.replace(/\$\s?|(,*)/g, '')"/> :formatter="value => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')"
:parser="value => value.replace(/\$\s?|(,*)/g, '')" />
<div style="width:50px;"></div> <div style="width:50px;"></div>
</div> </div>
</a-radio-group> </a-radio-group>
...@@ -98,8 +106,7 @@ ...@@ -98,8 +106,7 @@
</a-form-item> </a-form-item>
<a-form-item label="结束时间" name="price" :label-col="{ span: 2 }" labelAlign="left"> <a-form-item label="结束时间" name="price" :label-col="{ span: 2 }" labelAlign="left">
<div style="display:flex"> <div style="display:flex">
<a-date-picker v-model:value="value4" :format="dateFormat" <a-date-picker v-model:value="value4" :format="dateFormat" :disabledDate="disabledDate" />
:disabledDate="disabledDate" />
<a-time-picker style="margin-left: 20px;" v-model:value="value5" format="HH:mm" /> <a-time-picker style="margin-left: 20px;" v-model:value="value5" format="HH:mm" />
</div> </div>
</a-form-item> </a-form-item>
...@@ -114,22 +121,22 @@ ...@@ -114,22 +121,22 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, defineExpose, onMounted,reactive } from 'vue'; import { ref, defineExpose, onMounted, reactive } from 'vue';
import { SelectProps,message } from 'ant-design-vue'; import { SelectProps, message } from 'ant-design-vue';
import { getUid } from '@/utils/userInfo' import { getUid } from '@/utils/userInfo'
import moment from 'moment'; import moment from 'moment';
import { onUpdateGoodsPay, onfindby,onfindWX,onfindAli,onDelectgoodpay,onFindbyLikeName,onFindBysub} from '@/api/index' import { onUpdateGoodsPay, onfindby, onfindWX, onfindAli, onDelectgoodpay, onFindbyLikeName, onFindBysub } from '@/api/index'
import CreatePay from './components/createpay/index.vue' import CreatePay from './components/createpay/index.vue'
import dayjs, { Dayjs } from 'dayjs'; import dayjs, { Dayjs } from 'dayjs';
import useClipboard from 'vue-clipboard3' import useClipboard from 'vue-clipboard3'
import { LeftOutlined} from "@ant-design/icons-vue"; import { LeftOutlined } from "@ant-design/icons-vue";
const dateFormat = 'YYYY/MM/DD'; const dateFormat = 'YYYY/MM/DD';
let listValue = ref<any>([]) let listValue = ref<any>([])
const { toClipboard } = useClipboard() const { toClipboard } = useClipboard()
const disabledDate = (current: any) => { const disabledDate = (current: any) => {
return current && current < moment().startOf("day") return current && current < moment().startOf("day")
} }
const uid =getUid() const uid = getUid()
const value = ref<string>(''); const value = ref<string>('');
const checkboxValue = ref<any>([]) const checkboxValue = ref<any>([])
const optionss = ref<Array<Object>>([]) const optionss = ref<Array<Object>>([])
...@@ -140,12 +147,12 @@ let isShow = ref(true) ...@@ -140,12 +147,12 @@ let isShow = ref(true)
let formState = ref<any>({ let formState = ref<any>({
}) })
const pagination = reactive({ const pagination = reactive({
total:0, total: 0,
page:1, page: 1,
defaultPageSize:10, defaultPageSize: 10,
showSizeChanger:true, showSizeChanger: true,
pageSizeOptions: ['5', '10', '15', '20'], pageSizeOptions: ['5', '10', '15', '20'],
onShowSizeChange:(current:any, pageSize:any)=>pageSize = pageSize onShowSizeChange: (current: any, pageSize: any) => pageSize = pageSize
}) })
const optionsWithDisabled = [ const optionsWithDisabled = [
{ value: '微信', label: '1' }, { value: '微信', label: '1' },
...@@ -165,10 +172,9 @@ const columns = [ ...@@ -165,10 +172,9 @@ const columns = [
key: 'goodsid', key: 'goodsid',
}, },
{ {
title: '商品价格', title: '商品单价(元)',
dataIndex: 'payment', dataIndex: 'payment',
key: 'payment', key: 'payment',
width: 100,
}, },
{ {
title: '状态', title: '状态',
...@@ -181,6 +187,7 @@ const columns = [ ...@@ -181,6 +187,7 @@ const columns = [
dataIndex: 'userid', dataIndex: 'userid',
key: 'userid', key: 'userid',
}, },
{ {
title: '备注', title: '备注',
dataIndex: 'remark', dataIndex: 'remark',
...@@ -205,52 +212,52 @@ const value5 = ref<any>() ...@@ -205,52 +212,52 @@ const value5 = ref<any>()
const showModal = () => { const showModal = () => {
visible.value = true; visible.value = true;
}; };
const handleOk =async(e: MouseEvent) => { const handleOk = async (e: MouseEvent) => {
const uid =getUid() const uid = getUid()
const starttime = moment(new Date()).format('YYYY-MM-DDTHH:mm:[00][Z]') const starttime = moment(new Date()).format('YYYY-MM-DDTHH:mm:[00][Z]')
const expireendtime = (moment(value4.value.$d).format('YYYY-MM-DD'))+(moment(value5.value.$d).format('THH:mm:[00][Z]')) const expireendtime = (moment(value4.value.$d).format('YYYY-MM-DD')) + (moment(value5.value.$d).format('THH:mm:[00][Z]'))
formState.value.fullphone = formState.value.fullphone?'0':'1' formState.value.fullphone = formState.value.fullphone ? '0' : '1'
formState.value.payment= formState.value.payment*100 formState.value.payment = formState.value.payment * 100
const params={ const params = {
...formState.value, ...formState.value,
uid, uid,
} }
const data:any = await onUpdateGoodsPay(params) const data: any = await onUpdateGoodsPay(params)
if(data.state == 1){ if (data.state == 1) {
visible.value = false; visible.value = false;
onSearch() onSearch()
} }
}; };
const onGetSearch= async() => { const onGetSearch = async () => {
const params = { const params = {
size:pagination.defaultPageSize, size: pagination.defaultPageSize,
page:pagination.page , page: pagination.page,
uid:getUid(), uid: getUid(),
subject:value.value subject: value.value
} }
const data =await onFindBysub(params) const data = await onFindBysub(params)
list.value = data.data.goods list.value = data.data.goods
pagination.total = data.data.count pagination.total = data.data.count
} }
const onEdit = (e: any) => { const onEdit = (e: any) => {
console.log(e,'e'); console.log(e, 'e');
formState.value= { formState.value = {
...e ...e
} }
value2.value = dayjs(moment(e.starttime).format(('YYYY/MM/DD')), dateFormat) value2.value = dayjs(moment(e.starttime).format(('YYYY/MM/DD')), dateFormat)
value3.value = dayjs(moment(e.starttime).format(('HH:mm')), 'HH:mm') value3.value = dayjs(moment(e.starttime).format(('HH:mm')), 'HH:mm')
value4.value = dayjs(moment(e.expireendtime).format(('YYYY-MM-DD')), dateFormat) value4.value = dayjs(moment(e.expireendtime).format(('YYYY-MM-DD')), dateFormat)
value5.value = dayjs(moment(e.expireendtime).format(('HH:mm')), 'HH:mm') value5.value = dayjs(moment(e.expireendtime).format(('HH:mm')), 'HH:mm')
formState.value.payment = formState.value.payment/100 formState.value.payment = formState.value.payment / 100
formState.value.paymentmodel = '1' formState.value.paymentmodel = '1'
formState.value.fullphone = formState.value.fullphone?true:false formState.value.fullphone = formState.value.fullphone ? true : false
showModal() showModal()
} }
const onSearch = async () => { const onSearch = async () => {
const params = { const params = {
size:pagination.defaultPageSize, size: pagination.defaultPageSize,
page:pagination.page , page: pagination.page,
name: value.value, name: value.value,
uid: getUid() uid: getUid()
} }
...@@ -258,14 +265,14 @@ const onSearch = async () => { ...@@ -258,14 +265,14 @@ const onSearch = async () => {
list.value = data.data.goods list.value = data.data.goods
pagination.total = data.data.count pagination.total = data.data.count
}; };
const tableChange=async(e:any)=>{ const tableChange = async (e: any) => {
let queryData = { let queryData = {
current_page:e.current,//当前页数 current_page: e.current,//当前页数
per_page:e.pageSize//每页显示条数 per_page: e.pageSize//每页显示条数
}; };
const params = { const params = {
size:queryData.per_page, size: queryData.per_page,
page:queryData.current_page , page: queryData.current_page,
uid: getUid() uid: getUid()
} }
const data = await onfindby(params) const data = await onfindby(params)
...@@ -279,8 +286,8 @@ const onBack = (e: Number) => { ...@@ -279,8 +286,8 @@ const onBack = (e: Number) => {
const onCreatePay = async () => { const onCreatePay = async () => {
isShow.value = !isShow.value isShow.value = !isShow.value
} }
const onCopy = async(e:any) => { const onCopy = async (e: any) => {
console.log(e,'e'); console.log(e, 'e');
const value = localStorage.getItem('url') || '' const value = localStorage.getItem('url') || ''
try { try {
...@@ -290,9 +297,9 @@ const onCopy = async(e:any) => { ...@@ -290,9 +297,9 @@ const onCopy = async(e:any) => {
console.error(e) console.error(e)
} }
} }
const onSet = async(index:string)=>{ const onSet = async (index: string) => {
const uid =getUid() const uid = getUid()
let data:any ={} let data: any = {}
if (index == '1') { if (index == '1') {
data = await onfindWX(uid); data = await onfindWX(uid);
} else if (index == '2') { } else if (index == '2') {
...@@ -303,11 +310,11 @@ const onSet = async(index:string)=>{ ...@@ -303,11 +310,11 @@ const onSet = async(index:string)=>{
} }
const onDel = async (e: any) => { const onDel = async (e: any) => {
const prarms = { const prarms = {
uid:getUid(), uid: getUid(),
goodspayid:e.id goodspayid: e.id
} }
const data:any = await onDelectgoodpay(prarms) const data: any = await onDelectgoodpay(prarms)
if(data.state == 1){ if (data.state == 1) {
await onSearch() await onSearch()
} }
} }
...@@ -322,32 +329,32 @@ const onFinishFailed = (errorInfo: any) => { ...@@ -322,32 +329,32 @@ const onFinishFailed = (errorInfo: any) => {
const onSelectCheckboxValue = (e: any, index: any) => { const onSelectCheckboxValue = (e: any, index: any) => {
checkboxValue.value[index] = e checkboxValue.value[index] = e
} }
const onSelect =(e:any,opt:any)=>{ const onSelect = (e: any, opt: any) => {
formState.value.subject = '' formState.value.subject = ''
const goodspayditch = formState.value.goodspayditch const goodspayditch = formState.value.goodspayditch
const id = formState.value.id const id = formState.value.id
formState.value ={ formState.value = {
goodspayditch:goodspayditch, goodspayditch: goodspayditch,
...opt.itemKey, ...opt.itemKey,
id id
} }
formState.value.price = formState.value.price/100 formState.value.price = formState.value.price / 100
formState.value.paymentmodel= '1' formState.value.paymentmodel = '1'
} }
const onSubSearch = async(value:any)=>{ const onSubSearch = async (value: any) => {
const uid = getUid(); const uid = getUid();
const params = { const params = {
name: value.target?'':value, name: value.target ? '' : value,
size:10, size: 10,
page:1, page: 1,
uid, uid,
}; };
const data = await onFindbyLikeName(params); const data = await onFindbyLikeName(params);
listArray.value = data.data.goods listArray.value = data.data.goods
pagination.value.total =data.data.count pagination.value.total = data.data.count
} }
const popupScroll = ()=>{ const popupScroll = () => {
console.log(1); console.log(1);
} }
onMounted(async () => { onMounted(async () => {
...@@ -397,9 +404,9 @@ defineExpose({ ...@@ -397,9 +404,9 @@ defineExpose({
border: none; border: none;
height: 30px; height: 30px;
width: 50px; width: 50px;
} }
.left { .left {
border-left: 1px solid rgb(236, 236, 236); border-left: 1px solid rgb(236, 236, 236);
border-top: 1px solid rgb(236, 236, 236); border-top: 1px solid rgb(236, 236, 236);
border-bottom: 1px solid rgb(236, 236, 236); border-bottom: 1px solid rgb(236, 236, 236);
...@@ -407,5 +414,5 @@ defineExpose({ ...@@ -407,5 +414,5 @@ defineExpose({
border-right: 1px solid rgb(236, 236, 236); border-right: 1px solid rgb(236, 236, 236);
border-bottom-left-radius: 25px; border-bottom-left-radius: 25px;
border-top-left-radius: 25px; border-top-left-radius: 25px;
} }
</style> </style>
\ No newline at end of file
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