庞东旭 1 vuosi sitten
vanhempi
commit
c8a27b8453
37 muutettua tiedostoa jossa 664 lisäystä ja 152 poistoa
  1. +331
    -0
      src/components/DnD.vue
  2. +24
    -0
      src/store/modules/user.js
  3. +11
    -9
      src/views/homesteadSurvey/hncyDetails.vue
  4. +1
    -1
      src/views/homesteadSurvey/hncyList2.vue
  5. +12
    -10
      src/views/homesteadSurvey/nhcyAdd.vue
  6. +4
    -2
      src/views/homesteadSurvey/settle.vue
  7. +6
    -6
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd.vue
  8. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd10.vue
  9. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd11.vue
  10. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd12.vue
  11. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd2.vue
  12. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd3.vue
  13. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd4.vue
  14. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd5.vue
  15. +1
    -1
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalApproval.vue
  16. +1
    -1
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalApproval10.vue
  17. +1
    -1
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalApproval11.vue
  18. +1
    -1
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalApproval12.vue
  19. +1
    -1
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail.vue
  20. +1
    -1
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail10.vue
  21. +1
    -1
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail11.vue
  22. +1
    -1
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail12.vue
  23. +1
    -1
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail2.vue
  24. +3
    -3
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail3.vue
  25. +1
    -1
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail4.vue
  26. +3
    -3
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail5.vue
  27. +7
    -7
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify.vue
  28. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify10.vue
  29. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify11.vue
  30. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify12.vue
  31. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify2.vue
  32. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify3.vue
  33. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify4.vue
  34. +5
    -5
      src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify5.vue
  35. +16
    -12
      src/views/sunVillage_info/homeApplication/proposerLite.vue
  36. +83
    -10
      src/views/sunVillage_info/list_finance_add.vue
  37. +83
    -9
      src/views/sunVillage_info/list_finance_edit.vue

+ 331
- 0
src/components/DnD.vue Näytä tiedosto

@@ -0,0 +1,331 @@
<template>
<!-- 拖拽组件 DnD DragAndDrop -->
<!-- 针对移动端draggable不生效的解决方案 父级元素定位必须为 position: relative; -->
<!-- 属性
valueKey: 取值属性键名, 默认 value
showMask: 是否显示遮罩层, 默认 false
-->
<!-- 标签参数
touchdraggable: 是否启用拖动, 默认 false
touchdroppable: 是否允许放置, 默认 false
touchdraggroup: 拖拽分组, 默认 空(不限制), 只有同种分组的允许相互拖拽
-->
<!-- 事件
touchdragstart: 开始拖动, 参数(element: 拖动的元素)
touchdrop: 结束放置, 参数(src_element: 被拖动的元素, dst_element: 放置的元素, src_data: 被拖动元素的数据, dst_data: 放置元素的数据)
touchdropstart: 开始放置, 参数(src_element: 被拖动的元素, dst_element: 放置的元素, src_data: 被拖动元素的数据, dst_data: 放置元素的数据)
touchdragcancel: 中止拖动, 参数(element: 拖动的元素)
touchdragmotion: 拖动中(坐标改变), 参数(element: 拖动的元素)
-->
<!-- 插槽
default: 内部元素
mask: 遮罩层内部元素
-->
<!-- 事例
<DnD class="preview-cover van-ellipsis" @touchdragstart="drag" @touchdrop="drop" :value="file.index" touchdraggable touchdroppable show-mask="1" value-key="value">
<template #mask>遮罩层内部元素</template>
<div>内部元素</div>
</DnD>
-->
<div class="root"
@touchstart.stop="Drag($event)"
@touchend.stop="Drop($event)"
@touchcandel.stop="Cancel($event)"
@touchmove.stop="Motion($event)"
>
<slot name="default"></slot>
<div class="mask" v-if="maskVisible" :style="{top: `${maskY}px`, left: `${maskX}px`, 'background-color': maskColor, 'border-color': maskColor}">
<slot name="mask"></slot>
</div>
</div>

</template>

<script>

const STATE_NONE = 0; // 空闲状态
const STATE_START = 1; // 点击后等待完成长按状态
const STATE_DRAGGING = 2; // 长按状态完成, 进入拖拽状态

const HOLD_TIME_LIMIT = 200; // 从点击开始到可以允许拖拽间的最小时间间隔(模拟按住), 以区别于纯点击事件
const HOLD_POSITION_RANGE = 10/*px*/; // 从点击开始到可以允许拖拽间的最小时间间隔(模拟按住), 手指坐标距离开始点击坐标的范围限制, 以区别于手指纯滑动事件

const DRAGGABLE_NAME = 'touchdraggable'; // 允许拖动参数
const DROPPABLE_NAME = 'touchdroppable'; // 允许放置参数
const DRAGGROUP_NAME = 'touchdraggroup'; // 拖拽组名参数

