Browse Source

Merge branch 'develop' of http://120.27.195.166:3000/chenglb/PMS_Frontend_v1.0.0 into develop

tags/PMS_Frontend_v1.0.6-develop
heyx 2 years ago
parent
commit
7326735a16
  1. 8
      src/pages/OperationCenter/CarMgm/CarAuth/loadable.jsx
  2. 2
      src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx

8
src/pages/OperationCenter/CarMgm/CarAuth/loadable.jsx

@ -97,6 +97,7 @@ function CarAuth() {
<span type="primary" style={{ display: 'block', textAlign: 'center' }} onClick={() => { <span type="primary" style={{ display: 'block', textAlign: 'center' }} onClick={() => {
setTag('2'); setTag('2');
setCarId(record.carId) setCarId(record.carId)
setMyId(record.id)
setIndexby(index) setIndexby(index)
}}> }}>
<a>{record.auditState == "待审核" || record.auditState == "残疾车待审核" ? "审核" : "查看"}</a> <a>{record.auditState == "待审核" || record.auditState == "残疾车待审核" ? "审核" : "查看"}</a>
@ -106,6 +107,7 @@ function CarAuth() {
}, },
]; ];
const [carId, setCarId] = useState(); const [carId, setCarId] = useState();
const [myId, setMyId] = useState();
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [tag, setTag] = useState('1'); const [tag, setTag] = useState('1');
const [bigpicVisible, setBigpicVisible] = useState(false);// const [bigpicVisible, setBigpicVisible] = useState(false);//
@ -154,7 +156,7 @@ function CarAuth() {
ajax({ ajax({
url: "/api/ope/car/audit", url: "/api/ope/car/audit",
type: "post", type: "post",
data: { carId: carId, audit: e ? "pass" : "refuse", text: e ? null : toText },
data: { id: myId, audit: e ? "pass" : "refuse", text: e ? null : toText },
}).then((res) => { }).then((res) => {
let { status, data, total } = res let { status, data, total } = res
if (status == 20000) { if (status == 20000) {
@ -233,6 +235,10 @@ function CarAuth() {
placeholder={"请选择审核状态"} placeholder={"请选择审核状态"}
options={[ options={[
{ {
value: 0,
label: '全部',
},
{
value: 1, value: 1,
label: '待审核', label: '待审核',
}, },

2
src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx

@ -582,7 +582,7 @@ function CarInfo() {
ajax({// ajax({//
url: "/api/ope/car/get_edit_records", url: "/api/ope/car/get_edit_records",
type: "get", type: "get",
data: { carId: carId },
data: { carId: e?.carId||carId },
}).then((res) => { }).then((res) => {
let { status, data, total } = res let { status, data, total } = res
if (status == 20000) { if (status == 20000) {

Loading…
Cancel
Save