Browse Source

计划单统计表-刷成衣结束日期

jbb 1 year ago
parent
commit
a087d5f64a
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/views/cost-allocation-total/inancialReconciliation.vue

+ 8 - 2
src/views/cost-allocation-total/inancialReconciliation.vue

@@ -154,8 +154,7 @@
             <span v-if="record.enter=='0'">{{text}}</span>
         </span>
         <span slot="readyEndDate" slot-scope="text, record">
-          <a-date-picker style="width: 100%" v-model="record.readyEndDate"   :format="dateFormat" v-if="record.enter=='1'"> </a-date-picker>
-            <!-- <a-input placeholder="请输入" v-model="record.ffinalApproveDate" v-if="record.enter=='1'"></a-input> -->
+          <a-date-picker style="width: 100%" v-model="record.readyEndDate"   :format="dateFormat" v-if="record.enter=='1'" @change="changeReadyEndData()"> </a-date-picker>
             <span v-if="record.enter=='0'">{{text}}</span>
         </span>
         
@@ -257,6 +256,10 @@ export default {
           width: 170,
           dataIndex: 'readyEndDate',
           scopedSlots: { customRender: 'readyEndDate' },
+          className: 'replacecolor',
+          sorter: (a, b) => {
+            return new Date(a.readyEndDate) > new Date(b.readyEndDate) ? 1 : -1;
+          },
         },
         {
           title: '返单日期',
@@ -465,6 +468,9 @@ export default {
     searchQuery() {
       this.getCostList()
     },
+    changeReadyEndData(){
+      this.$forceUpdate()
+    },
     handleChange(value){
       this.queryParam.fstatus = value.toString()
     },