调整工单管理上传目录层级结构

This commit is contained in:
1378012178@qq.com 2025-11-25 14:55:55 +08:00
parent 80a4be3472
commit 1fd5251d06
2 changed files with 40 additions and 22 deletions

View File

@ -17,6 +17,7 @@ enum Api {
getCategoryData = '/sys/category/loadAllData',
getNuList = '/iot/tplink/cameraInfo/nuList', //后期调整
getOrgInfo = '/api/common/getOrgInfo',//根据机构编码获取机构信息
queryUpBizPrefix = '/api/sysUtils/queryUpBizPrefix',
}
/**
@ -173,3 +174,11 @@ export const uploadMyFile = (url, data) => {
export const getOrgInfo = (params) => {
return defHttp.get({ url: Api.getOrgInfo, params });
};
/**
* /
* @param params
*/
export const queryUpBizPrefix = () => {
return defHttp.get({ url: Api.queryUpBizPrefix }, { isTransformResponse: false });
};

View File

@ -19,14 +19,12 @@
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="平台类型" v-bind="validateInfos.platType" id="WorkOrderForm-platType"
name="platType">
<a-form-item label="平台类型" v-bind="validateInfos.platType" id="WorkOrderForm-platType" name="platType">
{{ formData.platType_dictText }}
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="工单类型" v-bind="validateInfos.workType" id="WorkOrderForm-workType"
name="workType">
<a-form-item label="工单类型" v-bind="validateInfos.workType" id="WorkOrderForm-workType" name="workType">
{{ formData.workType_dictText }}
</a-form-item>
</a-col>
@ -46,7 +44,8 @@
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="提交时间" v-bind="validateInfos.createTime" id="WorkOrderForm-createTime" name="createTime">
<a-form-item label="提交时间" v-bind="validateInfos.createTime" id="WorkOrderForm-createTime"
name="createTime">
{{ formData.createTime }}
</a-form-item>
</a-col>
@ -56,13 +55,15 @@
</div>
<a-row>
<a-col :span="12">
<a-form-item label="反馈内容" v-bind="validateInfos.replyContent" id="WorkOrderForm-replyContent" name="replyContent">
<a-textarea v-model:value="formData.replyContent" rows="4" placeholder="请输入反馈内容" :maxlength="100" showCount/>
<a-form-item label="反馈内容" v-bind="validateInfos.replyContent" id="WorkOrderForm-replyContent"
name="replyContent">
<a-textarea v-model:value="formData.replyContent" rows="4" placeholder="请输入反馈内容" :maxlength="100"
showCount />
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="反馈附件" v-bind="validateInfos.replyFile" id="WorkOrderForm-replyFile" name="replyFile">
<JUpload v-model:value="formData.replyFile" :maxCount="1"></JUpload>
<JUpload v-model:value="formData.replyFile" :bizPath="upBizPrefix + '/jgxx/jg'" :maxCount="1"></JUpload>
</a-form-item>
</a-col>
</a-row>
@ -84,6 +85,7 @@ import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectT
import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
import dayjs from 'dayjs';
import { useUserStore } from '/@/store/modules/user';
import { queryUpBizPrefix } from '/@/api/common/api'
const props = defineProps({
formDisabled: { type: Boolean, default: false },
@ -94,6 +96,7 @@ const formRef = ref();
const useForm = Form.useForm;
const emit = defineEmits(['register', 'ok']);
const userStore = useUserStore();
const upBizPrefix = ref('')
const formData = reactive<Record<string, any>>({
id: '',
orgId: '',
@ -212,6 +215,12 @@ defineExpose({
open,
submitForm,
});
onMounted(() => {
queryUpBizPrefix().then(res => {
upBizPrefix.value = res.result
})
})
</script>
<style lang="less" scoped>