sc
This commit is contained in:
@@ -4,8 +4,8 @@ VITE_NODE_ENV=development
|
|||||||
VITE_DEV=true
|
VITE_DEV=true
|
||||||
|
|
||||||
# 请求路径
|
# 请求路径
|
||||||
VITE_BASE_URL='http://47.98.161.246:48080'
|
# VITE_BASE_URL='http://47.98.161.246:48080'
|
||||||
# VITE_BASE_URL='http://114.215.207.150:48080'
|
VITE_BASE_URL='http://114.215.207.150:48080'
|
||||||
|
|
||||||
# 高德地图key密钥
|
# 高德地图key密钥
|
||||||
# 1寻驾
|
# 1寻驾
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
disableTransitions={true}
|
disableTransitions={true}
|
||||||
>
|
>
|
||||||
{dictData.value?.label}
|
{dictData.value?.label || '未知'}
|
||||||
</ElTag>
|
</ElTag>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
:data="tableObject.tableList"
|
:data="tableObject.tableList"
|
||||||
:row-key="rowkey"
|
:row-key="rowkey"
|
||||||
:expand-row-keys="expandRowKeys"
|
:expand-row-keys="expandRowKeys"
|
||||||
|
:show-summary="showSummary"
|
||||||
|
:summary-method="summaryMethod"
|
||||||
border
|
border
|
||||||
style="flex: 1"
|
style="flex: 1"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
@@ -62,7 +64,9 @@ const props = defineProps({
|
|||||||
tableObject: { type: Object, default: () => ({ tableList: [] }) },
|
tableObject: { type: Object, default: () => ({ tableList: [] }) },
|
||||||
tableColumns: { type: Array, default: () => [] },
|
tableColumns: { type: Array, default: () => [] },
|
||||||
rowkey: { type: String, default: 'id' },
|
rowkey: { type: String, default: 'id' },
|
||||||
expandRowKeys: { type: Array, default: () => [] }
|
expandRowKeys: { type: Array, default: () => [] },
|
||||||
|
showSummary: { type: Boolean, default: false },
|
||||||
|
summaryMethod: { type: Function, default: null }
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['update:tableObject', 'getList', 'getCheckedColumns', 'selection-change'])
|
const emit = defineEmits(['update:tableObject', 'getList', 'getCheckedColumns', 'selection-change'])
|
||||||
|
|||||||
@@ -30,6 +30,8 @@
|
|||||||
:tableColumns="allSchemas.tableColumns.filter((it) => it.paramLevel == 1)"
|
:tableColumns="allSchemas.tableColumns.filter((it) => it.paramLevel == 1)"
|
||||||
rowkey="signOrderId"
|
rowkey="signOrderId"
|
||||||
:expandRowKeys="expendRows"
|
:expandRowKeys="expendRows"
|
||||||
|
:showSummary="true"
|
||||||
|
:summaryMethod="summaryMethod"
|
||||||
@get-list="getTableList"
|
@get-list="getTableList"
|
||||||
@get-checked-columns="getCheckedColumns"
|
@get-checked-columns="getCheckedColumns"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
@@ -170,8 +172,6 @@ import DialogOrderProduct from './DialogOrderProduct.vue'
|
|||||||
import { removeNullField } from '@/utils'
|
import { removeNullField } from '@/utils'
|
||||||
import { formatDate } from '@/utils/formatTime'
|
import { formatDate } from '@/utils/formatTime'
|
||||||
import { ElMessageBox, ElOption, ElSelect } from 'element-plus'
|
import { ElMessageBox, ElOption, ElSelect } from 'element-plus'
|
||||||
// import { VueDraggable } from 'vue-draggable-plus'
|
|
||||||
// import { checkPermi } from '@/utils/permission'
|
|
||||||
|
|
||||||
const userOptions = ref([])
|
const userOptions = ref([])
|
||||||
const allUserOptions = ref([])
|
const allUserOptions = ref([])
|
||||||
@@ -194,7 +194,12 @@ const tableObject = ref({
|
|||||||
loading: false,
|
loading: false,
|
||||||
total: 1,
|
total: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
pageNo: 1
|
pageNo: 1,
|
||||||
|
totalData: {
|
||||||
|
totalReceivedMoney: 0,
|
||||||
|
totalSignPrice: 0,
|
||||||
|
totalPayAmount: 0
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
function resetQuery() {
|
function resetQuery() {
|
||||||
@@ -226,6 +231,7 @@ async function getTableList() {
|
|||||||
const data = await SignApi.getSignPage(removeNullField(params))
|
const data = await SignApi.getSignPage(removeNullField(params))
|
||||||
tableObject.value.tableList = data.list.map((it) => ({ ...it, ...it.orderDiyParams }))
|
tableObject.value.tableList = data.list.map((it) => ({ ...it, ...it.orderDiyParams }))
|
||||||
tableObject.value.total = data.total
|
tableObject.value.total = data.total
|
||||||
|
tableObject.value.totalData = data.totalData
|
||||||
} finally {
|
} finally {
|
||||||
tableObject.value.loading = false
|
tableObject.value.loading = false
|
||||||
}
|
}
|
||||||
@@ -366,51 +372,27 @@ function openProduct(row) {
|
|||||||
orderProductDialog.value.open(row.signId)
|
orderProductDialog.value.open(row.signId)
|
||||||
}
|
}
|
||||||
|
|
||||||
// async function handleRemoveProduct(row) {
|
function summaryMethod({ columns }) {
|
||||||
// try {
|
const sums = []
|
||||||
// // 修改状态的二次确认
|
columns.forEach((column, index) => {
|
||||||
// await message.confirm(`确认要删除${row.productName}吗?`)
|
if (index === 0) {
|
||||||
// // 发起修改状态
|
sums[index] = '合计'
|
||||||
// await SignApi.removeOrderProduct(row.id)
|
return
|
||||||
// message.success('删除成功')
|
}
|
||||||
// // 刷新列表
|
if (column.property == 'payTotalAmount') {
|
||||||
// getTableList()
|
sums[index] = tableObject.value.totalData?.totalPayAmount || 0
|
||||||
// } catch {}
|
} else if (column.property == 'signTotalPrice') {
|
||||||
// }
|
sums[index] = tableObject.value.totalData?.totalSignPrice || 0
|
||||||
|
} else if (column.property == 'receivedMoney') {
|
||||||
// async function handleChangeProdoce(row) {
|
sums[index] = tableObject.value.totalData?.totalReceivedMoney || 0
|
||||||
// try {
|
} else {
|
||||||
// // 修改状态的二次确认
|
sums[index] = ''
|
||||||
// await message.confirm('确认要修改生产状态吗?')
|
}
|
||||||
// // 发起修改状态
|
})
|
||||||
// await SignApi.updateProduceStatus({
|
return sums
|
||||||
// signId: row.signId,
|
}
|
||||||
// id: row.id,
|
|
||||||
// isProduced: row.isProduced
|
|
||||||
// })
|
|
||||||
// message.success('修改成功')
|
|
||||||
// // 刷新列表
|
|
||||||
// // getTableList()
|
|
||||||
// } catch {
|
|
||||||
// // 取消后,进行恢复按钮
|
|
||||||
// row.isProduced = !row.isProduced
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
const expendRows = ref([])
|
const expendRows = ref([])
|
||||||
// async function onDragEnd(ev) {
|
|
||||||
// try {
|
|
||||||
// expendRows.value = [ev.data.signId]
|
|
||||||
// const list = tableObject.value.tableList.find((it) => it.signId == ev.data.signId).signProducts
|
|
||||||
// await SignApi.updateProduceSort(list.map((it) => it.id))
|
|
||||||
// message.success('修改成功')
|
|
||||||
// // 刷新列表
|
|
||||||
// getTableList()
|
|
||||||
// } catch (error) {
|
|
||||||
// console.log(error)
|
|
||||||
// getTableList()
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped></style>
|
<style lang="scss" scoped></style>
|
||||||
|
|||||||
@@ -16,7 +16,8 @@
|
|||||||
<div class="flex" style="align-items: center">
|
<div class="flex" style="align-items: center">
|
||||||
<b class="mr-5px text-24px">{{ info.name }}</b>
|
<b class="mr-5px text-24px">{{ info.name }}</b>
|
||||||
<div class="mr-5px text-16px">{{ info.phone }}</div>
|
<div class="mr-5px text-16px">{{ info.phone }}</div>
|
||||||
<el-tag type="success">{{ info.intentionStateName }}</el-tag>
|
<!-- <el-tag type="success">{{ info.intentionStateName }}</el-tag> -->
|
||||||
|
<DictTag type="intention_state" :value="info.intentionState + ''" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-button type="primary" v-hasPermi="['clue:pool:update']" plain @click="handleUpdate">
|
<el-button type="primary" v-hasPermi="['clue:pool:update']" plain @click="handleUpdate">
|
||||||
@@ -64,8 +65,11 @@
|
|||||||
>
|
>
|
||||||
<el-card shadow="always" :body-style="{ padding: '10px' }">
|
<el-card shadow="always" :body-style="{ padding: '10px' }">
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div class="flex items-center">
|
||||||
<b class="text-18px" style="line-height: 36px">{{ item.operateUserName }}</b>
|
<b class="text-18px mr-10px" style="line-height: 36px">
|
||||||
|
{{ item.operateUserName }}
|
||||||
|
</b>
|
||||||
|
<DictTag type="intention_state" :value="item.intentionState + ''" />
|
||||||
</div>
|
</div>
|
||||||
<div>{{ item.content }}</div>
|
<div>{{ item.content }}</div>
|
||||||
<div class="flex mt-10px" style="align-items: center">
|
<div class="flex mt-10px" style="align-items: center">
|
||||||
|
|||||||
Reference in New Issue
Block a user