参数项收集清单-增加修改责任领域
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
<span
|
<span
|
||||||
v-if='record.state == "待发起收集" || record.state == "工程接口人退回" || record.state == "变更" || record.state == "Wait Collect" || record.state == "Sdt Back" || record.state == "Change"'>
|
v-if='record.state == "待发起收集" || record.state == "工程接口人退回" || record.state == "变更" || record.state == "Wait Collect" || record.state == "Sdt Back" || record.state == "Change"'>
|
||||||
<span
|
<span
|
||||||
@click='ondataValueTobeinitiated(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>
|
@click='areaOfResponsibility(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
<span @click='dataValueTobeinitiated(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>
|
<span @click='dataValueTobeinitiated(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>
|
||||||
@@ -41,6 +41,23 @@
|
|||||||
<span @click='dataValueTobeinitiated(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>
|
<span @click='dataValueTobeinitiated(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
<span slot="operationzr" slot-scope="record">
|
||||||
|
<span v-if='currentPersonRole === "homo"'>
|
||||||
|
<!-- 认证工程师 -->
|
||||||
|
<span
|
||||||
|
v-if='record.state == "待发起收集" || record.state == "工程接口人退回"'>
|
||||||
|
<span
|
||||||
|
@click='ondataValueTobe(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue }}</span>
|
||||||
|
</span>
|
||||||
|
<span v-else>
|
||||||
|
<span @click='dataValueTobe(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue }}</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
<span v-else>
|
||||||
|
<span @click='dataValueTobe(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue }}</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
|
||||||
<span slot="detailClick" slot-scope="text,record">
|
<span slot="detailClick" slot-scope="text,record">
|
||||||
<collection-type :detailDate='text'/>
|
<collection-type :detailDate='text'/>
|
||||||
</span>
|
</span>
|
||||||
@@ -95,6 +112,46 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
|
<!-- 修改责任领域--->
|
||||||
|
<a-modal v-model="areaVisiblezr" :title="$t('areaOfResponsibility')" width='620px' :footer="null"
|
||||||
|
@cancel="cancel">
|
||||||
|
<a-form-model
|
||||||
|
class='tag-module'
|
||||||
|
ref='ruleForm'
|
||||||
|
:model='Dateline'
|
||||||
|
:rules='rules'
|
||||||
|
:label-col='labelCol'
|
||||||
|
:wrapper-col='wrapperCol'
|
||||||
|
|
||||||
|
>
|
||||||
|
<a-row :gutter='24'>
|
||||||
|
<a-col :span='24'>
|
||||||
|
<a-form-model-item ref='region' :label="$t('areaOfResponsibility')" prop='queryzr'>
|
||||||
|
<!-- <a-select allowClear :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"-->
|
||||||
|
<!-- v-model="Dateline.querySdt">-->
|
||||||
|
<!-- <a-select-option v-for="(item, key) in querySdtList" :key="key" :value="item.value">-->
|
||||||
|
<!-- <span style="display: inline-block;width: 100%" :title=" item.label ">-->
|
||||||
|
<!-- {{ item.label }}-->
|
||||||
|
<!-- </span>-->
|
||||||
|
<!-- </a-select-option>-->
|
||||||
|
<!-- </a-select>-->
|
||||||
|
<j-dict-select-tag class="box-input" v-model="Dateline.queryzr"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'duty_territory'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-form-model>
|
||||||
|
<div class="imports-footer">
|
||||||
|
<div class="imports-footer-wrap">
|
||||||
|
|
||||||
|
<a-button class="imports-btn imports-sub" type="primary" @click="handleSubmitzr">{{$t('preservation')}}
|
||||||
|
</a-button>
|
||||||
|
<a-button class="imports-btn" type="primary" @click="cancel">{{$t('cancel')}}</a-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a-modal>
|
||||||
<!-- 配置信息--->
|
<!-- 配置信息--->
|
||||||
<a-modal v-model="areaVisibleView" :title="$t('configurationInformation')" width='550px' :footer="null">
|
<a-modal v-model="areaVisibleView" :title="$t('configurationInformation')" width='550px' :footer="null">
|
||||||
<div class="content-text">
|
<div class="content-text">
|
||||||
@@ -236,6 +293,7 @@
|
|||||||
sdt: 0, // 工程接口人
|
sdt: 0, // 工程接口人
|
||||||
dre: 0, // 填写人
|
dre: 0, // 填写人
|
||||||
areaVisible: false,
|
areaVisible: false,
|
||||||
|
areaVisiblezr:false,
|
||||||
form: {},
|
form: {},
|
||||||
rules: {
|
rules: {
|
||||||
querySdt: [
|
querySdt: [
|
||||||
@@ -244,6 +302,13 @@
|
|||||||
message: this.$t('PleaseSelect') + this.$t('engineeringInterfacePerson'),
|
message: this.$t('PleaseSelect') + this.$t('engineeringInterfacePerson'),
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
queryzr: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('PleaseSelect') + this.$t('areaOfResponsibility'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
wrapperCol: {
|
wrapperCol: {
|
||||||
@@ -346,6 +411,44 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 责任领域 保存
|
||||||
|
handleSubmitzr(record) {
|
||||||
|
let _this = this
|
||||||
|
let param = { dutyTerritory: this.Dateline.queryzr, ids: this.getquerySdtId,paramsManifestId: this.$route.query.id, }
|
||||||
|
this.$refs.ruleForm.validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
axios({
|
||||||
|
url: '/jero-boot/params/collectManifest/updateDutyTerritory',
|
||||||
|
method: 'post',
|
||||||
|
data: param,
|
||||||
|
transformRequest: [function(data) {
|
||||||
|
let ret = ''
|
||||||
|
for (let it in data) {
|
||||||
|
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||||
|
}
|
||||||
|
return ret
|
||||||
|
}],
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
'X-Access-Token': _this.token
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
console.log(res)
|
||||||
|
if (res.data.success) {
|
||||||
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
|
_this.areaVisiblezr = false
|
||||||
|
this.getTableList()
|
||||||
|
} else {
|
||||||
|
_this.$message.warning(_this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.log(error)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
// 工程接口人 保存
|
// 工程接口人 保存
|
||||||
handleSubmit(record) {
|
handleSubmit(record) {
|
||||||
let _this = this
|
let _this = this
|
||||||
@@ -389,8 +492,12 @@
|
|||||||
this.areaVisible = false
|
this.areaVisible = false
|
||||||
this.$refs['ruleForm'].resetFields()
|
this.$refs['ruleForm'].resetFields()
|
||||||
},
|
},
|
||||||
|
cancel(){
|
||||||
|
this.areaVisiblezr = false
|
||||||
|
this.$refs['ruleForm'].resetFields()
|
||||||
|
},
|
||||||
// 点击工程接口人的详情人员 有权限
|
// 点击工程接口人的详情人员 有权限
|
||||||
ondataValueTobeinitiated(record) {
|
areaOfResponsibility(record) {
|
||||||
this.areaVisible = true
|
this.areaVisible = true
|
||||||
// this.$refs.ruleForm.clearValidate()
|
// this.$refs.ruleForm.clearValidate()
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@@ -399,9 +506,22 @@
|
|||||||
this.$refs.ruleForm.clearValidate()
|
this.$refs.ruleForm.clearValidate()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 点击责任领域的详情人员 有权限
|
||||||
|
ondataValueTobe(record) {
|
||||||
|
this.areaVisiblezr = true
|
||||||
|
// this.$refs.ruleForm.clearValidate()
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.Dateline = { ...this.Dateline }
|
||||||
|
this.getquerySdtId = record.id
|
||||||
|
this.$refs.ruleForm.clearValidate()
|
||||||
|
})
|
||||||
|
},
|
||||||
dataValueTobeinitiated() {
|
dataValueTobeinitiated() {
|
||||||
this.$message.warning(this.$t('certifiedEngineer') + this.$t('and') + this.$t('Statusis') + this.$t('CollectionInitiated') + this.$t('ReturnedPerson') + this.$t('alteration') + this.$t('toHavePermission'))
|
this.$message.warning(this.$t('certifiedEngineer') + this.$t('and') + this.$t('Statusis') + this.$t('CollectionInitiated') + this.$t('ReturnedPerson') + this.$t('alteration') + this.$t('toHavePermission'))
|
||||||
},
|
},
|
||||||
|
dataValueTobe() {
|
||||||
|
this.$message.warning(this.$t('certifiedEngineer') + this.$t('and') + this.$t('Statusis') + this.$t('CollectionInitiated') + this.$t('ReturnedPerson') + this.$t('toHavePermission'))
|
||||||
|
},
|
||||||
// 点击工程接口人的详情人员 无权限
|
// 点击工程接口人的详情人员 无权限
|
||||||
ondataValueNot() {
|
ondataValueNot() {
|
||||||
this.$message.warning(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
@@ -491,9 +611,15 @@
|
|||||||
sorter: res.sort,
|
sorter: res.sort,
|
||||||
width: 160
|
width: 160
|
||||||
})
|
})
|
||||||
|
console.log(res)
|
||||||
this.columns[index].scopedSlots = {
|
this.columns[index].scopedSlots = {
|
||||||
customRender: 'titleName'
|
customRender: 'titleName'
|
||||||
}
|
}
|
||||||
|
if(res.click1){
|
||||||
|
this.columns[index].scopedSlots = {
|
||||||
|
customRender: 'operationzr'
|
||||||
|
}
|
||||||
|
}
|
||||||
if (res.click) {
|
if (res.click) {
|
||||||
// 工程接口人列表修改
|
// 工程接口人列表修改
|
||||||
this.columns[index].scopedSlots = {
|
this.columns[index].scopedSlots = {
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
<div class="title-text" :title="$t('newNiONumber')">
|
<div class="title-text" :title="$t('newNiONumber')">
|
||||||
<span>{{$t('newNiONumber')}}</span>
|
<span>{{$t('newNiONumber')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('newNiONumber')"
|
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('newNiONumber')"
|
||||||
v-model="formInline.nioNumber"></a-input>
|
v-model="formInline.nioNumber"></j-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
<div class="title-text" :title="$t('ParameterName')">
|
<div class="title-text" :title="$t('ParameterName')">
|
||||||
<span>{{$t('ParameterName')}}</span>
|
<span>{{$t('ParameterName')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('ParameterName')"
|
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('ParameterName')"
|
||||||
v-model="formInline.paramsName"></a-input>
|
v-model="formInline.paramsName"></j-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- <a-col :md="6" :sm="8">-->
|
<!-- <a-col :md="6" :sm="8">-->
|
||||||
@@ -60,8 +60,8 @@
|
|||||||
<div class="title-text" :title="$t('completedBy')">
|
<div class="title-text" :title="$t('completedBy')">
|
||||||
<span>{{$t('completedBy')}}</span>
|
<span>{{$t('completedBy')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('completedBy')"
|
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('completedBy')"
|
||||||
v-model="formInline.dre"></a-input>
|
v-model="formInline.dre"></j-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- <a-col :md="6" :sm="8">-->
|
<!-- <a-col :md="6" :sm="8">-->
|
||||||
@@ -87,7 +87,9 @@
|
|||||||
<span style="float: right;overflow: hidden;margin-right: 11px"
|
<span style="float: right;overflow: hidden;margin-right: 11px"
|
||||||
class="table-page-search-submitButtons">
|
class="table-page-search-submitButtons">
|
||||||
<a-col :md="6" :sm="24">
|
<a-col :md="6" :sm="24">
|
||||||
|
<!-- v-if="this.$route.query.it === undefined"-->
|
||||||
<globalAdvancedQuery ref="globalAdvancedQueryRef"
|
<globalAdvancedQuery ref="globalAdvancedQueryRef"
|
||||||
|
|
||||||
@handleSuperQuery="handleSuperQuery"
|
@handleSuperQuery="handleSuperQuery"
|
||||||
:fieldList="fieldList"/>
|
:fieldList="fieldList"/>
|
||||||
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
||||||
|
|||||||
Reference in New Issue
Block a user