| @@ -199,7 +199,7 @@ | |||
| /> | |||
| </van-popup> | |||
| <van-field label="开户银行地址" v-if="accountType=='银行存款'" :rules="[{ required: true , message:'请输入开户银行地址' }]" v-model="form.site" placeholder="请输入开户银行地址" input-align="right" label-width="auto" required/> | |||
| <van-field label="支付口令" v-if="accountType=='银行存款'" :rules="[{ required: true , message:'请输入支付口令' }]" v-model="form.accountPassword" placeholder="请输入支付口令" input-align="right" label-width="auto" required/> | |||
| <van-field label="支付口令" v-if="accountType=='银行存款'" name="validator" :rules="[{ validator , message:'支付口令:请输入六位以上数字' }]" v-model="form.accountPassword" placeholder="请输入支付口令" input-align="right" label-width="auto" required/> | |||
| <van-field label="账户类型" v-if="accountType=='银行存款'" required> | |||
| <template #right-icon> | |||
| <van-radio-group direction="horizontal" v-model="form.bankAccountType" required :rules="[{ required: true , message:'请选择账户类型' }]"> | |||
| @@ -321,6 +321,9 @@ | |||
| this.getDetail(); | |||
| }, | |||
| methods: { | |||
| validator(val){ | |||
| return /^\d{6,}$/.test(val); | |||
| }, | |||
| getDetail(){ | |||
| // 账户类型 | |||
| this.houseGetDicts("account_type_cashier").then((res) => { | |||
| @@ -350,6 +353,7 @@ | |||
| }); | |||
| }, | |||
| getTaList(){ | |||
| let params= { | |||
| // 分页 | |||
| pageNum: 1, | |||
| @@ -199,7 +199,7 @@ | |||
| /> | |||
| </van-popup> | |||
| <van-field label="开户银行地址" v-if="accountType=='银行存款'" :rules="[{ required: true , message:'请输入开户银行地址' }]" v-model="form.site" placeholder="请输入开户银行地址" input-align="right" label-width="auto" required/> | |||
| <van-field label="支付口令" v-if="accountType=='银行存款'" :rules="[{ required: true , message:'请输入支付口令' }]" v-model="form.accountPassword" placeholder="请输入支付口令" input-align="right" label-width="auto" required/> | |||
| <van-field label="支付口令" v-if="accountType=='银行存款'" name="validator" :rules="[{ validator , message:'支付口令:请输入六位以上数字' }]" v-model="form.accountPassword" placeholder="请输入支付口令" input-align="right" label-width="auto" required/> | |||
| <van-field label="账户类型" v-if="accountType=='银行存款'" required > | |||
| <template #right-icon> | |||
| <van-radio-group direction="horizontal" v-model="form.bankAccountType" required :rules="[{ required: true , message:'请选择账户类型' }]"> | |||
| @@ -321,6 +321,9 @@ | |||
| this.getDetail(); | |||
| }, | |||
| methods: { | |||
| validator(val){ | |||
| return /^\d{6,}$/.test(val); | |||
| }, | |||
| getDetail(){ | |||
| getAccount(this.$route.query.id).then((response) => { | |||
| // 账户类型 | |||
| @@ -67,6 +67,7 @@ | |||
| </template> | |||
| </van-field> | |||
| <van-field | |||
| v-if="form.approvalMode==1" | |||
| readonly | |||
| clickable | |||
| label="审批流程" | |||
| @@ -436,9 +437,17 @@ | |||
| }); | |||
| }, | |||
| onConfirmTemplate(data){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| this.showtemplate = false; | |||
| selectApprovalByTemplateId(data.id).then(res => { | |||
| this.showtemplate = false; | |||
| if(res.approvalDetails.length>0){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| }else{ | |||
| this.form.approvalTemplateName = null | |||
| this.form.approvalTemplateId = null | |||
| this.$notify({ type: 'danger', message: '此流程无节点,无法选择!' }); | |||
| } | |||
| }) | |||
| }, | |||
| getNowDate(){ | |||
| var _this = this; | |||
| @@ -76,6 +76,7 @@ | |||
| </template> | |||
| </van-field> | |||
| <van-field | |||
| v-if="form.approvalMode==1" | |||
| readonly | |||
| clickable | |||
| label="审批流程" | |||
| @@ -389,9 +390,17 @@ | |||
| }); | |||
| }, | |||
| onConfirmTemplate(data){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| this.showtemplate = false; | |||
| selectApprovalByTemplateId(data.id).then(res => { | |||
| this.showtemplate = false; | |||
| if(res.approvalDetails.length>0){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| }else{ | |||
| this.form.approvalTemplateName = null | |||
| this.form.approvalTemplateId = null | |||
| this.$notify({ type: 'danger', message: '此流程无节点,无法选择!' }); | |||
| } | |||
| }) | |||
| }, | |||
| getNowDate(){ | |||
| var _this = this; | |||
| @@ -730,7 +739,6 @@ | |||
| }) | |||
| }) | |||
| }); | |||
| }) | |||
| }else{ | |||
| @@ -67,6 +67,7 @@ | |||
| </template> | |||
| </van-field> | |||
| <van-field | |||
| v-if="form.approvalMode==1" | |||
| readonly | |||
| clickable | |||
| label="审批流程" | |||
| @@ -203,7 +204,7 @@ | |||
| @cancel="showpayer = false" | |||
| /> | |||
| </van-popup> | |||
| <van-field :rules="[{ required: true , message:'请输入汇票号码' }]" required label="汇票号码" v-model="form.payerAccount" placeholder="请输入汇票号码" input-align="right" label-width="auto"/> | |||
| <van-field readonly :rules="[{ required: true , message:'请输入汇票号码' }]" required label="汇票号码" v-model="form.payerAccount" input-align="right" label-width="auto"/> | |||
| <van-field | |||
| readonly | |||
| label="出票金额(元)" | |||
| @@ -436,9 +437,17 @@ | |||
| }); | |||
| }, | |||
| onConfirmTemplate(data){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| this.showtemplate = false; | |||
| selectApprovalByTemplateId(data.id).then(res => { | |||
| this.showtemplate = false; | |||
| if(res.approvalDetails.length>0){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| }else{ | |||
| this.form.approvalTemplateName = null | |||
| this.form.approvalTemplateId = null | |||
| this.$notify({ type: 'danger', message: '此流程无节点,无法选择!' }); | |||
| } | |||
| }) | |||
| }, | |||
| getNowDate(){ | |||
| var _this = this; | |||
| @@ -76,6 +76,7 @@ | |||
| </template> | |||
| </van-field> | |||
| <van-field | |||
| v-if="form.approvalMode==1" | |||
| readonly | |||
| clickable | |||
| label="审批流程" | |||
| @@ -427,9 +428,17 @@ | |||
| }); | |||
| }, | |||
| onConfirmTemplate(data){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| this.showtemplate = false; | |||
| selectApprovalByTemplateId(data.id).then(res => { | |||
| this.showtemplate = false; | |||
| if(res.approvalDetails.length>0){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| }else{ | |||
| this.form.approvalTemplateName = null | |||
| this.form.approvalTemplateId = null | |||
| this.$notify({ type: 'danger', message: '此流程无节点,无法选择!' }); | |||
| } | |||
| }) | |||
| }, | |||
| getNowDate(){ | |||
| var _this = this; | |||
| @@ -26,7 +26,7 @@ | |||
| </van-radio-group> | |||
| </template> | |||
| </van-field> | |||
| <van-field readonly label="审批流程" :value="tempalteFormat(form.approvalTemplateId)" input-align="right" label-width="auto"/> | |||
| <van-field v-if="form.approvalMode==1" readonly label="审批流程" :value="tempalteFormat(form.approvalTemplateId)" input-align="right" label-width="auto"/> | |||
| </div> | |||
| <div class="main_box" style="margin-top: 10px;"> | |||
| @@ -26,7 +26,7 @@ | |||
| </van-radio-group> | |||
| </template> | |||
| </van-field> | |||
| <van-field readonly label="审批流程" :value="tempalteFormat(form.approvalTemplateId)" input-align="right" label-width="auto"/> | |||
| <van-field v-if="form.approvalMode==1" readonly label="审批流程" :value="tempalteFormat(form.approvalTemplateId)" input-align="right" label-width="auto"/> | |||
| </div> | |||
| <div class="main_box" style="margin-top: 10px;"> | |||
| @@ -25,7 +25,7 @@ | |||
| </van-radio-group> | |||
| </template> | |||
| </van-field> | |||
| <van-field readonly label="审批流程" :value="tempalteFormat(form.approvalTemplateId)" input-align="right" label-width="auto"/> | |||
| <van-field v-if="form.approvalMode==1" readonly label="审批流程" :value="tempalteFormat(form.approvalTemplateId)" input-align="right" label-width="auto"/> | |||
| </div> | |||
| <div class="main_box" style="margin-top: 10px;"> | |||
| @@ -26,7 +26,7 @@ | |||
| </van-radio-group> | |||
| </template> | |||
| </van-field> | |||
| <van-field readonly label="审批流程" :value="tempalteFormat(form.approvalTemplateId)" input-align="right" label-width="auto"/> | |||
| <van-field v-if="form.approvalMode==1" readonly label="审批流程" :value="tempalteFormat(form.approvalTemplateId)" input-align="right" label-width="auto"/> | |||
| </div> | |||
| <div class="main_box" style="margin-top: 10px;"> | |||
| @@ -76,6 +76,7 @@ | |||
| </template> | |||
| </van-field> | |||
| <van-field | |||
| v-if="form.approvalMode==1" | |||
| readonly | |||
| clickable | |||
| label="审批流程" | |||
| @@ -442,9 +443,17 @@ | |||
| methods: { | |||
| onConfirmTemplate(data){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| this.showtemplate = false; | |||
| selectApprovalByTemplateId(data.id).then(res => { | |||
| this.showtemplate = false; | |||
| if(res.approvalDetails.length>0){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| }else{ | |||
| this.form.approvalTemplateName = null | |||
| this.form.approvalTemplateId = null | |||
| this.$notify({ type: 'danger', message: '此流程无节点,无法选择!' }); | |||
| } | |||
| }) | |||
| }, | |||
| getDictionaries(){ | |||
| getTransfer(this.$route.query.id).then((response) => { | |||
| @@ -76,6 +76,7 @@ | |||
| </template> | |||
| </van-field> | |||
| <van-field | |||
| v-if="form.approvalMode==1" | |||
| readonly | |||
| clickable | |||
| label="审批流程" | |||
| @@ -372,9 +373,17 @@ | |||
| }, | |||
| methods: { | |||
| onConfirmTemplate(data){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| this.showtemplate = false; | |||
| selectApprovalByTemplateId(data.id).then(res => { | |||
| this.showtemplate = false; | |||
| if(res.approvalDetails.length>0){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| }else{ | |||
| this.form.approvalTemplateName = null | |||
| this.form.approvalTemplateId = null | |||
| this.$notify({ type: 'danger', message: '此流程无节点,无法选择!' }); | |||
| } | |||
| }) | |||
| }, | |||
| initProjectInfo(){ | |||
| let _this = this | |||
| @@ -76,6 +76,7 @@ | |||
| </template> | |||
| </van-field> | |||
| <van-field | |||
| v-if="form.approvalMode==1" | |||
| readonly | |||
| clickable | |||
| label="审批流程" | |||
| @@ -211,7 +212,7 @@ | |||
| @cancel="showpayer = false" | |||
| /> | |||
| </van-popup> | |||
| <van-field :rules="[{ required: true , message:'请输入汇票号码' }]" required label="汇票号码" v-model="form.payerAccount" placeholder="请输入汇票号码" input-align="right" label-width="auto"/> | |||
| <van-field readonly :rules="[{ required: true , message:'请输入汇票号码' }]" required label="汇票号码" v-model="form.payerAccount" input-align="right" label-width="auto"/> | |||
| <van-field | |||
| readonly | |||
| label="出票金额(元)" | |||
| @@ -428,9 +429,17 @@ | |||
| }, | |||
| methods: { | |||
| onConfirmTemplate(data){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| this.showtemplate = false; | |||
| selectApprovalByTemplateId(data.id).then(res => { | |||
| this.showtemplate = false; | |||
| if(res.approvalDetails.length>0){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| }else{ | |||
| this.form.approvalTemplateName = null | |||
| this.form.approvalTemplateId = null | |||
| this.$notify({ type: 'danger', message: '此流程无节点,无法选择!' }); | |||
| } | |||
| }) | |||
| }, | |||
| initProjectInfo(){ | |||
| let _this = this | |||
| @@ -76,6 +76,7 @@ | |||
| </template> | |||
| </van-field> | |||
| <van-field | |||
| v-if="form.approvalMode==1" | |||
| readonly | |||
| clickable | |||
| label="审批流程" | |||
| @@ -442,9 +443,17 @@ | |||
| }, | |||
| methods: { | |||
| onConfirmTemplate(data){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| this.showtemplate = false; | |||
| selectApprovalByTemplateId(data.id).then(res => { | |||
| this.showtemplate = false; | |||
| if(res.approvalDetails.length>0){ | |||
| this.form.approvalTemplateName = data.name | |||
| this.form.approvalTemplateId = data.id | |||
| }else{ | |||
| this.form.approvalTemplateName = null | |||
| this.form.approvalTemplateId = null | |||
| this.$notify({ type: 'danger', message: '此流程无节点,无法选择!' }); | |||
| } | |||
| }) | |||
| }, | |||
| getDictionaries(){ | |||
| getTransfer(this.$route.query.id).then((response) => { | |||