|
|
|
|
@ -18,8 +18,15 @@ |
|
|
|
|
@sort-change="sortChange" |
|
|
|
|
> |
|
|
|
|
<template #menu-left> |
|
|
|
|
<el-button type="primary" @click="complianceCheck()">合规校验</el-button> |
|
|
|
|
<el-button type="primary" @click="claseOrder()" >关闭订单</el-button> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@click="complianceCheck()" |
|
|
|
|
v-if="permission.exception_compliance_check" |
|
|
|
|
>合规校验</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="primary" @click="claseOrder()" v-if="permission.exception_close_order" |
|
|
|
|
>关闭订单</el-button |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
<template #menu-right> </template> |
|
|
|
|
|
|
|
|
|
@ -71,9 +78,19 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { getList, closeBatchs,verificationData,updateData } from '@/api/orderManagement/exceptionOrder'; |
|
|
|
|
import { |
|
|
|
|
getList, |
|
|
|
|
closeBatchs, |
|
|
|
|
verificationData, |
|
|
|
|
updateData, |
|
|
|
|
} from '@/api/orderManagement/exceptionOrder'; |
|
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
|
export default { |
|
|
|
|
components: {}, |
|
|
|
|
computed: { |
|
|
|
|
...mapGetters(['permission']), |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
isOpen: false, |
|
|
|
|
@ -382,7 +399,7 @@ export default { |
|
|
|
|
dicUrl: '/api/blade-desk/BA/ProdMark/listForSelect', |
|
|
|
|
props: { |
|
|
|
|
label: 'name', |
|
|
|
|
value:'name' |
|
|
|
|
value: 'name', |
|
|
|
|
}, |
|
|
|
|
rules: [ |
|
|
|
|
{ |
|
|
|
|
@ -654,9 +671,9 @@ export default { |
|
|
|
|
rowUpdate(row, index, done, loading) { |
|
|
|
|
updateData(row).then(res => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.$message.success('修改成功') |
|
|
|
|
this.onLoad() |
|
|
|
|
done() |
|
|
|
|
this.$message.success('修改成功'); |
|
|
|
|
this.onLoad(); |
|
|
|
|
done(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
@ -667,10 +684,10 @@ export default { |
|
|
|
|
this.$message.error('请选择至少一条数据'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let tmp = this.selectionList.filter(item => item.status === 10015 || item.status === 10021) |
|
|
|
|
let tmp = this.selectionList.filter(item => item.status === 10015 || item.status === 10021); |
|
|
|
|
if (tmp.length > 0) { |
|
|
|
|
this.$message.error('请勿选择状态为【已完工】或【已关闭】的数据'); |
|
|
|
|
return |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
this.$confirm('确定将选择数据批量关闭?', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
@ -739,9 +756,9 @@ export default { |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
async onLoad(page, params = {}) { |
|
|
|
|
this.query.partCode = this.query.partCode1 |
|
|
|
|
this.query.partCode = this.query.partCode1; |
|
|
|
|
if (this.query.partCode1) { |
|
|
|
|
delete this.query.partCode1 |
|
|
|
|
delete this.query.partCode1; |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
this.loading = true; |
|
|
|
|
@ -749,7 +766,7 @@ export default { |
|
|
|
|
current: this.page.currentPage, |
|
|
|
|
size: this.page.pageSize, |
|
|
|
|
validationResult: '16004', |
|
|
|
|
...this.query |
|
|
|
|
...this.query, |
|
|
|
|
}); |
|
|
|
|
// if (res.code) { |
|
|
|
|
this.data = res.data.data.records; |
|
|
|
|
|