const MASK_COLOR = 'rgba(0, 0, 0, 1)'; // 无放置目标时颜色
const MASK_DROP_COLOR = 'rgba(144,238,144, 1)'; // 有放置目标时颜色
const MASK_FORBID_COLOR = 'rgba(255,69,0, 1)'; // 禁止放置目标时颜色(放置到自身)

export default {
name: "DnD",
props: ['valueKey', 'showMask', ],
data() {
return {
data: null, // 拖动时存储的数据
state: STATE_NONE, // 当前拖拽状态
startX: -1, // 开始点击坐标(client)
startY: -1,
timerHandler: null, // 模拟按住的定时器
startTime: -1, // 开始点击时间
currentX: -1, // 当前触摸坐标(client)
currentY: -1,
element: null, // 被拖动的元素
dropElement: null, // 当前可放置的元素

startGlobalX: -1, // 开始点击坐标(page)
startGlobalY: -1,
maskX: 0, // 遮罩left = pageX - startGlobalX
maskY: 0, // 遮罩top = pageY - startGlobalY
maskColor: MASK_COLOR, // 遮罩提示颜色
};
},
methods: {
Drag(event) {
if(!this.HasAttr(this.GetEventElement(event), DRAGGABLE_NAME))
return;
if(this.state !== STATE_NONE)
{
console.error('Drag', 'Only support single finger!');
return;
}
this.UpdateMask(event);
this.element = this.GetEventElement(event);
[this.startX, this.startY] = this.GetEventPosition(event);
this.currentX = this.startX;
this.currentY = this.startY;
this.StartHold();
},
Drop(event) {
if(!this.HasAttr(this.GetEventElement(event), DROPPABLE_NAME))
return;
if(this.state !== STATE_DRAGGING)
{
this.Reset();
return;
}
[this.currentX, this.currentY] = this.GetEventPosition(event);
this.dropElement = this.GetCurrentPositionDropElement(event);
this.UpdateMask(event, this.HasCurrentPositionDropElement(event));
if(this.dropElement)
{
this.Log('touchdrop', this.data, this.GetValue(this.dropElement));
this.$emit('touchdrop', this.element, this.dropElement, this.data, this.GetValue(this.dropElement));
}
else
{
this.Log('touchcancel -> touchend');
this.$emit('touchdragcancel', this.element);
}
this.Reset();
this.state = STATE_NONE;
},
Motion(event) {
if(this.state === STATE_NONE)
{
//k this.Reset();
return;
}
[this.currentX, this.currentY] = this.GetEventPosition(event);
if(this.state === STATE_START)
{
return;
}
let dropElement = this.GetCurrentPositionDropElement(event);
this.UpdateMask(event, this.HasCurrentPositionDropElement(event));
if(dropElement && this.dropElement !== dropElement)
{
this.Log('touchdropstart', this.dropElement, dropElement);
this.$emit('touchdropstart', this.element, dropElement, this.data, this.GetValue(dropElement));
}
this.dropElement = dropElement;
this.$emit('touchdragmotion', this.element);
event.preventDefault();
},
Cancel(event) {
if(this.state === STATE_DRAGGING)
{
this.Log('touchcancel -> touchcancel');
this.$emit('touchdragcancel', this.element);
}
this.Reset();
},
GetEventElement(event) {
return event.target;
},
GetEventPosition(event) {
let x = event.changedTouches[0].clientX;
let y = event.changedTouches[0].clientY;
//this.Log('GetEventPosition', x, y);
return [x, y];
},
GetEventViewportPosition(event) {
let x = event.changedTouches[0].pageX;
let y = event.changedTouches[0].pageY;
//this.Log('GetEventViewportPosition', x, y);
return [x, y];
},
GetElementByPosition(event, x, y) {
let arr = document.elementsFromPoint(x, y);
if(!arr)
return null;
let res = null;
let srcEle = this.GetEventElement(event);
for(let e of arr)
{
if(this.IsDroppable(srcEle, e))
{
res = e;
break;
}
}
//this.Log('GetElementByPosition', res, x, y);
return res;
},
IsDroppable(srcElement, elememt) {
let a = this.HasAttr(elememt, DROPPABLE_NAME);
if(!a)
return false;
let e1 = srcElement.getAttribute(DRAGGROUP_NAME);
let e2 = elememt.getAttribute(DRAGGROUP_NAME);
return e1 == e2;
},
Log(what, data) {
//console.log(...arguments);
//this.DEBUG();
},
StopHold() {
if(null !== this.timerHandler)
{
clearTimeout(this.timerHandler);
this.timerHandler = null;
}
},
StartHold() {
this.StopHold();
this.state = STATE_START;
this.startTime = Date.now();
this.timerHandler = setTimeout(this.WaitHold, HOLD_TIME_LIMIT);
},
WaitHold() {
this.timerHandler = null;
if(this.state !== STATE_START)
{
this.Log('state cancel');
this.Reset();
return;
}
if(!this.CheckPosition())
{
this.Log('CheckPosition cancel');
this.Reset();
return;
}
this.state = STATE_DRAGGING;
this.Log('touchdragstart', this.value);
this.data = this.GetValue(this.element);
this.$emit('touchdragstart', this.element);
},
Reset() {
this.StopHold();
this.state = STATE_NONE;
this.startTime = -1;
this.startX = this.startY = -1;
this.currentX = this.currentY = -1;
this.data = null;
this.element = null;
this.startGlobalX = this.startGlobalY = -1;
this.maskX = this.maskY = 0;
this.maskColor = MASK_COLOR;
this.dropElement = null;
},
CheckPosition() {
if(this.startX < 0 || this.startY < 0)
return false;
if(this.currentX < 0 || this.currentY < 0)
return false;
let deltaX = this.currentX - this.startX;
let deltaY = this.currentY - this.startY;
return deltaX * deltaX + deltaY * deltaY <= HOLD_POSITION_RANGE * HOLD_POSITION_RANGE;
},
DEBUG() {
console.log(
`state: ${this.state}
start: [${this.startX}, ${this.startY}]
startTime: ${this.startTime}
timerHandler: ${this.timerHandler}
data: ${this.data}
current: [${this.currentX}, ${this.currentY}]
`);
},
HasAttr(element, name) {
let a = element.getAttribute(name);
return a !== null && a !== undefined;
},
GetValue(element) {
return element.getAttribute(this._valueKey)
},
UpdateMask(event, element) {
let [x, y] = this.GetEventViewportPosition(event);
if(this.startGlobalX < 0)
{
this.startGlobalX = x;
}
if(this.startGlobalY < 0)
{
this.startGlobalY = y;
}
this.maskX = x - this.startGlobalX;
this.maskY = y - this.startGlobalY;
this.maskColor = element > 0 ? MASK_DROP_COLOR : (element < 0 ? MASK_COLOR : MASK_FORBID_COLOR);
},
GetCurrentPositionDropElement(event) {
let element = this.GetElementByPosition(event, this.currentX, this.currentY);
if(element && element !== this.GetEventElement(event))
return element;
return null;
},
HasCurrentPositionDropElement(event) {
let element = this.GetElementByPosition(event, this.currentX, this.currentY);
if(!element)
return -1;
if(element === this.GetEventElement(event))
return 0;
return 1;
},
},
computed: {
_valueKey() {
return this.valueKey || 'value';
},
maskVisible() {
return !!this.showMask && this.state === STATE_DRAGGING;
},
},
}
</script>

