能力下架功能开发

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">
<p>
<span class="text">
能力申请标题<span> {{ dataForm.name || '--' }}</span></span
能力申请标题<span> {{ dataForm.undercarriageTitle || '--' }}</span></span
>
<span class="text"
>下架单号<span>{{ dataForm.applyNumber || '--' }}</span></span
@ -22,17 +22,22 @@
></span
>
<span class="text"
>电话<span>{{ dataForm.deptPhone || '--' }}</span></span
>电话<span>{{ dataForm.undercarriageUserPhone || '--' }}</span></span
>
<span class="text"
>单位<span>{{ dataForm.deptName || deptName }}</span></span
>
</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>
{{ dataForm.enclosure || '--'
}}<button @click="downloadFile2(dataForm.enclosure)">
{{ dataForm.undercarriageEnclosureName || '--'
}}<button @click="downloadFile2(dataForm.undercarriageEnclosure)">
预览
</button></span
></span

View File

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

View File

@ -263,7 +263,7 @@
getUserInfo().then((res) => {
formName.value.title = props.delObj.name
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
deptIdQuery(res.data.data.deptId).then((resValue) => {
formName.value.unit = resValue.data.data.name