Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
zhutianqi
2021-07-30 11:30:21 +08:00
20 changed files with 369 additions and 264 deletions
@@ -186,6 +186,7 @@ export default {
replaceLawsNumRow: [], // 代替政策号 数组内容 replaceLawsNumRow: [], // 代替政策号 数组内容
replaceTotal: 0, replaceTotal: 0,
selectedListRep: [], selectedListRep: [],
ids: [],
replaceLoading: true, replaceLoading: true,
replacePage: 1 replacePage: 1
@@ -297,6 +298,7 @@ export default {
// 代替政策编号确定 // 代替政策编号确定
replaceLawsNumModelBt () { replaceLawsNumModelBt () {
let textArr = [] let textArr = []
this.ids = []
if (typeof this.value === 'string') { if (typeof this.value === 'string') {
if (this.value) { if (this.value) {
@@ -322,12 +324,14 @@ export default {
} else { } else {
texts = item.standSortShow !== null ? item.standSortShow + ' ' + item.standNumber : item.standNumber texts = item.standSortShow !== null ? item.standSortShow + ' ' + item.standNumber : item.standNumber
} }
this.ids.push(item.id);
textArr.push(texts) textArr.push(texts)
textArr = [...new Set(textArr)] textArr = [...new Set(textArr)]
this.replaceLawsNumModel = false this.replaceLawsNumModel = false
}) })
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',') // this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
this.$emit('input', textArr.join(',')) this.$emit('input', textArr.join(','))
this.$emit('popoverHide', this.ids, this.config.attrField);
this.$refs.selections.clearSelection() this.$refs.selections.clearSelection()
}, },
// 点击查看 // 点击查看
@@ -72,7 +72,7 @@
:key="child.id" :key="child.id"
class="modular-item" class="modular-item"
:class="!(childIndex === item.half.length - 1) || childIndex % 2 === 1 ? 'half' : ''" :class="!(childIndex === item.half.length - 1) || childIndex % 2 === 1 ? 'half' : ''"
v-if=" child.attrField === 'DTBJH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'XGLC' || child.attrField === 'BDTBZBH' || child.attrField === 'BFDTBZ' " v-if=" child.attrField === 'DTBJH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'XGLC' || child.attrField === 'BDTBZBH' || child.attrField === 'BFDTBZ' || child.attrField === 'BBFDTBZ' "
> >
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label> <label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
<span <span
@@ -216,7 +216,7 @@
</p> </p>
</template> </template>
<template <template
v-else-if="child.attrField === 'DTBJH'|| child.attrField === 'BDTBZBH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'BFDTBZ'" v-else-if="child.attrField === 'DTBJH'|| child.attrField === 'BDTBZBH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'BFDTBZ' || child.attrField === 'BBFDTBZ'"
> >
<p class="modular-content-p-val" v-if="child.value"> <p class="modular-content-p-val" v-if="child.value">
<span v-for="(item, index) in child.value.split(',')" :key="index"> <span v-for="(item, index) in child.value.split(',')" :key="index">
@@ -310,7 +310,7 @@
</p> </p>
</template> </template>
<template <template
v-else-if="child.attrField === 'DTBJH'|| child.attrField === 'BDTBZBH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'BFDTBZ'" v-else-if="child.attrField === 'DTBJH'|| child.attrField === 'BDTBZBH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'BFDTBZ' || child.attrField === 'BBFDTBZ'"
> >
<p class="modular-content-p-val" v-if="child.value"> <p class="modular-content-p-val" v-if="child.value">
<span v-for="(item, index) in child.value.split(',')" :key="index"> <span v-for="(item, index) in child.value.split(',')" :key="index">
+4 -34
View File
@@ -51,20 +51,12 @@
prop="showNumber" prop="showNumber"
label="标准号/政策号" label="标准号/政策号"
align="center"> align="center">
<template slot-scope="scope">
<div v-if=" scope.row.splitStatus === '0'">{{ scope.row.standNumSplit }}</div>
<div v-else>{{ scope.row.showNumber }}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standName" prop="standName"
label="标准名称/政策名称" label="标准名称/政策名称"
show-overflow-tooltip show-overflow-tooltip
align="center"> align="center">
<template slot-scope="scope">
<span v-if=" scope.row.splitStatus === '0'">{{ scope.row.standNameSplit }}</span>
<span v-else>{{ scope.row.standName }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="fileTypeShow" prop="fileTypeShow"
@@ -77,20 +69,14 @@
show-overflow-tooltip show-overflow-tooltip
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column
prop="splitStatus"
label="拆分状态"
align="center">
<template slot-scope="scope">
<div>{{ scope.row.splitStatus == '0' ? '编辑中' : (scope.row.splitStatus == '1' ? '审核中' : '已完成' +
'') }}</div>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="creationTime" prop="creationTime"
label="拆分时间" label="拆分时间"
sortable sortable
align="center"> align="center">
<template slot-scope="scope">
<span>{{ scope.row.creationTime ? $moment(scope.row.creationTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="result" prop="result"
@@ -102,28 +88,12 @@
<el-tag type="danger" size="small" v-else>失败</el-tag> <el-tag type="danger" size="small" v-else>失败</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="50" fixed="right"> <el-table-column label="操作" align="center" width="50">
<template slot-scope="scope"> <template slot-scope="scope">
<el-dropdown trigger="click" @command="handleCommand"> <el-dropdown trigger="click" @command="handleCommand">
<i class="iconfont">&#xe61e;</i> <i class="iconfont">&#xe61e;</i>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="''">查看</el-dropdown-item> <el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="''">查看</el-dropdown-item>
<!-- <el-dropdown-item-->
<!-- v-if="scope.row.collectBtn"-->
<!-- :command="[scope.row, '收藏']"-->
<!-- v-btn-permission="''"-->
<!-- >-->
<!-- 收藏-->
<!-- </el-dropdown-item>-->
<!-- <el-dropdown-item-->
<!-- v-else-->
<!-- :command="[scope.row, '取消收藏']"-->
<!-- v-btn-permission="''"-->
<!-- >-->
<!-- 取消收藏-->
<!-- </el-dropdown-item>-->
<!-- <el-dropdown-item :command="[scope.row, '分享']" v-btn-permission="''">分享</el-dropdown-item>-->
<!-- <el-dropdown-item :command="[scope.row, '关联']">关联</el-dropdown-item>-->
<el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="''">删除</el-dropdown-item> <el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="''">删除</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
@@ -2245,15 +2245,7 @@ export default {
}) })
}, },
jurisdictionCheck() { jurisdictionCheck() {
if (this.jurisdiction === '0') { return true
this.$message.warning('审核中,不可操作')
return false
} else if (this.jurisdiction === '1') {
this.$message.warning('编辑中,不可操作')
return false
} else {
return true
}
} }
}, },
props: {}, props: {},
+153 -153
View File
@@ -291,158 +291,158 @@ export default {
label: "关联文件", label: "关联文件",
}, },
], ],
// standRecoColumn: [ /* standRecoColumn: [
// { {
// type: 'selection', type: 'selection',
// width: 60, width: 60,
// align: 'center' align: 'center'
// }, },
// { {
// title: '序号', title: '序号',
// type: 'index', type: 'index',
// align: 'center' align: 'center'
// }, },
// { {
// title: '资料类型', title: '资料类型',
// key: 'fileType', key: 'fileType',
// align: 'center', align: 'center',
// render: (h, params) => { render: (h, params) => {
// let texts let texts
// if (params.row.fileType === '1') { if (params.row.fileType === '1') {
// texts = '国内标准法规' texts = '国内标准法规'
// } else if (params.row.fileType === '2') { } else if (params.row.fileType === '2') {
// texts = '海外标准法规' texts = '海外标准法规'
// } else if (params.row.fileType === '3') { } else if (params.row.fileType === '3') {
// texts = '政策' texts = '政策'
// } else if (params.row.fileType === '4') { } else if (params.row.fileType === '4') {
// texts = '企业标准' texts = '企业标准'
// } else { } else {
// texts = '标准' texts = '标准'
// } }
// return h('div', { return h('div', {
// class: { class: {
// 'text-overflow-hidden': true 'text-overflow-hidden': true
// }, },
// attrs: { attrs: {
// title: texts title: texts
// } }
// }, texts) }, texts)
// } }
// }, },
// { {
// title: '标准号/政策号', title: '标准号/政策号',
// key: 'standNumber', key: 'standNumber',
// align: 'center' align: 'center'
// }, },
// { {
// title: '标准名称/政策名称', title: '标准名称/政策名称',
// key: 'standName', key: 'standName',
// align: 'center' align: 'center'
// }, },
// { {
// title: '文本状态', title: '文本状态',
// key: 'fileStatus', key: 'fileStatus',
// align: 'center', align: 'center',
// render: (h, params) => { render: (h, params) => {
// let texts let texts
// if (params.row.fileType === 'STAND_FILE') { if (params.row.fileType === 'STAND_FILE') {
// texts = '标准文本' texts = '标准文本'
// } else if (params.row.fileType === 'DRAFT_FILE') { } else if (params.row.fileType === 'DRAFT_FILE') {
// texts = '草案' texts = '草案'
// } else if (params.row.fileType === 'OPINION_FILE') { } else if (params.row.fileType === 'OPINION_FILE') {
// texts = '征求意见稿' texts = '征求意见稿'
// } else if (params.row.fileType === 'SENT_SCREEN_FILE') { } else if (params.row.fileType === 'SENT_SCREEN_FILE') {
// texts = '送审稿' texts = '送审稿'
// } else if (params.row.fileType === 'APPROVAL_FILE') { } else if (params.row.fileType === 'APPROVAL_FILE') {
// texts = '报批稿' texts = '报批稿'
// } else if (params.row.fileType === 'RELEVANCE_FILE') { } else if (params.row.fileType === 'RELEVANCE_FILE') {
// texts = '关联文件' texts = '关联文件'
// } }
// return h('div', { return h('div', {
// class: { class: {
// 'text-overflow-hidden': true 'text-overflow-hidden': true
// }, },
// attrs: { attrs: {
// title: texts title: texts
// } }
// }, texts) }, texts)
// } }
// }, },
// { {
// title: '转换结果', title: '转换结果',
// key: 'resultContent', key: 'resultContent',
// align: 'center' align: 'center'
// }, },
// { {
// title: '消耗时间', title: '消耗时间',
// key: 'spendTime', key: 'spendTime',
// align: 'center' align: 'center'
// }, },
// { {
// title: '操作', title: '操作',
// key: 'action', key: 'action',
// width: 200, width: 200,
// align: 'center', align: 'center',
// render: (h, params) => { render: (h, params) => {
// return h('div', [ return h('div', [
// h('Button', { h('Button', {
// props: { props: {
// type: 'primary', type: 'primary',
// size: 'small' size: 'small'
// }, },
// style: { style: {
// marginRight: '5px' marginRight: '5px'
// }, },
// on: { on: {
// click: () => { click: () => {
// this.downloadFile(params.row) this.downloadFile(params.row)
// } }
// } }
// }, '获取文件'), }, '获取文件'),
// h('Button', { h('Button', {
// props: { props: {
// type: 'warning', type: 'warning',
// size: 'small' size: 'small'
// }, },
// style: { style: {
// marginRight: '5px' marginRight: '5px'
// }, },
// on: { on: {
// click: () => { click: () => {
// this.editOcrRecord(params.row) this.editOcrRecord(params.row)
// } }
// } }
// }, '编辑'), }, '编辑'),
// h('Dropdown', { h('Dropdown', {
// props: { props: {
// trigger: 'click' trigger: 'click'
// }, },
// on: { on: {
// 'on-click': (value) => {} 'on-click': (value) => {}
// } }
// }, [ }, [
// h('Button', { h('Button', {
// props: { props: {
// type: 'primary', type: 'primary',
// size: 'small' size: 'small'
// } }
// }, '更多'), }, '更多'),
// h('DropdownMenu', { h('DropdownMenu', {
// slot: 'list' slot: 'list'
// }, },
// this.dropdownItems.map(function (type) { this.dropdownItems.map(function (type) {
// return h('DropdownItem', { return h('DropdownItem', {
// props: { props: {
// name: type.val name: type.val
// } }
// }, type.val) }, type.val)
// }) })
// ) )
// ]) ])
// ]) ])
// } }
// } }
// ], ],*/
modalType: "", modalType: "",
standRecoList: [], standRecoList: [],
selectTableData: [], selectTableData: [],
@@ -759,7 +759,7 @@ export default {
(res) => { (res) => {
if (res.ok) { if (res.ok) {
this.standRecoList = res.data.list; this.standRecoList = res.data.list;
this.total = res.data.count; this.total = res.data.list.length;
} }
}, },
e => {} e => {}
@@ -638,8 +638,13 @@
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="我司署名人" prop="wssmr" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="我司署名人" prop="wssmr" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.wssmr" placeholder="请选择我司署名人" multiple> <el-select :popper-append-to-body="false" v-model="form.wssmr" placeholder="请选择我司署名人" multiple>
<el-option label="署名人1" value="1"></el-option> <el-option
<el-option label="署名人2" value="2"></el-option> v-for="item in wssmrOptions"
placeholder="请选择"
:key="item.value"
:value="item.value"
:label="item.label"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="我司参与深度" prop="cysd" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="我司参与深度" prop="cysd" class="add-form-item form-item-disabled">
@@ -711,6 +716,20 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="部分代替标准号" prop="bfbdtbzh" class="add-form-item form-item-disabled">
<el-input
v-model="form.bfbdtbzh"
placeholder="请输入部分代替标准号"
clearable
></el-input>
<el-button
type="primary"
class="common-button-primary"
size="mini"
style="position:absolute;top: 10px;right: 0;"
@click="selectLaws('bfbdtbzh'),config.attrName = '部分代替标准号'"
>{{'手动查找'}}</el-button>
</el-form-item>
<el-form-item label="引用标准" prop="yybj" class="add-form-item form-item-disabled"> <el-form-item label="引用标准" prop="yybj" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.yybj" v-model="form.yybj"
@@ -1332,6 +1351,7 @@
cbbh: '', // 采标编号 cbbh: '', // 采标编号
cbcd: '', // 采标程度 cbcd: '', // 采标程度
yybj: '', // 引用标准 yybj: '', // 引用标准
bfbdtbzh: '', // 部分代替标准号
byybj: '', // 被引用标准 byybj: '', // 被引用标准
glwj: '', // 关联文件 glwj: '', // 关联文件
xglc: '', // 相关流程 xglc: '', // 相关流程
@@ -1875,6 +1895,8 @@
this.form.yybj = this.form.yybj ? this.form.yybj + ',' +textArr.join(',') : textArr.join(',') this.form.yybj = this.form.yybj ? this.form.yybj + ',' +textArr.join(',') : textArr.join(',')
}else if(this.replaceLawType === 'cbbh'){ }else if(this.replaceLawType === 'cbbh'){
this.form.cbbh = this.form.cbbh ? this.form.cbbh + ',' +textArr.join(',') : textArr.join(',') this.form.cbbh = this.form.cbbh ? this.form.cbbh + ',' +textArr.join(',') : textArr.join(',')
}else if(this.replaceLawType === 'bfbdtbzh'){
this.form.bfbdtbzh = this.form.bfbdtbzh ? this.form.bfbdtbzh + ',' +textArr.join(',') : textArr.join(',')
}else { }else {
this.form.byybj = this.form.byybj ? this.form.byybj + ',' +textArr.join(',') : textArr.join(',') this.form.byybj = this.form.byybj ? this.form.byybj + ',' +textArr.join(',') : textArr.join(',')
} }
@@ -473,7 +473,15 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="引用标准" prop="yybj" class="add-form-item form-item-disabled"> <el-form-item label="部分代替标准号" prop="bfbdtbzh" class="add-form-item form-item-disabled">
<el-input
disabled
v-model="form.bfbdtbzh"
placeholder="请输入部分代替标准号"
clearable
></el-input>
</el-form-item>
<el-form-item label="引用标准" prop="yybj" class="add-form-item form-item-disabled">
<el-input <el-input
disabled disabled
v-model="form.yybj" v-model="form.yybj"
@@ -749,6 +757,7 @@
zqyjg: '', // 征求意见稿 zqyjg: '', // 征求意见稿
jdwj: '', // 解读文件 jdwj: '', // 解读文件
zbjbd: '', // 增补件 zbjbd: '', // 增补件
bfbdtbzh: '', // 增补件
kwj: '', // 勘误件 kwj: '', // 勘误件
caName: '', // 草案 caName: '', // 草案
fbgbjbdName: '', // 发布稿 fbgbjbdName: '', // 发布稿
@@ -466,6 +466,14 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="部分代替标准号" prop="bfbdtbzh" class="add-form-item form-item-disabled">
<el-input
disabled
v-model="form.bfbdtbzh"
placeholder="请输入部分代替标准号"
clearable
></el-input>
</el-form-item>
<el-form-item label="引用标准" prop="yybj" class="add-form-item form-item-disabled"> <el-form-item label="引用标准" prop="yybj" class="add-form-item form-item-disabled">
<el-input <el-input
disabled disabled
@@ -695,6 +695,21 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="部分代替标准号" prop="bfbdtbzh" class="add-form-item form-item-disabled">
<el-input
v-model="form.bfbdtbzh"
placeholder="请输入部分代替标准号"
clearable
></el-input>
<el-button
type="primary"
class="common-button-primary"
size="mini"
style="position:absolute;top: 10px;right: 0;"
@click="selectLaws('bfbdtbzh'),config.attrName = '部分代替标准号'"
>{{'手动查找'}}</el-button>
</el-form-item>
<el-form-item label="引用标准" prop="yybj" class="add-form-item form-item-disabled"> <el-form-item label="引用标准" prop="yybj" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.yybj" v-model="form.yybj"
@@ -1173,6 +1188,7 @@ export default {
kwj: '', // 勘误件 kwj: '', // 勘误件
caName: '', // 草案 caName: '', // 草案
fbgbjbdName: '', // 发布稿 fbgbjbdName: '', // 发布稿
bfbdtbzh: '', // 发布稿
xgdName: '', // 修改单 xgdName: '', // 修改单
bpgName: '', // 报批稿 bpgName: '', // 报批稿
ssgName: '', // 送审稿 ssgName: '', // 送审稿
@@ -1411,6 +1427,8 @@ export default {
this.form.yybj = this.form.yybj ? this.form.yybj + ',' +textArr.join(',') : textArr.join(',') this.form.yybj = this.form.yybj ? this.form.yybj + ',' +textArr.join(',') : textArr.join(',')
}else if(this.replaceLawType === 'cbbh'){ }else if(this.replaceLawType === 'cbbh'){
this.form.cbbh = this.form.cbbh ? this.form.cbbh + ',' +textArr.join(',') : textArr.join(',') this.form.cbbh = this.form.cbbh ? this.form.cbbh + ',' +textArr.join(',') : textArr.join(',')
}else if(this.replaceLawType === 'bfbdtbzh'){
this.form.bfbdtbzh = this.form.bfbdtbzh ? this.form.bfbdtbzh + ',' +textArr.join(',') : textArr.join(',')
} else { } else {
this.form.byybj = this.form.byybj ? this.form.byybj + ',' +textArr.join(',') : textArr.join(',') this.form.byybj = this.form.byybj ? this.form.byybj + ',' +textArr.join(',') : textArr.join(',')
} }
@@ -93,22 +93,23 @@
<el-table-column <el-table-column
prop="distributePerson" prop="distributePerson"
label="分发责任人"> label="分发责任人">
<!-- <template slot-scope="scope">--> <template slot-scope="scope">
<!-- <el-input--> <el-input
<!-- v-model="scope.row.distributePerson"--> v-model="scope.row.distributePerson"
<!-- placeholder="请选择分发负责人"--> placeholder="请选择分发负责人"
<!-- readonly--> readonly
<!-- @click.native="choiceZRR(scope,'distributePerson', '选择分发责任人', roleForm.distributePerson)"--> @click.native="choiceZRR(scope,'distributePerson', '选择分发责任人', roleForm.distributePerson)"
<!-- v-if="!scope.row.distributePerson"></el-input>--> v-if="!scope.row.distributePerson"></el-input>
<!-- </template>--> <span v-else>{{ scope.row.distributePerson }}</span>
<template slot-scope="scope,text" v-if="showColumn">
<div>
<div @click="choiceZRR(scope,'distributePerson', '选择分发责任人', roleForm.distributePerson)">
{{ listForm.dataList[scope.$index].distributePerson == null ? "请选择分发负责人" : listForm.dataList[scope.$index].distributePerson
}}
</div>
</div>
</template> </template>
<!-- <template slot-scope="scope,text" v-if="showColumn">-->
<!-- <div>-->
<!-- <div @click="choiceZRR(scope,'distributePerson', '选择分发责任人', roleForm.distributePerson)">-->
<!-- {{ listForm.dataList[scope.$index].distributePerson == null ? "请选择分发负责人" : listForm.dataList[scope.$index].distributePerson-->
<!-- }}-->
<!-- </div>-->
<!-- </div>-->
<!-- </template>-->
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
@@ -445,6 +446,7 @@ export default {
ListModel: false, //选择拆分标准抽屉状态 ListModel: false, //选择拆分标准抽屉状态
treeData: [], // 人员数据 treeData: [], // 人员数据
selectList: [], //选择标准的选择框 selectList: [], //选择标准的选择框
currentIndex: -1, // 当前操作行索引
isSubmit: false, isSubmit: false,
saveLoading: false, saveLoading: false,
selectedList: [], //拆分标准的选择框 selectedList: [], //拆分标准的选择框
@@ -520,19 +522,29 @@ export default {
this.listForm.certifiedEngineer = data[0].id; this.listForm.certifiedEngineer = data[0].id;
this.listForm.certifiedEngineerName = data[0].name; this.listForm.certifiedEngineerName = data[0].name;
} else if (this.type === "distributePerson") { } else if (this.type === "distributePerson") {
this.dataList.distributePersonId = data[0].id; // 如果有勾选,则视为批量选择责任人
this.dataList.distributePerson = data[0].name; if (this.selectList.length) {
this.listForm.dataList[this.dsadadadsada].distributePersonId = data[0].id; this.dataList.forEach((item, index) => {
this.listForm.dataList[this.dsadadadsada].distributePerson = data[0].name; if (this.selectList.includes(item.productLine)) {
console.log(this.dataList) const newItem = JSON.parse(JSON.stringify(item))
this.showColumn = false; newItem.distributePersonId = data[0].id
this.$nextTick(() => { newItem.distributePerson = data[0].name
this.showColumn = true; this.$set(this.dataList, index, newItem)
}); }
})
} else {
const newItem = JSON.parse(JSON.stringify(this.dataList[this.currentIndex]))
newItem.distributePersonId = data[0].id
newItem.distributePerson = data[0].name
this.$set(this.dataList, this.currentIndex, newItem)
this.listForm.dataList[this.currentIndex].distributePersonId = data[0].id;
this.listForm.dataList[this.currentIndex].distributePerson = data[0].name;
this.currentIndex = -1
}
} }
this.modalshowflag = false; this.modalshowflag = false;
}, },
cancleUserInfo() { cancelUserInfo() {
this.modalshowflag = false; this.modalshowflag = false;
}, },
//tab发生变化 //tab发生变化
@@ -561,7 +573,9 @@ export default {
//点击添加事件 //点击添加事件
addList() { addList() {
this.standModel = true; this.standModel = true;
this.$refs.projectTable.clearSelection(); this.$nextTick(() => {
this.$refs.projectTable.clearSelection();
})
}, },
// 点击批量删除事件 // 点击批量删除事件
deleteList() { deleteList() {
@@ -743,7 +757,7 @@ export default {
}, },
choiceZRR(scope, type, title, id) { choiceZRR(scope, type, title, id) {
if (scope != null) { if (scope != null) {
this.dsadadadsada = scope.$index; this.currentIndex = scope.$index;
} }
this.nodeList = []; this.nodeList = [];
this.nodeList.push(id); this.nodeList.push(id);
@@ -810,6 +824,14 @@ export default {
} }
}, },
computed: {}, computed: {},
watch: {
dataList: {
deep: true,
handler (val) {
console.log('dataList update', val)
}
}
},
mounted() { mounted() {
this.getTree(); this.getTree();
this.getProductData(); this.getProductData();
@@ -324,8 +324,6 @@ export default {
this.listForm.breakdownList = item.breakdownList this.listForm.breakdownList = item.breakdownList
}) })
}, },
//驳回事件 //驳回事件
beforeBack () { beforeBack () {
if(this.commentText === null || this.commentText === undefined || this.commentText === ''){ if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
@@ -267,16 +267,16 @@ export default {
}, },
pageChange(page) { pageChange(page) {
this.sarSarAccessEOSearch.page = page; this.sarSarAccessEOSearch.page = page;
this.searchSarAccess(); // this.searchSarAccess();
}, },
pageSizeChange(pageSize) { pageSizeChange(pageSize) {
this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent; this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent;
this.searchSarAccess(); // this.searchSarAccess();
}, },
clearSearch() { clearSearch() {
this.sarSarAccessEOSearch.countryArea = '' this.sarSarAccessEOSearch.countryArea = ''
this.sarSarAccessEOSearch.detailedListName = '' this.sarSarAccessEOSearch.detailedListName = ''
this.searchSarAccess(); // this.searchSarAccess();
}, },
// 新增相关 // 新增相关
openModal(row, optType) { openModal(row, optType) {
@@ -283,16 +283,16 @@ export default {
}, },
pageChange(page) { pageChange(page) {
this.sarSarAccessEOSearch.page = page; this.sarSarAccessEOSearch.page = page;
this.searchSarAccess(); // this.searchSarAccess();
}, },
pageSizeChange(pageSize) { pageSizeChange(pageSize) {
this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent; this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent;
this.searchSarAccess(); // this.searchSarAccess();
}, },
clearSearch() { clearSearch() {
this.sarSarAccessEOSearch.detailedList = '' this.sarSarAccessEOSearch.detailedList = ''
this.sarSarAccessEOSearch.detailedListName = '' this.sarSarAccessEOSearch.detailedListName = ''
this.searchSarAccess(); // this.searchSarAccess();
}, },
// 新增相关 // 新增相关
openModal(row, optType) { openModal(row, optType) {
@@ -283,17 +283,17 @@ export default {
}, },
pageChange(page) { pageChange(page) {
this.sarSarAccessEOSearch.page = page; this.sarSarAccessEOSearch.page = page;
this.searchSarAccess(); // this.searchSarAccess();
}, },
pageSizeChange(pageSize) { pageSizeChange(pageSize) {
this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent; this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent;
this.searchSarAccess(); // this.searchSarAccess();
}, },
//清空 //清空
clearSearch() { clearSearch() {
this.sarSarAccessEOSearch.projectName = '' this.sarSarAccessEOSearch.projectName = ''
this.sarSarAccessEOSearch.detailedListName = '' this.sarSarAccessEOSearch.detailedListName = ''
this.searchSarAccess() // this.searchSarAccess()
}, },
// 新增相关 // 新增相关
@@ -1176,6 +1176,7 @@ export default {
// this.$refs.accessTypeSelect.clearSelection() // this.$refs.accessTypeSelect.clearSelection()
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection()
this.$refs.searchTable.clearSelection() this.$refs.searchTable.clearSelection()
this.$message.warning('请勿添加重复数据')
} else{ } else{
this.sarAccessInfoList.push(item) this.sarAccessInfoList.push(item)
// this.$refs.accessTypeSelect.clearSelection() // this.$refs.accessTypeSelect.clearSelection()
@@ -1183,7 +1184,6 @@ export default {
this.$refs.searchTable.clearSelection() this.$refs.searchTable.clearSelection()
} }
}) })
this.$message.warning('请勿添加重复数据')
} else { } else {
this.$message.error('请选中需要添加到 清单条目 的(标准号/政策编号)') this.$message.error('请选中需要添加到 清单条目 的(标准号/政策编号)')
} }
@@ -1295,17 +1295,17 @@ export default {
for (let i = 0; i < this.sarAccessInfoList.length; i++) { for (let i = 0; i < this.sarAccessInfoList.length; i++) {
rowlist.push(this.sarAccessInfoList[i].id) rowlist.push(this.sarAccessInfoList[i].id)
if (this.sarAccessInfoList[i].putTime === null) { if (this.sarAccessInfoList[i].putTime === null) {
rowlist1.push(this.sarAccessInfoList[i].putTime = '') rowlist1.push(this.sarAccessInfoList[i].putTime = '-')
}else { }else {
rowlist1.push(this.sarAccessInfoList[i].putTime.toString()) rowlist1.push(this.sarAccessInfoList[i].putTime.toString())
} }
if (this.sarAccessInfoList[i].xcxssrqgj === null) { if (this.sarAccessInfoList[i].xcxssrqgj === null) {
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj = '') rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj = '-')
}else { }else {
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj.toString()) rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj.toString())
} }
if (this.sarAccessInfoList[i].zccssrqgj === null) { if (this.sarAccessInfoList[i].zccssrqgj === null) {
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj = '') rowlist2.push(this.sarAccessInfoList[i].zccssrqgj = '-')
}else { }else {
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj.toString()) rowlist2.push(this.sarAccessInfoList[i].zccssrqgj.toString())
} }
@@ -381,7 +381,7 @@ export default {
heightShow: true, heightShow: true,
dataLoading: false, dataLoading: false,
standardForm: { standardForm: {
zrbm: '',
standNumber: "", standNumber: "",
standName: "", standName: "",
responseUnit: "", responseUnit: "",
@@ -389,6 +389,10 @@ export default {
Size: this.$store.getters.userInfo.configContent Size: this.$store.getters.userInfo.configContent
}, },
standardFormList: { standardFormList: {
zrbm: '',
typeApplicable: '',
nylx: '',
sycpx: '',
standNumber: '', standNumber: '',
standName: '', standName: '',
responseUnit: '', responseUnit: '',
@@ -493,8 +497,14 @@ export default {
}, },
// 重置搜索 // 重置搜索
resetSelect() { resetSelect() {
this.standardForm.zrbm = ''
this.standardForm.standName = '' this.standardForm.standName = ''
this.standardForm.responseUnit = '' this.standardForm.responseUnit = ''
this.standardFormList.standName = ''
this.standardFormList.typeApplicable = ''
this.standardFormList.nylx = ''
this.standardFormList.zrbm = ''
this.standardFormList.sycpx = ''
this.selectInfobyAccid() this.selectInfobyAccid()
}, },
exportStandard() { exportStandard() {
@@ -1145,6 +1145,7 @@ export default {
// this.$refs.accessTypeSelect.clearSelection() // this.$refs.accessTypeSelect.clearSelection()
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection()
this.$refs.searchTable.clearSelection() this.$refs.searchTable.clearSelection()
this.$message.warning('请勿添加重复数据')
} else{ } else{
this.sarAccessInfoList.push(item) this.sarAccessInfoList.push(item)
// this.$refs.accessTypeSelect.clearSelection() // this.$refs.accessTypeSelect.clearSelection()
@@ -1152,7 +1153,6 @@ export default {
this.$refs.searchTable.clearSelection() this.$refs.searchTable.clearSelection()
} }
}) })
this.$message.warning('请勿添加重复数据')
this.selectedAccInfoSearchList = [] this.selectedAccInfoSearchList = []
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection()
this.$refs.searchTable.clearSelection() this.$refs.searchTable.clearSelection()
@@ -1264,17 +1264,17 @@ export default {
for (let i = 0; i < this.sarAccessInfoList.length; i++) { for (let i = 0; i < this.sarAccessInfoList.length; i++) {
rowlist.push(this.sarAccessInfoList[i].id) rowlist.push(this.sarAccessInfoList[i].id)
if (this.sarAccessInfoList[i].putTime === null) { if (this.sarAccessInfoList[i].putTime === null) {
rowlist1.push(this.sarAccessInfoList[i].putTime = '') rowlist1.push(this.sarAccessInfoList[i].putTime = '-')
}else { }else {
rowlist1.push(this.sarAccessInfoList[i].putTime.toString()) rowlist1.push(this.sarAccessInfoList[i].putTime.toString())
} }
if (this.sarAccessInfoList[i].xcxssrqgj === null) { if (this.sarAccessInfoList[i].xcxssrqgj === null) {
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj = '') rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj = '-')
}else { }else {
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj.toString()) rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj.toString())
} }
if (this.sarAccessInfoList[i].zccssrqgj === null) { if (this.sarAccessInfoList[i].zccssrqgj === null) {
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj = '') rowlist2.push(this.sarAccessInfoList[i].zccssrqgj = '-')
}else { }else {
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj.toString()) rowlist2.push(this.sarAccessInfoList[i].zccssrqgj.toString())
} }
@@ -1144,6 +1144,7 @@ export default {
// this.$refs.accessTypeSelect.clearSelection() // this.$refs.accessTypeSelect.clearSelection()
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection()
this.$refs.searchTable.clearSelection() this.$refs.searchTable.clearSelection()
this.$message.warning('请勿添加重复数据')
} else{ } else{
this.sarAccessInfoList.push(item) this.sarAccessInfoList.push(item)
// this.$refs.accessTypeSelect.clearSelection() // this.$refs.accessTypeSelect.clearSelection()
@@ -1151,7 +1152,6 @@ export default {
this.$refs.searchTable.clearSelection() this.$refs.searchTable.clearSelection()
} }
}) })
this.$message.warning('请勿添加重复数据')
this.selectedAccInfoSearchList = [] this.selectedAccInfoSearchList = []
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection()
this.$refs.searchTable.clearSelection() this.$refs.searchTable.clearSelection()
@@ -1263,17 +1263,17 @@ export default {
for (let i = 0; i < this.sarAccessInfoList.length; i++) { for (let i = 0; i < this.sarAccessInfoList.length; i++) {
rowlist.push(this.sarAccessInfoList[i].id) rowlist.push(this.sarAccessInfoList[i].id)
if (this.sarAccessInfoList[i].putTime === null) { if (this.sarAccessInfoList[i].putTime === null) {
rowlist1.push(this.sarAccessInfoList[i].putTime = '') rowlist1.push(this.sarAccessInfoList[i].putTime = '-')
}else { }else {
rowlist1.push(this.sarAccessInfoList[i].putTime.toString()) rowlist1.push(this.sarAccessInfoList[i].putTime.toString())
} }
if (this.sarAccessInfoList[i].xcxssrqgj === null) { if (this.sarAccessInfoList[i].xcxssrqgj === null) {
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj = '') rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj = '-')
}else { }else {
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj.toString()) rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj.toString())
} }
if (this.sarAccessInfoList[i].zccssrqgj === null) { if (this.sarAccessInfoList[i].zccssrqgj === null) {
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj = '') rowlist2.push(this.sarAccessInfoList[i].zccssrqgj = '-')
}else { }else {
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj.toString()) rowlist2.push(this.sarAccessInfoList[i].zccssrqgj.toString())
} }
@@ -448,6 +448,7 @@
:class="field.attrField === 'BYYBJ' ? 'classDisplay' : ''" :class="field.attrField === 'BYYBJ' ? 'classDisplay' : ''"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
@popoverHide="popoverHideQuery"
></custom-input-for-standards> ></custom-input-for-standards>
</template> </template>
<template v-else-if="field.attrField === 'CYCVPPSBM'"> <template v-else-if="field.attrField === 'CYCVPPSBM'">
@@ -1698,6 +1699,8 @@ export default {
svpps: '', // 关联模块-VPPS编码 svpps: '', // 关联模块-VPPS编码
replaceStandNum: '', // 代替标准号 replaceStandNum: '', // 代替标准号
replacedStandNum: '', // 被代替标准号 replacedStandNum: '', // 被代替标准号
replacePartStandNum: '', // 代替标准号
replacedPartStandNum: '', // 被代替标准号
citeStand: '', // 引用标准 citeStand: '', // 引用标准
citedStand: '', // 被引用标准 citedStand: '', // 被引用标准
synopsis: '', // 内容摘要 synopsis: '', // 内容摘要
@@ -1744,6 +1747,8 @@ export default {
standNature: '', standNature: '',
replaceStandNum: '', replaceStandNum: '',
replacedStandNum: '', replacedStandNum: '',
replacePartStandNum: '', // 代替标准号
replacedPartStandNum: '', // 被代替标准号
interStandNum: '', interStandNum: '',
adoptExtent: '', adoptExtent: '',
emergyKind: '', emergyKind: '',
@@ -1814,10 +1819,12 @@ export default {
standState: '', standState: '',
standNature: '', standNature: '',
replaceStandNum: '', replaceStandNum: '',
replacePartStandNum: '',
replaceStandNumId: '', replaceStandNumId: '',
// replaceStandNumCope: '', // replaceStandNumCope: '',
replaceStandNumList: [], replaceStandNumList: [],
replacedStandNum: '', replacedStandNum: '',
replacedPartStandNum: '',
interStandNum: '', interStandNum: '',
adoptExtent: '', adoptExtent: '',
emergyKind: '', emergyKind: '',
@@ -2161,6 +2168,8 @@ export default {
synopsis: '', synopsis: '',
// replaceStandNumCope: '', // replaceStandNumCope: '',
replacedStandNum: '', replacedStandNum: '',
replacePartStandNum: '', // 代替标准号
replacedPartStandNum: '', // 被代替标准号
orderBy:'', orderBy:'',
nowOrder: '', nowOrder: '',
nowOrderBy: '', nowOrderBy: '',
@@ -2223,6 +2232,11 @@ export default {
this.url="sarModelTree/list" this.url="sarModelTree/list"
this.urlChild="sarModelTree/childByList" this.urlChild="sarModelTree/childByList"
}, },
popoverHideQuery(ids,attrField){
console.log(ids)
console.log("-----------------------------")
console.log(attrField)
},
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) { popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) { if(checkedData) {
if(checkedData.length > 0){ if(checkedData.length > 0){
@@ -2742,6 +2756,8 @@ export default {
this.sarStandardsSearch.applyArctic = '' this.sarStandardsSearch.applyArctic = ''
this.sarStandardsSearch.replaceStandNum = '' this.sarStandardsSearch.replaceStandNum = ''
this.sarStandardsSearch.replacedStandNum = '' this.sarStandardsSearch.replacedStandNum = ''
this.sarStandardsSearch.replacePartStandNum = ''
this.sarStandardsSearch.replacedPartStandNum = ''
this.sarStandardsSearch.synopsis = '' this.sarStandardsSearch.synopsis = ''
this.sarStandardsSearch.category = '' this.sarStandardsSearch.category = ''
this.pageChange(1) this.pageChange(1)
@@ -4035,6 +4051,8 @@ export default {
this.sarConfigStandSearch.applyArctic = '' this.sarConfigStandSearch.applyArctic = ''
this.sarConfigStandSearch.replaceStandNum = '' this.sarConfigStandSearch.replaceStandNum = ''
this.sarConfigStandSearch.replacedStandNum = '' this.sarConfigStandSearch.replacedStandNum = ''
this.sarStandardsSearch.replacePartStandNum = ''
this.sarStandardsSearch.replacedPartStandNum = ''
this.selectConfiguraStand() this.selectConfiguraStand()
} }
} }
@@ -94,7 +94,7 @@
width="190px" width="190px"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="margin-left: 10px">{{scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format('YYYY-MM-DD') : '-' }}</span> <span style="margin-left: 10px">{{scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format('YYYY-MM-DD') : '-' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -103,7 +103,7 @@
width="190px" width="190px"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format('YYYY-MM-DD') : '-' }}</span> <span style="margin-left: 10px">{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format('YYYY-MM-DD') : '-' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -111,6 +111,11 @@
label="责任部门" label="责任部门"
width="180px" width="180px"
> >
<template slot-scope="scope">
<span style="margin-left: 10px">
{{zrbmMap[scope.row.zrbm]}}
</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
@@ -231,16 +236,31 @@
<el-table-column <el-table-column
prop="xcxssrq" prop="xcxssrq"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span style="margin-left: 10px">
{{scope.row.attrInfoCaseMap.xcxssrq ? $moment(scope.row.attrInfoCaseMap.xcxssrq).format('YYYY-MM-DD') : '-'}}
</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="zccssrq" prop="zccssrq"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span style="margin-left: 10px">
{{scope.row.attrInfoCaseMap.zccssrq ? $moment(scope.row.attrInfoCaseMap.zccssrq).format('YYYY-MM-DD') : '-'}}
</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="textStatus" prop="textStatus"
label="文本状态"> label="文本状态">
<template slot-scope="scope">
<span style="margin-left: 10px">
{{textStatusMap[scope.row.textStatus]}}
</span>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
@@ -312,6 +332,8 @@ export default {
standList1:[],//调取添加的数据 standList1:[],//调取添加的数据
id:'',//批量删除. id:'',//批量删除.
saveExportType: '',// 导出文件模态框控制,和文件名称 saveExportType: '',// 导出文件模态框控制,和文件名称
zrbmMap: {},
textStatusMap: {} // 文本状态id与name对应
} }
}, },
methods: { methods: {
@@ -596,17 +618,21 @@ export default {
} else if (this.saveExportType === 'all') { } else if (this.saveExportType === 'all') {
console.log(this.selectList); console.log(this.selectList);
let ids = '' let ids = ''
if (this.selectList.length === 0) { if (this.dataList.length === 0) {
ids='\''+this.dataList[0].standId+'\'' this.$message.error('暂无导出数据')
for(let i=1;i<this.dataList.length;i++){ }else{
ids+=',\''+this.dataList[i].standId+'\'' if (this.selectList.length === 0) {
ids='\''+this.dataList[0].standId+'\''
for(let i=1;i<this.dataList.length;i++){
ids+=',\''+this.dataList[i].standId+'\''
}
} }
} const exportURL = interfaceUrl + 'sarStandProjectLibrary/exportStandAttrInfoExcel?' +
const exportURL = interfaceUrl + 'sarStandProjectLibrary/exportStandAttrInfoExcel?' +
'exportType' + this.saveExportType + '&ids=' + ids + '&exportName=' + this.exportName + '&id=' + this.localProEO.id 'exportType' + this.saveExportType + '&ids=' + ids + '&exportName=' + this.exportName + '&id=' + this.localProEO.id
console.log(exportURL) console.log(exportURL)
window.open(exportURL) window.open(exportURL)
this.$message.success('导出信息成功') this.$message.success('导出信息成功')
}
} }
this.exportModelFlag = false this.exportModelFlag = false
}, },
@@ -625,6 +651,12 @@ export default {
standSelectChange(val) { standSelectChange(val) {
this.selectList = val; this.selectList = val;
},//选项值发生改变 },//选项值发生改变
// 将文本状态的id与name对应
setMap(key,data){
data.forEach(item => {
this.$set(key, item.value, item.label)
})
}
}, },
computed: { computed: {
...mapGetters(['getLocalPro']) ...mapGetters(['getLocalPro'])
@@ -645,6 +677,8 @@ export default {
loading: 'loading' loading: 'loading'
}, res => { }, res => {
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别 this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
this.setMap(this.zrbmMap,res.data.ZRBMCLASS)
this.setMap(this.textStatusMap,res.data.WBZTCLASS)
this.showLocalProductData(this.getLocalPro) this.showLocalProductData(this.getLocalPro)
}, e => { }, e => {
}) })