diff --git a/src/views/parity/index.vue b/src/views/parity/index.vue
index 80c7315..7c94531 100644
--- a/src/views/parity/index.vue
+++ b/src/views/parity/index.vue
@@ -64,25 +64,31 @@
+
{{ item.leaseName }}
-
-
-
+
@@ -145,20 +151,47 @@
-
需求详情
接单
-
+ -->
+
+
+ 需求详情
+
+
+
+
+ 接单
+
+
@@ -185,7 +218,7 @@ import { computed, onMounted, onUnmounted, reactive, ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { ElMessage, ElMessageBox } from 'element-plus'
import { getTypeListApi, getDeviceListApi } from 'http/api/equip'
-import { getCompanyListApi, getLeaseListApi, setAcceptByIdApi } from 'http/api/home'
+import { getCompanyListApi, getLeaseListApi, setAcceptByIdApi, getAreaApi } from 'http/api/home'
import $bus from 'utils/bus'
import NavMenu from 'components/Navmenu/index.vue'
import moment from 'moment'
@@ -213,7 +246,7 @@ const screenChooseList: any = reactive([
{
type: 'companyId',
- name: '需求所在地:',
+ name: '项目所在地:',
list: [
{
isChecked: true,
@@ -301,8 +334,9 @@ getTypeListData()
// 获取设备所在地
const getCompanyAddressListData = async () => {
const res: any = await getCompanyListApi()
- const addressList = res.data.map((e: any) => {
- return { ...e, name: e.operateAddress, value: e.companyId, isChecked: false, index: 1 }
+ const result: any = await getAreaApi()
+ const addressList = result.data.map((e: any) => {
+ return { ...e, name: e.areaName, value: e.areaId, isChecked: false, index: 1 }
})
const companyList = res.data.map((e: any) => {
return { ...e, name: e.companyName, value: e.companyId, isChecked: false, index: 2 }
@@ -313,11 +347,13 @@ const getCompanyAddressListData = async () => {
}
getCompanyAddressListData()
-const getLeaseListData = async () => {
+const getLeaseListData = async (keyWord: any = '') => {
const searchParams: any = {
+ keyWord,
companyId: '',
typeId: '',
level: '',
+ areaId: '',
startTime: optionActive.value == 0 ? screenOptionList[optionActive.value].sort : '',
rentDay: optionActive.value == 1 ? screenOptionList[optionActive.value].sort : '',
endTime: optionActive.value == 2 ? screenOptionList[optionActive.value].sort : '',
@@ -332,10 +368,10 @@ const getLeaseListData = async () => {
}
if (index == 1 && j.isChecked) {
- searchParams.companyId = searchParams.companyId ? searchParams.companyId : j.value
+ searchParams.areaId = j.value
}
if (index == 2 && j.isChecked) {
- searchParams.companyId = searchParams.companyId ? searchParams.companyId : j.value
+ searchParams.companyId = j.value
}
})
})
@@ -400,26 +436,8 @@ const onCurrentChange = (val: number) => {
onMounted(() => {
getLeaseListData()
$bus.on('search', (val: any) => {
- // getDeviceListData(null, val)
+ getLeaseListData(val)
})
- let routeParams: any = null
- if (route.query.level && route.query.typeId) {
- routeParams = {
- level: route.query.level,
- typeId: route.query.typeId,
- }
- }
- if (route.query.companyId) {
- routeParams = {
- companyId: route.query.companyId,
- }
- }
- if (route.query.keyWord) {
- routeParams = {
- keyWord: route.query.keyWord,
- }
- }
- // getDeviceListData(routeParams, null)
})
onUnmounted(() => {
@@ -570,7 +588,9 @@ const onAcceptOrders = (id: any) => {
margin-bottom: 15px;
padding: 15px 25px;
border-radius: 14px;
- background-color: #f1f1f1;
+ background-color: #fff;
+ position: relative;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
position: relative;
.el-row {
@@ -581,16 +601,38 @@ const onAcceptOrders = (id: any) => {
.count-down {
display: flex;
align-items: center;
- justify-content: flex-end;
+ justify-content: center;
font-size: 16px;
font-weight: bold;
- color: #dd2323;
+ color: #fff;
+ position: absolute;
+ right: 0;
+ top: 0;
+ background-color: orange;
+ width: 30%;
+ padding: 12px 0;
+ background: linear-gradient(to right, #4dd1c7, #00af9f);
}
.btn-items {
position: absolute;
right: 80px;
bottom: 30px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+
+ div {
+ cursor: pointer;
+ width: 180px;
+ text-align: center;
+ // padding: 10px 0;
+ color: #fff;
+ box-sizing: border-box;
+
+ height: 38px;
+ line-height: 38px;
+ }
}
}
}
@@ -606,7 +648,7 @@ const onAcceptOrders = (id: any) => {
background-color: #3cb4a6;
}
:deep .el-statistic__content {
- color: #dd2323;
+ color: #fff;
font-size: 16px;
}
diff --git a/src/views/user/sourcingNeed/index.vue b/src/views/user/sourcingNeed/index.vue
index 83afd7b..6306f49 100644
--- a/src/views/user/sourcingNeed/index.vue
+++ b/src/views/user/sourcingNeed/index.vue
@@ -202,7 +202,12 @@
:show-all-levels="false"
placeholder="请选择装备类目"
v-model="addOrEditForm.typeIds"
- :props="{ value: 'id', label: 'name' }"
+ :props="{
+ value: 'id',
+ label: 'name',
+ checkStrictly: true,
+ }"
+ @change="onChangeClass"
/>
@@ -284,6 +289,23 @@
/>
+
+
+
+
+
+
+
@@ -357,7 +379,7 @@