sc
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
<el-divider direction="horizontal" content-position="left">
|
||||
其他费用<span v-if="extraTotalPrice">,应收:{{ extraTotalPrice }}</span>
|
||||
</el-divider>
|
||||
<el-table :data="orderInfo.extraPay" border stripe>
|
||||
<el-table :data="orderInfo.otherPay" border stripe>
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column prop="extraPayType" label="费用项" />
|
||||
<el-table-column prop="extraPayMoney" label="金额" />
|
||||
@@ -110,7 +110,8 @@ const show = ref(false)
|
||||
const clueInfo = ref({})
|
||||
const orderInfo = ref({
|
||||
signProducts: [],
|
||||
extraPay: []
|
||||
extraPay: [],
|
||||
otherPay: []
|
||||
})
|
||||
const returnRecordList = ref([])
|
||||
const aftersaleList = ref([])
|
||||
@@ -127,7 +128,7 @@ const prodTotalPrice = computed(() => {
|
||||
|
||||
// 其他费用
|
||||
const extraTotalPrice = computed(() => {
|
||||
return orderInfo.value.extraPay.reduce((pre, cur) => pre + cur.extraPayMoney, 0)
|
||||
return orderInfo.value.otherPay?.reduce((pre, cur) => pre + cur.extraPayMoney, 0)
|
||||
})
|
||||
|
||||
// 额外支出
|
||||
|
||||
@@ -160,16 +160,7 @@ async function getList() {
|
||||
loading.value = true
|
||||
try {
|
||||
let params = { ...removeNullField(searchForm.value) }
|
||||
if (params.remarkDate && params.remarkDate.length === 2) {
|
||||
params.remarkDateStart = params.remarkDate[0] + ' 00:00:00'
|
||||
params.remarkDateEnd = params.remarkDate[1] + ' 23:59:59'
|
||||
delete params.remarkDate
|
||||
}
|
||||
if (params.signDate && params.signDate.length === 2) {
|
||||
params.signDateStart = params.signDate[0] + ' 00:00:00'
|
||||
params.signDateEnd = params.signDate[1] + ' 23:59:59'
|
||||
delete params.signDate
|
||||
}
|
||||
|
||||
const data = await getClueRemarkPage(params)
|
||||
tableList.value = data.list
|
||||
total.value = data.total
|
||||
|
||||
Reference in New Issue
Block a user