批量设置 申请重新匹配 确认 退回对接接口
This commit is contained in:
@@ -1948,4 +1948,5 @@ module.exports = {
|
|||||||
tobematched:'To be matched',
|
tobematched:'To be matched',
|
||||||
Pendingapproval:'To be approved',
|
Pendingapproval:'To be approved',
|
||||||
lock:'lock',
|
lock:'lock',
|
||||||
|
datacannotbeedited:'This data cannot be edited',
|
||||||
}
|
}
|
||||||
@@ -3904,4 +3904,5 @@ module.exports = {
|
|||||||
tobematched:'待匹配',
|
tobematched:'待匹配',
|
||||||
Pendingapproval:'待审批',
|
Pendingapproval:'待审批',
|
||||||
lock:'锁定',
|
lock:'锁定',
|
||||||
|
datacannotbeedited:'该数据不能进行编辑',
|
||||||
}
|
}
|
||||||
@@ -31,12 +31,12 @@
|
|||||||
:placeholder="$t('PleaseSelect')+$t('projectVersion')">
|
:placeholder="$t('PleaseSelect')+$t('projectVersion')">
|
||||||
<!-- <a-select-option :value="null">{{$t('pleaseSelect')}}</a-select-option>-->
|
<!-- <a-select-option :value="null">{{$t('pleaseSelect')}}</a-select-option>-->
|
||||||
<a-select-option v-for="(item, key) in projectVersionList"
|
<a-select-option v-for="(item, key) in projectVersionList"
|
||||||
|
:label='item.versionName'
|
||||||
:key="key"
|
:key="key"
|
||||||
:label="item"
|
:value="item.projectId">
|
||||||
:value="item">
|
<span style="display: inline-block;width: 100%" :title=" item.versionName">
|
||||||
<span class="itemOption" :title=" item ">
|
{{ item.versionName }}
|
||||||
{{ item }}
|
</span>
|
||||||
</span>
|
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -100,14 +100,24 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
edit(row) {
|
edit(row,vehicleTypeCode) {
|
||||||
this.ids = row
|
this.ids = row
|
||||||
|
this.vehicleTypeCode = vehicleTypeCode
|
||||||
|
this.getprojectList()
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
this.$refs.ruleForm.clearValidate()
|
this.$refs.ruleForm.clearValidate()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getprojectList(){
|
||||||
|
getAction('/ota/otaManageApplyEO/getProjectVersionList', {carMarket:this.vehicleTypeCode}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.projectVersionList = res.result
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
handleOk() {
|
handleOk() {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@@ -116,17 +126,17 @@ export default {
|
|||||||
ids:this.ids
|
ids:this.ids
|
||||||
}
|
}
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
// postAction('ota/otaBaSjList/batchRecord', query).then((res) => {
|
getAction('/ota/otaManageApplyEO/applyRematch', query).then((res) => {
|
||||||
// if (res.success) {
|
if (res.success) {
|
||||||
// this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
// this.visible = false
|
this.visible = false
|
||||||
// this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
// this.$emit('getList')
|
this.$emit('getList')
|
||||||
// } else {
|
} else {
|
||||||
// this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
// this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -31,12 +31,12 @@
|
|||||||
:placeholder="$t('PleaseSelect')+$t('projectVersion')">
|
:placeholder="$t('PleaseSelect')+$t('projectVersion')">
|
||||||
<!-- <a-select-option :value="null">{{$t('pleaseSelect')}}</a-select-option>-->
|
<!-- <a-select-option :value="null">{{$t('pleaseSelect')}}</a-select-option>-->
|
||||||
<a-select-option v-for="(item, key) in projectVersionList"
|
<a-select-option v-for="(item, key) in projectVersionList"
|
||||||
|
:label='item.versionName'
|
||||||
:key="key"
|
:key="key"
|
||||||
:label="item"
|
:value="item.projectId">
|
||||||
:value="item">
|
<span style="display: inline-block;width: 100%" :title=" item.versionName">
|
||||||
<span class="itemOption" :title=" item ">
|
{{ item.versionName }}
|
||||||
{{ item }}
|
</span>
|
||||||
</span>
|
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
{{$t('CertificationProgress')}}</span>
|
{{$t('CertificationProgress')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="bazt">
|
<a-form-model-item class="itemModel" prop="bazt">
|
||||||
<j-dict-select-tag class="box-input" v-model="formInline.certificationProgress"
|
<j-dict-select-tag class="box-input" v-model="formInline.attestationSchedule"
|
||||||
:placeholder="$t('PleaseSelect')+$t('CertificationProgress')"
|
:placeholder="$t('PleaseSelect')+$t('CertificationProgress')"
|
||||||
:type="'select'"
|
:type="'select'"
|
||||||
style="width: 90%"
|
style="width: 90%"
|
||||||
@@ -69,8 +69,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="bz">
|
<a-form-model-item class="itemModel" prop="bz">
|
||||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('remarks')"
|
<a-textarea :placeholder="$t('pleaseEnter')+$t('remarks')"
|
||||||
v-model="formInline.bz"
|
v-model="formInline.remark"
|
||||||
style="width: 90%"
|
style="width: 90%"
|
||||||
|
:maxLength="200"
|
||||||
:rows="4"/>
|
:rows="4"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -127,20 +128,31 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// ],
|
// ],
|
||||||
},
|
},
|
||||||
ids: ''
|
ids: '',
|
||||||
|
vehicleTypeCode:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
edit(row) {
|
edit(row,vehicleTypeCode) {
|
||||||
this.ids = row
|
this.ids = row
|
||||||
|
this.vehicleTypeCode = vehicleTypeCode
|
||||||
|
this.getprojectList()
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
this.$refs.ruleForm.clearValidate()
|
this.$refs.ruleForm.clearValidate()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getprojectList(){
|
||||||
|
getAction('/ota/otaManageApplyEO/getProjectVersionList', {carMarket:this.vehicleTypeCode}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.projectVersionList = res.result
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
handleOk() {
|
handleOk() {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@@ -149,17 +161,17 @@ export default {
|
|||||||
ids:this.ids
|
ids:this.ids
|
||||||
}
|
}
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
// postAction('ota/otaBaSjList/batchRecord', query).then((res) => {
|
postAction('/ota/otaManageApplyEO/updateVdrBatch', query).then((res) => {
|
||||||
// if (res.success) {
|
if (res.success) {
|
||||||
// this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
// this.visible = false
|
this.visible = false
|
||||||
// this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
// this.$emit('getList')
|
this.$emit('getList')
|
||||||
// } else {
|
} else {
|
||||||
// this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
// this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1039,8 +1039,19 @@ export default {
|
|||||||
// 批量设置
|
// 批量设置
|
||||||
BatchSetting(){
|
BatchSetting(){
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
let content = []
|
let disabledList = []
|
||||||
this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)))
|
this.selectedRowKeysRecord.forEach(item => {
|
||||||
|
if(item.disabled){
|
||||||
|
disabledList.push(item.disabled)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const index = disabledList.indexOf(true);
|
||||||
|
console.log(index)
|
||||||
|
if (index !== -1) {
|
||||||
|
this.$message.warning(this.$t('datacannotbeedited'))
|
||||||
|
} else {
|
||||||
|
this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)),this.vehicleTypeCode)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
@@ -1056,10 +1067,10 @@ export default {
|
|||||||
})
|
})
|
||||||
const index = statusList.indexOf('locked');
|
const index = statusList.indexOf('locked');
|
||||||
console.log(index)
|
console.log(index)
|
||||||
if (index !== -1) {
|
if (index == -1) {
|
||||||
this.$message.warning(this.$t('selectlocked'))
|
this.$message.warning(this.$t('selectlocked'))
|
||||||
} else {
|
} else {
|
||||||
this.$refs.applyforrematchRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)))
|
this.$refs.applyforrematchRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)),this.vehicleTypeCode)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
@@ -1155,7 +1166,17 @@ export default {
|
|||||||
// 确认
|
// 确认
|
||||||
confirm(){
|
confirm(){
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
// this.$refs.rejectReasonRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)))
|
let query = {
|
||||||
|
ids:this.selectedRowKeys
|
||||||
|
}
|
||||||
|
getAction('/ota/otaManageApplyEO/confirm', query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.getList()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('rejectReason')"
|
<a-textarea :placeholder="$t('pleaseEnter')+$t('rejectReason')"
|
||||||
v-model="formInline.rejectReason"
|
v-model="formInline.rejectReason"
|
||||||
style="width: 90%"
|
style="width: 90%"
|
||||||
|
:maxLength="200"
|
||||||
:rows="4"/>
|
:rows="4"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -84,9 +85,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
edit(row) {
|
edit(row) {
|
||||||
if(row){
|
this.ids = row
|
||||||
this.ids = row
|
|
||||||
}
|
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
@@ -101,17 +100,17 @@ export default {
|
|||||||
ids:this.ids
|
ids:this.ids
|
||||||
}
|
}
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
// postAction('ota/otaBaSjList/batchRecord', query).then((res) => {
|
getAction('/ota/otaManageApplyEO/reject', query).then((res) => {
|
||||||
// if (res.success) {
|
if (res.success) {
|
||||||
// this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
// this.visible = false
|
this.visible = false
|
||||||
// this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
// this.$emit('getList')
|
this.$emit('getList')
|
||||||
// } else {
|
} else {
|
||||||
// this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
// this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user