|
@@ -301,7 +301,7 @@
|
|
|
style="margin: 0 2px"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
- @click="handleDetail(scope.row, 1)"
|
|
|
+ @click="handleWbEdit(scope.row)"
|
|
|
>湾办修改</el-button
|
|
|
>
|
|
|
</template>
|
|
@@ -741,7 +741,7 @@
|
|
|
center
|
|
|
@close="handleClose"
|
|
|
:title="title"
|
|
|
- :visible.sync="openDetail"
|
|
|
+ :visible.sync="wbopenDetail"
|
|
|
width="95%"
|
|
|
append-to-body
|
|
|
:close-on-click-modal="false"
|
|
@@ -784,7 +784,7 @@
|
|
|
>
|
|
|
<el-input
|
|
|
:disabled="false"
|
|
|
- v-if="edit == true"
|
|
|
+
|
|
|
v-model="listItem.collCalue"
|
|
|
:placeholder="'请输入' + listItem.normfeeName"
|
|
|
></el-input>
|
|
@@ -973,6 +973,7 @@ export default {
|
|
|
// 是否显示弹出层
|
|
|
open: false,
|
|
|
openDetail: false,
|
|
|
+ wbopenDetail: false,
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
deptId: "",
|
|
@@ -1294,6 +1295,7 @@ export default {
|
|
|
this.open = false;
|
|
|
this.openDetail = false;
|
|
|
this.openUpload = false;
|
|
|
+ this.wbopenDetail = false;
|
|
|
this.reset();
|
|
|
},
|
|
|
// 表单重置
|
|
@@ -1417,6 +1419,48 @@ export default {
|
|
|
});
|
|
|
|
|
|
},
|
|
|
+ // 湾办修改
|
|
|
+ handleWbEdit(row){
|
|
|
+ this.tabList = [];
|
|
|
+ this.form = [];
|
|
|
+ const id = row.id || this.ids;
|
|
|
+ getGATHER(id).then((response) => {
|
|
|
+ this.wbopenDetail = true;
|
|
|
+ //深拷贝,而不是拷贝地址
|
|
|
+ this.form = JSON.parse(JSON.stringify(response.data));
|
|
|
+ this.form.feeLists.forEach((item) => {
|
|
|
+ if(item.funit == "%" && item.collCalue){
|
|
|
+ item.collCalue = item.collCalue.toFixed(2);
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+ this.regionList.forEach(item=>{
|
|
|
+ if(item.value == this.form.deptId){
|
|
|
+ this.deptName = item.label;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.title = this.deptName + this.form.year + "年" + this.form.month + "数据采集";
|
|
|
+ //深拷贝,而不是拷贝地址
|
|
|
+ this.tabList = JSON.parse(JSON.stringify(response.data.feeLists));
|
|
|
+ //去重获取tab
|
|
|
+ //遍历如果遇到相同的id则删掉
|
|
|
+ for (var i = 0; i < this.tabList.length - 1; i++) {
|
|
|
+ //设置激活的tab
|
|
|
+ if (i == 0) {
|
|
|
+ this.activeName = this.tabList[0].normName;
|
|
|
+ }
|
|
|
+ for (var j = i + 1; j < this.tabList.length; j++) {
|
|
|
+ if (this.tabList[i].normId == this.tabList[j].normId) {
|
|
|
+ this.tabList.splice(j, 1);
|
|
|
+ //因为数组长度减小1,所以直接 j++ 会漏掉一个元素,所以要 j--
|
|
|
+ j--;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
/** 查看按钮操作 */
|
|
|
handleDetail(row, type) {
|
|
|
//false 查看 true修改
|