Commit 57740659 by 叶富雄

修复

parent 1dad6790
...@@ -626,7 +626,8 @@ export default { ...@@ -626,7 +626,8 @@ export default {
for (let f of this.list.values()) { for (let f of this.list.values()) {
s.push(`${f.unitCode}|${f.peopleAccount}`) s.push(`${f.unitCode}|${f.peopleAccount}`)
} }
this.FPForm.qsrjh = s this.FPForm.qsrjh = s;
this.FPForm.ywlx = this.info.zczlMainInfo.ywlx;
this.$emit('post', this.FPForm) this.$emit('post', this.FPForm)
},//分派 },//分派
}, },
......
...@@ -91,28 +91,6 @@ ...@@ -91,28 +91,6 @@
<el-dialog title="指令分派" :visible.sync="FP"> <el-dialog title="指令分派" :visible.sync="FP">
<el-form :inline="true" :model="FPForm" class="demo-form-inline"> <el-form :inline="true" :model="FPForm" class="demo-form-inline">
<el-row> <el-row>
<!-- <el-col :span="20" :offset="1" >
<el-form-item label="指令编号" style="width:100%" label-width="100px">
<el-input
disabled
type="text"
v-model="FPForm.zczlbh"
style="width: 400px"
placeholder="请输入"
></el-input>
</el-form-item>
</el-col>
<el-col :span="20" :offset="1">
<el-form-item label="分派编号" style="width:100%" label-width="100px">
<el-input
disabled
type="text"
v-model="FPForm.fpbh"
style="width: 400px"
placeholder="请输入"
></el-input>
</el-form-item>
</el-col>-->
<el-col :span="20" :offset="1" class="JKS"> <el-col :span="20" :offset="1" class="JKS">
<el-form-item label="接收单位" label-width="100px" style="width:500px"> <el-form-item label="接收单位" label-width="100px" style="width:500px">
<el-select v-model="FPForm.qsrgajgdm" placeholder="请选择" multiple style="width: 500px;"> <el-select v-model="FPForm.qsrgajgdm" placeholder="请选择" multiple style="width: 500px;">
...@@ -189,7 +167,7 @@ ...@@ -189,7 +167,7 @@
<script> <script>
import rightContent from "@c/ptCxForm_components.vue"; import rightContent from "@c/ptCxForm_components.vue";
import zczl from '@p/zczl/zczl/detailZczl.vue' import zczl from '@p/zczl/zczl/detailZczl.vue'
import {zczlQs, doAddHb, doFpNew, doYjNew, getChildUnitAndPeople, editHbInfo, doEvaluate} from "@/api/zczl/zczl.js" import {zczlQs, doAddHb, doFpNew, doYjNew, getChildUnitAndPeople, editHbInfo, doEvaluate,queryLlys} from "@/api/zczl/zczl.js"
import {zlqszt, nfxb, nfhb, nfhbxg, nffp, zlhbzt, sfczhbxx, hbpjdj, xbpjdj,zczlzt,xjZczlzt} from "@/assets/js/transformFormTable.js"; import {zlqszt, nfxb, nfhb, nfhbxg, nffp, zlhbzt, sfczhbxx, hbpjdj, xbpjdj,zczlzt,xjZczlzt} from "@/assets/js/transformFormTable.js";
import axios from "@/utils/http.js" import axios from "@/utils/http.js"
...@@ -665,7 +643,6 @@ export default { ...@@ -665,7 +643,6 @@ export default {
}, },
methods: { methods: {
toInfor(row) { toInfor(row) {
this.sub = 'PJ'; this.sub = 'PJ';
this.drawer = true; this.drawer = true;
this.zczlbh = row.zczlbh this.zczlbh = row.zczlbh
...@@ -722,13 +699,30 @@ export default { ...@@ -722,13 +699,30 @@ export default {
}) })
} }
if (this.sub === 'FP') { if (this.sub === 'FP') {
let self = this;
queryLlys({unitcodes: params.qsrgajgdm.toString()}).then((res) => {
if (res.success && res.code == 200) {
if (res.data && res.data.flag == "0") {
this.$message.error("该单位没有联络员,不能发布指令");
} else {
let dwdm = params.get("zljsdwdm").split(",");
let resDwdm = res.data.flag.split(",");
self.$set(self.formLabelAlign, "zljsdwdm", resDwdm);
if (dwdm.length !== resDwdm.length) {
this.$message.warning("已自动过滤没有联络员的单位");
}
params.set("zljsdwdm", res.data.flag);
self.zczlSubmit(params);
}
}
});
let t = new FormData(); let t = new FormData();
t.append('zczlbh', this.FPForm.zczlbh) t.append('zczlbh', this.FPForm.zczlbh)
t.append('fpbh', this.FPForm.fpbh) t.append('fpbh', this.FPForm.fpbh)
t.append('fpgzyq', params.fpgzyq) t.append('fpgzyq', params.fpgzyq)
t.append('ywlx', params.ywlx)
t.append('qsrjh', params.qsrjh.toString()) t.append('qsrjh', params.qsrjh.toString())
t.append('qsrgajgdm', params.qsrgajgdm.toString()) t.append('qsrgajgdm', params.qsrgajgdm.toString())
doFpNew(t).then(res => { doFpNew(t).then(res => {
if (res.code == 200 && res.success) { if (res.code == 200 && res.success) {
this.$message.success("指派成功"); this.$message.success("指派成功");
...@@ -798,22 +792,24 @@ export default { ...@@ -798,22 +792,24 @@ export default {
toXb(scope) { toXb(scope) {
this.sfxb = "1"; this.sfxb = "1";
this.zczlbh = scope.row.zczlbh; this.zczlbh = scope.row.zczlbh;
this.fpbh = scope.row.fpbh;
this.drawer = true this.drawer = true
this.sub = 'HB' this.sub = 'HB'
this.$set(this.lkForm, "zczlbh", scope.row.zczlbh); this.$set(this.lkForm, "zczlbh", scope.row.zczlbh);
this.$set(this.lkForm, "fpbh", scope.row.fpbh); this.$set(this.lkForm, "fpbh", scope.row.fpbh);
this.$set(this.lkForm, "sfxb", this.sfxb); this.$set(this.lkForm, "sfxb", this.sfxb);
}, },
toHb(scope) { toHb(scope) {
this.sfxb = "0"; this.sfxb = "0";
this.zczlbh = scope.row.zczlbh; this.zczlbh = scope.row.zczlbh;
this.drawer = true this.fpbh = scope.row.fpbh;
this.drawer = true;
this.sub = 'HB' this.sub = 'HB'
this.$set(this.lkForm, "zczlbh", scope.row.zczlbh); this.$set(this.lkForm, "zczlbh", scope.row.zczlbh);
this.$set(this.lkForm, "fpbh", scope.row.fpbh); this.$set(this.lkForm, "fpbh", scope.row.fpbh);
this.$set(this.lkForm, "sfxb", this.sfxb); this.$set(this.lkForm, "sfxb", this.sfxb);
// this.newlyVisiable = true;
// getHbxxDoHbxgByFpbh({ fpbh: scope.row.fpbh, sfxbxg: "" });
}, },
submitLKD() { submitLKD() {
let params = new FormData(); let params = new FormData();
...@@ -836,11 +832,13 @@ export default { ...@@ -836,11 +832,13 @@ export default {
}, },
FenPai(scope) { FenPai(scope) {
let rows = scope.row; let rows = scope.row;
let zczlbh = rows.zczlbh let zczlbh = rows.zczlbh;
let fpbh = rows.fpbh let fpbh = rows.fpbh;
this.FPForm.zczlbh = zczlbh this.FPForm.zczlbh = zczlbh;
this.FPForm.fpbh = fpbh this.FPForm.fpbh = fpbh;
this.FPForm.ywlx = rows.ywlx this.FPForm.ywlx = rows.ywlx;
this.zczlbh = zczlbh;
this.fpbh = fpbh;
this.drawer = true this.drawer = true
this.sub = 'FP' this.sub = 'FP'
}, },
...@@ -864,23 +862,13 @@ export default { ...@@ -864,23 +862,13 @@ export default {
this.sub = 'YJ' this.sub = 'YJ'
this.drawer = true this.drawer = true
let rows = scope.row; let rows = scope.row;
let zczlbh = rows.zczlbh let zczlbh = rows.zczlbh;
let fpbh = rows.fpbh let fpbh = rows.fpbh;
this.YJForm.zczlbh = zczlbh this.YJForm.zczlbh = zczlbh;
this.YJForm.fpbh = fpbh; this.YJForm.fpbh = fpbh;
/* getChildUnitAndPeople({onlyLly:1,unitCode:'540100000000'}).then(res=>{ this.zczlbh = zczlbh;
if (res.code == 200 && res.success) { this.fpbh = fpbh;
let list = res.data.unitChilds;
let account = JSON.parse(sessionStorage.getItem('userInfo')).account
for(let i in list){
let peopleAccount = list[i].peopleAccount;
if(peopleAccount ===account ){
list.splice(i,1)
}
}
this.unitChilds = list
}
})*/
}, },
PJ(scope) { PJ(scope) {
this.sub = 'PJ'; this.sub = 'PJ';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment