|
@@ -20,19 +20,46 @@
|
|
<a-col :lg="8">
|
|
<a-col :lg="8">
|
|
<a-form-item name="project">
|
|
<a-form-item name="project">
|
|
<template #label><span title="项目(project)">项目(project)</span></template>
|
|
<template #label><span title="项目(project)">项目(project)</span></template>
|
|
- <a-input v-model:value="queryParam.project" placeholder="请选择"/>
|
|
|
|
|
|
+ <ApiSelect
|
|
|
|
+ :api="ProjectOption"
|
|
|
|
+ showSearch
|
|
|
|
+ v-model:value="queryParam.project"
|
|
|
|
+ :filterOption="false"
|
|
|
|
+ resultField="records"
|
|
|
|
+ labelField="name"
|
|
|
|
+ valueField="id"
|
|
|
|
+ :params='{pageSize:-1}'
|
|
|
|
+ />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :lg="8">
|
|
<a-col :lg="8">
|
|
- <a-form-item name="customerName">
|
|
|
|
|
|
+ <a-form-item name="customer">
|
|
<template #label><span title="客户(customer)">客户(customer)</span></template>
|
|
<template #label><span title="客户(customer)">客户(customer)</span></template>
|
|
- <a-input placeholder="请输入客户(customer)" v-model:value="queryParam.customerName" allow-clear ></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-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :lg="8">
|
|
<a-col :lg="8">
|
|
<a-form-item name="productionClass" >
|
|
<a-form-item name="productionClass" >
|
|
<template #label><span title="产品分类(production class)">产品分类(production class)</span></template>
|
|
<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-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :lg="8">
|
|
<a-col :lg="8">
|
|
@@ -44,25 +71,25 @@
|
|
<a-col :lg="8">
|
|
<a-col :lg="8">
|
|
<a-form-item name="maker">
|
|
<a-form-item name="maker">
|
|
<template #label><span title="厂家(maker)">厂家(maker)</span></template>
|
|
<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-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :lg="8">
|
|
<a-col :lg="8">
|
|
<a-form-item name="productCode">
|
|
<a-form-item name="productCode">
|
|
<template #label><span title="产品编码(product code)">产品编码(product code)</span></template>
|
|
<template #label><span title="产品编码(product code)">产品编码(product code)</span></template>
|
|
- <a-input placeholder="请输入产品编码(product code)" v-model:value="queryParam.productCode" allow-clear ></a-input>
|
|
|
|
|
|
+ <a-input placeholder="请输入产品编码(product code)" v-model:value="queryParam.productCode" allow-clear AutoComplete="off"></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :lg="8">
|
|
<a-col :lg="8">
|
|
<a-form-item name="warehouse">
|
|
<a-form-item name="warehouse">
|
|
<template #label><span title="仓库(warehouse)">仓库(warehouse)</span></template>
|
|
<template #label><span title="仓库(warehouse)">仓库(warehouse)</span></template>
|
|
- <a-input placeholder="请输" v-model:value="queryParam.warehouse" allow-clear ></a-input>
|
|
|
|
|
|
+ <JDictSelectTag v-model:value="queryParam.warehouse" placeholder="请选择" dictCode="warehouse"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :lg="8">
|
|
<a-col :lg="8">
|
|
<a-form-item name="goodsAllocation">
|
|
<a-form-item name="goodsAllocation">
|
|
<template #label><span title="货位(goods allocation)">货位(goods allocation)</span></template>
|
|
<template #label><span title="货位(goods allocation)">货位(goods allocation)</span></template>
|
|
- <a-input placeholder="请输" v-model:value="queryParam.goodsAllocation" allow-clear ></a-input>
|
|
|
|
|
|
+ <JDictSelectTag v-model:value="queryParam.goodsAllocation" placeholder="请选择" dictCode="goods_allocation"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :lg="8">
|
|
<a-col :lg="8">
|
|
@@ -147,11 +174,9 @@
|
|
import salesOutFormModal from './components/salesOutFormModal.vue'
|
|
import salesOutFormModal from './components/salesOutFormModal.vue'
|
|
import SetIsExport from './components/SetIsExport.vue'
|
|
import SetIsExport from './components/SetIsExport.vue'
|
|
import {columns} from './salesOutboundForm.data';
|
|
import {columns} from './salesOutboundForm.data';
|
|
- import {list, deleteOne, batchDelete, getImportUrl,getExportUrl,batchSubmit,cancelBatchSubmit,editSignSing,applyInvoice} from './salesOutboundForm.api';
|
|
|
|
|
|
+ import {list, deleteOne, batchDelete, getImportUrl,getExportUrl,batchSubmit,cancelBatchSubmit,editSignSing,applyInvoice,ProjectOption,CustomerOption,ClassList} from './salesOutboundForm.api';
|
|
import { cloneDeep } from "lodash-es";
|
|
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 { JDictSelectTag,ApiSelect} from '/@/components/Form';
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
import { useGlobSetting } from '/@/hooks/setting';
|
|
import { useGlobSetting } from '/@/hooks/setting';
|
|
import { getHeaders } from '/@/utils/common/compUtils';
|
|
import { getHeaders } from '/@/utils/common/compUtils';
|
|
@@ -164,7 +189,6 @@
|
|
});
|
|
});
|
|
//注册model
|
|
//注册model
|
|
const [registerModal, {openModal}] = useModal();
|
|
const [registerModal, {openModal}] = useModal();
|
|
- var classOption = ref([]);
|
|
|
|
const setIsExportRef=ref();
|
|
const setIsExportRef=ref();
|
|
//注册table数据
|
|
//注册table数据
|
|
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
|
|
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
|
|
@@ -199,10 +223,6 @@
|
|
|
|
|
|
const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext
|
|
const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext
|
|
|
|
|
|
- // 自动请求并暴露内部方法
|
|
|
|
- onMounted(() => {
|
|
|
|
- getOptiom()
|
|
|
|
- });
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* 新增事件
|
|
* 新增事件
|
|
@@ -223,26 +243,6 @@
|
|
showFooter: true,
|
|
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;
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
/**
|
|
/**
|
|
* 详情
|
|
* 详情
|
|
*/
|
|
*/
|