能力下架功能开发

This commit is contained in:
a0049873 2022-08-17 16:42:46 +08:00
parent 3f235f3d81
commit 080682f6b7
3 changed files with 142 additions and 132 deletions

View File

@ -9,7 +9,7 @@
<div class="basic-information-content"> <div class="basic-information-content">
<p> <p>
<span class="text"> <span class="text">
能力申请标题<span> {{ dataForm.name || '--' }}</span></span 能力申请标题<span> {{ dataForm.undercarriageTitle || '--' }}</span></span
> >
<span class="text" <span class="text"
>下架单号<span>{{ dataForm.applyNumber || '--' }}</span></span >下架单号<span>{{ dataForm.applyNumber || '--' }}</span></span
@ -22,17 +22,22 @@
></span ></span
> >
<span class="text" <span class="text"
>电话<span>{{ dataForm.deptPhone || '--' }}</span></span >电话<span>{{ dataForm.undercarriageUserPhone || '--' }}</span></span
> >
<span class="text" <span class="text"
>单位<span>{{ dataForm.deptName || deptName }}</span></span >单位<span>{{ dataForm.deptName || deptName }}</span></span
> >
</p> </p>
<p v-if="dataForm.enclosure" class="accessory"> <p>
<span class="text"
>能力下架原因<span>{{ dataForm.undercarriageReason || '--' }}</span></span
>
</p>
<p v-if="dataForm.undercarriageEnclosure" class="accessory">
<span> <span>
申请附件<span> 申请附件<span>
{{ dataForm.enclosure || '--' {{ dataForm.undercarriageEnclosureName || '--'
}}<button @click="downloadFile2(dataForm.enclosure)"> }}<button @click="downloadFile2(dataForm.undercarriageEnclosure)">
预览 预览
</button></span </button></span
></span ></span

View File

@ -171,7 +171,7 @@
width="12.1rem" width="12.1rem"
@ok="del()" @ok="del()"
@cancel="reason = ''" @cancel="reason = ''"
footer="{}" footer=""
> >
<TheShelvesAbility v-if="visible" :delObj="delObj"></TheShelvesAbility> <TheShelvesAbility v-if="visible" :delObj="delObj"></TheShelvesAbility>
<!-- <a-input v-model:value="reason" placeholder="请输入下架原因" /> --> <!-- <a-input v-model:value="reason" placeholder="请输入下架原因" /> -->
@ -457,7 +457,11 @@
const del = () => { const del = () => {
console.log('下架================》', delObj.value) console.log('下架================》', delObj.value)
undercarriage({ undercarriage({
reason: reason.value, reason: delObj2.value.reason,
title: delObj2.value.title,
phone: delObj2.value.phone,
enclosure: delObj2.value.fileList[0].response.data,
enclosureName: delObj2.value.fileList[0].name,
resource: [ resource: [
{ resourceId: delObj.value.id, resourceName: delObj.value.name }, { resourceId: delObj.value.id, resourceName: delObj.value.name },
], ],
@ -479,8 +483,8 @@
}) })
// //
mybus.on('Determine', (val) => { mybus.on('Determine', (val) => {
delObj.value.name = val.title console.log('下架==============》', val)
reason.value = val.reason delObj2.value = val
del() del()
}) })
onBeforeUnmount(() => { onBeforeUnmount(() => {
@ -490,6 +494,7 @@
const reason = ref('') const reason = ref('')
const visible = ref(false) const visible = ref(false)
const delObj = ref({}) const delObj = ref({})
const delObj2 = ref({})
const showModal = (item) => { const showModal = (item) => {
if (item.delFlag == 0) { if (item.delFlag == 0) {
delObj.value = item delObj.value = item

View File

@ -263,7 +263,7 @@
getUserInfo().then((res) => { getUserInfo().then((res) => {
formName.value.title = props.delObj.name formName.value.title = props.delObj.name
formName.value.user = res.data.data.realName formName.value.user = res.data.data.realName
formName.value.phone = props.delObj.deptPhone formName.value.phone = props.delObj.mobile
// formName.value.fileList = props.delObj.undercarriageEnclosure // formName.value.fileList = props.delObj.undercarriageEnclosure
deptIdQuery(res.data.data.deptId).then((resValue) => { deptIdQuery(res.data.data.deptId).then((resValue) => {
formName.value.unit = resValue.data.data.name formName.value.unit = resValue.data.data.name
@ -326,7 +326,7 @@
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.TheShelvesAbility { .TheShelvesAbility {
.title-h1 { .title-h1 {
font-size: 0.22rem; font-size: 0.22rem;
line-height: 0.22rem; line-height: 0.22rem;
@ -471,5 +471,5 @@
justify-content: center; justify-content: center;
} }
} }
} }
</style> </style>