<style scoped>
.root {
position: absolute;
bottom: 0;
top: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0);
overflow: visible;
}
.mask {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 1);
z-index: 99;
opacity: 0.6;
border-width: 4px;
border-style: solid;
}
</style>

+ 24
- 0
src/store/modules/user.js Näytä tiedosto

@@ -210,6 +210,30 @@ const user = {
chungengUserLogin(code).then(res => {
setToken(res.token)
commit('SET_TOKEN', res.token)
getInfo(res.token).then(response => {
const user = response.user;
// const avatar = user.avatar == "" ? require("@/assets/images/profile.jpg") : process.env.VUE_APP_BASE_API + user.avatar;
const avatar = "";
if (response.roles && response.roles.length > 0) { // 验证返回的roles是否是一个非空数组
commit('SET_ROLES', response.roles)
commit('SET_PERMISSIONS', response.permissions)
} else {
commit('SET_ROLES', ['ROLE_DEFAULT'])
}
commit('SET_BOOKNAME', user.bookName)
commit('SET_NAME', user.userName)
commit('SET_USERID', user.userId)
commit('SET_LOGINDEPTID', user.loginDeptId)
commit('SET_LOGINBOOKID', user.loginBookId)
commit('SET_DEPTNAME', user.deptName)
commit('SET_AVATAR', avatar)
commit('SET_NICKNAME', user.nickName);
commit('SET_businessLevel', user.businessLevel);
//commit('SET_businessLevel', 'TEST');
getSystemAttachmentUrl().then((resp) => {
commit('SET_baseRoutingUrl', resp.msg);
});
})
Cookies.set("_Login_url", window.location.href);
resolve(res.data)
}).catch(error => {


+ 11
- 9
src/views/homesteadSurvey/hncyDetails.vue Näytä tiedosto

@@ -193,15 +193,6 @@
maxlength="50"
autocomplete="off"
/>
<field-select
v-model="form.sjly"
label="数据来源"
value-key="dictLabel"
data-key="dictValue"
placeholder="选择数据来源"
remote-url="/open/zdzh/list/sjly"
:on-remote-response="'data'"
/>
<FieldRadio
v-model="form.sfbjtjjzzcy"
label="是否本集体经济组织成员"
@@ -218,6 +209,17 @@
remote-url="/open/zdzh/list/house_yes_no"
:on-remote-response="'data'"
/>
<field-select
v-model="form.sjly"
label="数据来源"
value-key="dictLabel"
data-key="dictValue"
placeholder="选择数据来源"
remote-url="/open/zdzh/list/sjly"
:on-remote-response="'data'"
/>


<div v-if="showHzxx">
<p class="title" style="position:relative;padding-left:10px;line-height:20px;font-size: 16px;margin-left: 3%;margin-bottom: 5px;">户主专用信息</p>



+ 1
- 1
src/views/homesteadSurvey/hncyList2.vue Näytä tiedosto

@@ -73,7 +73,7 @@
<template #label>
<p style="display: flex;align-items: center;margin-top: 10px;"><img src="../../assets/images/housesteadSurvey/list04.png" alt="" style="margin-right: 5px;">与户主关系:<span style="margin-left: auto;">{{yhzgxfy(item.yhzgx)}}</span> </p>
<p style="display: flex;align-items: center;margin-top: 10px;"><img src="../../assets/images/housesteadSurvey/list04.png" alt="" style="margin-right: 5px;">证件号码:<span style="margin-left: auto;">{{item.zjhm}}</span> </p>
<p style="display: flex;align-items: center;margin-top: 5px;"><img src="../../assets/images/housesteadSurvey/list05.png" alt="" style="margin-right: 5px;">农户代码:<span style="margin-left: auto;">{{item.nhdm}}</span></p>
<!--<p style="display: flex;align-items: center;margin-top: 5px;"><img src="../../assets/images/housesteadSurvey/list05.png" alt="" style="margin-right: 5px;">农户代码:<span style="margin-left: auto;">{{item.nhdm}}</span></p>-->
</template>
</van-cell>
<template #right>


+ 12
- 10
src/views/homesteadSurvey/nhcyAdd.vue Näytä tiedosto

@@ -181,15 +181,6 @@
maxlength="50"
autocomplete="off"
/>
<field-select
v-model="form.sjly"
label="数据来源"
value-key="dictLabel"
data-key="dictValue"
placeholder="选择数据来源"
remote-url="/open/zdzh/list/sjly"
:on-remote-response="'data'"
/>
<FieldRadio
v-model="form.sfbjtjjzzcy"
label="是否本集体经济组织成员"
@@ -206,8 +197,19 @@
remote-url="/open/zdzh/list/house_yes_no"
:on-remote-response="'data'"
/>
<field-select
v-model="form.sjly"
label="数据来源"
value-key="dictLabel"
data-key="dictValue"
placeholder="选择数据来源"
remote-url="/open/zdzh/list/sjly"
:on-remote-response="'data'"
/>


<div v-if="showHzxx">
<p class="title" style="position:relative;padding-left:10px;line-height:20px;font-size: 16px;margin-left: 3%;margin-bottom: 5px;">户主专用信息</p>
<p class="title" style="position:relative;padding-left:10px;line-height:20px;font-size: 16px;margin-left: 3%;margin-bottom: 5px;">户主扩展信息</p>

<FieldRadio
v-model="form.sfwbh"


+ 4
- 2
src/views/homesteadSurvey/settle.vue Näytä tiedosto

@@ -28,10 +28,10 @@
<p style="font-size: 14px;color: #666666;margin-left: 5px;">修改密码</p>
</div>

<div @click="showUpload = true " style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;display: flex;align-items: center;">
<!-- <div @click="showUpload = true " style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;display: flex;align-items: center;">
<van-icon :name="require('../../assets/images/housesteadSurvey/btn3.png')" size="18"/>
<p style="font-size: 14px;color: #666666;margin-left: 5px;">上传设置</p>
</div>
</div>-->

<div @click="logout" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;display: flex;align-items: center;">
<van-icon :name="require('../../assets/images/housesteadSurvey/btn4.png')" size="18"/>
@@ -58,6 +58,7 @@
</van-row>
</van-cell-group>
</van-popup>

<van-popup v-model:show="showUpload" position="bottom" style="width:100%;padding:20px;">
<van-cell center title="批量上传">
<template #right-icon>
@@ -65,6 +66,7 @@
</template>
</van-cell>
</van-popup>

</div>
</template>



+ 6
- 6
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd.vue Näytä tiedosto

@@ -109,15 +109,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -781,7 +781,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -894,7 +894,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -960,7 +960,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd10.vue Näytä tiedosto

@@ -82,15 +82,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -599,7 +599,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -744,7 +744,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd11.vue Näytä tiedosto

@@ -111,15 +111,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -658,7 +658,7 @@
return false;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return false;
}
if(this.form.capitalExpenditureType==2){
@@ -1651,7 +1651,7 @@
return false;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return false;
}
if(this.form.capitalExpenditureType==2){


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd12.vue Näytä tiedosto

@@ -102,15 +102,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -740,7 +740,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -1719,7 +1719,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd2.vue Näytä tiedosto

@@ -111,15 +111,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -740,7 +740,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -1382,7 +1382,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd3.vue Näytä tiedosto

@@ -74,15 +74,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -568,7 +568,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -712,7 +712,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd4.vue Näytä tiedosto

@@ -82,15 +82,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -687,7 +687,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -839,7 +839,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd5.vue Näytä tiedosto

@@ -74,15 +74,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -570,7 +570,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -714,7 +714,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 1
- 1
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalApproval.vue Näytä tiedosto

@@ -30,7 +30,7 @@
</div>

<div class="main_box" style="margin-top: 10px;">
<van-field readonly label="付款事由" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
<van-field readonly label="转账附言" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
</div>

<div class="main_box" style="margin-top: 10px;">


+ 1
- 1
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalApproval10.vue Näytä tiedosto

@@ -30,7 +30,7 @@
</div>

<div class="main_box" style="margin-top: 10px;">
<van-field readonly label="付款事由" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
<van-field readonly label="转账附言" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
</div>

<div class="main_box" style="margin-top: 10px;">


+ 1
- 1
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalApproval11.vue Näytä tiedosto

@@ -30,7 +30,7 @@
</div>

<div class="main_box" style="margin-top: 10px;">
<van-field readonly label="付款事由" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
<van-field readonly label="转账附言" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
</div>

<div class="main_box" style="margin-top: 10px;">


+ 1
- 1
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalApproval12.vue Näytä tiedosto

@@ -29,7 +29,7 @@
</div>

<div class="main_box" style="margin-top: 10px;">
<van-field readonly label="付款事由" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
<van-field readonly label="转账附言" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
</div>

<div class="main_box" style="margin-top: 10px;">


+ 1
- 1
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail.vue Näytä tiedosto

@@ -30,7 +30,7 @@
</div>

<div class="main_box" style="margin-top: 10px;">
<van-field readonly label="付款事由" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
<van-field readonly label="转账附言" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
</div>

<div class="main_box" style="margin-top: 10px;">


+ 1
- 1
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail10.vue Näytä tiedosto

@@ -30,7 +30,7 @@
</div>

<div class="main_box" style="margin-top: 10px;">
<van-field readonly label="付款事由" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
<van-field readonly label="转账附言" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
</div>

<div class="main_box" style="margin-top: 10px;">


+ 1
- 1
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail11.vue Näytä tiedosto

@@ -30,7 +30,7 @@
</div>

<div class="main_box" style="margin-top: 10px;">
<van-field readonly label="付款事由" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
<van-field readonly label="转账附言" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
</div>

<div class="main_box" style="margin-top: 10px;">


+ 1
- 1
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail12.vue Näytä tiedosto

@@ -29,7 +29,7 @@
</div>

<div class="main_box" style="margin-top: 10px;">
<van-field readonly label="付款事由" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
<van-field readonly label="转账附言" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
</div>

<div class="main_box" style="margin-top: 10px;">


+ 1
- 1
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail2.vue Näytä tiedosto

@@ -30,7 +30,7 @@
</div>

<div class="main_box" style="margin-top: 10px;">
<van-field readonly label="付款事由" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
<van-field readonly label="转账附言" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
</div>

<div class="main_box" style="margin-top: 10px;">


+ 3
- 3
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail3.vue Näytä tiedosto

@@ -21,7 +21,7 @@
</div>

<div class="main_box" style="margin-top: 10px;">
<van-field readonly label="付款事由" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
<van-field readonly label="转账附言" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
</div>

<div class="main_box" style="margin-top: 10px;">
@@ -285,7 +285,7 @@
},
goAdd(){
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$toast.error("付款事由禁止包含|。");
this.$toast.error("转账附言禁止包含|。");
return;
}
if(this.form.capitalExpenditureType==2){
@@ -329,7 +329,7 @@
},
goUpdate(){
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$toast.error("付款事由禁止包含|。");
this.$toast.error("转账附言禁止包含|。");
return;
}
if(this.form.capitalExpenditureType==2){


+ 1
- 1
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail4.vue Näytä tiedosto

@@ -29,7 +29,7 @@
</div>

<div class="main_box" style="margin-top: 10px;">
<van-field readonly label="付款事由" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
<van-field readonly label="转账附言" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
</div>

<div class="main_box" style="margin-top: 10px;">


+ 3
- 3
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalDetail5.vue Näytä tiedosto

@@ -21,7 +21,7 @@
</div>

<div class="main_box" style="margin-top: 10px;">
<van-field readonly label="付款事由" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
<van-field readonly label="转账附言" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
</div>

<div class="main_box" style="margin-top: 10px;">
@@ -275,7 +275,7 @@
},
goAdd(){
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$toast.error("付款事由禁止包含|。");
this.$toast.error("转账附言禁止包含|。");
return;
}
if(this.form.capitalExpenditureType==2){
@@ -316,7 +316,7 @@
},
goUpdate(){
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$toast.error("付款事由禁止包含|。");
this.$toast.error("转账附言禁止包含|。");
return;
}
if(this.form.capitalExpenditureType==2){


+ 7
- 7
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify.vue Näytä tiedosto

@@ -104,15 +104,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -731,7 +731,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -848,7 +848,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -883,7 +883,7 @@
this.projectForm.outId = this.form.id
this.infoForm.transferId = this.form.id
this.$set(this.projectForm, "ynType", '1');
if(this.form.capitalExpenditureType==2){
addProjectto(this.projectForm).then(res => {
this.$toast.success('保存成功');
@@ -1046,7 +1046,7 @@
deleteFile(file){
systemAttachment(file.id).then((res) => {});
},
getFileList(){
let oData1= {
tableId: this.$route.query.id,


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify10.vue Näytä tiedosto

@@ -82,15 +82,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -583,7 +583,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -735,7 +735,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify11.vue Näytä tiedosto

@@ -104,15 +104,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -642,7 +642,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -1640,7 +1640,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify12.vue Näytä tiedosto

@@ -104,15 +104,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -728,7 +728,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -1710,7 +1710,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify2.vue Näytä tiedosto

@@ -104,15 +104,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -713,7 +713,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -1350,7 +1350,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify3.vue Näytä tiedosto

@@ -74,15 +74,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -555,7 +555,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -699,7 +699,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify4.vue Näytä tiedosto

@@ -82,15 +82,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -674,7 +674,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -825,7 +825,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 5
- 5
src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalModify5.vue Näytä tiedosto

@@ -74,15 +74,15 @@

<div class="main_box" style="margin-top: 10px;">
<van-field
label="付款事由"
label="转账附言"
v-model="form.remark"
type="textarea"
placeholder="请输入付款事由"
placeholder="请输入转账附言"
input-align="right"
rows="3"
label-width="auto"
required
:rules="[{ required: true , message:'请输入付款事由' }]"
:rules="[{ required: true , message:'请输入转账附言' }]"
/>
</div>

@@ -557,7 +557,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){
@@ -701,7 +701,7 @@
return;
}
if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
return;
}
if(this.form.capitalExpenditureType==2){


+ 16
- 12
src/views/sunVillage_info/homeApplication/proposerLite.vue Näytä tiedosto

@@ -464,7 +464,7 @@
<template v-if="formVisible.baseApplyForm.nature_resourceFormVisible">
<div class="main_box examine_box">
<van-row type="flex" justify="space-between" align="center">
<van-col span="5">{{applicationDetail.ydjfsp.zrzybmmc}}意见</van-col>
<van-col span="5">{{applicationDetail.ydjfsp.zrzybmmc != null?applicationDetail.ydjfsp.zrzybmmc:'自然资源部'}}意见</van-col>
<van-col span="19">
<!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveNatureOptions.landArea" label="用地面积" placeholder="请输入" input-align="right" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>-->
<!-- <field-select-->
@@ -533,7 +533,7 @@
<template v-if="formVisible.baseApplyForm.buildingFormVisible">
<div class="main_box examine_box">
<van-row type="flex" justify="space-between" align="center">
<van-col span="5">{{applicationDetail.ydjfsp.zfcxjsbmmc}}意见</van-col>
<van-col span="5">{{applicationDetail.ydjfsp.zfcxjsbmmc != null?applicationDetail.ydjfsp.zfcxjsbmmc:'住建部'}}意见</van-col>
<van-col span="19">
<!-- <field-select-->
<!-- v-model="applicationDetail.tHouseApproveOtherOptions.buildingType"-->
@@ -609,7 +609,7 @@
<template v-if="formVisible.baseApplyForm.agricultureFormVisible">
<div class="main_box examine_box">
<van-row type="flex" justify="space-between" align="center">
<van-col span="5">{{applicationDetail.ydjfsp.nyncbmmc}}意见</van-col>
<van-col span="5">{{applicationDetail.ydjfsp.nyncbmmc != null?applicationDetail.ydjfsp.nyncbmmc:'农业农村部'}}意见</van-col>
<van-col span="19">
<!-- <field-radio-->
<!-- v-model="applicationDetail.tHouseApproveAgricultureOptions.isMembership"-->
@@ -1475,7 +1475,7 @@
<template v-if="formVisible.acceptingForm.agricultureFormVisible">
<div class="main_box examine_box">
<van-row type="flex" justify="space-between" align="center">
<van-col span="5">{{applicationDetail.ydjfys.nyncbmmc}}意见</van-col>
<van-col span="5">{{applicationDetail.ydjfys.nyncbmmc != null?applicationDetail.ydjfsp.nyncbmmc:'农业农村部'}}意见</van-col>
<van-col span="19">
<van-field required :readonly="!formEnabled.acceptingForm.agricultureFormEnabled" rows="2" v-model="applicationDetail.ydjfys.nyncbmysyj" :autosize="true" type="textarea" placeholder="乡镇农业农村部门意见" :rules="[{ required: true }]"/>
<van-cell title="负责人:" :rules="[{ required: true }]">
@@ -1509,7 +1509,7 @@
:rules="[{ required: true }]"
formatter="yyyy-MM-dd"
required
:readonly="!formEnabled.baseApplyForm.agricultureFormEnabled"
:readonly="!formEnabled.acceptingForm.agricultureFormEnabled"
/>
</van-col>
</van-row>
@@ -1520,7 +1520,7 @@
<template v-if="formVisible.acceptingForm.nature_resourceFormVisible">
<div class="main_box examine_box">
<van-row type="flex" justify="space-between" align="center">
<van-col span="5">{{applicationDetail.ydjfys.zrzybmmc}}意见</van-col>
<van-col span="5">{{applicationDetail.ydjfys.zrzybmmc != null?applicationDetail.ydjfsp.zrzybmmc:'自然资源部'}}意见</van-col>
<van-col span="19">
<van-field required :readonly="!formEnabled.acceptingForm.nature_resourceFormEnabled" rows="2" v-model="applicationDetail.ydjfys.zrzybmysyj" :autosize="true" type="textarea" placeholder="乡镇自然资源部门意见" :rules="[{ required: true }]"/>
<van-cell title="负责人:" :rules="[{ required: true }]">
@@ -1553,7 +1553,7 @@
:rules="[{ required: true }]"
formatter="yyyy-MM-dd"
required
:readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled"
:readonly="!formEnabled.acceptingForm.nature_resourceFormEnabled"
/>
</van-col>
</van-row>
@@ -1562,7 +1562,7 @@
<template v-if="formVisible.acceptingForm.buildingFormVisible">
<div class="main_box examine_box">
<van-row type="flex" justify="space-between" align="center">
<van-col span="5">{{applicationDetail.ydjfys.zfcxjsbmmc}}意见</van-col>
<van-col span="5">{{applicationDetail.ydjfys.zfcxjsbmmc != null?applicationDetail.ydjfsp.zfcxjsbmmc:'住建部'}}意见</van-col>
<van-col span="19">
<van-field required :readonly="!formEnabled.acceptingForm.buildingFormEnabled" v-model="applicationDetail.ydjfys.zfcxjsbmysyj" rows="2" autosize type="textarea" placeholder="审批意见" :rules="[{ required: true }]"/>
<van-cell title="负责人:" :rules="[{ required: true }]">
@@ -1637,7 +1637,7 @@
:rules="[{ required: true }]"
formatter="yyyy-MM-dd"
required
:readonly="!formEnabled.baseApplyForm.baseFormEnabled"
:readonly="!formEnabled.acceptingForm.townFormEnabled"
/>
</van-col>
</van-row>
@@ -2906,7 +2906,7 @@ export default {
this.uploadImgAccepting.fileList = value.ydjfys ? value.ydjfys.jgpmjt : '';
this.uploadImgAccepting.proposerId = this.applicationDetail.id;

console.info("-------------------------"+role+"-------------------------");
//地图编辑
this.pointDarw(null);
// this.pointDarwNature(null);
@@ -3490,7 +3490,6 @@ export default {
if (msg) {
break;
}

this.$set(this.applicationDetail, 'tHouseApproveTownOptions', null);
this.$set(this.applicationDetail, 'tHouseApproveOtherOptions', null);
this.$set(this.applicationDetail, 'tHouseApproveAgricultureOptions', null);
@@ -3647,7 +3646,12 @@ export default {
}
else {
if(this.applicationDetail.ydjfkg.theGeomJson == null){
this.applicationDetail.ydjfkg.theGeomJson = this.convertGeom(this.applicationDetail.ydjfkg.theGeom);
if(this.applicationDetail.ydjfkg.theGeom == null){
this.notify("请在地图上标注宅基地位置!", 'danger');
break;
}else{
this.applicationDetail.ydjfkg.theGeomJson = this.convertGeom(this.applicationDetail.ydjfkg.theGeom);
}
}
}
saveHomeBaseInfo(this.applicationDetail).then((response) => {


+ 83
- 10
src/views/sunVillage_info/list_finance_add.vue Näytä tiedosto

@@ -50,7 +50,17 @@
</template>
</van-field>
<!-- @delete="deleteFile1"-->
<van-uploader v-model="fileList" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />
<van-uploader v-model="fileList" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX">
<template #preview-cover="file">
<DnD class="van-ellipsis" @touchdragstart="drag" @touchdrop="drop" :value="file.index" touchdraggable touchdroppable show-mask="1">
<template #mask>
<div class="preview-cover">
<img :src="file.url || file.content" class="van-image__img" style="object-fit: cover;"/>
</div>
</template>
</DnD>
</template>
</van-uploader>

<div style="border-top: 1px solid #ededed;margin-top: 10PX;">
<van-field readonly input-align="right" :border="false" >
@@ -94,8 +104,10 @@
import { commonUpload , openAdd } from "@/api/sunVillage_info/fixedAssets";
import Cookies from "js-cookie";
import request from '@/utils/request'
import DnD from "@/components/DnD";
export default {
name: "certificateList",
components: {DnD},
data() {
return {
showBuildTime:false,
@@ -140,7 +152,11 @@
console.log(this.openPic)
var that = this;
that.form.openFile = that.openFile2.join(',')
that.form.openPic = that.openPic2.join(',')
//that.form.openPic = that.openPic2.join(',')
that.form.openPic = that.fileList
.filter((x) => x.url && x.url.startsWith('/api'))
.map((x) => x.url.substr(4))
.join(',');
openAdd(that.form).then((r1) => {
if (r1.code == 200){
that.$notify({ type: 'success', message: '新增成功' });
@@ -172,20 +188,42 @@
});
// 此时可以自行将文件上传至服务器
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
this.openPic.push(res.file);
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
if(false) // 顺序上传
{
let SequenceUpload = (list, index) => {
if(index >= list.length)
return;
let res = list[index];
this.openPic.push(res.file);
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
res.url = '/api' + r1.fileName;
SequenceUpload(list, index + 1);
})
};
SequenceUpload(file, 0);
}
else
{
file.map(res=>{
this.openPic.push(res.file);
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
res.url = '/api' + r1.fileName;
})
})
})
}
}else{
this.openPic.push(file);
let params1 = new FormData();
params1.append("file", file.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
file.url = '/api' + r1.fileName;
})
}
},
@@ -205,7 +243,30 @@
}
this.openFileList.push({name:file.file.name,type:type})
this.openFile.push(file.file);
}
},
drag(src_element) {
//console.log("drag", event);
},
drop(src_element, dst_element, srcData, dstData) {
//console.log("drop", event);
let srcIndex = parseInt(srcData);
let index = parseInt(dstData);
//console.log(srcIndex, index,this.fileList);
if(srcIndex !== index)
{
let src = this.fileList[srcIndex];
if(srcIndex > index)
{
this.fileList.splice(srcIndex, 1);
this.fileList.splice(index, 0, src);
}
else
{
this.fileList.splice(srcIndex, 1);
this.fileList.splice(index, 0, src);
}
}
},
},
}
</script>
@@ -325,5 +386,17 @@
/deep/ .van-field__error-message{
display: none;
}
.preview-cover {
position: absolute;
bottom: 0;
top: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0);
}

/deep/ .van-uploader__preview-image {
overflow: visible;
}
}
</style>

+ 83
- 9
src/views/sunVillage_info/list_finance_edit.vue Näytä tiedosto

@@ -50,7 +50,17 @@
</template>
</van-field>
<!-- @delete="deleteFile1"-->
<van-uploader v-model="openPic" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />
<van-uploader v-model="openPic" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" >
<template #preview-cover="file">
<DnD class="van-ellipsis" @touchdragstart="drag" @touchdrop="drop" :value="file.index" touchdraggable touchdroppable show-mask="1">
<template #mask>
<div class="preview-cover">
<img :src="file.url || file.content" class="van-image__img" style="object-fit: cover;"/>
</div>
</template>
</DnD>
</template>
</van-uploader>

<div style="border-top: 1px solid #ededed;margin-top: 10PX;">
<van-field readonly input-align="right" :border="false" >
@@ -94,8 +104,11 @@
import { commonUpload , openEdit , financePublicDetail } from "@/api/sunVillage_info/fixedAssets";
import Cookies from "js-cookie";
import request from '@/utils/request'
import DnD from "@/components/DnD";

export default {
name: "certificateList",
components: {DnD},
data() {
return {
showBuildTime:false,
@@ -167,7 +180,11 @@
onSubmit(){
var that = this;
that.form.openFile = that.openFile2.join(',')
that.form.openPic = that.openPic2.join(',')
//that.form.openPic = that.openPic2.join(',')
that.form.openPic = that.openPic
.filter((x) => x.url && x.url.startsWith('/api'))
.map((x) => x.url.substr(4))
.join(',');
openEdit(that.form).then((r1) => {
if (r1.code == 200){
that.$notify({ type: 'success', message: '修改成功' });
@@ -197,18 +214,40 @@
duration: 0,
});
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
if(false) // 顺序上传
{
let SequenceUpload = (list, index) => {
if(index >= list.length)
return;
let res = list[index];
this.openPic.push(res.file);
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
res.url = '/api' + r1.fileName;
SequenceUpload(list, index + 1);
})
};
SequenceUpload(file, 0);
}
else
{
file.map(res => {
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
res.url = '/api' + r1.fileName;
})
})
})
}
}else{
let params1 = new FormData();
params1.append("file", file.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
file.url = '/api' + r1.fileName;
})
}
},
@@ -228,7 +267,30 @@
}
this.openFile.push({name:file.file.name,type:type})
this.openFileList.push(file.file);
}
},
drag(src_element) {
//console.log("drag", event);
},
drop(src_element, dst_element, srcData, dstData) {
//console.log("drop", event);
let srcIndex = parseInt(srcData);
let index = parseInt(dstData);
//console.log(srcIndex, index,this.openPic);
if(srcIndex !== index)
{
let src = this.openPic[srcIndex];
if(srcIndex > index)
{
this.openPic.splice(srcIndex, 1);
this.openPic.splice(index, 0, src);
}
else
{
this.openPic.splice(srcIndex, 1);
this.openPic.splice(index, 0, src);
}
}
},
},
}
</script>
@@ -348,5 +410,17 @@
/deep/ .van-field__error-message{
display: none;
}
.preview-cover {
position: absolute;
bottom: 0;
top: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0);
}

/deep/ .van-uploader__preview-image {
overflow: visible;
}
}
</style>

Ladataan…
Peruuta
Tallenna