|
@@ -18,7 +18,11 @@
|
|
|
</el-row>
|
|
|
<cDialog :dialog="dialog" @toClose="toClose">
|
|
|
<el-col :span="24" class="dialog_one" v-if="dialog.type == '1'">
|
|
|
- <cForm :span="24" :fields="formFields" :form="form" :rules="{}" @save="toSave" label-width="auto"></cForm>
|
|
|
+ <cForm :span="24" :fields="formFields" :form="form" :rules="{}" @save="toSave" label-width="auto">
|
|
|
+ <template #status>
|
|
|
+ <el-option v-for="i in statusList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
|
+ </template>
|
|
|
+ </cForm>
|
|
|
</el-col>
|
|
|
</cDialog>
|
|
|
</template>
|
|
@@ -53,7 +57,7 @@ const statusList: Ref<any> = ref([]);
|
|
|
const brandList: Ref<any> = ref([]);
|
|
|
|
|
|
const searchOther = async () => {
|
|
|
- const statusResult: IQueryResult = await dictDataStore.query({ code: 'isUse' });
|
|
|
+ const statusResult: IQueryResult = await dictDataStore.query({ code: 'valuation', is_use: '0' });
|
|
|
if ($checkRes(statusResult)) statusList.value = statusResult.data;
|
|
|
const brandResult: IQueryResult = await brandStore.query({ is_use: '0' });
|
|
|
if ($checkRes(brandResult)) brandList.value = brandResult.data;
|
|
@@ -84,10 +88,13 @@ const toSearch = (query) => {
|
|
|
// #region 表格及操作
|
|
|
// NeedChange
|
|
|
let fields: Ref<any[]> = ref([
|
|
|
- { label: 'openid', model: 'openid' },
|
|
|
- { label: '品牌', model: 'brand', format: (i) => getDict(i, 'brand'), isSearch: true, type: 'select' },
|
|
|
+ { label: '品牌', model: 'brand', isSearch: true, type: 'select' },
|
|
|
+ { label: '车系', model: 'bank' },
|
|
|
+ { label: '车型', model: 'type' },
|
|
|
{ label: '上牌日期', model: 'start' },
|
|
|
+ { label: '上牌城市', model: 'city', isSearch: true },
|
|
|
{ label: '所在地区', model: 'place', isSearch: true },
|
|
|
+ { label: '行驶里程', model: 'course', isSearch: true },
|
|
|
{ label: '联系人', model: 'contacts', isSearch: true },
|
|
|
{ label: '联系电话', model: 'tel', isSearch: true },
|
|
|
{ label: '预估金额', model: 'estimate' },
|
|
@@ -138,7 +145,10 @@ const toSave = async () => {
|
|
|
const formFields: Ref<any> = ref();
|
|
|
const dialog: Ref<any> = ref({ title: '数据信息', show: false, type: '1' });
|
|
|
const form: Ref<any> = ref({ file: [] });
|
|
|
-const formFieldsForUpdate = [{ label: '预估金额', model: 'estimate' }];
|
|
|
+const formFieldsForUpdate = [
|
|
|
+ { label: '预估金额', model: 'estimate' },
|
|
|
+ { label: '状态', model: 'status', type: 'select' }
|
|
|
+];
|
|
|
// 关闭弹框
|
|
|
const toClose = () => {
|
|
|
form.value = {};
|