|
|
|
|
@ -15,11 +15,18 @@ |
|
|
|
|
@refresh-change="refreshChange" |
|
|
|
|
@on-load="onLoad" |
|
|
|
|
@row-update="rowUpdate" |
|
|
|
|
@sort-change="sortChange" |
|
|
|
|
@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> |
|
|
|
|
|
|
|
|
|
@ -60,20 +67,30 @@ |
|
|
|
|
>班组维护 |
|
|
|
|
</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #demandDate="{ row }"> |
|
|
|
|
{{ row.demandDate ? row.demandDate.substring(0, 10) : '' }} |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template #validationMomo="{row}"> |
|
|
|
|
<template #demandDate="{ row }"> |
|
|
|
|
{{ row.demandDate ? row.demandDate.substring(0, 10) : '' }} |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template #validationMomo="{ row }"> |
|
|
|
|
<el-text type="danger">{{ row.validationMomo }}</el-text> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
</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, |
|
|
|
|
@ -99,7 +116,7 @@ export default { |
|
|
|
|
pageSize: 10, |
|
|
|
|
currentPage: 1, |
|
|
|
|
total: 0, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
option: { |
|
|
|
|
columnSort: true, |
|
|
|
|
tip: false, |
|
|
|
|
@ -144,10 +161,10 @@ export default { |
|
|
|
|
gridBtn: false, |
|
|
|
|
searchMenuPosition: 'right', |
|
|
|
|
align: 'center', |
|
|
|
|
menu:false, |
|
|
|
|
menu: false, |
|
|
|
|
|
|
|
|
|
column: [ |
|
|
|
|
{ |
|
|
|
|
{ |
|
|
|
|
label: '缺失资源', |
|
|
|
|
prop: 'validationMomo', |
|
|
|
|
search: false, |
|
|
|
|
@ -203,11 +220,11 @@ export default { |
|
|
|
|
prop: 'partCode1', |
|
|
|
|
search: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
addDisplay:false, |
|
|
|
|
editDisplay:false, |
|
|
|
|
addDisplay: false, |
|
|
|
|
editDisplay: false, |
|
|
|
|
width: 150, |
|
|
|
|
span: 12, |
|
|
|
|
hide:true, |
|
|
|
|
hide: true, |
|
|
|
|
headerAlign: 'center', |
|
|
|
|
align: 'center', |
|
|
|
|
// rules: [ |
|
|
|
|
@ -288,7 +305,7 @@ export default { |
|
|
|
|
disabled: true, |
|
|
|
|
span: 12, |
|
|
|
|
width: 150, |
|
|
|
|
searchOrder:20, |
|
|
|
|
searchOrder: 20, |
|
|
|
|
headerAlign: 'center', |
|
|
|
|
rules: [ |
|
|
|
|
{ |
|
|
|
|
@ -379,10 +396,10 @@ export default { |
|
|
|
|
span: 12, |
|
|
|
|
headerAlign: 'center', |
|
|
|
|
align: 'center', |
|
|
|
|
dicUrl:'/api/blade-desk/BA/ProdMark/listForSelect', |
|
|
|
|
props:{ |
|
|
|
|
label:'name', |
|
|
|
|
value:'name' |
|
|
|
|
dicUrl: '/api/blade-desk/BA/ProdMark/listForSelect', |
|
|
|
|
props: { |
|
|
|
|
label: 'name', |
|
|
|
|
value: 'name', |
|
|
|
|
}, |
|
|
|
|
rules: [ |
|
|
|
|
{ |
|
|
|
|
@ -427,7 +444,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
label: '需求交期', |
|
|
|
|
prop: 'demandDate', |
|
|
|
|
@ -614,9 +631,9 @@ export default { |
|
|
|
|
this.query.asc = undefined; |
|
|
|
|
} else { |
|
|
|
|
const orderByField = prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.query.orderByField = orderByField; |
|
|
|
|
this.query.asc = order === 'ascending'?true:false; |
|
|
|
|
this.query.asc = order === 'ascending' ? true : false; |
|
|
|
|
} |
|
|
|
|
// // 重新加载数据 |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
@ -633,7 +650,7 @@ export default { |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
.then(() => { |
|
|
|
|
const ids = this.selectionList.map(item => item.id).join(','); |
|
|
|
|
verificationData({ ids }).then(res => { |
|
|
|
|
if (res.data.code === 200) { |
|
|
|
|
@ -651,12 +668,12 @@ export default { |
|
|
|
|
// }); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
rowUpdate(row, index, done, loading){ |
|
|
|
|
updateData(row).then(res => { |
|
|
|
|
if(res.data.code == 200){ |
|
|
|
|
this.$message.success('修改成功') |
|
|
|
|
this.onLoad() |
|
|
|
|
done() |
|
|
|
|
rowUpdate(row, index, done, loading) { |
|
|
|
|
updateData(row).then(res => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
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) |
|
|
|
|
if(tmp.length > 0){ |
|
|
|
|
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,17 +756,17 @@ export default { |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
async onLoad(page, params = {}) { |
|
|
|
|
this.query.partCode = this.query.partCode1 |
|
|
|
|
if(this.query.partCode1){ |
|
|
|
|
delete this.query.partCode1 |
|
|
|
|
this.query.partCode = this.query.partCode1; |
|
|
|
|
if (this.query.partCode1) { |
|
|
|
|
delete this.query.partCode1; |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
this.loading = true; |
|
|
|
|
const res = await getList({ |
|
|
|
|
current:this.page.currentPage, |
|
|
|
|
size:this.page.pageSize, |
|
|
|
|
current: this.page.currentPage, |
|
|
|
|
size: this.page.pageSize, |
|
|
|
|
validationResult: '16004', |
|
|
|
|
...this.query |
|
|
|
|
...this.query, |
|
|
|
|
}); |
|
|
|
|
// if (res.code) { |
|
|
|
|
this.data = res.data.data.records; |
|
|
|
|
|