[add] 普通项目、工作组项目缴费凭证
This commit is contained in:
@@ -237,6 +237,8 @@ export default {
|
|||||||
* 添加阶段
|
* 添加阶段
|
||||||
*/
|
*/
|
||||||
addStage() {
|
addStage() {
|
||||||
|
this.$refs.stageModal.projectId = this.$route.query.projectId
|
||||||
|
this.$refs.stageModal.projectType = this.$route.query.projectType
|
||||||
this.$refs.stageModal.visible = true
|
this.$refs.stageModal.visible = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
date-format="YYYY-MM-DD"/>
|
date-format="YYYY-MM-DD"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="付款凭证" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="付款凭证" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<j-image-upload v-decorator="['paymentRecord',validatorRules.paymentRecord]"
|
<j-image-upload v-decorator="['proof',validatorRules.proof]"
|
||||||
:return-id="true">
|
:return-id="true">
|
||||||
</j-image-upload>
|
</j-image-upload>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -39,6 +39,8 @@ import { addZero } from '@/utils/util'
|
|||||||
import { money } from '@/utils/validate'
|
import { money } from '@/utils/validate'
|
||||||
import JImageUpload from '@comp/jero/JImageUpload'
|
import JImageUpload from '@comp/jero/JImageUpload'
|
||||||
import JDate from '@comp/tools/JDate'
|
import JDate from '@comp/tools/JDate'
|
||||||
|
import { postAction } from '@api/manage'
|
||||||
|
import pick from 'lodash.pick'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'PaymentVoucherModal',
|
name: 'PaymentVoucherModal',
|
||||||
@@ -68,11 +70,17 @@ export default {
|
|||||||
rules: [{ required: true, message: '请选择缴费日期' }],
|
rules: [{ required: true, message: '请选择缴费日期' }],
|
||||||
validateTrigger: 'change'
|
validateTrigger: 'change'
|
||||||
},
|
},
|
||||||
paymentRecord: {
|
proof: {
|
||||||
rules: [{ required: true, message: '请上传付款凭证' }],
|
rules: [{ required: true, message: '请上传付款凭证' }],
|
||||||
validateTrigger: 'change'
|
validateTrigger: 'change'
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
url: {
|
||||||
|
add: '/paymentCheck/payPaymentCheck/applicant',
|
||||||
|
edit: ''
|
||||||
|
},
|
||||||
|
projectId: '',
|
||||||
|
projectType: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -85,7 +93,7 @@ export default {
|
|||||||
this.model = Object.assign({}, record)
|
this.model = Object.assign({}, record)
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue(pick(this.model, 'amountReceived', 'paymentDate', 'remark'))
|
this.form.setFieldsValue(pick(this.model, 'amountReceived', 'paymentDate', 'proof'))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleOk() {
|
handleOk() {
|
||||||
@@ -97,16 +105,14 @@ export default {
|
|||||||
if (!err) {
|
if (!err) {
|
||||||
values.projectId = this.projectId
|
values.projectId = this.projectId
|
||||||
values.projectType = this.projectType
|
values.projectType = this.projectType
|
||||||
const obj = Object.assign(this.model, values)
|
const formData = Object.assign(this.model, values)
|
||||||
let okHttpMethod
|
let url
|
||||||
if (this.model.id) {
|
if (this.model.id) {
|
||||||
okHttpMethod = editAmountPhase(obj)
|
url = this.url.edit
|
||||||
} else {
|
} else {
|
||||||
let arr = []
|
url = this.url.add
|
||||||
arr.push(obj)
|
|
||||||
okHttpMethod = addPaymentPhase(arr)
|
|
||||||
}
|
}
|
||||||
okHttpMethod.then(res => {
|
postAction(url, formData).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
this.$emit('ok')
|
this.$emit('ok')
|
||||||
|
|||||||
@@ -147,7 +147,8 @@ export default {
|
|||||||
path: '/MessagePage/PaymentVoucher',
|
path: '/MessagePage/PaymentVoucher',
|
||||||
query: {
|
query: {
|
||||||
projectId: record.id,
|
projectId: record.id,
|
||||||
projectName: record.chargeProject
|
projectName: record.chargeProject,
|
||||||
|
projectType: 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,7 +156,8 @@ export default {
|
|||||||
path: '/MessagePage/PaymentVoucher',
|
path: '/MessagePage/PaymentVoucher',
|
||||||
query: {
|
query: {
|
||||||
projectId: record.id,
|
projectId: record.id,
|
||||||
projectName: record.chargeProject
|
projectName: record.chargeProject,
|
||||||
|
projectType: 2
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" class="basic-info-item">
|
<a-col :span="24" class="basic-info-item">
|
||||||
<label>任务及目标:</label>
|
<label>任务及目标:</label>
|
||||||
<span>{{ detail.remarks }}</span>
|
<span>{{ detail.missionAndObjectives }}</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
@@ -166,7 +166,7 @@ export default {
|
|||||||
ipagination: {
|
ipagination: {
|
||||||
current: 1,
|
current: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
pageSizeOptions: ['10', '20', '30', '50', '100'],
|
pageSizeOptions: ['10', '20', '30'],
|
||||||
showTotal: (total, range) => {
|
showTotal: (total, range) => {
|
||||||
return range[0] + '-' + range[1] + ' 共' + total + '条'
|
return range[0] + '-' + range[1] + ' 共' + total + '条'
|
||||||
},
|
},
|
||||||
|
|||||||
+3
-3
@@ -79,7 +79,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
devServer: {
|
devServer: {
|
||||||
port: 21826,
|
port: 3001,
|
||||||
proxy: {
|
proxy: {
|
||||||
/* '/api': {
|
/* '/api': {
|
||||||
target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统
|
target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统
|
||||||
@@ -91,14 +91,14 @@ module.exports = {
|
|||||||
},*/
|
},*/
|
||||||
'/jero-boot': {
|
'/jero-boot': {
|
||||||
// target: 'http://localhost:21824', //请求本地 jero-boot后台项目
|
// target: 'http://localhost:21824', //请求本地 jero-boot后台项目
|
||||||
target: 'http://10.0.10.78:21824', //请求本地 jero-boot后台项目
|
target: 'http://localhost:8080', //请求本地 jero-boot后台项目
|
||||||
ws: false,
|
ws: false,
|
||||||
changeOrigin: true
|
changeOrigin: true
|
||||||
},
|
},
|
||||||
// 会员系统的路由转发
|
// 会员系统的路由转发
|
||||||
'/memberApi': {
|
'/memberApi': {
|
||||||
// target: 'http://localhost:9000', //请求本地 jero-boot后台项目
|
// target: 'http://localhost:9000', //请求本地 jero-boot后台项目
|
||||||
target: 'http://10.0.10.78:9000', //请求本地 jero-boot后台项目
|
target: 'http://localhost:8080', //请求本地 jero-boot后台项目
|
||||||
ws: false,
|
ws: false,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
|||||||
Reference in New Issue
Block a user