|
@@ -4,9 +4,6 @@
|
|
|
<template #quotationProjectName="props">
|
|
|
<a-input-search v-model:value="props.values.quotationProjectName" allow-clear enter-button="Search" @search="onSearchProject( props)"></a-input-search>
|
|
|
</template>
|
|
|
- <template #productionClass="{model,field}">
|
|
|
- <JSelectInput v-model:value="model[field]" placeholder="请选择" :options="classOption" ></JSelectInput>
|
|
|
- </template>
|
|
|
</BasicForm>
|
|
|
<!-- 子表单区域 -->
|
|
|
<a-tabs v-model:activeKey="activeKey" animated @change="handleChangeTabs" style="padding: 24px;padding-top: 0px;">
|
|
@@ -70,7 +67,6 @@
|
|
|
import {BasicModal, useModalInner} from '/@/components/Modal';
|
|
|
import {BasicForm, useForm} from '/@/components/Form/index';
|
|
|
import { JVxeTable } from '/@/components/jeecg/JVxeTable'
|
|
|
- import JSelectInput from '/@/components/Form/src/jeecg/components/JSelectInput.vue';
|
|
|
import { useJvxeMethod } from '/@/hooks/system/useJvxeMethods.ts'
|
|
|
import {formSchema,saleContractShipColumns,saleContractProductColumns} from '../SaleContract.data';
|
|
|
import {saveOrUpdate,saleContractShipList,saleContractProductList,querysaleVersonFormShipListByMainId,querySaleVersonProductListByMainId,queryVersonHistoryById} from '../SaleContract.api';
|
|
@@ -85,7 +81,6 @@
|
|
|
const emit = defineEmits(['register','success']);
|
|
|
const userStore = useUserStore();
|
|
|
var customerOption =ref([]);
|
|
|
- var classOption = ref([]);
|
|
|
const isUpdate = ref(true);
|
|
|
var title = ref('');
|
|
|
const formDisabled = ref(false);
|
|
@@ -119,7 +114,6 @@
|
|
|
//重置表单
|
|
|
await reset();
|
|
|
getCustomerOptions()
|
|
|
- getOptiom()
|
|
|
setModalProps({confirmLoading: false,showCancelBtn:data?.showFooter,showOkBtn:data?.showFooter});
|
|
|
isUpdate.value = !!data?.isUpdate;
|
|
|
formDisabled.value = !data?.showFooter;
|
|
@@ -172,7 +166,6 @@
|
|
|
try {
|
|
|
setModalProps({confirmLoading: true});
|
|
|
const isRevise = values.status=='1' ? true : false
|
|
|
- debugger
|
|
|
//提交表单
|
|
|
await saveOrUpdate(values, isUpdate.value,isRevise);
|
|
|
//关闭弹窗
|
|
@@ -212,25 +205,6 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- 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;
|
|
|
- });
|
|
|
- }
|
|
|
function selectShip(){
|
|
|
SelectShipSModalRef.value.getTable()
|
|
|
}
|