bug修复及后台挂接计费标准只能选一次
This commit is contained in:
parent
07d387b5a2
commit
fd2fa09fd9
|
@ -104,8 +104,17 @@ export default {
|
||||||
})
|
})
|
||||||
if (flag) {
|
if (flag) {
|
||||||
const obj = {}
|
const obj = {}
|
||||||
|
let sfFlag = false
|
||||||
|
|
||||||
list.forEach((item) => {
|
list.forEach((item) => {
|
||||||
if (item.type === 'input2') {
|
if (item.type === 'input2') {
|
||||||
|
sfFlag = this.data.filter(
|
||||||
|
(val) => val.type === this.numType
|
||||||
|
)[0]
|
||||||
|
if (sfFlag) {
|
||||||
|
this.$message.warning('已添加过该类型!')
|
||||||
|
return
|
||||||
|
}
|
||||||
obj[item.field] =
|
obj[item.field] =
|
||||||
item.note1 +
|
item.note1 +
|
||||||
(this.numType === '一次性买断'
|
(this.numType === '一次性买断'
|
||||||
|
@ -121,7 +130,10 @@ export default {
|
||||||
obj[item.field] = item.note1
|
obj[item.field] = item.note1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
if (!sfFlag) {
|
||||||
this.data.push(obj)
|
this.data.push(obj)
|
||||||
|
}
|
||||||
|
// this.data.push(obj)
|
||||||
this.$emit('changeInfoList', {
|
this.$emit('changeInfoList', {
|
||||||
attrType: title,
|
attrType: title,
|
||||||
attrValue: JSON.stringify(this.data),
|
attrValue: JSON.stringify(this.data),
|
||||||
|
|
|
@ -9,38 +9,83 @@
|
||||||
<div class="form-container">
|
<div class="form-container">
|
||||||
<div v-if="applySuccess">
|
<div v-if="applySuccess">
|
||||||
<div class="title">申请人信息</div>
|
<div class="title">申请人信息</div>
|
||||||
<a-form ref="formRef" :model="formName" name="basic" :label-col="{ style: { width: '106px' } }"
|
<a-form
|
||||||
:wrapper-col="{ style: { width: '230px' } }" labelAlign="left" autocomplete="off">
|
ref="formRef"
|
||||||
|
:model="formName"
|
||||||
|
name="basic"
|
||||||
|
:label-col="{ style: { width: '106px' } }"
|
||||||
|
:wrapper-col="{ style: { width: '230px' } }"
|
||||||
|
labelAlign="left"
|
||||||
|
autocomplete="off"
|
||||||
|
>
|
||||||
<div class="base-info">
|
<div class="base-info">
|
||||||
<a-form-item label="申请人" name="applyUserName" :rules="[{ required: true, message: '请输入申请人' }]">
|
<a-form-item
|
||||||
<a-input placeholder="请输入申请人" v-model:value="formName.applyUserName" />
|
label="申请人"
|
||||||
|
name="applyUserName"
|
||||||
|
:rules="[{ required: true, message: '请输入申请人' }]"
|
||||||
|
>
|
||||||
|
<a-input
|
||||||
|
placeholder="请输入申请人"
|
||||||
|
v-model:value="formName.applyUserName"
|
||||||
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
<a-form-item style="margin: 0 22px" label="申请人电话" name="applyUserPhone" :rules="[
|
<a-form-item
|
||||||
|
style="margin: 0 22px"
|
||||||
|
label="申请人电话"
|
||||||
|
name="applyUserPhone"
|
||||||
|
:rules="[
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
pattern: /^1[3456789]\d{9}$/,
|
pattern: /^1[3456789]\d{9}$/,
|
||||||
message: '请输入正确的电话号码',
|
message: '请输入正确的电话号码',
|
||||||
},
|
},
|
||||||
]">
|
]"
|
||||||
<a-input placeholder="请输入申请人电话" v-model:value="formName.applyUserPhone" />
|
>
|
||||||
|
<a-input
|
||||||
|
placeholder="请输入申请人电话"
|
||||||
|
v-model:value="formName.applyUserPhone"
|
||||||
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
<a-form-item label="申请单位" name="applyUserDeptName" :rules="[{ required: true, message: '请输入申请单位' }]">
|
<a-form-item
|
||||||
<a-input placeholder="请输入申请单位" v-model:value="formName.applyUserDeptName" />
|
label="申请单位"
|
||||||
|
name="applyUserDeptName"
|
||||||
|
:rules="[{ required: true, message: '请输入申请单位' }]"
|
||||||
|
>
|
||||||
|
<a-input
|
||||||
|
placeholder="请输入申请单位"
|
||||||
|
v-model:value="formName.applyUserDeptName"
|
||||||
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="title">需求信息</div>
|
<div class="title">需求信息</div>
|
||||||
|
|
||||||
<a-form-item style="margin-bottom: 10px" label="需求标题" name="demandSubject"
|
<a-form-item
|
||||||
:rules="[{ required: true, message: '请输入需求标题' }]">
|
style="margin-bottom: 10px"
|
||||||
<a-input style="width: 350px" v-model:value="formName.demandSubject" />
|
label="需求标题"
|
||||||
|
name="demandSubject"
|
||||||
|
:rules="[{ required: true, message: '请输入需求标题' }]"
|
||||||
|
>
|
||||||
|
<a-input
|
||||||
|
style="width: 350px"
|
||||||
|
v-model:value="formName.demandSubject"
|
||||||
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
<a-form-item style="margin-bottom: 10px" label="需求类型" name="detailsType"
|
<a-form-item
|
||||||
:rules="[{ required: true, message: '请选择需求类型' }]">
|
style="margin-bottom: 10px"
|
||||||
<a-select ref="select" v-model:value="formName.detailsType" @focus="focus" style="width: 200px">
|
label="需求类型"
|
||||||
|
name="detailsType"
|
||||||
|
:rules="[{ required: true, message: '请选择需求类型' }]"
|
||||||
|
>
|
||||||
|
<a-select
|
||||||
|
ref="select"
|
||||||
|
v-model:value="formName.detailsType"
|
||||||
|
@focus="focus"
|
||||||
|
style="width: 200px"
|
||||||
|
>
|
||||||
<a-select-option value="基础设施">基础设施</a-select-option>
|
<a-select-option value="基础设施">基础设施</a-select-option>
|
||||||
<a-select-option value="数据资源">数据资源</a-select-option>
|
<a-select-option value="数据资源">数据资源</a-select-option>
|
||||||
<a-select-option value="组件服务">组件服务</a-select-option>
|
<a-select-option value="组件服务">组件服务</a-select-option>
|
||||||
|
@ -49,14 +94,35 @@
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
<a-form-item label="应用领域" name="detailsField" style="width: 350px"
|
<a-form-item
|
||||||
|
label="应用领域"
|
||||||
|
name="detailsField"
|
||||||
|
style="width: 6.93rem"
|
||||||
|
:rules="[{ required: true, message: '请选择应用领域' }]"
|
||||||
|
>
|
||||||
|
<a-select
|
||||||
|
v-model:value="formName.detailsField"
|
||||||
|
:options="applicationSceneOpthion"
|
||||||
|
mode="tags"
|
||||||
|
:size="size"
|
||||||
|
placeholder="请选择应用领域"
|
||||||
|
:filterOption="false"
|
||||||
|
:searchValue="false"
|
||||||
|
style="width: 5.87rem"
|
||||||
|
></a-select>
|
||||||
|
</a-form-item>
|
||||||
|
<!-- <a-form-item label="应用领域" name="detailsField" style="width: 350px"
|
||||||
:rules="[{ required: true, message: '请输入应用领域' }]">
|
:rules="[{ required: true, message: '请输入应用领域' }]">
|
||||||
<a-input placeholder="请输入应用领域" v-model:value="formName.detailsField" />
|
<a-input placeholder="请输入应用领域" v-model:value="formName.detailsField" />
|
||||||
</a-form-item>
|
</a-form-item> -->
|
||||||
|
<a-form-item
|
||||||
<a-form-item style="margin-bottom: 10px" label="需求描述" name="demandDetails"
|
style="margin-bottom: 10px"
|
||||||
:rules="[{ required: true, message: '请输入需求描述' }]">
|
label="需求描述"
|
||||||
<a-textarea style="
|
name="demandDetails"
|
||||||
|
:rules="[{ required: true, message: '请输入需求描述' }]"
|
||||||
|
>
|
||||||
|
<a-textarea
|
||||||
|
style="
|
||||||
width: 500px;
|
width: 500px;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
@ -66,12 +132,24 @@
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
resize: none;
|
resize: none;
|
||||||
" v-model:value="formName.demandDetails" />
|
"
|
||||||
|
v-model:value="formName.demandDetails"
|
||||||
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item style="color: #666; font-size: 16px" label="附件上传" name="applyDoc">
|
<a-form-item
|
||||||
<a-upload v-model:file-list="fileList" name="file" :action="upLoadUrl" :headers="headers"
|
style="color: #666; font-size: 16px"
|
||||||
@change="handleChange">
|
label="附件上传"
|
||||||
<a-button style="
|
name="applyDoc"
|
||||||
|
>
|
||||||
|
<a-upload
|
||||||
|
v-model:file-list="fileList"
|
||||||
|
name="file"
|
||||||
|
:action="upLoadUrl"
|
||||||
|
:headers="headers"
|
||||||
|
@change="handleChange"
|
||||||
|
>
|
||||||
|
<a-button
|
||||||
|
style="
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
@ -82,7 +160,8 @@
|
||||||
border: 1px solid #bbd3ef;
|
border: 1px solid #bbd3ef;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
">
|
"
|
||||||
|
>
|
||||||
<upload-outlined></upload-outlined>
|
<upload-outlined></upload-outlined>
|
||||||
文件上传
|
文件上传
|
||||||
</a-button>
|
</a-button>
|
||||||
|
@ -93,7 +172,8 @@
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
<a-form-item :wrapper-col="{ offset: 8, span: 16 }">
|
<a-form-item :wrapper-col="{ offset: 8, span: 16 }">
|
||||||
<a-button style="
|
<a-button
|
||||||
|
style="
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 38px;
|
height: 38px;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
|
@ -104,10 +184,15 @@
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
" type="primary" html-type="cancle" @click="signOut">
|
"
|
||||||
|
type="primary"
|
||||||
|
html-type="cancle"
|
||||||
|
@click="signOut"
|
||||||
|
>
|
||||||
退出申请
|
退出申请
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button style="
|
<a-button
|
||||||
|
style="
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 38px;
|
height: 38px;
|
||||||
background: #0087ff;
|
background: #0087ff;
|
||||||
|
@ -117,7 +202,11 @@
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
" type="primary" html-type="submit" @click="processStartHandle()">
|
"
|
||||||
|
type="primary"
|
||||||
|
html-type="submit"
|
||||||
|
@click="processStartHandle()"
|
||||||
|
>
|
||||||
提交申请
|
提交申请
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
@ -140,20 +229,21 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import HomeHeader from '@/views/home/components/header'
|
import HomeHeader from '@/views/home/components/header'
|
||||||
import { reactive, ref } from 'vue'
|
import { reactive, ref } from 'vue'
|
||||||
import { message } from 'ant-design-vue'
|
import { message } from 'ant-design-vue'
|
||||||
// import { UploadOutlined } from '@ant-design/icons-vue'
|
// import { UploadOutlined } from '@ant-design/icons-vue'
|
||||||
import { getUser, getUserInfo, relaunch } from '@/api/home'
|
import { getUser, getUserInfo, relaunch } from '@/api/home'
|
||||||
import {
|
import {
|
||||||
demandApply,
|
demandApply,
|
||||||
getDemandForm,
|
getDemandForm,
|
||||||
updateDemandForm,
|
updateDemandForm,
|
||||||
} from '@/api/personalCenter'
|
getCategoryTreePage,
|
||||||
// import { baseURL } from '@/config'
|
} from '@/api/personalCenter'
|
||||||
import { useRouter } from 'vue-router'
|
// import { baseURL } from '@/config'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: '',
|
name: '',
|
||||||
props: {},
|
props: {},
|
||||||
components: {
|
components: {
|
||||||
|
@ -171,7 +261,7 @@ export default {
|
||||||
applyUserPhone: '',
|
applyUserPhone: '',
|
||||||
demandDetails: '',
|
demandDetails: '',
|
||||||
demandSubject: '',
|
demandSubject: '',
|
||||||
detailsField: '',
|
detailsField: [],
|
||||||
detailsType: '',
|
detailsType: '',
|
||||||
enclosure: '',
|
enclosure: '',
|
||||||
})
|
})
|
||||||
|
@ -191,6 +281,21 @@ export default {
|
||||||
formName.enclosure = res.data.data.enclosure
|
formName.enclosure = res.data.data.enclosure
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const applicationSceneOpthion = ref([])
|
||||||
|
getCategoryTreePage({
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
dictTypeId: '1513712507692818433',
|
||||||
|
deFlage: 0,
|
||||||
|
}).then((res) => {
|
||||||
|
res.data.data.list.map((val) => {
|
||||||
|
applicationSceneOpthion.value.push({
|
||||||
|
value: val.dictLabel,
|
||||||
|
label: val.dictLabel,
|
||||||
|
})
|
||||||
|
})
|
||||||
|
// console.log('字典值========>', applicationSceneOpthion.value)
|
||||||
|
})
|
||||||
getUser().then((res) => {
|
getUser().then((res) => {
|
||||||
formName.applyUserName = res.data.data.realName
|
formName.applyUserName = res.data.data.realName
|
||||||
formName.applyUserId = res.data.data.id
|
formName.applyUserId = res.data.data.id
|
||||||
|
@ -269,13 +374,14 @@ export default {
|
||||||
processStartHandle,
|
processStartHandle,
|
||||||
upLoadUrl,
|
upLoadUrl,
|
||||||
// baseURL,
|
// baseURL,
|
||||||
|
applicationSceneOpthion,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
#apply-container {
|
#apply-container {
|
||||||
background-color: #f5f8fc;
|
background-color: #f5f8fc;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -348,11 +454,11 @@ export default {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
body,
|
body,
|
||||||
html {
|
html {
|
||||||
height: unset;
|
height: unset;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue