|
@@ -21,7 +21,11 @@
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="账套">
|
|
|
- <a-input placeholder="请输入账套" v-model="queryParam.account"></a-input>
|
|
|
+ <j-search-select-tag
|
|
|
+ placeholder="请选择账套"
|
|
|
+ v-model="queryParam.account"
|
|
|
+ dict="view_account,account,account">
|
|
|
+ </j-search-select-tag>
|
|
|
<!-- <a-select placeholder="请选择账套" v-model="queryParam.account">
|
|
|
<a-select-option value="">请选择</a-select-option>
|
|
|
<a-select-option :value="0">香港森语(101)</a-select-option>
|
|
@@ -55,7 +59,7 @@
|
|
|
:pagination="pagination"
|
|
|
:rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
|
|
@change="handleTableChange"
|
|
|
- :scroll="{ x: 1500 }"
|
|
|
+ :scroll="{ x: 1500, y:500 }"
|
|
|
>
|
|
|
</a-table>
|
|
|
</a-spin>
|
|
@@ -66,6 +70,7 @@
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
import moment from 'moment'
|
|
|
+import { randomUUID } from '@/utils/util'
|
|
|
|
|
|
import { queryOrderData, confimOrderData } from '@api/document/shipmentList'
|
|
|
|
|
@@ -93,7 +98,7 @@ export default {
|
|
|
{
|
|
|
title: '款号',
|
|
|
dataIndex: 'itemNumber',
|
|
|
- width: 60,
|
|
|
+ width: 100,
|
|
|
fixed: 'left',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
@@ -139,7 +144,7 @@ export default {
|
|
|
{
|
|
|
title: '存货名称',
|
|
|
dataIndex: 'inventoryName',
|
|
|
- width: 180,
|
|
|
+ width: 250,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
@@ -296,21 +301,21 @@ export default {
|
|
|
{
|
|
|
title: '订单备注',
|
|
|
dataIndex: 'orderRemarks',
|
|
|
- width: 180,
|
|
|
+ width: 280,
|
|
|
customRender: t => ellipsis(t),
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '价格备注',
|
|
|
dataIndex: 'priceRemarks',
|
|
|
- width: 120,
|
|
|
+ width: 280,
|
|
|
customRender: t => ellipsis(t),
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '订单变更说明',
|
|
|
dataIndex: 'orderChangeDescription',
|
|
|
- width: 220,
|
|
|
+ width: 280,
|
|
|
customRender: t => ellipsis(t),
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
@@ -355,9 +360,14 @@ export default {
|
|
|
methods: {
|
|
|
// 参照订单数据 查询
|
|
|
getOrderList() {
|
|
|
+ var that = this;
|
|
|
this.$nextTick(() => {
|
|
|
queryOrderData(this.queryParam).then(res => {
|
|
|
if (res.success) {
|
|
|
+ for (var i=0; i<res.result.records.length;i++){
|
|
|
+ res.result.records[i].id = randomUUID();
|
|
|
+ }
|
|
|
+ console.log(res.result.records);
|
|
|
this.orderListData = res.result.records
|
|
|
this.pagination = {
|
|
|
total: res.result.total,
|
|
@@ -375,56 +385,56 @@ export default {
|
|
|
this.$message.error('请勾选订单数据')
|
|
|
} else {
|
|
|
this.selectedRows.forEach(item => {
|
|
|
- this.confimList.push(item.syOrderDataItemId)
|
|
|
+ this.confimList.push(item.syOrderDataItemId);
|
|
|
})
|
|
|
- console.log('勾选的id数组', this.confimList)
|
|
|
|
|
|
confimOrderData(this.confimList).then(res => {
|
|
|
if (res.success) {
|
|
|
- console.log('结果 res', res.result)
|
|
|
- this.propList = res.result
|
|
|
- this.$emit('bao', this.propList)
|
|
|
- console.log('结果this.propList', this.propList)
|
|
|
+ this.propList = res.result;
|
|
|
+ this.$emit('bao', this.propList);
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- this.referOrderDataModVis = false
|
|
|
- this.selectedRowKeys = []
|
|
|
- this.selectedRows = []
|
|
|
+ this.referOrderDataModVis = false;
|
|
|
+ this.selectedRowKeys = [];
|
|
|
+ this.selectedRows = [];
|
|
|
+ this.searchReset();
|
|
|
}
|
|
|
},
|
|
|
handleTableChange(pagination, filters, sorter) {
|
|
|
- this.queryParam.pageNo = pagination.current
|
|
|
- this.getOrderList()
|
|
|
+ this.queryParam.pageNo = pagination.current;
|
|
|
+ this.getOrderList();
|
|
|
},
|
|
|
|
|
|
searchQuery() {
|
|
|
- this.queryParam.pageNo = ''
|
|
|
- this.getOrderList()
|
|
|
+ this.queryParam.pageNo = '';
|
|
|
+ this.getOrderList();
|
|
|
},
|
|
|
|
|
|
// 重置
|
|
|
searchReset() {
|
|
|
- this.queryParam.orderNumber = ''
|
|
|
- this.queryParam.account = ''
|
|
|
- this.getOrderList()
|
|
|
+ this.queryParam.orderNumber = '';
|
|
|
+ this.queryParam.account = '';
|
|
|
+ this.getOrderList();
|
|
|
},
|
|
|
// 选中行
|
|
|
onSelectChange(keys, rows) {
|
|
|
- this.selectedRowKeys = keys
|
|
|
- this.selectedRows = rows
|
|
|
+ console.log(keys);
|
|
|
+ console.log(rows);
|
|
|
+ this.selectedRowKeys = keys;
|
|
|
+ this.selectedRows = rows;
|
|
|
},
|
|
|
|
|
|
close() {
|
|
|
this.$emit('close')
|
|
|
- this.referOrderDataModVis = false
|
|
|
- this.selectedRowKeys = []
|
|
|
- this.orderListData = []
|
|
|
- this.getOrderList()
|
|
|
+ this.referOrderDataModVis = false;
|
|
|
+ this.selectedRowKeys = [];
|
|
|
+ this.orderListData = [];
|
|
|
+ this.searchReset();
|
|
|
},
|
|
|
handleCancel() {
|
|
|
- this.close()
|
|
|
- }
|
|
|
+ this.close();
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
// 选中项
|