123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674 |
- <template>
- <fullscreen :fullscreen.sync="fullscreen" class="container">
- <div class="container-box">
- <toolList @iconCli='iconCli' :tooltit='tooltit'></toolList>
- <div class="search">
- <mySearch :searchList="searchList" @searchInfo="searchInfo"></mySearch>
- <el-button type="primary" @click="dialogCheck(3)" size="medium">添加</el-button>
- </div>
- <div class="tabbox">
- <el-table height="calc(100% - 40px)" class="com-table" ref="multipleTable" :data="tableData"
- tooltip-effect="dark" size="small" border style="width: 100%" v-loading="loading">
- <el-table-column prop="coopName" label="合作主体名称">
- </el-table-column>
- <el-table-column label="合同时间">
- <template slot-scope="scope">
- {{scope.row.signTime}}
- </template>
- </el-table-column>
- <el-table-column prop="opName" label="操作人">
- </el-table-column>
- <el-table-column prop="updateTime" label="最后一次修改时间">
- </el-table-column>
- <!-- <el-table-column prop="docTypeName" label="状态">
- </el-table-column> -->
- <el-table-column label="操作" width="220px" align="center">
- <template slot-scope="scope">
- <el-button size="mini" type="primary" @click="dialogCheck(1,scope.row)">查看</el-button>
- <el-button size="mini" type="primary" @click="dialogCheck(2,scope.row)">修改</el-button>
- <el-button size="mini" type="danger" @click="delLine(scope.row)">删除</el-button>
- </template>
- </el-table-column>
- </el-table>
- <el-pagination class="pageBox" @current-change="currchange" layout="prev, pager, next" background
- :total="total">
- </el-pagination>
- </div>
- </div>
- <el-dialog :title="titname" :visible.sync="dialogStatus" width="50%" :destroy-on-close="true"
- :modal-append-to-body="false" :close-on-click-modal="false" :before-close="closedia" :fullscreen="true">
- <div v-loading="loadinged">
- <el-form :model="infolist" ref="infolist" :rules="rules"
- style="height: calc(100vh - 180px);overflow-y: scroll;">
- <div class="info-line">
- <el-form-item prop="coopName">
- <span>合作主体名称</span>
- <el-input v-model="infolist.coopName" placeholder="合作主体名称" :disabled="disableStatus">
- </el-input>
- </el-form-item>
- <el-form-item>
- <span>合同编号</span>
- <el-input v-model="infolist.contractNo" placeholder="合同编号"
- :disabled="disableStatus">
- </el-input>
- </el-form-item>
- <el-form-item>
- <span>合同时间</span>
- <el-date-picker v-model="infolist.signTime" type="date" placeholder="合同时间"
- :disabled="disableStatus">
- </el-date-picker>
- </el-form-item>
- <el-form-item>
- <span>资费证明</span>
- <el-input v-model="infolist.proofMaterials" placeholder="资费证明材料"
- :disabled="disableStatus">
- </el-input>
- </el-form-item>
- </div>
- <el-form-item class="info-line online">
- <span>合作内容</span>
- <el-input v-model="infolist.coopContent" placeholder="合作内容" type="textarea" :rows="4"
- :disabled="disableStatus">
- </el-input>
- </el-form-item>
- <el-form-item class="info-line online">
- <span>支撑费标准</span>
- <el-input v-model="infolist.expenseStandard" placeholder="支撑费标准" type="textarea" :rows="4"
- :disabled="disableStatus">
- </el-input>
- </el-form-item>
- <div style="margin: 5px 0 20px 0;padding: 0 20px;">
- <el-table class="com-table" ref="multipleTable" :data="infodata" tooltip-effect="dark"
- size="small" border style="width: 100%">
- <el-table-column label="时间" width="250px">
- <template slot-scope="scope">
- <el-date-picker v-model="scope.row.proTime" type="date" :disabled="disableStatus">
- </el-date-picker>
- </template>
- </el-table-column>
- <el-table-column label="考核管理(业务量等维度评估)">
- <template slot-scope="scope">
- <el-input v-model="scope.row.checkManage" :disabled="disableStatus"></el-input>
- </template>
- </el-table-column>
- <el-table-column label="异常监控(投诉违规事项监管)">
- <template slot-scope="scope">
- <el-input v-model="scope.row.excepMonitor" :disabled="disableStatus"></el-input>
- </template>
- </el-table-column>
- <el-table-column label="评估考核(评分考评)">
- <template slot-scope="scope">
- <el-input v-model="scope.row.reviewScore" :disabled="disableStatus"></el-input>
- </template>
- </el-table-column>
- <el-table-column label="结算管理">
- <template slot-scope="scope">
- <el-input v-model="scope.row.closeAcc" :disabled="disableStatus"></el-input>
- </template>
- </el-table-column>
- <el-table-column label="退出机制">
- <template slot-scope="scope">
- <el-input v-model="scope.row.pushMade" :disabled="disableStatus"></el-input>
- </template>
- </el-table-column>
- <el-table-column label="操作" width="120px" align="center" v-if="titname != '查看'">
- <template slot-scope="scope">
- <el-button size="mini" type="primary" @click="choline(1,scope)">添加</el-button>
- <el-button size="mini" type="danger" @click="choline(2,scope)">删除</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- <div style="margin: 5px 0 20px 0;padding: 0 20px;">
- <el-table class="com-table" ref="multipleTable" :data="infodatat" tooltip-effect="dark"
- size="small" border style="width: 100%">
- <el-table-column label="合作伙伴名称">
- <template slot-scope="scope">
- <el-input v-model="scope.row.partnerName" :disabled="disableStatus"></el-input>
- </template>
- </el-table-column>
- <el-table-column label="归档类型管理" width="250px">
- <template slot-scope="scope">
- <el-select :popper-append-to-body="false" v-model="scope.row.docTypeName" :disabled="disableStatus">
- <el-option v-for="item in optType" :key="item.name" :label="item.name"
- :value="item.name">
- </el-option>
- </el-select>
- </template>
- </el-table-column>
- <el-table-column label="时间" width="250px">
- <template slot-scope="scope">
- <el-date-picker v-model="scope.row.docTime" type="date" :disabled="disableStatus">
- </el-date-picker>
- </template>
- </el-table-column>
- <el-table-column label="事项">
- <template slot-scope="scope">
- <el-input v-model="scope.row.docRemark" :disabled="disableStatus"></el-input>
- </template>
- </el-table-column>
- <el-table-column label="操作" width="120px" align="center" v-if="titname != '查看'">
- <template slot-scope="scope">
- <el-button size="mini" type="primary" @click="cholinet(1,scope)">添加</el-button>
- <el-button size="mini" type="danger" @click="cholinet(2,scope)">删除</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- <div v-if="disableStatus">
- <uploadDown :datalist="datalist" :dialogStatus="uploadstatus"></uploadDown>
- </div>
- <div v-if="!disableStatus">
- <myUpload @uploadBack="uploadBack" :fileInfo="fileInfo" :fileList="fileInfo.fileList">
- </myUpload>
- </div>
- </el-form>
- <div slot="footer" style="float: right;margin-top: 20px;">
- <el-button type="primary" @click="dialogCliadd(2)">确 定</el-button>
- <el-button @click="dialogCliadd(1)">取 消</el-button>
- </div>
- </div>
- </el-dialog>
- <myMessage :messTit='messTit' @closeMessage="closeMessage" :centerDialogVisible="centerDialogVisible"
- v-if="centerDialogVisible"></myMessage>
- </fullscreen>
- </template>
- <script>
- import mySearch from "../../../components/search.vue";
- import myMessage from "../../../components/myMessage.vue"
- import toolList from '../../../components/toolList'
- import myUpload from '../../../components/upload'
- import uploadDown from '../../../components/uploadDown.vue'
- import deptTreeOnly from "../../../components/deptTreeOnly.vue"
- export default {
- components: {
- mySearch,
- myMessage,
- toolList,
- myUpload,
- uploadDown,
- deptTreeOnly
- },
- data() {
- const coopName = (rule, value, callback) => {
- if (!this.infolist.coopName) {
- callback(new Error('不能为空'))
- } else {
- callback()
- }
- }
- return {
- rules: {
- coopName: [{
- required: true,
- trigger: 'blur',
- validator: coopName
- }],
- },
- searchList: [{
- type: 'input',
- tit: '合作主体名称',
- value: '',
- width: '49%'
- },
- {
- type: 'date',
- tit: '合同时间',
- value: '',
- width: '49%',
- },
- ],
- tooltit: '个人数据业务合作伙伴',
- fullscreen: false,
- total: 0,
- pageSize: 1,
- tableData: [{}],
- dialogStatus: false,
- disableStatus: false,
- titname: '',
- infolist: {
- signTime:'',
- },
- userInfo: {},
- params: {},
- centerDialogVisible: false,
- messTit: '',
- delid: '',
- loading: false,
- loadinged: false,
- docType:[],
- contentType:[],
- infodata:[{}],
- infodatat:[{}],
- optType:[
- {
- name:'重大事件归档'
- },{
- name:'年度归档'
- },{
- name:'退出归档'
- },
- ],
- datalist: {
- url: "/market/waf/downFileByMinio",
- type: 1
- },
- uploadstatus: false,
- attList: [],
- fileInfo: {
- limit: 5,
- url: '/market/cmkAttachInfo/uploadByMinio',
- fileList: [],
- uploadType:'newlyCoop'
- },
- }
- },
- methods: {
- uploadBack(v) {
- this.attList = v;
- },
- //搜索数据
- searchInfo(v) {
- this.params = {};
- v[0] ? this.params.coopName = v[0] : '';
- v[1] ? this.params.signTime = this.$formatDate(v[1], "YYYY-MM-DD") : '';
- this.getList(this.params, this.pageSize);
- },
- choline(v, n) {
- if (v == 1) {
- this.infodata.push({})
- } else {
- this.infodata.splice(n.$index, 1)
- }
- },
- cholinet(v, n) {
- if (v == 1) {
- this.infodatat.push({})
- } else {
- this.infodatat.splice(n.$index, 1)
- }
- },
- closedia() {
- this.infolist = {
- signTime:'',
- };
- this.infodata = [{}];
- this.infodatat = [{}];
- this.attList = [];
- this.fileInfo.fileList = [];
- this.dialogStatus = false;
- },
- //获取列表
- getList(v, n) {
- this.pageSize = n;
- let _this = this;
- this.loading = true;
- this.$http({
- url: "/market/cNewlyCoop/queryPage",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- "page": '{"pageNo":"' + n + '","pageSize":"10"}'
- },
- data: v,
- }).then((res) => {
- this.tableData = res.data.data;
- this.total = res.data.totalRecord;
- this.loading = false;
- });
- },
- // 分页
- currchange(v) {
- this.pageSize = v;
- this.getList(this.params, this.pageSize);
- },
- //申请
- dialogCheck(v, n) {
- this.dialogStatus = true;
- let infolist = Object.assign({}, n);
- if (v === 1) {
- this.titname = '查看';
- this.disableStatus = true;
- } else if (v === 2) {
- this.titname = '修改';
- this.disableStatus = false;
- } else if (v === 3) {
- this.titname = '添加';
- this.disableStatus = false;
- return
- }
- this.infolist = infolist;
- this.$http({
- url: "/market/cNewlyCoop/query",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {
- id: n.id
- },
- }).then((res) => {
- this.infodatat = res.data.docList;
- this.infodata = res.data.proList;
- res.data.attList.forEach(item => {
- this.fileInfo.fileList.push({
- name: item.fileName,
- url: '',
- id: item.id,
- fileCode: item.fileCode,
- fileName: item.fileName
- });
- this.attList.push({
- name: item.fileName,
- url: '',
- id: item.id,
- fileCode: item.fileCode,
- fileName: item.fileName
- });
- })
- this.datalist.attList = [];
- this.datalist.attList = res.data.attList;
- this.infolist.attList = [];
- this.infolist.attList = res.data.attList;
- this.uploadstatus = !this.uploadstatus;
- });
- },
- //添加
- dialogCliadd(v) {
- if (v == 1 || this.titname == '查看') {
- this.infolist = {
- signTime:'',
- };
- this.infodata = [{}];
- this.infodatat = [{}];
- this.attList = [];
- this.fileInfo.fileList = [];
- this.dialogStatus = false;
- return
- }
- let _this = this;
- let info = this.infolist;
- info.opTime = _this.$formatDate(new Date(), "YYYY-MM-DD");
- info.opNo = this.userInfo.loginNo;
- info.opName = this.userInfo.loginName;
- info.signTime = info.signTime ? _this.$formatDate(info.signTime, "YYYY-MM-DD") : '';
- info.docList = this.infodatat;
- info.proList = this.infodata;
- if(info.docList.length == 0){
- this.infodatat.push({})
- }
- if(info.proList.length == 0){
- this.infodata.push({})
- }
- let attList = [];
- for (let i = 0; i < this.attList.length; i++) {
- attList.push({
- id: this.attList[i].id,
- fileCode: this.attList[i].fileCode,
- fileName: this.attList[i].fileName,
- });
- }
- info.attList = attList;
- if (this.titname == '修改') {
- this.submitInfo("/market/cNewlyCoop/update", info);
- } else {
- this.submitInfo("/market/cNewlyCoop/add", info);
- }
- },
- submitInfo(u, v) {
- let _this = this;
- this.$refs.infolist.validate(valid => {
- if (valid) {
- this.$http({
- url: u,
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: v,
- }).then((res) => {
- if (res.data.result === 1) {
- _this.$message({
- message: res.data.desc,
- type: 'error'
- });
- } else {
- _this.$message({
- message: '成功',
- type: 'success'
- });
- _this.closedia();
- _this.infolist = {
- signTime:'',
- };
- _this.infodata = [{}];
- _this.infodatat = [{}];
- _this.getList(this.params, this.pageSize);
- }
- });
- }
- })
- },
- closeMessage(v) {
- this.centerDialogVisible = false;
- let _this = this;
- if (v === 1) {
- _this.$http({
- url: "/market/cNewlyCoop/del",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {
- id: this.delid
- },
- }).then((res) => {
- if (res.data.result === 1) {
- _this.$message({
- message: res.data.desc,
- type: 'error'
- });
- } else {
- _this.$message({
- message: '删除成功',
- type: 'success'
- });
- _this.getList(this.params, this.pageSize);
- }
- });
- }
- },
- //删除
- delLine(v) {
- this.centerDialogVisible = true;
- this.messTit = '即将删除此条数据, 是否删除?';
- this.delid = v.id;
- },
- //功能栏
- iconCli(v) {
- if (v === 1) {
- this.getList(this.params, this.pageSize);
- }
- if (v === 2) {
- this.fullscreen = !this.fullscreen
- }
- },
- getUser() {
- this.userInfo = JSON.parse(window.sessionStorage.userInfo);
- },
- },
- mounted() {
- this.getList({}, 1);
- this.getUser();
- },
- created() {
- }
- }
- </script>
- <style scoped lang="scss">
- .onetab {
- margin-bottom: 20px;
- padding: 0 20px;
- }
- .titbox {
- div {
- float: right;
- i {
- font-size: 22px;
- margin-left: 20px;
- cursor: pointer;
- }
- }
- }
- .tabbox {
- margin-top: 15px;
- }
- .pageBox {
- text-align: right;
- margin-top: 10px;
- }
- .info-line {
- width: 100%;
- display: block;
- padding-left: 20px;
- div {
- width: 50%;
- display: inline-block;
- }
- span {
- width: 100px;
- display: inline-block;
- text-align: left;
- i {
- color: red;
- display: inline-block;
- padding-right: 5px;
- }
- }
- .el-select,
- .el-input {
- width: calc(100% - 120px);
- }
- }
- .online {
- width: 100%;
- .el-select {
- width: calc(100% - 100px);
- }
- span {
- vertical-align: top;
- }
- .el-textarea {
- width: calc(100% - 120px);
- }
- .tree {
- width: calc(50% - 60px);
- display: inline-block;
- margin-right: 20px;
- height: 300px;
- overflow-y: scroll;
- .el-icon-error {
- float: right;
- font-size: 20px;
- margin-top: 9px;
- cursor: pointer;
- }
- }
- .treeUser {
- margin: 0;
- border: 1px solid #ddd;
- p {
- background: #f4f4f4;
- padding: 0 20px;
- margin-bottom: 5px;
- }
- }
- .treeUserb {
- width: calc(100% - 100px);
- border: 1px solid #ddd;
- background: #f4f4f4;
- border-radius: 3px;
- height: auto;
- overflow: hidden;
- p {
- display: inline-block;
- padding: 0 20px;
- margin-bottom: 5px;
- }
- }
- }
- .adv-type {
- margin-top: 20px;
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- // border: 1px solid #ddd;
- border-radius: 5px;
- padding: 20px;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
- div {
- width: 33%;
- text-align: center;
- height: 80px;
- overflow: hidden;
- min-width: 100px;
- cursor: pointer;
- padding-top: 10px;
- margin: 10px 0;
- }
- div:hover {
- background: #CFE8FC;
- border-radius: 5px;
- }
- span {
- width: 100%;
- display: inline-block;
- height: 40px;
- // line-height: 40px;
- i {
- color: #0074D9;
- font-size: 36px;
- }
- }
- }
- </style>
|