|
@@ -12,7 +12,7 @@
|
|
|
<u-radio name="3">无效</u-radio>
|
|
|
</u-radio-group>
|
|
|
</u-form-item>
|
|
|
- <u-form-item label-position="top" label-width="150" label="报备二维码(非必填)" prop="report_code">
|
|
|
+ <u-form-item label-position="top" label-width="150" label="报备二维码(非江投必填)" prop="report_code">
|
|
|
<view class="id_card" @click="uploadImage">
|
|
|
<u-icon v-if="form.report_code == null" name="plus" size="32" color="#606266"></u-icon>
|
|
|
<text v-if="form.report_code == null">请先上传报备二维码照片</text>
|
|
@@ -33,6 +33,7 @@ var that;
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ eId: '',
|
|
|
curName: '',
|
|
|
curId: '',
|
|
|
form: {
|
|
@@ -43,6 +44,7 @@ export default {
|
|
|
},
|
|
|
onLoad(params) {
|
|
|
this.curId = params.id
|
|
|
+ this.eId = params.eid
|
|
|
this.curName = params.name
|
|
|
},
|
|
|
// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕
|
|
@@ -84,7 +86,7 @@ export default {
|
|
|
if (cData.errno === 0) {
|
|
|
if (bc && typeof(bc) === 'function') bc(cData.data)
|
|
|
} else {
|
|
|
- uin.$msg(cData.errmsg || `未知错误-${cData.errno}`)
|
|
|
+ uni.$msg(cData.errmsg || `未知错误-${cData.errno}`)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -98,6 +100,12 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
submitHandle() {
|
|
|
+ if (this.eId != 2) {
|
|
|
+ if (!this.form.report_code) {
|
|
|
+ uni.$msg('非江投项目,请上传报备二维码~')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
const that = this
|
|
|
this.$refs.uForm.validate(valid => {
|
|
|
if (valid) {
|