diff --git a/src/api/order/event.js b/src/api/order/event.js
index 266af5b..0b60121 100644
--- a/src/api/order/event.js
+++ b/src/api/order/event.js
@@ -9,7 +9,17 @@ const api = {
extract: '/order.event/extract',
printer: '/order.event/printer'
}
-
+/**
+ * 设置纠纷订单
+ * @param {*} data
+ */
+ export function disputeStatus(data) {
+ return axios({
+ url: '/order/disputeStatus',
+ method: 'post',
+ data
+ })
+}
/**
* 修改订单价格
* @param {*} data
diff --git a/src/views/goods/Index.vue b/src/views/goods/Index.vue
index 2137231..01b1b44 100644
--- a/src/views/goods/Index.vue
+++ b/src/views/goods/Index.vue
@@ -100,6 +100,13 @@
可输入小数,比如0.5
@@ -27,7 +63,11 @@ import pick from 'lodash.pick' import * as Api from '@/api/shop' import moment from 'moment' +import { SelectImage } from '@/components' export default { + components: { + SelectImage, + }, props: {}, data() { return { @@ -65,6 +105,13 @@ export default { // 设置默认值 record.effective_time = this.formatDate(record.effective_time) this.record = record + if (record) { + this.record.id_card_face_image_url = [ {preview_url: record.id_card_face_image_url} ] + this.record.id_card_back_image_url = [{ preview_url: record.id_card_back_image_url} ] + this.record.license_image_url = [{preview_url: record.license_image_url }] + this.record.legal_person_license_image_url = [{preview_url: record.legal_person_license_image_url} ] + } + console.log(record) this.setFieldsValue() }, @@ -76,6 +123,12 @@ export default { this.form.setFieldsValue( pick(this.record, [ 'markup_rate', + 'legal_person', + 'legal_person_phone', + 'id_card_face_image', + 'id_card_back_image', + 'license_image', + 'legal_person_license_image', ]) ) }) @@ -131,3 +184,8 @@ export default { }, } + \ No newline at end of file