699fc7d7 by xiaomiao

ywlsbtn

1 parent 64c78991
......@@ -302,6 +302,70 @@
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :prop="'obligeeList.' + index + '.QLLX'" :rules="rules.QLLX">
<span slot="label">
权利类型: <br />
<p class="label-detail">(QLLX)</p>
</span>
<el-input :disabled="$store.state.business.Edit" v-model="obligeeForm.obligeeList[index].QLLX">
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :prop="'obligeeList.' + index + '.YWH'" :rules="rules.YWH">
<span slot="label">
业务号: <br />
<p class="label-detail">(YWH)</p>
</span>
<el-input :disabled="$store.state.business.Edit" v-model="obligeeForm.obligeeList[index].YWH">
</el-input>
</el-form-item>
</el-col>
</el-row>
<el-row class="obligee-item-input">
<el-col :span="8">
<el-form-item :prop="'obligeeList.' + index + '.QLRTZ'" :rules="rules.QLRTZ">
<span slot="label">
权利人特征: <br />
<p class="label-detail">(QLRTZ)</p>
</span>
<el-input :disabled="$store.state.business.Edit" v-model="obligeeForm.obligeeList[index].QLRTZ">
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :prop="'obligeeList.' + index + '.CBFBM'" :rules="rules.CBFBM">
<span slot="label">
承包方代码: <br />
<p class="label-detail">(CBFBM)</p>
</span>
<el-input :disabled="$store.state.business.Edit" v-model="obligeeForm.obligeeList[index].CBFBM">
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :prop="'obligeeList.' + index + '.FBFBM'" :rules="rules.FBFBM">
<span slot="label">
发包方代码: <br />
<p class="label-detail">(FBFBM)</p>
</span>
<el-input :disabled="$store.state.business.Edit" v-model="obligeeForm.obligeeList[index].FBFBM">
</el-input>
</el-form-item>
</el-col>
</el-row>
<el-row class="obligee-item-input">
<el-col :span="8">
<el-form-item :prop="'obligeeList.' + index + '.QSZT'" :rules="rules.QSZT">
<span slot="label">
权属状态: <br />
<p class="label-detail">(QSZT)</p>
</span>
<el-input :disabled="$store.state.business.Edit" v-model="obligeeForm.obligeeList[index].QSZT">
</el-input>
</el-form-item>
</el-col>
</el-row>
</div>
</div>
......@@ -309,106 +373,106 @@
</div>
</template>
<script>
import zttGyQlr from "@/api/zttGyQlr";
import ruleMixin from "@/mixins/ruleMixin.js";
import treeSelect from "@/components/TreeSelect.vue";
// 权利人
export default {
mixins: [ruleMixin],
props: {
bsmSjsb: {
type: String,
default: "",
import zttGyQlr from "@/api/zttGyQlr";
import ruleMixin from "@/mixins/ruleMixin.js";
import treeSelect from "@/components/TreeSelect.vue";
// 权利人
export default {
mixins: [ruleMixin],
props: {
bsmSjsb: {
type: String,
default: "",
},
bsmYwsjb: {
type: String,
default: "",
},
},
bsmYwsjb: {
type: String,
default: "",
components: {
treeSelect,
},
},
components: {
treeSelect,
},
data () {
return {
obligeeForm: {
obligeeList: [
{
YSDM: "",
SXH: "",
BDCDYH: "",
QLRMC: "",
BDCQZH: "",
QZYSXLH: "",
SFCZR: "",
ZJZL: "",
ZJH: "",
FZJG: "",
SSHY: "",
GJ: "",
HJSZSS: "",
XB: "",
DH: "",
DZ: "",
YB: "",
GZDW: "",
DZYJ: "",
QLRLX: "",
QLBL: "",
GYFS: "",
GYQK: "",
BZ: "",
QXDM: "",
},
],
},
};
},
methods: {
async featchData () {
try {
let { result: res } = await zttGyQlr.getZttGyQlrById(this.bsmSjsb);
this.obligeeForm.obligeeList = res;
} catch (error) { }
data () {
return {
obligeeForm: {
obligeeList: [
{
YSDM: "",
SXH: "",
BDCDYH: "",
QLRMC: "",
BDCQZH: "",
QZYSXLH: "",
SFCZR: "",
ZJZL: "",
ZJH: "",
FZJG: "",
SSHY: "",
GJ: "",
HJSZSS: "",
XB: "",
DH: "",
DZ: "",
YB: "",
GZDW: "",
DZYJ: "",
QLRLX: "",
QLBL: "",
GYFS: "",
GYQK: "",
BZ: "",
QXDM: "",
},
],
},
};
},
handleUpdateForm () {
return new Promise(async (resolve) => {
methods: {
async featchData () {
try {
let res = await zttGyQlr.updateZttGyQlr(this.obligeeForm.obligeeList);
resolve(res.code);
let { result: res } = await zttGyQlr.getZttGyQlrById(this.bsmSjsb);
this.obligeeForm.obligeeList = res;
} catch (error) { }
});
},
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await zttGyQlr.updateZttGyQlr(this.obligeeForm.obligeeList);
resolve(res.code);
} catch (error) { }
});
},
},
},
};
};
</script>
<style scoped lang="scss">
@import "./css/itemForm.scss";
.obligee-item {
display: flex;
height: 100%;
margin-bottom: 15px;
margin-right: 5px;
@import "./css/itemForm.scss";
&-name {
.obligee-item {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
padding: 10px 20px;
line-height: 28px;
border: 1px solid #ccc;
border-radius: 3px;
}
height: 100%;
margin-bottom: 15px;
margin-right: 5px;
&-list {
width: 100%;
flex: 1;
display: flex;
justify-content: center;
flex-direction: column;
&-name {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
padding: 10px 20px;
line-height: 28px;
border: 1px solid #ccc;
border-radius: 3px;
}
&-list {
width: 100%;
flex: 1;
display: flex;
justify-content: center;
flex-direction: column;
}
}
}
</style>
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-27 13:44:16
* @LastEditTime: 2023-04-27 16:59:53
*/
import filter from '@/utils/filter.js'
let vm = null
......@@ -80,6 +80,9 @@ class data extends filter {
prop: "recflowid",
label: "业务流水号",
minWidth: 100,
render: (h, scope) => {
return <el-button type="text" onClick={() => { vm.ywhClick(scope.row) }}>{scope.row.recflowid}</el-button>
}
},
{
prop: "estatenum",
......
......@@ -48,7 +48,7 @@
<el-input v-model.trim="form.ywh" class="width100" clearable placeholder="业务流水号"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="3">
<el-form-item label="权利类型" prop="qllx">
<el-select v-model="form.qllx" class="width100" clearable placeholder="权利类型">
<el-option v-for="item in dicData['A8']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
......@@ -56,7 +56,7 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="3">
<el-form-item label="登记类型" prop="djlx">
<el-select v-model="form.djlx" class="width100" clearable placeholder="登记类型">
<el-option v-for="item in dicData['A21']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
......@@ -64,6 +64,25 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="检查结果" prop="jcjg">
<el-select v-model="form.jcjg" class="width100" clearable placeholder="检查结果">
<el-option v-for="item in dicData['sysSjsbCkeck']" class="lastdom" :key="item.DCODE" :label="item.DNAME"
:value="item.DCODE">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="入库结果" prop="rkjg">
<el-select v-model="form.rkjg" class="width100" clearable placeholder="入库结果">
<el-option v-for="item in dicData['sysSjsbStorage']" class="lastdom" :key="item.DCODE" :label="item.DNAME"
:value="item.DCODE">
</el-option>
</el-select>
</el-form-item>
</el-col>
<!-- 操作按钮 -->
<el-col :span="6" class="btnColRight">
<btn nativeType="cz" @click="resetForm">重置</btn>
......@@ -203,7 +222,7 @@
},
// 初始化数据
featchData () {
getSjsbReportPage({ ...this.form }).then((res) => {
getSjsbReportPage({ ...this.form, ...this.formData }).then((res) => {
if (res.code === 200) {
let { total, records, current } = res.result;
this.tableData.total = total;
......@@ -231,10 +250,45 @@
this.form.currentPage = 1
this.featchData();
},
ywhClick (item) {
window.open('http://192.168.2.38/bdcdj#/workFrame?bsmSlsq=4582b05a4d49c25673eb0880b5787e58&bestepid=sl&bsmBusiness=&sqywbm=A03100', '_blank')
//判断用户是否拥有该任务的权限,若有则跳转,无权限则给予提示并刷新页面
// judgeUserTaskPermission({
// bsmSlsq: item.bsmSlsq,
// bestepid: item.bestepid,
// }).then((res) => {
// if (res.code == 200) {
// if (res.result) {
// //有任务权限
// const { href } = this.$router.resolve(
// "/workFrame?bsmSlsq=" +
// item.bsmSlsq +
// "&bestepid=" +
// item.bestepid +
// "&bsmBusiness=" +
// "&sqywbm=" +
// item.djywbm
// );
// localStorage.setItem('ywbl', JSON.stringify(item));
// window.open(href, `urlname${item.bsmSlsq}`);
// //从待办箱进入的调取任务领取接口
// claimTask(item.bsmSlsq, item.bestepid);
// } else {
// //无任务权限
// this.$message.error("无该任务操作权限,或已被他人抢办,请重新操作");
// //刷新页面
// this.queryClick();
// }
// } else {
// this.$message.error("用户任务权限判断失败,请联系管理员");
// }
// });
},
},
destroyed () {
this.$store.dispatch('business/setEdit')
}
}
</script>
<style scoped lang="scss">
......