调整机构加盟申请-上传合同环节:上传合同的目录层级结构
This commit is contained in:
parent
e7b95f125d
commit
5f4f2ff901
|
|
@ -22,6 +22,7 @@ enum Api {
|
||||||
changeElderTagMain = '/sys/sysDepart/changeElderTagMain', //变更标准标签库
|
changeElderTagMain = '/sys/sysDepart/changeElderTagMain', //变更标准标签库
|
||||||
getElderTagMain = '/sys/sysDepart/getElderTagMain', //查询当前标准标签库机构信息
|
getElderTagMain = '/sys/sysDepart/getElderTagMain', //查询当前标准标签库机构信息
|
||||||
getETMOrgInfo = '/api/common/getETMOrgInfo', //标准标签库信息
|
getETMOrgInfo = '/api/common/getETMOrgInfo', //标准标签库信息
|
||||||
|
queryUpBizPrefix = '/api/sysUtils/queryUpBizPrefix',
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -213,3 +214,11 @@ export const changeElderTagMain = (orgCode) => {
|
||||||
export const getElderTagMain = () => {
|
export const getElderTagMain = () => {
|
||||||
return defHttp.get({ url: Api.getElderTagMain });
|
return defHttp.get({ url: Api.getElderTagMain });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询上传目录前缀(年/月)
|
||||||
|
* @param params
|
||||||
|
*/
|
||||||
|
export const queryUpBizPrefix = () => {
|
||||||
|
return defHttp.get({ url: Api.queryUpBizPrefix }, { isTransformResponse: false });
|
||||||
|
};
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="加盟合同" v-bind="validateInfos.contract" id="OrgApplyInfoForm-contract">
|
<a-form-item label="加盟合同" v-bind="validateInfos.contract" id="OrgApplyInfoForm-contract">
|
||||||
<JUpload v-model:value="formData.contract" :maxCount="1" accept=".pdf" :beforeUpload="checkFileType">
|
<JUpload v-model:value="formData.contract" :bizPath="upBizPrefix + '/jgxx/jg'" :maxCount="1" accept=".pdf" :beforeUpload="checkFileType">
|
||||||
</JUpload>
|
</JUpload>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<div style="margin-top: 15px;margin-left:20%;color:#8e8e8e;font-size:12px;">说明:请上传pdf文件,并且只能上传一份文件</div>
|
<div style="margin-top: 15px;margin-left:20%;color:#8e8e8e;font-size:12px;">说明:请上传pdf文件,并且只能上传一份文件</div>
|
||||||
|
|
@ -96,6 +96,7 @@ import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue'
|
||||||
import TencentMap from '/@/components/TencentMap/TencentMap.vue';
|
import TencentMap from '/@/components/TencentMap/TencentMap.vue';
|
||||||
import JImageUpload from '/@/components/Form/src/jeecg/components/JImageUpload.vue';
|
import JImageUpload from '/@/components/Form/src/jeecg/components/JImageUpload.vue';
|
||||||
import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
|
import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
|
||||||
|
import { queryUpBizPrefix } from '/@/api/common/api'
|
||||||
|
|
||||||
const cityViewValue = ref('')
|
const cityViewValue = ref('')
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
@ -106,6 +107,7 @@ const props = defineProps({
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
const useForm = Form.useForm;
|
const useForm = Form.useForm;
|
||||||
const emit = defineEmits(['register', 'ok']);
|
const emit = defineEmits(['register', 'ok']);
|
||||||
|
const upBizPrefix = ref('')
|
||||||
const formData = reactive<Record<string, any>>({
|
const formData = reactive<Record<string, any>>({
|
||||||
id: '',
|
id: '',
|
||||||
openId: '',
|
openId: '',
|
||||||
|
|
@ -309,6 +311,12 @@ defineExpose({
|
||||||
saveForm,
|
saveForm,
|
||||||
submitForm,
|
submitForm,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
queryUpBizPrefix().then(res => {
|
||||||
|
upBizPrefix.value = res.result
|
||||||
|
})
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue