yuhan преди 1 година
родител
ревизия
0ec2e1f3b1
променени са 2 файла, в които са добавени 65 реда и са изтрити 1 реда
  1. 5 1
      src/api/kzksApi.js
  2. 60 0
      src/views/module_kzks/costModelList/CostModelList.vue

+ 5 - 1
src/api/kzksApi.js

@@ -24,6 +24,9 @@ const getHjList = (params)=>getAction("/projectCostHuiji/projectCostHuiji/compar
 // 项目成本对比————材料费对比
 const getDbClList = (params)=>getAction("wzOutboundOrder/wzOutboundOrderH/compareCLFDetailList", params);
 
+// 成本模型知会
+const costModelInform = (params)=>postAction("/costModelList/costModelList/inform", params);
+
 
 export {
   columnsSelect,
@@ -33,7 +36,8 @@ export {
   proCostYSKdetail,
   getDbList,
   getHjList,
-  getDbClList
+  getDbClList,
+  costModelInform
 }
 
 

+ 60 - 0
src/views/module_kzks/costModelList/CostModelList.vue

@@ -93,6 +93,9 @@
                 <a @click="handleDetail(record)">详情</a>
               </a-menu-item>
               <a-menu-item>
+                <a @click="handleInform(record)">知会</a>
+              </a-menu-item>
+              <a-menu-item>
                 <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
                   <a>删除</a>
                 </a-popconfirm>
@@ -105,6 +108,20 @@
     </div>
 
     <cost-model-list-modal ref="modalForm" @ok="modalFormOk"></cost-model-list-modal>
+
+    <j-modal
+      title="知会"
+      :width="800"
+      :visible="visibleInform"
+      switchFullscreen
+      @ok="handleOk"
+      :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
+      @cancel="handleCancel"
+      cancelText="关闭">
+      <j-select-multi-user :returnKeys="returnKeys" placeholder="请选择指定用户" v-model="userIds" :trigger-change="true"></j-select-multi-user>
+      <j-select-user-by-dep placeholder="请选择消息接收方" v-model="receiver"></j-select-user-by-dep>
+    </j-modal>
+
   </a-card>
 </template>
 
@@ -114,6 +131,7 @@
   import { mixinDevice } from '@/utils/mixin'
   import { JeecgListMixin } from '@/mixins/JeecgListMixin'
   import CostModelListModal from './modules/CostModelListModal'
+  import { costModelInform } from '@/api/kzksApi.js'
 
   export default {
     name: 'CostModelListList',
@@ -142,6 +160,21 @@
             dataIndex: 'xmName'
           },
           {
+            title:'创建人',
+            align:"center",
+            dataIndex: 'createBy'
+          },
+          {
+            title:'所属部门',
+            align:"center",
+            dataIndex: 'sysOrgCode'
+          },
+          {
+            title:'知会给',
+            align:"center",
+            dataIndex: 'informTo'
+          },
+          {
             title:'外协费',
             align:"center",
             dataIndex: 'wxf'
@@ -210,6 +243,14 @@
         },
         dictOptions:{},
         superFieldList:[],
+
+        disableSubmit: false,
+        visibleInform: false,
+        returnKeys:['id', 'id'], //用户选择返回字段
+        userIds:"",
+        receiver: "",
+
+        inform: {}
       }
     },
     created() {
@@ -221,6 +262,25 @@
       },
     },
     methods: {
+      handleInform(record){
+        console.log(record)
+        this.inform.id = record.id
+        this.visibleInform = true
+      },
+      handleOk(){
+        // this.visibleInform = false
+        console.log(this.receiver)
+        this.inform.informTo = this.receiver.toString()
+        costModelInform(this.inform).then(res => {
+          console.log(res)
+          this.visibleInform = false
+          this.loadData()
+        })
+      },
+      handleCancel(){
+        this.visibleInform = false
+        
+      },
       initDictConfig(){
       },
       getSuperFieldList(){