|
|
|
@ -66,8 +66,6 @@
|
|
|
|
|
<ConditionFilter v-model="AdvancedQueryData" :filter-fields="fields" :disabled="false" />
|
|
|
|
|
</div>
|
|
|
|
|
</a-modal>
|
|
|
|
|
<!-- 批量编辑 -->
|
|
|
|
|
<!-- <BatchModification @register="registerModal" @success="BMSuccess" /> -->
|
|
|
|
|
<a-modal
|
|
|
|
|
:title="
|
|
|
|
|
TaskShippingOrderCompareData.isExistsDiff ? '下货纸比对(有差异)' : '下货纸比对(正常)'
|
|
|
|
@ -112,10 +110,6 @@
|
|
|
|
|
>
|
|
|
|
|
<p>{{ item.fieldName }}:</p>
|
|
|
|
|
<p>{{ item.reqVal }}</p>
|
|
|
|
|
<!-- <p v-if="item.msg">
|
|
|
|
|
<a-icon type="close" :style="{ color: 'red' }" />
|
|
|
|
|
</p>
|
|
|
|
|
<p v-else><a-icon type="check" :style="{ color: 'green' }" /></p> -->
|
|
|
|
|
<p>{{ item.fieldName }}:</p>
|
|
|
|
|
<p v-if="!item.isDiff">{{ item.targetVal }}</p>
|
|
|
|
|
<p v-else v-html="item.mergeHtml"></p>
|
|
|
|
@ -143,10 +137,6 @@
|
|
|
|
|
>
|
|
|
|
|
<p>{{ item.fieldName }}:</p>
|
|
|
|
|
<p>{{ item.reqVal }}</p>
|
|
|
|
|
<!-- <p v-if="item.msg">
|
|
|
|
|
<a-icon type="close" :style="{ color: 'red' }" />
|
|
|
|
|
</p>
|
|
|
|
|
<p v-else><a-icon type="check" :style="{ color: 'green' }" /></p> -->
|
|
|
|
|
<p>{{ item.fieldName }}:</p>
|
|
|
|
|
<p v-if="!item.isDiff">{{ item.targetVal }}</p>
|
|
|
|
|
<p v-else v-html="item.mergeHtml"></p>
|
|
|
|
@ -158,11 +148,10 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import TableActionBar from './components/tableActionBar.vue'
|
|
|
|
|
// import BatchModification from './modules/BatchModification.vue'
|
|
|
|
|
import ConditionFilter from '/@/components/Condition/index.vue'
|
|
|
|
|
import { onMounted, ref } from 'vue'
|
|
|
|
|
import { BasicTable, useTable } from '/@/components/Table'
|
|
|
|
|
import { PageDataByBooking, GetUserQuerySet, UpdateUserQuerySet } from './api/BookingLedger.js'
|
|
|
|
|
import { PageDataByBooking, UpdateUserQuerySet } from './api/BookingLedger.js'
|
|
|
|
|
import { getColumnsByClient } from '/@/views/baseinfo/formcopy/api'
|
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
|
import { columns, searchFormSchema, FeeStatus } from './columns'
|
|
|
|
@ -394,13 +383,12 @@
|
|
|
|
|
//打开高级查询弹窗
|
|
|
|
|
function FnOpenAdvancedQuery() {
|
|
|
|
|
AdvancedQueryVisible.value = true
|
|
|
|
|
createdInit()
|
|
|
|
|
}
|
|
|
|
|
//关闭高级查询弹窗
|
|
|
|
|
function FnCancelAdvancedQuery() {
|
|
|
|
|
AdvancedQueryVisible.value = false
|
|
|
|
|
}
|
|
|
|
|
// 批量编辑
|
|
|
|
|
// 批量编辑
|
|
|
|
|
function batchEditing() {
|
|
|
|
|
const select = getSelectRows()
|
|
|
|
|
if (select.length === 0) {
|
|
|
|
@ -415,60 +403,8 @@
|
|
|
|
|
function TaskShippingOrderCompareHandleCancel() {
|
|
|
|
|
TaskShippingOrderCompareVisible.value = false
|
|
|
|
|
}
|
|
|
|
|
async function createdInit() {
|
|
|
|
|
showColumns.value = JSON.parse(JSON.stringify(initData.columns))
|
|
|
|
|
formAllData.value = JSON.parse(JSON.stringify(initData.condAllData))
|
|
|
|
|
fromTableAllData.value = JSON.parse(JSON.stringify(initData.columnsAllData))
|
|
|
|
|
tableHeight.value = document.body.clientHeight - 230
|
|
|
|
|
const res: API.DataResult = await getColumnsByClient({
|
|
|
|
|
tableViewName: 'op_sea_export',
|
|
|
|
|
})
|
|
|
|
|
const fullPath = ref(router.currentRoute.value.fullPath)
|
|
|
|
|
usePermissionStore().getWrouteList.forEach((item: Record<any, any>) => {
|
|
|
|
|
item.children[0].children?.forEach((item2: Record<any, any>) => {
|
|
|
|
|
if (fullPath.value.indexOf(item2.path) != -1) {
|
|
|
|
|
permissionId.value = item2.id
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
|
|
let data: any[] = []
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
data.push({
|
|
|
|
|
id: item.dbColumnName,
|
|
|
|
|
title: item.columnDescription,
|
|
|
|
|
name: 'Select',
|
|
|
|
|
value: null,
|
|
|
|
|
props: {
|
|
|
|
|
disabled: false,
|
|
|
|
|
multiple: false,
|
|
|
|
|
// placeholder: '请选择请假事由',
|
|
|
|
|
options: [],
|
|
|
|
|
},
|
|
|
|
|
style: {
|
|
|
|
|
width: '100%',
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
fields.value = data
|
|
|
|
|
}
|
|
|
|
|
FnGetUserQuerySet()
|
|
|
|
|
// getConfigUser(true)
|
|
|
|
|
}
|
|
|
|
|
const permissionId = ref<String>('')
|
|
|
|
|
const ConditionalList: Ref<any> = ref()
|
|
|
|
|
async function FnGetUserQuerySet() {
|
|
|
|
|
const res: API.DataResult = await GetUserQuerySet({
|
|
|
|
|
permissionId: permissionId.value,
|
|
|
|
|
})
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
console.log(res)
|
|
|
|
|
AdvancedQueryData.value = JSON.parse(res.data.content)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//执行高级查询
|
|
|
|
|
async function FnAdvancedQuery() {
|
|
|
|
|
let Api = (data) => {
|
|
|
|
|