|
@@ -144,6 +144,7 @@
|
|
|
</BasicTable>
|
|
|
<quotationFormModal @register="registerModal" @success="handleSuccess" />
|
|
|
<ViewHistoryVersionModal ref="ViewHistoryVersionModalRef" @success="handleSuccess" />
|
|
|
+ <SetToExamine ref="SetToExamineRef" @success="handleSuccess" ></SetToExamine>
|
|
|
<!-- 表单区域 -->
|
|
|
</div>
|
|
|
</template>
|
|
@@ -167,6 +168,7 @@
|
|
|
} from './quotationForm.api';
|
|
|
import { cloneDeep } from 'lodash-es';
|
|
|
import { JDictSelectTag, ApiSelect, JInput ,JSelect} from '/@/components/Form';
|
|
|
+ import SetToExamine from './components/SetToExamine.vue';
|
|
|
import quotationFormModal from './components/quotationFormModal.vue';
|
|
|
import ViewHistoryVersionModal from './components/ViewHistoryVersionModal.vue';
|
|
|
import { message } from 'ant-design-vue';
|
|
@@ -179,6 +181,7 @@
|
|
|
const [registerModal, { openModal }] = useModal();
|
|
|
var showField = ref('currency+name');
|
|
|
var ViewHistoryVersionModalRef = ref();
|
|
|
+ var SetToExamineRef = ref();
|
|
|
//注册table数据
|
|
|
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
|
|
tableProps: {
|
|
@@ -288,6 +291,10 @@
|
|
|
function handleSuccess() {
|
|
|
(selectedRowKeys.value = []) && reload();
|
|
|
}
|
|
|
+ // 审核
|
|
|
+ function handleToExamine(record) {
|
|
|
+ SetToExamineRef.value.getTable(record);
|
|
|
+ }
|
|
|
/**
|
|
|
* 操作栏
|
|
|
*/
|
|
@@ -311,9 +318,10 @@
|
|
|
onClick: handleRevise.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
- label: '查看历史版本(history)',
|
|
|
- onClick: handleViewHistory.bind(null, record),
|
|
|
+ label: '审核(to examine)',
|
|
|
ifShow: record.status == '1',
|
|
|
+ // auth: 'saleCode:sale_quotation:editHis',
|
|
|
+ onClick: handleToExamine.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
label: '删除(delete)',
|
|
@@ -336,6 +344,11 @@
|
|
|
label: '详情(detail)',
|
|
|
onClick: handleDetail.bind(null, record),
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '查看历史版本(history)',
|
|
|
+ onClick: handleViewHistory.bind(null, record),
|
|
|
+ ifShow: record.status == '1',
|
|
|
+ },
|
|
|
];
|
|
|
}
|
|
|
function submit() {
|