kun 191114 20:00

This commit is contained in:
沈学坤
2019-11-14 19:58:50 +08:00
parent 8cbcf5304a
commit 02a5fa0d71
14 changed files with 218 additions and 233 deletions

View File

@@ -49,7 +49,7 @@
<!-- start -->
<aside>
<div>
<label>项目类:</label>
<label>项目类:</label>
<select name="tid" v-model="tid">
<template v-for="(type, index) in types">
<option :key="index" :value="index">{{ type }}</option>
@@ -500,7 +500,9 @@
项目实施的已有基础具体方法和途径及进度安排预期效果及完成时间
</h3>
<p>1.项目实施的已有基础</p>
<article>(说明:包括但不限于项目实施已有的相关经验或有助于项目实施的资源支持等)</article>
<article>
(说明:包括但不限于项目实施已有的相关经验或有助于项目实施的资源支持等)
</article>
<div class="rich">
<existing-basis
@existingBasis="existingBasis"
@@ -515,7 +517,9 @@
placeholder="(说明:包括但不限于项目实施已有的相关经验或有助于项目实施的资源支持等)"
></textarea> -->
<p>2.具体方法和途径</p>
<article>(说明:包括项目实施的具体方式途径明确项目的具体组成内容(子项目各类服务等),每类每次活动的具体内容形式对象次数人数等)</article>
<article>
(说明:包括项目实施的具体方式途径明确项目的具体组成内容(子项目各类服务等),每类每次活动的具体内容形式对象次数人数等)
</article>
<div class="rich">
<methods-way
@methodsWay="methodsWay"
@@ -530,7 +534,9 @@
placeholder="(说明:包括项目实施的具体方式、途径。明确项目的具体组成内容(子项目、各类服务等),每类、每次活动的具体内容、形式、对象、次数、人数等)"
></textarea> -->
<p>3.进度安排</p>
<article>(说明:可单独作为一部分,也可与具体方法和途径一并细化到子项目中说明建议时间单元为月,不建议简单表述为年内上半年下半年*季度)</article>
<article>
(说明:可单独作为一部分,也可与具体方法和途径一并细化到子项目中说明建议时间单元为月,不建议简单表述为年内上半年下半年*季度)
</article>
<div class="rich">
<scheduling
@scheduling="scheduling"
@@ -545,7 +551,9 @@
placeholder="(说明:可单独作为一部分,也可与“具体方法和途径”一并细化到子项目中说明。建议时间单元为月,不建议简单表述为“年内”、“上半年”“下半年”、“第*季度”等。)"
></textarea> -->
<p>4.预期效果</p>
<article>(说明:具体明确项目实施所要达到的目标或预期的效果以及)</article>
<article>
(说明:具体明确项目实施所要达到的目标或预期的效果以及)
</article>
<div class="rich">
<desired-effect
@desiredEffect="desiredEffect"
@@ -559,7 +567,9 @@
placeholder="(说明:具体明确项目实施所要达到的目标或预期的效果以及)"
></textarea> -->
<p>5.项目团队及分工</p>
<article>(说明:包括项目实施的组织管理机构组成,各子项目或各项服务活动的具体承接单位和负责人,各有关协作单位等如有以主责单位名义申报的综合性联合性项目,要细化各子项目的组织实施体系如有涉及到委托管理(如财务委托管理),要在组织架构中予以说明要把可能引起转包怀疑的所有事项交代清楚,避免在检查审计和评估中产生误解)</article>
<article>
(说明:包括项目实施的组织管理机构组成,各子项目或各项服务活动的具体承接单位和负责人,各有关协作单位等如有以主责单位名义申报的综合性联合性项目,要细化各子项目的组织实施体系如有涉及到委托管理(如财务委托管理),要在组织架构中予以说明要把可能引起转包怀疑的所有事项交代清楚,避免在检查审计和评估中产生误解)
</article>
<div class="rich">
<division-labor
@divisionLabor="divisionLabor"
@@ -641,7 +651,7 @@
</form>
<div class="queren" v-if="popupStatus">
<div>
<p>{{ subStatus == 0 ? "是否保存申报项目" : "是否确认申报项目" }}</p>
<p>{{ subStatus == 0 ? '是否保存申报项目' : '是否确认申报项目' }}</p>
<div>
<span @click="popupStatus = !popupStatus"></span>
<span @click="submitYes"></span>
@@ -829,17 +839,32 @@ export default {
},
/** 下一步 */
btn (index) {
let regd = /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/
let regs = /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/
let s = this.sub
s = index
this.sub = s
},
/** 保存和提交 */
submit (index) {
let s = this.subStatus
s = index
this.subStatus = s
if (s === 0) {
this.sub = s
}
// this.sub = s;
let regd = /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/
let regs = /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/
if (s === 1) {
this.decldes = this.aboutUsText
this.prodes = this.projectBriefText
this.prodemo = this.projectAssessmentText
this.prodemojc = this.existingBasisText
this.prodemotj = this.methodsWayText
this.prodemojd = this.schedulingText
this.prodemoxg = this.desiredEffectText
this.prodemofg = this.divisionLaborText
this.prodemotwo = this.coverText
this.funds = this.initialText
this.proimages = [...this.fileLists, ...this.picture]
if (this.subStatus === 1) {
if (
this.name === '' ||
this.company === '' ||
@@ -863,7 +888,27 @@ export default {
this.cname === '' ||
this.cpost === '' ||
this.coffice_tel === '' ||
this.cphone === ''
this.cphone === '' ||
this.prespo === '' ||
this.respoadd === '' ||
this.respopcode === '' ||
this.respomail === '' ||
this.respopname === '' ||
this.respopost === '' ||
this.respoophone === '' ||
this.respocname === '' ||
this.respocpost === '' ||
this.respocophone === '' ||
this.decldes === '' ||
this.prodes === '' ||
this.prodemo === '' ||
this.prodemojc === '' ||
this.prodemotj === '' ||
this.prodemojd === '' ||
this.prodemoxg === '' ||
this.prodemofg === '' ||
this.prodemotwo === '' ||
this.funds === ''
) {
alert('以上内容不可为空!')
return false
@@ -876,74 +921,12 @@ export default {
) {
alert('请填写正确的电话号码!')
return false
}
if (!regs.test(this.aphone) || !regs.test(this.cphone)) {
} else if (!regs.test(this.aphone) || !regs.test(this.cphone)) {
alert('请填写正确的手机号码!')
} else {
this.sub = s
}
}
},
/** 保存和提交 */
submit (index) {
let regd = /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/
let regs = /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/
this.decldes = this.aboutUsText
this.prodes = this.projectBriefText
this.prodemo = this.projectAssessmentText
this.prodemojc = this.existingBasisText
this.prodemotj = this.methodsWayText
this.prodemojd = this.schedulingText
this.prodemoxg = this.desiredEffectText
this.prodemofg = this.divisionLaborText
this.prodemotwo = this.coverText
this.funds = this.initialText
// console.log(
// this.decldes,
// this.prodes,
// this.prodemo,
// this.prodemojc,
// this.prodemotj,
// this.prodemojd,
// this.prodemoxg,
// this.prodemofg,
// this.prodemotwo,
// this.funds
// )
this.proimages = [...this.fileLists, ...this.picture]
if (this.sub === 1) {
if (
this.prespo === '' ||
this.respoadd === '' ||
this.respopcode === '' ||
this.respomail === '' ||
this.respopname === '' ||
this.respopost === '' ||
this.respoophone === '' ||
this.respocname === '' ||
this.respocpost === '' ||
this.respocophone === '' ||
this.decldes === '' ||
this.prodes === '' ||
this.prodemo === '' ||
this.prodemojc === '' ||
this.prodemotj === '' ||
this.prodemojd === '' ||
this.prodemoxg === '' ||
this.prodemofg === '' ||
this.prodemotwo === '' ||
this.funds === ''
) {
alert('以上内容不可为空!')
return false
} else if (
!regd.test(this.respoophone) ||
!regd.test(this.respocophone)
!regd.test(this.respocophone)
) {
alert('请填写正确的电话号码!')
return false
@@ -954,31 +937,28 @@ export default {
alert('未上传文件!')
return false
}
} else {
alert('数据出错!')
return false
if (this.respoptel !== '' && !regs.test(this.respoptel)) {
alert('请填写正确的手机号码!')
return false
}
if (this.respoctel !== '' && !regs.test(this.respoctel)) {
alert('请填写正确的手机号码!')
return false
}
}
if (this.respoptel !== '' && !regs.test(this.respoptel)) {
alert('请填写正确的手机号码!')
return false
}
if (this.respoctel !== '' && !regs.test(this.respoctel)) {
alert('请填写正确的手机号码!')
return false
}
let s = this.subStatus
s = index
this.subStatus = s
let val = this.proimages
val = JSON.stringify(this.proimages)
this.proimages = val
if (this.proimages === '') {
alert('文件还未上传!')
return false
if (this.subStatus === 1) {
if (this.proimages === '') {
alert('文件还未上传!')
return false
}
}
this.popupStatus = true
},
/** 申报项目 */
@@ -1055,7 +1035,6 @@ export default {
alert(res.data.message)
}
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err)
})
@@ -1081,7 +1060,6 @@ export default {
_this.$message.error('请求数据有问题!')
}
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err)
})
@@ -1107,6 +1085,11 @@ export default {
_this.$router.push({
name: 'project'
})
} else if (res.data.data.status === 4) {
alert('项目申报暂未开始!')
_this.$router.push({
name: 'project'
})
} else {
_this.getData()
}
@@ -1114,7 +1097,6 @@ export default {
_this.$message.error('请求数据有问题!')
}
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err)
})
@@ -1193,7 +1175,6 @@ export default {
let imgs = JSON.parse(data.proimages)
this.fileLists = imgs
// console.log(this.fileLists);
},
getDataDetails (id) {
this.$http({
@@ -1211,7 +1192,6 @@ export default {
alert('请求失败!')
}
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err)
})
@@ -1307,13 +1287,13 @@ export default {
justify-content: center;
align-items: center;
button[type="button"] {
button[type='button'] {
margin-right: 152px;
width: 197px;
height: 63px;
background-color: #ff9800;
border-radius: 5px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 26px;
font-weight: normal;
font-stretch: normal;
@@ -1325,12 +1305,12 @@ export default {
border: 0;
}
button[type="submit"] {
button[type='submit'] {
width: 197px;
height: 63px;
background-color: #e60012;
border-radius: 5px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 26px;
font-weight: normal;
font-stretch: normal;
@@ -1357,7 +1337,7 @@ export default {
align-items: center;
label {
margin-left: 16px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 16px;
font-weight: normal;
font-stretch: normal;
@@ -1385,7 +1365,7 @@ export default {
line-height: 32px;
text-align: center;
margin-left: 25px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 16px;
font-weight: normal;
font-stretch: normal;
@@ -1412,7 +1392,7 @@ export default {
#e60012 100%
),
linear-gradient(#e60012, #e60012);
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 16px;
font-weight: normal;
font-stretch: normal;
@@ -1470,7 +1450,7 @@ export default {
align-items: center;
label {
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 16px;
font-weight: normal;
font-stretch: normal;
@@ -1497,7 +1477,7 @@ export default {
border: solid 1px #c7c7c7;
resize: none;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 18px;
font-weight: normal;
font-stretch: normal;
@@ -1506,8 +1486,8 @@ export default {
color: #999999;
}
article{
font-family: "MicrosoftYaHei";
article {
font-family: 'MicrosoftYaHei';
font-size: 16px;
font-weight: normal;
font-stretch: normal;
@@ -1518,7 +1498,7 @@ export default {
p {
margin-top: 38px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 20px;
font-weight: normal;
font-stretch: normal;
@@ -1528,7 +1508,7 @@ export default {
h5 {
width: 100%;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 20px;
font-weight: normal;
font-stretch: normal;
@@ -1538,7 +1518,7 @@ export default {
h3 {
width: 100%;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 20px;
font-weight: normal;
font-stretch: normal;
@@ -1562,7 +1542,7 @@ export default {
display: inline-block;
// width: 101px;
height: 43px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 16px;
font-weight: normal;
font-stretch: normal;
@@ -1580,7 +1560,7 @@ export default {
border: solid 1px #c7c7c7;
outline: none;
margin-left: 20px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 18px;
font-weight: normal;
font-stretch: normal;
@@ -1597,7 +1577,7 @@ export default {
height: 63px;
background-color: #e60012;
border-radius: 5px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 26px;
font-weight: normal;
font-stretch: normal;
@@ -1619,7 +1599,7 @@ export default {
display: inline-block;
width: 130px;
height: 43px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 16px;
font-weight: normal;
font-stretch: normal;
@@ -1636,7 +1616,7 @@ export default {
-moz-appearance: none;
-webkit-appearance: none;
/* 右侧添加小箭头的背景图 */
background: url("../../../static/img/xa.png") 360px center no-repeat;
background: url('../../../static/img/xa.png') 360px center no-repeat;
background-size: 14px 8px;
width: 386px;
height: 43px;
@@ -1646,7 +1626,7 @@ export default {
box-sizing: border-box;
outline: none;
margin-left: 20px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 18px;
font-weight: normal;
font-stretch: normal;
@@ -1662,7 +1642,7 @@ export default {
border: solid 1px #c7c7c7;
outline: none;
margin-left: 20px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 18px;
font-weight: normal;
font-stretch: normal;
@@ -1677,7 +1657,7 @@ export default {
border: solid 1px #c7c7c7;
outline: none;
margin-left: 20px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 18px;
font-weight: normal;
font-stretch: normal;
@@ -1698,7 +1678,7 @@ export default {
display: inline-block;
width: 100px;
height: 43px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 16px;
font-weight: normal;
font-stretch: normal;
@@ -1715,7 +1695,7 @@ export default {
-moz-appearance: none;
-webkit-appearance: none;
/* 右侧添加小箭头的背景图 */
background: url("../../../static/img/xa.png") 360px center no-repeat;
background: url('../../../static/img/xa.png') 360px center no-repeat;
background-size: 14px 8px;
width: 386px;
height: 43px;
@@ -1725,7 +1705,7 @@ export default {
box-sizing: border-box;
outline: none;
margin-left: 20px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 18px;
font-weight: normal;
font-stretch: normal;
@@ -1741,7 +1721,7 @@ export default {
border: solid 1px #c7c7c7;
outline: none;
margin-left: 20px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 18px;
font-weight: normal;
font-stretch: normal;
@@ -1756,7 +1736,7 @@ export default {
border: solid 1px #c7c7c7;
outline: none;
margin-left: 20px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 18px;
font-weight: normal;
font-stretch: normal;
@@ -1768,7 +1748,7 @@ export default {
h4 {
width: 1138px;
height: 38px;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 20px;
font-weight: normal;
font-stretch: normal;
@@ -1792,7 +1772,7 @@ export default {
width: 192px;
height: 34px;
background-size: 100% 100%;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 14px;
font-weight: normal;
font-stretch: normal;
@@ -1811,7 +1791,7 @@ export default {
width: 89px;
height: 23px;
margin: 0 auto;
font-family: "MicrosoftYaHei";
font-family: 'MicrosoftYaHei';
font-size: 22px;
font-weight: normal;
font-stretch: normal;

View File

@@ -288,7 +288,6 @@ export default {
_this.$message.error('请求数据有问题!')
}
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err)
})
@@ -319,7 +318,6 @@ export default {
_this.$message.error('请求数据有问题!')
}
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err)
})

View File

@@ -322,7 +322,6 @@ export default {
alert('请求失败!')
}
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err)
})