|
@@ -99,7 +99,7 @@
|
|
|
getById,
|
|
getById,
|
|
|
update
|
|
update
|
|
|
} from '@/api/bpm/components/saleManage/exceptionManagement.js';
|
|
} from '@/api/bpm/components/saleManage/exceptionManagement.js';
|
|
|
- import { relationType } from '@/enum/dict.js';
|
|
|
|
|
|
|
+ import { relationTypeOption } from '@/enum/dict.js';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins],
|
|
mixins: [dictMixins],
|
|
@@ -117,15 +117,15 @@
|
|
|
{ label: '报损', value: 3 },
|
|
{ label: '报损', value: 3 },
|
|
|
{ label: '报废', value: 4 }
|
|
{ label: '报废', value: 4 }
|
|
|
],
|
|
],
|
|
|
- options1: [
|
|
|
|
|
- { label: '多发', value: 1 },
|
|
|
|
|
- { label: '少发', value: 2 },
|
|
|
|
|
- { label: '错发', value: 3 },
|
|
|
|
|
- { label: '损坏', value: 4 }
|
|
|
|
|
- ],
|
|
|
|
|
-
|
|
|
|
|
- form: {},
|
|
|
|
|
- columns: [
|
|
|
|
|
|
|
+ form: {}
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+ created() {
|
|
|
|
|
+ this.getById(this.businessId);
|
|
|
|
|
+ },
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ columns() {
|
|
|
|
|
+ return [
|
|
|
{
|
|
{
|
|
|
width: 45,
|
|
width: 45,
|
|
|
type: 'index',
|
|
type: 'index',
|
|
@@ -222,7 +222,7 @@
|
|
|
{
|
|
{
|
|
|
minWidth: 120,
|
|
minWidth: 120,
|
|
|
prop: 'clientCode',
|
|
prop: 'clientCode',
|
|
|
- label: '客户代号',
|
|
|
|
|
|
|
+ label: this.form.relationType == 1 ? '客户代号' : '供应商代号',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
@@ -312,19 +312,41 @@
|
|
|
label: '描述',
|
|
label: '描述',
|
|
|
slot: 'describes',
|
|
slot: 'describes',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ columnKey: 'action',
|
|
|
|
|
+ label: '操作',
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ resizable: false,
|
|
|
|
|
+ slot: 'action',
|
|
|
|
|
+ fixed: 'right',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
}
|
|
}
|
|
|
- ]
|
|
|
|
|
- };
|
|
|
|
|
- },
|
|
|
|
|
- created() {
|
|
|
|
|
- this.getById(this.businessId);
|
|
|
|
|
|
|
+ ];
|
|
|
|
|
+ },
|
|
|
|
|
+ options1() {
|
|
|
|
|
+ return this.form.relationType == 1
|
|
|
|
|
+ ? [
|
|
|
|
|
+ { label: '多发', value: 1 },
|
|
|
|
|
+ { label: '少发', value: 2 },
|
|
|
|
|
+ { label: '错发', value: 3 },
|
|
|
|
|
+ { label: '损坏', value: 4 }
|
|
|
|
|
+ ]
|
|
|
|
|
+ : [
|
|
|
|
|
+ { label: '多收', value: 1 },
|
|
|
|
|
+ { label: '少收', value: 2 },
|
|
|
|
|
+ { label: '错收', value: 3 },
|
|
|
|
|
+ { label: '损坏', value: 4 }
|
|
|
|
|
+ ];
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
//获取订单详情
|
|
//获取订单详情
|
|
|
async getById(id) {
|
|
async getById(id) {
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
let data = await getById(id);
|
|
let data = await getById(id);
|
|
|
- data['relationTypeName'] = relationType[data.relationType];
|
|
|
|
|
|
|
+ data['relationTypeName'] = relationTypeOption[data.relationType];
|
|
|
|
|
|
|
|
if (data) {
|
|
if (data) {
|
|
|
this.form = data;
|
|
this.form = data;
|