|
|
@ -44,30 +44,8 @@ |
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" |
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" |
|
|
|
>添加预约 |
|
|
|
>添加预约 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
|
|
|
|
v-if="this.queryA.reservationStatus === '1'" |
|
|
|
|
|
|
|
type="danger" |
|
|
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
|
|
@click="handleConfirmReservations" |
|
|
|
|
|
|
|
plain |
|
|
|
|
|
|
|
>批量确认 |
|
|
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
|
|
v-if="this.queryA.reservationStatus === '2'" |
|
|
|
|
|
|
|
type="danger" |
|
|
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
|
|
@click="handleStockUp()" |
|
|
|
|
|
|
|
plain |
|
|
|
|
|
|
|
>批量转备货 |
|
|
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
|
|
v-if="this.queryA.reservationStatus === '2'" |
|
|
|
|
|
|
|
type="danger" |
|
|
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
|
|
@click="handleDeliverys" |
|
|
|
|
|
|
|
plain |
|
|
|
|
|
|
|
>批量转配送 |
|
|
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-button type="danger" icon="el-icon-download" @click="handleExportInfo(1)" plain |
|
|
|
<el-button type="danger" icon="el-icon-download" @click="handleExportInfo(1)" plain |
|
|
|
>导出 |
|
|
|
>导出 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
@ -102,14 +80,7 @@ |
|
|
|
@click="viewReservation(slotProps.scope)" |
|
|
|
@click="viewReservation(slotProps.scope)" |
|
|
|
>查看 |
|
|
|
>查看 |
|
|
|
</el-text> |
|
|
|
</el-text> |
|
|
|
<el-text |
|
|
|
|
|
|
|
size="small" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
link |
|
|
|
|
|
|
|
icon="el-icon-view" |
|
|
|
|
|
|
|
@click="editsolt(slotProps.scope)" |
|
|
|
|
|
|
|
>编辑 |
|
|
|
|
|
|
|
</el-text> |
|
|
|
|
|
|
|
<el-text |
|
|
|
<el-text |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
@ -118,12 +89,7 @@ |
|
|
|
@click="cancelReservation(slotProps.scope)" |
|
|
|
@click="cancelReservation(slotProps.scope)" |
|
|
|
>取消预约 |
|
|
|
>取消预约 |
|
|
|
</el-text> |
|
|
|
</el-text> |
|
|
|
<el-text |
|
|
|
|
|
|
|
v-if="this.queryA.reservationStatus === '1' ? true : false" |
|
|
|
|
|
|
|
size="small" |
|
|
|
|
|
|
|
@click="confirmReservation(slotProps.scope)" |
|
|
|
|
|
|
|
>确认预约 |
|
|
|
|
|
|
|
</el-text> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</tablecmt> |
|
|
|
</tablecmt> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -137,41 +103,7 @@ |
|
|
|
<div class="avue-crud__header"> |
|
|
|
<div class="avue-crud__header"> |
|
|
|
<!-- 头部左侧按钮模块 --> |
|
|
|
<!-- 头部左侧按钮模块 --> |
|
|
|
<div class="avue-crud__left"> |
|
|
|
<div class="avue-crud__left"> |
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" |
|
|
|
|
|
|
|
>添加预约 |
|
|
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
|
|
v-if="this.queryB.reservationStatus === '1'" |
|
|
|
|
|
|
|
type="danger" |
|
|
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
|
|
@click="handleConfirmReservations" |
|
|
|
|
|
|
|
plain |
|
|
|
|
|
|
|
>批量确认 |
|
|
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
|
|
v-if="this.queryB.reservationStatus === '2'" |
|
|
|
|
|
|
|
type="danger" |
|
|
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
|
|
@click="handleStockUp()" |
|
|
|
|
|
|
|
plain |
|
|
|
|
|
|
|
>批量转备货 |
|
|
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
|
|
v-if="this.queryB.reservationStatus === '2'" |
|
|
|
|
|
|
|
type="danger" |
|
|
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
|
|
@click="handleDeliverys" |
|
|
|
|
|
|
|
plain |
|
|
|
|
|
|
|
>批量转配送 |
|
|
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
|
|
v-if="this.queryB.reservationStatus === '2'" |
|
|
|
|
|
|
|
type="danger" |
|
|
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
|
|
@click="batchPrintData" |
|
|
|
|
|
|
|
plain |
|
|
|
|
|
|
|
>批量打印 |
|
|
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-button type="danger" icon="el-icon-download" @click="handleExportInfo(2)" plain |
|
|
|
<el-button type="danger" icon="el-icon-download" @click="handleExportInfo(2)" plain |
|
|
|
>导出 |
|
|
|
>导出 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
@ -337,7 +269,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { |
|
|
|
import { |
|
|
|
getList, |
|
|
|
getReservationList, |
|
|
|
getDetail, |
|
|
|
getDetail, |
|
|
|
add, |
|
|
|
add, |
|
|
|
update, |
|
|
|
update, |
|
|
@ -1281,26 +1213,10 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleAdd() { |
|
|
|
handleAdd() { |
|
|
|
this.$router.push({ |
|
|
|
this.$router.push({ |
|
|
|
path: '/distribution/reservation/reservationAddFrom', |
|
|
|
path: '/mail/order/add', |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
handleEdit(row) { |
|
|
|
|
|
|
|
console.log(row); |
|
|
|
|
|
|
|
this.$router.push({ |
|
|
|
|
|
|
|
path: '/distribution/reservation/reservationAddFrom', |
|
|
|
|
|
|
|
query: { |
|
|
|
|
|
|
|
reservationId: row.id, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
aaa() { |
|
|
|
|
|
|
|
this.queryA.reservationStatus = '1'; |
|
|
|
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
bbb() { |
|
|
|
|
|
|
|
this.queryB.reservationStatus = '2'; |
|
|
|
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
handleView(row) { |
|
|
|
handleView(row) { |
|
|
|
this.title = '查看'; |
|
|
|
this.title = '查看'; |
|
|
|
this.view = true; |
|
|
|
this.view = true; |
|
|
@ -1455,7 +1371,7 @@ export default { |
|
|
|
query.reservationStatus = this.queryA.reservationStatus || '1'; |
|
|
|
query.reservationStatus = this.queryA.reservationStatus || '1'; |
|
|
|
} |
|
|
|
} |
|
|
|
// if (this.queryA.reservationStatus) |
|
|
|
// if (this.queryA.reservationStatus) |
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, query)).then(res => { |
|
|
|
getReservationList(page.currentPage, page.pageSize, Object.assign(params, query)).then(res => { |
|
|
|
const data = res.data.data; |
|
|
|
const data = res.data.data; |
|
|
|
console.log('>>>>>>>', data); |
|
|
|
console.log('>>>>>>>', data); |
|
|
|
if (data.records) { |
|
|
|
if (data.records) { |
|
|
@ -1465,11 +1381,7 @@ export default { |
|
|
|
item.orderSource = a.dictValue; |
|
|
|
item.orderSource = a.dictValue; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
// this.stockupStatusData.forEach(b => { |
|
|
|
|
|
|
|
// if (item.stockupStatus === b.dictKey) { |
|
|
|
|
|
|
|
// item.stockupStatus = b.dictValue; |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
this.resvervationStatusData.forEach(e => { |
|
|
|
this.resvervationStatusData.forEach(e => { |
|
|
|
if (item.reservationStatus === e.dictKey) { |
|
|
|
if (item.reservationStatus === e.dictKey) { |
|
|
|
item.reservationStatus = e.dictValue; |
|
|
|
item.reservationStatus = e.dictValue; |
|
|
@ -1487,7 +1399,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.periodOfTimeData.forEach(d => { |
|
|
|
this.periodOfTimeData.forEach(d => { |
|
|
|
console.log('11111111111'); |
|
|
|
|
|
|
|
if (item.periodOfTime === d.dictKey) { |
|
|
|
if (item.periodOfTime === d.dictKey) { |
|
|
|
item.periodOfTime = d.dictValue; |
|
|
|
item.periodOfTime = d.dictValue; |
|
|
|
} |
|
|
|
} |