diff --git a/src/views/miniapp/order/AppOrder.data.ts b/src/views/miniapp/order/AppOrder.data.ts
index bb96913..46e1e0d 100644
--- a/src/views/miniapp/order/AppOrder.data.ts
+++ b/src/views/miniapp/order/AppOrder.data.ts
@@ -21,16 +21,6 @@ export const columns: BasicColumn[] = [
align: 'center',
dataIndex: 'productServiceYear',
},
- {
- title: '产品销售金额',
- align: 'center',
- dataIndex: 'productMoney',
- },
- {
- title: '产品合同模板',
- align: 'center',
- dataIndex: 'productContractTemp',
- },
{
title: '经销商',
align: 'center',
@@ -171,9 +161,7 @@ export const searchFormSchema: FormSchema[] = [
label: '销售端口',
field: 'salePort',
component: 'JSelectMultiple',
- componentProps: {
- dictCode: 'order_sale_port',
- },
+ componentProps: {},
//colProps: {span: 6},
},
{
@@ -188,6 +176,7 @@ export const searchFormSchema: FormSchema[] = [
component: 'JSelectMultiple',
componentProps: {
dictCode: 'customer_type',
+ stringToNumber: true,
},
//colProps: {span: 6},
},
@@ -229,23 +218,6 @@ export const formSchema: FormSchema[] = [
return [{ required: true, message: '请输入产品服务年限!' }];
},
},
- {
- label: '产品销售金额',
- field: 'productMoney',
- component: 'InputNumber',
- dynamicRules: ({ model, schema }) => {
- return [{ required: true, message: '请输入产品销售金额!' }];
- },
- },
- {
- label: '产品合同模板',
- field: 'productContractTemp',
- component: 'JUpload',
- componentProps: {},
- dynamicRules: ({ model, schema }) => {
- return [{ required: true, message: '请输入产品合同模板!' }];
- },
- },
{
label: '经销商',
field: 'storeName',
@@ -289,9 +261,9 @@ export const formSchema: FormSchema[] = [
{
label: '销售端口',
field: 'salePort',
- component: 'JDictSelectTag',
+ component: 'Input',
componentProps: {
- dictCode: 'order_sale_port',
+ dictCode: '',
},
dynamicRules: ({ model, schema }) => {
return [{ required: true, message: '请输入销售端口!' }];
@@ -332,6 +304,9 @@ export const formSchema: FormSchema[] = [
componentProps: {
fileMax: 0,
},
+ dynamicRules: ({ model, schema }) => {
+ return [{ required: true, message: '请输入身份证正面照!' }];
+ },
},
{
label: '身份证反面照',
@@ -340,6 +315,9 @@ export const formSchema: FormSchema[] = [
componentProps: {
fileMax: 0,
},
+ dynamicRules: ({ model, schema }) => {
+ return [{ required: true, message: '请输入身份证反面照!' }];
+ },
},
{
label: '车辆合格证',
@@ -348,6 +326,9 @@ export const formSchema: FormSchema[] = [
componentProps: {
fileMax: 0,
},
+ dynamicRules: ({ model, schema }) => {
+ return [{ required: true, message: '请输入车辆合格证!' }];
+ },
},
{
label: '营业执照',
@@ -387,9 +368,6 @@ export const formSchema: FormSchema[] = [
showTime: true,
valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
- dynamicRules: ({ model, schema }) => {
- return [{ required: true, message: '请输入收款时间!' }];
- },
},
{
label: '支付凭证',
@@ -447,7 +425,11 @@ export const appOrderCarFormSchema: FormSchema[] = [
{
label: '是否新车',
field: 'newCar',
- component: 'InputNumber',
+ component: 'JDictSelectTag',
+ componentProps: {
+ dictCode: 'yn',
+ stringToNumber: true,
+ },
dynamicRules: ({ model, schema }) => {
return [{ required: true, message: '请输入是否新车!' }];
},
@@ -464,9 +446,6 @@ export const appOrderCarFormSchema: FormSchema[] = [
label: '车牌号',
field: 'carNo',
component: 'Input',
- dynamicRules: ({ model, schema }) => {
- return [{ required: true, message: '请输入车牌号!' }];
- },
},
{
label: '发动机号',
@@ -554,6 +533,9 @@ export const appOrderVoucherFormSchema: FormSchema[] = [
componentProps: {
valueFormat: 'YYYY-MM-DD',
},
+ dynamicRules: ({ model, schema }) => {
+ return [{ required: true, message: '请输入失效时间!' }];
+ },
},
{
label: '服务年限',
@@ -567,17 +549,11 @@ export const appOrderVoucherFormSchema: FormSchema[] = [
label: '权益套餐',
field: 'equityPackage',
component: 'Input',
- dynamicRules: ({ model, schema }) => {
- return [{ required: true, message: '请输入权益套餐!' }];
- },
},
{
label: '套餐价',
field: 'packageMoney',
component: 'InputNumber',
- dynamicRules: ({ model, schema }) => {
- return [{ required: true, message: '请输入套餐价!' }];
- },
},
{
label: '商业险编号',
@@ -621,6 +597,9 @@ export const appOrderVoucherFormSchema: FormSchema[] = [
label: '经销商地址',
field: 'dealerAddress',
component: 'Input',
+ dynamicRules: ({ model, schema }) => {
+ return [{ required: true, message: '请输入经销商地址!' }];
+ },
},
{
label: '',
@@ -659,27 +638,25 @@ export const superQuerySchema = {
orderNum: { title: '订单编号', order: 0, view: 'text', type: 'string' },
productName: { title: '产品服务名称', order: 1, view: 'text', type: 'string' },
productServiceYear: { title: '产品服务年限', order: 2, view: 'text', type: 'string' },
- productMoney: { title: '产品销售金额', order: 3, view: 'number', type: 'number' },
- productContractTemp: { title: '产品合同模板', order: 4, view: 'file', type: 'string' },
- storeName: { title: '经销商', order: 5, view: 'text', type: 'string' },
- custName: { title: '客户姓名', order: 6, view: 'text', type: 'string' },
- custAddress: { title: '客户地址', order: 7, view: 'text', type: 'string' },
- custCardNo: { title: '客户证件号', order: 8, view: 'text', type: 'string' },
- custPhone: { title: '客户联系电话', order: 9, view: 'text', type: 'string' },
- salePort: { title: '销售端口', order: 10, view: 'list', type: 'string', dictCode: 'order_sale_port' },
- saleName: { title: '销售顾问', order: 11, view: 'text', type: 'string' },
- payType: { title: '付款方式', order: 12, view: 'text', type: 'string' },
- custType: { title: '客户类型', order: 13, view: 'number', type: 'number', dictCode: 'customer_type' },
- certFront: { title: '身份证正面照', order: 14, view: 'image', type: 'string' },
- certBack: { title: '身份证反面照', order: 15, view: 'image', type: 'string' },
- carPic: { title: '车辆合格证', order: 16, view: 'image', type: 'string' },
- busLicense: { title: '营业执照', order: 17, view: 'image', type: 'string' },
- createTime: { title: '创建日期', order: 18, view: 'datetime', type: 'string' },
- status: { title: '订单状态', order: 19, view: 'number', type: 'number', dictCode: 'order_status' },
- contractUrl: { title: '订单合同', order: 20, view: 'file', type: 'string' },
- payee: { title: '收款方', order: 21, view: 'text', type: 'string' },
- payeeTime: { title: '收款时间', order: 22, view: 'datetime', type: 'string' },
- payVoucherUrl: { title: '支付凭证', order: 23, view: 'image', type: 'string' },
+ storeName: { title: '经销商', order: 3, view: 'text', type: 'string' },
+ custName: { title: '客户姓名', order: 4, view: 'text', type: 'string' },
+ custAddress: { title: '客户地址', order: 5, view: 'text', type: 'string' },
+ custCardNo: { title: '客户证件号', order: 6, view: 'text', type: 'string' },
+ custPhone: { title: '客户联系电话', order: 7, view: 'text', type: 'string' },
+ salePort: { title: '销售端口', order: 8, view: 'list', type: 'string', dictCode: '' },
+ saleName: { title: '销售顾问', order: 9, view: 'text', type: 'string' },
+ payType: { title: '付款方式', order: 10, view: 'text', type: 'string' },
+ custType: { title: '客户类型', order: 11, view: 'number', type: 'number', dictCode: 'customer_type' },
+ certFront: { title: '身份证正面照', order: 12, view: 'image', type: 'string' },
+ certBack: { title: '身份证反面照', order: 13, view: 'image', type: 'string' },
+ carPic: { title: '车辆合格证', order: 14, view: 'image', type: 'string' },
+ busLicense: { title: '营业执照', order: 15, view: 'image', type: 'string' },
+ createTime: { title: '创建日期', order: 16, view: 'datetime', type: 'string' },
+ status: { title: '订单状态', order: 17, view: 'number', type: 'number', dictCode: 'order_status' },
+ contractUrl: { title: '订单合同', order: 18, view: 'file', type: 'string' },
+ payee: { title: '收款方', order: 19, view: 'text', type: 'string' },
+ payeeTime: { title: '收款时间', order: 20, view: 'datetime', type: 'string' },
+ payVoucherUrl: { title: '支付凭证', order: 21, view: 'image', type: 'string' },
//子表高级查询
appOrderCar: {
title: '订单车辆信息',
@@ -689,7 +666,7 @@ export const superQuerySchema = {
vin: { title: '车架号', order: 1, view: 'text', type: 'string' },
carType: { title: '车辆类型', order: 2, view: 'text', type: 'string' },
useType: { title: '使用性质', order: 3, view: 'text', type: 'string' },
- newCar: { title: '是否新车', order: 4, view: 'number', type: 'number' },
+ newCar: { title: '是否新车', order: 4, view: 'number', type: 'number', dictCode: '' },
carModel: { title: '车辆型号', order: 5, view: 'text', type: 'string' },
carNo: { title: '车牌号', order: 6, view: 'text', type: 'string' },
engineNo: { title: '发动机号', order: 7, view: 'text', type: 'string' },
diff --git a/src/views/miniapp/order/AppOrderList.vue b/src/views/miniapp/order/AppOrderList.vue
index f2a4341..11f2d8f 100644
--- a/src/views/miniapp/order/AppOrderList.vue
+++ b/src/views/miniapp/order/AppOrderList.vue
@@ -1,104 +1,101 @@
-
-
+
+
- 新增
- 导出
- 导入
-
-
-
-
-
- 删除
-
-
-
- 批量操作
-
-
+ 新增
+ 导出
+ 导入
+
+
+
+
+
+ 删除
+
+
+
+ 批量操作
+
+
-
+
-
+
-
-
+
+
- 无文件
- 下载
-
-
-
- 无文件
- 下载
+ 无文件
+ 下载
-
+
\ No newline at end of file
+