|
@@ -11,131 +11,9 @@
|
|
|
class="time-form"
|
|
class="time-form"
|
|
|
:selection.sync="selection"
|
|
:selection.sync="selection"
|
|
|
>
|
|
>
|
|
|
- <!-- <template v-slot:productName="{ row, $index }">-->
|
|
|
|
|
- <!-- <el-form-item-->
|
|
|
|
|
- <!-- style="margin-bottom: 20px"-->
|
|
|
|
|
- <!-- :prop="'datasource.' + $index + '.productName'"-->
|
|
|
|
|
- <!-- :rules="{-->
|
|
|
|
|
- <!-- required: true,-->
|
|
|
|
|
- <!-- message: '请输入',-->
|
|
|
|
|
- <!-- trigger: 'change'-->
|
|
|
|
|
- <!-- }"-->
|
|
|
|
|
- <!-- >-->
|
|
|
|
|
- <!-- <el-input-->
|
|
|
|
|
- <!-- v-model="row.productName"-->
|
|
|
|
|
- <!-- placeholder="请输入"-->
|
|
|
|
|
- <!-- disabled-->
|
|
|
|
|
- <!-- ></el-input>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- </template>-->
|
|
|
|
|
- <!-- <template v-slot:productCode="scope">-->
|
|
|
|
|
- <!-- <el-form-item-->
|
|
|
|
|
- <!-- style="margin-bottom: 20px"-->
|
|
|
|
|
- <!-- :prop="'datasource.' + scope.$index + '.productCode'"-->
|
|
|
|
|
-
|
|
|
|
|
- <!-- >-->
|
|
|
|
|
- <!-- <el-input v-model="scope.row.productCode" disabled></el-input>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- </template>-->
|
|
|
|
|
- <!-- <template v-slot:productCategoryName="scope">-->
|
|
|
|
|
- <!-- <el-form-item-->
|
|
|
|
|
- <!-- style="margin-bottom: 20px"-->
|
|
|
|
|
- <!-- :prop="'datasource.' + scope.$index + '.productCategoryName'"-->
|
|
|
|
|
-
|
|
|
|
|
- <!-- >-->
|
|
|
|
|
- <!-- <el-input v-model="scope.row.productCategoryName" disabled></el-input>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- </template>-->
|
|
|
|
|
- <!-- <template v-slot:totalCount="scope">-->
|
|
|
|
|
- <!-- <el-form-item-->
|
|
|
|
|
- <!-- style="margin-bottom: 20px"-->
|
|
|
|
|
- <!-- :prop="'datasource.' + scope.$index + '.totalCount'"-->
|
|
|
|
|
- <!-- :rules="{-->
|
|
|
|
|
- <!-- required: true,-->
|
|
|
|
|
- <!-- pattern: numberReg,-->
|
|
|
|
|
- <!-- message: '请输入数字',-->
|
|
|
|
|
- <!-- trigger: 'blur'-->
|
|
|
|
|
- <!-- }"-->
|
|
|
|
|
- <!-- >-->
|
|
|
|
|
- <!-- <el-input-->
|
|
|
|
|
- <!-- v-model="scope.row.totalCount"-->
|
|
|
|
|
- <!-- disabled-->
|
|
|
|
|
- <!-- placeholder="请输入"-->
|
|
|
|
|
- <!-- ></el-input>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- </template>-->
|
|
|
|
|
-
|
|
|
|
|
- <!-- <template v-slot:productBrand="scope">-->
|
|
|
|
|
- <!-- <el-form-item-->
|
|
|
|
|
- <!-- style="margin-bottom: 20px"-->
|
|
|
|
|
- <!-- :prop="'datasource.' + scope.$index + '.productBrand'"-->
|
|
|
|
|
- <!-- >-->
|
|
|
|
|
- <!-- <el-input v-model="scope.row.productBrand" disabled></el-input>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- </template>-->
|
|
|
|
|
-
|
|
|
|
|
- <!-- <template v-slot:modelType="scope">-->
|
|
|
|
|
- <!-- <el-form-item-->
|
|
|
|
|
- <!-- style="margin-bottom: 20px"-->
|
|
|
|
|
- <!-- :prop="'datasource.' + scope.$index + '.modelType'"-->
|
|
|
|
|
- <!-- >-->
|
|
|
|
|
- <!-- <el-input v-model="scope.row.modelType" disabled></el-input>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- </template>-->
|
|
|
|
|
-
|
|
|
|
|
- <!-- <template v-slot:specification="scope">-->
|
|
|
|
|
- <!-- <el-form-item-->
|
|
|
|
|
- <!-- style="margin-bottom: 20px"-->
|
|
|
|
|
- <!-- :prop="'datasource.' + scope.$index + '.specification'"-->
|
|
|
|
|
- <!-- >-->
|
|
|
|
|
- <!-- <el-input v-model="scope.row.specification" disabled></el-input>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- </template>-->
|
|
|
|
|
- <!-- <template v-slot:measuringUnit="scope">-->
|
|
|
|
|
- <!-- <el-form-item-->
|
|
|
|
|
- <!-- style="margin-bottom: 20px"-->
|
|
|
|
|
- <!-- :prop="'datasource.' + scope.$index + '.measuringUnit'"-->
|
|
|
|
|
- <!-- >-->
|
|
|
|
|
- <!-- <el-input-->
|
|
|
|
|
- <!-- v-model="scope.row.measuringUnit"-->
|
|
|
|
|
- <!-- placeholder="请输入"-->
|
|
|
|
|
- <!-- disabled-->
|
|
|
|
|
- <!-- ></el-input>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- </template>-->
|
|
|
|
|
- <!-- <template v-slot:remark="scope">-->
|
|
|
|
|
- <!-- <el-form-item-->
|
|
|
|
|
- <!-- style="margin-bottom: 20px"-->
|
|
|
|
|
- <!-- :prop="'datasource.' + scope.$index + '.remark'"-->
|
|
|
|
|
- <!-- >-->
|
|
|
|
|
- <!-- <el-input-->
|
|
|
|
|
- <!-- v-model="scope.row.remark"-->
|
|
|
|
|
- <!-- disabled-->
|
|
|
|
|
- <!-- type="textarea"-->
|
|
|
|
|
- <!-- placeholder="请输入"-->
|
|
|
|
|
- <!-- ></el-input>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- </template>-->
|
|
|
|
|
-
|
|
|
|
|
- <!-- <template v-slot:technicalParams="scope">-->
|
|
|
|
|
- <!-- <el-form-item-->
|
|
|
|
|
- <!-- style="margin-bottom: 20px"-->
|
|
|
|
|
- <!-- :prop="'datasource.' + scope.$index + '.technicalParams'"-->
|
|
|
|
|
- <!-- :rules="{-->
|
|
|
|
|
- <!-- required: false,-->
|
|
|
|
|
- <!-- message: '请输入',-->
|
|
|
|
|
- <!-- trigger: 'change'-->
|
|
|
|
|
- <!-- }"-->
|
|
|
|
|
- <!-- >-->
|
|
|
|
|
- <!-- <el-input-->
|
|
|
|
|
- <!-- type="textarea"-->
|
|
|
|
|
- <!-- v-model="scope.row.technicalParams"-->
|
|
|
|
|
- <!-- placeholder="请输入"-->
|
|
|
|
|
- <!-- ></el-input>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- </template>-->
|
|
|
|
|
|
|
+
|
|
|
<template v-slot:files="scope">
|
|
<template v-slot:files="scope">
|
|
|
- <el-form-item prop="files">
|
|
|
|
|
|
|
+ <el-form-item >
|
|
|
<el-link
|
|
<el-link
|
|
|
v-for="link in scope.row.files"
|
|
v-for="link in scope.row.files"
|
|
|
:key="link.id"
|
|
:key="link.id"
|
|
@@ -147,37 +25,16 @@
|
|
|
</el-link>
|
|
</el-link>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
- <!-- <template v-slot:expectReceiveDate="scope">-->
|
|
|
|
|
- <!-- <el-form-item-->
|
|
|
|
|
- <!-- style="margin-bottom: 20px"-->
|
|
|
|
|
- <!-- :prop="'datasource.' + scope.$index + '.expectReceiveDate'"-->
|
|
|
|
|
- <!-- :rules="{-->
|
|
|
|
|
- <!-- required: true,-->
|
|
|
|
|
- <!-- message: '请选择日期',-->
|
|
|
|
|
- <!-- trigger: 'blur'-->
|
|
|
|
|
- <!-- }"-->
|
|
|
|
|
- <!-- >-->
|
|
|
|
|
- <!-- <el-date-picker-->
|
|
|
|
|
- <!-- style="width: 100%"-->
|
|
|
|
|
- <!-- clearable-->
|
|
|
|
|
- <!-- v-model="scope.row.expectReceiveDate"-->
|
|
|
|
|
- <!-- type="date"-->
|
|
|
|
|
- <!-- value-format="yyyy-MM-dd"-->
|
|
|
|
|
- <!-- placeholder="请选择日期"-->
|
|
|
|
|
- <!-- disabled-->
|
|
|
|
|
- <!-- >-->
|
|
|
|
|
- <!-- </el-date-picker>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- </template>-->
|
|
|
|
|
|
|
+
|
|
|
<template v-slot:supplierIds="scope">
|
|
<template v-slot:supplierIds="scope">
|
|
|
- <el-form-item prop="supplierIds">
|
|
|
|
|
|
|
+ <el-form-item >
|
|
|
<el-select
|
|
<el-select
|
|
|
v-model="scope.row['supplierIds']"
|
|
v-model="scope.row['supplierIds']"
|
|
|
clearable
|
|
clearable
|
|
|
filterable
|
|
filterable
|
|
|
multiple
|
|
multiple
|
|
|
collapse-tags
|
|
collapse-tags
|
|
|
-
|
|
|
|
|
|
|
+ :disabled="status=='Detail'"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="i in scope.row.supplierList"
|
|
v-for="i in scope.row.supplierList"
|
|
@@ -188,54 +45,15 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
- <!-- <template v-slot:productNameHeader="{ column, $index }">
|
|
|
|
|
- <span data-="">{{ column.label }}</span>
|
|
|
|
|
- <fileUpload
|
|
|
|
|
- v-model="files"
|
|
|
|
|
- module="main"
|
|
|
|
|
- :showLib="false"
|
|
|
|
|
- :limit="1"
|
|
|
|
|
- />
|
|
|
|
|
- </template> -->
|
|
|
|
|
-
|
|
|
|
|
- <!-- 操作列 -->
|
|
|
|
|
-
|
|
|
|
|
- <!-- <template v-for="item in supplierList"> -->
|
|
|
|
|
- <!-- {{ slot }} -->
|
|
|
|
|
- <!-- <template v-slot:[item.slot]="scope" v-for="item in supplierList">
|
|
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.' + item.prop"
|
|
|
|
|
- :rules="{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入',
|
|
|
|
|
- trigger: 'blur'
|
|
|
|
|
- }"
|
|
|
|
|
- >
|
|
|
|
|
- <el-input
|
|
|
|
|
- type="input"
|
|
|
|
|
- v-model="scope.row[item.prop]"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </template> -->
|
|
|
|
|
- <!-- <template v-slot:[item.headerSlot]="scope" v-for="item in supplierList">
|
|
|
|
|
- <el-form-item style="margin-bottom: 20px">
|
|
|
|
|
-
|
|
|
|
|
- <span>{{ item.label }}</span>
|
|
|
|
|
- <fileMain v-model="item.files"></fileMain>
|
|
|
|
|
-
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </template> -->
|
|
|
|
|
- <!-- </template> -->
|
|
|
|
|
- <template v-slot:add="scope">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <template v-slot:add="scope" v-if="status!='Detail'">
|
|
|
<el-form-item style="margin-bottom: 20px">
|
|
<el-form-item style="margin-bottom: 20px">
|
|
|
<el-button type="primary" @click="openSupplier(scope.row)"
|
|
<el-button type="primary" @click="openSupplier(scope.row)"
|
|
|
>新增报价单</el-button
|
|
>新增报价单</el-button
|
|
|
>
|
|
>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
- <template v-slot:action="scope">
|
|
|
|
|
|
|
+ <template v-slot:action="scope" v-if="status!='Detail'">
|
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
|
class="ele-action"
|
|
class="ele-action"
|
|
|
title="确定要删除吗?"
|
|
title="确定要删除吗?"
|
|
@@ -274,7 +92,10 @@
|
|
|
props: {
|
|
props: {
|
|
|
acceptUnpack: {
|
|
acceptUnpack: {
|
|
|
default: ''
|
|
default: ''
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ status: {
|
|
|
|
|
+ default: ''
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
const defaultForm = {
|
|
const defaultForm = {
|
|
@@ -325,7 +146,8 @@
|
|
|
label: '新增报价',
|
|
label: '新增报价',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
fixed: 'left',
|
|
fixed: 'left',
|
|
|
- align: 'center'
|
|
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ show:this.status!='Detail'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
minWidth: 100,
|
|
minWidth: 100,
|
|
@@ -456,7 +278,7 @@
|
|
|
minWidth: 200,
|
|
minWidth: 200,
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column) => {
|
|
formatter: (row, column) => {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
return row.provenance && row.provenance.length
|
|
return row.provenance && row.provenance.length
|
|
|
? row.provenance
|
|
? row.provenance
|
|
|
.map((item) => this.getDictValue('产地', item ))
|
|
.map((item) => this.getDictValue('产地', item ))
|
|
@@ -464,7 +286,7 @@
|
|
|
: '';
|
|
: '';
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
{
|
|
{
|
|
|
minWidth: 120,
|
|
minWidth: 120,
|
|
|
prop: 'imgCode',
|
|
prop: 'imgCode',
|
|
@@ -484,7 +306,7 @@
|
|
|
return lbjtList[item]
|
|
return lbjtList[item]
|
|
|
}).toString()
|
|
}).toString()
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// {
|
|
// {
|