结算页面优化
This commit is contained in:
parent
7f73be6fd7
commit
25137a0fb4
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
},
|
},
|
||||||
/** 关闭弹框 */
|
/** 关闭弹框 */
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue