This commit is contained in:
JIAL 2024-06-20 16:26:44 +08:00
parent 9f2350a145
commit 9cb4094538
2 changed files with 14 additions and 36 deletions

View File

@ -35,8 +35,7 @@
</div>
</div>
</div>
<div v-if="quoteList.length === 0">内容为空</div>
<div v-for="(quote, index) in quoteList" :key="index">
<div v-loading="loading" v-for="(quote, index) in quoteList" :key="index">
<div style="padding: 10px">
<el-card class="box-card">
<div slot="header" class="clearfix">
@ -80,7 +79,7 @@ export default {
dicts: ['quot_approval_status'],
data() {
return {
loading: true,
loading: false,
quoteList: [],
total: 0,
queryParams: {
@ -94,14 +93,13 @@ export default {
};
},
computed: {
noMore () {
return this.quoteList.length >= this.total
},
disabled () {
return this.loading || this.noMore
}
},
created() {
this.queryParams.orderByColumn = "a.create_time";//
this.queryParams.isAsc = "desc";//
this.handleSearch();
},
mounted() {
@ -112,9 +110,11 @@ export default {
methods: {
handleSearch() {
try {
this.loading = true;
listQuot(this.queryParams).then(response => {
this.quoteList = response.rows;
this.total = response.total;
this.loading = false;
});
} catch (error) {
console.error(error);

View File

@ -32,8 +32,8 @@
<el-input :readonly="isReadOnly" v-model="formData.quotProject" placeholder="请输入项目名称" clearable >
</el-input>
</el-form-item>
<el-form-item label="OA审批备注" prop="quotOAApprovalStatusRemark">
<el-input readonly v-model="formData.quotOAApprovalStatusRemark" placeholder="OA审批备注" clearable >
<el-form-item v-if="this.formData.quotOAApprovalStatus == '2' || this.formData.quotOAApprovalStatus == '3'" label="OA审批说明" prop="quotOAApprovalStatusRemark">
<el-input readonly v-model="formData.quotOAApprovalStatusRemark" placeholder="OA审批说明" clearable >
</el-input>
</el-form-item>
<el-form-item label="报价要求" prop="quotQuotationRequire">
@ -122,7 +122,7 @@
<el-form-item style="margin-top: 15px">
<el-button v-if="!isVIf" @click="saveForm">保存</el-button>
<el-button v-if="!isVIf" style="margin: 0px 15px 0px 20px" type="primary" @click="commitForm">提交</el-button>
<el-button @click="closeForm">取消</el-button>
</el-form-item>
</el-form>
<CustomerSelect :width="100 + '%'" ref="customerSelect" :open="customerOpen" @submit="submitCustomer" @cancel="customerOpen=false"></CustomerSelect>
@ -192,26 +192,7 @@ export default {
quotPrintUserName: '',
},
rules: {
quotProject: [{
required: true,
message: '请输入项目名称',
trigger: 'blur'
}],
quotQuotationRequire: [{
required: true,
message: '请输入报价要求',
trigger: 'blur'
}],
quotPhone: [{
required: true,
message: '请输入联系电话',
trigger: 'blur'
}],
quotQuotationFrom: [{
required: true,
message: '请输入报价来源',
trigger: 'blur'
}],
},
}
},
@ -327,10 +308,7 @@ export default {
this.$store.dispatch('tagsView/delView',this.$route)
this.$router.go(-1)
},
closeForm() {
this.$store.dispatch('tagsView/delView',this.$route)
this.$router.go(-1)
},
/*********************************附件列表数据展示、上传*****************************************/
//-
getQuotXjFileList(){