|
|
|
|
@ -14,6 +14,17 @@
|
|
|
|
|
style="width: 300px;"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:caigouhetong v-if="form.rukuleixing=='请示'">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>请示流程:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input type="text" @focus="isShowQs=true" v-model="form.qingshiliucheng" placeholder="请选择请示流程"
|
|
|
|
|
style="width: 300px;"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:gudingzichanbianhao>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
@ -251,7 +262,18 @@
|
|
|
|
|
<Table highlight-row ref="currentRowTable" :columns="htColumns" :data="htList" @on-current-change="htSelect" />
|
|
|
|
|
<Page :current="htPageIndex" :total="htTotal" simple
|
|
|
|
|
style="padding-top: 14px;display: flex;justify-content: center;" @on-change="htPageChange" />
|
|
|
|
|
</Modal>
|
|
|
|
|
</Modal>
|
|
|
|
|
<!-- 选择请示流程 -->
|
|
|
|
|
<Modal v-model="isShowQs" title="请示选择" width='70%' @on-cancel='qsCancel' @on-ok='qsComfirm'>
|
|
|
|
|
<div class="searchCompanys">
|
|
|
|
|
<el-input type="text" @keyup.enter.native="getQs" v-model="qskeyword" placeholder="请输入关键词查找"></el-input>
|
|
|
|
|
<el-button type="primary" @click="getQs">查询</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<Table highlight-row ref="currentRowTable" :columns="qsColumns" :data="qsList" @on-current-change="qsSelect" />
|
|
|
|
|
<Page :current="qsPageIndex" :total="qsTotal" simple
|
|
|
|
|
style="padding-top: 14px;display: flex;justify-content: center;" @on-change="qsPageChange" />
|
|
|
|
|
</Modal>
|
|
|
|
|
|
|
|
|
|
<detailContract ref='detailContract'></detailContract>
|
|
|
|
|
<imports :table-name="importstableName" :istrueimport='false' :form-info="importForm" ref="imports"
|
|
|
|
|
@importdata='getimportData'></imports>
|
|
|
|
|
@ -266,7 +288,9 @@
|
|
|
|
|
show
|
|
|
|
|
} from "@/api/system/baseForm.js"
|
|
|
|
|
import {
|
|
|
|
|
index as getContract
|
|
|
|
|
index as getContract,
|
|
|
|
|
getQingShi,
|
|
|
|
|
getOatoken
|
|
|
|
|
} from "@/api/contract.js"
|
|
|
|
|
import {
|
|
|
|
|
Message
|
|
|
|
|
@ -483,7 +507,58 @@
|
|
|
|
|
}
|
|
|
|
|
}, '查看详情')
|
|
|
|
|
}
|
|
|
|
|
}]
|
|
|
|
|
}],
|
|
|
|
|
//请示流程
|
|
|
|
|
isShowQs:false,
|
|
|
|
|
qsList: [],
|
|
|
|
|
qskeyword: '',
|
|
|
|
|
qsPageIndex: 1,
|
|
|
|
|
qsTotal: 0,
|
|
|
|
|
editQs: '',
|
|
|
|
|
qsColumns: [{
|
|
|
|
|
width: 60,
|
|
|
|
|
_isChecked: false,
|
|
|
|
|
key: "isSelect",
|
|
|
|
|
resizable: true,
|
|
|
|
|
render: (h, params) => {
|
|
|
|
|
return h('div', [
|
|
|
|
|
h('Radio', {
|
|
|
|
|
props: {
|
|
|
|
|
value: params.row.isSelect
|
|
|
|
|
},
|
|
|
|
|
on: {
|
|
|
|
|
'on-change': (e) => {
|
|
|
|
|
this.qsList.forEach((items) => {
|
|
|
|
|
this.$set(items, 'isSelect', false)
|
|
|
|
|
});
|
|
|
|
|
this.qsList[params.index].isSelect = e;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: '名称',
|
|
|
|
|
key: 'title',
|
|
|
|
|
}, {
|
|
|
|
|
title: '查看',
|
|
|
|
|
key: '',
|
|
|
|
|
width: 100,
|
|
|
|
|
render: (h, params) => {
|
|
|
|
|
return h('span', {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#0077CC',
|
|
|
|
|
cursor: 'pointer'
|
|
|
|
|
},
|
|
|
|
|
on: {
|
|
|
|
|
'click': (e) => {
|
|
|
|
|
this.toQsFollow(params.row.belongs_id)
|
|
|
|
|
// @click=","
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, '查看详情')
|
|
|
|
|
}
|
|
|
|
|
}],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
@ -547,6 +622,55 @@
|
|
|
|
|
console.log("e", e)
|
|
|
|
|
this.htPageIndex = e
|
|
|
|
|
this.getHt()
|
|
|
|
|
},
|
|
|
|
|
// 获取请示流程
|
|
|
|
|
async getQs() {
|
|
|
|
|
let res = await getQingShi({
|
|
|
|
|
table:'qingshi',
|
|
|
|
|
page:this.qsPageIndex
|
|
|
|
|
// page_size: 10,
|
|
|
|
|
// page: this.htPageIndex,
|
|
|
|
|
// keyword: this.htkeyword,
|
|
|
|
|
})
|
|
|
|
|
for (var m of res.data.flow.data) {
|
|
|
|
|
m.isSelect = false
|
|
|
|
|
}
|
|
|
|
|
this.qsList = res.data.flow.data
|
|
|
|
|
this.qsTotal = res.data.flow.total
|
|
|
|
|
// this.hetongoptions = res.data
|
|
|
|
|
},
|
|
|
|
|
qsCancel() {
|
|
|
|
|
this.qsList.forEach((items) => {
|
|
|
|
|
this.$set(items, 'isSelect', false)
|
|
|
|
|
});
|
|
|
|
|
this.form.qingshiliucheng = this.editQs
|
|
|
|
|
},
|
|
|
|
|
qsSelect(e) {
|
|
|
|
|
this.qsList.forEach((items) => {
|
|
|
|
|
this.$set(items, 'isSelect', false)
|
|
|
|
|
if (items.id == e.id) {
|
|
|
|
|
this.$set(items, 'isSelect', true)
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
qsComfirm() {
|
|
|
|
|
this.qsList.forEach((items) => {
|
|
|
|
|
if (items.isSelect == true) {
|
|
|
|
|
this.form.qingshiliucheng = items.title
|
|
|
|
|
this.editQs = items.title
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
qsPageChange(e) {
|
|
|
|
|
this.qsPageIndex = e
|
|
|
|
|
this.getQs()
|
|
|
|
|
},
|
|
|
|
|
async toQsFollow(id){
|
|
|
|
|
let res = await getOatoken()
|
|
|
|
|
let url =
|
|
|
|
|
`${process.env.VUE_APP_OA_URL}/admin/flow/view/${id}?oatoken=${res.oatoken}`
|
|
|
|
|
let seeBuy = window.open(url, 'seeBuy','location=0')
|
|
|
|
|
},
|
|
|
|
|
// 物资明细 回库从库存中选 其他从物资档案
|
|
|
|
|
mingxiConfirm() {
|
|
|
|
|
@ -848,6 +972,9 @@
|
|
|
|
|
this.rukuTypeName = this.rukuType == '回库' ? '归还' : this.rukuType
|
|
|
|
|
if (this.rukuType == '采购') {
|
|
|
|
|
this.getHt()
|
|
|
|
|
}
|
|
|
|
|
if (this.rukuType == '请示') {
|
|
|
|
|
this.getQs()
|
|
|
|
|
}
|
|
|
|
|
if (this.type === 'editor') {
|
|
|
|
|
this.getDetail()
|
|
|
|
|
|