结算页面优化

This commit is contained in:
BianLzhaoMin 2024-07-29 11:49:26 +08:00
parent 7f73be6fd7
commit 25137a0fb4
4 changed files with 57 additions and 23 deletions

View File

@ -295,8 +295,7 @@
size="mini"
type="primary"
v-if="
(scope.row.manageType == 1 ||
scope.row.manageType == 2) &&
scope.row.manageType == 1 &&
scope.row.status != 2
"
@click="numOut(scope.row)"
@ -389,7 +388,9 @@
align="center"
width="80"
type="index"
:index="indexContinuation(outQuery.pageNum, outQuery.pageSize)"
:index="
indexContinuation(outQuery.pageNum, outQuery.pageSize)
"
>
<!-- <template slot-scope="scope">
<span>{{
@ -591,7 +592,7 @@ export default {
},
numOutForm: {
//-
carCode: undefined,
carCode: '',
},
outQuery: {
//-
@ -602,6 +603,7 @@ export default {
outTotal: 0, //-
outCodeList: [], //
outNumList: [], //
leaseType: '', // 0 1
}
},
created() {
@ -707,6 +709,7 @@ export default {
this.openLeaseDevices = true
this.isView = false
this.dialogQuery.id = row.id
this.leaseType = row.leaseType
this.resetDialogQuery()
// this.getDialogList()
},
@ -785,9 +788,12 @@ export default {
parentId: this.outObj.parentId,
outNum: 1,
taskId: this.outObj.taskId,
leaseType: this.leaseType,
}
return obj
})
// console.log(params, '')
// console.log(params)
submitOut(params).then((response) => {
this.$modal.msgSuccess('出库成功')
@ -802,7 +808,9 @@ export default {
//
saveNumOut() {
this.outNumList[0].carCode = this.numOutForm.carCode
this.outNumList[0].leaseType = this.leaseType
let param = this.outNumList
// console.log(param, '')
submitNumOut(param).then((response) => {
this.$modal.msgSuccess('出库成功')
this.openNum = false

View File

@ -7,6 +7,7 @@
:rules="queryRules"
:inline="true"
v-show="showSearch"
label-width="100px"
>
<el-row>
<el-form-item label="退料单位" prop="unitId">
@ -51,6 +52,7 @@
<el-input
v-model="queryParams.agreementCode"
disabled
style="width: 240px"
></el-input>
</el-form-item>
<el-form-item label="物品类型" prop="status">
@ -62,6 +64,7 @@
@change="deviceTypeChange"
ref="deviceTypeCascader"
filterable
style="width: 240px"
></el-cascader>
</el-form-item>
<el-form-item label="退料人" prop="backPerson">
@ -70,6 +73,7 @@
placeholder="请输入退料人"
clearable
@keyup.enter.native="handleQuery"
style="width: 240px"
/>
</el-form-item>
<el-form-item label="退料时间" prop="backTime">
@ -78,6 +82,7 @@
type="date"
value-format="yyyy-MM-dd"
placeholder="选择时间"
style="width: 240px"
>
</el-date-picker>
</el-form-item>
@ -493,7 +498,10 @@ export default {
// }
if (this.rejectId) {
this.rowId = this.rejectId
this.GetViewByApply({ id: this.rejectId, agreementId: this.agreementId})
this.GetViewByApply({
id: this.rejectId,
agreementId: this.agreementId,
})
}
getInfo().then((res) => {
this.companyId = res.user.companyId
@ -559,7 +567,10 @@ export default {
//
async GetViewByApply(params) {
const res = await materialReturnNoteByApply({ id: params.id, agreementId: params.agreementId})
const res = await materialReturnNoteByApply({
id: params.id,
agreementId: params.agreementId,
})
const data = res.data[0]
// console.log(data)
// this.queryParams.taskId = data.taskId

View File

@ -80,7 +80,6 @@
</el-form>
<el-table
v-loading="loading"
:data="agreementList"
border
@selection-change="handleSelectionChange"
@ -117,21 +116,29 @@
show-overflow-tooltip
/>
<el-table-column
label="合计费用"
label="累计结算费用"
align="center"
prop="cost"
show-overflow-tooltip
/>
<el-table-column
label="结算状态"
align="center"
prop="sltStatus"
show-overflow-tooltip
>
<template slot-scope="scope">
<span v-if="scope.row.sltStatus == '1'">未结算</span>
<el-table-column label="结算状态" align="center">
<template slot-scope="{ row }">
<!-- <span v-if="scope.row.sltStatus == '1'">未结算</span>
<span v-if="scope.row.sltStatus == '2'">已结算</span>
<span v-if="scope.row.sltStatus == '3'">待审核</span>
<span v-if="scope.row.sltStatus == '3'">待审核</span> -->
<el-tag
type="warning"
size="mini"
v-if="row.sltStatus == 1"
>结算中</el-tag
>
<el-tag
type="success"
size="mini"
style="margin-left: 8px"
v-if="row.sltStatus == 2"
>已结算</el-tag
>
</template>
</el-table-column>
<el-table-column label="操作" align="center">
@ -200,7 +207,7 @@ export default {
data() {
return {
//
loading: true,
// loading: true,
//
ids: [],
//
@ -217,12 +224,15 @@ export default {
projectList: [],
statusList: [
{ id: '0', name: '请选择' },
{ id: '1', name: '结算' },
{ id: '1', name: '结算' },
{ id: '2', name: '已结算' },
{ id: '3', name: '待审核' },
], //
//
agreementList: [],
agreementList: [
{
agreementCode: '测试',
},
],
//
title: '',
//
@ -320,6 +330,11 @@ export default {
handleBatchExport() {
console.log('批量导出月结明细表')
if (this.ids.length < 1) {
this.$message.error('请勾选需要导出的数据!')
return
}
this.exportDialogVisible = true
},
/** 关闭弹框 */

View File

@ -42,12 +42,12 @@ module.exports = {
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
// target: `https://z.csgmall.com.cn`,
// target: `http://192.168.2.167:28080`, //超
target: `http://192.168.2.134:39080`, //超
// target: `http://10.40.92.81:8080`, //韩/
// target: `http://10.40.92.74:8080`,//旭/
// target: `http://10.40.92.138:28080`, //帅
// target: `http://10.40.92.253:28080`, //福
target: `http://192.168.2.120:39080`, //跃
// target: `http://192.168.2.120:39080`, //跃
//******** 注意事项 ********* */
//1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址target;