|
@@ -20,13 +20,31 @@
|
|
|
<a-col :lg="8">
|
|
|
<a-form-item name="project">
|
|
|
<template #label><span title="系统项目(project)">系统项目(project)</span></template>
|
|
|
- <a-input v-model:value="queryParam.project" placeholder="请输入" AutoComplete="off"/>
|
|
|
+ <ApiSelect
|
|
|
+ :api="ProjectOption"
|
|
|
+ showSearch
|
|
|
+ v-model:value="queryParam.project"
|
|
|
+ :filterOption="false"
|
|
|
+ resultField="records"
|
|
|
+ labelField="name"
|
|
|
+ valueField="id"
|
|
|
+ :params='{pageSize:-1}'
|
|
|
+ />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="8">
|
|
|
<a-form-item name="customerName">
|
|
|
<template #label><span title="客户(customer)">客户(customer)</span></template>
|
|
|
- <a-input placeholder="请输入" v-model:value="queryParam.customerName" allow-clear AutoComplete="off"></a-input>
|
|
|
+ <ApiSelect
|
|
|
+ :api="CustomerOption"
|
|
|
+ showSearch
|
|
|
+ v-model:value="queryParam.customer"
|
|
|
+ :filterOption="false"
|
|
|
+ resultField="records"
|
|
|
+ labelField="abbreviation"
|
|
|
+ valueField="id"
|
|
|
+ :params='{pageSize:-1}'
|
|
|
+ />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="8">
|
|
@@ -38,7 +56,16 @@
|
|
|
<a-col :lg="8">
|
|
|
<a-form-item name="productionClass" >
|
|
|
<template #label><span title="产品分类(production class)">产品分类(production class)</span></template>
|
|
|
- <JSelectInput v-model:value="queryParam.productionClass" placeholder="请选择" :options="classOption" style="width: 100%;"></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">
|
|
@@ -50,7 +77,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">
|
|
@@ -152,10 +179,10 @@
|
|
|
import {useModal} from '/@/components/Modal';
|
|
|
import SaleInquiryFormModal from './components/SaleOrderFormModal.vue'
|
|
|
import {columns, superQuerySchema} from './SaleOrderForm.data';
|
|
|
- import {list, deleteOne, batchDelete, getImportUrl,getExportUrl,batchSubmit,cancelBatchSubmit,bacthClose,cancelBatchClose,bacthConfirm,cancelBatchConfirm} from './SaleOrderyForm.api';
|
|
|
+ import {list, deleteOne, batchDelete, getImportUrl,getExportUrl,batchSubmit,cancelBatchSubmit,bacthClose,cancelBatchClose,bacthConfirm,cancelBatchConfirm,ProjectOption,CustomerOption,ClassList} from './SaleOrderyForm.api';
|
|
|
import { cloneDeep } from "lodash-es";
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
- import { JDictSelectTag} from '/@/components/Form';
|
|
|
+ import { JDictSelectTag,ApiSelect} from '/@/components/Form';
|
|
|
import JSelectInput from '/@/components/Form/src/jeecg/components/JSelectInput.vue';
|
|
|
import JSelectUser from '/@/components/Form/src/jeecg/components/JSelectUser.vue';
|
|
|
import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue';
|
|
@@ -170,7 +197,6 @@
|
|
|
const queryParam = reactive<any>({});
|
|
|
//注册model
|
|
|
const [registerModal, {openModal}] = useModal();
|
|
|
- var classOption = ref([]);
|
|
|
//注册table数据
|
|
|
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
|
|
|
tableProps:{
|
|
@@ -216,10 +242,6 @@
|
|
|
});
|
|
|
reload();
|
|
|
}
|
|
|
- // 自动请求并暴露内部方法
|
|
|
- onMounted(() => {
|
|
|
- getOptiom()
|
|
|
- });
|
|
|
|
|
|
/**
|
|
|
* 新增事件
|
|
@@ -273,26 +295,6 @@
|
|
|
function handleExportInvoice(){
|
|
|
|
|
|
}
|
|
|
- // 产品分类
|
|
|
- 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;
|
|
|
- });
|
|
|
- }
|
|
|
/**
|
|
|
* 详情
|
|
|
*/
|