|
@@ -117,13 +117,13 @@
|
|
|
</a-alert>
|
|
|
<a-table
|
|
|
:columns="columns"
|
|
|
- :row-key="record => record.childId"
|
|
|
+ :row-key="record => record.id"
|
|
|
:data-source="dataSource"
|
|
|
bordered
|
|
|
size="small"
|
|
|
@change="handleTableChange"
|
|
|
:pagination="pagination"
|
|
|
- :scroll="{ x: 3500, y: 400 }"
|
|
|
+ :scroll="{ x: 2500, y: 400 }"
|
|
|
:rowSelection="{ onSelect: onSelect, onSelectAll: onSelectAll,selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
|
|
>
|
|
|
</a-table>
|
|
@@ -187,61 +187,61 @@
|
|
|
},
|
|
|
{
|
|
|
title: '产品分类(production class)',
|
|
|
- dataIndex: 'productClass',
|
|
|
- key: 'productClass',
|
|
|
+ dataIndex: 'productionClass_dictText',
|
|
|
+ key: 'productionClass_dictText',
|
|
|
align:"center",
|
|
|
width:250,
|
|
|
},
|
|
|
{
|
|
|
title: '机型(model)',
|
|
|
- dataIndex: 'headModel',
|
|
|
- key: 'headModel',
|
|
|
+ dataIndex: 'model',
|
|
|
+ key: 'model',
|
|
|
align:"center",
|
|
|
ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
title: '销售部门(sale department)',
|
|
|
- dataIndex: 'saleDepartment',
|
|
|
- key: 'saleDepartment',
|
|
|
+ dataIndex: 'saleDepartmentName',
|
|
|
+ key: 'saleDepartmentName',
|
|
|
align:"center",
|
|
|
width:250,
|
|
|
},
|
|
|
{
|
|
|
title: '业务员(salesman)',
|
|
|
- dataIndex: 'salesman',
|
|
|
- key: 'salesman',
|
|
|
+ dataIndex: 'salesmanName',
|
|
|
+ key: 'salesmanName',
|
|
|
align:"center",
|
|
|
ellipsis: true,
|
|
|
},
|
|
|
- {
|
|
|
- title: '产品编码(product code)',
|
|
|
- dataIndex: 'productCode',
|
|
|
- key: 'productCode',
|
|
|
- align:"center",
|
|
|
- width:250,
|
|
|
- },
|
|
|
- {
|
|
|
- title: '产品英文名(English name)',
|
|
|
- key: 'englishName',
|
|
|
- dataIndex: 'englishName',
|
|
|
- align:"center",
|
|
|
- width:250,
|
|
|
- ellipsis: true,
|
|
|
- },
|
|
|
- {
|
|
|
- title: '型号(childModel)',
|
|
|
- key: 'childModel',
|
|
|
- dataIndex: 'childModel',
|
|
|
- align:"center",
|
|
|
- ellipsis: true,
|
|
|
- },
|
|
|
- {
|
|
|
- title: '厂家(factory)',
|
|
|
- key: 'factory',
|
|
|
- ellipsis: true,
|
|
|
- dataIndex: 'factory',
|
|
|
- align:"center",
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: '产品编码(product code)',
|
|
|
+ // dataIndex: 'productCode',
|
|
|
+ // key: 'productCode',
|
|
|
+ // align:"center",
|
|
|
+ // width:250,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: '产品英文名(English name)',
|
|
|
+ // key: 'englishName',
|
|
|
+ // dataIndex: 'englishName',
|
|
|
+ // align:"center",
|
|
|
+ // width:250,
|
|
|
+ // ellipsis: true,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: '型号(childModel)',
|
|
|
+ // key: 'childModel',
|
|
|
+ // dataIndex: 'childModel',
|
|
|
+ // align:"center",
|
|
|
+ // ellipsis: true,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: '厂家(factory)',
|
|
|
+ // key: 'factory',
|
|
|
+ // ellipsis: true,
|
|
|
+ // dataIndex: 'factory',
|
|
|
+ // align:"center",
|
|
|
+ // },
|
|
|
{
|
|
|
title: '质量等级(quantity grade)',
|
|
|
key: 'quantityGrade',
|
|
@@ -249,27 +249,27 @@
|
|
|
align:"center",
|
|
|
width:250,
|
|
|
},
|
|
|
- {
|
|
|
- title: '数量(quantity)',
|
|
|
- key: 'quantity',
|
|
|
- dataIndex: 'quantity',
|
|
|
- align:"center",
|
|
|
- ellipsis: true,
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单价(price)',
|
|
|
- key: 'taxPrice',
|
|
|
- dataIndex: 'taxPrice',
|
|
|
- align:"center",
|
|
|
- ellipsis: true,
|
|
|
- },
|
|
|
- {
|
|
|
- title: '金额(tax money)',
|
|
|
- key: 'money',
|
|
|
- dataIndex: 'money',
|
|
|
- align:"center",
|
|
|
- ellipsis: true,
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: '数量(quantity)',
|
|
|
+ // key: 'quantity',
|
|
|
+ // dataIndex: 'quantity',
|
|
|
+ // align:"center",
|
|
|
+ // ellipsis: true,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: '单价(price)',
|
|
|
+ // key: 'taxPrice',
|
|
|
+ // dataIndex: 'taxPrice',
|
|
|
+ // align:"center",
|
|
|
+ // ellipsis: true,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: '金额(tax money)',
|
|
|
+ // key: 'money',
|
|
|
+ // dataIndex: 'money',
|
|
|
+ // align:"center",
|
|
|
+ // ellipsis: true,
|
|
|
+ // },
|
|
|
];
|
|
|
const labelCol = ref({
|
|
|
xs: { span: 24 },
|
|
@@ -320,7 +320,7 @@
|
|
|
});
|
|
|
function loadData(){
|
|
|
let params = getQueryParams();
|
|
|
- defHttp.get({ url: '/saleCode/saleDelivery/selectSaleDeliveryAlert',params}, { isTransformResponse: false })
|
|
|
+ defHttp.get({ url: '/saleCode/saleDelivery/listAlert',params}, { isTransformResponse: false })
|
|
|
.then((res) => {
|
|
|
if (res.success) {
|
|
|
dataSource.value = res.result.records;
|
|
@@ -383,7 +383,7 @@
|
|
|
function onSelectChange(selectedRowKeys1, selectionRows1) {
|
|
|
var arr = []
|
|
|
selectionRows.value.map(item=>{
|
|
|
- arr.push(item.childId)
|
|
|
+ arr.push(item.id)
|
|
|
})
|
|
|
selectedRowKeys.value = arr
|
|
|
}
|
|
@@ -393,7 +393,7 @@
|
|
|
console.log( selectionRows.value);
|
|
|
}else{
|
|
|
const delIndex = selectionRows.value.findIndex((val) => {
|
|
|
- return val.childId === record.childId
|
|
|
+ return val.id === record.id
|
|
|
})
|
|
|
selectionRows.value.splice(delIndex, 1)
|
|
|
}
|
|
@@ -407,7 +407,7 @@
|
|
|
const delIndex = []
|
|
|
selectionRows2.forEach((item, index) => {
|
|
|
changeRows.forEach((val, itemIndex) => {
|
|
|
- if (item.childId === val.childId) {
|
|
|
+ if (item.id === val.id) {
|
|
|
delIndex.push(index)
|
|
|
}
|
|
|
})
|
|
@@ -422,15 +422,13 @@
|
|
|
}
|
|
|
}
|
|
|
function handleOk(){
|
|
|
- var arr = []
|
|
|
- selectionRows.value.map(item=>arr.push(item.billCode))
|
|
|
- if(fatherSourceCode.value&&fatherSourceCode.value!==''){
|
|
|
- arr.push(fatherSourceCode.value)
|
|
|
- }
|
|
|
- if(selectedRowKeys.value.length==0){
|
|
|
- message.error('请勾选数据');
|
|
|
- }else if(new Set(arr).size!==1){
|
|
|
- message.error('请勾选发货单号相同的数据');
|
|
|
+ // var arr = []
|
|
|
+ // selectionRows.value.map(item=>arr.push(item.billCode))
|
|
|
+ // if(fatherSourceCode.value&&fatherSourceCode.value!==''){
|
|
|
+ // arr.push(fatherSourceCode.value)
|
|
|
+ // }
|
|
|
+ if(selectedRowKeys.value.length!==1){
|
|
|
+ message.error('请勾选一条数据');
|
|
|
}else{
|
|
|
emit('SelectDelivery', selectionRows.value)
|
|
|
handleCancel()
|