拒绝内容 细节

main
fanfan 9 months ago
parent 8263134184
commit 3679b036a6
  1. BIN
      public/static/template/batch-goods.xlsx
  2. 5
      src/views/goods/Create.vue
  3. 2
      src/views/goods/Update.vue
  4. 1
      src/views/order/modules/RemarkForm.vue
  5. 12
      src/views/order/refund/Detail.vue
  6. 25
      src/views/order/refund/modules/AuditForm.vue
  7. 4
      src/views/order/refund/modules/index.js

@ -57,7 +57,7 @@
/>
</a-form-item>
<a-form-item label="商品来源" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-radio-group v-decorator="['goods_source', { initialValue: 0, rules: [{ required: true }] }]">
<a-radio-group v-decorator="['goods_source', { initialValue: 'JD', rules: [{ required: true }] }]">
<a-radio value="JD">京东</a-radio>
<a-radio value="SN">苏宁</a-radio>
<a-radio value="GC">工厂</a-radio>
@ -654,7 +654,8 @@ export default {
}
values.rules = ruleList
// ID
values.categoryIds = values.categorys.map((item) => item.value)
values.categoryIds = values.categorys.map((item) => item)
console.log(values.categoryIds)
delete values.categorys
// api
this.onFormSubmit(values)

@ -60,7 +60,7 @@
/>
</a-form-item>
<a-form-item label="商品来源" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-radio-group v-decorator="['goods_source', { initialValue: 0, rules: [{ required: true }] }]">
<a-radio-group v-decorator="['goods_source', { initialValue: 'JD', rules: [{ required: true }] }]">
<a-radio value="JD">京东</a-radio>
<a-radio value="SN">苏宁</a-radio>
<a-radio value="GC">工厂</a-radio>

@ -71,6 +71,7 @@ export default {
} = this
$nextTick(() => {
setFieldsValue({ content: record.merchant_remark })
console.log(content)
})
},

@ -85,7 +85,8 @@
<a-tag :color="record.is_receipt ? 'green' : ''">{{ record.is_receipt ? '已收货' : '待收货' }}</a-tag>
</a-descriptions-item>
<a-descriptions-item v-if="record.audit_status == AuditStatusEnum.REJECTED.value" label="拒绝原因">
<span>{{ record.refuse_desc }}</span>
<!-- <span>{{ record.refuse_desc }}</span> -->
<span style="color: #d6893b;cursor: pointer;" @click="handleAuditLook">查看拒绝原因</span>
</a-descriptions-item>
</a-descriptions>
</a-card>
@ -181,6 +182,7 @@
</a-card>
</div>
<AuditForm ref="AuditForm" @handleSubmit="handleRefresh" />
<AuditFormLook ref="AuditFormLook" @handleSubmit="handleRefresh" />
<ReceiptForm ref="ReceiptForm" @handleSubmit="handleRefresh" />
</div>
</template>
@ -190,7 +192,7 @@ import { assignment } from '@/utils/util'
import * as Api from '@/api/order/refund'
import { GoodsItem, UserItem } from '@/components/Table'
import { AuditStatusEnum, RefundStatusEnum, RefundTypeEnum } from '@/common/enum/order/refund'
import { AuditForm, ReceiptForm } from './modules'
import { AuditForm, ReceiptForm,AuditFormLook } from './modules'
//
const goodsColumns = [
@ -232,6 +234,7 @@ export default {
UserItem,
AuditForm,
ReceiptForm,
AuditFormLook
},
data() {
return {
@ -310,7 +313,10 @@ export default {
const { record } = this
this.$refs.AuditForm.show(record)
},
handleAuditLook() {
const { record } = this
this.$refs.AuditFormLook.show(record)
},
//
handleReceipt() {
const { record } = this

@ -79,10 +79,7 @@
:labelCol="labelCol"
:wrapperCol="wrapperCol"
>
<a-textarea
:autoSize="{ minRows: 4 }"
v-decorator="['refuse_desc', { rules: [{ required: true, message: '请输入回复内容' }] }]"
/>
<Ueditor v-decorator="['refuse_desc', { rules: [{ required: true, message: '请输入回复内容' }] }]" />
</a-form-item>
</a-form>
</a-spin>
@ -95,8 +92,12 @@ import * as Api from '@/api/order/refund'
import * as AddressApi from '@/api/store/address'
import { AuditStatusEnum, RefundTypeEnum } from '@/common/enum/order/refund'
import { AddressTypeEnum } from '@/common/enum/store/address'
import { Ueditor } from '@/components'
export default {
components: {
Ueditor,
},
data() {
return {
//
@ -132,12 +133,26 @@ export default {
this.visible = true
//
this.record = record
//
this.setFieldsValue()
// form
this.$nextTick(() => {
console.log( this.record)
this.$forceUpdate()
})
},
//
setFieldsValue() {
const {
record,
$nextTick,
form: { setFieldsValue },
} = this
$nextTick(() => {
let rest='<p><img src=\"https://img13.360buyimg.com/cms/jfs/t1/228733/22/10721/144300/6596258fFaff6ed82/84d7d577729ac3ee.jpg\"/></p><p><img src=\"https://img12.360buyimg.com/cms/jfs/t1/226574/11/11173/104920/6596258fF0423c7ba/9a7b0c38d0e18068.jpg\"/></p><p><img src=\"https://img13.360buyimg.com/cms/jfs/t1/218902/6/32151/114232/6596258fFd6011b6a/00385fbb6221d3bd.jpg\"/></p><p><img src=\"https://img12.360buyimg.com/cms/jfs/t1/231981/13/11373/136458/6596258fF7cbb0b99/e84d1103a88846cf.jpg\"/></p>'
setFieldsValue({refuse_desc:record.refuse_desc})
})
},
// 退
getAddressList() {
this.isLoading = true

@ -1,4 +1,4 @@
import AuditForm from './AuditForm'
import ReceiptForm from './ReceiptForm'
export { AuditForm, ReceiptForm }
import AuditFormLook from './AuditFormLook'
export { AuditForm, ReceiptForm,AuditFormLook }

Loading…
Cancel
Save