|
@@ -34,7 +34,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-dialog :visible.sync="dialog" title="客户合同详情" @close="toClose" width="50%">
|
|
|
|
|
|
+ <el-dialog :visible.sync="dialog" title="供应商合同详情" @close="toClose" width="50%">
|
|
<!-- 物流里面的:data要换成v-model -->
|
|
<!-- 物流里面的:data要换成v-model -->
|
|
<data-form v-model="form" :fields="fields" @save="turnSave" :rules="rules">
|
|
<data-form v-model="form" :fields="fields" @save="turnSave" :rules="rules">
|
|
<template #options="{item}">
|
|
<template #options="{item}">
|
|
@@ -75,7 +75,7 @@ export default {
|
|
model: 'status',
|
|
model: 'status',
|
|
filter: 'select',
|
|
filter: 'select',
|
|
type: 'select',
|
|
type: 'select',
|
|
- formact: i => (i === '0' ? '使用' : '禁用'),
|
|
|
|
|
|
+ format: i => (i === '0' ? '使用' : '禁用'),
|
|
list: [
|
|
list: [
|
|
{ label: '使用', value: '0' },
|
|
{ label: '使用', value: '0' },
|
|
{ label: '禁用', value: '1' },
|
|
{ label: '禁用', value: '1' },
|
|
@@ -124,6 +124,10 @@ export default {
|
|
// 查合同
|
|
// 查合同
|
|
async searchTreaty({ skip = 0, limit = 10, ...info } = {}) {
|
|
async searchTreaty({ skip = 0, limit = 10, ...info } = {}) {
|
|
let obj = { skip, limit, ...info };
|
|
let obj = { skip, limit, ...info };
|
|
|
|
+ if (!_.get(obj, 'client')) {
|
|
|
|
+ this.$message.error('请选择一个供应商后进行查询');
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (this.user.role !== '0') obj.owner = this.user.id;
|
|
if (this.user.role !== '0') obj.owner = this.user.id;
|
|
const res = await this.query(obj);
|
|
const res = await this.query(obj);
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|