|
@@ -9,7 +9,8 @@
|
|
<cButton @toAdd="toAdd()"> </cButton>
|
|
<cButton @toAdd="toAdd()"> </cButton>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="thr">
|
|
<el-col :span="24" class="thr">
|
|
- <cTable :fields="fields" :opera="opera" :list="list" @query="search" :total="total" @spec="toSpec" @edit="toEdit" @del="toDel"> </cTable>
|
|
|
|
|
|
+ <cTable :fields="fields" :opera="opera" :list="list" @query="search" :total="total" @spec="toSpec"
|
|
|
|
+ @edit="toEdit" @del="toDel"> </cTable>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -18,15 +19,8 @@
|
|
<el-col :span="24" class="dialog_one" v-if="dialog.type == '1'">
|
|
<el-col :span="24" class="dialog_one" v-if="dialog.type == '1'">
|
|
<cForm :span="24" :fields="formFields" :form="form" :rules="rules" @save="onSubmit">
|
|
<cForm :span="24" :fields="formFields" :form="form" :rules="rules" @save="onSubmit">
|
|
<template #file>
|
|
<template #file>
|
|
- <cUpload
|
|
|
|
- :model="`${'file'}`"
|
|
|
|
- :limit="6"
|
|
|
|
- listType="picture"
|
|
|
|
- url="/files/material/goods/upload"
|
|
|
|
- accept="*"
|
|
|
|
- :list="form.file"
|
|
|
|
- @change="onUpload"
|
|
|
|
- ></cUpload>
|
|
|
|
|
|
+ <cUpload :model="`${'file'}`" :limit="6" listType="picture" url="/files/material/goods/upload" accept="*"
|
|
|
|
+ :list="form.file" @change="onUpload"></cUpload>
|
|
</template>
|
|
</template>
|
|
<template #supplier_id>
|
|
<template #supplier_id>
|
|
<el-option v-for="i in supplierList" :key="i._id" :label="i.name" :value="i._id"></el-option>
|
|
<el-option v-for="i in supplierList" :key="i._id" :label="i.name" :value="i._id"></el-option>
|
|
@@ -199,7 +193,7 @@ const toClose = () => {
|
|
// 查询其他信息
|
|
// 查询其他信息
|
|
const searchOther = async () => {
|
|
const searchOther = async () => {
|
|
let res: IQueryResult;
|
|
let res: IQueryResult;
|
|
- res = await dictAxios.query({ type: 'goods_type' });
|
|
|
|
|
|
+ res = await dictAxios.query({ type: 'goods_type', is_use: '0' });
|
|
if (res.errcode == 0) typeList.value = res.data;
|
|
if (res.errcode == 0) typeList.value = res.data;
|
|
res = await dictAxios.query({ type: 'is_use' });
|
|
res = await dictAxios.query({ type: 'is_use' });
|
|
if (res.errcode == 0) is_useList.value = res.data;
|
|
if (res.errcode == 0) is_useList.value = res.data;
|