feat: There is no way the,
This commit is contained in:
@@ -17,11 +17,6 @@
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-show="fbNode" label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">
|
||||
<el-datePicker v-model="form.issueTime"
|
||||
:editable="false"
|
||||
></el-datePicker>
|
||||
</el-form-item>
|
||||
<el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.standName"
|
||||
@@ -29,6 +24,11 @@
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">
|
||||
<el-datePicker v-model="form.issueTime"
|
||||
:editable="false"
|
||||
></el-datePicker>
|
||||
</el-form-item>
|
||||
<el-form-item label="企标备案日期" prop="BARQ" class="add-form-item form-item-disabled">
|
||||
<el-datePicker v-model="form.BARQ"
|
||||
:editable="false"
|
||||
@@ -47,11 +47,11 @@
|
||||
<!-- ></el-option>-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item v-show="verifySarStandard" label="标准年份" prop="standYear" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input v-model="form.standYear"-->
|
||||
<!-- placeholder="请输入标准年份"-->
|
||||
<!-- clearable></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item v-show="fbNode || form.standStatus === '3'" label="标准年份" prop="standYear" class="add-form-item form-item-disabled">
|
||||
<el-input v-model="form.standYear" disabled
|
||||
placeholder="请输入标准年份"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item v-show="verifySarStandard" label="复审日期" prop="FSRQBUSS" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-datePicker v-model="form.FSRQBUSS"-->
|
||||
<!-- :editable="false"-->
|
||||
@@ -80,12 +80,19 @@
|
||||
<!-- clearable-->
|
||||
<!-- ></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item v-show="fbNode" label="企业标准号" prop="standCode" class="add-form-item form-item-disabled">
|
||||
<el-form-item label="企业标准号" v-show="fbNode || form.standStatus === '3'" prop="standCode" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.standCode" :disabled="disabledState"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="英文名称" prop="standEnName" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.standEnName"
|
||||
placeholder="请输入英文名称"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item v-show="verifySarStandard" label="企标实施日期" prop="putTime" class="add-form-item form-item-disabled">
|
||||
<el-datePicker v-model="form.putTime"
|
||||
:editable="false"
|
||||
@@ -93,14 +100,7 @@
|
||||
value-format="yyyy-MM-dd"
|
||||
></el-datePicker>
|
||||
</el-form-item>
|
||||
<el-form-item label="英文名称" prop="standEnName" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.standEnName"
|
||||
placeholder="请输入英文名称"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="标准状态" v-show="fbNode" prop="standStatus" class="add-form-item form-item-disabled">
|
||||
<el-form-item label="标准状态" prop="standStatus" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.standStatus" filterable clearable>
|
||||
<el-option
|
||||
v-for="item in opinionsStand"
|
||||
@@ -344,7 +344,7 @@
|
||||
<div class="prc-content-border" v-show="verifySarStandard">
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="代替企标编号" v-show="fbNode" prop="DTQBBHBUSS" class="add-form-item form-item-disabled">
|
||||
<el-form-item label="代替企标编号" prop="DTQBBHBUSS" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.DTQBBHBUSS"
|
||||
placeholder="请输入代替标准号"
|
||||
|
||||
@@ -26,6 +26,11 @@
|
||||
<el-datePicker v-model="form.BARQ" :disabled="disabledState"
|
||||
:editable="false"></el-datePicker>
|
||||
</el-form-item>
|
||||
<el-form-item label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">
|
||||
<el-datePicker v-model="form.issueTime" :disabled="disabledState"
|
||||
:editable="false"
|
||||
></el-datePicker>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="文本状态" prop="textStatusBuss" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-select :popper-append-to-body="false" v-model="form.textStatusBuss" placeholder="" :disabled="disabledState">-->
|
||||
<!-- <el-option-->
|
||||
@@ -44,6 +49,10 @@
|
||||
<!-- value-format="yyyy-MM-dd"-->
|
||||
<!-- clearable></el-datePicker>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item v-show="form.standStatus === '3'" label="标准年份" class="add-form-item form-item-disabled">
|
||||
<el-input v-model="form.standYear" :disabled="disabledState"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<!-- <el-form-item label="国家/地区" prop="country" class="add-form-item form-item-disabled">-->
|
||||
@@ -63,9 +72,11 @@
|
||||
<!-- clearable-->
|
||||
<!-- ></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item v-show="verifySarStandard" label="企标实施日期" prop="putTime" class="add-form-item form-item-disabled">
|
||||
<el-datePicker v-model="form.putTime" :disabled="disabledState"
|
||||
:editable="false"></el-datePicker>
|
||||
<el-form-item label="企业标准号" v-show="form.standStatus === '3'" prop="standCode" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.standCode" :disabled="disabledState"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="英文名称" prop="standEnName" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
@@ -73,10 +84,20 @@
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item v-show="verifySarStandard" label="标准年份" prop="standYear" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input v-model="form.standYear" :disabled="disabledState"-->
|
||||
<!-- clearable></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item v-show="verifySarStandard" label="企标实施日期" prop="putTime" class="add-form-item form-item-disabled">
|
||||
<el-datePicker v-model="form.putTime" :disabled="disabledState"
|
||||
:editable="false"></el-datePicker>
|
||||
</el-form-item>
|
||||
<el-form-item label="标准状态" prop="standStatus" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.standStatus" filterable :disabled="disabledState">
|
||||
<el-option
|
||||
v-for="item in opinionsStand"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item v-show="verifySarStandard" label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-datePicker v-model="form.issueTime" :disabled="disabledState"-->
|
||||
<!-- :editable="false"-->
|
||||
@@ -231,49 +252,12 @@
|
||||
<div class="prc-content-border" v-show="verifySarStandard">
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="12">
|
||||
<!-- <el-form-item label="代替企标编号" prop="DTQBBHBUSS" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="form.DTQBBHBUSS" :disabled="disabledState"-->
|
||||
<!-- clearable-->
|
||||
<!-- ></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="采用标准" prop="CYBZ" class="add-form-item form-item-disabled">
|
||||
<el-form-item label="代替企标编号" prop="DTQBBHBUSS" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.CYBZ" :disabled="disabledState"
|
||||
v-model="form.DTQBBHBUSS" :disabled="disabledState"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="引用标准" prop="YYBZ" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.YYBZ" :disabled="disabledState"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<!-- <el-form-item label="被代替企标编号" prop="BDTWJHLAWS" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="form.BDTWJHLAWS" :disabled="disabledState"-->
|
||||
<!-- clearable-->
|
||||
<!-- ></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="上传时间" prop="XCSJBUSS" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.XCSJBUSS"
|
||||
clearable
|
||||
:disabled="true"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="采标程度" prop="CBCD" class="add-form-item form-item-disabled">
|
||||
<el-select :popper-append-to-body="false" v-model="form.CBCD" placeholder="" :disabled="disabledState" multiple>
|
||||
<el-option
|
||||
v-for="item in cbcdOptions"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="关联文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled">
|
||||
<div v-if="GLWJBUSSFileList.length > 0" v-for="(item,index) in GLWJBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
|
||||
<span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
|
||||
@@ -286,6 +270,43 @@
|
||||
<!-- {{value.name}}-->
|
||||
<!-- </div>-->
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="采用标准" prop="CYBZ" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="form.CYBZ" :disabled="disabledState"-->
|
||||
<!-- clearable-->
|
||||
<!-- ></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="引用标准" prop="YYBZ" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="form.YYBZ" :disabled="disabledState"-->
|
||||
<!-- clearable-->
|
||||
<!-- ></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<!-- <el-form-item label="被代替企标编号" prop="BDTWJHLAWS" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="form.BDTWJHLAWS" :disabled="disabledState"-->
|
||||
<!-- clearable-->
|
||||
<!-- ></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="上传时间" prop="XCSJBUSS" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.XCSJBUSS"
|
||||
clearable
|
||||
:disabled="true"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="采标程度" prop="CBCD" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-select :popper-append-to-body="false" v-model="form.CBCD" placeholder="" :disabled="disabledState" multiple>-->
|
||||
<!-- <el-option-->
|
||||
<!-- v-for="item in cbcdOptions"-->
|
||||
<!-- :key="item.value"-->
|
||||
<!-- :value="item.value"-->
|
||||
<!-- :label="item.label"-->
|
||||
<!-- ></el-option>-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
@@ -492,6 +513,11 @@
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
opinionsAdoptedOptions:[
|
||||
{value: '1',label: '采纳'},
|
||||
{value: '2',label: '部分采纳'},
|
||||
|
||||
@@ -31,6 +31,10 @@
|
||||
<el-datePicker v-model="form.BARQ" :disabled="disabledState"
|
||||
:editable="false"></el-datePicker>
|
||||
</el-form-item>
|
||||
<el-form-item v-show="verifySarStandard" label="标准年份" class="add-form-item form-item-disabled">
|
||||
<el-input v-model="form.standYear" :disabled="disabledState"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="文本状态" prop="textStatusBuss" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-select :popper-append-to-body="false" v-model="form.textStatusBuss" placeholder="" :disabled="disabledState">-->
|
||||
<!-- <el-option-->
|
||||
@@ -94,10 +98,6 @@
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item v-show="verifySarStandard" label="标准年份" prop="standYear" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input v-model="form.standYear" :disabled="disabledState"-->
|
||||
<!-- clearable></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item v-show="verifySarStandard" label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-datePicker v-model="form.issueTime" :disabled="disabledState"-->
|
||||
<!-- :editable="false"-->
|
||||
@@ -258,18 +258,30 @@
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="采用标准" prop="CYBZ" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.CYBZ" :disabled="disabledState"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="引用标准" prop="YYBZ" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.YYBZ" :disabled="disabledState"
|
||||
clearable
|
||||
></el-input>
|
||||
<el-form-item label="关联文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled">
|
||||
<div v-if="GLWJBUSSFileList.length > 0" v-for="(item,index) in GLWJBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
|
||||
<span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
|
||||
<span style="width: 20%;margin-left: 15px;" v-if="item.id !== ''">
|
||||
<el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button>
|
||||
</span>
|
||||
</div>
|
||||
<!-- <div v-if="GLWJBUSSFileList.length>0" v-for="(value,index) in this.GLWJBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">-->
|
||||
<!-- <!– {{ value.name }} –>-->
|
||||
<!-- {{value.name}}-->
|
||||
<!-- </div>-->
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="采用标准" prop="CYBZ" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="form.CYBZ" :disabled="disabledState"-->
|
||||
<!-- clearable-->
|
||||
<!-- ></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="引用标准" prop="YYBZ" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="form.YYBZ" :disabled="disabledState"-->
|
||||
<!-- clearable-->
|
||||
<!-- ></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<!-- <el-form-item label="被代替企标编号" prop="BDTWJHLAWS" class="add-form-item form-item-disabled">-->
|
||||
@@ -285,28 +297,16 @@
|
||||
:disabled="true"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="采标程度" prop="CBCD" class="add-form-item form-item-disabled">
|
||||
<el-select :popper-append-to-body="false" v-model="form.CBCD" placeholder="" :disabled="disabledState" multiple>
|
||||
<el-option
|
||||
v-for="item in cbcdOptions"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="关联文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled">
|
||||
<div v-if="GLWJBUSSFileList.length > 0" v-for="(item,index) in GLWJBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
|
||||
<span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
|
||||
<span style="width: 20%;margin-left: 15px;" v-if="item.id !== ''">
|
||||
<el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button>
|
||||
</span>
|
||||
</div>
|
||||
<!-- <div v-if="GLWJBUSSFileList.length>0" v-for="(value,index) in this.GLWJBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">-->
|
||||
<!-- <!– {{ value.name }} –>-->
|
||||
<!-- {{value.name}}-->
|
||||
<!-- </div>-->
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="采标程度" prop="CBCD" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-select :popper-append-to-body="false" v-model="form.CBCD" placeholder="" :disabled="disabledState" multiple>-->
|
||||
<!-- <el-option-->
|
||||
<!-- v-for="item in cbcdOptions"-->
|
||||
<!-- :key="item.value"-->
|
||||
<!-- :value="item.value"-->
|
||||
<!-- :label="item.label"-->
|
||||
<!-- ></el-option>-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
@@ -513,7 +513,12 @@
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
opinionsStand:[
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
|
||||
@@ -49,6 +49,12 @@
|
||||
value-format="yyyy-MM-dd"
|
||||
></el-datePicker>
|
||||
</el-form-item>
|
||||
<el-form-item label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">
|
||||
<el-datePicker v-model="form.issueTime"
|
||||
placeholder="请选择发布日期"
|
||||
:editable="false"
|
||||
></el-datePicker>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="文本状态" prop="textStatusBuss" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-select :popper-append-to-body="false" v-model="form.textStatusBuss" placeholder="请选择文本状态">-->
|
||||
<!-- <el-option-->
|
||||
@@ -60,11 +66,12 @@
|
||||
<!-- ></el-option>-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item v-show="verifySarStandard" label="标准年份" prop="standYear" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input v-model="form.standYear"-->
|
||||
<!-- placeholder="请输入标准年份"-->
|
||||
<!-- clearable></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item v-show="form.standStatus === '3'" label="标准年份" prop="standYear" class="add-form-item form-item-disabled">
|
||||
<el-input v-model="form.standYear"
|
||||
disabled
|
||||
placeholder="请输入标准年份"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item v-show="verifySarStandard" label="复审日期" prop="FSRQBUSS" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-datePicker v-model="form.FSRQBUSS"-->
|
||||
<!-- :editable="false"-->
|
||||
@@ -102,6 +109,13 @@
|
||||
<!-- 根据企标编号、企标名称查询-->
|
||||
<!-- </el-button>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="企业标准号" v-show="form.standStatus === '3'" prop="standCode" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
disabled
|
||||
v-model="form.standCode"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="英文名称" prop="standEnName" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.standEnName"
|
||||
@@ -116,6 +130,16 @@
|
||||
value-format="yyyy-MM-dd"
|
||||
></el-datePicker>
|
||||
</el-form-item>
|
||||
<el-form-item label="标准状态" prop="standStatus" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.standStatus" filterable clearable>
|
||||
<el-option
|
||||
v-for="item in opinionsStand"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item v-show="verifySarStandard" label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-datePicker v-model="form.issueTime"-->
|
||||
<!-- :editable="false"-->
|
||||
@@ -331,20 +355,20 @@
|
||||
<div class="prc-content-border" v-show="verifySarStandard">
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="12">
|
||||
<!-- <el-form-item label="代替企标编号" prop="DTQBBHBUSS" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="form.DTQBBHBUSS"-->
|
||||
<!-- placeholder="请输入代替标准号"-->
|
||||
<!-- clearable-->
|
||||
<!-- ></el-input>-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="primary"-->
|
||||
<!-- class="common-button-primary"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- style="position:absolute;top: 10px;right: 0;"-->
|
||||
<!-- @click="selectLaws('DTQBBHBUSS'),config.attrName = '代替企标编号'"-->
|
||||
<!-- >{{'手动查找'}}</el-button>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="代替企标编号" prop="DTQBBHBUSS" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.DTQBBHBUSS"
|
||||
placeholder="请输入代替标准号"
|
||||
clearable
|
||||
></el-input>
|
||||
<el-button
|
||||
type="primary"
|
||||
class="common-button-primary"
|
||||
size="mini"
|
||||
style="position:absolute;top: 10px;right: 0;"
|
||||
@click="selectLaws('DTQBBHBUSS'),config.attrName = '代替企标编号'"
|
||||
>{{'手动查找'}}</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item label="关联文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
disabled
|
||||
@@ -1074,6 +1098,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -1239,6 +1268,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
modelDataZrUserVerify:[],
|
||||
@@ -1380,12 +1417,15 @@
|
||||
standSort: [
|
||||
{ required: true, message: '请选择企标类别', trigger: 'change' }
|
||||
],
|
||||
standStatus: [
|
||||
{ required: true, message: '请选择标准状态', trigger: 'change' }
|
||||
],
|
||||
standNumber: [
|
||||
{ required: true, message: '请输入企标编号', trigger: 'blur' },
|
||||
{ min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' },
|
||||
],
|
||||
standYear: [
|
||||
{ required: true, message: '请输入标准年份'},
|
||||
{ required: false, message: '请输入标准年份'},
|
||||
{ min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' },
|
||||
],
|
||||
standName: [
|
||||
@@ -1454,6 +1494,20 @@
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
'form.standSort': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
this.getStandInfoByReviseStatus("")
|
||||
}
|
||||
}
|
||||
},
|
||||
'form.standStatus': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
this.getStandInfoByReviseStatus("1")
|
||||
}
|
||||
}
|
||||
},
|
||||
'form.issueTime': {
|
||||
handler: function() {
|
||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
||||
@@ -1494,6 +1548,73 @@
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
regDate(data){
|
||||
if(this.form.DTQBBHBUSS !== undefined && this.form.DTQBBHBUSS !== null && this.form.DTQBBHBUSS.indexOf(data) !== -1){
|
||||
data = data + ' X'
|
||||
}
|
||||
return data
|
||||
},
|
||||
getStandInfoByReviseStatus(type) {
|
||||
let date = new Date();
|
||||
let year = date.getFullYear();
|
||||
if(this.form.standStatus === '2'){
|
||||
this.form.id = ""
|
||||
if((this.form.standStatus === '3' || this.form.standStatus === '2') && (this.form.DTQBBHBUSS === undefined || this.form.DTQBBHBUSS === '')) {
|
||||
this.$message.warning("请选择一条代替企标编号")
|
||||
return
|
||||
}
|
||||
if(this.form.DTQBBHBUSS !== undefined && this.form.DTQBBHBUSS !== null){
|
||||
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 if(this.form.standStatus === '3' ){
|
||||
if((this.form.standStatus === '3' || this.form.standStatus === '2') && (this.form.DTQBBHBUSS === undefined || this.form.DTQBBHBUSS === '')) {
|
||||
this.$message.warning("请选择一条代替企标编号")
|
||||
return
|
||||
}
|
||||
if(this.form.selListRep2.length === 1){
|
||||
this.form.selListRep2.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber + '-' + item.standYear : item.standNumber + '-' + item.standYear
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
// 标准状态 修改 更新当前标准
|
||||
this.form.standSort = item.standSort
|
||||
this.form.standName = item.standName
|
||||
this.form.standNumber = item.standNumber
|
||||
this.form.standYear = item.standYear
|
||||
this.form.standCode = texts
|
||||
this.form.id = item.id
|
||||
})
|
||||
}
|
||||
}else if(this.form.standStatus === '1' ){
|
||||
this.form.id = ""
|
||||
if(type === '1'){
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
}
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss2_1'}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
const obj = res.data
|
||||
let standSn = (obj === null || obj.newStandSn === null) ? '2280' : obj.newStandSn
|
||||
this.form.standSn = standSn
|
||||
this.form.standNumber = standSn
|
||||
this.form.standYear = year // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
if(type === '1'){
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||
if (checkedData && checkedData.length != 0) {
|
||||
if (checkedData.length > 0) {
|
||||
@@ -2287,12 +2408,14 @@
|
||||
type: 'warning'
|
||||
})
|
||||
}
|
||||
if (this.selectedListRep.length + textArr.length > 20) {
|
||||
if (this.selectedListRep.length + textArr.length > 1) {
|
||||
return this.$message({
|
||||
message: '标准最多选择20项',
|
||||
message: '标准最多选择1项',
|
||||
type: 'warning'
|
||||
})
|
||||
}
|
||||
let textArr2 = []
|
||||
this.form.selListRep2 = []
|
||||
this.selectedListRep.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
@@ -2300,14 +2423,27 @@
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
// 标准状态 修改 更新当前标准
|
||||
if(this.form.standStatus === '3'){
|
||||
this.form.standSort = item.standSort
|
||||
this.form.standName = item.standName
|
||||
this.form.standNumber = item.standNumber
|
||||
this.form.standYear = item.standYear
|
||||
this.form.standCode = texts
|
||||
this.form.id = item.id
|
||||
}
|
||||
this.form.selListRep2.push(item)
|
||||
textArr2.push(item.standNumber)
|
||||
textArr.push(texts)
|
||||
textArr = [...new Set(textArr)]
|
||||
textArr2 = [...new Set(textArr2)]
|
||||
this.replaceLawsNumModel = false
|
||||
})
|
||||
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
|
||||
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
|
||||
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
|
||||
if(this.replaceLawType === 'DTQBBHBUSS'){
|
||||
this.form.DTQBBHBUSS = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
|
||||
this.form.DTQBBHBUSS = textArr.join(',')
|
||||
this.form.standNum = textArr2.join(',')
|
||||
}else if(this.replaceLawType === 'yybj'){
|
||||
this.form.yybj = this.form.yybj ? this.form.yybj + ',' +textArr.join(',') : textArr.join(',')
|
||||
}else if(this.replaceLawType === 'cbbh'){
|
||||
@@ -2690,6 +2826,10 @@
|
||||
// test
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
if((this.form.standStatus === '3' || this.form.standStatus === '2') && (this.form.DTQBBHBUSS === undefined || this.form.DTQBBHBUSS === '')) {
|
||||
this.$message.warning("请选择一条代替企标编号")
|
||||
return
|
||||
}
|
||||
// this.changeTree(this.form.modelData)
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
|
||||
@@ -612,6 +612,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -788,6 +793,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
modelDataZrUserVerify:[],
|
||||
|
||||
@@ -613,6 +613,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -789,6 +794,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
modelDataZrUserVerify:[],
|
||||
|
||||
@@ -612,6 +612,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -788,6 +793,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
modelDataZrUserVerify:[],
|
||||
|
||||
@@ -628,6 +628,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -747,6 +752,7 @@
|
||||
replaceLawsNumRow: [], // 代替政策号 数组内容
|
||||
replaceTotal: 0,
|
||||
selectedListRep: [],
|
||||
selListRep2: [],
|
||||
replaceLoading: true,
|
||||
replacePage: 1,
|
||||
ListModel: false, // 新增编辑抽屉开关
|
||||
@@ -808,6 +814,8 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
@@ -985,7 +993,7 @@
|
||||
{ required: true, message: '请选择标准状态', trigger: 'change' }
|
||||
],
|
||||
issueTime: [
|
||||
{ required: false, message: '请选择企标发布日期', trigger: 'change'}
|
||||
{ required: true, message: '请选择企标发布日期', trigger: 'change'}
|
||||
],
|
||||
FBGBUSSName: [
|
||||
{ required: true, message: '请上传发布稿',validator: validateFBGBUSS, trigger: 'blur' }
|
||||
@@ -1072,11 +1080,17 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
'form.standSort': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
this.getStandInfoByReviseStatus("")
|
||||
}
|
||||
}
|
||||
},
|
||||
'form.standStatus': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
console.log(val)
|
||||
this.getStandInfoByReviseStatus()
|
||||
this.getStandInfoByReviseStatus("1")
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1851,48 +1865,35 @@
|
||||
})
|
||||
}
|
||||
let textArr2 = []
|
||||
if(this.selectedListRep.length === 1){
|
||||
this.selectedListRep.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber + '-' + item.standYear : item.standNumber + '-' + item.standYear
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
// 标准状态 修改 更新当前标准
|
||||
if(this.form.standStatus === '3'){
|
||||
this.form.standSort = item.standSort
|
||||
this.form.standNumber = item.standNumber
|
||||
this.form.standYear = item.standYear
|
||||
this.form.standCode = texts
|
||||
this.form.id = item.id
|
||||
}
|
||||
textArr2.push(item.standNumber)
|
||||
textArr.push(texts)
|
||||
textArr = [...new Set(textArr)]
|
||||
textArr2 = [...new Set(textArr2)]
|
||||
this.replaceLawsNumModel = false
|
||||
})
|
||||
}else {
|
||||
this.selectedListRep.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber + '-' + item.standYear : item.standNumber + '-' + item.standYear
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
textArr2.push(item.standNumber)
|
||||
textArr.push(texts)
|
||||
textArr = [...new Set(textArr)]
|
||||
textArr2 = [...new Set(textArr2)]
|
||||
this.replaceLawsNumModel = false
|
||||
})
|
||||
}
|
||||
this.form.selListRep2 = []
|
||||
this.selectedListRep.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber + '-' + item.standYear : item.standNumber + '-' + item.standYear
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
// 标准状态 修改 更新当前标准
|
||||
if(this.form.standStatus === '3'){
|
||||
this.form.standSort = item.standSort
|
||||
this.form.standName = item.standName
|
||||
this.form.standNumber = item.standNumber
|
||||
this.form.standYear = item.standYear
|
||||
this.form.standCode = texts
|
||||
this.form.id = item.id
|
||||
}
|
||||
this.form.selListRep2.push(item)
|
||||
textArr2.push(item.standNumber)
|
||||
textArr.push(texts)
|
||||
textArr = [...new Set(textArr)]
|
||||
textArr2 = [...new Set(textArr2)]
|
||||
this.replaceLawsNumModel = false
|
||||
})
|
||||
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
|
||||
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
|
||||
if(this.replaceLawType === 'DTQBBHBUSS'){
|
||||
this.form.DTQBBHBUSS = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
|
||||
this.form.standNum = this.form.standNum ? this.form.standNum + ',' + textArr2.join(',') : textArr2.join(',')
|
||||
this.form.DTQBBHBUSS = textArr.join(',')
|
||||
this.form.standNum = textArr2.join(',')
|
||||
}else if(this.replaceLawType === 'yybj'){
|
||||
this.form.yybj = this.form.yybj ? this.form.yybj + ',' +textArr.join(',') : textArr.join(',')
|
||||
}else if(this.replaceLawType === 'cbbh'){
|
||||
@@ -1904,6 +1905,7 @@
|
||||
}
|
||||
// this.$emit('input', textArr.join(','))
|
||||
this.$refs.selections.clearSelection()
|
||||
this.formKey++
|
||||
},
|
||||
// 点击查看
|
||||
handlePreview (item) {
|
||||
@@ -2484,6 +2486,13 @@
|
||||
this.form.prcName = this.prcName
|
||||
this.form.issueTime = this.dateFormatter()
|
||||
this.form['id'] = item.id
|
||||
this.FBGBUSSFileList=this.assemble(item.FBGBUSS,item.FBGBUSSName);
|
||||
this.BZSMBUSSFileList=this.assemble(item.BZSMBUSS,item.BZSMBUSSName);
|
||||
this.LSBBBUSSFileList=this.assemble(item.LSBBBUSS,item.LSBBBUSSName);
|
||||
this.QTWJBUSSFileList=this.assemble(item.QTWJBUSS,item.QTWJBUSSName);
|
||||
this.GLWJBUSSFileList=this.assemble(item.GLWJBUSS,item.GLWJBUSSName);
|
||||
this.XGDFileList=this.assemble(item.XGD,item.XGDName);
|
||||
this.getStandInfoByReviseStatus()
|
||||
this.formKey++
|
||||
})
|
||||
},
|
||||
@@ -2513,12 +2522,6 @@
|
||||
this.commentCycleDate = dateArr
|
||||
}
|
||||
this.getFormFieldList(processForm)
|
||||
this.FBGBUSSFileList=this.assemble(processForm.FBGBUSS,processForm.FBGBUSSName);
|
||||
this.BZSMBUSSFileList=this.assemble(processForm.BZSMBUSS,processForm.BZSMBUSSName);
|
||||
this.LSBBBUSSFileList=this.assemble(processForm.LSBBBUSS,processForm.LSBBBUSSName);
|
||||
this.QTWJBUSSFileList=this.assemble(processForm.QTWJBUSS,processForm.QTWJBUSSName);
|
||||
this.GLWJBUSSFileList=this.assemble(processForm.GLWJBUSS,processForm.GLWJBUSSName);
|
||||
this.XGDFileList=this.assemble(processForm.XGD,processForm.XGDName);
|
||||
this.formKey++
|
||||
}
|
||||
}).catch(e => {
|
||||
@@ -2546,10 +2549,11 @@
|
||||
}
|
||||
return data
|
||||
},
|
||||
getStandInfoByReviseStatus() {
|
||||
getStandInfoByReviseStatus(type) {
|
||||
let date = new Date();
|
||||
let year = date.getFullYear();
|
||||
if(this.form.standStatus === '2'){
|
||||
this.form.id = ""
|
||||
this.FBGBUSSFileList = []
|
||||
this.LSBBBUSSFileList = []
|
||||
this.form.FBGBUSS = sessionStorage.getItem("FBGBUSSBF")
|
||||
@@ -2585,13 +2589,35 @@
|
||||
this.FBGBUSSFileList= []
|
||||
this.FBGBUSS = ""
|
||||
this.FBGBUSSName = ""
|
||||
this.formKey++
|
||||
if((this.form.standStatus === '3' || this.form.standStatus === '2') && (this.form.DTQBBHBUSS === undefined || this.form.DTQBBHBUSS === '')) {
|
||||
this.$message.warning("请选择一条代替企标编号")
|
||||
return
|
||||
}
|
||||
}else {
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss2_'+this.form.reviseStatus}, {
|
||||
if(this.form.selListRep2.length === 1){
|
||||
this.form.selListRep2.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber + '-' + item.standYear : item.standNumber + '-' + item.standYear
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
// 标准状态 修改 更新当前标准
|
||||
this.form.standSort = item.standSort
|
||||
this.form.standName = item.standName
|
||||
this.form.standNumber = item.standNumber
|
||||
this.form.standYear = item.standYear
|
||||
this.form.standCode = texts
|
||||
this.form.id = item.id
|
||||
})
|
||||
}
|
||||
this.formKey++
|
||||
}else if(this.form.standStatus === '1' ){
|
||||
this.form.id = ""
|
||||
if(type === '1'){
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
}
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss2_1'}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
const obj = res.data
|
||||
@@ -2608,6 +2634,10 @@
|
||||
this.form.LSBBBUSSName = sessionStorage.getItem("LSBBBUSSNameBF")
|
||||
this.FBGBUSSFileList=this.assemble(sessionStorage.getItem("FBGBUSSBF"),sessionStorage.getItem("FBGBUSSNameBF"));
|
||||
this.LSBBBUSSFileList=this.assemble(sessionStorage.getItem("LSBBBUSSBF"),sessionStorage.getItem("LSBBBUSSNameBF"));
|
||||
if(type === '1'){
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
this.formKey++
|
||||
}, e => {
|
||||
})
|
||||
|
||||
@@ -611,6 +611,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -789,6 +794,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
modelDataZrUserVerify:[],
|
||||
|
||||
@@ -672,6 +672,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -790,6 +795,7 @@
|
||||
replaceLawsNumRow: [], // 代替政策号 数组内容
|
||||
replaceTotal: 0,
|
||||
selectedListRep: [],
|
||||
selListRep2: [],
|
||||
replaceLoading: true,
|
||||
replacePage: 1,
|
||||
ListModel: false, // 新增编辑抽屉开关
|
||||
@@ -852,6 +858,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
modelDataZrUserVerify:[],
|
||||
@@ -1054,6 +1068,20 @@
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
'form.standSort': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
this.getStandInfoByReviseStatus("")
|
||||
}
|
||||
}
|
||||
},
|
||||
'form.standStatus': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
this.getStandInfoByReviseStatus("1")
|
||||
}
|
||||
}
|
||||
},
|
||||
'form.issueTime': {
|
||||
handler: function() {
|
||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
||||
@@ -1099,6 +1127,72 @@
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
regDate(data){
|
||||
if(this.form.DTQBBHBUSS !== undefined && this.form.DTQBBHBUSS !== null && this.form.DTQBBHBUSS.indexOf(data) !== -1){
|
||||
data = data + ' X'
|
||||
}
|
||||
return data
|
||||
},
|
||||
getStandInfoByReviseStatus(type) {
|
||||
let date = new Date();
|
||||
let year = date.getFullYear();
|
||||
if(this.form.standStatus === '2'){
|
||||
this.form.id = ""
|
||||
if((this.form.standStatus === '3' || this.form.standStatus === '2') && (this.form.DTQBBHBUSS === undefined || this.form.DTQBBHBUSS === '')) {
|
||||
this.$message.warning("请选择一条代替企标编号")
|
||||
return
|
||||
}
|
||||
if(this.form.DTQBBHBUSS !== undefined && this.form.DTQBBHBUSS !== null){
|
||||
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 if(this.form.standStatus === '3' ){
|
||||
if((this.form.standStatus === '3' || this.form.standStatus === '2') && (this.form.DTQBBHBUSS === undefined || this.form.DTQBBHBUSS === '')) {
|
||||
this.$message.warning("请选择一条代替企标编号")
|
||||
return
|
||||
}
|
||||
if(this.form.selListRep2.length === 1){
|
||||
this.form.selListRep2.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber + '-' + item.standYear : item.standNumber + '-' + item.standYear
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
// 标准状态 修改 更新当前标准
|
||||
this.form.standSort = item.standSort
|
||||
this.form.standName = item.standName
|
||||
this.form.standNumber = item.standNumber
|
||||
this.form.standYear = item.standYear
|
||||
this.form.standCode = texts
|
||||
this.form.id = item.id
|
||||
})
|
||||
}
|
||||
}else if(this.form.standStatus === '1' ){
|
||||
this.form.id = ""
|
||||
if(type === '1'){
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
}
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss2_1'}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
const obj = res.data
|
||||
let standSn = (obj === null || obj.newStandSn === null) ? '2280' : obj.newStandSn
|
||||
this.form.standSn = standSn
|
||||
this.form.standNumber = standSn
|
||||
this.form.standYear = year // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
if(type === '1'){
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
}
|
||||
},
|
||||
drawerCheckZRBM(data) {
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
@@ -1838,12 +1932,14 @@
|
||||
type: 'warning'
|
||||
})
|
||||
}
|
||||
if (this.selectedListRep.length + textArr.length > 20) {
|
||||
if (this.selectedListRep.length + textArr.length > 1) {
|
||||
return this.$message({
|
||||
message: '标准最多选择20项',
|
||||
message: '标准最多选择1项',
|
||||
type: 'warning'
|
||||
})
|
||||
}
|
||||
let textArr2 = []
|
||||
this.form.selListRep2 = []
|
||||
this.selectedListRep.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
@@ -1851,14 +1947,27 @@
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
// 标准状态 修改 更新当前标准
|
||||
if(this.form.standStatus === '3'){
|
||||
this.form.standSort = item.standSort
|
||||
this.form.standName = item.standName
|
||||
this.form.standNumber = item.standNumber
|
||||
this.form.standYear = item.standYear
|
||||
this.form.standCode = texts
|
||||
this.form.id = item.id
|
||||
}
|
||||
this.form.selListRep2.push(item)
|
||||
textArr2.push(item.standNumber)
|
||||
textArr.push(texts)
|
||||
textArr = [...new Set(textArr)]
|
||||
textArr2 = [...new Set(textArr2)]
|
||||
this.replaceLawsNumModel = false
|
||||
})
|
||||
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
|
||||
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
|
||||
if(this.replaceLawType === 'DTQBBHBUSS'){
|
||||
this.form.DTQBBHBUSS = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
|
||||
this.form.DTQBBHBUSS = textArr.join(',')
|
||||
this.form.standNum = textArr2.join(',')
|
||||
}else if(this.replaceLawType === 'yybj'){
|
||||
this.form.yybj = this.form.yybj ? this.form.yybj + ',' +textArr.join(',') : textArr.join(',')
|
||||
}else if(this.replaceLawType === 'cbbh'){
|
||||
|
||||
@@ -611,6 +611,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -788,6 +793,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
modelDataZrUserVerify:[],
|
||||
|
||||
@@ -705,6 +705,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -885,9 +890,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
evaluationData:[],
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
@@ -945,7 +955,6 @@
|
||||
CBCD:'',
|
||||
CYBZ:'',
|
||||
YYBZ:'',
|
||||
standNum:'',
|
||||
}, // 标准信息
|
||||
roleForm:{
|
||||
hzUserId: this.$store.getters.userInfo.userId,
|
||||
|
||||
@@ -742,6 +742,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -860,6 +865,7 @@
|
||||
replaceLawsNumRow: [], // 代替政策号 数组内容
|
||||
replaceTotal: 0,
|
||||
selectedListRep: [],
|
||||
selListRep2: [],
|
||||
replaceLoading: true,
|
||||
replacePage: 1,
|
||||
ListModel: false, // 新增编辑抽屉开关
|
||||
@@ -922,6 +928,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
modelDataZrUserVerify:[],
|
||||
@@ -1133,6 +1147,20 @@
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
'form.standSort': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
this.getStandInfoByReviseStatus()
|
||||
}
|
||||
}
|
||||
},
|
||||
'form.standStatus': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
this.getStandInfoByReviseStatus()
|
||||
}
|
||||
}
|
||||
},
|
||||
'form.issueTime': {
|
||||
handler: function() {
|
||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
||||
@@ -1178,6 +1206,72 @@
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
regDate(data){
|
||||
if(this.form.DTQBBHBUSS !== undefined && this.form.DTQBBHBUSS !== null && this.form.DTQBBHBUSS.indexOf(data) !== -1){
|
||||
data = data + ' X'
|
||||
}
|
||||
return data
|
||||
},
|
||||
getStandInfoByReviseStatus(type) {
|
||||
let date = new Date();
|
||||
let year = date.getFullYear();
|
||||
if(this.form.standStatus === '2'){
|
||||
this.form.id = ""
|
||||
if((this.form.standStatus === '3' || this.form.standStatus === '2') && (this.form.DTQBBHBUSS === undefined || this.form.DTQBBHBUSS === '')) {
|
||||
this.$message.warning("请选择一条代替企标编号")
|
||||
return
|
||||
}
|
||||
if(this.form.DTQBBHBUSS !== undefined && this.form.DTQBBHBUSS !== null){
|
||||
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 if(this.form.standStatus === '3' ){
|
||||
if((this.form.standStatus === '3' || this.form.standStatus === '2') && (this.form.DTQBBHBUSS === undefined || this.form.DTQBBHBUSS === '')) {
|
||||
this.$message.warning("请选择一条代替企标编号")
|
||||
return
|
||||
}
|
||||
if(this.form.selListRep2.length === 1){
|
||||
this.form.selListRep2.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber + '-' + item.standYear : item.standNumber + '-' + item.standYear
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
// 标准状态 修改 更新当前标准
|
||||
this.form.standSort = item.standSort
|
||||
this.form.standName = item.standName
|
||||
this.form.standNumber = item.standNumber
|
||||
this.form.standYear = item.standYear
|
||||
this.form.standCode = texts
|
||||
this.form.id = item.id
|
||||
})
|
||||
}
|
||||
}else if(this.form.standStatus === '1' ){
|
||||
this.form.id = ""
|
||||
if(type === '1'){
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
}
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss2_1'}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
const obj = res.data
|
||||
let standSn = (obj === null || obj.newStandSn === null) ? '2280' : obj.newStandSn
|
||||
this.form.standSn = standSn
|
||||
this.form.standNumber = standSn
|
||||
this.form.standYear = year // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
if(type === '1'){
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
}
|
||||
},
|
||||
drawerCheckZRBM(data) {
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
@@ -1929,12 +2023,14 @@
|
||||
type: 'warning'
|
||||
})
|
||||
}
|
||||
if (this.selectedListRep.length + textArr.length > 20) {
|
||||
if (this.selectedListRep.length + textArr.length > 1) {
|
||||
return this.$message({
|
||||
message: '标准最多选择20项',
|
||||
message: '标准最多选择1项',
|
||||
type: 'warning'
|
||||
})
|
||||
}
|
||||
let textArr2 = []
|
||||
this.form.selListRep2 = []
|
||||
this.selectedListRep.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
@@ -1942,14 +2038,27 @@
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
// 标准状态 修改 更新当前标准
|
||||
if(this.form.standStatus === '3'){
|
||||
this.form.standSort = item.standSort
|
||||
this.form.standName = item.standName
|
||||
this.form.standNumber = item.standNumber
|
||||
this.form.standYear = item.standYear
|
||||
this.form.standCode = texts
|
||||
this.form.id = item.id
|
||||
}
|
||||
this.form.selListRep2.push(item)
|
||||
textArr2.push(item.standNumber)
|
||||
textArr.push(texts)
|
||||
textArr = [...new Set(textArr)]
|
||||
textArr2 = [...new Set(textArr2)]
|
||||
this.replaceLawsNumModel = false
|
||||
})
|
||||
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
|
||||
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
|
||||
if(this.replaceLawType === 'DTQBBHBUSS'){
|
||||
this.form.DTQBBHBUSS = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
|
||||
this.form.DTQBBHBUSS = textArr.join(',')
|
||||
this.form.standNum = textArr2.join(',')
|
||||
}else if(this.replaceLawType === 'yybj'){
|
||||
this.form.yybj = this.form.yybj ? this.form.yybj + ',' +textArr.join(',') : textArr.join(',')
|
||||
}else if(this.replaceLawType === 'cbbh'){
|
||||
|
||||
@@ -633,6 +633,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -808,6 +813,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
evaluationData:[],
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
|
||||
@@ -613,6 +613,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -789,6 +794,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
modelDataZrUserVerify:[],
|
||||
|
||||
@@ -613,6 +613,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -789,6 +794,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
modelDataZrUserVerify:[],
|
||||
|
||||
@@ -636,7 +636,7 @@
|
||||
let Base64 = require('js-base64').Base64;
|
||||
|
||||
export default {
|
||||
name: "bussLibraryProduct3",
|
||||
name: "bussLibraryProductC3",
|
||||
components: {
|
||||
ProcessHeader,
|
||||
ProcessFooter,
|
||||
@@ -672,6 +672,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -699,7 +704,7 @@
|
||||
}
|
||||
}]
|
||||
},
|
||||
taskInfo:'重新企标编写汇总修订',
|
||||
taskInfo:'企标编写汇总修订',
|
||||
loading: false,
|
||||
disabledState: false,
|
||||
userId:this.$store.getters.userInfo.userId,
|
||||
@@ -790,6 +795,7 @@
|
||||
replaceLawsNumRow: [], // 代替政策号 数组内容
|
||||
replaceTotal: 0,
|
||||
selectedListRep: [],
|
||||
selListRep2: [],
|
||||
replaceLoading: true,
|
||||
replacePage: 1,
|
||||
ListModel: false, // 新增编辑抽屉开关
|
||||
@@ -852,6 +858,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
modelDataZrUserVerify:[],
|
||||
@@ -1054,6 +1068,20 @@
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
'form.standSort': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
this.getStandInfoByReviseStatus("")
|
||||
}
|
||||
}
|
||||
},
|
||||
'form.standStatus': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
this.getStandInfoByReviseStatus("1")
|
||||
}
|
||||
}
|
||||
},
|
||||
'form.issueTime': {
|
||||
handler: function() {
|
||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
||||
@@ -1099,6 +1127,72 @@
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
regDate(data){
|
||||
if(this.form.DTQBBHBUSS !== undefined && this.form.DTQBBHBUSS !== null && this.form.DTQBBHBUSS.indexOf(data) !== -1){
|
||||
data = data + ' X'
|
||||
}
|
||||
return data
|
||||
},
|
||||
getStandInfoByReviseStatus(type) {
|
||||
let date = new Date();
|
||||
let year = date.getFullYear();
|
||||
if(this.form.standStatus === '2'){
|
||||
this.form.id = ""
|
||||
if((this.form.standStatus === '3' || this.form.standStatus === '2') && (this.form.DTQBBHBUSS === undefined || this.form.DTQBBHBUSS === '')) {
|
||||
this.$message.warning("请选择一条代替企标编号")
|
||||
return
|
||||
}
|
||||
if(this.form.DTQBBHBUSS !== undefined && this.form.DTQBBHBUSS !== null){
|
||||
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 if(this.form.standStatus === '3' ){
|
||||
if((this.form.standStatus === '3' || this.form.standStatus === '2') && (this.form.DTQBBHBUSS === undefined || this.form.DTQBBHBUSS === '')) {
|
||||
this.$message.warning("请选择一条代替企标编号")
|
||||
return
|
||||
}
|
||||
if(this.form.selListRep2.length === 1){
|
||||
this.form.selListRep2.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber + '-' + item.standYear : item.standNumber + '-' + item.standYear
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
// 标准状态 修改 更新当前标准
|
||||
this.form.standSort = item.standSort
|
||||
this.form.standName = item.standName
|
||||
this.form.standNumber = item.standNumber
|
||||
this.form.standYear = item.standYear
|
||||
this.form.standCode = texts
|
||||
this.form.id = item.id
|
||||
})
|
||||
}
|
||||
}else if(this.form.standStatus === '1' ){
|
||||
this.form.id = ""
|
||||
if(type === '1'){
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
}
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss2_1'}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
const obj = res.data
|
||||
let standSn = (obj === null || obj.newStandSn === null) ? '2280' : obj.newStandSn
|
||||
this.form.standSn = standSn
|
||||
this.form.standNumber = standSn
|
||||
this.form.standYear = year // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
if(type === '1'){
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
}
|
||||
},
|
||||
drawerCheckZRBM(data) {
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
@@ -1838,12 +1932,14 @@
|
||||
type: 'warning'
|
||||
})
|
||||
}
|
||||
if (this.selectedListRep.length + textArr.length > 20) {
|
||||
if (this.selectedListRep.length + textArr.length > 1) {
|
||||
return this.$message({
|
||||
message: '标准最多选择20项',
|
||||
message: '标准最多选择1项',
|
||||
type: 'warning'
|
||||
})
|
||||
}
|
||||
let textArr2 = []
|
||||
this.form.selListRep2 = []
|
||||
this.selectedListRep.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
@@ -1851,14 +1947,27 @@
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
// 标准状态 修改 更新当前标准
|
||||
if(this.form.standStatus === '3'){
|
||||
this.form.standSort = item.standSort
|
||||
this.form.standName = item.standName
|
||||
this.form.standNumber = item.standNumber
|
||||
this.form.standYear = item.standYear
|
||||
this.form.standCode = texts
|
||||
this.form.id = item.id
|
||||
}
|
||||
this.form.selListRep2.push(item)
|
||||
textArr2.push(item.standNumber)
|
||||
textArr.push(texts)
|
||||
textArr = [...new Set(textArr)]
|
||||
textArr2 = [...new Set(textArr2)]
|
||||
this.replaceLawsNumModel = false
|
||||
})
|
||||
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
|
||||
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
|
||||
if(this.replaceLawType === 'DTQBBHBUSS'){
|
||||
this.form.DTQBBHBUSS = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
|
||||
this.form.DTQBBHBUSS = textArr.join(',')
|
||||
this.form.standNum = textArr2.join(',')
|
||||
}else if(this.replaceLawType === 'yybj'){
|
||||
this.form.yybj = this.form.yybj ? this.form.yybj + ',' +textArr.join(',') : textArr.join(',')
|
||||
}else if(this.replaceLawType === 'cbbh'){
|
||||
@@ -2494,7 +2603,7 @@
|
||||
pId: this.pId
|
||||
}).then(res => {
|
||||
if (res) {
|
||||
this.taskInfo = '重新企标编写汇总修订'
|
||||
this.taskInfo = '企标编写汇总修订'
|
||||
const processForm = JSON.parse(res.mesg)
|
||||
const dateArr = []
|
||||
if(processForm.commentCycleStart && processForm.commentCycleEnd){
|
||||
|
||||
@@ -706,7 +706,7 @@
|
||||
let Base64 = require('js-base64').Base64;
|
||||
|
||||
export default {
|
||||
name: "bussLibraryProduct6",
|
||||
name: "bussLibraryProductC6",
|
||||
components: {
|
||||
ProcessHeader,
|
||||
ProcessFooter,
|
||||
@@ -742,6 +742,11 @@
|
||||
callback()
|
||||
};
|
||||
return {
|
||||
opinionsStand:[
|
||||
{value: '1',label: '制定'},
|
||||
{value: '2',label: '修订'},
|
||||
{value: '3',label: '修改'},
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
@@ -769,7 +774,7 @@
|
||||
}
|
||||
}]
|
||||
},
|
||||
taskInfo:'重新意见汇总及标准修改',
|
||||
taskInfo:'意见汇总及标准修改',
|
||||
loading: false,
|
||||
disabledState: false,
|
||||
userId:this.$store.getters.userInfo.userId,
|
||||
@@ -860,6 +865,7 @@
|
||||
replaceLawsNumRow: [], // 代替政策号 数组内容
|
||||
replaceTotal: 0,
|
||||
selectedListRep: [],
|
||||
selListRep2: [],
|
||||
replaceLoading: true,
|
||||
replacePage: 1,
|
||||
ListModel: false, // 新增编辑抽屉开关
|
||||
@@ -922,6 +928,14 @@
|
||||
countryArr:'',
|
||||
commentCycleDate:'',
|
||||
form: {
|
||||
selListRep2:[],
|
||||
id:'',
|
||||
standNum:'',
|
||||
standStatus:'', // 标准状态
|
||||
planId:'',
|
||||
planStatus:'',
|
||||
reviseStatus:'',
|
||||
standSn:'',
|
||||
modelData:[],
|
||||
modelDataNameVerify:[],
|
||||
modelDataZrUserVerify:[],
|
||||
@@ -1133,6 +1147,20 @@
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
'form.standSort': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
this.getStandInfoByReviseStatus()
|
||||
}
|
||||
}
|
||||
},
|
||||
'form.standStatus': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
this.getStandInfoByReviseStatus()
|
||||
}
|
||||
}
|
||||
},
|
||||
'form.issueTime': {
|
||||
handler: function() {
|
||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
||||
@@ -1178,6 +1206,72 @@
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
regDate(data){
|
||||
if(this.form.DTQBBHBUSS !== undefined && this.form.DTQBBHBUSS !== null && this.form.DTQBBHBUSS.indexOf(data) !== -1){
|
||||
data = data + ' X'
|
||||
}
|
||||
return data
|
||||
},
|
||||
getStandInfoByReviseStatus(type) {
|
||||
let date = new Date();
|
||||
let year = date.getFullYear();
|
||||
if(this.form.standStatus === '2'){
|
||||
this.form.id = ""
|
||||
if((this.form.standStatus === '3' || this.form.standStatus === '2') && (this.form.DTQBBHBUSS === undefined || this.form.DTQBBHBUSS === '')) {
|
||||
this.$message.warning("请选择一条代替企标编号")
|
||||
return
|
||||
}
|
||||
if(this.form.DTQBBHBUSS !== undefined && this.form.DTQBBHBUSS !== null){
|
||||
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 if(this.form.standStatus === '3' ){
|
||||
if((this.form.standStatus === '3' || this.form.standStatus === '2') && (this.form.DTQBBHBUSS === undefined || this.form.DTQBBHBUSS === '')) {
|
||||
this.$message.warning("请选择一条代替企标编号")
|
||||
return
|
||||
}
|
||||
if(this.form.selListRep2.length === 1){
|
||||
this.form.selListRep2.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber + '-' + item.standYear : item.standNumber + '-' + item.standYear
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
// 标准状态 修改 更新当前标准
|
||||
this.form.standSort = item.standSort
|
||||
this.form.standName = item.standName
|
||||
this.form.standNumber = item.standNumber
|
||||
this.form.standYear = item.standYear
|
||||
this.form.standCode = texts
|
||||
this.form.id = item.id
|
||||
})
|
||||
}
|
||||
}else if(this.form.standStatus === '1' ){
|
||||
this.form.id = ""
|
||||
if(type === '1'){
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
}
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss2_1'}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
const obj = res.data
|
||||
let standSn = (obj === null || obj.newStandSn === null) ? '2280' : obj.newStandSn
|
||||
this.form.standSn = standSn
|
||||
this.form.standNumber = standSn
|
||||
this.form.standYear = year // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
if(type === '1'){
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
}
|
||||
},
|
||||
drawerCheckZRBM(data) {
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
@@ -1929,12 +2023,14 @@
|
||||
type: 'warning'
|
||||
})
|
||||
}
|
||||
if (this.selectedListRep.length + textArr.length > 20) {
|
||||
if (this.selectedListRep.length + textArr.length > 1) {
|
||||
return this.$message({
|
||||
message: '标准最多选择20项',
|
||||
message: '标准最多选择1项',
|
||||
type: 'warning'
|
||||
})
|
||||
}
|
||||
let textArr2 = []
|
||||
this.form.selListRep2 = []
|
||||
this.selectedListRep.map((item) => {
|
||||
let texts = ''
|
||||
if (item.standYear != null && item.standYear !== '') {
|
||||
@@ -1942,14 +2038,27 @@
|
||||
} else {
|
||||
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
||||
}
|
||||
// 标准状态 修改 更新当前标准
|
||||
if(this.form.standStatus === '3'){
|
||||
this.form.standSort = item.standSort
|
||||
this.form.standName = item.standName
|
||||
this.form.standNumber = item.standNumber
|
||||
this.form.standYear = item.standYear
|
||||
this.form.standCode = texts
|
||||
this.form.id = item.id
|
||||
}
|
||||
this.form.selListRep2.push(item)
|
||||
textArr2.push(item.standNumber)
|
||||
textArr.push(texts)
|
||||
textArr = [...new Set(textArr)]
|
||||
textArr2 = [...new Set(textArr2)]
|
||||
this.replaceLawsNumModel = false
|
||||
})
|
||||
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
|
||||
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
|
||||
if(this.replaceLawType === 'DTQBBHBUSS'){
|
||||
this.form.DTQBBHBUSS = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
|
||||
this.form.DTQBBHBUSS = textArr.join(',')
|
||||
this.form.standNum = textArr2.join(',')
|
||||
}else if(this.replaceLawType === 'yybj'){
|
||||
this.form.yybj = this.form.yybj ? this.form.yybj + ',' +textArr.join(',') : textArr.join(',')
|
||||
}else if(this.replaceLawType === 'cbbh'){
|
||||
@@ -2584,7 +2693,7 @@
|
||||
pId: this.pId
|
||||
}).then(res => {
|
||||
if (res) {
|
||||
this.taskInfo = '重新意见汇总及标准修改'
|
||||
this.taskInfo = '意见汇总及标准修改'
|
||||
const processForm = JSON.parse(res.mesg)
|
||||
const dateArr = []
|
||||
if(processForm.commentCycleStart && processForm.commentCycleEnd){
|
||||
|
||||
Reference in New Issue
Block a user