bug修复
This commit is contained in:
parent
5f3b7da5b4
commit
ffd872a113
|
|
@ -7,10 +7,10 @@ VITE_API_URL = '/proxyApi'
|
|||
# 开发环境接口地址
|
||||
# VITE_proxyTarget = 'http://10.40.92.74:8080' #盛旭
|
||||
|
||||
# VITE_proxyTarget = 'http://192.168.2.246:28080' # 马帅
|
||||
VITE_proxyTarget = 'http://192.168.2.226:28080' # 马帅
|
||||
# VITE_proxyTarget = 'http://192.168.2.122:28080' # 梁超
|
||||
# VITE_proxyTarget = 'http://36.33.26.201:17788/proxyApi' # 测试服务
|
||||
VITE_proxyTarget = 'http://192.168.0.244:28580' # 测试服务
|
||||
# VITE_proxyTarget = 'http://192.168.0.244:28580' # 测试服务
|
||||
# VITE_proxyTarget = 'http://192.168.2.75:28080' # 盛旭
|
||||
|
||||
# VITE_proxyTarget = 'http://10.40.92.185:9206' # 赵福海 ( 设备类型)
|
||||
|
|
|
|||
|
|
@ -503,7 +503,7 @@ const getLeaseListData = async () => {
|
|||
}
|
||||
|
||||
const getAreaData = async () => {
|
||||
const res: any = await getAreaApi()
|
||||
const res: any = await getAreaApi(0)
|
||||
areaList.value = res.data
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ const allList = [
|
|||
{ title: '订单管理', name: 'orderManagementCz', permission: ['1'] },
|
||||
{ title: '接单管理', name: 'accept-orders', permission: ['1'] },
|
||||
// { title: '退租管理', name: 'rent-termination', permission: ['1'] },
|
||||
// { title: '结算管理', name: 'settlement-manage', permission: ['1'] },
|
||||
{ title: '结算管理', name: 'settlement-manage', permission: ['1'] },
|
||||
{ title: '质检管理', name: 'quality-manage', permission: ['1'] },
|
||||
{ title: '安全证书管理', name: 'security-certificate', permission: ['1'] },
|
||||
{ title: '标签管理', name: 'tag-manage', permission: ['1'] },
|
||||
|
|
|
|||
|
|
@ -1001,14 +1001,21 @@ const onReset = () => {
|
|||
// 重新发布
|
||||
const onRepublish = async (type: any, orderId: any) => {
|
||||
type == 1 ? (dialogTitle.value = '退租检修') : (dialogTitle.value = '检修明细')
|
||||
console.log('🚀 ~ onRepublish ~ type:', type)
|
||||
|
||||
if (type === 1) {
|
||||
const { data: res }: any = await getOrderDetailsByIdApi(orderId)
|
||||
orderDetails.value = res
|
||||
repairSelect.value = JSON.parse(JSON.stringify(res.detailsList))
|
||||
lossSelect.value = JSON.parse(JSON.stringify(res.detailsList))
|
||||
scrapSelect.value = JSON.parse(JSON.stringify(res.detailsList))
|
||||
orderDetails.value.orderId = orderId
|
||||
try {
|
||||
console.log('🚀 ~ onRepublish ~ orderId:', orderId)
|
||||
const { data: res }: any = await getOrderDetailsByIdApi(orderId)
|
||||
console.log('🚀 ~ onRepublish ~ res:', res)
|
||||
orderDetails.value = res
|
||||
repairSelect.value = JSON.parse(JSON.stringify(res.detailsList))
|
||||
lossSelect.value = JSON.parse(JSON.stringify(res.detailsList))
|
||||
scrapSelect.value = JSON.parse(JSON.stringify(res.detailsList))
|
||||
orderDetails.value.orderId = orderId
|
||||
} catch (error) {
|
||||
console.log('🚀 ~ onRepublish ~ error:', error)
|
||||
}
|
||||
} else {
|
||||
const { data: res }: any = await getOverhaulApi(orderId)
|
||||
repairRecordList.value = res.repairRecordList
|
||||
|
|
|
|||
|
|
@ -364,8 +364,8 @@ const isOrderComplete = computed(() => {
|
|||
style="font-weight: bold; margin-top: 10px"
|
||||
v-if="props.orderStatus == 20"
|
||||
>
|
||||
{{ goods.takeOverTime.slice(0, 10) }}至{{
|
||||
goods.rentOverTime.slice(0, 10)
|
||||
{{ goods.takeOverTime?.slice(0, 10) }}至{{
|
||||
goods.rentOverTime?.slice(0, 10)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -741,16 +741,16 @@ const costSubmit = () => {
|
|||
: ''
|
||||
"
|
||||
>
|
||||
{{ goods.rentBeginTime.slice(0, 10) }}至{{
|
||||
goods.rentEndTime.slice(0, 10)
|
||||
{{ goods.rentBeginTime?.slice(0, 10) }}至{{
|
||||
goods.rentEndTime?.slice(0, 10)
|
||||
}}
|
||||
</div>
|
||||
<div
|
||||
style="font-weight: bold; margin-top: 10px; font-size: 13px"
|
||||
v-if="item.orderStatus == 20"
|
||||
>
|
||||
{{ goods.takeOverTime.slice(0, 10) }}至{{
|
||||
goods.rentOverTime.slice(0, 10)
|
||||
{{ goods.takeOverTime?.slice(0, 10) }}至{{
|
||||
goods.rentOverTime?.slice(0, 10)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -364,8 +364,8 @@ const isOrderComplete = computed(() => {
|
|||
style="font-weight: bold; margin-top: 10px"
|
||||
v-if="props.orderStatus == 20"
|
||||
>
|
||||
{{ goods.takeOverTime.slice(0, 10) }}至{{
|
||||
goods.rentOverTime.slice(0, 10)
|
||||
{{ goods.takeOverTime?.slice(0, 10) }}至{{
|
||||
goods.rentOverTime?.slice(0, 10)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -72,7 +72,9 @@ const statusList: any = [
|
|||
]
|
||||
|
||||
const orderText = (status: any) => {
|
||||
return statusList.filter((e: any) => e.id == status)[0].name
|
||||
// return statusList.filter((e: any) => e.id == status)[0].name
|
||||
const statusItem = statusList.find((e: any) => e.id == status)
|
||||
return statusItem ? statusItem.name : ''
|
||||
}
|
||||
const orderType = (status: any) => {
|
||||
if (status == 1 || status == 2 || status == 3 || status == 5) return 'primary'
|
||||
|
|
@ -1003,8 +1005,8 @@ const wordUrl = ref('')
|
|||
: ''
|
||||
"
|
||||
>
|
||||
{{ goods.rentBeginTime.slice(0, 10) }}至{{
|
||||
goods.rentEndTime.slice(0, 10)
|
||||
{{ goods.rentBeginTime?.slice(0, 10) }}至{{
|
||||
goods.rentEndTime?.slice(0, 10)
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
|
@ -1012,8 +1014,8 @@ const wordUrl = ref('')
|
|||
style="font-weight: bold; margin-top: 10px; font-size: 13px"
|
||||
v-if="item.orderStatus == 20"
|
||||
>
|
||||
{{ goods.takeOverTime.slice(0, 10) }}至{{
|
||||
goods.rentOverTime.slice(0, 10)
|
||||
{{ goods.takeOverTime?.slice(0, 10) }}至{{
|
||||
goods.rentOverTime?.slice(0, 10)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue