|
@@ -22,10 +22,11 @@
|
|
</template>
|
|
</template>
|
|
<template slot="right">
|
|
<template slot="right">
|
|
<ws-select
|
|
<ws-select
|
|
- v-model="deptBudgetList.crtDutyId"
|
|
|
|
|
|
+ v-model="searchTypeText"
|
|
placeholder=""
|
|
placeholder=""
|
|
class="typeselect"
|
|
class="typeselect"
|
|
@change="selecttaskType"
|
|
@change="selecttaskType"
|
|
|
|
+ :value="searchType"
|
|
>
|
|
>
|
|
<ws-option
|
|
<ws-option
|
|
v-for="item in taskTypeList"
|
|
v-for="item in taskTypeList"
|
|
@@ -76,7 +77,7 @@
|
|
:data="contractList.records"
|
|
:data="contractList.records"
|
|
style="width: 100%; margin-top: 10px"
|
|
style="width: 100%; margin-top: 10px"
|
|
>
|
|
>
|
|
- <el-table-column type="index" />
|
|
|
|
|
|
+ <el-table-column type="index" label="序号" />
|
|
<el-table-column prop="contractNo" label="合同编号" width="80">
|
|
<el-table-column prop="contractNo" label="合同编号" width="80">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="goodsName" label="货名" width="80">
|
|
<el-table-column prop="goodsName" label="货名" width="80">
|
|
@@ -92,8 +93,32 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="status" label="状态">
|
|
<el-table-column prop="status" label="状态">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span>{{ scope.row.status }}</span>
|
|
|
|
- <i class="el-icon-edit" @click.stop="editClick(item, index)"></i>
|
|
|
|
|
|
+ <el-popover
|
|
|
|
+ placement="left"
|
|
|
|
+ :width="400"
|
|
|
|
+ trigger="click"
|
|
|
|
+ @show="history(scope.row)"
|
|
|
|
+ >
|
|
|
|
+ <template #reference>
|
|
|
|
+ <span>{{ scope.row.status }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ <div>
|
|
|
|
+ <p>操作历史</p>
|
|
|
|
+ <div v-for="(item, index) in historyList">
|
|
|
|
+ <div class="vertical-circle"></div>
|
|
|
|
+ <div class="vertical-text">
|
|
|
|
+ {{ item.operateUser }}{{ item.dealMsg }}<br />{{
|
|
|
|
+ item.updateDate
|
|
|
|
+ }}
|
|
|
|
+ </div>
|
|
|
|
+ <div
|
|
|
|
+ v-if="index != historyList.length - 1"
|
|
|
|
+ class="vertical-line"
|
|
|
|
+ ></div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-popover>
|
|
|
|
+ <i class="el-icon-edit" @click="editClick(scope.row)"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="signingDate" label="签订日期"> </el-table-column>
|
|
<el-table-column prop="signingDate" label="签订日期"> </el-table-column>
|
|
@@ -121,6 +146,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
|
|
+
|
|
<!-- 附件弹框 -->
|
|
<!-- 附件弹框 -->
|
|
<!-- <WinseaContentModal
|
|
<!-- <WinseaContentModal
|
|
v-model="accessoryTFs"
|
|
v-model="accessoryTFs"
|
|
@@ -145,9 +171,14 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { getList, export1 } from '@/model/contarct/index'
|
|
|
|
|
|
+import {
|
|
|
|
+ getList,
|
|
|
|
+ export1,
|
|
|
|
+ editstatus,
|
|
|
|
+ billoperatehis,
|
|
|
|
+} from '@/model/contarct/index'
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
-import { dayjs, fmoney } from 'base-core-lib'
|
|
|
|
|
|
+import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
export default {
|
|
export default {
|
|
name: 'viewSpareMoney',
|
|
name: 'viewSpareMoney',
|
|
watch: {
|
|
watch: {
|
|
@@ -174,7 +205,9 @@ export default {
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
searchType: 1,
|
|
searchType: 1,
|
|
|
|
+ searchTypeText: '未完成',
|
|
searchKeyWord: '',
|
|
searchKeyWord: '',
|
|
|
|
+ contractType: 2,
|
|
startDate: null,
|
|
startDate: null,
|
|
endDate: null,
|
|
endDate: null,
|
|
// 提交类型
|
|
// 提交类型
|
|
@@ -185,6 +218,7 @@ export default {
|
|
},
|
|
},
|
|
contractList: [],
|
|
contractList: [],
|
|
deptBudgetList: {},
|
|
deptBudgetList: {},
|
|
|
|
+ historyList: [],
|
|
pickerBeginDateBefore: {
|
|
pickerBeginDateBefore: {
|
|
disabledDate: (time) => {
|
|
disabledDate: (time) => {
|
|
return time.getTime() > Date.now()
|
|
return time.getTime() > Date.now()
|
|
@@ -192,14 +226,13 @@ export default {
|
|
},
|
|
},
|
|
accessoryTFs: false,
|
|
accessoryTFs: false,
|
|
taskTypeList: [
|
|
taskTypeList: [
|
|
- { value: '未完成(默认)', type: 1 },
|
|
|
|
|
|
+ { value: '未完成', type: 1 },
|
|
{ value: '已完成', type: 2 },
|
|
{ value: '已完成', type: 2 },
|
|
- { value: '待回款', type: 3 },
|
|
|
|
{ value: '全部合同', type: '' },
|
|
{ value: '全部合同', type: '' },
|
|
],
|
|
],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
|
|
+ mounted() {
|
|
//cg.viewBudget
|
|
//cg.viewBudget
|
|
//cg.viewSpareMoney
|
|
//cg.viewSpareMoney
|
|
// this.getVesselData();
|
|
// this.getVesselData();
|
|
@@ -210,6 +243,7 @@ export default {
|
|
getList() {
|
|
getList() {
|
|
getList({
|
|
getList({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ contractType: this.contractType,
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
searchType: this.searchType,
|
|
searchType: this.searchType,
|
|
@@ -222,6 +256,36 @@ export default {
|
|
this.contractList = response
|
|
this.contractList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ editClick(row) {
|
|
|
|
+ var status = ''
|
|
|
|
+ if (row.status == '待执行' || row.status == '已完成') {
|
|
|
|
+ status = '执行中'
|
|
|
|
+ } else if (row.status == '执行中') {
|
|
|
|
+ status = '已完成'
|
|
|
|
+ }
|
|
|
|
+ this.$confirm(`是否将状态改为${status}`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ editstatus({ id: row.id })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$notify.success({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '状态修改成功',
|
|
|
|
+ })
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
|
|
+ .catch((response) => {
|
|
|
|
+ // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ return false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
selecttaskType(e) {
|
|
selecttaskType(e) {
|
|
for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
if (this.taskTypeList[i].value == e) {
|
|
if (this.taskTypeList[i].value == e) {
|
|
@@ -244,7 +308,11 @@ export default {
|
|
this.appendixIdss = row.receiveAttachmentPath
|
|
this.appendixIdss = row.receiveAttachmentPath
|
|
},
|
|
},
|
|
handleExamine(row) {
|
|
handleExamine(row) {
|
|
- this.$router.push({ path: 'purchaseContractExamine' })
|
|
|
|
|
|
+ console.log(row)
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name: 'purchaseContractExamine',
|
|
|
|
+ params: { id: row.id },
|
|
|
|
+ })
|
|
},
|
|
},
|
|
handleAdd() {
|
|
handleAdd() {
|
|
this.$router.push({ path: 'purchaseContractAdd' })
|
|
this.$router.push({ path: 'purchaseContractAdd' })
|
|
@@ -256,11 +324,22 @@ export default {
|
|
handleClose() {
|
|
handleClose() {
|
|
this.dialogViewSpareMoney = false
|
|
this.dialogViewSpareMoney = false
|
|
},
|
|
},
|
|
- find() {},
|
|
|
|
|
|
+ history(row) {
|
|
|
|
+ console.log(row)
|
|
|
|
+ billoperatehis({ id: row.id })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.historyList = response
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ find() {
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
async exportlist() {
|
|
async exportlist() {
|
|
const { data } = await export1(
|
|
const { data } = await export1(
|
|
{
|
|
{
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ contractType: this.contractType,
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
searchType: this.searchType,
|
|
searchType: this.searchType,
|
|
@@ -283,6 +362,34 @@ export default {
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
+.vertical-line {
|
|
|
|
+ height: 100px;
|
|
|
|
+ border-left: 2px solid;
|
|
|
|
+ margin-left: 4px;
|
|
|
|
+ // border-image: -webkit-linear-gradient(#00eba7, #08b8e6) 30 30;
|
|
|
|
+ // border-image: -moz-linear-gradient(#00eba7, #08b8e6) 30 30;
|
|
|
|
+ // border-image: linear-gradient(#00eba7, #08b8e6) 30 30;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.vertical-circle {
|
|
|
|
+ float: left;
|
|
|
|
+ width: 10px;
|
|
|
|
+ height: 10px;
|
|
|
|
+ border: 2px solid white;
|
|
|
|
+ background-color: #08b8e6;
|
|
|
|
+ -webkit-border-radius: 100px;
|
|
|
|
+}
|
|
|
|
+.vertical-circle:first-child {
|
|
|
|
+ color: red;
|
|
|
|
+}
|
|
|
|
+.vertical-text {
|
|
|
|
+ float: left;
|
|
|
|
+ margin-top: -7px;
|
|
|
|
+}
|
|
|
|
+/deep/.el-table .el-table__header .cell,
|
|
|
|
+/deep/.el-table .el-table__body .cell {
|
|
|
|
+ text-align: center;
|
|
|
|
+}
|
|
.typeselect {
|
|
.typeselect {
|
|
width: 500px;
|
|
width: 500px;
|
|
}
|
|
}
|
|
@@ -315,7 +422,6 @@ export default {
|
|
margin: 10px 20px;
|
|
margin: 10px 20px;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
-
|
|
|
|
p {
|
|
p {
|
|
margin: 8px 0px;
|
|
margin: 8px 0px;
|
|
span {
|
|
span {
|