Browse Source

對賬單

yuansh 2 years ago
parent
commit
41bc1a47a0

+ 18 - 5
src/views/oa/modules/SyCarryModal.vue

@@ -138,7 +138,8 @@
           </span>
           <!-- 计划员 -->
            <span slot="jhyByData" slot-scope="text, record, index">
-                 <a-select  v-model="record.jhyByData" style="width:100%" show-search :filterOption="filterOption" @change="handleChange(record)"> 
+                 <a-select  v-model="record.jhyByData" style="width:100%" mode="multiple"
+                  show-search :filterOption="filterOption" @change="handleChange(record)"> 
                       <a-select-option
                      v-for="(item,index) in jhyNameOption"
                      :key="index"
@@ -284,7 +285,7 @@
            {
             // title: '计划员',
             dataIndex: 'jhyByData',
-             width: '9%',
+             width: '13%',
              ellipsis: true,
              scopedSlots: { customRender: 'jhyByData' },
              className: 'replacecolor',
@@ -293,7 +294,7 @@
            {
             title: '签名',
             dataIndex: 'jhyName',
-            width: '9%',
+            width: '11%',
              ellipsis: true,
              className: 'replacecolor'
            },
@@ -338,6 +339,9 @@
         getAction('/oa/syCarry/querySyCarryBByMainId', {id:id}).then((res) => {
           if(res.success){
               res.result.map(item =>{
+              if(item.jhyByData !==''&& item.jhyByData){
+                item.jhyByData = item.jhyByData.split(",")
+              }
               if(item.orderDate !==''&& item.orderDate){
                 item.orderDate = moment(item.orderDate)
               }
@@ -373,7 +377,7 @@
       },
       //获取计划员
       getOption(){
-        personList().then(res => {
+        personList({pageSize:'9999'}).then(res => {
                     if (res.success) {
                       res.result.records.map(item =>{
                         this.jhyNameOption.push({label:item.realname,value:item.username})
@@ -445,6 +449,15 @@
          if(valid){
             var obj = this.formState
             this.syCarryBTable.dataSource.map(item=>{
+             
+             console.log('ssssssssssss',item.jhyByData.toString());
+              if(item.jhyByData!=''&&item.jhyByData){
+                
+                 // item.jhyByData.forEach(t => {
+                 //    console.log('ssssssssssss',t);
+                 // })
+                item.jhyByData = item.jhyByData.toString();
+              }
               if(item.orderDate!==''&&item.orderDate){
                 item.orderDate = moment(item.orderDate).format('YYYY-MM-DD HH:mm:ss');
               }
@@ -471,7 +484,7 @@
                        this.$message.warning(res.message)
                      }
                  })
-            }
+            } 
          }
          })
        

+ 15 - 1
src/views/oa/my-plan/add/savePlan.vue

@@ -66,6 +66,18 @@
             </a-range-picker>
           </a-form-item>
         </a-col>
+         <a-col :span="12">
+          <a-form-item label="时间">
+            <!-- 有 时分秒 -->
+            <a-time-picker
+              style="width:100%"
+              showTime
+              @change="continueTimeChange"
+              v-decorator="['planTime', {}]"
+            >
+            </a-time-picker>
+          </a-form-item>
+        </a-col>
       </a-row>
       <a-row :gutter="24">
         <!-- <a-col :span="12">
@@ -197,10 +209,11 @@ export default {
     methods: {
     // 回显表单的赋值
         getFormInfo (e) {
-            // console.log('点击日程ID>>', this.formData.id)
+            console.log('点击日程ID>>', this.formData.planTime)
             this.$nextTick(() => {
                 this.addForm.setFieldsValue({
                     title: this.formData.title,
+                    planTime: moment(this.formData.planTime, 'HH:mm:ss'),
                     type: this.formData.type,
                     degreeOfUrgency: this.formData.degreeOfUrgency,
                     backgroundColor: this.formData.backgroundColor,
@@ -224,6 +237,7 @@ export default {
                     scheduleObject.degreeOfUrgency = values.degreeOfUrgency
                     scheduleObject.startTime = values.continue[0].format('YYYY-MM-DD HH:mm:ss')
                     scheduleObject.endTime = values.continue[1].format('YYYY-MM-DD HH:mm:ss')
+                    scheduleObject.planTime = values.planTime.format('YYYY-MM-DD HH:mm:ss')
                     scheduleObject.backgroundColor = values.backgroundColor
                     scheduleObject.memo = this.$refs.JEditor.myValue
                     // 编辑--------------------------------------------

+ 12 - 1
src/views/system/modules/AddCertificateManagement.vue

@@ -75,6 +75,15 @@
                  </a-select>
                </a-form-model-item>
             </a-col> -->
+            
+            <a-col :md="8" :sm="8">
+              <a-form-model-item label="公开" prop="isOpen">
+                 <a-select v-model="formState.isOpen">
+                    <a-select-option value="是">是</a-select-option>
+                    <a-select-option value="否">否</a-select-option>
+                 </a-select>
+               </a-form-model-item>
+            </a-col>
           </a-row>
           <a-row :gutter="24">
              <a-col :md="24" :sm="8">
@@ -130,7 +139,8 @@ export default {
             formState:{
               endDate:'',
               beginDate:'',
-              isMessage:'1'
+              isMessage:'1',
+              isOpen:'是'
             },
             inputMethod:'select',
             fileList:[],
@@ -142,6 +152,7 @@ export default {
               code:[{required: true, message: '证件编号不能为空!'}],
               manageId:[{required: true, message: '管理人不能为空!'}],
               isMessage:[{required: true, message: '是否邮件通知不能为空!'}],
+              isOpen:[{required: true, message: '是否公开不能为空!'}],
               beginDate:[{required: true, message: '起始日期不能为空!'}],
               endDate:[{required: true, message: '到期时间不能为空!'}],
             },