|
@@ -18,8 +18,18 @@
|
|
|
</a-col>
|
|
|
<template v-if="toggleSearchStatus">
|
|
|
<a-col :lg="8">
|
|
|
- <a-form-item name="projectName" :label-col="labelCol1" :wrapper-col="wrapperCol1">
|
|
|
- <template #label><span title="项目(projectName)">项目(projectName)</span></template>
|
|
|
+ <a-form-item name="project" :label-col="labelCol1" :wrapper-col="wrapperCol1">
|
|
|
+ <template #label><span title="项目(project)">项目(project)</span></template>
|
|
|
+ <ApiSelect
|
|
|
+ :api="ProjectOption"
|
|
|
+ showSearch
|
|
|
+ v-model:value="queryParam.project"
|
|
|
+ :filterOption="false"
|
|
|
+ resultField="records"
|
|
|
+ labelField="name"
|
|
|
+ valueField="id"
|
|
|
+ :params='{pageSize:-1}'
|
|
|
+ />
|
|
|
<a-input placeholder="请输入项目(projectName)" v-model:value="queryParam.projectName" allow-clear AutoComplete="off"></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -27,13 +37,14 @@
|
|
|
<a-form-item name="supplier">
|
|
|
<template #label><span title="供应商(supplier)">供应商(supplierName)</span></template>
|
|
|
<ApiSelect
|
|
|
- :api="Supplierlist"
|
|
|
+ :api="supplierOption"
|
|
|
showSearch
|
|
|
v-model:value="queryParam.supplier"
|
|
|
:filterOption="false"
|
|
|
resultField="records"
|
|
|
labelField="name"
|
|
|
valueField="id"
|
|
|
+ :params='{pageSize:-1}'
|
|
|
/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -46,7 +57,16 @@
|
|
|
<a-col :lg="8">
|
|
|
<a-form-item name="productionClass" :label-col="labelCol1" :wrapper-col="wrapperCol1">
|
|
|
<template #label><span title="产品分类(production class)">产品分类(production class)</span></template>
|
|
|
- <JSelectInput v-model:value="queryParam.productionClass" placeholder="请选择" :options="classOption" ></JSelectInput>
|
|
|
+ <ApiSelect
|
|
|
+ :api="ClassList"
|
|
|
+ showSearch
|
|
|
+ v-model:value="queryParam.productionClass"
|
|
|
+ :filterOption="false"
|
|
|
+ resultField="records"
|
|
|
+ labelField="name"
|
|
|
+ valueField="id"
|
|
|
+ :params='{pageSize:-1}'
|
|
|
+ />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="8">
|
|
@@ -58,7 +78,7 @@
|
|
|
<a-col :lg="8">
|
|
|
<a-form-item name="maker">
|
|
|
<template #label><span title="厂家(maker)">厂家(maker)</span></template>
|
|
|
- <a-input placeholder="请输入厂家(maker)" v-model:value="queryParam.maker" allow-clear AutoComplete="off"></a-input>
|
|
|
+ <JDictSelectTag v-model:value="queryParam.maker" placeholder="请选择" dictCode="factory"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<!-- <a-col :lg="8">
|
|
@@ -151,18 +171,15 @@
|
|
|
import {useModal} from '/@/components/Modal';
|
|
|
import ArriveGoodsFormModal from './components/ArriveGoodsFormModal.vue'
|
|
|
import {columns,} from './ArriveGoodsForm.data';
|
|
|
- import {list, deleteOne, batchDelete, getImportUrl,bacthClose,cancelBatchClose,getExportUrl,batchSubmit,cancelBatchSubmit,Supplierlist} from './ArriveGoodsForm.api';
|
|
|
+ import {list, deleteOne, batchDelete, getImportUrl,bacthClose,cancelBatchClose,getExportUrl,batchSubmit,cancelBatchSubmit,ProjectOption,supplierOption,ClassList} from './ArriveGoodsForm.api';
|
|
|
import { cloneDeep } from "lodash-es";
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
- import { JDictSelectTag} from '/@/components/Form';
|
|
|
- import JSelectInput from '/@/components/Form/src/jeecg/components/JSelectInput.vue';
|
|
|
- import {ApiSelect} from '/@/components/Form/index';
|
|
|
+ import { JDictSelectTag,ApiSelect} from '/@/components/Form';
|
|
|
import { message } from 'ant-design-vue';
|
|
|
const formRef = ref();
|
|
|
const queryParam = reactive<any>({});
|
|
|
//注册model
|
|
|
const [registerModal, {openModal}] = useModal();
|
|
|
- var classOption = ref([]);
|
|
|
//注册table数据
|
|
|
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
|
|
|
tableProps:{
|
|
@@ -206,11 +223,6 @@
|
|
|
});
|
|
|
reload();
|
|
|
}
|
|
|
- // 自动请求并暴露内部方法
|
|
|
- onMounted(() => {
|
|
|
- getOptiom()
|
|
|
- });
|
|
|
-
|
|
|
/**
|
|
|
* 新增事件
|
|
|
*/
|
|
@@ -230,26 +242,6 @@
|
|
|
showFooter: true,
|
|
|
});
|
|
|
}
|
|
|
- // 产品分类
|
|
|
- function getOptiom(){
|
|
|
- defHttp
|
|
|
- .get({ url: 'baseCode/baseProductClass/list'}, { isTransformResponse: false })
|
|
|
- .then((res) => {
|
|
|
- if (res.success) {
|
|
|
- classOption.value = []
|
|
|
- res.result.records.forEach(element => {
|
|
|
- var obj = {
|
|
|
- label: element.name?element.name:'无名称请维护',
|
|
|
- value: element.id?element.id:''
|
|
|
- };
|
|
|
- classOption.value.push( obj)
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
- .finally(() => {
|
|
|
- // loading.value = false;
|
|
|
- });
|
|
|
- }
|
|
|
/**
|
|
|
* 详情
|
|
|
*/
|