|
@@ -60,9 +60,9 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="8">
|
|
|
- <a-form-item name="submit">
|
|
|
- <template #label><span title="提交(submit)">提交(submit)</span></template>
|
|
|
- <JDictSelectTag v-model:value="queryParam.submit" placeholder="请选择" dictCode="yes_or_no" style="width: 100%;"/>
|
|
|
+ <a-form-item name="hasDeal">
|
|
|
+ <template #label><span title="处理(deal)">处理(deal)</span></template>
|
|
|
+ <JDictSelectTag v-model:value="queryParam.hasDeal" placeholder="请选择" dictCode="yes_or_no" style="width: 100%;"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</template>
|
|
@@ -85,7 +85,8 @@
|
|
|
<BasicTable @register="registerTable" :rowSelection="rowSelection" size="small" >
|
|
|
<!--插槽:table标题-->
|
|
|
<template #tableTitle>
|
|
|
- <a-button type="primary" v-auth="'saleCode:sale_order:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出(export)</a-button>
|
|
|
+ <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出(export)</a-button>
|
|
|
+ <a-button type="primary" preIcon="ant-design:export-outlined" @click="onProcessed"> 已处理(Processed)</a-button>
|
|
|
</template>
|
|
|
<!--操作栏-->
|
|
|
<template #action="{ record }">
|
|
@@ -96,27 +97,25 @@
|
|
|
</template>
|
|
|
</BasicTable>
|
|
|
<!-- 表单区域 -->
|
|
|
- <puechaseInFormModal @register="registerModal" @success="handleSuccess"></puechaseInFormModal>
|
|
|
+ <purInAbnormalFormModal @register="registerModal" @success="handleSuccess"></purInAbnormalFormModal>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" name="saleCode-saleInquiryForm" setup>
|
|
|
- import {ref, reactive} from 'vue';
|
|
|
+ import {ref, reactive,onMounted} from 'vue';
|
|
|
import {BasicTable, useTable, TableAction} from '/@/components/Table';
|
|
|
import { useListPage } from '/@/hooks/system/useListPage'
|
|
|
import {useModal} from '/@/components/Modal';
|
|
|
- import puechaseInFormModal from './components/puechaseInFormModal.vue'
|
|
|
+ import purInAbnormalFormModal from './components/purInAbnormalFormModal.vue'
|
|
|
import {columns} from './purInAbnormalForm.data';
|
|
|
- import {list, getImportUrl,getExportUrl} from './purInAbnormalForm.api';
|
|
|
+ import {list, getImportUrl,getExportUrl,ProcessedList} from './purInAbnormalForm.api';
|
|
|
import { cloneDeep } from "lodash-es";
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
import { JDictSelectTag} from '/@/components/Form';
|
|
|
import JSelectInput from '/@/components/Form/src/jeecg/components/JSelectInput.vue';
|
|
|
import { message } from 'ant-design-vue';
|
|
|
const formRef = ref();
|
|
|
- const queryParam = reactive<any>({
|
|
|
- type:'1'
|
|
|
- });
|
|
|
+ const queryParam = reactive<any>({});
|
|
|
//注册model
|
|
|
const [registerModal, {openModal}] = useModal();
|
|
|
var classOption = ref([]);
|
|
@@ -189,6 +188,18 @@
|
|
|
showFooter: false,
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ function handlTackle(record){
|
|
|
+ ProcessedList({ids: record.id},handleSuccess);
|
|
|
+ }
|
|
|
+ function onProcessed(){
|
|
|
+ if(selectedRowKeys.value.length==0){
|
|
|
+ message.warning('请选择数据')
|
|
|
+ }else{
|
|
|
+ var ids=selectedRowKeys.value.join(',')
|
|
|
+ ProcessedList({ids: ids},handleSuccess);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 操作栏
|
|
@@ -198,7 +209,11 @@
|
|
|
{
|
|
|
label: '详情(detail)',
|
|
|
onClick: handleDetail.bind(null, record),
|
|
|
- ifShow: record.submit=='1'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '已处理(detail)',
|
|
|
+ onClick: handlTackle.bind(null, record),
|
|
|
+ ifShow: record.hasDeal=='0'||!record.hasDeal
|
|
|
},
|
|
|
]
|
|
|
}
|
|
@@ -208,6 +223,12 @@
|
|
|
function getDropDownAction(record){
|
|
|
return [ ]
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 成功回调
|
|
|
+ */
|
|
|
+ function handleSuccess() {
|
|
|
+ (selectedRowKeys.value = []) && reload();
|
|
|
+ }
|
|
|
|
|
|
/* ----------------------以下为原生查询需要添加的-------------------------- */
|
|
|
const toggleSearchStatus = ref<boolean>(false);
|
|
@@ -233,7 +254,6 @@
|
|
|
function searchReset() {
|
|
|
formRef.value.resetFields();
|
|
|
selectedRowKeys.value = [];
|
|
|
- queryParam.type='1'
|
|
|
//刷新数据
|
|
|
reload();
|
|
|
}
|