|
|
|
|
@ -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> |
|
|
|
|
|
|
|
|
|
@ -64,16 +71,26 @@ |
|
|
|
|
{{ row.demandDate ? row.demandDate.substring(0, 10) : '' }} |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template #validationMomo="{row}"> |
|
|
|
|
<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, |
|
|
|
|
@ -144,7 +161,7 @@ export default { |
|
|
|
|
gridBtn: false, |
|
|
|
|
searchMenuPosition: 'right', |
|
|
|
|
align: 'center', |
|
|
|
|
menu:false, |
|
|
|
|
menu: false, |
|
|
|
|
|
|
|
|
|
column: [ |
|
|
|
|
{ |
|
|
|
|
@ -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: [ |
|
|
|
|
{ |
|
|
|
|
@ -616,7 +633,7 @@ export default { |
|
|
|
|
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); |
|
|
|
|
@ -651,12 +668,12 @@ export default { |
|
|
|
|
// }); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
rowUpdate(row, index, done, loading){ |
|
|
|
|
rowUpdate(row, index, done, loading) { |
|
|
|
|
updateData(row).then(res => { |
|
|
|
|
if(res.data.code == 200){ |
|
|
|
|
this.$message.success('修改成功') |
|
|
|
|
this.onLoad() |
|
|
|
|
done() |
|
|
|
|
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; |
|
|
|
|
|