Browse Source

Merge remote-tracking branch 'origin/master'

master
wangpengfei 7 months ago
parent
commit
898a1540bb
  1. 83
      supervise-report-ui/src/api/project/project.js
  2. 1
      supervise-report-ui/src/components/uploadFile/upload_yanchejianchaTuBiao.vue
  3. 4
      supervise-report-ui/src/views/project/projectDaily.vue
  4. 789
      supervise-report-ui/src/views/projectList/index.vue

83
supervise-report-ui/src/api/project/project.js

@ -158,7 +158,7 @@ export default {
});
},
// 获取项目进度
// 获取项目阶段
getNodeByProjectSid: function(data) {
return request({
url: '/v1/projectphase/getNodeByProjectSid',
@ -167,7 +167,7 @@ export default {
});
},
// 修改项目进度
// 修改项目阶段
updatePhase: function(data) {
return request({
url: '/v1/projectinformation/updatePhase',
@ -176,6 +176,26 @@ export default {
});
},
// 获取用还信记录
getCreditRecord: function(data) {
return request({
url: '/v1/projectcreditbalance/listPage',
method: 'post',
data: data
});
},
// 批量删除用还信记录
delCreditRecord: function(params) {
return request({
url: '/v1/projectcreditbalance/delBySids',
method: 'delete',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
// 保存用还信记录
saveCreditRecord: function(data) {
return request({
@ -195,8 +215,6 @@ export default {
},
// 查询商享通所有仓库
getSxtWarehouses: function(data) {
return request({
@ -224,5 +242,62 @@ export default {
},
// 获取项目进度
getProgress: function(data) {
return request({
url: '/v1/ProjectEnginProg/listPage',
method: 'post',
data: data
});
},
// 批量删除项目进度
delProgress: function(params) {
return request({
url: '/v1/ProjectEnginProg/delete',
method: 'delete',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
// 新增/保存项目进度
saveProgress: function(data) {
return request({
url: '/v1/ProjectEnginProg/save',
method: 'post',
data: data
});
},
// 获取监管日志
getLog: function(data) {
return request({
url: '/v1/ProjectSupervisionLog/listPage',
method: 'post',
data: data
});
},
// 新增/保存监管日志
saveLog: function(data) {
return request({
url: '/v1/ProjectSupervisionLog/save',
method: 'post',
data: data
});
},
// 批量删除项目进度
delLog: function(params) {
return request({
url: '/v1/ProjectSupervisionLog/delete',
method: 'delete',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
}

1
supervise-report-ui/src/components/uploadFile/upload_yanchejianchaTuBiao.vue

@ -150,6 +150,7 @@
this.files.forEach((o) => {
imgFiles.push(o.url)
})
this.$emit('change', this.files)
this.$emit('fileChange', this.files)
},
handleRemove(file, fileList) {

4
supervise-report-ui/src/views/project/projectDaily.vue

@ -628,6 +628,7 @@
var orderDate = row.orderDate
//
// window.open('https://supervise.yxtsoft.com/map365/#/mortgage');
//
// window.open('https://supervise.yxtsoft.com/map365/#/mortgage');
//
@ -657,6 +658,9 @@
window.open('/map365/#/shanhaiGf?projectSid=' + projectSid + '&projectName=' +
projectName +
'&orderDate=' + orderDate);
// window.open('http://192.168.0.112:9532/map365/#/shanhaiGf?projectSid=' + projectSid + '&projectName=' +
// projectName +
// '&orderDate=' + orderDate);
} else {
this.$message({
showClose: true,

789
supervise-report-ui/src/views/projectList/index.vue

@ -46,10 +46,12 @@
<el-table v-loading="listLoading" :data="list" border style="width: 100%;" :row-style="{height: '40px'}">
<!-- <el-table-column type="selection" align="center" width="50"/> -->
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center" />
<el-table-column label="操作" wid align="center" width="400">
<el-table-column label="操作" wid align="center" width="550">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="toProjectProgress(scope.row)">项目进度</el-button>
<el-button type="primary" size="mini" @click="toPhase(scope.row)">项目阶段</el-button>
<el-button type="primary" size="mini" @click="toProgress(scope.row)">项目进度</el-button>
<el-button type="primary" size="mini" @click="toCreditLimit(scope.row)">用还信</el-button>
<el-button type="primary" size="mini" @click="toLog(scope.row)">监管日志</el-button>
<el-button type="primary" size="mini" @click="toReport(scope.row)">项目报告</el-button>
<el-button type="primary" size="mini" @click="toTieUp(scope.row)">关联商享通仓库</el-button>
</template>
@ -78,10 +80,10 @@
<!-- <projectAdd v-show="viewState ==2 || viewState ==3" ref="divAdd" @doback="resetState" @reloadlist="getList" /> -->
<!-- <projectInfo v-show="viewState ==4" ref="divInfo" @doback="resetState" @reloadlist="getList"/> -->
<el-dialog title="项目进度" :close-on-click-modal="false" :visible.sync="dialogShow" width="15%"
<el-dialog title="项目阶段" :close-on-click-modal="false" :visible.sync="dialogShow" width="15%"
:before-close="dialogClose">
<el-select v-model="projectState.nodeValue" placeholder="项目进度" style="margin-top: -30px;"
<el-select v-model="projectState.nodeValue" placeholder="项目阶段" style="margin-top: -30px;"
@change="seleProjectState">
<el-option v-for="item in options" :key="item.nodeKey" :label="item.nodeValue" :value="item.nodeKey">
</el-option>
@ -93,34 +95,179 @@
</span>
</el-dialog>
<el-dialog title="用还信" :close-on-click-modal="false" :visible.sync="dialogShow2" width="60%"
<el-dialog title="项目进度" :close-on-click-modal="false" :visible.sync="dialogShow5" width="60%"
:before-close="dialogClose5">
<div class="step2Item" style="margin-top: -30px;">
<el-input v-model="progressParams.params.name" style="width: 200px;" placeholder="阶段名称" clearable />
<el-button type="primary" style="margin-left: 20px;" @click="getProgressData()">查询</el-button>
<el-button type="primary" style="margin-left: 20px;" @click="addProgress()">添加</el-button>
<el-button type="danger" style="margin-left: 20px;" @click="doProgressDel()">删除</el-button>
</div>
<el-table :data="progressData" border style="width: 98%;margin-left: 15px;margin-top: 10px;"
@selection-change="handleSelectionProgressChange">
<el-table-column fixed width="50" type="selection" align="center" />
<el-table-column label="序号" type="index" width="60" :index="indexMethod" align="center" />
<el-table-column label="操作" wid align="center" width="80">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="doProgressEdit(scope.row)">编辑</el-button>
<!-- <el-button type="danger" size="mini" @click="doProgressDel(scope.$index)">删除</el-button> -->
</template>
</el-table-column>
<el-table-column label="阶段名称" prop="progressDescription" align="center" />
<el-table-column label="发生日期" prop="orderDate" align="center" />
<el-table-column label="下一阶段" prop="nextStage" align="center" />
<el-table-column label="备注" prop="remarks" align="center" />
</el-table>
<div class="pages">
<pagination v-show="progressData.length > 0" :total="progressParams.total" :page.sync="progressParams.current"
:limit.sync="progressParams.size" class="pagination" @pagination="getProgressData" />
</div>
</el-form>
<span slot="footer" class="dialog-footer">
<!-- <el-button @click="dialogClose5"> </el-button> -->
<el-button type="primary" @click="dialogClose5"> </el-button>
</span>
</el-dialog>
<el-dialog title="项目进度" :close-on-click-modal="false" :visible.sync="dialogShow6" width="60%"
:before-close="dialogClose6">
<el-form ref="form_daily" :model="progressInfo" label-position="right" class="formadd" style="margin-top: -30px;">
<el-row class="first_row">
<el-col :span="4" class="tleftb2">
<span>阶段名称</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item>
<el-input v-model="progressInfo.progressDescription" placeholder="阶段名称" style="width:100%"
class="addinputw" clearable />
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb2">
<span>发生日期</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item> <el-date-picker v-model="progressInfo.orderDate" type="date" style="width: 100%;"
placeholder="选择日期" value-format="yyyy-MM-dd" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb2">
<span>下一阶段</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item>
<el-input v-model="progressInfo.nextStage" placeholder="下一阶段" style="width:100%" class="addinputw"
clearable />
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb2">
<span>备注</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item>
<el-form-item> <el-input v-model="progressInfo.remarks" placeholder="备注" style="width:100%"
class="addinputw" clearable /></el-form-item>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb2">
<span>相关附件</span>
</el-col>
<el-col :span="20" class="trightb">
<el-form-item>
<upload style="margin-top: 10px;" ref="uploadImg2" v-model="imgList2" :limit="9" @change="backData2"
bucket="map" :upload-data="{ type: '0001' }"></upload>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogClose6"> </el-button>
<el-button type="primary" @click="saveProgress()"> </el-button>
</span>
</el-dialog>
<el-dialog title="用、还信记录" :close-on-click-modal="false" :visible.sync="dialogShow7" width="60%"
:before-close="dialogClose7">
<div class="step2Item" style="margin-top: -30px;">
<el-input v-model="creditLimitParams.params.money" placeholder="项目名称" style="width:200px" clearable />
<el-button type="primary" style="margin-left: 20px;" @click="getCreditLimit()">查询</el-button>
<el-button type="primary" style="margin-left: 20px;" @click="addCreditLimit1()">添加用信</el-button>
<el-button type="primary" style="margin-left: 20px;" @click="addCreditLimit2()">添加还信</el-button>
<el-button type="danger" style="margin-left: 20px;" @click="doCreditRecordDel()">删除</el-button>
</div>
<el-table :data="creditLimitData" border style="width: 98%;margin-left: 15px;margin-top: 10px;"
@selection-change="handleSelectionCreditRecordChange">
<el-table-column type="selection" align="center" width="50" />
<el-table-column label="序号" type="index" width="60" :index="indexMethod" align="center" />
<el-table-column label="操作" wid align="center" width="80">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="doCreditRecordEdit(scope.row)">编辑</el-button>
</template>
</el-table-column>
<el-table-column label="项目名称" prop="projectname" align="center" />
<el-table-column label="填报日期" prop="tbdate" align="center" />
<el-table-column label="类型" prop="typename" align="center" />
<el-table-column label="金额" prop="money" align="center" />
<el-table-column label="性质" prop="creditNature" align="center" />
<el-table-column label="备注" prop="remarks" align="center" />
</el-table>
<div class="pages">
<pagination v-show="creditLimitData.length > 0" :total="creditLimitParams.total"
:page.sync="creditLimitParams.current" :limit.sync="creditLimitParams.size" class="pagination"
@pagination="getCreditLimit" />
</div>
</el-form>
<span slot="footer" class="dialog-footer">
<!-- <el-button @click="dialogClose7"> </el-button> -->
<el-button type="primary" @click="saveSxtWarehouses()"> </el-button>
</span>
</el-dialog>
<el-dialog title="用、还信" :close-on-click-modal="false" :visible.sync="dialogShow2" width="60%"
:before-close="dialogClose2">
<el-form ref="form_daily" :model="formobj" label-position="right" class="formadd" style="margin-top: -30px;">
<el-form ref="form_daily" :model="creditLimitInfo" label-position="right" class="formadd"
style="margin-top: -30px;">
<el-row class="first_row">
<el-col :span="4" class="tleftb2">
<span>项目名称</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item>
<span>{{formobj.projectname}}</span>
<span>{{creditLimitInfo.projectname}}</span>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb2">
<span>填报日期</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item> <el-date-picker v-model="formobj.tbdate" type="date" style="width: 100%;" placeholder="选择日期"
value-format="yyyy-MM-dd" /></el-form-item>
<el-form-item> <el-date-picker v-model="creditLimitInfo.tbdate" type="date" style="width: 100%;"
placeholder="选择日期" value-format="yyyy-MM-dd" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb2">
<span>类型</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item>
<el-radio-group v-model="radio" @change="radioChange">
<el-radio-group v-model="creditLimitInfo.type" :disabled="true">
<el-radio :label="1">用信</el-radio>
<el-radio :label="2">还信</el-radio>
</el-radio-group>
@ -131,13 +278,49 @@
</el-col>
<el-col :span="8" class="trightb">
<el-form-item>
<el-form-item> <el-input v-model="formobj.money" placeholder="请输入金额" style="width:100%" class="addinputw"
<el-form-item> <el-input v-model="creditLimitInfo.money" placeholder="请输入金额" style="width:100%"
class="addinputw"
oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
clearable /></el-form-item>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb2">
<span>预计到货日期</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item> <el-date-picker v-model="creditLimitInfo.expectedDeliveryDate" type="date"
style="width: 100%;" placeholder="选择日期" value-format="yyyy-MM-dd" /></el-form-item>
</el-col>
<el-col :span="4" class="tleftb2">
<span>预计完工日期</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item>
<el-form-item> <el-date-picker v-model="creditLimitInfo.expectedCompletionDate" type="date"
style="width: 100%;" placeholder="选择日期" value-format="yyyy-MM-dd" /></el-form-item>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb2">
<span>性质</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item>
<el-input v-model="creditLimitInfo.creditNature" placeholder="性质" style="width:100%" class="addinputw"
clearable />
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb2">
<span>备注</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item> <el-input v-model="creditLimitInfo.remarks" placeholder="请输入备注" style="width:100%"
class="addinputw" clearable /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb2">
<span>附件</span>
@ -150,20 +333,110 @@
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogClose2"> </el-button>
<el-button type="primary" @click="saveFormobj()"> </el-button>
</span>
</el-dialog>
<el-dialog title="监管日志记录" :close-on-click-modal="false" :visible.sync="dialogShow8" width="60%"
:before-close="dialogClose8">
<div class="step2Item" style="margin-top: -30px;">
<el-input v-model="logParams.params.name" placeholder="工作名称" style="width:200px" clearable />
<el-button type="primary" style="margin-left: 20px;" @click="getLogData()">查询</el-button>
<el-button type="primary" style="margin-left: 20px;" @click="addLog()">添加</el-button>
<el-button type="danger" style="margin-left: 20px;" @click="doLogDel()">删除</el-button>
</div>
<el-table :data="logData" border style="width: 98%;margin-left: 15px;margin-top: 10px;"
@selection-change="handleSelectionLogChange">
<el-table-column fixed width="50" type="selection" align="center" />
<el-table-column label="序号" type="index" width="60" :index="indexMethod" align="center" />
<el-table-column label="操作" wid align="center" width="80">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="doLogEdit(scope.row)">编辑</el-button>
</template>
</el-table-column>
<el-table-column label="工作名称" prop="regulatoryWork" align="center" />
<el-table-column label="日期" prop="orderDate" align="center" />
<el-table-column label="下一步工作安排" prop="workArrangement" align="center" />
<el-table-column label="备注" prop="remarks" align="center" />
</el-table>
<div class="pages">
<pagination v-show="logData.length > 0" :total="logParams.total" :page.sync="logParams.current"
:limit.sync="logParams.size" class="pagination" @pagination="getLogData" />
</div>
</el-form>
<span slot="footer" class="dialog-footer">
<!-- <el-button @click="dialogClose8"> </el-button> -->
<el-button type="primary" @click="dialogClose8()"> </el-button>
</span>
</el-dialog>
<el-dialog title="监管日志" :close-on-click-modal="false" :visible.sync="dialogShow9" width="60%"
:before-close="dialogClose9">
<el-form ref="form_daily" :model="logInfo" label-position="right" class="formadd" style="margin-top: -30px;">
<el-row class="first_row">
<el-col :span="4" class="tleftb2">
<span>工作名称</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item>
<el-input v-model="logInfo.regulatoryWork" placeholder="工作名称" style="width:100%" class="addinputw"
clearable />
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb2">
<span>日期</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item> <el-date-picker v-model="logInfo.orderDate" type="date" style="width: 100%;"
placeholder="选择日期" value-format="yyyy-MM-dd" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb2">
<span>下一工作安排</span>
</el-col>
<el-col :span="8" class="trightb">
<el-form-item>
<el-input v-model="logInfo.workArrangement" placeholder="下一工作安排" style="width:100%" class="addinputw"
clearable />
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb2">
<span>备注</span>
</el-col>
<el-col :span="20" class="trightb">
<el-form-item> <el-input v-model="formobj.remarks" placeholder="请输入备注" style="width:100%" class="addinputw"
clearable /></el-form-item>
<el-col :span="8" class="trightb">
<el-form-item>
<el-form-item> <el-input v-model="logInfo.remarks" placeholder="备注" style="width:100%" class="addinputw"
clearable /></el-form-item>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb2">
<span>相关附件</span>
</el-col>
<el-col :span="20" class="trightb">
<el-form-item>
<upload style="margin-top: 10px;" ref="uploadImg2" v-model="imgList3" :limit="9" @change="backData3"
bucket="map" :upload-data="{ type: '0001' }"></upload>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogClose2"> </el-button>
<el-button type="primary" @click="saveFormobj()"> </el-button>
<el-button @click="dialogClose9"> </el-button>
<el-button type="primary" @click="saveLog()"> </el-button>
</span>
</el-dialog>
@ -325,6 +598,11 @@
dialogShow2: false,
dialogShow3: false,
dialogShow4: false,
dialogShow5: false,
dialogShow6: false,
dialogShow7: false,
dialogShow8: false,
dialogShow9: false,
options: [],
projectState: {
sid: "",
@ -332,17 +610,10 @@
nodeValue: ""
},
radio: 1,
formobj: {
usersid: window.sessionStorage.getItem('userSid'),
projectname: "",
projectsid: "",
tbdate: "",
type: 1,
money: "",
pzfiles: [],
remarks: ""
},
imgList: [],
imgList2: [],
imgList3: [],
imgList4: [],
updateAction: process.env.VUE_APP_BASE_API + '/projectdaily/uploadfile',
uploadFileList: [],
reportFileList: [],
@ -359,6 +630,72 @@
typeValue: '',
reportList: [],
},
progressParams: {
current: 1,
size: 10,
params: {
name: '',
projectSid: ""
},
total: 0
},
progressData: [],
progressSids: [],
progressInfo: {
projectSid: '',
progressDescription: '',
nextStage: '',
orderDate: '',
remarks: '',
urls: []
},
creditLimitParams: {
current: 1,
size: 10,
params: {
name: '',
projectsid: ""
},
total: 0
},
creditLimitData: [],
creditRecordSids: [],
creditRecordList: [],
creditLimitInfo: {
usersid: window.sessionStorage.getItem('userSid'),
projectname: "",
projectsid: '',
tbdate: "",
expectedCompletionDate: "",
expectedDeliveryDate: "",
creditNature: "",
type: 1,
money: "",
pzfiles: [],
remarks: "",
psid: ""
},
logParams: {
current: 1,
size: 10,
params: {
name: '',
projectSid: ""
},
total: 0
},
logData: [],
logSids: [],
logInfo: {
projectSid: '',
regulatoryWork: '',
workArrangement: '',
orderDate: '',
remarks: '',
urls: []
}
}
},
mounted() {
@ -375,7 +712,7 @@
this.projectState.nodeValue = choose[0].nodeValue
this.projectState.nodeKey = choose[0].nodeKey
},
toProjectProgress(row) {
toPhase(row) {
this.projectState = {
sid: row.sid,
@ -411,49 +748,176 @@
},
toCreditLimit(row) {
this.formobj.projectsid = row.sid
this.formobj.projectname = row.entryName
this.creditLimitParams.params.projectsid = row.sid
this.creditLimitParams.params.projectname = row.entryName
this.creditLimitInfo.projectsid = row.sid
this.creditLimitInfo.projectname = row.entryName
this.dialogShow7 = true
this.getCreditLimit()
},
getCreditLimit() {
req.getCreditRecord(this.creditLimitParams).then((response) => {
console.log(">>>>>>>>>getCreditLimit", response.data)
if (response.success) {
this.creditLimitData = response.data.records
this.creditLimitParams.total = response.data.total
} else {
this.creditLimitData = []
this.creditLimitParams.total = 0
}
})
},
dialogClose7() {
this.dialogShow7 = false
},
addCreditLimit1() {
this.dialogShow2 = true
this.creditLimitInfo.type = 1
},
addCreditLimit2() {
if (this.creditRecordSids.length != 1) {
this.$message({
showClose: true,
type: 'warning',
message: '请选择一条记录进行操作'
})
return
}
if (this.creditRecordList[0].type != '1') {
this.$message({
showClose: true,
type: 'warning',
message: '请选择用信记录进行还信操作'
})
return
}
this.creditLimitInfo.psid = this.creditRecordSids[0]
this.creditLimitInfo.type = 2
this.creditLimitInfo.projectsid = this.creditRecordList[0].projectsid
this.creditLimitInfo.projectname = this.creditRecordList[0].projectname
this.dialogShow2 = true
},
handleSelectionCreditRecordChange(val) {
console.log("val", val);
const aa = []
val.forEach(element => {
aa.push(element.sid)
})
this.creditRecordList = val
this.creditRecordSids = aa
},
doCreditRecordEdit(row) {
this.creditLimitInfo = row
this.imgList = []
for (var i = 0; i < this.creditLimitInfo.pzfiles.length; i++) {
this.imgList.push({
url: this.creditLimitInfo.pzfiles[i]
})
}
this.dialogShow2 = true
},
doCreditRecordDel() {
if (this.creditRecordSids.length > 0) {
const tip = '请确认是否删除所选记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
req.delCreditRecord(this.creditRecordSids).then((response) => {
if (response.success) {
this.$message({
showClose: true,
type: 'success',
message: '删除成功'
})
this.getCreditLimit()
} else {
this.$message({
showClose: true,
type: 'error',
message: '删除失败'
})
}
})
})
} else {
this.$message({
showClose: true,
type: 'warning',
message: '请至少选择一条记录进行删除操作'
})
}
},
dialogClose2() {
console.log("formobj", this.formobj)
console.log("creditLimitInfo", this.creditLimitInfo)
this.dialogShow2 = false
this.imgList = []
this.creditLimitInfo = {
usersid: window.sessionStorage.getItem('userSid'),
projectname: this.creditLimitParams.params.projectname,
projectsid: this.creditLimitParams.params.projectsid,
tbdate: "",
expectedCompletionDate: "",
expectedDeliveryDate: "",
creditNature: "",
type: 1,
money: "",
pzfiles: [],
remarks: "",
psid: ""
}
},
radioChange(val) {
console.log("radioChange", val)
this.formobj.type = val
this.creditLimitInfo.creditNature = val
},
backData(value) {
console.log(value, 999)
console.log("imgList", this.imgList)
const aa = []
this.creditLimitInfo.pzfiles = []
if (value.length > 0 && value != null && value != undefined) {
for (var i = 0; i < value.length; i++) {
aa.push(value[i].url)
}
}
this.formobj.pzfiles = aa
this.creditLimitInfo.pzfiles = aa
},
saveFormobj() {
console.log("formobj", this.formobj)
console.log("creditLimitInfo", this.creditLimitInfo)
req.saveCreditRecord(this.formobj).then((res) => {
req.saveCreditRecord(this.creditLimitInfo).then((res) => {
console.log(">>>>>>>>>saveCreditRecord", res.data)
this.dialogShow2 = false
this.imgList = []
this.formobj = {
this.getCreditLimit()
this.creditLimitInfo = {
usersid: window.sessionStorage.getItem('userSid'),
projectname: "",
projectsid: "",
projectname: this.creditLimitParams.params.projectname,
projectsid: this.creditLimitParams.params.projectsid,
tbdate: "",
expectedCompletionDate: "",
expectedDeliveryDate: "",
creditNature: "",
type: 1,
money: "",
pzfiles: [],
remarks: ""
remarks: "",
psid: ""
}
})
@ -763,7 +1227,252 @@
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
},
toProgress(row) {
this.progressParams.params.projectSid = row.sid
this.progressInfo.projectSid = row.sid
this.dialogShow5 = true
this.getProgressData()
},
getProgressData() {
req.getProgress(this.progressParams).then((response) => {
console.log(">>>>>>>>>toProgress", response.data)
if (response.success) {
this.progressData = response.data.records
this.progressParams.total = response.data.total
} else {
this.progressData = []
this.progressParams.total = 0
}
})
},
dialogClose5() {
this.dialogShow5 = false
},
addProgress() {
this.dialogShow6 = true
},
handleSelectionProgressChange(val) {
console.log("val", val);
const aa = []
val.forEach(element => {
aa.push(element.sid)
})
this.progressSids = aa
},
doProgressEdit(row) {
this.progressInfo = row
for (var i = 0; i < this.progressInfo.urls.length; i++) {
this.imgList2.push({
url: this.progressInfo.urls[i]
})
}
console.log("this.imgList2", this.imgList2)
this.dialogShow6 = true
},
doProgressDel(index) {
if (this.progressSids.length > 0) {
const tip = '请确认是否删除所选记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
req.delProgress(this.progressSids).then((response) => {
if (response.success) {
this.$message({
showClose: true,
type: 'success',
message: '删除成功'
})
this.getProgressData()
} else {
this.$message({
showClose: true,
type: 'error',
message: '删除失败'
})
}
})
})
} else {
this.$message({
showClose: true,
type: 'warning',
message: '请至少选择一条记录进行删除操作'
})
}
},
backData2(value) {
console.log(value, 999)
console.log("imgList", this.imgList2)
const aa = []
this.progressInfo.urls = []
if (value.length > 0 && value != null && value != undefined) {
for (var i = 0; i < value.length; i++) {
aa.push(value[i].url)
}
}
this.progressInfo.urls = aa
},
saveProgress() {
req.saveProgress(this.progressInfo).then((res) => {
this.dialogShow6 = false
this.getProgressData()
this.progressInfo = {
projectSid: this.progressParams.params.projectSid,
progressDescription: '',
nextStage: '',
orderDate: '',
remarks: '',
urls: []
}
this.imgList2 = []
})
},
dialogClose6() {
this.dialogShow6 = false
this.progressInfo = {
projectSid: this.progressParams.params.projectSid,
progressDescription: '',
nextStage: '',
orderDate: '',
remarks: '',
urls: []
}
this.imgList2 = []
},
toLog(row) {
this.logParams.params.projectSid = row.sid
this.logInfo.projectSid = row.sid
this.dialogShow8 = true
this.getLogData()
},
getLogData() {
req.getLog(this.logParams).then((response) => {
console.log(">>>>>>>>>toLog", response.data)
if (response.success) {
this.logData = response.data.records
this.logParams.total = response.data.total
} else {
this.logData = []
this.logParams.total = 0
}
})
},
dialogClose8() {
this.dialogShow8 = false
},
addLog(row) {
this.dialogShow9 = true
},
handleSelectionLogChange(val) {
console.log("val", val);
const aa = []
val.forEach(element => {
aa.push(element.sid)
})
this.logSids = aa
},
doLogEdit(row) {
this.logInfo = row
for (var i = 0; i < this.logInfo.urls.length; i++) {
this.imgList3.push({
url: this.logInfo.urls[i]
})
}
console.log("this.imgList3", this.imgList3)
this.dialogShow9 = true
},
doLogDel() {
if (this.logSids.length > 0) {
const tip = '请确认是否删除所选记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
req.delLog(this.logSids).then((response) => {
if (response.success) {
this.$message({
showClose: true,
type: 'success',
message: '删除成功'
})
this.getLogData()
} else {
this.$message({
showClose: true,
type: 'error',
message: '删除失败'
})
}
})
})
} else {
this.$message({
showClose: true,
type: 'warning',
message: '请至少选择一条记录进行删除操作'
})
}
},
backData3(value) {
console.log(value, 999)
console.log("imgList", this.imgList3)
const aa = []
this.logInfo.urls = []
if (value.length > 0 && value != null && value != undefined) {
for (var i = 0; i < value.length; i++) {
aa.push(value[i].url)
}
}
this.logInfo.urls = aa
},
saveLog() {
req.saveLog(this.logInfo).then((res) => {
this.dialogShow9 = false
this.getLogData()
this.logInfo = {
projectSid: this.logParams.params.projectSid,
regulatoryWork: '',
workArrangement: '',
orderDate: '',
remarks: '',
urls: []
}
this.imgList3 = []
})
},
dialogClose9() {
this.dialogShow9 = false
this.logInfo = {
projectSid: this.logParams.params.projectSid,
regulatoryWork: '',
workArrangement: '',
orderDate: '',
remarks: '',
urls: []
}
this.imgList3 = []
},
}
}
</script>

Loading…
Cancel
Save