Przeglądaj źródła

装箱单-成衣-状态修改

jbb 2 lat temu
rodzic
commit
9e71d7a375
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      src/views/packing-list/clothes-list.vue

+ 6 - 2
src/views/packing-list/clothes-list.vue

@@ -182,9 +182,11 @@
         </span>
 
         <!-- 推送状态 -->
-        <span slot="pushState" slot-scope="text, record" :title ="record.cause">
+        <span slot="pushState" slot-scope="text, record" >
           <!-- v-if="record.isRelease == '0'" -->
-          <a-tag color="#f50" :title="record.cause">保存</a-tag>
+          <a-tag color="#f50" v-if="record.pushState =='0'">未推送</a-tag>
+          <a-tag color="green" v-if="record.pushState =='1'">推送成功</a-tag>
+          <a-tag color="red" v-if="record.pushState =='2'">推送失败</a-tag>
           <!-- <a-tag color="#87d068" v-else>已提交</a-tag> -->
         </span>
 
@@ -696,8 +698,10 @@ export default {
     pushU8(record){
       pushOrderData({ids : record.id}).then(res =>{
         if (res.success) {
+            this.getSpltList()
             this.$message.success('推送U8成功成功');
           }else{
+            this.getSpltList()
             this.$message.error(res.message);
           }
      })