diff --git a/src/api/order/index.js b/src/api/order/index.js
index 61272b7..d7411eb 100644
--- a/src/api/order/index.js
+++ b/src/api/order/index.js
@@ -3,9 +3,38 @@ import { axios } from '@/utils/request'
// api接口列表
const api = {
list: '/order/list',
- detail: '/order/detail'
+ detail: '/order/detail',
+}
+/**
+ * 审单
+ * @param {*} data
+ */
+ export function updateStandard(data) {
+ return axios({
+ url: '/order/updateStandard',
+ method: 'post',
+ data
+ })
+}
+/**
+ * 审单
+ * @param {*} data
+ */
+ export function standard(data) {
+ return axios({
+ url: '/order/standard',
+ method: 'post',
+ data
+ })
+}
+// 列表记录
+export function getStandardList (params) {
+ return axios({
+ url: 'order/getStandard',
+ method: 'get',
+ params
+ })
}
-
// 列表记录
export function list (params) {
return axios({
diff --git a/src/views/order/Index.vue b/src/views/order/Index.vue
index fbc225d..aead90e 100644
--- a/src/views/order/Index.vue
+++ b/src/views/order/Index.vue
@@ -220,6 +220,19 @@
>删除
复制
+ 审单
+ 审单
+ 再次审单
+ 再次审单
+ 审单记录
@@ -252,6 +265,7 @@
+
@@ -273,7 +287,7 @@ import {
ReceiptStatusEnum,
} from '@/common/enum/order'
import { PaymentMethodEnum } from '@/common/enum/payment'
-import { DeliveryForm, ExtractForm, CancelForm } from './modules'
+import { DeliveryForm, ExtractForm, CancelForm, DocumentRecord, DocumentRecordList } from './modules'
// 表格字段
const columns = [
@@ -340,6 +354,8 @@ export default {
DeliveryForm,
ExtractForm,
CancelForm,
+ DocumentRecord,
+ DocumentRecordList,
},
data() {
return {
@@ -420,7 +436,49 @@ export default {
getDataType() {
return this.$route.path.split('/')[3].replace('-', '_')
},
-
+ reviewDocuments(item, type) {
+ if (type == 1) {
+ const app = this
+ const modal = app.$confirm({
+ title: '是否确定审单?',
+ onOk() {
+ return Api.standard({
+ orderId: item.order_id,
+ form: {
+ type: 10,
+ },
+ })
+ .then((result) => {
+ app.$message.success(result.message, 1.5)
+ app.handleRefresh()
+ })
+ .finally((result) => modal.destroy())
+ },
+ })
+ }
+ if (type == 2) {
+ const app = this
+ const modal = app.$confirm({
+ title: '是否确定再次审单?',
+ onOk() {
+ return Api.standard({
+ orderId: item.order_id,
+ form: {
+ type: 20,
+ },
+ })
+ .then((result) => {
+ app.$message.success(result.message, 1.5)
+ app.handleRefresh()
+ })
+ .finally((result) => modal.destroy())
+ },
+ })
+ }
+ },
+ documentRecord(record) {
+ this.$refs.DocumentRecordList.show(record)
+ },
async copyText(text) {
try {
const textToCopy = text
diff --git a/src/views/order/modules/DocumentRecord.vue b/src/views/order/modules/DocumentRecord.vue
new file mode 100644
index 0000000..6c7524c
--- /dev/null
+++ b/src/views/order/modules/DocumentRecord.vue
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+ 同意
+ 拒绝
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/order/modules/DocumentRecordDetails.vue b/src/views/order/modules/DocumentRecordDetails.vue
new file mode 100644
index 0000000..9e3d6d1
--- /dev/null
+++ b/src/views/order/modules/DocumentRecordDetails.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+ {{ isFrom[record.from] }}
+
+
+
+
+ {{ isYes[record.is_city] }}
+
+
+
+ 审核通过
+ 审核不通过
+ 审核中
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/order/modules/DocumentRecordList.vue b/src/views/order/modules/DocumentRecordList.vue
new file mode 100644
index 0000000..4aa4352
--- /dev/null
+++ b/src/views/order/modules/DocumentRecordList.vue
@@ -0,0 +1,166 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ text == 10 ? '是' : '否' }}
+
+
+ 本地同城线下真实零售客户
+ 电商平台客户
+ 短视频平台客户
+
+
+ 审核通过
+ 审核不通过
+ 审核中
+
+
+ 详情
+ 审单
+
+
+
+
+
+
+
+
+
diff --git a/src/views/order/modules/index.js b/src/views/order/modules/index.js
index 25edbe2..d4d6543 100644
--- a/src/views/order/modules/index.js
+++ b/src/views/order/modules/index.js
@@ -5,5 +5,7 @@ import PrinterForm from './PrinterForm'
import PriceForm from './PriceForm'
import RemarkForm from './RemarkForm'
import JingDong from './JingDong'
-
-export { DeliveryForm, ExtractForm, CancelForm, PrinterForm, PriceForm, RemarkForm,JingDong }
+import DocumentRecord from './DocumentRecord'
+import DocumentRecordList from './DocumentRecordList'
+import DocumentRecordDetails from './DocumentRecordDetails'
+export { DeliveryForm, ExtractForm, CancelForm, PrinterForm, PriceForm, RemarkForm,JingDong,DocumentRecord,DocumentRecordList,DocumentRecordDetails }
diff --git a/src/views/store/Setting.vue b/src/views/store/Setting.vue
index 8bf99fe..7c214be 100644
--- a/src/views/store/Setting.vue
+++ b/src/views/store/Setting.vue
@@ -20,6 +20,9 @@
+
+
+
@@ -112,7 +115,7 @@ export default {
// 表单内容
this.$nextTick(() => {
setFieldsValue(
- pick(record, ['store_name', 'describe', 'logo_image_id', 'phone', 'login_img_id' ])
+ pick(record, ['store_name', 'describe', 'logo_image_id', 'phone', 'login_img_id','standard_image_id' ])
)
})
},