plm前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3699 lines
130 KiB

​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
3 years ago
​
2 years ago
​
2 years ago
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
2 years ago
2 years ago
​
​
2 years ago
​
​
​
​
2 years ago
​
2 years ago
​
​
​
​
​
2 years ago
2 years ago
​
​
​
​
​
​
​
​
​
​
​
8 months ago
​
​
1 year ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
3 years ago
​
​
3 years ago
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
2 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
3 years ago
3 years ago
3 years ago
​
2 years ago
3 years ago
3 years ago
​
​
​
2 years ago
​
​
​
​
​
​
​
3 years ago
3 years ago
3 years ago
​
2 years ago
​
2 years ago
2 years ago
2 years ago
​
3 years ago
2 years ago
​
3 years ago
​
3 years ago
​
3 years ago
​
2 years ago
2 years ago
2 years ago
​
​
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
​
2 years ago
2 years ago
​
2 years ago
2 years ago
2 years ago
2 years ago
​
​
2 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
2 years ago
​
​
​
​
​
​
3 years ago
​
​
2 years ago
2 years ago
3 years ago
​
2 years ago
3 years ago
​
2 years ago
2 years ago
​
​
​
​
3 years ago
​
​
​
​
2 years ago
3 years ago
​
​
​
​
​
​
2 years ago
3 years ago
​
​
​
​
2 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
3 years ago
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
2 years ago
​
​
2 years ago
​
2 years ago
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
2 years ago
​
​
3 years ago
​
​
​
​
​
​
​
​
​
3 years ago
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
​
​
​
​
​
2 years ago
​
​
​
​
​
​
2 years ago
1 year ago
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
3 years ago
​
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
​
​
​
​
​
3 years ago
​
​
​
​
​
3 years ago
​
​
3 years ago
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
3 years ago
​
​
2 years ago
3 years ago
3 years ago
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
3 years ago
​
3 years ago
​
​
​
​
​
2 years ago
​
​
​
2 years ago
2 years ago
​
​
​
​
​
​
​
​
​
2 years ago
2 years ago
​
​
​
​
2 years ago
​
​
​
​
2 years ago
​
​
​
2 years ago
​
2 years ago
​
​
​
​
2 years ago
2 years ago
2 years ago
​
​
​
​
​
​
​
3 years ago
​
​
2 years ago
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
1 year ago
1 year ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
3 years ago
​
​
​
3 years ago
​
8 months ago
3 years ago
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
3 years ago
​
3 years ago
3 years ago
​
​
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
2 years ago
2 years ago
3 years ago
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
2 years ago
3 years ago
​
2 years ago
3 years ago
​
2 years ago
3 years ago
​
​
​
​
​
2 years ago
3 years ago
​
​
2 years ago
3 years ago
​
2 years ago
3 years ago
​
2 years ago
3 years ago
​
​
​
​
​
2 years ago
3 years ago
​
​
2 years ago
3 years ago
​
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
​
​
​
​
​
2 years ago
3 years ago
​
​
2 years ago
3 years ago
​
2 years ago
3 years ago
​
2 years ago
3 years ago
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
2 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
2 years ago
3 years ago
​
2 years ago
3 years ago
2 years ago
​
3 years ago
​
​
​
​
​
​
2 years ago
2 years ago
​
​
2 years ago
2 years ago
​
2 years ago
2 years ago
2 years ago
​
2 years ago
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
2 years ago
2 years ago
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
3 years ago
3 years ago
​
​
​
​
​
​
​
3 years ago
​
​
​
3 years ago
3 years ago
​
​
​
​
​
​
​
3 years ago
​
​
​
3 years ago
3 years ago
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
3 years ago
3 years ago
3 years ago
3 years ago
​
3 years ago
2 years ago
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
2 years ago
​
​
​
​
​
​
​
​
2 years ago
1 year ago
​
​
1 year ago
​
​
​
​
2 years ago
2 years ago
2 years ago
3 years ago
​
​
​
​
​
​
1 year ago
​
​
​
​
3 years ago
​
​
​
​
1 year ago
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
3 years ago
​
​
​
​
​
3 years ago
3 years ago
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
2 years ago
​
​
​
​
3 years ago
​
​
​
​
​
​
2 years ago
3 years ago
3 years ago
​
3 years ago
2 years ago
​
1 year ago
3 years ago
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
3 years ago
​
​
3 years ago
​
3 years ago
​
​
​
3 years ago
3 years ago
​
​
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
3 years ago
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
2 years ago
3 years ago
​
​
​
3 years ago
​
3 years ago
​
​
2 years ago
3 years ago
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
2 years ago
​
2 years ago
3 years ago
2 years ago
​
​
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
3 years ago
​
2 years ago
3 years ago
​
​
​
​
​
​
2 years ago
2 years ago
​
​
3 years ago
​
3 years ago
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
3 years ago
​
​
2 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
2 years ago
2 years ago
​
​
2 years ago
2 years ago
3 years ago
​
3 years ago
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
3 years ago
​
​
​
3 years ago
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
3 years ago
​
​
​
​
​
3 years ago
2 years ago
​
​
3 years ago
​
3 years ago
2 years ago
​
​
3 years ago
3 years ago
2 years ago
3 years ago
​
​
​
​
​
3 years ago
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
3 years ago
​
3 years ago
​
​
​
​
3 years ago
​
​
​
3 years ago
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
3 years ago
​
​
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
3 years ago
​
​
3 years ago
​
​
​
3 years ago
​
​
3 years ago
​
​
3 years ago
​
​
3 years ago
​
​
​
​
​
​
​
3 years ago
​
​
​
​
3 years ago
​
​
​
​
3 years ago
​
​
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
8 months ago
3 years ago
​
8 months ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
3 years ago
3 years ago
​
2 years ago
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
3 years ago
​
2 years ago
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
2 years ago
​
​
2 years ago
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
2 years ago
​
​
​
2 years ago
​
​
​
2 years ago
​
​
​
​
​
​
1 year ago
​
​
​
​
1 year ago
​
1 year ago
1 year ago
​
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
​
​
​
​
​
​
1 year ago
​
1 year ago
​
3 years ago
​
​
3 years ago
​
​
3 years ago
​
​
3 years ago
​
​
​
  1. <template>
  2. <div class="mod-config">
  3. <!-- 查询条件 -->
  4. <el-form :inline="true" label-position="top" :model="searchData">
  5. <el-form-item label="申请单号">
  6. <el-input v-model="searchData.quotationNo" clearable style="width: 120px"></el-input>
  7. </el-form-item>
  8. <el-form-item label="申请批次号">
  9. <el-input v-model="searchData.quotationBatchNo" clearable style="width: 120px"></el-input>
  10. </el-form-item>
  11. <el-form-item label="客户编码">
  12. <el-input v-model="searchData.customerNo" clearable style="width: 120px"></el-input>
  13. </el-form-item>
  14. <el-form-item :label="'客户名称'">
  15. <el-input v-model="searchData.customerDesc" clearable style="width: 120px"></el-input>
  16. </el-form-item>
  17. <el-form-item :label="'采购专员'">
  18. <el-input v-model="searchData.trackerName" clearable style="width: 120px"></el-input>
  19. </el-form-item>
  20. <el-form-item :label="'PLM物料编码'">
  21. <el-input v-model="searchData.testPartNo" clearable style="width: 120px"></el-input>
  22. </el-form-item>
  23. <el-form-item :label="'物料名称'">
  24. <el-input v-model="searchData.partName" clearable style="width: 120px"></el-input>
  25. </el-form-item>
  26. </el-form>
  27. <el-form :inline="true" label-position="top" :model="searchData">
  28. <el-form-item :label="'要求完成日期'">
  29. <el-date-picker
  30. style="width: 120px"
  31. v-model="searchData.startDate"
  32. type="date"
  33. value-format="yyyy-MM-dd"
  34. placeholder="开始日期">
  35. </el-date-picker>
  36. </el-form-item>
  37. <el-form-item :label="' '">
  38. <el-date-picker
  39. style="width: 120px"
  40. v-model="searchData.endDate"
  41. type="date"
  42. value-format="yyyy-MM-dd"
  43. placeholder="结束日期">
  44. </el-date-picker>
  45. </el-form-item>
  46. <el-form-item label="节点审批人">
  47. <el-input v-model="searchData.approvalUsername" clearable style="width: 120px"></el-input>
  48. </el-form-item>
  49. <el-form-item label="当前节点">
  50. <el-select v-model="searchData.nodeId" placeholder="请选择节点" clearable style="width: 120px">
  51. <el-option
  52. v-for="option in nodeOptions"
  53. :key="option.id"
  54. :label="option.name"
  55. :value="option.id">
  56. </el-option>
  57. </el-select>
  58. </el-form-item>
  59. <el-form-item :label="'优先等级'">
  60. <dict-data-select v-model="searchData.priorityLevel" clearable style="width: 120px" :use-default-value="false" dict-type="priority_Level"/>
  61. </el-form-item>
  62. <el-form-item :label="'状态'">
  63. <el-select v-model="searchData.quotationStatus" style="width: 120px">
  64. <el-option label="全部" value=""></el-option>
  65. <el-option label="草稿" value="草稿"></el-option>
  66. <el-option label="审批中" value="审批中"></el-option>
  67. <el-option label="已完成" value="已完成"></el-option>
  68. </el-select>
  69. </el-form-item>
  70. <el-form-item :label="'创建人'">
  71. <el-input v-model="searchData.createBy2" clearable style="width: 120px"></el-input>
  72. </el-form-item>
  73. </el-form>
  74. <el-form :inline="true" label-position="top" :model="searchData">
  75. <el-form-item label="BU">
  76. <bu-select v-model="searchData.buNo" style="width: 120px"></bu-select>
  77. </el-form-item>
  78. <el-form-item label="批次序号">
  79. <el-input v-model="searchData.quotationItemNo" clearable style="width: 120px"></el-input>
  80. </el-form-item>
  81. <el-form-item :label="'项目号'">
  82. <el-input v-model="searchData.projectId" clearable style="width: 120px"></el-input>
  83. </el-form-item>
  84. <el-form-item :label="'项目名称'">
  85. <el-input v-model="searchData.projectName" clearable style="width: 120px"></el-input>
  86. </el-form-item>
  87. <el-form-item :label="'报价专员'">
  88. <el-input v-model="searchData.quoterName" clearable style="width: 120px"></el-input>
  89. </el-form-item>
  90. <el-form-item :label="'IFS物料编码'">
  91. <el-input v-model="searchData.finalPartNo" clearable style="width: 120px"></el-input>
  92. </el-form-item>
  93. <el-form-item :label="'客户物料编码'">
  94. <el-input v-model="searchData.customerPartNo" clearable style="width: 120px"></el-input>
  95. </el-form-item>
  96. <el-form-item :label="' '">
  97. <el-button @click="getDataList()">查询</el-button>
  98. <el-button type="primary" @click="addModal()" v-if="isAuth('102001001:save')">新增</el-button>
  99. <el-button type="primary" @click="delModal()" v-if="isAuth('102001001:remove')">删除</el-button>
  100. <download-excel v-if="isAuth('102001001:export')"
  101. :fields="fields()"
  102. :data="exportData"
  103. type="xls"
  104. :name="exportName"
  105. :header="exportHeader"
  106. :footer="exportFooter"
  107. :fetch="createExportData"
  108. :before-generate="startDownload"
  109. :before-finish="finishDownload"
  110. worksheet="导出信息"
  111. :class="['el-button', 'el-button--primary', 'el-button--medium', {'is-loading': exportLoading}]">
  112. <i v-if="exportLoading" class="el-icon-loading"></i>
  113. <span>{{ "导出" }}</span>
  114. </download-excel>
  115. <el-button @click="filterVisible = true">搜索</el-button>
  116. <el-button type="warning" @click="closeProcessModal()">流程关闭</el-button>
  117. </el-form-item>
  118. </el-form>
  119. <!-- 询价列表 -->
  120. <el-table
  121. :height="height"
  122. :data="dataList"
  123. border
  124. :row-style="rowStyle"
  125. ref="quotationTable"
  126. @row-click="quotationClickRow"
  127. @selection-change="selectionQuotation"
  128. @current-change="changeCurrentRow"
  129. v-loading="dataListLoading"
  130. style="width: 100%;">
  131. <el-table-column
  132. type="selection"
  133. header-align="center"
  134. align="center"
  135. width="50">
  136. </el-table-column>
  137. <el-table-column
  138. v-for="(item,index) in columnList" :key="index"
  139. :sortable="item.columnSortable"
  140. :prop="item.columnProp"
  141. :header-align="item.headerAlign"
  142. :show-overflow-tooltip="item.showOverflowTooltip"
  143. :align="item.align"
  144. :fixed="item.fixed === ''?false:item.fixed"
  145. :min-width="item.columnWidth"
  146. :label="item.columnLabel">
  147. <template slot-scope="scope">
  148. <div v-if="item.columnProp === 'quotationResultStatus'">
  149. <span v-if="!item.columnHidden">
  150. <span v-show="scope.row.quotationResultStatus === 'B'">草稿</span>
  151. <span v-show="scope.row.quotationResultStatus === 'C'">已下达</span>
  152. <span v-show="scope.row.quotationResultStatus === 'E'">已完成报价</span>
  153. <span v-show="scope.row.quotationResultStatus === 'S'">已提交报价</span>
  154. <span v-show="scope.row.quotationResultStatus === 'R'">客户已反馈</span>
  155. </span>
  156. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  157. </div>
  158. <div v-else>
  159. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  160. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  161. </div>
  162. </template>
  163. </el-table-column>
  164. <el-table-column
  165. fixed="right"
  166. header-align="center"
  167. align="center"
  168. width="100"
  169. label="操作">
  170. <template slot-scope="scope">
  171. <template v-if="isAuth('102001001:update')">
  172. <el-link style="cursor: pointer" @click="updateModal(scope.row)" v-if="scope.row.quotationStatus !== '已完成'">编辑</el-link>
  173. </template>
  174. <template v-if="isAuth('102001001:issued')">
  175. <el-link style="cursor: pointer" v-if="scope.row.quotationStatus === '草稿'"
  176. :disabled="!!issueLoadingSet[scope.row.quotationBatchNo]"
  177. @click="updateModalStatus(scope.row,'C')">
  178. <i v-if="issueLoadingSet[scope.row.quotationBatchNo]" class="el-icon-loading"></i>下达
  179. </el-link>
  180. </template>
  181. <template v-if="isAuth('102001001:detail')">
  182. <el-link style="cursor: pointer" @click="updateDetailModal(scope.row)" v-if="scope.row.quotationStatus === '已完成'">详情</el-link>
  183. </template>
  184. </template>
  185. </el-table-column>
  186. </el-table>
  187. <selectDiv ref="selectDiv"></selectDiv>
  188. <!-- 分页插件 -->
  189. <el-pagination style="margin-top: 0"
  190. @size-change="sizeChangeHandle"
  191. @current-change="currentChangeHandle"
  192. :current-page="pageIndex"
  193. :page-sizes="[20, 50, 100, 200, 500]"
  194. :page-size="pageSize"
  195. :total="totalPage"
  196. layout="total, sizes, prev, pager, next, jumper">
  197. </el-pagination>
  198. <!-- 询价模态框 -->
  199. <el-dialog :title="modalData.title" v-drag @open="openSaveDataDialog" @close="closeSaveDataDialog" :close-on-click-modal="false" top="10vh" :visible.sync="modalFlag" width="1200px">
  200. <el-form label-position="top" ref="saveDataForm" :model="modalData" :rules="rules">
  201. <el-row :gutter="10">
  202. <el-col :span="12">
  203. <el-form-item prop="customerNo" label="客户编码">
  204. <span style="cursor: pointer" slot="label" v-if="modalData.flag === '1'" @click="getBaseList(102,1)"><a herf="#">客户编码</a></span>
  205. <el-row :gutter="10">
  206. <el-col :span="8">
  207. <el-input :disabled="modalData.flag !== '1'" v-model="modalData.customerNo" @blur="handleQueryCustomer"></el-input>
  208. </el-col>
  209. <el-col :span="16">
  210. <el-input disabled v-model="modalData.customerDesc"></el-input>
  211. </el-col>
  212. </el-row>
  213. </el-form-item>
  214. </el-col>
  215. <el-col :span="4">
  216. <el-form-item label="要求完成日期" prop="requiredCompletionDate">
  217. <el-date-picker v-model="modalData.requiredCompletionDate" :disabled="(quotationInformationFlag('requiredCompletionDate') === 'N' && modalData.flag === '2') || detailVisible" style="width: 100%" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"></el-date-picker>
  218. </el-form-item>
  219. </el-col>
  220. <el-col :span="4">
  221. <el-form-item label="优先等级" >
  222. <dict-data-select v-if="modalFlag" :disabled="(quotationInformationFlag('priorityLevel') === 'N' && modalData.flag === '2') || detailVisible" v-model="modalData.priorityLevel" dict-type="priority_Level"></dict-data-select>
  223. </el-form-item>
  224. </el-col>
  225. <el-col :span="4">
  226. <el-form-item label="询价金额">
  227. <el-input-number v-field="accessField('102001001')" :step="0" :disabled="(quotationInformationFlag('quotationAmount') === 'N' && modalData.flag === '2') || detailVisible" :controls="false" v-model="modalData.quotationAmount"></el-input-number>
  228. </el-form-item>
  229. </el-col>
  230. </el-row>
  231. <el-row :gutter="10">
  232. <el-col :span="12">
  233. <el-form-item prop="projectId" label="项目号">
  234. <span slot="label" v-if="modalData.customerNo && modalData.flag === '1'" @click="chooseProjectListFlag = true"><a>项目号</a></span>
  235. <el-row :gutter="10">
  236. <el-col :span="8">
  237. <el-input :disabled="!modalData.customerNo || modalData.flag !== '1'" v-model="modalData.projectId" @blur="handleQueryProjectByCustomer"></el-input>
  238. </el-col>
  239. <el-col :span="16">
  240. <el-input disabled v-model="modalData.projectName"></el-input>
  241. </el-col>
  242. </el-row>
  243. </el-form-item>
  244. </el-col>
  245. <el-col :span="4">
  246. <el-form-item label="Quote Type">
  247. <dict-data-select v-if="modalFlag" :disabled="(quotationInformationFlag('quoteType') === 'N' && modalData.flag === '2') || detailVisible" v-model="modalData.quoteType" clearable dict-type="quote_type" :use-default-value="modalData.flag === '1'"></dict-data-select>
  248. </el-form-item>
  249. </el-col>
  250. <el-col :span="4">
  251. <el-form-item label="客户询价单号" prop="customerQuoteNo">
  252. <el-input :disabled="(quotationInformationFlag('customerQuoteNo') === 'N' && modalData.flag === '2') || detailVisible" v-model="modalData.customerQuoteNo"></el-input>
  253. </el-form-item>
  254. </el-col>
  255. <el-col :span="4">
  256. <el-form-item label="是否需要Sourcing">
  257. <dict-data-select v-if="modalFlag" :disabled="(quotationInformationFlag('sourcing') === 'N' && modalData.flag === '2') || detailVisible" v-model="modalData.sourcing" dict-type="sourcing"></dict-data-select>
  258. </el-form-item>
  259. </el-col>
  260. </el-row>
  261. <el-row :gutter="10">
  262. <el-col :span="8">
  263. <el-form-item label="直接客户">
  264. <el-input disabled v-model="modalData.finalCustomerId"></el-input>
  265. </el-form-item>
  266. </el-col>
  267. <el-col :span="4">
  268. <el-form-item label="Delivery Terms" prop="deliveryTerms">
  269. <dict-data-select v-if="modalFlag" :disabled="(quotationInformationFlag('deliveryTerms') === 'N' && modalData.flag === '2') || detailVisible" v-model="modalData.deliveryTerms" clearable dict-type="delivery_terms" :use-default-value="modalData.flag === '1'"></dict-data-select>
  270. </el-form-item>
  271. </el-col>
  272. <el-col :span="4">
  273. <el-form-item label="地点" prop="place">
  274. <el-input v-model="modalData.place" :disabled="(quotationInformationFlag('place') === 'N' && modalData.flag === '2') || detailVisible" clearable></el-input>
  275. </el-form-item>
  276. </el-col>
  277. <el-col :span="4">
  278. <el-form-item prop="quoterName">
  279. <span v-if="(quotationInformationFlag('quoter') === 'N' && modalData.flag === '2') || detailVisible" slot="label">报价专员</span>
  280. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(2002)"><a herf="#">报价专员</a></span>
  281. <el-input :disabled="(quotationInformationFlag('quoter') === 'N' && modalData.flag === '2') || detailVisible" v-model="modalData.quoterName" readonly>
  282. <span slot="suffix" v-show="modalData.quoterName && !detailVisible" @click="clearModalData('quoter')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
  283. </el-input>
  284. </el-form-item>
  285. </el-col>
  286. <el-col :span="4">
  287. <el-form-item prop="trackerName" v-if="(modalData.sourcing === 'Y' || modalData.sourcing === '0' || modalData.sourcing === 0) && !detailVisible">
  288. <span style="cursor: pointer" slot="label" @click="getBaseList(2000)"><a>采购专员</a></span>
  289. <el-input v-model="modalData.trackerName" :disabled="detailVisible" readonly>
  290. <span slot="suffix" v-show="modalData.trackerName && !detailVisible" @click="clearModalData('tracker')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
  291. </el-input>
  292. </el-form-item>
  293. <el-form-item label="采购专员" v-else>
  294. <el-input :disabled="quotationInformationFlag('tracker') === 'N' && modalData.flag === '2'" v-model="modalData.trackerName" readonly></el-input>
  295. </el-form-item>
  296. </el-col>
  297. </el-row>
  298. <el-row :gutter="10">
  299. <el-col :span="24">
  300. <el-form-item label="图纸存放目录" style="display: block;">
  301. <el-input
  302. v-model="modalData.drawingStorageDirectory"
  303. :disabled="detailVisible"
  304. clearable>
  305. </el-input>
  306. <div v-if="!detailVisible" style="color: #F56C6C; font-size: 12px; line-height: 1.4; margin-top: 3px;">保密项目图纸请存公共盘并将公共盘目录记录在此,请不要挂附件!</div>
  307. </el-form-item>
  308. </el-col>
  309. </el-row>
  310. <el-row :gutter="10">
  311. <el-col :span="24">
  312. <el-form-item label="备注" style="display: block;min-height: 90px">
  313. <el-input
  314. type="textarea"
  315. :disabled="(quotationInformationFlag('technicalConsiderations') === 'N' && modalData.flag === '2') || detailVisible"
  316. v-model="modalData.technicalConsiderations"
  317. :autosize="{minRows: 3, maxRows: 3}"
  318. resize='none'>
  319. </el-input>
  320. </el-form-item>
  321. </el-col>
  322. </el-row>
  323. <el-form-item style="display: none">
  324. <span slot="label" @click="getProjectPartList()"><a>项目物料</a></span>
  325. <el-input v-model="modalData.partName" style="display: none"></el-input>
  326. </el-form-item>
  327. <el-tabs v-model="activeTab">
  328. <el-tab-pane label="物料信息" name="part">
  329. <div class="rq">
  330. <el-form :inline="true" label-position="top" :model="projectPartData" v-if="modalData.flag === '1'">
  331. <el-form-item label="PLM物料编码">
  332. <el-input v-model="projectPartData.testPartNo" clearable style="width: 120px"></el-input>
  333. </el-form-item>
  334. <el-form-item label="物料名称">
  335. <el-input v-model="projectPartData.partName" clearable style="width: 120px"></el-input>
  336. </el-form-item>
  337. <el-form-item label="IFS物料编码">
  338. <el-input v-model="projectPartData.finalPartNo" clearable style="width: 120px"></el-input>
  339. </el-form-item>
  340. <el-form-item label="客户料号">
  341. <el-input v-model="projectPartData.customerPartNo" clearable style="width: 120px"></el-input>
  342. </el-form-item>
  343. <el-form-item label=" ">
  344. <el-button type="primary" @click="getProjectPartList()">查询</el-button>
  345. </el-form-item>
  346. </el-form>
  347. <el-table
  348. :height="230"
  349. :data="projectPartList"
  350. ref="projectPartTable"
  351. @row-click="projectPartClickRow"
  352. @selection-change="selectionProjectPart"
  353. :row-key="getRowKeys"
  354. :row-style="partRowStyle"
  355. border
  356. v-loading="queryLoading"
  357. style="width: 100%;">
  358. <el-table-column
  359. type="selection"
  360. header-align="center"
  361. align="center"
  362. :reserve-selection="true"
  363. :selectable="checkSelectable"
  364. width="50" class-name="disabledCheckbox">
  365. </el-table-column>
  366. <el-table-column
  367. v-for="(item,index) in projectPartDetailList" :key="index"
  368. :sortable="item.columnSortable"
  369. :prop="item.columnProp"
  370. :header-align="item.headerAlign"
  371. :show-overflow-tooltip="item.showOverflowTooltip"
  372. :align="item.align"
  373. :fixed="item.fixed===''?false:item.fixed"
  374. :min-width="item.columnWidth"
  375. :label="item.columnLabel">
  376. <template slot-scope="scope">
  377. <template v-if="item.columnProp === 'testPartNo'">
  378. <a @click="handleRouter(scope.row)">{{ scope.row[item.columnProp] }}</a>
  379. </template>
  380. <template v-else>
  381. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  382. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  383. </template>
  384. </template>
  385. </el-table-column>
  386. </el-table>
  387. </div>
  388. <el-pagination style="margin-top: 0"
  389. @size-change="handleSizeChange"
  390. @current-change="handleCurrentChange"
  391. :current-page="no"
  392. :page-sizes="[20, 50, 100, 200, 500]"
  393. :page-size="size"
  394. :total="total"
  395. layout="total, sizes, prev, pager, next, jumper">
  396. </el-pagination>
  397. </el-tab-pane>
  398. </el-tabs>
  399. </el-form>
  400. <el-footer style="height:35px;margin-top: 10px;padding-bottom:5px;text-align:center">
  401. <template v-if="modalData.quotationStatus === '草稿' || (modalData.quotationStatus === '审批中' && ((modalData.approvalUsername && modalData.approvalUsername.split(';').includes($store.state.user.name)) || superAdmin))">
  402. <el-button type="primary" v-if="!detailVisible" @click="saveData">保存</el-button>
  403. </template>
  404. <el-button type="primary" @click="modalFlag = false">关闭</el-button>
  405. <template v-if="isAuth('102001001:submit')">
  406. <template v-if="superAdmin || (modalData.approvalUsername && modalData.approvalUsername.split(';').includes($store.state.user.name))">
  407. <el-button v-if="modalData.quotationStatus === '审批中'" type="primary" :loading="submitLoading" :disabled="submitLoading" @click="agreeSubmit">同意</el-button>
  408. </template>
  409. </template>
  410. <template v-if="isAuth('102001001:rejected')">
  411. <template v-if="superAdmin || (modalData.approvalUsername && modalData.approvalUsername.split(';').includes($store.state.user.name))">
  412. <el-button v-if="modalData.quotationStatus === '审批中' && modalData.isReject === 'Y'" type="primary" @click="rejectVisible = true">驳回</el-button>
  413. </template>
  414. </template>
  415. </el-footer>
  416. </el-dialog>
  417. <!--选择项目模态框-->
  418. <el-dialog title="选择-项目" :close-on-click-modal="false" @close="closeProjectInfoDialog" @open="searchProjectInfoList" :visible.sync="chooseProjectListFlag" width="600px">
  419. <el-form label-position="top" :model="searchProjectData" ref="closeProjectInfoForm">
  420. <el-row :gutter="10">
  421. <el-col :span="6">
  422. <el-form-item label="项目号">
  423. <el-input v-model="searchProjectData.projectId"></el-input>
  424. </el-form-item>
  425. </el-col>
  426. <el-col :span="6">
  427. <el-form-item label="项目名称">
  428. <el-input v-model="searchProjectData.projectName"></el-input>
  429. </el-form-item>
  430. </el-col>
  431. <el-col :span="6">
  432. <el-form-item label=" ">
  433. <el-button type="primary" @click="searchProjectInfoList">查询</el-button>
  434. </el-form-item>
  435. </el-col>
  436. </el-row>
  437. <el-table
  438. :height="223"
  439. :data="projectList"
  440. border
  441. @row-dblclick="projectClickRow">
  442. <el-table-column label="项目号" prop="projectId"/>
  443. <el-table-column label="项目名称" prop="projectName"/>
  444. <el-table-column label="直接客户" prop="finalCustomerId"/>
  445. </el-table>
  446. </el-form>
  447. </el-dialog>
  448. <!-- 录入询价结果模态框 -->
  449. <el-dialog title="录入询价结果" :close-on-click-modal="false" v-drag :visible.sync="enterResultModalFlag" width="785px">
  450. <el-form :inline="true" label-position="top" :model="enterResultData" :rules="enterResultRules" style="margin-left: 0px;margin-top: 10px;">
  451. <el-form-item label="实际询价日期" prop="actualityQuotationDate" :rules="enterResultRules.actualityQuotationDate">
  452. <el-date-picker v-model="enterResultData.actualityQuotationDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择日期" style="width: 200px"></el-date-picker>
  453. </el-form-item>
  454. </el-form>
  455. <el-form :inline="true" label-position="top" :model="enterResultData" :rules="enterResultRules" style="margin-left:0px;margin-top: 5px;">
  456. <el-form-item label="询价结果信息" prop="quotationResultInformation" :rules="enterResultRules.quotationResultInformation">
  457. <el-input type="textarea" v-model="enterResultData.quotationResultInformation" :rows="3" resize='none' show-word-limit style="width: 500px;height: 30px"></el-input>
  458. </el-form-item>
  459. </el-form>
  460. <el-form :inline="true" label-position="top" :model="enterResultData" style="margin-left: 0px;margin-top: 50px;">
  461. <el-form :inline="true" label-position="top" style="margin-top: 5px">
  462. <el-button type="primary" @click="uploadFile()">上传文件</el-button>
  463. </el-form>
  464. <el-table
  465. :height="200"
  466. :data="fileContentList"
  467. border
  468. v-loading="dataListLoading"
  469. style="width: 100%">
  470. <el-table-column
  471. v-for="(item,index) in fileColumnList" :key="index"
  472. :sortable="item.columnSortable"
  473. :prop="item.columnProp"
  474. :header-align="item.headerAlign"
  475. :show-overflow-tooltip="item.showOverflowTooltip"
  476. :align="item.align"
  477. :fixed="item.fixed===''?false:item.fixed"
  478. :min-width="item.columnWidth"
  479. :label="item.columnLabel">
  480. <template slot-scope="scope">
  481. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  482. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  483. </template>
  484. </el-table-column>
  485. <el-table-column
  486. fixed="right"
  487. header-align="center"
  488. align="center"
  489. width="100"
  490. label="操作">
  491. <template slot-scope="scope">
  492. <a @click="deleteFile(scope.row)">删除</a>
  493. </template>
  494. </el-table-column>
  495. </el-table>
  496. </el-form>
  497. <el-footer style="height:35px;margin-top: 10px;text-align:center">
  498. <el-button type="primary" @click="saveQuotationResult()">保存</el-button>
  499. <el-button type="primary" @click="enterResultModalFlag = false">关闭</el-button>
  500. </el-footer>
  501. </el-dialog>
  502. <!-- 提交客户询价模态框 -->
  503. <el-dialog title="提交客户询价" :close-on-click-modal="false" v-drag :visible.sync="submitResultModalFlag" width="620px">
  504. <el-form :inline="true" label-position="top" :model="submitResultData" :rules="submitResultRules" style="margin-left: 0px;margin-top: 10px;">
  505. <el-form-item label="实际提交客户日期" prop="actualitySubmissionDate" :rules="submitResultRules.actualitySubmissionDate">
  506. <el-date-picker v-model="submitResultData.actualitySubmissionDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择日期" style="width: 200px"></el-date-picker>
  507. </el-form-item>
  508. <el-form-item label="提交方式" prop="submissionMethod" :rules="submitResultRules.submissionMethod">
  509. <el-select v-model="submitResultData.submissionMethod" style="width: 221px">
  510. <el-option label="邮件" value="邮件"></el-option>
  511. <el-option label="口头" value="口头"></el-option>
  512. <el-option label="微信" value="微信"></el-option>
  513. <el-option label="其它" value="其它"></el-option>
  514. </el-select>
  515. </el-form-item>
  516. </el-form>
  517. <el-form :inline="true" label-position="top" :model="submitResultData" style="margin-left:0px;margin-top: 5px;">
  518. <el-form-item label="提交备注">
  519. <el-input type="textarea" v-model="submitResultData.submissionRemark" :rows="3" resize='none' show-word-limit style="width: 456px;height: 30px"></el-input>
  520. </el-form-item>
  521. </el-form>
  522. <el-footer style="height:35px;margin-top: 50px;text-align:center">
  523. <el-button type="primary" @click="saveSubmitResult()">保存</el-button>
  524. <el-button type="primary" @click="submitResultModalFlag = false">关闭</el-button>
  525. </el-footer>
  526. </el-dialog>
  527. <!-- 客户回复模态框 -->
  528. <el-dialog title="客户回复" :close-on-click-modal="false" v-drag :visible.sync="customerResponseModalFlag" width="620px">
  529. <el-form :inline="true" label-position="top" :model="customerResponseData" :rules="customerResponseRules" style="margin-left: 0px;margin-top: 10px;">
  530. <el-form-item label="实际回复日期" prop="actualityReplyDate" :rules="customerResponseRules.actualityReplyDate">
  531. <el-date-picker v-model="customerResponseData.actualityReplyDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择日期" style="width: 185px"></el-date-picker>
  532. </el-form-item>
  533. <el-form-item label="客户确认结果" prop="confirmResults" :rules="customerResponseRules.confirmResults">
  534. <el-select v-model="customerResponseData.confirmResults" style="width: 185px">
  535. <el-option label="接受" value="接受"></el-option>
  536. <el-option label="不接受" value="不接受"></el-option>
  537. </el-select>
  538. </el-form-item>
  539. <el-form-item label="客户确认人" prop="confirmBy" :rules="customerResponseRules.confirmBy">
  540. <el-input v-model="customerResponseData.confirmBy" style="width: 185px"></el-input>
  541. </el-form-item>
  542. </el-form>
  543. <el-form :inline="true" label-position="top" :model="customerResponseData" style="margin-left:0px;margin-top: 5px;">
  544. <el-form-item label="客户回复信息">
  545. <el-input type="textarea" v-model="customerResponseData.confirmInformation" :rows="3" resize='none' show-word-limit style="width: 595px;height: 30px"></el-input>
  546. </el-form-item>
  547. </el-form>
  548. <el-footer style="height:35px;margin-top: 50px;text-align:center">
  549. <el-button type="primary" @click="saveCustomerResponse()">保存</el-button>
  550. <el-button type="primary" @click="customerResponseModalFlag = false">关闭</el-button>
  551. </el-footer>
  552. </el-dialog>
  553. <!-- 客户联系人 -->
  554. <el-dialog title="负责人清单" :close-on-click-modal="false" v-drag :visible.sync="contactModelFlag" width="520px">
  555. <el-table
  556. :height="300"
  557. :data="contactList"
  558. @row-dblclick="getContactData"
  559. border
  560. style="width: 100%;">
  561. <el-table-column
  562. v-for="(item,index) in columnContactList" :key="index"
  563. :sortable="item.columnSortable"
  564. :prop="item.columnProp"
  565. :header-align="item.headerAlign"
  566. :show-overflow-tooltip="item.showOverflowTooltip"
  567. :align="item.align"
  568. :fixed="item.fixed==''?false:item.fixed"
  569. :min-width="item.columnWidth"
  570. :label="item.columnLabel">
  571. <template slot-scope="scope">
  572. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  573. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  574. </template>
  575. </el-table-column>
  576. </el-table>
  577. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  578. <el-button type="primary" @click="contactModelFlag=false">关闭</el-button>
  579. </el-footer>
  580. </el-dialog>
  581. <el-dialog title="驳回" top="30vh" :close-on-click-modal="false" v-drag :visible.sync="rejectVisible" width="500px">
  582. <el-form label-position="top">
  583. <el-form-item label="驳回意见" class="auto">
  584. <el-input type="textarea" v-model="rejectOpinion" :rows="3"></el-input>
  585. </el-form-item>
  586. </el-form>
  587. <el-footer style="text-align:center;height: 30px;line-height: 30px;">
  588. <el-button type="primary" :loading="submitLoading" :disabled="submitLoading" @click="rejectSubmit">确定</el-button>
  589. <el-button type="primary" :disabled="submitLoading" @click="closeRejectForm">取消</el-button>
  590. </el-footer>
  591. </el-dialog>
  592. <!-- 页签 -->
  593. <el-tabs v-model="activeTable" type="border-card" style="margin-top: 0px;" @tab-click="tabClick" class="customer-tab">
  594. <el-tab-pane label="基本信息" name="priceCheck">
  595. <price-check-properties
  596. :disabled="quotationCurrentRow.quotationStatus === '已完成'"
  597. ref="tabProperties"
  598. v-model:data-list="priceCheckPropertiesList"
  599. :quotation-no="quotationCurrentRow.quotationBatchNo"
  600. :approval-username="quotationCurrentRow.approvalUsername"
  601. :quotation-status="quotationCurrentRow.quotationStatus"
  602. :super-admin="superAdmin"
  603. height="45vh">
  604. </price-check-properties>
  605. </el-tab-pane>
  606. <el-tab-pane label="采购详细信息" name="tabMaterialSourcing">
  607. <price-check-detail :disabled="quotationCurrentRow.quotationStatus === '已完成'" :quote="quotationCurrentRow" :data-list="priceCheckDetailList" @refresh="getPriceCheckDetailList" :height="500"></price-check-detail>
  608. </el-tab-pane>
  609. <!-- 项目信息页签 -->
  610. <el-tab-pane label="项目信息" name="project_information">
  611. <el-form label-position="top" :model="projectInformationData" style="margin-left: 10px;margin-top: 5px;margin-right: 10px">
  612. <el-row :gutter="25">
  613. <el-col :span="6">
  614. <el-form-item label="项目号">
  615. <el-input v-model="projectInformationData.projectId" readonly></el-input>
  616. </el-form-item>
  617. </el-col>
  618. <el-col :span="12">
  619. <el-form-item label="项目名称">
  620. <el-input v-model="projectInformationData.projectName" readonly></el-input>
  621. </el-form-item>
  622. </el-col>
  623. <el-col :span="6">
  624. <el-form-item label="项目类型">
  625. <el-input v-model="projectInformationData.projectType" readonly></el-input>
  626. </el-form-item>
  627. </el-col>
  628. <el-col :span="6">
  629. <el-form-item label="行业">
  630. <el-input v-model="projectInformationData.industryDesc" readonly></el-input>
  631. </el-form-item>
  632. </el-col>
  633. <el-col :span="6">
  634. <el-form-item label="优先级">
  635. <el-input v-model="projectInformationData.priorityDesc" readonly></el-input>
  636. </el-form-item>
  637. </el-col>
  638. <el-col :span="6">
  639. <el-form-item label="项目经理">
  640. <el-input v-model="projectInformationData.projectManagerName" readonly></el-input>
  641. </el-form-item>
  642. </el-col>
  643. <el-col :span="6">
  644. <el-form-item label="项目审批人">
  645. <el-input v-model="projectInformationData.projectOwnerName" readonly></el-input>
  646. </el-form-item>
  647. </el-col>
  648. <el-col :span="6">
  649. <el-form-item label="客户">
  650. <el-input v-model="projectInformationData.customerId" readonly></el-input>
  651. </el-form-item>
  652. </el-col>
  653. <el-col :span="12">
  654. <el-form-item label="客户名称">
  655. <el-input v-model="projectInformationData.customerName" readonly></el-input>
  656. </el-form-item>
  657. </el-col>
  658. <el-col :span="6"></el-col>
  659. <el-col :span="6">
  660. <el-form-item label="客户项目号">
  661. <el-input v-model="projectInformationData.customerProjectNo" readonly></el-input>
  662. </el-form-item>
  663. </el-col>
  664. <el-col :span="10">
  665. <el-form-item label="项目年销售额CNY(K)">
  666. <el-input v-model="projectInformationData.projectAmount" readonly></el-input>
  667. </el-form-item>
  668. </el-col>
  669. <el-col :span="8">
  670. <el-form-item label="直接客户">
  671. <el-input v-model="projectInformationData.finalCustomerId" readonly></el-input>
  672. </el-form-item>
  673. </el-col>
  674. </el-row>
  675. <el-form-item label="客户产品" style="height: 70px">
  676. <el-input type="textarea" resize="none" :autosize="{minRows: 2, maxRows: 2}" v-model="projectInformationData.projectDesc" readonly></el-input>
  677. </el-form-item>
  678. <el-form-item label="客户产品应用" style="height: 70px">
  679. <el-input type="textarea" resize="none" :autosize="{minRows: 2, maxRows: 2}" v-model="projectInformationData.customerRemark" readonly></el-input>
  680. </el-form-item>
  681. <el-form-item label="其他要求" style="height: 70px">
  682. <el-input type="textarea" resize="none" :autosize="{minRows: 2, maxRows: 2}" v-model="projectInformationData.remark" readonly></el-input>
  683. </el-form-item>
  684. <el-form-item label="项目权限">
  685. <el-input v-model="projectInformationData.userRoleName" readonly></el-input>
  686. </el-form-item>
  687. </el-form>
  688. </el-tab-pane>
  689. <!-- 客户信息页签 -->
  690. <el-tab-pane label="客户信息" name="customer_information">
  691. <customer-info :project="quotationCurrentRow"></customer-info>
  692. </el-tab-pane>
  693. <el-tab-pane label="报价明细" name="quote_detail" >
  694. <inquiry-quote-detail :quotation="quotationCurrentRow"></inquiry-quote-detail>
  695. </el-tab-pane>
  696. <el-tab-pane label="附件信息" name="oss_file" >
  697. <oss-components
  698. :save-visible="isAuth('102001001:tab6:save')"
  699. :download-visible="isAuth('102001001:tab6:download')"
  700. :remove-visible="isAuth('102001001:tab6:remove')"
  701. :preview-visible="isAuth('102001001:tab6:preview')"
  702. label="申请单号" style="margin-top: 5px" height="44vh" :disabled="quotationCurrentRow.quotationStatus === '已完成'" :columns="ossColumns" :order-ref1="quotationCurrentRow.site" :order-ref2="quotationCurrentRow.quotationBatchNo"></oss-components>
  703. </el-tab-pane>
  704. <!-- 审批信息 -->
  705. <el-tab-pane label="审批信息" name="approvalInformation">
  706. <approval-information ref="approvalTable" v-model:data-list="approvalList" height="46vh" style="margin-top: 5px"></approval-information>
  707. </el-tab-pane>
  708. </el-tabs>
  709. <!-- chooseList模态框 -->
  710. <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
  711. <!-- 上传文件的modal -->
  712. <quotationUploadFile ref="quotationUploadFile" @refreshPageTables="getFileContentData()" v-drag></quotationUploadFile>
  713. <filter-search :visible.sync="filterVisible" @search="searchByAnyField"></filter-search>
  714. </div>
  715. </template>
  716. <script>
  717. import {
  718. quotationInformationSearch, // 询价信息列表查询
  719. quotationInformationSave, // 询价信息新增
  720. quotationInformationEdit, // 询价信息编辑
  721. quotationInformationDelete, // 询价信息删除
  722. getFileContentList, // 获取询价单附件列表
  723. quotationResultSearch, // 获取询价结果对象
  724. deleteQuotationFile, // 文件删除
  725. downLoadQuotationFile, // 文件下载
  726. saveQuotationResult, // 保存询价结果
  727. saveSubmitResult, // 保存提交结果
  728. saveCustomerResponse, // 保存客户回复
  729. getProjectPartList, // 获取产品列表
  730. checkQuotationStatus, // 检查询价进度
  731. getProjectInformation, // 获取项目信息
  732. getCustomerInformation, // 获取客户信息
  733. searchProjectInfoList,// 查询项目信息
  734. submitChange, // 提交
  735. quotationInformationEditStatus, // 下达
  736. } from '@/api/quotation/quotationInformation.js'
  737. import {
  738. customerContactSearch, // 客户联系人列表查询
  739. } from '@/api/customer/customerContact.js'
  740. import {
  741. getNodeAuthority, // 获取节点权限
  742. checkSuperAdmin, // 校验是否为超级管理员
  743. } from '@/api/changeManagement/changeManagement.js'
  744. import {
  745. getNodeList
  746. } from "@/api/sampleManagement/technicalSpecificationList.js"
  747. import Chooselist from '@/views/modules/common/Chooselist'
  748. import quotationUploadFile from "./quotation_upload_file"
  749. import DictDataSelect from "../sys/dict-data-select.vue";
  750. import PriceCheckProperties from "./priceCheckProperties.vue";
  751. import TestProperties from "../test/testAttribute/testProperties.vue";
  752. import priceCheckProperties from "./priceCheckProperties.vue";
  753. import {getPriceCheckPropertiesList} from "../../../api/quotation/priceCheckProperties";
  754. import PriceCheckDetail from "./sellForQuotation/priceCheckDetail/priceCheckDetail.vue";
  755. import {getPriceCheckDetailList} from "../../../api/quotation/priceCheckDetail";
  756. import InquiryQuoteDetail from "./inquiry/inquiryQuoteDetail.vue";
  757. import {queryCustomer} from "../../../api/customer/customerInformation";
  758. import {projectPartSearchByAnyField, queryProjectByCustomer} from "../../../api/project/project";
  759. import OssComponents from "../oss/ossComponents.vue";
  760. import BuSelect from "../base/BuSelect.vue";
  761. import ApprovalInformation from "../changeManagement/approvalInformation.vue";
  762. import {getApprovalList, closeProcess} from "../../../api/changeManagement/changeManagement";
  763. import CustomerInfo from "./sellForQuotation/customerInfo.vue";
  764. import {isAuth, pickRouteValue} from "../../../utils";
  765. import FilterSearch from "../../common/filterSearch.vue";
  766. import {quotationInformationSearchByAnyField} from "../../../api/quotation/quotationInformation";
  767. export default {
  768. computed: {
  769. priceCheckProperties() {
  770. return priceCheckProperties
  771. },
  772. quotationInformationFlag () {
  773. return (value) => {
  774. if (!this.plmQuotationInformationArr){
  775. return 'N'
  776. }
  777. let arr = this.plmQuotationInformationArr.filter(a => a.fieldId === value)
  778. if (arr.length > 0) {
  779. return arr[0].updateFlag
  780. }
  781. return 'N'
  782. }
  783. },
  784. },
  785. components: {
  786. FilterSearch,
  787. CustomerInfo,
  788. ApprovalInformation,
  789. BuSelect,
  790. OssComponents,
  791. InquiryQuoteDetail,
  792. PriceCheckDetail,
  793. TestProperties,
  794. PriceCheckProperties,
  795. DictDataSelect,
  796. Chooselist,
  797. quotationUploadFile
  798. },
  799. props:{
  800. height:{
  801. type:Number,
  802. default:240
  803. }
  804. },
  805. watch: {
  806. '$route' () {
  807. this.handleRouteQuery(false)
  808. },
  809. searchData: {
  810. deep: true,
  811. handler: function (newV, oldV) {
  812. this.searchData.customerNo = this.searchData.customerNo.toUpperCase()
  813. this.searchData.projectId = this.searchData.projectId.toUpperCase()
  814. }
  815. },
  816. modalData: {
  817. deep: true,
  818. handler: function (newV, oldV) {
  819. this.modalData.customerNo = this.modalData.customerNo.toUpperCase()
  820. this.modalData.projectId = this.modalData.projectId.toUpperCase()
  821. this.modalData.quotationNo = this.modalData.quotationNo.toUpperCase()
  822. }
  823. },
  824. quotationCurrentRow(newVal,oldVal){
  825. this.getPriceCheckDetailList()
  826. this.getPriceCheckProperties();
  827. this.getApprovalList();
  828. },
  829. 'modalData.customerNo'(newV, oldV) {
  830. // 修复:编辑模式(flag === '2')时不触发清空,避免回填数据时误清空项目号
  831. if (oldV && this.modalData.flag !== '2') {
  832. if (!newV) {
  833. this.modalData.customerDesc = ''
  834. }
  835. this.modalData.projectId = ''
  836. this.modalData.consignee = ''
  837. this.modalData.consigneeContact = ''
  838. this.modalData.sendSamplesAddress = ''
  839. }
  840. },
  841. 'modalData.projectId'(newV, oldV) {
  842. // 修复:编辑模式(flag === '2')时不触发清空,避免回填数据时误清空相关字段
  843. if (oldV && this.modalData.flag !== '2') {
  844. if (!newV) {
  845. this.modalData.projectName = ''
  846. }
  847. this.modalData.testPartNo = ''
  848. this.modalData.partName = ''
  849. this.projectPartListSelections = [];
  850. this.projectPartList = [];
  851. this.$refs.projectPartTable.clearSelection();
  852. }
  853. },
  854. rejectVisible(newVal,oldVal){
  855. if (newVal === false){
  856. this.rejectOpinion = ''
  857. }
  858. },
  859. "modalData.sourcing"(newVal,oldVal){
  860. if (newVal !== 'Y' && newVal !== '0' && newVal !== 0){
  861. this.modalData.tracker = ''
  862. this.modalData.trackerName = ''
  863. }
  864. },
  865. "modalData.tracker"(newVal,oldVal){
  866. if (newVal === '' || newVal === null || newVal === undefined){
  867. this.modalData.trackerName = ''
  868. }
  869. },
  870. "modalData.quoter"(newVal,oldVal){
  871. if (newVal === '' || newVal === null || newVal === undefined){
  872. this.modalData.quoterName = ''
  873. }
  874. },
  875. "searchData.quotationNo"(newVal,oldVal){
  876. this.searchData.quotationNo = newVal.toUpperCase()
  877. },
  878. "searchData.quotationBatchNo"(newVal,oldVal){
  879. this.searchData.quotationBatchNo = newVal.toUpperCase()
  880. },
  881. modalFlag(newVal,oldVal){
  882. if (newVal === false){
  883. this.detailVisible = false
  884. this.projectPartData.customerPartNo = ''
  885. this.projectPartData.finalPartNo = ''
  886. this.no = 1
  887. this.size = 20
  888. this.total = 0
  889. this.projectPartList = []
  890. this.projectPartListSelections = []
  891. }
  892. },
  893. saveLoading(newVal,oldVal){
  894. // 三秒后关闭
  895. if (newVal === true){
  896. setTimeout(() => {
  897. this.saveLoading = false
  898. }, 3000)
  899. }
  900. }
  901. },
  902. data() {
  903. return {
  904. approvalList:[],
  905. copyPriceCheckDetail:{},
  906. priceCheckRule: {
  907. associatedPartNo:[{required: true, message: ' ', trigger: 'change'},],
  908. materialRequired:[{required: true, message: ' ', trigger: 'change'},],
  909. yearlyOrMonthlyRequirement:[{required: true, message: ' ', trigger: 'change'},],
  910. runningWidth:[{required: true, message: ' ', trigger: 'change'},],
  911. },
  912. savePriceDetail:{
  913. site:'',
  914. quotationNo:'',
  915. associatedPartNo:'',
  916. materialRequired:'',
  917. yearlyOrMonthlyRequirement:'',
  918. runningWidth:'',
  919. },
  920. priceCheckDetail:{
  921. site:'',
  922. quotationNo:'',
  923. associatedPartNo:'',
  924. materialRequired:'',
  925. yearlyOrMonthlyRequirement:'',
  926. runningWidth:'',
  927. },
  928. activeTab:'part',
  929. priceCheckPropertiesList: [],
  930. // 导出
  931. exportData: [],
  932. exportName: '设备分类' + this.dayjs().format('YYYYMMDDHHmmss'),
  933. exportHeader: ['设备分类'],
  934. exportFooter: [],
  935. resultList: [],
  936. // ======== 行高 ========
  937. secondHeight: 200,
  938. // ======== 分页 ========
  939. pageIndex: 1,
  940. pageSize: 50,
  941. totalPage: 0,
  942. selectedDataNum: 0,
  943. filterVisible: false,
  944. isFilterSearch: false,
  945. filterSearchData: {},
  946. // 条件查询
  947. searchData: {
  948. site: this.$store.state.user.site,
  949. customerNo: '',
  950. customerDesc: '',
  951. quotationBatchNo: '',
  952. quotationItemNo: '',
  953. trackerName: '',
  954. testPartNo: '',
  955. partName: '',
  956. quotationStatus: '',
  957. quotationResultStatus: '',
  958. startDate: '',
  959. endDate: '',
  960. projectId: '',
  961. projectName: '',
  962. quoterName: '',
  963. priorityLevel: '',
  964. customerPartNo: '',
  965. finalPartNo: '',
  966. page: 1,
  967. limit: 10,
  968. menuId: this.$route.meta.menuId,
  969. quotationNo: '',
  970. nodeId: '',
  971. approvalUsername: '',
  972. createBy2: ''
  973. },
  974. // 其它
  975. exportLoading: false,
  976. dataListLoading: false,
  977. // 选择项目弹框开关
  978. chooseProjectListFlag: false,
  979. //项目搜索条件
  980. searchProjectData: {
  981. site: this.$store.state.user.site,
  982. projectId: undefined,
  983. projectName: undefined,
  984. customerId: undefined,
  985. status: '',
  986. },
  987. // 项目集合
  988. projectList: [],
  989. // 初始页签
  990. activeTable: 'priceCheck',
  991. // ======== 数据对象 ========
  992. modalData: {
  993. flag: '',
  994. title: '',
  995. site: this.$store.state.user.site,
  996. quotationNo: '',
  997. customerNo: '',
  998. customerDesc: '',
  999. projectId: '',
  1000. projectName: '',
  1001. deliveryTerms: '',
  1002. quoteType: '',
  1003. tracker: '',
  1004. trackerName: '',
  1005. sourcing:'',
  1006. quoter: '',
  1007. quoterName: '',
  1008. customerQuoteNo: '',
  1009. quotationStatus: '',
  1010. testPartNo: '',
  1011. partName: '',
  1012. priorityLevel: '',
  1013. requiredCompletionDate: '',
  1014. remark: '',
  1015. technicalConsiderations: '',
  1016. customerResponsiblePerson: '',
  1017. customerResponsiblePersonPhone: '',
  1018. nextToDo: '',
  1019. actualityQuotationDate: '',
  1020. quotationResultInformation: '',
  1021. actualitySubmissionDate: '',
  1022. submissionMethod: '',
  1023. submissionRemark: '',
  1024. actualityReplyDate: '',
  1025. confirmResults: '',
  1026. confirmBy: '',
  1027. confirmInformation: '',
  1028. quotationResultStatus: '',
  1029. createDate: '',
  1030. createBy: '',
  1031. updateDate: '',
  1032. updateBy: '',
  1033. nodeConclusion: '',
  1034. stepId: '',
  1035. rejectFlag: '',
  1036. rejectStepId: '',
  1037. isReject: '',
  1038. nodeId: ''
  1039. },
  1040. quotationDetailData: {
  1041. technicalConsiderations: '',
  1042. customerResponsiblePerson: '',
  1043. customerResponsiblePersonPhone: ''
  1044. },
  1045. quotationResultData: {
  1046. actualityQuotationDate: '',
  1047. quotationResultInformation: '',
  1048. actualitySubmissionDate: '',
  1049. submissionMethod: '',
  1050. submissionRemark: '',
  1051. confirmResults: '',
  1052. actualityReplyDate: '',
  1053. confirmBy: '',
  1054. confirmInformation: '',
  1055. quotationResultStatus: '',
  1056. },
  1057. enterResultData: {
  1058. site: this.$store.state.user.site,
  1059. quotationNo: '',
  1060. actualityQuotationDate: '',
  1061. quotationResultInformation: '',
  1062. updateBy: this.$store.state.user.name,
  1063. quotationResultStatus: '',
  1064. fileContentList: []
  1065. },
  1066. submitResultData: {
  1067. site: this.$store.state.user.site,
  1068. quotationNo: '',
  1069. actualitySubmissionDate: '',
  1070. submissionMethod: '',
  1071. submissionRemark: '',
  1072. updateBy: this.$store.state.user.name,
  1073. quotationResultStatus: ''
  1074. },
  1075. customerResponseData: {
  1076. site: this.$store.state.user.site,
  1077. quotationNo: '',
  1078. actualityReplyDate: '',
  1079. confirmResults: '',
  1080. confirmBy: '',
  1081. confirmInformation: '',
  1082. updateBy: this.$store.state.user.name,
  1083. quotationResultStatus: ''
  1084. },
  1085. projectPartData: {
  1086. site: this.$store.state.user.site,
  1087. testPartNo: '',
  1088. finalPartNo:'',
  1089. customerPartNo:'',
  1090. partName: '',
  1091. projectId: '',
  1092. },
  1093. projectInformationData: {
  1094. projectId: '',
  1095. projectName: '',
  1096. projectType: '',
  1097. projectSourceDesc: '',
  1098. priorityDesc: '',
  1099. status: '',
  1100. projectDesc: '',
  1101. projectManagerName: '',
  1102. projectOwnerName: '',
  1103. userRoleName: '',
  1104. remark: ''
  1105. },
  1106. customerInformationData: {
  1107. customerNo: '',
  1108. customerDesc: '',
  1109. importantCustomer: '',
  1110. customerCurrency: '',
  1111. turnoverOfYear: '',
  1112. potentialRevenueOfYear: '',
  1113. customerStatus: '',
  1114. customerIndustry: '',
  1115. companyName: '',
  1116. jobDescription: '',
  1117. customerDescription: '',
  1118. contactName: '',
  1119. contactPhoneNumber1: '',
  1120. position: '',
  1121. addressName: '',
  1122. addressType: '',
  1123. createDate: '',
  1124. createBy: '',
  1125. updateDate: '',
  1126. updateBy: ''
  1127. },
  1128. // ======== 数据列表 ========
  1129. dataList: [],
  1130. fileContentList: [],
  1131. projectPartList: [],
  1132. contactList: [],
  1133. nodeOptions: [],
  1134. // ======== 列表表头 ========
  1135. columnList: [
  1136. {
  1137. userId: this.$store.state.user.name,
  1138. functionId: 102001,
  1139. serialNumber: '102001Table1BuDesc',
  1140. tableId: '102001Table1',
  1141. tableName: '询价信息表',
  1142. columnProp: 'buDesc',
  1143. headerAlign: 'center',
  1144. align: 'center',
  1145. columnLabel: 'BU',
  1146. columnHidden: false,
  1147. columnImage: false,
  1148. columnSortable: false,
  1149. sortLv: 0,
  1150. status: true,
  1151. fixed: '',
  1152. columnWidth: 80
  1153. },
  1154. {
  1155. userId: this.$store.state.user.name,
  1156. functionId: 102001,
  1157. serialNumber: '102001Table1QuotationNo',
  1158. tableId: '102001Table1',
  1159. tableName: '询价信息表',
  1160. columnProp: 'quotationNo',
  1161. headerAlign: 'center',
  1162. align: 'center',
  1163. columnLabel: '申请单号',
  1164. columnHidden: false,
  1165. columnImage: false,
  1166. columnSortable: false,
  1167. sortLv: 0,
  1168. status: true,
  1169. fixed: '',
  1170. columnWidth: 120
  1171. },
  1172. {
  1173. userId: this.$store.state.user.name,
  1174. functionId: 102001,
  1175. serialNumber: '102001Table1QuotationBatchNo',
  1176. tableId: '102001Table1',
  1177. tableName: '询价信息表',
  1178. columnProp: 'quotationBatchNo',
  1179. headerAlign: 'center',
  1180. align: 'center',
  1181. columnLabel: '申请批次号',
  1182. columnHidden: false,
  1183. columnImage: false,
  1184. columnSortable: false,
  1185. sortLv: 0,
  1186. status: true,
  1187. fixed: '',
  1188. columnWidth: 120
  1189. }, {
  1190. userId: this.$store.state.user.name,
  1191. functionId: 102001,
  1192. serialNumber: '102001Table1QuotationItemNo',
  1193. tableId: '102001Table1',
  1194. tableName: '询价信息表',
  1195. columnProp: 'quotationItemNo',
  1196. headerAlign: 'center',
  1197. align: 'right',
  1198. columnLabel: '序号',
  1199. columnHidden: false,
  1200. columnImage: false,
  1201. columnSortable: false,
  1202. sortLv: 0,
  1203. status: true,
  1204. fixed: '',
  1205. columnWidth: 60
  1206. },
  1207. {
  1208. userId: this.$store.state.user.name,
  1209. functionId: 102001,
  1210. serialNumber: '102001Table1CustomerNo',
  1211. tableId: '102001Table1',
  1212. tableName: '询价信息表',
  1213. columnProp: 'customerNo',
  1214. headerAlign: 'center',
  1215. align: 'center',
  1216. columnLabel: '客户编码',
  1217. columnHidden: false,
  1218. columnImage: false,
  1219. columnSortable: false,
  1220. sortLv: 0,
  1221. status: true,
  1222. fixed: '',
  1223. columnWidth: 100
  1224. },
  1225. {
  1226. userId: this.$store.state.user.name,
  1227. functionId: 102001,
  1228. serialNumber: '102001Table1CustomerDesc',
  1229. tableId: '102001Table1',
  1230. tableName: '询价信息表',
  1231. columnProp: 'customerDesc',
  1232. headerAlign: 'center',
  1233. align: 'left',
  1234. columnLabel: '客户名称',
  1235. columnHidden: false,
  1236. columnImage: false,
  1237. columnSortable: false,
  1238. sortLv: 0,
  1239. status: true,
  1240. fixed: '',
  1241. columnWidth: 120
  1242. },
  1243. {
  1244. userId: this.$store.state.user.name,
  1245. functionId: 102001,
  1246. serialNumber: '102001Table1ProjectId',
  1247. tableId: '102001Table1',
  1248. tableName: '询价信息表',
  1249. columnProp: 'projectId',
  1250. headerAlign: 'center',
  1251. align: 'left',
  1252. columnLabel: '项目号',
  1253. columnHidden: false,
  1254. columnImage: false,
  1255. columnSortable: false,
  1256. sortLv: 0,
  1257. status: true,
  1258. fixed: '',
  1259. columnWidth: 120
  1260. },
  1261. {
  1262. userId: this.$store.state.user.name,
  1263. functionId: 102001,
  1264. serialNumber: '102001Table1ProjectName',
  1265. tableId: '102001Table1',
  1266. tableName: '询价信息表',
  1267. columnProp: 'projectName',
  1268. headerAlign: 'center',
  1269. align: 'left',
  1270. columnLabel: '项目名称',
  1271. columnHidden: false,
  1272. columnImage: false,
  1273. columnSortable: false,
  1274. sortLv: 0,
  1275. status: true,
  1276. fixed: '',
  1277. columnWidth: 120
  1278. },
  1279. {
  1280. userId: this.$store.state.user.name,
  1281. functionId: 102001,
  1282. serialNumber: '102001Table1TestPartNo',
  1283. tableId: '102001Table1',
  1284. tableName: '询价信息表',
  1285. columnProp: 'testPartNo',
  1286. headerAlign: 'center',
  1287. align: 'left',
  1288. columnLabel: 'PLM物料编码',
  1289. columnHidden: false,
  1290. columnImage: false,
  1291. columnSortable: false,
  1292. sortLv: 0,
  1293. status: true,
  1294. fixed: '',
  1295. columnWidth: 140
  1296. },
  1297. {
  1298. userId: this.$store.state.user.name,
  1299. functionId: 102001,
  1300. serialNumber: '102001Table1FinalPartNo',
  1301. tableId: '102001Table1',
  1302. tableName: '询价信息表',
  1303. columnProp: 'finalPartNo',
  1304. headerAlign: 'center',
  1305. align: 'left',
  1306. columnLabel: 'IFS物料编码',
  1307. columnHidden: false,
  1308. columnImage: false,
  1309. columnSortable: false,
  1310. sortLv: 0,
  1311. status: true,
  1312. fixed: '',
  1313. columnWidth: 140
  1314. },
  1315. {
  1316. userId: this.$store.state.user.name,
  1317. functionId: 102001,
  1318. serialNumber: '102001Table1PartName',
  1319. tableId: '102001Table1',
  1320. tableName: '询价信息表',
  1321. columnProp: 'partName',
  1322. headerAlign: 'center',
  1323. align: 'left',
  1324. columnLabel: '物料名称',
  1325. columnHidden: false,
  1326. columnImage: false,
  1327. columnSortable: false,
  1328. sortLv: 0,
  1329. status: true,
  1330. fixed: '',
  1331. columnWidth: 100
  1332. },
  1333. {
  1334. userId: this.$store.state.user.name,
  1335. functionId: 102001,
  1336. serialNumber: '102001Table1CustomerPartNo',
  1337. tableId: '102001Table1',
  1338. tableName: '询价信息表',
  1339. columnProp: 'customerPartNo',
  1340. headerAlign: 'center',
  1341. align: 'left',
  1342. columnLabel: '客户物料编码',
  1343. columnHidden: false,
  1344. columnImage: false,
  1345. columnSortable: false,
  1346. sortLv: 0,
  1347. status: true,
  1348. fixed: '',
  1349. columnWidth: 100
  1350. },
  1351. {
  1352. userId: this.$store.state.user.name,
  1353. functionId: 102001,
  1354. serialNumber: '102001Table1TrackerName',
  1355. tableId: '102001Table1',
  1356. tableName: '询价信息表',
  1357. columnProp: 'trackerName',
  1358. headerAlign: 'center',
  1359. align: 'left',
  1360. columnLabel: '采购专员',
  1361. columnHidden: false,
  1362. columnImage: false,
  1363. columnSortable: false,
  1364. sortLv: 0,
  1365. status: true,
  1366. fixed: '',
  1367. columnWidth: 80
  1368. },
  1369. {
  1370. userId: this.$store.state.user.name,
  1371. functionId: 102001,
  1372. serialNumber: '102001Table1QuoterName',
  1373. tableId: '102001Table1',
  1374. tableName: '询价信息表',
  1375. columnProp: 'quoterName',
  1376. headerAlign: 'center',
  1377. align: 'left',
  1378. columnLabel: '报价专员',
  1379. columnHidden: false,
  1380. columnImage: false,
  1381. columnSortable: false,
  1382. sortLv: 0,
  1383. status: true,
  1384. fixed: '',
  1385. columnWidth: 80
  1386. },
  1387. {
  1388. userId: this.$store.state.user.name,
  1389. functionId: 102001,
  1390. serialNumber: '102001Table1PriorityLevel',
  1391. tableId: '102001Table1',
  1392. tableName: '询价信息表',
  1393. columnProp: 'priorityLevel',
  1394. headerAlign: 'center',
  1395. align: 'left',
  1396. columnLabel: '优先等级',
  1397. columnHidden: false,
  1398. columnImage: false,
  1399. columnSortable: false,
  1400. sortLv: 0,
  1401. status: true,
  1402. fixed: '',
  1403. columnWidth: 80
  1404. },
  1405. {
  1406. userId: this.$store.state.user.name,
  1407. functionId: 102001,
  1408. serialNumber: '102001Table1RequiredCompletionDate',
  1409. tableId: '102001Table1',
  1410. tableName: '询价信息表',
  1411. columnProp: 'requiredCompletionDate',
  1412. headerAlign: 'center',
  1413. align: 'center',
  1414. columnLabel: '要求完成日期',
  1415. columnHidden: false,
  1416. columnImage: false,
  1417. columnSortable: false,
  1418. sortLv: 0,
  1419. status: true,
  1420. fixed: '',
  1421. columnWidth: 160
  1422. },
  1423. {
  1424. userId: this.$store.state.user.name,
  1425. functionId: 102001,
  1426. serialNumber: '102001Table1quotationStatus',
  1427. tableId: '102001Table1',
  1428. tableName: '询价信息表',
  1429. columnProp: 'quotationStatus',
  1430. headerAlign: 'center',
  1431. align: 'center',
  1432. columnLabel: '状态',
  1433. columnHidden: false,
  1434. columnImage: false,
  1435. columnSortable: false,
  1436. sortLv: 0,
  1437. status: true,
  1438. fixed: '',
  1439. columnWidth: 100
  1440. },
  1441. {
  1442. userId: this.$store.state.user.name,
  1443. functionId: 102001,
  1444. serialNumber: '102001Table1NodeName',
  1445. tableId: '102001Table1',
  1446. tableName: '询价信息表',
  1447. columnProp: 'nodeName',
  1448. headerAlign: 'center',
  1449. align: 'center',
  1450. columnLabel: '当前节点',
  1451. columnHidden: false,
  1452. columnImage: false,
  1453. columnSortable: false,
  1454. sortLv: 0,
  1455. status: true,
  1456. fixed: '',
  1457. columnWidth: 150
  1458. },
  1459. {
  1460. userId: this.$store.state.user.name,
  1461. functionId: 102001,
  1462. serialNumber: '102001Table1ApprovalUsername',
  1463. tableId: '102001Table1',
  1464. tableName: '询价信息表',
  1465. columnProp: 'approvalUsername',
  1466. headerAlign: 'center',
  1467. align: 'left',
  1468. columnLabel: '当前节点审批人',
  1469. columnHidden: false,
  1470. columnImage: false,
  1471. columnSortable: false,
  1472. sortLv: 0,
  1473. status: true,
  1474. fixed: '',
  1475. columnWidth: 150
  1476. },
  1477. {
  1478. userId: this.$store.state.user.name,
  1479. functionId: 102001,
  1480. serialNumber: '102001Table1CreateDate',
  1481. tableId: '102001Table1',
  1482. tableName: '询价信息表',
  1483. columnProp: 'createDate',
  1484. headerAlign: 'center',
  1485. align: 'center',
  1486. columnLabel: '创建时间',
  1487. columnHidden: false,
  1488. columnImage: false,
  1489. columnSortable: false,
  1490. sortLv: 0,
  1491. status: true,
  1492. fixed: '',
  1493. columnWidth: 160
  1494. },
  1495. {
  1496. userId: this.$store.state.user.name,
  1497. functionId: 102001,
  1498. serialNumber: '102001Table1CreateBy',
  1499. tableId: '102001Table1',
  1500. tableName: '询价信息表',
  1501. columnProp: 'createBy',
  1502. headerAlign: 'center',
  1503. align: 'left',
  1504. columnLabel: '创建人',
  1505. columnHidden: false,
  1506. columnImage: false,
  1507. columnSortable: false,
  1508. sortLv: 0,
  1509. status: true,
  1510. fixed: '',
  1511. columnWidth: 80
  1512. },
  1513. {
  1514. userId: this.$store.state.user.name,
  1515. functionId: 102001,
  1516. serialNumber: '102001Table1UpdateDate',
  1517. tableId: '102001Table1',
  1518. tableName: '询价信息表',
  1519. columnProp: 'updateDate',
  1520. headerAlign: 'center',
  1521. align: 'center',
  1522. columnLabel: '更新时间',
  1523. columnHidden: false,
  1524. columnImage: false,
  1525. columnSortable: false,
  1526. sortLv: 0,
  1527. status: true,
  1528. fixed: '',
  1529. columnWidth: 160
  1530. },
  1531. {
  1532. userId: this.$store.state.user.name,
  1533. functionId: 102001,
  1534. serialNumber: '102001Table1UpdateBy',
  1535. tableId: '102001Table1',
  1536. tableName: '询价信息表',
  1537. columnProp: 'updateBy',
  1538. headerAlign: 'center',
  1539. align: 'left',
  1540. columnLabel: '更新人',
  1541. columnHidden: false,
  1542. columnImage: false,
  1543. columnSortable: false,
  1544. sortLv: 0,
  1545. status: true,
  1546. fixed: '',
  1547. columnWidth: 80
  1548. }
  1549. ],
  1550. fileColumnList: [
  1551. {
  1552. userId: this.$store.state.user.name,
  1553. functionId: 102001,
  1554. serialNumber: '102001Table2FileName',
  1555. tableId: '102001Table2',
  1556. tableName: '文件信息表',
  1557. columnProp: 'fileName',
  1558. headerAlign: 'center',
  1559. align: 'center',
  1560. columnLabel: '文件名称',
  1561. columnHidden: false,
  1562. columnImage: false,
  1563. columnSortable: false,
  1564. sortLv: 0,
  1565. status: true,
  1566. fixed: '',
  1567. columnWidth: 140
  1568. },
  1569. {
  1570. userId: this.$store.state.user.name,
  1571. functionId: 102001,
  1572. serialNumber: '102001Table2FileRemark',
  1573. tableId: '102001Table2',
  1574. tableName: '文件信息表',
  1575. columnProp: 'fileRemark',
  1576. headerAlign: 'center',
  1577. align: 'center',
  1578. columnLabel: '备注',
  1579. columnHidden: false,
  1580. columnImage: false,
  1581. columnSortable: false,
  1582. sortLv: 0,
  1583. status: true,
  1584. fixed: '',
  1585. columnWidth: 240
  1586. },
  1587. // {
  1588. // userId: this.$store.state.user.name,
  1589. // functionId: 102001,
  1590. // serialNumber: '102001Table2OrderRef3',
  1591. // tableId: '102001Table2',
  1592. // tableName: '文件信息表',
  1593. // columnProp: 'orderRef3',
  1594. // headerAlign: 'center',
  1595. // align: 'center',
  1596. // columnLabel: '文件描述',
  1597. // columnHidden: false,
  1598. // columnImage: false,
  1599. // columnSortable: false,
  1600. // sortLv: 0,
  1601. // status: true,
  1602. // fixed: '',
  1603. // columnWidth: 120
  1604. // },
  1605. {
  1606. userId: this.$store.state.user.name,
  1607. functionId: 102001,
  1608. serialNumber: '102001Table2CreateDate',
  1609. tableId: '102001Table2',
  1610. tableName: '文件信息表',
  1611. columnProp: 'createDate',
  1612. headerAlign: 'center',
  1613. align: 'center',
  1614. columnLabel: '上传时间',
  1615. columnHidden: false,
  1616. columnImage: false,
  1617. columnSortable: false,
  1618. sortLv: 0,
  1619. status: true,
  1620. fixed: '',
  1621. columnWidth: 140
  1622. },
  1623. {
  1624. userId: this.$store.state.user.name,
  1625. functionId: 102001,
  1626. serialNumber: '102001Table2CreatedBy',
  1627. tableId: '102001Table2',
  1628. tableName: '文件信息表',
  1629. columnProp: 'createdBy',
  1630. headerAlign: 'center',
  1631. align: 'center',
  1632. columnLabel: '上传人',
  1633. columnHidden: false,
  1634. columnImage: false,
  1635. columnSortable: false,
  1636. sortLv: 0,
  1637. status: true,
  1638. fixed: '',
  1639. columnWidth: 140
  1640. }
  1641. ],
  1642. projectPartDetailList: [
  1643. {
  1644. userId: this.$store.state.user.name,
  1645. functionId: 102001,
  1646. serialNumber: '102001Table3TestPartNo',
  1647. tableId: '102001Table3',
  1648. tableName: '项目物料表',
  1649. columnProp: 'testPartNo',
  1650. headerAlign: 'center',
  1651. align: 'left',
  1652. columnLabel: 'PLM物料编码',
  1653. columnHidden: false,
  1654. columnImage: false,
  1655. columnSortable: false,
  1656. sortLv: 0,
  1657. status: true,
  1658. fixed: '',
  1659. columnWidth: 150
  1660. },
  1661. {
  1662. userId: this.$store.state.user.name,
  1663. functionId: 102001,
  1664. serialNumber: '102001Table3FinalPartNo',
  1665. tableId: '102001Table3',
  1666. tableName: '项目物料表',
  1667. columnProp: 'finalPartNo',
  1668. headerAlign: 'center',
  1669. align: 'left',
  1670. columnLabel: 'IFS物料编码',
  1671. columnHidden: false,
  1672. columnImage: false,
  1673. columnSortable: false,
  1674. sortLv: 0,
  1675. status: true,
  1676. fixed: '',
  1677. columnWidth: 120
  1678. },
  1679. {
  1680. userId: this.$store.state.user.name,
  1681. functionId: 102001,
  1682. serialNumber: '102001Table3PartDesc',
  1683. tableId: '102001Table3',
  1684. tableName: '项目物料表',
  1685. columnProp: 'partDesc',
  1686. headerAlign: 'center',
  1687. align: 'center',
  1688. columnLabel: '物料名称',
  1689. columnHidden: false,
  1690. columnImage: false,
  1691. columnSortable: false,
  1692. sortLv: 0,
  1693. status: true,
  1694. fixed: '',
  1695. columnWidth: 120
  1696. },
  1697. {
  1698. userId: this.$store.state.user.name,
  1699. functionId: 102001,
  1700. serialNumber: '102001Table3CustomerPartNo',
  1701. tableId: '102001Table3',
  1702. tableName: '项目物料表',
  1703. columnProp: 'customerPartNo',
  1704. headerAlign: 'center',
  1705. align: 'left',
  1706. columnLabel: '客户料号',
  1707. columnHidden: false,
  1708. columnImage: false,
  1709. columnSortable: false,
  1710. sortLv: 0,
  1711. status: true,
  1712. fixed: '',
  1713. columnWidth: 120
  1714. },
  1715. {
  1716. userId: this.$store.state.user.name,
  1717. functionId: 102001,
  1718. serialNumber: '102001Table3PartSpec',
  1719. tableId: '102001Table3',
  1720. tableName: '项目物料表',
  1721. columnProp: 'partSpec',
  1722. headerAlign: 'center',
  1723. align: 'center',
  1724. columnLabel: '产品规格',
  1725. columnHidden: false,
  1726. columnImage: false,
  1727. columnSortable: false,
  1728. sortLv: 0,
  1729. status: true,
  1730. fixed: '',
  1731. columnWidth: 120
  1732. }, {
  1733. userId: this.$store.state.user.name,
  1734. functionId: 102001,
  1735. serialNumber: '102001Table3PartTypeDesc',
  1736. tableId: '102001Table3',
  1737. tableName: '项目物料表',
  1738. columnProp: 'partTypeDesc',
  1739. headerAlign: 'center',
  1740. align: 'center',
  1741. columnLabel: '产品类型',
  1742. columnHidden: false,
  1743. columnImage: false,
  1744. columnSortable: false,
  1745. sortLv: 0,
  1746. status: true,
  1747. fixed: '',
  1748. columnWidth: 120
  1749. },
  1750. {
  1751. userId: this.$store.state.user.name,
  1752. functionId: 102001,
  1753. serialNumber: '102001Table3Type',
  1754. tableId: '102001Table3',
  1755. tableName: '项目物料表',
  1756. columnProp: 'type',
  1757. headerAlign: 'center',
  1758. align: 'center',
  1759. columnLabel: '制造类型',
  1760. columnHidden: false,
  1761. columnImage: false,
  1762. columnSortable: false,
  1763. sortLv: 0,
  1764. status: true,
  1765. fixed: '',
  1766. columnWidth: 120
  1767. },
  1768. {
  1769. userId: this.$store.state.user.name,
  1770. functionId: 102001,
  1771. serialNumber: '102001Table3UmId',
  1772. tableId: '102001Table3',
  1773. tableName: '项目物料表',
  1774. columnProp: 'umId',
  1775. headerAlign: 'center',
  1776. align: 'center',
  1777. columnLabel: '单位',
  1778. columnHidden: false,
  1779. columnImage: false,
  1780. columnSortable: false,
  1781. sortLv: 0,
  1782. status: true,
  1783. fixed: '',
  1784. columnWidth: 100
  1785. },
  1786. ],
  1787. columnContactList: [
  1788. {
  1789. userId: this.$store.state.user.name,
  1790. functionId: 102001,
  1791. serialNumber: '102001Table4ContactName',
  1792. tableId: '102001Table4',
  1793. tableName: '客户联系人表',
  1794. columnProp: 'contactName',
  1795. headerAlign: 'center',
  1796. align: 'center',
  1797. columnLabel: '客户负责人',
  1798. columnHidden: false,
  1799. columnImage: false,
  1800. status: true,
  1801. fixed: '',
  1802. },
  1803. {
  1804. userId: this.$store.state.user.name,
  1805. functionId: 102001,
  1806. serialNumber: '102001Table4ContactPhoneNumber1',
  1807. tableId: '102001Table4',
  1808. tableName: '客户联系人表',
  1809. columnProp: 'contactPhoneNumber1',
  1810. headerAlign: 'center',
  1811. align: 'center',
  1812. columnLabel: '联系方式',
  1813. columnHidden: false,
  1814. columnImage: false,
  1815. status: true,
  1816. fixed: '',
  1817. },
  1818. {
  1819. userId: this.$store.state.user.name,
  1820. functionId: 102001,
  1821. serialNumber: '102001Table4PrimaryContact',
  1822. tableId: '102001Table4',
  1823. tableName: '客户联系人表',
  1824. columnProp: 'primaryContact',
  1825. headerAlign: 'center',
  1826. align: 'center',
  1827. columnLabel: '默认联系人',
  1828. columnHidden: false,
  1829. columnImage: false,
  1830. status: true,
  1831. fixed: '',
  1832. },
  1833. {
  1834. userId: this.$store.state.user.name,
  1835. functionId: 102001,
  1836. serialNumber: '102001Table4ContactStatus',
  1837. tableId: '102001Table4',
  1838. tableName: '客户联系人表',
  1839. columnProp: 'contactStatus',
  1840. headerAlign: 'center',
  1841. align: 'center',
  1842. columnLabel: '人员状态',
  1843. columnHidden: false,
  1844. columnImage: false,
  1845. status: true,
  1846. fixed: '',
  1847. },
  1848. ],
  1849. // ======== 必填规则 ========
  1850. rules: {
  1851. customerNo: [
  1852. {required: true, message: ' ', trigger: 'change'},
  1853. {required: true, message: ' ', trigger: 'blur'},
  1854. ],
  1855. customerDesc: [
  1856. {required: true, message: ' ', trigger: 'change'},
  1857. {required: true, message: ' ', trigger: 'blur'},
  1858. ],
  1859. trackerName: [
  1860. {required: true, message: ' ', trigger: 'change'},
  1861. {required: true, message: ' ', trigger: 'blur'},
  1862. ],
  1863. projectId: [
  1864. {required: true, message: ' ', trigger: 'change'},
  1865. {required: true, message: ' ', trigger: 'blur'},
  1866. ],
  1867. projectName: [
  1868. {required: true, message: ' ', trigger: 'change'},
  1869. {required: true, message: ' ', trigger: 'blur'},
  1870. ],
  1871. quoterName: [
  1872. {required: true, message: ' ', trigger: 'change'},
  1873. {required: true, message: ' ', trigger: 'blur'},
  1874. ],
  1875. partName: [
  1876. {required: true, message: ' ', trigger: 'change'},
  1877. {required: true, message: ' ', trigger: 'blur'},
  1878. ],
  1879. priorityLevel: [
  1880. {required: true, message: ' ', trigger: 'change'},
  1881. ],
  1882. requiredCompletionDate: [
  1883. {required: true, message: ' ', trigger: 'change'},
  1884. {required: true, message: ' ', trigger: 'blur'},
  1885. ],
  1886. deliveryTerms: [
  1887. {required: true, message: ' ', trigger: 'change'},
  1888. {required: true, message: ' ', trigger: 'blur'},
  1889. ],
  1890. quoteType: [
  1891. {required: true, message: ' ', trigger: 'change'},
  1892. {required: true, message: ' ', trigger: 'blur'},
  1893. ],
  1894. },
  1895. enterResultRules: {
  1896. actualityQuotationDate: [
  1897. {
  1898. required: true,
  1899. message: ' ',
  1900. trigger: 'change'
  1901. }
  1902. ],
  1903. quotationResultInformation: [
  1904. {
  1905. required: true,
  1906. message: ' ',
  1907. trigger: 'change'
  1908. }
  1909. ]
  1910. },
  1911. submitResultRules: {
  1912. actualitySubmissionDate: [
  1913. {
  1914. required: true,
  1915. message: ' ',
  1916. trigger: 'change'
  1917. }
  1918. ],
  1919. submissionMethod: [
  1920. {
  1921. required: true,
  1922. message: ' ',
  1923. trigger: 'change'
  1924. }
  1925. ]
  1926. },
  1927. customerResponseRules: {
  1928. actualityReplyDate: [
  1929. {
  1930. required: true,
  1931. message: ' ',
  1932. trigger: 'change'
  1933. }
  1934. ],
  1935. confirmResults: [
  1936. {
  1937. required: true,
  1938. message: ' ',
  1939. trigger: 'change'
  1940. }
  1941. ],
  1942. confirmBy: [
  1943. {
  1944. required: true,
  1945. message: ' ',
  1946. trigger: 'change'
  1947. }
  1948. ]
  1949. },
  1950. // ======== 复选数据集 ========
  1951. quotationSelections: [],
  1952. projectPartListSelections: [],
  1953. // ======== 选中的当前行数据 ========
  1954. quotationCurrentRow: {},
  1955. // ======== 模态框开关控制 ========
  1956. modalFlag: false,
  1957. modalDisableFlag: false,
  1958. enterResultModalFlag: false,
  1959. submitResultModalFlag: false,
  1960. customerResponseModalFlag: false,
  1961. projectPartModelFlag: false,
  1962. contactModelFlag: false,
  1963. priceCheckDetailList: [],
  1964. plmQuotationInformationArr: [],
  1965. ossColumns: [
  1966. {
  1967. userId: this.$store.state.user.name,
  1968. functionId: 103001,
  1969. serialNumber: '103001Table2FileName',
  1970. tableId: '103001Table2',
  1971. tableName: '文件信息表',
  1972. columnProp: 'fileName',
  1973. headerAlign: 'center',
  1974. align: 'center',
  1975. columnLabel: '文件名称',
  1976. columnHidden: false,
  1977. columnImage: false,
  1978. columnSortable: false,
  1979. sortLv: 0,
  1980. status: true,
  1981. fixed: '',
  1982. columnWidth: 140
  1983. },
  1984. {
  1985. userId: this.$store.state.user.name,
  1986. functionId: 103001,
  1987. serialNumber: '103001Table2FileRemark',
  1988. tableId: '103001Table2',
  1989. tableName: '文件信息表',
  1990. columnProp: 'fileRemark',
  1991. headerAlign: 'center',
  1992. align: 'center',
  1993. columnLabel: '备注',
  1994. columnHidden: false,
  1995. columnImage: false,
  1996. columnSortable: false,
  1997. sortLv: 0,
  1998. status: true,
  1999. fixed: '',
  2000. columnWidth: 240
  2001. },
  2002. // {
  2003. // userId: this.$store.state.user.name,
  2004. // functionId: 103001,
  2005. // serialNumber: '103001Table2OrderRef3',
  2006. // tableId: '103001Table2',
  2007. // tableName: '文件信息表',
  2008. // columnProp: 'orderRef3',
  2009. // headerAlign: 'center',
  2010. // align: 'center',
  2011. // columnLabel: '文件描述',
  2012. // columnHidden: false,
  2013. // columnImage: false,
  2014. // columnSortable: false,
  2015. // sortLv: 0,
  2016. // status: true,
  2017. // fixed: '',
  2018. // columnWidth: 120
  2019. // },
  2020. {
  2021. userId: this.$store.state.user.name,
  2022. functionId: 103001,
  2023. serialNumber: '103001Table2CreateDate',
  2024. tableId: '103001Table2',
  2025. tableName: '文件信息表',
  2026. columnProp: 'createDate',
  2027. headerAlign: 'center',
  2028. align: 'center',
  2029. columnLabel: '上传时间',
  2030. columnHidden: false,
  2031. columnImage: false,
  2032. columnSortable: false,
  2033. sortLv: 0,
  2034. status: true,
  2035. fixed: '',
  2036. columnWidth: 140
  2037. },
  2038. {
  2039. userId: this.$store.state.user.name,
  2040. functionId: 103001,
  2041. serialNumber: '103001Table2CreatedBy',
  2042. tableId: '103001Table2',
  2043. tableName: '文件信息表',
  2044. columnProp: 'createBy',
  2045. headerAlign: 'center',
  2046. align: 'center',
  2047. columnLabel: '上传人',
  2048. columnHidden: false,
  2049. columnImage: false,
  2050. columnSortable: false,
  2051. sortLv: 0,
  2052. status: true,
  2053. fixed: '',
  2054. columnWidth: 140
  2055. }
  2056. ],
  2057. rejectVisible: false,
  2058. rejectOpinion: '',
  2059. submitLoading: false,
  2060. issueLoadingSet: {},
  2061. detailVisible: false,
  2062. no: 1,
  2063. size: 20,
  2064. total: 0,
  2065. queryLoading: false,
  2066. superAdmin: false,
  2067. }
  2068. },
  2069. mounted() {
  2070. this.$nextTick(() => {
  2071. /*第二个表格高度的动态调整*/
  2072. this.secondHeight = window.innerHeight -this.height;
  2073. })
  2074. this.fetchNodeOptions()
  2075. },
  2076. created() {
  2077. this.handleRouteQuery()
  2078. this.checkSuperAdmin()
  2079. },
  2080. activated () {
  2081. this.handleRouteQuery()
  2082. },
  2083. methods: {
  2084. fetchNodeOptions() {
  2085. getNodeList(this.searchData).then(({ data }) => {
  2086. if (data && data.code === 0) {
  2087. this.nodeOptions = data.rows.map(item => ({
  2088. id: item.nodeId,
  2089. name: item.nodeName
  2090. }));
  2091. } else {
  2092. this.$message.error('获取节点列表失败');
  2093. }
  2094. }).catch(error => {
  2095. this.$message.error('请求失败:' + error);
  2096. });
  2097. },
  2098. // 校验是否为超级管理员
  2099. checkSuperAdmin () {
  2100. checkSuperAdmin().then(({data}) => {
  2101. this.superAdmin = data.superAdmin
  2102. })
  2103. },
  2104. handleRouteQuery(allowDefault){
  2105. const routeType = pickRouteValue(this.$route, 'type')
  2106. const quotationBatchNo = pickRouteValue(this.$route, ['quotationBatchNo', 'docNo'])
  2107. const quotationNo = pickRouteValue(this.$route, 'quotationNo')
  2108. const routeKey = [routeType, quotationBatchNo, quotationNo].join('|')
  2109. if (this._lastLockRouteKey === routeKey) {
  2110. return
  2111. }
  2112. this._lastLockRouteKey = routeKey
  2113. if (routeType === 'tokenLogin' || quotationBatchNo || quotationNo) {
  2114. if (quotationNo && routeType !== 'tokenLogin') {
  2115. this.searchData.quotationNo = quotationNo
  2116. } else if (quotationBatchNo) {
  2117. this.searchData.quotationBatchNo = quotationBatchNo
  2118. }
  2119. this.searchData.limit = this.pageSize
  2120. this.searchData.page = this.pageIndex
  2121. const params = {
  2122. ...this.searchData
  2123. }
  2124. quotationInformationSearch(params).then(({data}) => {
  2125. if (data.code === 0) {
  2126. this.dataList = data.page.list
  2127. this.pageIndex = data.page.currPage
  2128. this.pageSize = data.page.pageSize
  2129. this.totalPage = data.page.totalCount
  2130. this.$refs.selectDiv.setLengthAll(this.dataList.length)
  2131. if (quotationNo && routeType !== 'tokenLogin') {
  2132. this.searchData.quotationNo = ''
  2133. }
  2134. if (this.dataList.length > 0) {
  2135. this.quotationClickRow(this.dataList[0])
  2136. if (routeType === 'tokenLogin') {
  2137. this.updateModal(this.dataList[0])
  2138. }
  2139. } else {
  2140. this.quotationCurrentRow = {}
  2141. }
  2142. }
  2143. })
  2144. } else if (allowDefault !== false) {
  2145. this.getDataList()
  2146. }
  2147. },
  2148. // ======== 分页相关方法 ========
  2149. /**
  2150. * 每页数
  2151. */
  2152. sizeChangeHandle(val) {
  2153. this.pageSize = val
  2154. this.pageIndex = 1
  2155. if ( this.isFilterSearch === false){
  2156. this.getDataList()
  2157. } else {
  2158. this.searchByAnyField(this.filterSearchData)
  2159. }
  2160. },
  2161. /**
  2162. * 当前页
  2163. */
  2164. currentChangeHandle(val) {
  2165. this.pageIndex = val
  2166. if ( this.isFilterSearch === false){
  2167. this.getDataList()
  2168. } else {
  2169. this.searchByAnyField(this.filterSearchData)
  2170. }
  2171. },
  2172. // ======== 复选框操作相关方法 ========
  2173. /**
  2174. * 选中一行
  2175. */
  2176. projectPartClickRow(row) {
  2177. if (this.modalData.flag === '1') {
  2178. this.$refs.projectPartTable.toggleRowSelection(row);
  2179. this.confirmProjectPart();
  2180. }
  2181. },
  2182. /**
  2183. * 多选
  2184. * @param val
  2185. */
  2186. selectionProjectPart(val) {
  2187. this.projectPartListSelections = val
  2188. },
  2189. /**
  2190. * 获取唯一值,一般都为 id
  2191. */
  2192. getRowKeys(row) {
  2193. return row.testPartNo;
  2194. },
  2195. // ======== 页签切换相关方法 ========
  2196. /**
  2197. * 列表表格选择替换
  2198. */
  2199. tabClick(tab, event) {
  2200. // 刷新列表数据
  2201. this.refreshCurrentTabTable()
  2202. },
  2203. /**
  2204. * 当前值发生变化的时候修改
  2205. */
  2206. changeCurrentRow(row, oldRow) {
  2207. // 判断是否是获取焦点的事件
  2208. if (row) {
  2209. this.quotationCurrentRow = JSON.parse(JSON.stringify(row))
  2210. //刷新当前页表
  2211. this.refreshCurrentTabTable()
  2212. }
  2213. },
  2214. /**
  2215. * 刷新页签的table数据
  2216. */
  2217. refreshCurrentTabTable() {
  2218. if (this.activeTable === 'quotation_result') {
  2219. this.getQuotationResult()
  2220. } else if (this.activeTable === 'project_information') {
  2221. this.getProjectInformation()
  2222. } else if (this.activeTable === 'customer_information') {
  2223. this.getCustomerInformation()
  2224. }
  2225. },
  2226. // ======== 列表数据刷新方法 ========
  2227. /**
  2228. * 获取数据列表
  2229. */
  2230. getDataList() {
  2231. this.searchData.limit = this.pageSize
  2232. this.searchData.page = this.pageIndex
  2233. let params = {
  2234. ...this.searchData,
  2235. createBy: this.$store.state.user.name
  2236. }
  2237. quotationInformationSearch(params).then(({data}) => {
  2238. if (data.code === 0) {
  2239. this.dataList = data.page.list
  2240. this.pageIndex = data.page.currPage
  2241. this.pageSize = data.page.pageSize
  2242. this.totalPage = data.page.totalCount
  2243. this.$refs.selectDiv.setLengthAll(this.dataList.length)
  2244. //判断是否全部存在数据
  2245. if (this.dataList.length > 0) {
  2246. //设置选中行
  2247. // this.$refs.quotationTable.setCurrentRow(this.dataList[0])
  2248. // this.refreshCurrentTabTable() //加载当前的页签的table
  2249. this.quotationClickRow(this.dataList[0])
  2250. }else {
  2251. this.quotationCurrentRow = {}
  2252. }
  2253. }
  2254. this.isFilterSearch = false
  2255. this.dataListLoading = false
  2256. })
  2257. },
  2258. /**
  2259. * 获取询价结果列表
  2260. */
  2261. getQuotationResult() {
  2262. let tempData = {
  2263. site: this.$store.state.user.site,
  2264. quotationNo: this.quotationCurrentRow.quotationNo
  2265. }
  2266. // 询价结果对象
  2267. quotationResultSearch(tempData).then(({data}) => {
  2268. if (data && data.code === 0) {
  2269. this.quotationResultData = data.rows[0]
  2270. } else {
  2271. this.quotationResultData = {}
  2272. }
  2273. })
  2274. // 附件列表
  2275. this.getFileContentData()
  2276. },
  2277. /**
  2278. * 获取项目信息
  2279. */
  2280. getProjectInformation() {
  2281. let tempData = {
  2282. site: this.$store.state.user.site,
  2283. projectId: this.quotationCurrentRow.projectId
  2284. }
  2285. // 询价结果对象
  2286. getProjectInformation(tempData).then(({data}) => {
  2287. if (data && data.code === 0) {
  2288. this.projectInformationData = data.rows[0]
  2289. } else {
  2290. this.projectInformationData = {}
  2291. }
  2292. })
  2293. },
  2294. /**
  2295. * 获取客户信息
  2296. */
  2297. getCustomerInformation() {
  2298. let tempData = {
  2299. site: this.$store.state.user.site,
  2300. customerNo: this.quotationCurrentRow.customerNo
  2301. }
  2302. // 询价结果对象
  2303. getCustomerInformation(tempData).then(({data}) => {
  2304. if (data && data.code === 0) {
  2305. this.customerInformationData = data.rows[0]
  2306. } else {
  2307. this.customerInformationData = {}
  2308. }
  2309. })
  2310. },
  2311. // ======== 新增/编辑模态框 ========
  2312. /**
  2313. * 询价信息新增模态框
  2314. */
  2315. addModal() {
  2316. this.modalData = {
  2317. flag: '1',
  2318. title: '询价新增',
  2319. site: this.$store.state.user.site,
  2320. quotationNo: '',
  2321. customerNo: '',
  2322. customerDesc: '',
  2323. deliveryTerms: '',
  2324. sourcing:'',
  2325. quoteType: '',
  2326. projectId: '',
  2327. projectName: '',
  2328. finalCustomerId: '',
  2329. finalCustomerName: '',
  2330. tracker: '',
  2331. trackerName: '',
  2332. quoter: '',
  2333. quoterName: '',
  2334. customerQuoteNo: '',
  2335. quotationStatus: '草稿',
  2336. testPartNo: '',
  2337. partName: '',
  2338. priorityLevel: '',
  2339. requiredCompletionDate: '',
  2340. remark: '',
  2341. technicalConsiderations: '',
  2342. customerResponsiblePerson: '',
  2343. customerResponsiblePersonPhone: '',
  2344. nextToDo: '',
  2345. actualityQuotationDate: '',
  2346. quotationResultInformation: '',
  2347. actualitySubmissionDate: '',
  2348. submissionMethod: '',
  2349. submissionRemark: '',
  2350. actualityReplyDate: '',
  2351. confirmResults: '',
  2352. confirmBy: '',
  2353. confirmInformation: '',
  2354. quotationResultStatus: 'B',
  2355. createBy: this.$store.state.user.name,
  2356. nodeId: '',
  2357. place:'',
  2358. drawingStorageDirectory: '',
  2359. }
  2360. this.modalDisableFlag = false
  2361. this.modalFlag = true
  2362. },
  2363. /**
  2364. * 询价信息编辑模态框
  2365. */
  2366. async updateModal(row) {
  2367. await this.getNodeAuthority(row)
  2368. this.modalData = {
  2369. flag: '2',
  2370. title: '询价编辑-' + row.quotationNo,
  2371. deliveryTerms: row.deliveryTerms,
  2372. quoteType: row.quoteType,
  2373. site: row.site,
  2374. quotationNo: row.quotationNo,
  2375. quotationBatchNo: row.quotationBatchNo,
  2376. customerNo: row.customerNo,
  2377. customerDesc: row.customerDesc,
  2378. projectId: row.projectId,
  2379. projectName: row.projectName,
  2380. finalCustomerId: row.finalCustomerId,
  2381. finalCustomerName: row.finalCustomerName,
  2382. tracker: row.tracker,
  2383. trackerName: row.trackerName,
  2384. quoter: row.quoter,
  2385. sourcing:row.sourcing,
  2386. quoterName: row.quoterName,
  2387. customerQuoteNo: row.customerQuoteNo,
  2388. quotationStatus: row.quotationStatus,
  2389. testPartNo: row.testPartNo,
  2390. partName: row.partName,
  2391. priorityLevel: row.priorityLevel,
  2392. requiredCompletionDate: row.requiredCompletionDate,
  2393. remark: row.remark,
  2394. technicalConsiderations: row.technicalConsiderations,
  2395. customerResponsiblePerson: row.customerResponsiblePerson,
  2396. customerResponsiblePersonPhone: row.customerResponsiblePersonPhone,
  2397. nextToDo: row.nextToDo,
  2398. actualityQuotationDate: row.actualityQuotationDate,
  2399. quotationResultInformation: row.quotationResultInformation,
  2400. actualitySubmissionDate: row.actualitySubmissionDate,
  2401. submissionMethod: row.submissionMethod,
  2402. submissionRemark: row.submissionRemark,
  2403. actualityReplyDate: row.actualityReplyDate,
  2404. confirmResults: row.confirmResults,
  2405. confirmBy: row.confirmBy,
  2406. confirmInformation: row.confirmInformation,
  2407. quotationResultStatus: row.quotationResultStatus,
  2408. updateBy: this.$store.state.user.name,
  2409. quotationAmount:row.quotationAmount,
  2410. nodeConclusion: '',
  2411. stepId: row.stepId,
  2412. rejectFlag: row.rejectFlag,
  2413. rejectStepId: row.rejectStepId,
  2414. isReject: row.isReject,
  2415. nodeId: row.nodeId,
  2416. approvalUsername: row.approvalUsername,
  2417. place: row.place,
  2418. drawingStorageDirectory: row.drawingStorageDirectory,
  2419. }
  2420. if (this.modalData.flag !== '1'){
  2421. this.projectPartData.testPartNo = this.modalData.testPartNo
  2422. }
  2423. this.priceCheckDetail = row.priceCheckDetail
  2424. this.modalDisableFlag = true
  2425. this.modalFlag = true
  2426. },
  2427. // ======== 新增/编辑/删除方法 ========
  2428. /**
  2429. * 获取产品列表
  2430. */
  2431. getProjectPartList() {
  2432. if (!this.modalData.projectId) {
  2433. this.$message.warning("请选择项目编码!")
  2434. return
  2435. }
  2436. // 先清空缓存选中
  2437. this.$nextTick(() => this.$refs.projectPartTable.clearSelection())
  2438. // 拿到选中的产品编号
  2439. let projectPartList = this.modalData.testPartNo.split(';')
  2440. // 获得查询
  2441. this.projectPartData.projectId = this.modalData.projectId;
  2442. // 查询所有产品
  2443. let params = {
  2444. ...this.projectPartData,
  2445. no:this.no,
  2446. size:this.size,
  2447. }
  2448. this.queryLoading = true
  2449. getProjectPartList(params).then(({data}) => {
  2450. if (data && data.code === 0) {
  2451. this.projectPartList = data.rows
  2452. this.total = data.total
  2453. this.projectPartList.forEach(val => {
  2454. // 回显选中的产品
  2455. if (projectPartList.includes(val.testPartNo)) {
  2456. this.$nextTick(() => this.$refs.projectPartTable.toggleRowSelection(val, true))
  2457. }
  2458. })
  2459. } else {
  2460. this.$message.error(data.msg)
  2461. }
  2462. this.queryLoading = false
  2463. }).catch(()=>{
  2464. this.queryLoading = false
  2465. })
  2466. },
  2467. /**
  2468. * 确认多选产品
  2469. */
  2470. confirmProjectPart() {
  2471. if (this.projectPartListSelections.length === 0) {
  2472. // 先清空缓存选中
  2473. this.$nextTick(() => this.$refs.projectPartTable.clearSelection())
  2474. // 拿到选中的产品编号
  2475. this.modalData.testPartNo = ''
  2476. this.modalData.partName = ''
  2477. return
  2478. }
  2479. this.modalData.testPartNo = ''
  2480. this.modalData.partName = ''
  2481. for (let i = 0; i < this.projectPartListSelections.length; i++) {
  2482. this.modalData.testPartNo = this.modalData.testPartNo + ";" + this.projectPartListSelections[i].testPartNo
  2483. this.modalData.partName = this.modalData.partName + ";" + this.projectPartListSelections[i].partName
  2484. }
  2485. this.modalData.testPartNo = this.modalData.testPartNo.substring(1)
  2486. this.modalData.partName = this.modalData.partName.substring(1)
  2487. },
  2488. /**
  2489. * 客户信息新增/编辑
  2490. */
  2491. saveData() {
  2492. this.$refs.saveDataForm.validate((valid) => {
  2493. if (!valid) {
  2494. if (this.modalData.customerNo === '' || this.modalData.customerNo == null) {
  2495. this.$message.warning('请选择客户编码!')
  2496. return
  2497. }
  2498. if (this.modalData.customerDesc === '' || this.modalData.customerDesc == null) {
  2499. this.$message.warning('请选择客户名称!')
  2500. return
  2501. }
  2502. if (this.modalData.projectId === '' || this.modalData.projectId == null) {
  2503. this.$message.warning('请选择项目编码!')
  2504. return
  2505. }
  2506. if (this.modalData.projectName === '' || this.modalData.projectName == null) {
  2507. this.$message.warning('请选择项目名称!')
  2508. return
  2509. }
  2510. if (this.modalData.quoter === '' || this.modalData.quoter == null) {
  2511. this.$message.warning('请选择报价专员编码!')
  2512. return
  2513. }
  2514. if (this.modalData.quoterName === '' || this.modalData.quoterName == null) {
  2515. this.$message.warning('请选择报价专员名称!')
  2516. return
  2517. }
  2518. if (this.modalData.priorityLevel === '' || this.modalData.priorityLevel == null) {
  2519. this.$message.warning('请选择优先等级!')
  2520. return
  2521. }
  2522. if (this.modalData.requiredCompletionDate === '' || this.modalData.requiredCompletionDate == null) {
  2523. this.$message.warning('请输入要求完成日期!')
  2524. return
  2525. }
  2526. if (this.modalData.deliveryTerms === '' || this.modalData.deliveryTerms == null) {
  2527. this.$message.warning('请选择Delivery Terms!')
  2528. return
  2529. }
  2530. } else {
  2531. if ((this.modalData.tracker === '' || this.modalData.tracker == null) && (this.modalData.sourcing === 'Y' || this.modalData.sourcing === '0' || this.modalData.sourcing === 0)) {
  2532. this.$message.warning('请选择采购专员编码!')
  2533. return
  2534. }
  2535. if ((this.modalData.trackerName === '' || this.modalData.trackerName == null) && (this.modalData.sourcing === 'Y' || this.modalData.sourcing === '0' || this.modalData.sourcing === 0)) {
  2536. this.$message.warning('请选择采购专员名称!')
  2537. return
  2538. }
  2539. if (this.projectPartListSelections.length === 0) {
  2540. this.$message.warning('请选择物料信息!')
  2541. return
  2542. }
  2543. this.confirmProjectPart();
  2544. if (this.modalData.flag === '1') {
  2545. this.assertProjectCompleted(this.modalData.projectId, '新增询价').then(() => {
  2546. this.saveLoading = true
  2547. quotationInformationSave(this.modalData).then(({data}) => {
  2548. this.saveLoading = false
  2549. if (data && data.code === 0) {
  2550. this.modalFlag = false;
  2551. this.searchData.quotationBatchNo = data.quotationBatchNo
  2552. this.$message.success('操作成功')
  2553. this.getDataList()
  2554. } else {
  2555. this.$message(data.msg)
  2556. }
  2557. }).catch(() => {
  2558. this.saveLoading = false
  2559. })
  2560. }).catch((msg) => {
  2561. this.$message.warning(typeof msg === 'string' ? msg : '校验项目状态失败')
  2562. })
  2563. } else {
  2564. quotationInformationEdit(this.modalData).then(({data}) => {
  2565. if (data && data.code === 0) {
  2566. this.getDataList()
  2567. this.modalFlag = false
  2568. this.$message({
  2569. message: '操作成功',
  2570. type: 'success',
  2571. duration: 1500,
  2572. onClose: () => {
  2573. }
  2574. })
  2575. } else {
  2576. this.$alert(data.msg, '错误', {
  2577. confirmButtonText: '确定'
  2578. })
  2579. }
  2580. })
  2581. }
  2582. }
  2583. })
  2584. },
  2585. /**
  2586. * 询价信息删除
  2587. */
  2588. delModal() {
  2589. if (this.quotationSelections.length === 0) {
  2590. this.$message.warning('请勾选要删除的询价信息!')
  2591. return
  2592. }
  2593. for (let i = 0; i < this.quotationSelections.length; i++) {
  2594. let row = this.quotationSelections[i]
  2595. if (row.quotationStatus !== '草稿'){
  2596. this.$message.warning(row.quotationNo+"不是草稿状态,不能删除!")
  2597. return
  2598. }
  2599. }
  2600. this.$confirm(`是否删除这 ` + this.quotationSelections.length + ` 条询价信息?`, '提示', {
  2601. confirmButtonText: '确定',
  2602. cancelButtonText: '取消',
  2603. type: 'warning'
  2604. }).then(() => {
  2605. let tempData = {
  2606. informationList: this.quotationSelections
  2607. }
  2608. quotationInformationDelete(tempData).then(({data}) => {
  2609. if (data && data.code === 0) {
  2610. this.getDataList()
  2611. this.quotationSelections = []
  2612. this.$message({
  2613. message: '操作成功',
  2614. type: 'success',
  2615. duration: 1500,
  2616. onClose: () => {
  2617. }
  2618. })
  2619. } else {
  2620. this.$alert(data.msg, '错误', {
  2621. confirmButtonText: '确定'
  2622. })
  2623. }
  2624. })
  2625. })
  2626. },
  2627. // ======== 列表操作方法 ========
  2628. /**
  2629. * 单机选中询价信息
  2630. * @param row
  2631. */
  2632. quotationClickRow(row) {
  2633. // this.$refs.quotationTable.toggleRowSelection(row)
  2634. this.quotationCurrentRow = {
  2635. ...row
  2636. }
  2637. this.quotationDetailData = row;
  2638. },
  2639. getPriceCheckProperties() {
  2640. if (!this.quotationCurrentRow.site || !this.quotationCurrentRow.quotationBatchNo){
  2641. return
  2642. }
  2643. let params = {
  2644. site: this.quotationCurrentRow.site,
  2645. quotationNo: this.quotationCurrentRow.quotationBatchNo
  2646. }
  2647. getPriceCheckPropertiesList(params).then(({data}) => {
  2648. if (data && data.code === 0) {
  2649. this.priceCheckPropertiesList = data.rows
  2650. } else {
  2651. this.$message.warning(data.msg)
  2652. }
  2653. }).catch((error) => {
  2654. this.$message.error(error)
  2655. })
  2656. },
  2657. /**
  2658. * 复选询价信息
  2659. */
  2660. selectionQuotation(val) {
  2661. this.quotationSelections = val
  2662. this.$refs.selectDiv.setLengthselected(this.quotationSelections.length)
  2663. },
  2664. closeProcessModal() {
  2665. const approvedRows = this.quotationSelections.filter(row => row.quotationStatus === '审批中')
  2666. if (approvedRows.length === 0) {
  2667. this.$message.warning('请勾选状态为"审批中"的单据!')
  2668. return
  2669. }
  2670. this.$confirm(`确定关闭这 ${approvedRows.length} 条询价申请的OA流程?关闭后状态将变为"草稿"。`, '流程关闭', {
  2671. confirmButtonText: '确定',
  2672. cancelButtonText: '取消',
  2673. type: 'warning'
  2674. }).then(() => {
  2675. closeProcess({
  2676. site: this.$store.state.user.site,
  2677. documentNos: approvedRows.map(row => row.quotationBatchNo),
  2678. documentType: 'QUOTATION'
  2679. }).then(({data}) => {
  2680. if (data && data.code === 0) {
  2681. this.$message.success('流程关闭成功')
  2682. this.getDataList()
  2683. } else {
  2684. this.$message.error(data.msg)
  2685. }
  2686. }).catch(err => {
  2687. this.$message.error(err.message || '流程关闭失败')
  2688. })
  2689. }).catch(() => {})
  2690. },
  2691. // ======== 询价结果相关方法 ========
  2692. /**
  2693. * 封装录入方法
  2694. */
  2695. packQuotationResultModal() {
  2696. // 重置对象
  2697. this.enterResultData = {
  2698. site: this.$store.state.user.site,
  2699. quotationNo: '',
  2700. actualityQuotationDate: new Date(),
  2701. quotationResultInformation: '',
  2702. quotationResultStatus: 'E',
  2703. fileContentList: [],
  2704. updateBy: this.$store.state.user.name
  2705. }
  2706. // 获得选中的询价号
  2707. // if (this.quotationSelections.length > 0) {
  2708. // this.quotationSelections.forEach(val => {
  2709. // this.enterResultData.quotationNo += ';' + val.quotationNo
  2710. // })
  2711. // this.enterResultData.quotationNo = this.enterResultData.quotationNo.substring(1)
  2712. // } else {
  2713. // this.enterResultData.quotationNo = this.quotationCurrentRow.quotationNo
  2714. // }
  2715. this.enterResultData.quotationNo = this.quotationCurrentRow.quotationNo
  2716. // // 获得这些询价号的全部附件
  2717. // this.getFileContentList()
  2718. this.enterResultModalFlag = true
  2719. },
  2720. /**
  2721. * 录入询价结果
  2722. */
  2723. quotationResultModal() {
  2724. // // 如果有选中询价单
  2725. // if (this.quotationSelections != null && this.quotationSelections.length > 0) {
  2726. // let tempData = {
  2727. // currentStatus: 'C',
  2728. // informationList: this.quotationSelections,
  2729. // }
  2730. // // 检查询价单状态
  2731. // checkQuotationStatus(tempData).then(({data}) => {
  2732. // if (data && data.code === 0) {
  2733. // if (data.flag === 1) { // 状态一致
  2734. // this.packQuotationResultModal()
  2735. // } else { // 状态不同
  2736. // this.$message.warning('选中的询价单进度有误,请确认!')
  2737. // }
  2738. // } else {
  2739. // this.$alert(data.msg, '错误', {
  2740. // confirmButtonText: '确定'
  2741. // })
  2742. // }
  2743. // })
  2744. // } else { // 没有选中询价单,则根据当前点击行询价单操作
  2745. // this.packQuotationResultModal()
  2746. // }
  2747. this.packQuotationResultModal()
  2748. },
  2749. /**
  2750. * 保存询价结果
  2751. */
  2752. saveQuotationResult() {
  2753. if (this.enterResultData.actualityQuotationDate === '' || this.enterResultData.actualityQuotationDate == null) {
  2754. this.$message.warning('请选择实际询价日期!')
  2755. return
  2756. }
  2757. if (this.enterResultData.quotationResultInformation === '' || this.enterResultData.quotationResultInformation == null) {
  2758. this.$message.warning('请填写询价结果信息!')
  2759. return
  2760. }
  2761. // if (this.quotationSelections.length > 1) {
  2762. // this.$confirm(`是否录入多条询价结果?`, '提示', {
  2763. // confirmButtonText: '确定',
  2764. // cancelButtonText: '取消',
  2765. // type: 'warning'
  2766. // }).then(() => {
  2767. // saveQuotationResult(this.enterResultData).then(({data}) => {
  2768. // if (data && data.code === 0) {
  2769. // this.getDataList()
  2770. // this.enterResultModalFlag = false
  2771. // this.$message({
  2772. // message: '操作成功',
  2773. // type: 'success',
  2774. // duration: 1500,
  2775. // onClose: () => {
  2776. // }
  2777. // })
  2778. // } else {
  2779. // this.$alert(data.msg, '错误', {
  2780. // confirmButtonText: '确定'
  2781. // })
  2782. // }
  2783. // })
  2784. // }).catch(() => {
  2785. // })
  2786. // } else {
  2787. saveQuotationResult(this.enterResultData).then(({data}) => {
  2788. if (data && data.code === 0) {
  2789. this.getDataList()
  2790. this.enterResultModalFlag = false
  2791. this.$message({
  2792. message: '操作成功',
  2793. type: 'success',
  2794. duration: 1500,
  2795. onClose: () => {
  2796. }
  2797. })
  2798. } else {
  2799. this.$alert(data.msg, '错误', {
  2800. confirmButtonText: '确定'
  2801. })
  2802. }
  2803. })
  2804. // }
  2805. },
  2806. /**
  2807. * 封装提交方法
  2808. */
  2809. packSubmitQuotationModal() {
  2810. this.submitResultData = {
  2811. site: this.$store.state.user.site,
  2812. quotationNo: '',
  2813. actualitySubmissionDate: new Date(),
  2814. submissionMethod: '',
  2815. submissionRemark: '',
  2816. quotationResultStatus: 'S',
  2817. updateBy: this.$store.state.user.name
  2818. }
  2819. // 获得选中的询价号
  2820. // if (this.quotationSelections.length > 0) {
  2821. // this.quotationSelections.forEach(val => {
  2822. // this.submitResultData.quotationNo += ';' + val.quotationNo
  2823. // })
  2824. // this.submitResultData.quotationNo = this.submitResultData.quotationNo.substring(1)
  2825. // } else {
  2826. // this.submitResultData.quotationNo = this.quotationCurrentRow.quotationNo
  2827. // }
  2828. this.submitResultData.quotationNo = this.quotationCurrentRow.quotationNo
  2829. this.submitResultModalFlag = true
  2830. },
  2831. /**
  2832. * 提交客户询价
  2833. */
  2834. submitQuotationModal() {
  2835. // // 如果有选中询价单
  2836. // if (this.quotationSelections != null && this.quotationSelections.length > 0) {
  2837. // let tempData = {
  2838. // currentStatus: 'E',
  2839. // informationList: this.quotationSelections,
  2840. // }
  2841. // // 检查询价单状态
  2842. // checkQuotationStatus(tempData).then(({data}) => {
  2843. // if (data && data.code === 0) {
  2844. // if (data.flag === 1) { // 状态一致
  2845. // this.packSubmitQuotationModal()
  2846. // } else { // 状态不同
  2847. // this.$message.warning('选中的询价单进度有误,请确认!')
  2848. // }
  2849. // } else {
  2850. // this.$alert(data.msg, '错误', {
  2851. // confirmButtonText: '确定'
  2852. // })
  2853. // }
  2854. // })
  2855. // } else { // 没有选中询价单,则根据当前点击行询价单操作
  2856. // this.packSubmitQuotationModal()
  2857. // }
  2858. this.packSubmitQuotationModal()
  2859. },
  2860. /**
  2861. * 保存提交结果
  2862. */
  2863. saveSubmitResult() {
  2864. if (this.submitResultData.actualitySubmissionDate === '' || this.submitResultData.actualitySubmissionDate == null) {
  2865. this.$message.warning('请选择实际提交客户日期!')
  2866. return
  2867. }
  2868. if (this.submitResultData.submissionMethod === '' || this.submitResultData.submissionMethod == null) {
  2869. this.$message.warning('请选择提交方式!')
  2870. return
  2871. }
  2872. // if (this.quotationSelections.length > 1) {
  2873. // this.$confirm(`是否提交多条客户询价?`, '提示', {
  2874. // confirmButtonText: '确定',
  2875. // cancelButtonText: '取消',
  2876. // type: 'warning'
  2877. // }).then(() => {
  2878. // saveSubmitResult(this.submitResultData).then(({data}) => {
  2879. // if (data && data.code === 0) {
  2880. // this.getDataList()
  2881. // this.submitResultModalFlag = false
  2882. // this.$message({
  2883. // message: '操作成功',
  2884. // type: 'success',
  2885. // duration: 1500,
  2886. // onClose: () => {
  2887. // }
  2888. // })
  2889. // } else {
  2890. // this.$alert(data.msg, '错误', {
  2891. // confirmButtonText: '确定'
  2892. // })
  2893. // }
  2894. // })
  2895. // }).catch(() => {
  2896. // })
  2897. // } else {
  2898. saveSubmitResult(this.submitResultData).then(({data}) => {
  2899. if (data && data.code === 0) {
  2900. this.getDataList()
  2901. this.submitResultModalFlag = false
  2902. this.$message({
  2903. message: '操作成功',
  2904. type: 'success',
  2905. duration: 1500,
  2906. onClose: () => {
  2907. }
  2908. })
  2909. } else {
  2910. this.$alert(data.msg, '错误', {
  2911. confirmButtonText: '确定'
  2912. })
  2913. }
  2914. })
  2915. // }
  2916. },
  2917. /**
  2918. * 封装回复方法
  2919. */
  2920. packCustomerResponseModal() {
  2921. this.customerResponseData = {
  2922. site: this.$store.state.user.site,
  2923. quotationNo: '',
  2924. actualityReplyDate: new Date(),
  2925. confirmResults: '接受',
  2926. confirmBy: '',
  2927. confirmInformation: '',
  2928. quotationResultStatus: 'R',
  2929. updateBy: this.$store.state.user.name
  2930. }
  2931. // 获得选中的询价号
  2932. // if (this.quotationSelections.length > 0) {
  2933. // this.quotationSelections.forEach(val => {
  2934. // this.customerResponseData.quotationNo += ';' + val.quotationNo
  2935. // })
  2936. // this.customerResponseData.quotationNo = this.customerResponseData.quotationNo.substring(1)
  2937. // } else {
  2938. // this.customerResponseData.quotationNo = this.quotationCurrentRow.quotationNo
  2939. // }
  2940. this.customerResponseData.quotationNo = this.quotationCurrentRow.quotationNo
  2941. this.customerResponseModalFlag = true
  2942. },
  2943. /**
  2944. * 客户回复
  2945. */
  2946. customerResponseModal() {
  2947. // // 如果有选中询价单
  2948. // if (this.quotationSelections != null && this.quotationSelections.length > 0) {
  2949. // let tempData = {
  2950. // currentStatus: 'S',
  2951. // informationList: this.quotationSelections,
  2952. // }
  2953. // // 检查询价单状态
  2954. // checkQuotationStatus(tempData).then(({data}) => {
  2955. // if (data && data.code === 0) {
  2956. // if (data.flag === 1) { // 状态一致
  2957. // this.packCustomerResponseModal()
  2958. // } else { // 状态不同
  2959. // this.$message.warning('选中的询价单进度有误,请确认!')
  2960. // }
  2961. // } else {
  2962. // this.$alert(data.msg, '错误', {
  2963. // confirmButtonText: '确定'
  2964. // })
  2965. // }
  2966. // })
  2967. // } else { // 没有选中询价单,则根据当前点击行询价单操作
  2968. // this.packCustomerResponseModal()
  2969. // }
  2970. this.packCustomerResponseModal()
  2971. },
  2972. /**
  2973. * 保存客户回复
  2974. */
  2975. saveCustomerResponse() {
  2976. if (this.customerResponseData.actualityReplyDate === '' || this.customerResponseData.actualityReplyDate == null) {
  2977. this.$message.warning('请选择实际回复日期!')
  2978. return
  2979. }
  2980. if (this.customerResponseData.confirmResults === '' || this.customerResponseData.confirmResults == null) {
  2981. this.$message.warning('请选择客户确认结果!')
  2982. return
  2983. }
  2984. if (this.customerResponseData.confirmBy === '' || this.customerResponseData.confirmBy == null) {
  2985. this.$message.warning('请填写客户确认人!')
  2986. return
  2987. }
  2988. // if (this.quotationSelections.length > 1) {
  2989. // this.$confirm(`是否提交多条客户回复?`, '提示', {
  2990. // confirmButtonText: '确定',
  2991. // cancelButtonText: '取消',
  2992. // type: 'warning'
  2993. // }).then(() => {
  2994. // saveCustomerResponse(this.customerResponseData).then(({data}) => {
  2995. // if (data && data.code === 0) {
  2996. // this.getDataList()
  2997. // this.customerResponseModalFlag = false
  2998. // this.$message({
  2999. // message: '操作成功',
  3000. // type: 'success',
  3001. // duration: 1500,
  3002. // onClose: () => {
  3003. // }
  3004. // })
  3005. // } else {
  3006. // this.$alert(data.msg, '错误', {
  3007. // confirmButtonText: '确定'
  3008. // })
  3009. // }
  3010. // })
  3011. // }).catch(() => {
  3012. // })
  3013. // } else {
  3014. saveCustomerResponse(this.customerResponseData).then(({data}) => {
  3015. if (data && data.code === 0) {
  3016. this.getDataList()
  3017. this.customerResponseModalFlag = false
  3018. this.$message({
  3019. message: '操作成功',
  3020. type: 'success',
  3021. duration: 1500,
  3022. onClose: () => {
  3023. }
  3024. })
  3025. } else {
  3026. this.$alert(data.msg, '错误', {
  3027. confirmButtonText: '确定'
  3028. })
  3029. }
  3030. })
  3031. // }
  3032. },
  3033. // ======== 询价单附件的相关方法 ========
  3034. /**
  3035. * 获取询价单附件列表
  3036. */
  3037. getFileContentData() {
  3038. let currentData = {
  3039. orderRef1: this.$store.state.user.site,
  3040. orderRef2: this.quotationCurrentRow.quotationNo
  3041. }
  3042. getFileContentList(currentData).then(({data}) => {
  3043. if (data && data.code === 0) {
  3044. this.fileContentList = data.rows
  3045. } else {
  3046. this.fileContentList = []
  3047. }
  3048. })
  3049. },
  3050. // /**
  3051. // * 获得这些询价号的全部附件
  3052. // */
  3053. // getFileContentList () {
  3054. // let currentData = {
  3055. // orderRef1: this.$store.state.user.site,
  3056. // orderRef2: this.enterResultData.quotationNo
  3057. // }
  3058. // getFileContentList(currentData).then(({data}) => {
  3059. // if (data && data.code === 0) {
  3060. // this.enterResultData.fileContentList = data.rows
  3061. // } else {
  3062. // this.enterResultData.fileContentList = []
  3063. // }
  3064. // })
  3065. // },
  3066. /**
  3067. * 上传文件
  3068. */
  3069. uploadFile() {
  3070. let currentData = {
  3071. titleCon: '询价附件上传',
  3072. site: this.$store.state.user.site,
  3073. createBy: this.$store.state.user.name,
  3074. quotationNo: this.enterResultData.quotationNo,
  3075. fileRemark: '',
  3076. folder: 'quotationFile',
  3077. // options: []
  3078. }
  3079. // let num = 0
  3080. // let arr = this.enterResultData.quotationNo.split(';')
  3081. // arr.forEach(val => {
  3082. // currentData.options.push({key: num++, value: val})
  3083. // })
  3084. //打开组件 去做新增业务
  3085. this.$nextTick(() => {
  3086. this.$refs.quotationUploadFile.init(currentData);
  3087. })
  3088. },
  3089. /**
  3090. * 文件删除
  3091. */
  3092. deleteFile(row) {
  3093. this.$confirm('确定要删除此文件?', '提示', {
  3094. confirmButtonText: '确定',
  3095. cancelButtonText: '取消',
  3096. type: 'warning'
  3097. }).then(() => {
  3098. deleteQuotationFile(row).then(({data}) => {
  3099. if (data && data.code === 0) {
  3100. this.getFileContentList();
  3101. this.$message({
  3102. message: '操作成功',
  3103. type: 'success',
  3104. duration: 1500,
  3105. onClose: () => {
  3106. }
  3107. })
  3108. } else {
  3109. this.$alert(data.msg, '错误', {
  3110. confirmButtonText: '确定'
  3111. })
  3112. }
  3113. })
  3114. })
  3115. },
  3116. /**
  3117. * 文件下载
  3118. */
  3119. downloadFile(row) {
  3120. downLoadQuotationFile(row).then(({data}) => {
  3121. // 不限制文件下载类型
  3122. const blob = new Blob([data], {type: 'application/octet-stream;charset=utf-8'})
  3123. // 下载文件名称
  3124. const fileName = row.fileName
  3125. // a标签下载
  3126. const linkNode = document.createElement('a')
  3127. linkNode.download = fileName // a标签的download属性规定下载文件的名称
  3128. linkNode.style.display = 'none'
  3129. linkNode.href = URL.createObjectURL(blob) // 生成一个Blob URL
  3130. document.body.appendChild(linkNode)
  3131. linkNode.click() // 模拟在按钮上的一次鼠标单击
  3132. URL.revokeObjectURL(linkNode.href) // 释放URL 对象
  3133. document.body.removeChild(linkNode)
  3134. })
  3135. },
  3136. // 双击选择负责人
  3137. getContactData(row) {
  3138. this.modalData.customerResponsiblePerson = row.contactName
  3139. this.modalData.customerResponsiblePersonPhone = row.contactPhoneNumber1
  3140. this.contactModelFlag = false
  3141. },
  3142. /**
  3143. * 获取该客户的客户负责人
  3144. */
  3145. getCustomerContactList() {
  3146. let tempData = {
  3147. site: this.$store.state.user.site,
  3148. customerNo: this.modalData.customerNo
  3149. }
  3150. customerContactSearch(tempData).then(({data}) => {
  3151. if (data && data.code === 0) {
  3152. this.contactList = data.rows
  3153. this.contactModelFlag = true
  3154. } else {
  3155. this.contactList = []
  3156. }
  3157. });
  3158. },
  3159. // ======== chooseList相关方法 ========
  3160. /**
  3161. * 获取基础数据列表S
  3162. */
  3163. getBaseList(val, type) {
  3164. this.tagNo = val
  3165. this.tagNo1 = type
  3166. this.$nextTick(() => {
  3167. let strVal = ''
  3168. let conSql = ''
  3169. if (val === 102) {
  3170. if (type === 1) {
  3171. strVal = this.modalData.customerNo
  3172. conSql = " order by Customer_no "
  3173. }
  3174. }
  3175. if (val === 103) {
  3176. if (type === 1) {
  3177. strVal = this.modalData.tracker
  3178. }
  3179. if (type === 2) {
  3180. strVal = this.modalData.quoter
  3181. }
  3182. }
  3183. if (val === 104) {
  3184. if (type === 1) {
  3185. strVal = this.modalData.projectId
  3186. }
  3187. }
  3188. if (val === 2000) {
  3189. strVal = this.modalData.trackerName
  3190. conSql = " and b.site = '" + this.$store.state.user.site + "'"
  3191. }
  3192. if (val === 2002) {
  3193. strVal = this.modalData.quoterName
  3194. conSql = " and b.site = '" + this.$store.state.user.site + "'"
  3195. }
  3196. this.$refs.baseList.init(val, strVal, conSql)
  3197. })
  3198. },
  3199. /**
  3200. * 列表方法的回调
  3201. */
  3202. getBaseData(val) {
  3203. if (this.tagNo === 102) {
  3204. if (this.tagNo1 === 1) {
  3205. if (val.Customer_no === this.modalData.customerNo) {
  3206. return
  3207. }
  3208. this.modalData.customerNo = val.Customer_no
  3209. this.modalData.customerDesc = val.Customer_desc
  3210. this.modalData.projectId = ''
  3211. this.modalData.projectName = ''
  3212. this.projectPartList = []
  3213. }
  3214. }
  3215. if (this.tagNo === 103) {
  3216. if (this.tagNo1 === 1) {
  3217. this.modalData.tracker = val.username
  3218. this.modalData.trackerName = val.user_display
  3219. }
  3220. if (this.tagNo1 === 2) {
  3221. this.modalData.quoter = val.username
  3222. this.modalData.quoterName = val.user_display
  3223. }
  3224. }
  3225. if (this.tagNo === 104) {
  3226. if (this.tagNo1 === 1) {
  3227. this.modalData.projectId = val.project_id
  3228. this.modalData.projectName = val.project_name
  3229. }
  3230. }
  3231. if (this.tagNo === 2000) {
  3232. this.modalData.tracker = val.username
  3233. this.modalData.trackerName = val.user_display
  3234. }
  3235. if (this.tagNo === 2002) {
  3236. this.modalData.quoter = val.username
  3237. this.modalData.quoterName = val.user_display
  3238. }
  3239. },
  3240. // ======== 导出相关方法 ========
  3241. /**
  3242. * 导出excel
  3243. */
  3244. async createExportData() {
  3245. this.searchData.limit = -1
  3246. this.searchData.page = 1
  3247. await quotationInformationSearch(this.searchData).then(({data}) => {
  3248. this.resultList = data.page.list
  3249. })
  3250. return this.resultList
  3251. },
  3252. startDownload() {
  3253. this.exportLoading = true
  3254. },
  3255. finishDownload() {
  3256. this.exportLoading = false
  3257. },
  3258. fields() {
  3259. let json = '{'
  3260. this.columnList.forEach((item, index) => {
  3261. if (index == this.columnList.length - 1) {
  3262. json += '"' + item.columnLabel + '"' + ':' + '"' + item.columnProp + '"'
  3263. } else {
  3264. json += '"' + item.columnLabel + '"' + ':' + '"' + item.columnProp + '"' + ','
  3265. }
  3266. })
  3267. json += '}'
  3268. let s = eval('(' + json + ')')
  3269. return s
  3270. },
  3271. // 保存弹框关闭事件
  3272. closeSaveDataDialog() {
  3273. this.activeTab='part';
  3274. this.$refs.saveDataForm.resetFields(); // 先清空缓存选中
  3275. this.$nextTick(() => this.$refs.projectPartTable.clearSelection())
  3276. // 拿到选中的产品编号
  3277. this.modalData.testPartNo = ''
  3278. this.modalData.partName = ''
  3279. this.projectPartData = {
  3280. site: this.$store.state.user.site,
  3281. testPartNo: '',
  3282. partName: '',
  3283. projectId: '',
  3284. }
  3285. this.priceCheckDetail = JSON.parse(JSON.stringify(this.copyPriceCheckDetail))
  3286. if (this.modalData.flag === '1'){
  3287. this.$refs.saveDetailForm.resetFields();
  3288. this.projectPartDetailList = []
  3289. }
  3290. },
  3291. // 保存弹框打开事件
  3292. openSaveDataDialog() {
  3293. if (!this.modalData.projectId) {
  3294. this.projectPartList = [];
  3295. return
  3296. }
  3297. this.getProjectPartList()
  3298. },
  3299. // 查询searchProjectInfoList
  3300. searchProjectInfoList() {
  3301. this.projectList = [];
  3302. this.searchProjectData.customerId = this.modalData.customerNo
  3303. this.searchProjectData.status = ''
  3304. searchProjectInfoList(this.searchProjectData).then(({data}) => {
  3305. if (data && data.code === 0) {
  3306. this.projectList = (data.rows || []).filter(row => row.status === '审批中' || row.status === '已完成')
  3307. } else {
  3308. this.projectList = []
  3309. }
  3310. }).catch((error) => {
  3311. this.$message.error('查询项目信息失败')
  3312. })
  3313. },
  3314. closeProjectInfoDialog() {
  3315. this.$refs.closeProjectInfoForm.resetFields();
  3316. this.searchProjectData = {
  3317. site: this.$store.state.user.site,
  3318. projectId: undefined,
  3319. projectName: undefined,
  3320. customerId: undefined,
  3321. status: '',
  3322. }
  3323. },
  3324. projectClickRow(row) {
  3325. this.modalData.projectId = row.projectId
  3326. this.modalData.projectName = row.projectName
  3327. this.modalData.finalCustomerId = row.finalCustomerId
  3328. this.modalData.finalCustomerName = row.finalCustomerName
  3329. this.getProjectPartList()
  3330. this.chooseProjectListFlag = false
  3331. },
  3332. checkSelectable(row, index) {
  3333. if (this.modalData.flag === '1') {
  3334. return true
  3335. } else {
  3336. return false
  3337. }
  3338. },
  3339. rowStyle({row}) {
  3340. if (this.quotationCurrentRow.quotationNo === row.quotationNo) {
  3341. return {'background-color': '#E8F7F6', cursor: 'pointer'};
  3342. }
  3343. },
  3344. partRowStyle({row}) {
  3345. if (this.modalData.testPartNo === row.testPartNo) {
  3346. return {'background-color': '#E8F7F6', cursor: 'pointer'};
  3347. }
  3348. },
  3349. updateModalStatus(row, status) {
  3350. this.$confirm(`是否确认下达?`, '提示', {
  3351. confirmButtonText: '确定',
  3352. cancelButtonText: '取消',
  3353. type: 'warning'
  3354. }).then(() => {
  3355. this.$set(this.issueLoadingSet, row.quotationBatchNo, true)
  3356. let params = JSON.parse(JSON.stringify(row))
  3357. params.quotationResultStatus = status;
  3358. params.quotationStatus = '下达';
  3359. params.userName = this.$store.state.user.name
  3360. params.menuId = this.$route.meta.menuId
  3361. quotationInformationEditStatus(params).then(({data}) => {
  3362. if (data && data.code === 0) {
  3363. this.$message.success('询价单已下达')
  3364. this.getDataList()
  3365. } else {
  3366. this.$message.warning(data.msg)
  3367. }
  3368. }).catch((error) => {
  3369. this.$message.error(error)
  3370. }).finally(() => {
  3371. this.$set(this.issueLoadingSet, row.quotationBatchNo, false)
  3372. })
  3373. })
  3374. },
  3375. getPriceCheckDetailList(){
  3376. if (!this.quotationCurrentRow.site || !this.quotationCurrentRow.quotationBatchNo){
  3377. return
  3378. }
  3379. let params = {
  3380. site:this.quotationCurrentRow.site,
  3381. quotationNo:this.quotationCurrentRow.quotationNo
  3382. }
  3383. getPriceCheckDetailList(params).then(({data}) => {
  3384. if (data && data.code === 0){
  3385. this.priceCheckDetailList = data.rows
  3386. }else {
  3387. this.$message.warning(data.msg)
  3388. }
  3389. }).catch((error)=>{
  3390. this.$message.error(error)
  3391. })
  3392. },
  3393. // 同意提交
  3394. agreeSubmit () {
  3395. this.$confirm(`是否确认提交?`, '提示', {
  3396. confirmButtonText: '确定',
  3397. cancelButtonText: '取消',
  3398. type: 'warning'
  3399. }).then(() => {
  3400. if ((this.modalData.tracker === '' || this.modalData.tracker == null) && (this.modalData.sourcing === 'Y' || this.modalData.sourcing === '0' || this.modalData.sourcing === 0)) {
  3401. this.$message.warning('请选择采购专员编码!')
  3402. return
  3403. }
  3404. if ((this.modalData.trackerName === '' || this.modalData.trackerName == null) && (this.modalData.sourcing === 'Y' || this.modalData.sourcing === '0' || this.modalData.sourcing === 0)) {
  3405. this.$message.warning('请选择采购专员名称!')
  3406. return
  3407. }
  3408. this.modalData.nodeConclusion = 'Y'
  3409. this.submitData()
  3410. })
  3411. },
  3412. // 驳回提交
  3413. rejectSubmit () {
  3414. this.$confirm(`是否确认驳回?`, '提示', {
  3415. confirmButtonText: '确定',
  3416. cancelButtonText: '取消',
  3417. type: 'warning'
  3418. }).then(() => {
  3419. if ((this.modalData.tracker === '' || this.modalData.tracker == null) && this.modalData.sourcing === 'Y') {
  3420. this.$message.warning('请选择采购专员编码!')
  3421. return
  3422. }
  3423. if ((this.modalData.trackerName === '' || this.modalData.trackerName == null) && this.modalData.sourcing === 'Y') {
  3424. this.$message.warning('请选择采购专员名称!')
  3425. return
  3426. }
  3427. this.modalData.rejectOpinion = this.rejectOpinion
  3428. this.modalData.nodeConclusion = 'N'
  3429. this.submitData()
  3430. })
  3431. },
  3432. // 提交
  3433. submitData () {
  3434. const needValidateRequired = this.modalData.nodeConclusion === 'Y'
  3435. if (needValidateRequired && this.plmQuotationInformationArr) {
  3436. for (let i = 0; i < this.plmQuotationInformationArr.length; i++) {
  3437. if (!this.modalData[this.plmQuotationInformationArr[i].fieldId] && this.plmQuotationInformationArr[i].required === 'Y') {
  3438. this.$message.warning(this.plmQuotationInformationArr[i].fieldName + '不能为空!')
  3439. return
  3440. }
  3441. }
  3442. }
  3443. this.modalData.userName = this.$store.state.user.name
  3444. this.modalData.menuId = this.$route.meta.menuId
  3445. this.submitLoading = true
  3446. submitChange(this.modalData).then(({data}) => {
  3447. if (data && data.code === 0) {
  3448. this.getDataList()
  3449. this.$message({message: '操作成功', type: 'success'})
  3450. this.rejectVisible = false
  3451. this.submitModalFlag = false
  3452. this.modalFlag = false
  3453. } else {
  3454. this.$alert(data.msg, '错误', {
  3455. confirmButtonText: '确定'
  3456. })
  3457. }
  3458. }).finally(() => {
  3459. this.submitLoading = false
  3460. })
  3461. },
  3462. // 获取流程的配置权限
  3463. async getNodeAuthority (row) {
  3464. let tempData = {
  3465. site: row.site,
  3466. stepId: row.stepId,
  3467. menuId: this.$route.meta.menuId
  3468. }
  3469. await getNodeAuthority(tempData).then(({data}) => {
  3470. if (data && data.code === 0) {
  3471. this.plmQuotationInformationArr = data.rows.plm_quotation_information
  3472. }
  3473. })
  3474. },
  3475. handleQueryCustomer(){
  3476. let params = {
  3477. site:this.$store.state.user.site,
  3478. customerNo:this.modalData.customerNo
  3479. }
  3480. queryCustomer(params).then(({data})=>{
  3481. if (data && data.code === 0 ) {
  3482. if (data.rows && data.rows.length === 1){
  3483. this.modalData.customerDesc = data.rows[0].customerDesc
  3484. }else {
  3485. this.modalData.customerDesc = ''
  3486. }
  3487. }else {
  3488. this.$message.warning(data.msg)
  3489. }
  3490. }).catch((error)=>{
  3491. this.$message.error(error)
  3492. })
  3493. },
  3494. assertProjectCompleted(projectId, actionText) {
  3495. return new Promise((resolve, reject) => {
  3496. if (!projectId) {
  3497. reject('项目号不能为空')
  3498. return
  3499. }
  3500. queryProjectByCustomer({
  3501. site: this.$store.state.user.site,
  3502. projectId
  3503. }).then(({data}) => {
  3504. if (!(data && data.code === 0 && data.rows && data.rows.length === 1)) {
  3505. reject('未找到对应项目信息')
  3506. return
  3507. }
  3508. if (data.rows[0].status !== '审批中' && data.rows[0].status !== '已完成') {
  3509. reject('仅项目单据状态为审批中或已完成时允许' + actionText + ',当前状态:' + data.rows[0].status)
  3510. return
  3511. }
  3512. resolve(data.rows[0])
  3513. }).catch((error) => {
  3514. reject(error)
  3515. })
  3516. })
  3517. },
  3518. handleQueryProjectByCustomer(){
  3519. let params = {
  3520. site:this.$store.state.user.site,
  3521. customerId:this.modalData.customerNo,
  3522. projectId:this.modalData.projectId
  3523. }
  3524. queryProjectByCustomer(params).then(({data})=>{
  3525. if (data && data.code === 0 ){
  3526. if (data.rows && data.rows.length === 1){
  3527. if (this.modalData.flag === '1' && data.rows[0].status !== '审批中' && data.rows[0].status !== '已完成') {
  3528. this.$message.warning('仅项目单据状态为审批中或已完成时允许新增询价,当前状态:' + data.rows[0].status)
  3529. this.modalData.projectId = ''
  3530. this.modalData.projectName = ''
  3531. this.modalData.finalCustomerId = ''
  3532. this.modalData.finalCustomerName = ''
  3533. return
  3534. }
  3535. this.modalData.projectName = data.rows[0].projectName
  3536. this.modalData.finalCustomerId = data.rows[0].finalCustomerId
  3537. this.modalData.finalCustomerName = data.rows[0].finalCustomerName
  3538. }else {
  3539. this.modalData.projectName = ''
  3540. this.modalData.finalCustomerId = ''
  3541. this.modalData.finalCustomerName = ''
  3542. }
  3543. }else {
  3544. this.$message.warning(data.msg)
  3545. }
  3546. }).catch((error)=>{
  3547. this.$message.error(error)
  3548. })
  3549. },
  3550. // 查询审批信息
  3551. getApprovalList () {
  3552. let tempData = {
  3553. site: this.$store.state.user.site,
  3554. menuId: this.$route.meta.menuId,
  3555. documentNo: this.quotationCurrentRow.quotationBatchNo,
  3556. }
  3557. getApprovalList(tempData).then(({data}) => {
  3558. if (data && data.code === 0) {
  3559. this.approvalList = data.rows
  3560. } else {
  3561. this.approvalList = []
  3562. }
  3563. })
  3564. },
  3565. handleRouter(row){
  3566. this.modalFlag = false
  3567. if (this.$router.resolve(`/part-partInformation`).resolved.name === '404') {
  3568. this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',})
  3569. } else {
  3570. this.$router.push({name:`part-partInformation`,params:{partNo:row.testPartNo},})
  3571. }
  3572. },
  3573. updateDetailModal(row){
  3574. this.detailVisible = true
  3575. this.updateModal(row)
  3576. },
  3577. clearModalData(field){
  3578. this.modalData[field] = ''
  3579. },
  3580. handleSizeChange(val){
  3581. this.size = val
  3582. this.getProjectPartList();
  3583. },
  3584. handleCurrentChange(val){
  3585. this.no = val
  3586. this.getProjectPartList();
  3587. },
  3588. closeRejectForm(){
  3589. this.rejectVisible = false
  3590. this.rejectOpinion = ''
  3591. },
  3592. searchByAnyField(params){
  3593. params.site = this.$store.state.user.site
  3594. params.menuId = '102001'
  3595. params.no = this.pageIndex
  3596. params.size = this.pageSize
  3597. params.userId = this.$store.state.user.id.toString()
  3598. params.createBy = this.$store.state.user.name
  3599. quotationInformationSearchByAnyField(params).then(({data})=>{
  3600. if (data && data.code === 0){
  3601. this.dataList = data.page.list
  3602. this.totalPage = data.page.totalCount
  3603. }else {
  3604. this.$message.warning(data.msg)
  3605. }
  3606. }).catch((error)=>{
  3607. this.$message.error(error)
  3608. })
  3609. this.filterSearchData = params
  3610. this.isFilterSearch = true
  3611. this.filterVisible = false
  3612. },
  3613. }
  3614. }
  3615. </script>
  3616. <style scoped>
  3617. /deep/ .customer-tab .el-tabs__content {
  3618. padding: 0px !important;
  3619. height: 459px;
  3620. }
  3621. /deep/ .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner {
  3622. background-color: #17B3A3;
  3623. border-color: #17B3A3;
  3624. }
  3625. /deep/ .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after {
  3626. border-color: #FFF
  3627. }
  3628. /deep/ .el-form-item--medium .el-form-item__content{
  3629. height: auto;
  3630. }
  3631. </style>