|
@@ -949,8 +949,8 @@
|
|
|
<el-form-item label="是否备案:" prop="isRecord"
|
|
|
:rules="{ required: true, message: '是否备案不能为空', trigger: 'blur' }" label-width="120px"
|
|
|
:class="['postInfo-container-item','reason']">
|
|
|
- <el-radio v-model="props.row.isRecord" :label="true" size="medium" @change="saveProduction(props.row)">是</el-radio>
|
|
|
- <el-radio v-model="props.row.isRecord" :label="false" size="medium" @change="saveProduction(props.row)">否</el-radio>
|
|
|
+ <el-radio v-model="props.row.isRecord" :label="true" size="medium" @change="updateIsRecord(props.row)" :disabled="currentNode.nodeCode!='RECHECK_REPORT'">是</el-radio>
|
|
|
+ <el-radio v-model="props.row.isRecord" :label="false" size="medium" @change="updateIsRecord(props.row)" :disabled="currentNode.nodeCode!='RECHECK_REPORT'">否</el-radio>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="18" :span="6" v-if="major.businessObjectType === '土地' && !props.row.isRecord">
|
|
@@ -1745,15 +1745,33 @@
|
|
|
</el-form>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <el-dialog :visible.sync="takeNumberDialog" width="20%" title="请选择取号年份">
|
|
|
- <el-card shadow="always">
|
|
|
- <div>
|
|
|
- <el-date-picker v-model="year" type="year" placeholder="请选择取号年份" :picker-options="pickerOptions" format="yyyy年"
|
|
|
- value-format="yyyy">
|
|
|
- </el-date-picker>
|
|
|
- <el-button slot="append" @click="takeNumber">确认取号</el-button>
|
|
|
+ <el-dialog :visible.sync="takeNumberDialog" width="25%" title="取报告号" custom-class="doWarehouseClass">
|
|
|
+ <el-form ref="takeReportNoFrom" :model="takeReportNo" class="form-container">
|
|
|
+ <div class="createMajor-main-container">
|
|
|
+ <div class="postInfo-container">
|
|
|
+ <el-row v-if="this.major.businessObjectType==='土地'">
|
|
|
+ <el-col :xs="24" :sm="12" :lg="24" :span="6">
|
|
|
+ <el-form-item label="是否备案:" prop="isRecord" label-width="140px" :class="['postInfo-container-item']">
|
|
|
+ <el-select v-model="takeReportNo.isRecord" disabled readonly>
|
|
|
+ <el-option label="备案取号" :value="true">备案取号</el-option>
|
|
|
+ <el-option label="不备案取号" :value="false">不备案取号</el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="24" :span="6">
|
|
|
+ <el-form-item label="取号年份:" prop="year" label-width="140px" :class="['postInfo-container-item']">
|
|
|
+ <el-date-picker v-model="takeReportNo.year" type="year" placeholder="请选择取号年份" :picker-options="pickerOptions" format="yyyy年"
|
|
|
+ value-format="yyyy">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-button type="primary" @click="takeNumber" style="margin-left: 36.5%;">确认取号</el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </el-card>
|
|
|
+ </el-form>
|
|
|
</el-dialog>
|
|
|
<el-dialog :visible.sync="allotDialog" width="75%" center custom-class="doWarehouseClass">
|
|
|
<el-form ref="allotPerformanceForm" :model="allotPerformance" class="form-container">
|
|
@@ -2332,7 +2350,7 @@ export default {
|
|
|
refuseForm:{
|
|
|
reason:null
|
|
|
},
|
|
|
- year: '2025',
|
|
|
+
|
|
|
allotPerformance: {
|
|
|
performanceList: [],
|
|
|
majorProductionId: null
|
|
@@ -2345,7 +2363,10 @@ export default {
|
|
|
majorId:null
|
|
|
},
|
|
|
allotUnitDialog:false,
|
|
|
-
|
|
|
+ takeReportNo:{
|
|
|
+ year: '2025',
|
|
|
+ isRecord:true,
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -2998,7 +3019,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
takeNumber() {
|
|
|
- if (!this.year) {
|
|
|
+ if (!this.takeReportNo.year) {
|
|
|
this.$notify({
|
|
|
title: '警告',
|
|
|
message: '取号年份未选择,请选择再取号。',
|
|
@@ -3011,11 +3032,12 @@ export default {
|
|
|
let takeNumberDTO = {
|
|
|
businessId: this.majorId,
|
|
|
businessType: "MAJOR_BUSINESS",
|
|
|
- takeType: this.major.businessObjectType === '土地' ? 'LAND_NUMBER' : 'REALTY_NUMBER',
|
|
|
+ takeType: this.major.businessObjectType === '土地' ? (this.takeReportNo.isRecord==true?'LAND_NUMBER':'LAND_NO_NUMBER') : 'REALTY_NUMBER',
|
|
|
targets: this.takeNumberItems,
|
|
|
- year: this.year,
|
|
|
+ year: this.takeReportNo.year,
|
|
|
productionType: "REPORT",
|
|
|
- statementNo:this.statementNo
|
|
|
+ statementNo:this.statementNo,
|
|
|
+ isRecord : this.takeReportNo.isRecord
|
|
|
|
|
|
}
|
|
|
this.$api.majorTarget.takeNumber(takeNumberDTO).then(res => {
|
|
@@ -3072,6 +3094,7 @@ export default {
|
|
|
production.owner = this.major.owner;
|
|
|
production.name = this.major.name;
|
|
|
production.statementNo = this.takeNumberItems[0].name;
|
|
|
+ production.isRecord = this.takeReportNo.isRecord;
|
|
|
if (totalAcreage != 0) {
|
|
|
production.evaluatePrice = (totalAmount * 10000 / totalAcreage).toFixed(4);
|
|
|
} else {
|
|
@@ -4446,6 +4469,45 @@ export default {
|
|
|
})
|
|
|
|
|
|
},
|
|
|
+ updateIsRecord(row){
|
|
|
+ if (!row.isRecord){
|
|
|
+ this.$confirm('该产品已取土地备案报告号,若修改为不备案。为保证备案报告号连续性,系统将重新分配不备案报告号。', '重要提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'error'
|
|
|
+ }).then(() => {
|
|
|
+ this.$api.majorProduction.toNotRecord(row.id).then(res=>{
|
|
|
+ if (res.code === 200 && res.data){
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '产品已成功更改为不备案,并重新分配了报告号。'
|
|
|
+ });
|
|
|
+ this.goBack();
|
|
|
+ }
|
|
|
+ }).catch(()=>{
|
|
|
+ this.productions[0].isRecord = true;
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.$confirm('该产品已取不备案报告号,若修改为备案。为保证备案报告号连续性,系统将重新分配备案报告号。', '重要提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'error'
|
|
|
+ }).then(() => {
|
|
|
+ this.$api.majorProduction.toRecord(row.id).then(res=>{
|
|
|
+ if (res.code === 200 && res.data){
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '产品已成功更改为备案,并重新分配了报告号。'
|
|
|
+ });
|
|
|
+ this.goBack();
|
|
|
+ }
|
|
|
+ }).catch(()=>{
|
|
|
+ this.productions[0].isRecord = false;
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
}
|
|
|
</script>
|