供应商
This commit is contained in:
@ -55,7 +55,7 @@ import type { FormInstance } from 'ant-design-vue';
|
||||
import dayjs from 'dayjs';
|
||||
import Upload from '/@/components/Form/src/components/Upload.vue';
|
||||
|
||||
const tableName = 'Customer'
|
||||
let tableName = 'Customer'
|
||||
const columnName = 'fileList'
|
||||
const { t } = useI18n();
|
||||
const isUpdate = ref(true);
|
||||
@ -78,7 +78,9 @@ const rules = {
|
||||
docTypeCode: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||
};
|
||||
const curData = ref()
|
||||
|
||||
const props = defineProps({
|
||||
type: String
|
||||
})
|
||||
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
|
||||
curData.value = ''
|
||||
formState.filePath = ''
|
||||
@ -119,7 +121,14 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
|
||||
console.log(val, 532, )
|
||||
}
|
||||
async function getOption() {
|
||||
optionList = await getDocCpList({'valid': 'Y'})
|
||||
let obj = {}
|
||||
if (props.type == 'cuSign') {
|
||||
obj = {'cuSign': 'Y'}
|
||||
} else {
|
||||
obj = {'suSign': 'Y'}
|
||||
tableName = 'supplier'
|
||||
}
|
||||
optionList = await getDocCpList({'valid': 'Y',...obj })
|
||||
}
|
||||
const handleCancel = () => {
|
||||
formRef.value.resetFields();
|
||||
|
||||
@ -289,7 +289,7 @@
|
||||
</a-form>
|
||||
</div>
|
||||
</a-spin>
|
||||
<certificateModal @register="registerCertificate" @success="handleSuccessCertificate" />
|
||||
<certificateModal @register="registerCertificate" @success="handleSuccessCertificate" type="cuSign" />
|
||||
<contactModal @register="registerContact" @success="handleSuccessContact" />
|
||||
<bankModal @register="registerBank" @success="handleSuccessBank"/>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user