|
@ -131,15 +131,16 @@ |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-form-item style="margin-left:35px;"> |
|
|
<el-form-item style="margin-left:35px;"> |
|
|
<el-button type="primary" @click="backToUserRelationList">{{"返回"}}</el-button> |
|
|
<el-button type="primary" @click="backToUserRelationList">{{"返回"}}</el-button> |
|
|
<el-button v-if="this.state === '0'" type="primary" :disabled="isAble" @click="dataFormSubmitHandle()">{{ $t('confirm') }}</el-button> |
|
|
<el-button v-if="this.status === '0'" type="primary" :disabled="isAble" @click="dataFormSubmitHandle()">{{ $t('confirm') }}</el-button> |
|
|
<el-button v-if="state === '2'" type="primary" @click="">初审</el-button> |
|
|
<el-button v-if="status === '1'" type="primary" @click="firstTrial()">初审</el-button> |
|
|
<el-button v-if="state === '3'" type="primary" @click="">验收</el-button> |
|
|
<el-button v-if="status === '2'" type="primary" @click="acceptance()">验收</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<!-- 初审弹框 --> |
|
|
<!-- 初审弹框 --> |
|
|
<trial v-if="trialVisible" ref="subpositioncheckinfoTrial" @refreshDataList="backToUserRelationList"></trial> |
|
|
<subpositioncheckinfo-trial v-if="trialVisible" ref="subpositioncheckinfoTrial" v-on:connectResponse="connectResponse"></subpositioncheckinfo-trial> |
|
|
|
|
|
<subpositioncheckinfo-acceptance v-if="acceptanceVisible" ref="subpositioncheckinfoAcceptance" v-on:connectResponse="connectResponse"></subpositioncheckinfo-acceptance> |
|
|
</el-card> |
|
|
</el-card> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -148,6 +149,8 @@ import Cookies from "js-cookie"; |
|
|
import debounce from "lodash/debounce"; |
|
|
import debounce from "lodash/debounce"; |
|
|
import MapSelect from "@/views/modules/workRecord/map-select"; |
|
|
import MapSelect from "@/views/modules/workRecord/map-select"; |
|
|
import trial from "./subpositioncheckinfo-trial" |
|
|
import trial from "./subpositioncheckinfo-trial" |
|
|
|
|
|
import SubpositioncheckinfoTrial from './subpositioncheckinfo-trial' |
|
|
|
|
|
import SubpositioncheckinfoAcceptance from './subpositioncheckinfo-acceptance' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "kpisubpositiondetail", |
|
|
name: "kpisubpositiondetail", |
|
@ -159,8 +162,11 @@ export default { |
|
|
subDetail:[], |
|
|
subDetail:[], |
|
|
files:[], |
|
|
files:[], |
|
|
images: [], |
|
|
images: [], |
|
|
|
|
|
infoId:'' |
|
|
}, |
|
|
}, |
|
|
options :[], |
|
|
options :[], |
|
|
|
|
|
trialVisible:false, |
|
|
|
|
|
acceptanceVisible:false, |
|
|
isAble:false, |
|
|
isAble:false, |
|
|
pageDisabled:false, |
|
|
pageDisabled:false, |
|
|
gridIds:[], |
|
|
gridIds:[], |
|
@ -179,7 +185,7 @@ export default { |
|
|
hideUpload: false, |
|
|
hideUpload: false, |
|
|
fileloading: false, |
|
|
fileloading: false, |
|
|
checkDiction:[], |
|
|
checkDiction:[], |
|
|
state:'0', |
|
|
status:'0', |
|
|
//出身弹框列表 |
|
|
//出身弹框列表 |
|
|
trialVisible:false, |
|
|
trialVisible:false, |
|
|
|
|
|
|
|
@ -212,8 +218,8 @@ export default { |
|
|
methods: { |
|
|
methods: { |
|
|
init () { |
|
|
init () { |
|
|
this.dataForm.id = this.$route.query.id |
|
|
this.dataForm.id = this.$route.query.id |
|
|
this.state = this.$route.query.state === undefined? '0':this.$route.query.state; |
|
|
this.status = this.$route.query.status === undefined? '0':this.$route.query.status; |
|
|
if (this.state === '1'){ |
|
|
if (this.status === '1'){ |
|
|
this.isAble = true; |
|
|
this.isAble = true; |
|
|
this.pageDisabled = true; |
|
|
this.pageDisabled = true; |
|
|
} |
|
|
} |
|
@ -235,6 +241,24 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
// dialog回调函数 |
|
|
|
|
|
connectResponse (connectResponse) { |
|
|
|
|
|
this.backToUserRelationList() |
|
|
|
|
|
}, |
|
|
|
|
|
firstTrial () { |
|
|
|
|
|
this.trialVisible = true |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.subpositioncheckinfoTrial.dataForm.infoId = this.dataForm.id |
|
|
|
|
|
this.$refs.subpositioncheckinfoTrial.init() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
acceptance () { |
|
|
|
|
|
this.acceptanceVisible = true |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.subpositioncheckinfoAcceptance.dataForm.infoId = this.dataForm.id |
|
|
|
|
|
this.$refs.subpositioncheckinfoAcceptance.init() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
beforeAvatarUpload (file) { |
|
|
beforeAvatarUpload (file) { |
|
|
if (this.dataForm.length === 6) { |
|
|
if (this.dataForm.length === 6) { |
|
|
this.$message.error('最多上传6张图片!') |
|
|
this.$message.error('最多上传6张图片!') |
|
@ -375,11 +399,6 @@ export default { |
|
|
|
|
|
|
|
|
}).catch(() => {}) |
|
|
}).catch(() => {}) |
|
|
}, |
|
|
}, |
|
|
//初审 |
|
|
|
|
|
trial(){ |
|
|
|
|
|
this.trialVisible = true |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 表单提交 |
|
|
// 表单提交 |
|
|
dataFormSubmitHandle: debounce(function () { |
|
|
dataFormSubmitHandle: debounce(function () { |
|
|
//封装考核内容提报详情表数据 |
|
|
//封装考核内容提报详情表数据 |
|
@ -449,7 +468,8 @@ export default { |
|
|
}, |
|
|
}, |
|
|
components: { |
|
|
components: { |
|
|
MapSelect, |
|
|
MapSelect, |
|
|
trial |
|
|
SubpositioncheckinfoTrial, |
|
|
|
|
|
SubpositioncheckinfoAcceptance |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|