Commit 14d1c4f4 authored by zhanglw's avatar zhanglw

产品富文本

parent 7027b6b7
......@@ -163,7 +163,7 @@
</template>
<script>
import { getToken } from '@/utils/auth'
import { HttpReq } from '@/api/common.js'
import { HttpReq } from '@/api/common'
export default {
dicts: ['industry_type', 'supplier_rank', 'company_type', 'business_status'],
......
......@@ -70,7 +70,7 @@
<img width="100%" :src="dialogImageUrl">
</el-dialog>
</div>
<div style="clear:both">{{ formData.businessLicense }}</div>
<div style="display: none;clear: both">{{ formData.businessLicense }}</div>
</el-form-item>
<el-form-item label="统一社会信用代码:" class="form-cell" prop="unifiedSocialCreditCode">
<div class="cell-box">
......@@ -178,7 +178,7 @@
</template>
<script>
import { getToken } from '@/utils/auth'
import { HttpReq } from '@/api/common.js'
import { HttpReq } from '@/api/common'
export default {
dicts: ['industry_type', 'supplier_rank', 'company_type', 'business_status'],
......
......@@ -63,7 +63,7 @@
</div>
</template>
<script>
import { HttpReq } from '@/api/common.js'
import { HttpReq } from '@/api/common'
import DateRangePicker from '@/components/DateRangePicker'
import addPage from './add'
import editPage from './edit'
......
......@@ -150,7 +150,7 @@
</el-form-item>
<el-form-item v-if="!isReview && formData.status!=='3'" label="审核意见:" class="form-cell">
<div class="cell-box">
<div class="cell-textarea">{{ formData.reviewContent }}</div>
<div class="cell-textarea">{{ formData.reviewComments }}</div>
</div>
</el-form-item>
</el-form>
......@@ -161,9 +161,9 @@
</div>
<el-dialog append-to-body :close-on-click-modal="false" :before-close="cancelReview" :visible="reviewVisible" title="审核意见" width="600px">
<el-form ref="formReviewRef" :model="formReview" :rules="rules" :status-icon="true" label-width="120px">
<el-form-item label="审核意见:" class="form-cell" prop="reviewContent">
<el-form-item label="审核意见:" class="form-cell" prop="reviewComments">
<div class="cell-box">
<el-input v-model="formReview.reviewContent" type="textarea" placeholder="请输入审核意见" maxlength="100" :autosize="{ minRows: 4, maxRows: 6}" show-word-limit resize="none" style="width: 300px" />
<el-input v-model="formReview.reviewComments" type="textarea" placeholder="请输入审核意见" maxlength="100" :autosize="{ minRows: 4, maxRows: 6}" show-word-limit resize="none" style="width: 300px" />
</div>
</el-form-item>
</el-form>
......@@ -175,7 +175,7 @@
</template>
<script>
import { getToken } from '@/utils/auth'
import { HttpReq } from '@/api/common.js'
import { HttpReq } from '@/api/common'
import review_pass from '@/assets/images/review_pass.png'
import review_await from '@/assets/images/review_await.png'
import review_failed from '@/assets/images/review_failed.png'
......@@ -224,14 +224,15 @@ export default {
supplierLevel: '1', // 供应商级别
taxpayerIdentificationNumber: '', // 纳税人识别号
unifiedSocialCreditCode: '', // 统一社会信用代码
reviewComments: '', // 审核意见
sysUserId: null
},
reviewVisible: false,
formReview: {
reviewContent: ''
reviewComments: ''
},
rules: {
reviewContent: { required: true, message: '请填写审核意见', trigger: 'blur' }
reviewComments: { required: true, message: '请填写审核意见', trigger: 'blur' }
}
}
},
......@@ -259,18 +260,46 @@ export default {
if (this.$refs.formReviewRef) {
this.$refs.formReviewRef.resetFields()
}
this.formReview.reviewContent = ''
this.formReview.reviewComments = ''
this.reviewVisible = false
},
submitForm(isPass) {
if (isPass) {
this.formReview.reviewContent = '审核通过'
this.formReview.reviewComments = '审核通过'
HttpReq.backstageApi.reviewCustomer({
customerId: this.customerId,
reviewComments: this.formReview.reviewComments,
type: 1
}).then((res) => {
this.$notify({
title: res.msg,
type: 'success',
duration: 2500
})
if (res.code === 200) {
this.cancelView()
this.$parent.loadData()
}
})
return
}
this.$refs.formReviewRef.validate((valid, obj) => {
if (valid) {
HttpReq.backstageApi.reviewCustomer({
customerId: this.customerId,
reviewComments: this.formReview.reviewComments,
type: 0
}).then((res) => {
this.$notify({
title: res.msg,
type: 'success',
duration: 2500
})
if (res.code === 200) {
this.cancelView()
this.$parent.loadData()
}
})
} else {
this.$message({
message: '表单信息有误,请核对无误后提交!',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment