@@ -93,6 +93,14 @@ export function processCreateBuss (data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function verifySnExists (data) {
|
||||
return axios({
|
||||
url: '/api/sarBussStandSn/sar-buss-stand-sn/verifySnExists',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
export function processCreatePlan (data) {
|
||||
return axios({
|
||||
url: '/api/lawss/actSarItemsPlan/processCreatePlan',
|
||||
|
||||
@@ -73,13 +73,13 @@
|
||||
<!-- ></el-option>-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="企标编号" prop="standNumber" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="form.standNumber"-->
|
||||
<!-- placeholder="请输入企标编号"-->
|
||||
<!-- clearable-->
|
||||
<!-- ></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item v-show="fbNode && form.standStatus === '1'" label="企标顺序号" prop="standNum" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.standNum"
|
||||
placeholder="请输入企标顺序号"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="制修订类型" prop="standStatus" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.standStatus" filterable disabled>
|
||||
<el-option
|
||||
|
||||
@@ -588,7 +588,8 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {saveTaskForPub,changeAssigneeNew,saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail,processCreateBuss,evaluationHisList,taskDel} from "api/process";
|
||||
import {saveTaskForPub,changeAssigneeNew,saveTaskFirst, queryTaskFirst,
|
||||
getBusStandFileByAttId,inboundLiaisonDetail,processCreateBuss,evaluationHisList,taskDel,verifySnExists} from "api/process";
|
||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
||||
let Base64 = require('js-base64').Base64;
|
||||
@@ -604,6 +605,24 @@
|
||||
TreeSelectNew
|
||||
},
|
||||
data () {
|
||||
const validateStandNumber = async (rule, value, callback) => {
|
||||
if (value === '') {
|
||||
callback(new Error('请输入企标顺序号'))
|
||||
} else {
|
||||
let res = await this.verifySnExists()
|
||||
if(res.data){
|
||||
callback()
|
||||
let date = new Date();
|
||||
let year = date.getFullYear();
|
||||
this.form.standSn = this.form.standNum
|
||||
this.form.standNumber = this.form.standNum
|
||||
this.form.standYear = this.regDate(year) // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
callback(new Error('企标顺序号已存在或已锁定'))
|
||||
}
|
||||
}
|
||||
};
|
||||
const validateZrUserIdName = (rule, value, callback) => {
|
||||
if(this.FBGBUSSFileList.length === 0){
|
||||
callback(new Error('请上传发布稿文件!'))
|
||||
@@ -974,9 +993,11 @@
|
||||
standSort: [
|
||||
{ required: true, message: '请选择企标类别', trigger: 'change' }
|
||||
],
|
||||
standNumber: [
|
||||
{ required: true, message: '请输入企标编号', trigger: 'blur' },
|
||||
standNum: [
|
||||
{ required: true, message: '请输入企标顺序号', trigger: 'blur' },
|
||||
{ min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' },
|
||||
{validator: validateStandNumber, trigger: 'change'}
|
||||
|
||||
],
|
||||
standYear: [
|
||||
{ required: true, message: '请输入标准年份'},
|
||||
@@ -2607,6 +2628,19 @@
|
||||
}
|
||||
return list;
|
||||
},
|
||||
verifySnExists(){
|
||||
return new Promise((resolve, reject) => {
|
||||
verifySnExists({
|
||||
taskId:this.taskIds,
|
||||
standSn:this.form.standNum,
|
||||
standSort:this.form.standSort
|
||||
}).then(res => {
|
||||
const history = res;
|
||||
resolve(history)
|
||||
}).catch(e => {
|
||||
})
|
||||
})
|
||||
},
|
||||
getData() {
|
||||
if(this.taskIds && this.pId){
|
||||
return new Promise((resolve, reject) => {
|
||||
@@ -2675,16 +2709,17 @@
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
}
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss2_1',standSort:this.form.standSort}, {
|
||||
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss2_1',standSort:this.form.standSort,taskId: this.taskIds}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
const obj = res.data
|
||||
let standSn = (obj === null || obj.newStandSn === null) ? '2280' : obj.newStandSn
|
||||
let standSn = obj.newStandSn
|
||||
this.form.standSn = standSn
|
||||
this.form.standNum = standSn
|
||||
this.form.standNumber = standSn
|
||||
this.form.standYear = year // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
console.log(this.form)
|
||||
if(type === '1'){
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1244,7 +1244,7 @@
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
unit: '',
|
||||
esName: '',
|
||||
planStatus: '0,3',
|
||||
planStatus: '0,3,6',
|
||||
reviseStatus: '',
|
||||
},
|
||||
tableData: {
|
||||
|
||||
@@ -626,11 +626,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import formEditList from './common/formEditList.vue'
|
||||
import formEditList from './common/formEditListFb.vue'
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {saveTaskForPub,changeAssigneeNew,saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,taskDel,inboundLiaisonDetail,processCreateBuss,evaluationHisList} from "api/process";
|
||||
import {saveTaskForPub,changeAssigneeNew,saveTaskFirst, queryTaskFirst,
|
||||
getBusStandFileByAttId,taskDel,inboundLiaisonDetail,processCreateBuss,
|
||||
evaluationHisList,verifySnExists} from "api/process";
|
||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
||||
import TreeSelectModule from "@/components/treeSelect/treeSelectModule.vue";
|
||||
@@ -648,6 +650,25 @@
|
||||
TreeSelectModule
|
||||
},
|
||||
data () {
|
||||
const validateStandNumber = async (rule, value, callback) => {
|
||||
console.log(value)
|
||||
if (value === '') {
|
||||
callback(new Error('请输入企标顺序号'))
|
||||
} else {
|
||||
let res = await this.verifySnExists()
|
||||
if(res.data){
|
||||
callback()
|
||||
let date = new Date();
|
||||
let year = date.getFullYear();
|
||||
this.form.standSn = this.form.standNum
|
||||
this.form.standNumber = this.form.standNum
|
||||
this.form.standYear = this.regDate(year) // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
callback(new Error('企标顺序号已存在或已锁定'))
|
||||
}
|
||||
}
|
||||
};
|
||||
const validateZrUserIdName = (rule, value, callback) => {
|
||||
if(this.FBGBUSSFileList.length === 0){
|
||||
callback(new Error('请上传发布稿文件!'))
|
||||
@@ -875,6 +896,7 @@
|
||||
// 基础信息
|
||||
standSort: '',
|
||||
standCode: '',
|
||||
standNumber: '',
|
||||
standYear: '',
|
||||
standName: '',
|
||||
standEnName: '',
|
||||
@@ -1008,9 +1030,11 @@
|
||||
standSort: [
|
||||
{ required: true, message: '请选择企标类别', trigger: 'change' }
|
||||
],
|
||||
standNumber: [
|
||||
{ required: true, message: '请输入企标编号', trigger: 'blur' },
|
||||
standNum: [
|
||||
{ required: true, message: '请输入企标顺序号', trigger: 'blur' },
|
||||
{ min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' },
|
||||
{validator: validateStandNumber, trigger: 'change'}
|
||||
|
||||
],
|
||||
standYear: [
|
||||
{ required: true, message: '请输入标准年份'},
|
||||
@@ -1219,6 +1243,7 @@
|
||||
},
|
||||
formCancel (form, list1,list2,list3,list4,list5,fileMadel,fileList,fileType,list6) {
|
||||
this.form = form
|
||||
console.log(this.form)
|
||||
this.FBGBUSSFileList = list1
|
||||
this.LSBBBUSSFileList = list2
|
||||
this.BZSMBUSSFileList = list3
|
||||
@@ -1478,6 +1503,7 @@
|
||||
signFlag: data.signFlag ? data.signFlag : '1', // 是否需要会签
|
||||
// 基础信息
|
||||
standCode: '',
|
||||
standNumber: '',
|
||||
standYear: '',
|
||||
textStatusBuss: '',
|
||||
issueTime: '',
|
||||
@@ -2555,6 +2581,19 @@
|
||||
})
|
||||
}
|
||||
},
|
||||
verifySnExists(){
|
||||
return new Promise((resolve, reject) => {
|
||||
verifySnExists({
|
||||
taskId:this.taskIds,
|
||||
standSn:this.form.standNum,
|
||||
standSort:this.form.standSort
|
||||
}).then(res => {
|
||||
const history = res;
|
||||
resolve(history)
|
||||
}).catch(e => {
|
||||
})
|
||||
})
|
||||
},
|
||||
/**
|
||||
* @description: 流程入库
|
||||
* @date: 2020-11-18 21:47:58
|
||||
@@ -2620,7 +2659,6 @@
|
||||
this.form.prcName = this.prcName
|
||||
this.form.issueTime = this.dateFormatter()
|
||||
this.form['id'] = item.id
|
||||
this.getStandInfoByReviseStatus()
|
||||
this.form['SYCXCLASS'] = this.filterObj(this.form['SYCXCLASS'])
|
||||
this.form['NYLXCLASS'] = this.filterObj(this.form['NYLXCLASS'])
|
||||
this.form['SYCPXCLASS'] = this.filterObj(this.form['SYCPXCLASS'])
|
||||
@@ -2640,7 +2678,9 @@
|
||||
this.GLWJBUSSFileList=this.assemble(item.GLWJBUSS,item.GLWJBUSSName);
|
||||
this.summaryFileList=this.assemble(item.summaryFile,item.summaryFileName);
|
||||
this.madelSubList=this.assemble(item.madelSub,item.madelSubName);
|
||||
this.formKey++
|
||||
|
||||
this.getStandInfoByReviseStatus()
|
||||
|
||||
})
|
||||
},
|
||||
filterObj(obj){
|
||||
@@ -2722,16 +2762,19 @@
|
||||
this.form.standNumber = this.form.standNum
|
||||
this.form.standYear = this.regDate(year)
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
this.formKey++
|
||||
}else {
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss1_'+this.form.reviseStatus,standSort:this.form.standSort}, {
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss1_'+this.form.reviseStatus,standSort:this.form.standSort,taskId: this.taskIds}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
const obj = res.data
|
||||
let standSn = (obj === null || obj.newStandSn === null) ? '2280' : obj.newStandSn
|
||||
let standSn = obj.newStandSn
|
||||
this.form.standSn = standSn
|
||||
this.form.standNumber = standSn
|
||||
this.form.standNum = standSn
|
||||
this.form.standYear = this.regDate(year) // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
this.formKey++
|
||||
}, e => {
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user