feat:
1. add price list status 2. add order remarks
This commit is contained in:
@@ -32,7 +32,7 @@ export default {
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "Serial",
|
||||
label: "SN",
|
||||
prop: "serialNumber",
|
||||
type: "input",
|
||||
search: true,
|
||||
@@ -41,6 +41,7 @@ export default {
|
||||
label: "Phone",
|
||||
prop: "userPhone",
|
||||
type: "input",
|
||||
overHidden: true,
|
||||
},
|
||||
{
|
||||
label: "Email",
|
||||
@@ -48,10 +49,31 @@ export default {
|
||||
type: "input",
|
||||
overHidden: true,
|
||||
},
|
||||
{
|
||||
label: "SubTotal",
|
||||
prop: "subAmount",
|
||||
type: "number",
|
||||
},
|
||||
{
|
||||
label: "Amount",
|
||||
prop: "totalAmount",
|
||||
type: "number",
|
||||
},
|
||||
{
|
||||
label: "TR(%)",
|
||||
prop: "taxPercent",
|
||||
type: "number",
|
||||
},
|
||||
{
|
||||
label: "Tax",
|
||||
prop: "taxAmount",
|
||||
type: "number",
|
||||
},
|
||||
{
|
||||
label: "Notes",
|
||||
prop: "remarks",
|
||||
type: "input",
|
||||
overHidden: true,
|
||||
},
|
||||
{
|
||||
label: "创建人",
|
||||
|
||||
@@ -8,7 +8,6 @@ export default {
|
||||
viewBtn: false,
|
||||
addBtn: false,
|
||||
editBtn: true,
|
||||
editBtnText: 'Fill Price',
|
||||
delBtn: false,
|
||||
cellBtn: true,
|
||||
selection: false,
|
||||
@@ -172,13 +171,16 @@ export default {
|
||||
hide: true
|
||||
},
|
||||
{
|
||||
label: '状态',
|
||||
label: 'Status',
|
||||
prop: 'status',
|
||||
type: 'input',
|
||||
addDisplay: false,
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
hide: true
|
||||
type: 'select',
|
||||
dicUrl: '/blade-system/dict-biz/dictionary?code=price_status',
|
||||
props: {
|
||||
label: 'dictValue',
|
||||
value: 'dictKey'
|
||||
},
|
||||
dataType: 'number',
|
||||
cell: true,
|
||||
},
|
||||
{
|
||||
label: '是否已删除',
|
||||
|
||||
@@ -39,9 +39,10 @@
|
||||
</el-button>
|
||||
</template>
|
||||
</avue-crud>
|
||||
<el-drawer :title="`[${orderName}:${serialNumber}] Detail`" v-model="subVisible" :direction="direction"
|
||||
<el-drawer :title="`${orderName} ${serialNumber} `" v-model="subVisible" :direction="direction"
|
||||
append-to-body
|
||||
:before-close="handleSubClose" size="90%">
|
||||
<el-tag size="large" type="danger" effect="dark">{{notes}}</el-tag>
|
||||
<basic-container>
|
||||
<avue-crud :option="optionSub"
|
||||
:data="dataSub"
|
||||
@@ -78,11 +79,12 @@
|
||||
</avue-crud>
|
||||
</basic-container>
|
||||
</el-drawer>
|
||||
<el-drawer :title="`[${category}] [${material}] [${size}] [${shape}]`" v-model="photosVisible" :direction="directionPhotos"
|
||||
<el-drawer :title="`[${category}] [${material}] [${size}] [${shape}]`" v-model="photosVisible"
|
||||
:direction="directionPhotos"
|
||||
append-to-body
|
||||
:before-close="handlePhotosClose" size="90%">
|
||||
<basic-container>
|
||||
<avue-crud :option="optionPhotos" :data="dataPhotos" >
|
||||
<avue-crud :option="optionPhotos" :data="dataPhotos">
|
||||
<template #texts="{ row }">
|
||||
<div v-if="row.texts?.length">
|
||||
<div v-for="(item, index) in row.texts" :key="index" style="display: flex; gap: 4px; flex-wrap: wrap;">
|
||||
@@ -137,11 +139,12 @@ export default {
|
||||
directionPhotos: 'rtl',
|
||||
orderId: 0,
|
||||
serialNumber: '',
|
||||
orderName: 'Order',
|
||||
orderName: 'Order SN',
|
||||
notes: '',
|
||||
category: '',
|
||||
material: '',
|
||||
size: '',
|
||||
shape:'',
|
||||
shape: '',
|
||||
formSub: {},
|
||||
querySub: {},
|
||||
loadingSub: true,
|
||||
@@ -301,12 +304,13 @@ export default {
|
||||
this.subVisible = true;
|
||||
this.orderId = row.id;
|
||||
this.serialNumber = row.serialNumber;
|
||||
this.notes = row.remarks;
|
||||
this.onLoadSub(this.pageSub);
|
||||
},
|
||||
handleSubClose(hide) {
|
||||
hide();
|
||||
},
|
||||
handlePhotosClose(hide){
|
||||
handlePhotosClose(hide) {
|
||||
hide();
|
||||
},
|
||||
handleAccept(row) {
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
<!-- </el-scrollbar>-->
|
||||
<!-- </div>-->
|
||||
<!-- </el-col>-->
|
||||
<el-col :span="19">
|
||||
<!-- <el-col :span="19"> 适配上面 tree 的宽度-->
|
||||
<el-col :span="24">
|
||||
<basic-container>
|
||||
<!-- <div style="margin-bottom: 20px;">-->
|
||||
<!-- <el-tag effect="dark">{{ deptName || 'Please select dept from left side' }}</el-tag>-->
|
||||
|
||||
Reference in New Issue
Block a user