修改
This commit is contained in:
parent
7f5f5ad273
commit
d2c09876b0
4
.env.dev
4
.env.dev
@ -6,7 +6,7 @@ VITE_OPERATOR_PLUGIN_BASE_URL=${VITE_BASE_URL}:8099
|
||||
VITE_AI_SHOP_BASE_URL=http://192.168.0.115:8081
|
||||
VITE_WEBSOCKET_BASE_URL=ws://${VITE_HOST}:7025/copyright
|
||||
# 18634604067
|
||||
VITE_USERID=80d3365e-0597-4988-979e-18ef1c3ec671
|
||||
# VITE_USERID=e3e40f95-7a3f-4b53-a1a0-51dd4e881d74
|
||||
# VITE_USERID=80d3365e-0597-4988-979e-18ef1c3ec671
|
||||
VITE_USERID=e3e40f95-7a3f-4b53-a1a0-51dd4e881d74
|
||||
# VITE_CURRENT_THEME=fzkj
|
||||
VITE_CURRENT_THEME=mzw
|
||||
|
@ -4,5 +4,5 @@ VITE_OPERATOR_BASE_URL=${VITE_BASE_URL}
|
||||
VITE_OPERATOR_PLUGIN_BASE_URL=${VITE_BASE_URL}
|
||||
VITE_AI_SHOP_BASE_URL=${VITE_BASE_URL}
|
||||
VITE_WEBSOCKET_BASE_URL=/copyright
|
||||
VITE_USERID=''
|
||||
VITE_USERID=
|
||||
VITE_CURRENT_THEME=fzkj
|
||||
|
2
.env.mzw
2
.env.mzw
@ -4,5 +4,5 @@ VITE_OPERATOR_BASE_URL=${VITE_BASE_URL}
|
||||
VITE_OPERATOR_PLUGIN_BASE_URL=${VITE_BASE_URL}
|
||||
VITE_AI_SHOP_BASE_URL=${VITE_BASE_URL}
|
||||
VITE_WEBSOCKET_BASE_URL=/copyright
|
||||
VITE_USERID=''
|
||||
VITE_USERID=
|
||||
VITE_CURRENT_THEME=mzw
|
||||
|
@ -8,6 +8,7 @@ import useMessage from "antd/es/message/useMessage";
|
||||
import './File.css'
|
||||
const { TextArea } = Input;
|
||||
export default function File(props: any) {
|
||||
const [upFileArray, setUpFileArray] = useState<any>([]) // 上传的文件数组
|
||||
// 自定义验证函数
|
||||
const validateContentOrFile = (_rule: any, _value: any, callback: (error?: string) => void, form: any) => {
|
||||
const { upCorrectionRemark, upFile } = form.getFieldsValue();
|
||||
@ -249,7 +250,7 @@ export default function File(props: any) {
|
||||
render={(_text, record: any) => (
|
||||
<Space size="middle">
|
||||
<span className='transaction-order-table-btn' onClick={() => {
|
||||
console.log(record.correctionId);
|
||||
// console.log(record.correctionId);
|
||||
setCorrectionId(record.correctionId)
|
||||
getSupplementDetail(record.correctionId)
|
||||
setIsModalVisible(true)
|
||||
@ -353,7 +354,7 @@ export default function File(props: any) {
|
||||
|
||||
onFinish={(value) => {
|
||||
|
||||
console.log(value);
|
||||
// console.log(value);
|
||||
// if (value.upFile && Array.isArray(value.upFile.fileList)) {
|
||||
// const uids = value.upFile.fileList.map((file: any) => file.uid);
|
||||
// const uidString = uids.join(',');
|
||||
@ -361,14 +362,23 @@ export default function File(props: any) {
|
||||
// // 你可以在这里继续处理 uid 字符串,比如发送请求等
|
||||
|
||||
// }
|
||||
const uids = value.upFile ? (value.upFile.fileList.map((file: any) => file.uid)).join(',') : '';
|
||||
// const uids = value.upFile ? (value.upFile.fileList.map((file: any) => file.uid)).join(',') : '';
|
||||
|
||||
// console.log('提取的 uid 字符串:', uids);
|
||||
|
||||
// submitData({
|
||||
// correctionFiles: uids,
|
||||
// correctionRemark: value.upCorrectionRemark,
|
||||
// })
|
||||
// console.log(upFileArray);
|
||||
// 将upFileArray 数组周末和每项的response里的data 里的 fileId 拼接成一个字符串,用逗号隔开
|
||||
const uids = upFileArray.map((file: any) => file.response.data.fileId).join(',');
|
||||
// console.log('提取的 uid 字符串:', uids);
|
||||
submitData({
|
||||
correctionFiles: uids,
|
||||
correctionRemark: value.upCorrectionRemark,
|
||||
})
|
||||
|
||||
|
||||
}}
|
||||
onFinishFailed={() => {
|
||||
@ -427,7 +437,13 @@ export default function File(props: any) {
|
||||
<Upload
|
||||
name="file"
|
||||
action={uploadFileUrl()}
|
||||
|
||||
defaultFileList={upFileArray}
|
||||
onChange={(info) => {
|
||||
setUpFileArray(info.fileList)
|
||||
// console.log(info.fileList);
|
||||
|
||||
}}
|
||||
|
||||
headers={{ 'Auth': `Bearer ${token}` }}
|
||||
|
||||
>
|
||||
|
@ -354,7 +354,7 @@ export default function TradingGoods() {
|
||||
<div className='trading-goods-table-btn'
|
||||
style={{
|
||||
// background: 'pink',
|
||||
display: record.waitCorrectionCount > 0 ? 'unset' : 'none',
|
||||
display: record.waitCorrectionCount > 0 && record.orderStatus != '4' ? 'unset' : 'none',
|
||||
position: 'relative',
|
||||
// color: 'black'
|
||||
}}
|
||||
|
@ -9,7 +9,7 @@ import {
|
||||
Spin
|
||||
} from 'antd';
|
||||
import dayjs, { } from 'dayjs';
|
||||
import { getSellOrderList ,cancelOrder} from '../../request/api'
|
||||
import { getSellOrderList, cancelOrder } from '../../request/api'
|
||||
import File from '../../components/OrderDetailModal/components/File/File'
|
||||
// import type { TableColumnsType } from 'antd';
|
||||
// import { SearchOutlined, ClearOutlined } from '@ant-design/icons';
|
||||
@ -196,12 +196,12 @@ export default function TransactionOrder() {
|
||||
<div className='transaction-order-table-btn'
|
||||
style={{
|
||||
// background: 'pink',
|
||||
display: record.waitCorrectionCount > 0 ? 'unset' : 'none',
|
||||
display: record.waitCorrectionCount > 0 && record.orderStatus != '4' ? 'unset' : 'none',
|
||||
position: 'relative',
|
||||
// color: 'black'
|
||||
}}
|
||||
onClick={() => {
|
||||
// console.log(record.orderId);
|
||||
// console.log(record);
|
||||
setOrderId(record.orderId)
|
||||
setFileModal(true)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user