结算页面优化

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

View File

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

View File

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

View File

@ -42,12 +42,12 @@ module.exports = {
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网 // target: `https://test-cc.zhgkxt.com`,//线上环境-南网
// target: `https://z.csgmall.com.cn`, // 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.81:8080`, //韩/
// target: `http://10.40.92.74:8080`,//旭/ // target: `http://10.40.92.74:8080`,//旭/
// target: `http://10.40.92.138:28080`, //帅 // target: `http://10.40.92.138:28080`, //帅
// target: `http://10.40.92.253: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; //1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址target;