Просмотр исходного кода

商用信息单 修改是否关闭状态

zhouhao 2 лет назад
Родитель
Сommit
c918b944e3
1 измененных файлов с 13 добавлено и 29 удалено
  1. 13 29
      src/views/supply/engin/engin_list.vue

+ 13 - 29
src/views/supply/engin/engin_list.vue

@@ -101,7 +101,7 @@
                 </el-col>
                 <el-col :xs="24" :sm="12" :lg="6">
                   <el-form-item label="是否直调" prop="isDirectTransfer">
-                    <el-select v-model="screenForm.isDirectTransfer" placeholder="选择是否直" style="width: 100%">
+                    <el-select v-model="screenForm.isDirectTransfer" placeholder="选择是否直" clearable style="width: 100%">
                       <el-option :value="null" label="默认"></el-option>
                       <el-option v-for="item in transfer" :key="item.value" :label="item.label" :value="item.value">
                       </el-option>
@@ -109,13 +109,11 @@
                   </el-form-item>
                 </el-col>
                 <el-col :xs="24" :sm="12" :lg="6">
-                  <el-form-item label="是否关闭" prop="examineStatus">
-                    <el-select v-model="screenForm.examineStatus" placeholder="是否关闭" style="width: 100%">
-                      <el-option  v-if="screenForm.status != 'OK'"  label="是" value="CLOSE">
+                  <el-form-item label="是否关闭" prop="isClose">
+                    <el-select v-model="screenForm.isClose" placeholder="是否关闭" clearable style="width: 100%">
+                      <el-option    label="是" :value="true">
                       </el-option>
-                      <el-option  v-else  label="是" value="OK,CLOSE">
-                      </el-option>
-                      <el-option   label="否" :value="null">
+                      <el-option   label="否" :value="false">
                       </el-option>
 
                     </el-select>
@@ -536,6 +534,7 @@ export default {
         salesMan: '',
         model: '',
         orderDate: '',
+        isClose:'',
         isDirectTransfer: null,
         examineStatus:''
       },
@@ -572,16 +571,7 @@ export default {
       return JSON.parse(localStorage.getItem('supply_user')).isCustomer
     },
     exParams() {
-      let  status = ''
-      if (this.screenForm.examineStatus){
-        if (this.screenForm.status!='OK'){
-          status += this.screenForm.status+ ',' +this.screenForm.examineStatus
-        }else {
-          status = this.screenForm.examineStatus
-        }
-      }else {
-        status = this.screenForm.status
-      }
+   
       return {
         enginInfoNo: this.screenForm.orderNum,
         projectNo: this.screenForm.enginNum,
@@ -595,7 +585,8 @@ export default {
         useUnit: this.screenForm.company,
         createName: this.screenForm.createMan,
         confirmName: this.screenForm.examineMan,
-        examineStatus: status,
+        examineStatus: this.screenForm.examineStatus,
+        isClose:this.screenForm.isClose,
         serviceId: this.screenForm.salesMan,
         specification: this.screenForm.model,
         isDirectTransfer: this.screenForm.isDirectTransfer
@@ -652,16 +643,7 @@ export default {
     // 查询列表
     getList() {
       this.listLoading = true
-      let  status = ''
-      if (this.screenForm.examineStatus ){
-        if (this.screenForm.status!='OK' && this.screenForm.status){
-          status += this.screenForm.status+ ',' +this.screenForm.examineStatus
-        }else {
-          status = this.screenForm.examineStatus
-        }
-      }else {
-        status = this.screenForm.status
-      }
+
       const params = {
         pageNum: this.currentPage,
         pageSize: this.pageSize,
@@ -677,7 +659,9 @@ export default {
         useUnit: this.screenForm.company,
         createName: this.screenForm.createMan,
         confirmName: this.screenForm.examineMan,
-        examineStatus: status,
+        examineStatus: this.screenForm.examineStatus,
+        isClose:this.screenForm.isClose,
+
         serviceId: this.screenForm.salesMan,
         specification: this.screenForm.model,
         isDirectTransfer: this.screenForm.isDirectTransfer,