|
@@ -9,6 +9,12 @@
|
|
|
placeholder="请选择任务类型" @change="searchDatas"
|
|
placeholder="请选择任务类型" @change="searchDatas"
|
|
|
/>
|
|
/>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
|
|
+ <a-form-item label="仓库" class="horizontal-form-item">
|
|
|
|
|
+ <a-select
|
|
|
|
|
+ v-model:value="formData.warehouseId" class="w-full" :options="warehouseOptions" allow-clear
|
|
|
|
|
+ placeholder="请选择仓库" @change="searchDatas"
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-form-item>
|
|
|
<a-form-item label="起始货位编号" class="horizontal-form-item">
|
|
<a-form-item label="起始货位编号" class="horizontal-form-item">
|
|
|
<a-input
|
|
<a-input
|
|
|
v-model:value="formData.positionBeginNo" class="w-full" placeholder="请输入起始货位编号"
|
|
v-model:value="formData.positionBeginNo" class="w-full" placeholder="请输入起始货位编号"
|
|
@@ -95,6 +101,7 @@ const formData = ref({
|
|
|
executeStatus: null,
|
|
executeStatus: null,
|
|
|
agvNo: null,
|
|
agvNo: null,
|
|
|
success: null,
|
|
success: null,
|
|
|
|
|
+ warehouseId: null,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const totalSize = ref(0);
|
|
const totalSize = ref(0);
|
|
@@ -106,6 +113,7 @@ const pagination = ref({
|
|
|
const workTypes = ref(workOptions);
|
|
const workTypes = ref(workOptions);
|
|
|
const successTypes = ref(successOptions);
|
|
const successTypes = ref(successOptions);
|
|
|
const executeStatus = ref(executeOptions);
|
|
const executeStatus = ref(executeOptions);
|
|
|
|
|
+const warehouseOptions = ref([]);
|
|
|
|
|
|
|
|
// 获取分页参数后查询
|
|
// 获取分页参数后查询
|
|
|
const getPageParams = (page, pageSize) => {
|
|
const getPageParams = (page, pageSize) => {
|
|
@@ -144,11 +152,37 @@ const clearFilter = () => {
|
|
|
executeStatus: null,
|
|
executeStatus: null,
|
|
|
agvNo: null,
|
|
agvNo: null,
|
|
|
success: null,
|
|
success: null,
|
|
|
|
|
+ warehouseId: null,
|
|
|
};
|
|
};
|
|
|
searchDatas();
|
|
searchDatas();
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+const getWarehouseOptions = () => {
|
|
|
|
|
+ $.ajax({
|
|
|
|
|
+ url: Common.getApiURL('WarehouseResource/queryUserManageWarehouse'),
|
|
|
|
|
+ type: 'get',
|
|
|
|
|
+ dataType: 'json',
|
|
|
|
|
+ beforeSend: function (request) {
|
|
|
|
|
+ Common.addTokenToRequest(request);
|
|
|
|
|
+ },
|
|
|
|
|
+ success: function (res) {
|
|
|
|
|
+ if (res && res.length > 0) {
|
|
|
|
|
+ warehouseOptions.value = res.map(item => ({
|
|
|
|
|
+ label: item.name,
|
|
|
|
|
+ value: item.id,
|
|
|
|
|
+ }));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ warehouseOptions.value = [];
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
|
|
|
+ console.error(XMLHttpRequest, textStatus, errorThrown);
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
|
|
+ getWarehouseOptions();
|
|
|
getTableDatas();
|
|
getTableDatas();
|
|
|
});
|
|
});
|
|
|
|
|
|