|
|
@@ -54,6 +54,7 @@
|
|
|
import { getTableList } from '@/api/saleManage/saleorder';
|
|
|
import AssetTree from '@/components/AssetTree';
|
|
|
import { mapGetters } from 'vuex';
|
|
|
+ import { parameterGetByCode } from '@/api/main/index.js';
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -92,7 +93,8 @@
|
|
|
currentIndex: null,
|
|
|
selection: [],
|
|
|
radio: null,
|
|
|
- isAcc: false
|
|
|
+ isAcc: false,
|
|
|
+ isChooseContract: false
|
|
|
};
|
|
|
},
|
|
|
|
|
|
@@ -172,6 +174,13 @@
|
|
|
return businessType;
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'contractNumber',
|
|
|
+ label: '合同编号',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 130
|
|
|
+ },
|
|
|
{
|
|
|
prop: 'contractName',
|
|
|
label: '合同名称',
|
|
|
@@ -263,7 +272,14 @@
|
|
|
];
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ created() {
|
|
|
+ //选择订单判断合同编号是否一样//0否 1是
|
|
|
+ parameterGetByCode({
|
|
|
+ code: 'eom_saleOrder_chooseOrder_contract'
|
|
|
+ }).then((res) => {
|
|
|
+ this.isChooseContract = res.value;
|
|
|
+ });
|
|
|
+ },
|
|
|
methods: {
|
|
|
open(item, currentIndex, isAcc = false) {
|
|
|
this.currentIndex = currentIndex;
|
|
|
@@ -331,6 +347,10 @@
|
|
|
if (new Set(partaIds).size != 1) {
|
|
|
return this.$message.warning('请选择相同客户的订单!');
|
|
|
}
|
|
|
+ let contractNumbers = this.selection.map((item) => item.contractNumber);
|
|
|
+ if (new Set(contractNumbers).size != 1 && this.isChooseContract == 1) {
|
|
|
+ return this.$message.warning('请选择相同合同编号的订单!');
|
|
|
+ }
|
|
|
let saleTypeS = this.selection.map((item) => item.saleType);
|
|
|
if (new Set(saleTypeS).size != 1) {
|
|
|
return this.$message.warning('请选择相同销售类型的订单!');
|