This commit is contained in:
parent
125354749e
commit
73e45a720a
|
|
@ -82,6 +82,7 @@
|
|||
isRepublish = true
|
||||
dialogTitle = '新增收货地址'
|
||||
addOrEditDialogVisible = true
|
||||
delete addOrEditForm?.id
|
||||
}
|
||||
"
|
||||
type="primary"
|
||||
|
|
@ -294,13 +295,6 @@ const areaCityList = ref<any>([])
|
|||
const areaCountyList = ref<any>([])
|
||||
|
||||
const searchParams = reactive({
|
||||
leaseName: '',
|
||||
leaseCode: '',
|
||||
leaseStatus: '',
|
||||
finishStartTime: '',
|
||||
finishEndTime: '',
|
||||
publishStartTime: '',
|
||||
publishEndTime: '',
|
||||
pageSize: 10,
|
||||
pageNum: 1,
|
||||
})
|
||||
|
|
@ -321,15 +315,7 @@ const addOrEditFormRules = reactive({
|
|||
|
||||
// 获取列表
|
||||
const getLeaseListData = async () => {
|
||||
if (endTime.value.length > 0) {
|
||||
searchParams.finishStartTime = endTime.value[0]
|
||||
searchParams.finishEndTime = endTime.value[1]
|
||||
}
|
||||
if (releaseTime.value.length > 0) {
|
||||
searchParams.publishStartTime = releaseTime.value[0]
|
||||
searchParams.publishEndTime = releaseTime.value[1]
|
||||
}
|
||||
const res: any = await getAddressListApi({})
|
||||
const res: any = await getAddressListApi(searchParams)
|
||||
console.log(res, '地址--')
|
||||
leaseList.value = res.rows
|
||||
total.value = res.total
|
||||
|
|
@ -341,18 +327,7 @@ const getAreaData = async () => {
|
|||
}
|
||||
|
||||
// 重置
|
||||
const onReset = () => {
|
||||
endTime.value = []
|
||||
releaseTime.value = []
|
||||
searchParams.finishStartTime = ''
|
||||
searchParams.finishEndTime = ''
|
||||
searchParams.publishStartTime = ''
|
||||
searchParams.publishEndTime = ''
|
||||
searchParams.pageNum = 1
|
||||
searchParams.pageSize = 10
|
||||
searchFormRef.value.resetFields()
|
||||
getLeaseListData()
|
||||
}
|
||||
const onReset = () => {}
|
||||
// 删除
|
||||
const onDelete = async (id: any) => {
|
||||
const res: any = await deleteLeaseInfoApi({ id })
|
||||
|
|
@ -367,12 +342,13 @@ const onDelete = async (id: any) => {
|
|||
// 重新发布
|
||||
const onRepublish = async (row: any) => {
|
||||
dialogTitle.value = '编辑收货地址'
|
||||
const { areaCode, address, cityCode, provinceCode } = row
|
||||
const { areaCode, address, cityCode, provinceCode, id } = row
|
||||
Object.assign(addOrEditForm.value, {
|
||||
areaCode,
|
||||
address,
|
||||
cityCode,
|
||||
provinceCode,
|
||||
id,
|
||||
})
|
||||
|
||||
Promise.all([onProvinceChange(provinceCode), onCityChange(cityCode)]).then(() => {
|
||||
|
|
|
|||
|
|
@ -290,6 +290,32 @@ const isOrderCompleteTwo = (goods: any) => {
|
|||
<span> {{ orderDetails.address }} </span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row style="padding: 4px 40px; font-size: 14px">
|
||||
<el-col :span="8">
|
||||
<span> 接单人: </span>
|
||||
<span>
|
||||
{{ orderDetails.receivingUser }}
|
||||
</span>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<span> 接单时间: </span>
|
||||
<span>
|
||||
{{ orderDetails.receivingTime }}
|
||||
</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row style="padding: 4px 40px; font-size: 14px">
|
||||
<el-col :span="8">
|
||||
<span> 出库人: </span>
|
||||
<span> {{ orderDetails.preOutboundUser }} </span>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<span> 出库时间: </span>
|
||||
<span>
|
||||
{{ orderDetails.preOutboundTime }}
|
||||
</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row
|
||||
style="
|
||||
|
|
@ -312,17 +338,18 @@ const isOrderCompleteTwo = (goods: any) => {
|
|||
"
|
||||
style="min-height: 100px"
|
||||
>
|
||||
<div style="display: flex; flex-direction: column; align-items: center">
|
||||
<!-- <div style="display: flex; flex-direction: column; align-items: center">
|
||||
<span style="font-weight: bold; font-size: 13px; padding: 4px 0">
|
||||
接单人:{{ goods.receivingUser }}
|
||||
</span>
|
||||
<el-image
|
||||
:src="goods.url"
|
||||
style="width: 110px; height: 80px"
|
||||
alt="#"
|
||||
fit="cover"
|
||||
/>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<el-image
|
||||
:src="goods.url"
|
||||
style="width: 110px; height: 80px"
|
||||
alt="#"
|
||||
fit="cover"
|
||||
/>
|
||||
<div
|
||||
style="
|
||||
min-height: 100px;
|
||||
|
|
@ -337,9 +364,9 @@ const isOrderCompleteTwo = (goods: any) => {
|
|||
<el-row style="font-weight: bold">
|
||||
{{ goods.deviceName }}
|
||||
|
||||
<span style="padding-left: 10px">
|
||||
<!-- <span style="padding-left: 10px">
|
||||
接单时间:{{ goods.receivingTime }}
|
||||
</span>
|
||||
</span> -->
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="3"> 租期:</el-col>
|
||||
|
|
@ -412,7 +439,7 @@ const isOrderCompleteTwo = (goods: any) => {
|
|||
flex-direction: column;
|
||||
"
|
||||
>
|
||||
<div
|
||||
<!-- <div
|
||||
style="
|
||||
width: 100%;
|
||||
display: flex;
|
||||
|
|
@ -424,7 +451,7 @@ const isOrderCompleteTwo = (goods: any) => {
|
|||
>
|
||||
<span>出库人:{{ goods.preOutboundUser }}</span>
|
||||
<span>出库时间:{{ goods.preOutboundTime }}</span>
|
||||
</div>
|
||||
</div> -->
|
||||
<div>租期</div>
|
||||
<div
|
||||
style="font-weight: bold; margin-top: 10px"
|
||||
|
|
|
|||
|
|
@ -295,6 +295,32 @@ const isOrderCompleteTwo = (goods: any) => {
|
|||
<span> {{ orderDetails.address }} </span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row style="padding: 4px 40px; font-size: 14px">
|
||||
<el-col :span="8">
|
||||
<span> 接单人: </span>
|
||||
<span>
|
||||
{{ orderDetails.receivingUser }}
|
||||
</span>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<span> 接单时间: </span>
|
||||
<span>
|
||||
{{ orderDetails.receivingTime }}
|
||||
</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row style="padding: 4px 40px; font-size: 14px">
|
||||
<el-col :span="8">
|
||||
<span> 出库人: </span>
|
||||
<span> {{ orderDetails.preOutboundUser }} </span>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<span> 出库时间: </span>
|
||||
<span>
|
||||
{{ orderDetails.preOutboundTime }}
|
||||
</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row
|
||||
style="
|
||||
|
|
@ -317,17 +343,18 @@ const isOrderCompleteTwo = (goods: any) => {
|
|||
"
|
||||
style="min-height: 100px"
|
||||
>
|
||||
<div style="display: flex; flex-direction: column; align-items: center">
|
||||
<!-- <div style="display: flex; flex-direction: column; align-items: center">
|
||||
<span style="font-weight: bold; font-size: 13px; padding: 4px 0">
|
||||
接单人:{{ goods.receivingUser }}
|
||||
</span>
|
||||
<el-image
|
||||
:src="goods.url"
|
||||
style="width: 110px; height: 80px"
|
||||
alt="#"
|
||||
fit="cover"
|
||||
/>
|
||||
</div>
|
||||
|
||||
</div> -->
|
||||
<el-image
|
||||
:src="goods.url"
|
||||
style="width: 110px; height: 80px"
|
||||
alt="#"
|
||||
fit="cover"
|
||||
/>
|
||||
<div
|
||||
style="
|
||||
min-height: 100px;
|
||||
|
|
@ -342,9 +369,9 @@ const isOrderCompleteTwo = (goods: any) => {
|
|||
<el-row style="font-weight: bold">
|
||||
{{ goods.deviceName }}
|
||||
|
||||
<span style="padding-left: 10px">
|
||||
<!-- <span style="padding-left: 10px">
|
||||
接单时间:{{ goods.receivingTime }}
|
||||
</span>
|
||||
</span> -->
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="3"> 租期 :</el-col>
|
||||
|
|
@ -416,7 +443,7 @@ const isOrderCompleteTwo = (goods: any) => {
|
|||
flex-direction: column;
|
||||
"
|
||||
>
|
||||
<div
|
||||
<!-- <div
|
||||
style="
|
||||
width: 100%;
|
||||
display: flex;
|
||||
|
|
@ -428,7 +455,7 @@ const isOrderCompleteTwo = (goods: any) => {
|
|||
>
|
||||
<span>出库人:{{ goods.preOutboundUser }}</span>
|
||||
<span>出库时间:{{ goods.preOutboundTime }}</span>
|
||||
</div>
|
||||
</div> -->
|
||||
<div>租期</div>
|
||||
<div
|
||||
style="font-weight: bold; margin-top: 10px"
|
||||
|
|
|
|||
Loading…
Reference in New Issue