|
|
|
@ -41,17 +41,17 @@
|
|
|
|
|
<div class="avue-crud__header"> |
|
|
|
|
<!-- 头部左侧按钮模块 --> |
|
|
|
|
<div class="avue-crud__left"> |
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" |
|
|
|
|
<el-button type="primary" @click="handleAdd" v-if="permissionList.reservation_add" |
|
|
|
|
>添加预约 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
type="danger" |
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
@click="handleConfirmReservations" |
|
|
|
|
plain |
|
|
|
|
v-if="permissionList.reservation_enter_batch" |
|
|
|
|
>批量确认 |
|
|
|
|
</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 v-if="permissionList.reservation_export" |
|
|
|
|
>导出 |
|
|
|
|
</el-button> |
|
|
|
|
</div> |
|
|
|
@ -84,6 +84,7 @@
|
|
|
|
|
link |
|
|
|
|
icon="el-icon-view" |
|
|
|
|
@click="viewReservation(slotProps.scope)" |
|
|
|
|
v-if="permissionList.reservation_view" |
|
|
|
|
>查看 |
|
|
|
|
</el-text> |
|
|
|
|
<el-text |
|
|
|
@ -92,6 +93,7 @@
|
|
|
|
|
link |
|
|
|
|
icon="el-icon-view" |
|
|
|
|
@click="editsolt(slotProps.scope)" |
|
|
|
|
v-if="permissionList.reservation_update" |
|
|
|
|
>编辑 |
|
|
|
|
</el-text> |
|
|
|
|
<el-text |
|
|
|
@ -100,10 +102,11 @@
|
|
|
|
|
link |
|
|
|
|
icon="el-icon-view" |
|
|
|
|
@click="cancelReservation(slotProps.scope)" |
|
|
|
|
v-if="permissionList.reservation_cancel" |
|
|
|
|
>取消预约 |
|
|
|
|
</el-text> |
|
|
|
|
<el-text |
|
|
|
|
v-if="this.queryA.reservationStatus === '1' ? true : false" |
|
|
|
|
v-if="(this.queryA.reservationStatus === '1') && permissionList.Confirm_appointment" |
|
|
|
|
size="small" |
|
|
|
|
@click="confirmReservation(slotProps.scope)" |
|
|
|
|
>确认预约 |
|
|
|
@ -134,28 +137,29 @@
|
|
|
|
|
<div class="avue-crud__header"> |
|
|
|
|
<!-- 头部左侧按钮模块 --> |
|
|
|
|
<div class="avue-crud__left"> |
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" |
|
|
|
|
<el-button type="primary" @click="handleAdd" |
|
|
|
|
>添加预约 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button type="danger" @click="handleStockUp()" plain>批量转备货 </el-button> |
|
|
|
|
<el-button type="danger" @click="handleDeliverys" plain>批量转配送 </el-button> |
|
|
|
|
<el-button type="danger" @click="batchPrintData" plain>批量打印 </el-button> |
|
|
|
|
<el-button type="danger" @click="handleStockUp()" v-if="permissionList.reservation_Stock_batch" plain>批量转备货 </el-button> |
|
|
|
|
<el-button type="danger" @click="handleDeliverys" v-if="permissionList.reservation_delivery_batch" plain>批量转配送 </el-button> |
|
|
|
|
<el-button type="danger" @click="batchPrintData" v-if="permissionList.reservation_print_batch" plain>批量打印 </el-button> |
|
|
|
|
<el-button |
|
|
|
|
type="danger" |
|
|
|
|
icon="el-icon-download" |
|
|
|
|
@click="handleExportInfo(2)" |
|
|
|
|
plain |
|
|
|
|
v-if="permissionList.reservation_export" |
|
|
|
|
>导出 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
icon="Plus" |
|
|
|
|
@click="handleAddPickerClipData" |
|
|
|
|
v-if="orderStatus === 'all'" |
|
|
|
|
v-if="(orderStatus === 'all') && (permissionList.reservation_jionPickerclip)" |
|
|
|
|
>加入挑单夹 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
v-else |
|
|
|
|
v-if="!(orderStatus === 'all' && permissionList.reservation_jionPickerclip) && permissionList.remove_pickerclip" |
|
|
|
|
type="primary" |
|
|
|
|
icon="Delete" |
|
|
|
|
@click="handleRemovePickerClipData" |
|
|
|
@ -190,6 +194,7 @@
|
|
|
|
|
link |
|
|
|
|
icon="el-icon-view" |
|
|
|
|
@click="viewReservation(slotProps.scope)" |
|
|
|
|
v-if="permissionList.reservation_view" |
|
|
|
|
>查看 |
|
|
|
|
</el-text> |
|
|
|
|
<el-text |
|
|
|
@ -198,6 +203,7 @@
|
|
|
|
|
link |
|
|
|
|
icon="el-icon-view" |
|
|
|
|
@click="editsolt(slotProps.scope)" |
|
|
|
|
v-if="permissionList.reservation_update" |
|
|
|
|
>编辑 |
|
|
|
|
</el-text> |
|
|
|
|
<el-text |
|
|
|
@ -206,20 +212,23 @@
|
|
|
|
|
link |
|
|
|
|
icon="el-icon-view" |
|
|
|
|
@click="cancelReservation(slotProps.scope)" |
|
|
|
|
v-if="permissionList.reservation_cancel" |
|
|
|
|
>取消预约 |
|
|
|
|
</el-text> |
|
|
|
|
<el-text |
|
|
|
|
v-if="this.queryB.reservationStatus === '1' ? true : false" |
|
|
|
|
v-if="(this.queryB.reservationStatus === '1') && permissionList.Confirm_appointment" |
|
|
|
|
size="small" |
|
|
|
|
@click="confirmReservation(slotProps.scope)" |
|
|
|
|
>确认预约 |
|
|
|
|
</el-text> |
|
|
|
|
|
|
|
|
|
<el-text |
|
|
|
|
size="small" |
|
|
|
|
type="primary" |
|
|
|
|
link |
|
|
|
|
icon="el-icon-view" |
|
|
|
|
@click="printData(slotProps.scope)" |
|
|
|
|
v-if="permissionList.reservation_print" |
|
|
|
|
>打印 |
|
|
|
|
</el-text> |
|
|
|
|
</template> |
|
|
|
@ -266,7 +275,7 @@
|
|
|
|
|
:columnList="columnList" |
|
|
|
|
v-model="columnList" |
|
|
|
|
></edittablehead> |
|
|
|
|
<el-dialog v-model="dialogFormCustomer" v-loading="" title="指派叉车"> |
|
|
|
|
<el-dialog v-model="dialogFormCustomer" title="指派叉车"> |
|
|
|
|
<el-form :model="info"> |
|
|
|
|
<el-form-item label="备货时间:"> |
|
|
|
|
<el-date-picker v-model="info.stockupDate" type="date" placeholder="选择日期"> |
|
|
|
@ -905,6 +914,26 @@ export default {
|
|
|
|
|
}); |
|
|
|
|
return ids.join(','); |
|
|
|
|
}, |
|
|
|
|
permissionList() { |
|
|
|
|
console.log(this.permission,'permission'); |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
reservation_add: this.validData(this.permission.reservation_add, false),//添加预约 |
|
|
|
|
reservation_export: this.validData(this.permission.reservation_export, false),//导出 |
|
|
|
|
reservation_enter_batch: this.validData(this.permission.reservation_enter_batch, false),//批量确认 |
|
|
|
|
reservation_Stock_batch: this.validData(this.permission.reservation_Stock_batch, false),//批量转备货 |
|
|
|
|
reservation_delivery_batch: this.validData(this.permission.reservation_delivery_batch, false),//批量转配送 |
|
|
|
|
reservation_print_batch: this.validData(this.permission.reservation_print_batch, false),//批量打印 |
|
|
|
|
reservation_cancel: this.validData(this.permission.reservation_cancel, false),//取消预约 |
|
|
|
|
reservation_update: this.validData(this.permission.reservation_update, false),//编辑 |
|
|
|
|
reservation_view: this.validData(this.permission.reservation_view, false),//查看 |
|
|
|
|
reservation_print: this.validData(this.permission.reservation_print, false),//打印 |
|
|
|
|
reservation_jionPickerclip: this.validData(this.permission.reservation_jionPickerclip, false),//加入挑单夹 |
|
|
|
|
Confirm_appointment: this.validData(this.permission.Confirm_appointment, false),//确认预约 |
|
|
|
|
remove_pickerclip: this.validData(this.permission.remove_pickerclip, false),//移除调单夹 |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
/** |
|
|
|
|