|
|
@ -157,16 +157,38 @@ |
|
|
|
<el-table-column prop="phone" label="联系方式" width="120px" /> |
|
|
|
<el-table-column prop="phone" label="联系方式" width="120px" /> |
|
|
|
<el-table-column prop="signUserName" label="登记人" min-width="90" /> |
|
|
|
<el-table-column prop="signUserName" label="登记人" min-width="90" /> |
|
|
|
<el-table-column prop="dealDate" label="成交日期" width="120px" :formatter="dateFormatter" /> |
|
|
|
<el-table-column prop="dealDate" label="成交日期" width="120px" :formatter="dateFormatter" /> |
|
|
|
<el-table-column |
|
|
|
<el-table-column prop="createTime" label="支出日期" width="140px"> |
|
|
|
prop="createTime" |
|
|
|
<template #default="{ row, col }"> |
|
|
|
label="支出日期" |
|
|
|
<el-date-picker |
|
|
|
width="120px" |
|
|
|
v-if="row.edit" |
|
|
|
:formatter="dateFormatter" |
|
|
|
v-model="row.createTime" |
|
|
|
/> |
|
|
|
type="date" |
|
|
|
|
|
|
|
size="small" |
|
|
|
|
|
|
|
format="YYYY-MM-DD" |
|
|
|
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
|
|
|
style="width: 110px" |
|
|
|
|
|
|
|
:clearable="false" |
|
|
|
|
|
|
|
placeholder="选择日期" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<div v-else>{{ dateFormatter(row, col, row.createTime) }}</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="signProduct" label="成交产品" min-width="150px" /> |
|
|
|
<el-table-column prop="signProduct" label="成交产品" min-width="150px" /> |
|
|
|
<el-table-column prop="signSpecs" label="成交规格" min-width="150px" /> |
|
|
|
<el-table-column prop="signSpecs" label="成交规格" min-width="150px" /> |
|
|
|
<el-table-column prop="supplier" label="供应商" min-width="150px" /> |
|
|
|
<el-table-column prop="supplier" label="供应商" min-width="150px" /> |
|
|
|
<el-table-column prop="settlementPrice" label="结算单价" min-width="150px" /> |
|
|
|
<el-table-column prop="settlementPrice" label="结算单价" min-width="150px"> |
|
|
|
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
|
|
|
<el-input-number |
|
|
|
|
|
|
|
v-if="row.edit" |
|
|
|
|
|
|
|
v-model="row.settlementPrice" |
|
|
|
|
|
|
|
size="small" |
|
|
|
|
|
|
|
:min="0" |
|
|
|
|
|
|
|
:controls="false" |
|
|
|
|
|
|
|
style="width: 100%" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<div v-else>{{ row.settlementPrice }}</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="settlementNum" label="结算数量" min-width="150px" /> |
|
|
|
<el-table-column prop="settlementNum" label="结算数量" min-width="150px" /> |
|
|
|
<el-table-column prop="settlementMoney" label="结算金额" min-width="150px" /> |
|
|
|
<el-table-column prop="settlementMoney" label="结算金额" min-width="150px" /> |
|
|
|
<el-table-column label="费用备注" width="90px"> |
|
|
|
<el-table-column label="费用备注" width="90px"> |
|
|
@ -199,6 +221,19 @@ |
|
|
|
</el-popover> |
|
|
|
</el-popover> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="操作" width="100px" fixed="right"> |
|
|
|
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
|
|
v-if="row.settlementState == '待结算'" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
text |
|
|
|
|
|
|
|
v-hasPermi="['clue:order:settle-update']" |
|
|
|
|
|
|
|
@click="handleUpdate(row)" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{{ row.edit ? '保存' : '修改' }} |
|
|
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
<Pagination |
|
|
|
<Pagination |
|
|
|
v-model:limit="searchForm.pageSize" |
|
|
|
v-model:limit="searchForm.pageSize" |
|
|
@ -318,6 +353,28 @@ function getSummaries(param) { |
|
|
|
return sums |
|
|
|
return sums |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async function handleUpdate(row) { |
|
|
|
|
|
|
|
if (row.edit) { |
|
|
|
|
|
|
|
// 删除的二次确认 |
|
|
|
|
|
|
|
await message.confirm('是否确认修改结算数据?') |
|
|
|
|
|
|
|
// 保存 |
|
|
|
|
|
|
|
SettleApi.updateSettle({ |
|
|
|
|
|
|
|
settlementId: row.settlementId, |
|
|
|
|
|
|
|
settlementPrice: row.settlementPrice, |
|
|
|
|
|
|
|
createTime: row.createTime |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.then(() => { |
|
|
|
|
|
|
|
message.success('修改成功') |
|
|
|
|
|
|
|
getList() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.finally(() => { |
|
|
|
|
|
|
|
row.edit = false |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
row.edit = true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const selectList = ref([]) |
|
|
|
const selectList = ref([]) |
|
|
|
function handleSelectionChange(val) { |
|
|
|
function handleSelectionChange(val) { |
|
|
|
selectList.value = [...val] |
|
|
|
selectList.value = [...val] |
|
|
|