diff --git a/src/views/mediaLibrary/abolishDialog.vue b/src/views/mediaLibrary/abolishDialog.vue new file mode 100644 index 0000000..6d4e54e --- /dev/null +++ b/src/views/mediaLibrary/abolishDialog.vue @@ -0,0 +1,60 @@ + + \ No newline at end of file diff --git a/src/views/mediaLibrary/index.vue b/src/views/mediaLibrary/index.vue index 2bb80cf..9296d9c 100644 --- a/src/views/mediaLibrary/index.vue +++ b/src/views/mediaLibrary/index.vue @@ -161,7 +161,8 @@ @@ -238,27 +239,11 @@ + - - - - - - - - - - @@ -335,7 +320,7 @@ import { listBusSupplier } from "@/api/supplier" import { sysRegionListByPid } from "@/api/system/administrativeRegion" import { sysMediaTypeListByPid } from "@/api/system/mediaType" import { busTradingAreaPage } from "@/api/system/businessArea" -import { mediaPageList, mediaCancel } from "@/api/mediaLibrary" +import { mediaPageList } from "@/api/mediaLibrary" import { listDept } from "@/api/system/dept" // 注入组件 import mediaForm from "./mediaForm.vue"; @@ -345,6 +330,7 @@ import historyData from "./historyData.vue" import downFiles from './downFiles.vue'; import viewFileDialog from '@/components/ViewFile/index.vue' import exportDialog from './exportDialog.vue'; +import abolishDialog from './abolishDialog.vue'; import { useBackgroundStore } from '@/store/modules/background' const router = useRouter() @@ -380,8 +366,6 @@ const mediaList = ref([]) const loading = ref(true) const total = ref(0) const data = reactive({ - abolishForm: {}, - form: {}, queryParams: { pageNum: 1, pageSize: 10, @@ -400,11 +384,8 @@ const data = reactive({ townCode: undefined, businessDistrictId: undefined }, - abolishRules: { - content: [{ required: true, message: "请输入废除原因", trigger: "blur" }], - } }) -const { queryParams, form, abolishForm, abolishRules } = toRefs(data) +const { queryParams } = toRefs(data) // 表单 const showForm = ref(false) const mediaFormRef = ref(null) @@ -418,7 +399,7 @@ const mediaLogsRef = ref(null) const uploadOpen = ref(false) const docUploadList = ref([]) -const abolishOpen = ref(false) +const abolishRef = ref(null) const historyDataRef = ref(null) const downFileRef = ref(null) const viewFileRef = ref(null) @@ -575,7 +556,7 @@ const handleQuery = () => { } /** 重置按钮操作 */ -const resetQuery = () => { +const resetQuery = () => { handleQuery() } @@ -633,23 +614,7 @@ const handleCloseLogs = () => { } // 打开废除 const handleAbolish = (row) => { - abolishOpen.value = true -} -// 提交废除 -const handleSubmitAbolish = () => { - proxy.$refs["abolishRef"].validate(valid => { - if (valid) { - // addSysReaddBusProblemFeedbackgion(form.value).then(response => { - // proxy.$modal.msgSuccess("反馈成功") - // openFeedBack.value = false - // form.value = { - // feedbackUser: undefined, - // content: undefined - // } - // proxy.resetForm("feedBackRef") - // }) - } - }) + abolishRef.value.abolishOpen.openDialog(row.id) } // 打开历史数据 const handleHistoryChart = (row) => { diff --git a/src/views/mediaLibrary/mediaDetail.vue b/src/views/mediaLibrary/mediaDetail.vue index 715a4b5..5d61c06 100644 --- a/src/views/mediaLibrary/mediaDetail.vue +++ b/src/views/mediaLibrary/mediaDetail.vue @@ -46,17 +46,17 @@ - {{ detailForm.mediaType }} + {{ detailForm.mediaTypeStr }} - {{ detailForm.mediaCategory }} + {{ detailForm.mediaCategoryStr }} - {{ detailForm.displayForm }} + {{ detailForm.displayFormStr }} diff --git a/src/views/mediaLibrary/mediaForm.vue b/src/views/mediaLibrary/mediaForm.vue index a854c63..01e970e 100644 --- a/src/views/mediaLibrary/mediaForm.vue +++ b/src/views/mediaLibrary/mediaForm.vue @@ -16,8 +16,8 @@ - + @@ -523,7 +523,7 @@ import { Close, LocationInformation } from '@element-plus/icons-vue' import { listBusSupplier } from "@/api/supplier" import { sysRegionListByPid } from "@/api/system/administrativeRegion" import { sysMediaTypeListByPid } from "@/api/system/mediaType" -import { listDept } from "@/api/system/dept" +// import { listDept } from "@/api/system/dept" import { busTradingAreaPage } from "@/api/system/businessArea" import { addMedia, updateMedia, mediaDetail } from "@/api/mediaLibrary" @@ -605,7 +605,10 @@ const city = ref([]) const county = ref([]) const town = ref([]) // 业务部门 -const deptList = ref([]) +const deptList = ref([ + { value: 1, label: '优势媒体部' }, + { value: 2, label: '网络媒体部' } +]) // 归属选项 const supplierList = ref([]) const selectLoading = ref(false) @@ -658,9 +661,10 @@ const handleClosePickLat = (backValue) => { // 业务部门切换 const businessTypeName = ref('优势媒体部') const handleChangeDept = (val) => { - const choseDep = deptList.value.filter(item => item.deptId == val)[0] - ruleForm.value.businessType = choseDep?.deptId - businessTypeName.value = choseDep?.deptName + const choseDep = deptList.value.filter(item => item.value == val)[0] + console.log('部门', choseDep) + ruleForm.value.businessType = choseDep?.value + businessTypeName.value = choseDep?.label nextTick(() => { if (businessTypeName.value == '优势媒体部' && competitiveOfferRef.value) competitiveOfferRef.value.getMediaPrice(ruleForm.value.id, true) if (businessTypeName.value == '网络媒体部' && activePriceType.value == '门禁') accessControlPriceRef.value.getMediaPrice(ruleForm.value.id, true) @@ -707,11 +711,11 @@ const getMediaTypeThree = (value) => { }) } // 获取业务部门 -const getDepList = () => { - listDept({ businessFlag: 1 }).then(response => { - deptList.value = response.data - }) -} +// const getDepList = () => { +// listDept({ businessFlag: 1 }).then(response => { +// deptList.value = response.data +// }) +// } // 查询条件获取供应商 const getSupplierList = (queryText) => { if (queryText) { @@ -763,7 +767,7 @@ const getCityList = (value) => { const getCountyList = (value) => { var choseCity = city.value.filter(item => item.id == value)[0] if (choseCity) { - ruleForm.value.mediaCity = ruleForm.value.mediaCity + '/' + choseCity.name + ruleForm.value.mediaCity = ruleForm.value.provinceName + '/' + choseCity.name ruleForm.value.cityName = choseCity.name } else { ruleForm.value.cityCode = undefined @@ -786,7 +790,7 @@ const getCountyList = (value) => { const getTownList = (value) => { var choseCounty = county.value.filter(item => item.id == value)[0] if (choseCounty) { - ruleForm.value.mediaCity = ruleForm.value.mediaCity + '/' + choseCounty.name + ruleForm.value.mediaCity = ruleForm.value.provinceName + '/' + ruleForm.value.cityName + '/' + choseCounty.name ruleForm.value.areaName = choseCounty.name } else { ruleForm.value.areaCode = undefined @@ -805,7 +809,7 @@ const getTownList = (value) => { const setTown = (value) => { var choseTown = town.value.filter(item => item.id == value)[0] if (choseTown) { - ruleForm.value.mediaCity = ruleForm.value.mediaCity + '/' + choseTown.name + ruleForm.value.mediaCity = ruleForm.value.provinceName + '/' + ruleForm.value.cityName + '/' + ruleForm.value.areaName + '/' + choseTown.name ruleForm.value.townName = choseTown.name } getbusinessAreaList() @@ -895,7 +899,7 @@ const getMediaInfo = () => { mediaDetail(ruleForm.value.id).then(res => { ruleForm.value = res.data handleChangeDept(res.data.businessType) - if (ruleForm.value.mediaFile && ruleForm.value.mediaFile.length > 0) { + if (ruleForm.value.mediaFile && ruleForm.value.mediaFile.length > 0) { if (approvalDocumentRef.value) { const fileList = ruleForm.value.mediaFile.filter(item => item.fileType == 1) approvalDocumentRef.value.setFileInfo(fileList) @@ -972,7 +976,7 @@ async function handleResponse(response) { const initForm = (_formTitle, _ruleForm) => { formTitle.value = _formTitle ruleForm.value = _ruleForm - getDepList() + // getDepList() getMediaTypeOne() getProvinceList() if (ruleForm.value.id) getMediaInfo() diff --git a/src/views/outdoorMedia/index.vue b/src/views/outdoorMedia/index.vue index 737e48e..7096e46 100644 --- a/src/views/outdoorMedia/index.vue +++ b/src/views/outdoorMedia/index.vue @@ -112,18 +112,7 @@ - - - + diff --git a/src/views/supplier/supplierForm.vue b/src/views/supplier/supplierForm.vue index c55e137..471a9a8 100644 --- a/src/views/supplier/supplierForm.vue +++ b/src/views/supplier/supplierForm.vue @@ -417,7 +417,7 @@ const getCityList2 = (value) => { // 获取区/县数据 const getCountyList = (value) => { var choseCity = city.value.filter(item => item.id == value)[0] - if (choseCity) ruleForm.value.supplierCity = ruleForm.value.supplierCity + '/' + choseCity.name + if (choseCity) ruleForm.value.supplierCity = ruleForm.value.provinceName + '/' + choseCity.name sysRegionListByPid({ parentId: value }).then(res => { ruleForm.value.countyId = undefined county.value = res.data @@ -427,7 +427,7 @@ const getCountyList = (value) => { // 设置末级供应商城市 const setCounty = (value) => { var choseCounty = county.value.filter(item => item.id == value)[0] - if (choseCounty) ruleForm.value.supplierCity = ruleForm.value.supplierCity + '/' + choseCounty.name + if (choseCounty) ruleForm.value.supplierCity =ruleForm.value.provinceName+ '/' + ruleForm.value.cityName + '/' + choseCounty.name } // 详情信息联动 设置区/县数据