|   | 
| <template> | 
|   <div class="page-list-container"> | 
|     <!-- 数据Table --> | 
|     <yrt-data-list :ref="dataListRef" :editor-ref="editorRef" :data-options="dataOptions" :fields.sync="dataListOptions.fields" :buttons="dataListOptions.buttons" :button-click="buttonClick" :data-list-selections.sync="dataListSelections" :auth-nodes="authNodes"> | 
|       <template slot="common-column-slot" slot-scope="{row, col}"> | 
|         <template v-if="col.prop==dataOptions.linkColumn"> | 
|           <el-link type="primary" @click.native="()=>{linkEditor(row[dataOptions.idField], row);}"> | 
|             <template v-if="['date', 'datetime'].indexOf(col.dataType)>=0 && col.formatter"> | 
|               {{ common.formatDate(row[col.prop], col.formatter) }} | 
|             </template> | 
|             <template v-else-if="['byte', 'int32', 'int64', 'decimal', 'double'].indexOf(col.dataType)>=0 && col.formatter"> | 
|               {{ common.formatNumber(row[col.prop], col.formatter) }} | 
|             </template> | 
|             <template v-else> | 
|               {{ row[col.prop] }} | 
|             </template> | 
|           </el-link> | 
|         </template> | 
|         <!-- 自定义地址显示 --> | 
|         <template v-else-if="col.prop === 'address'"> | 
|           <template> | 
|             <el-tag v-if="row[col.prop]==0" color="#ffff33" style="color:black;border:0"> | 
|               {{ $refs[dataListRef].translateText(col.prop, row[col.prop], col.dropdown_Id) }} | 
|             </el-tag> | 
|             <el-tag v-else-if="row[col.prop]==1" color="#ff0033" style="color:white;border:0"> | 
|               {{ $refs[dataListRef].translateText(col.prop, row[col.prop], col.dropdown_Id) }} | 
|             </el-tag> | 
|             <el-tag v-else-if="row[col.prop]==2" color="#33cc33" style="color:black;border:0;color:#fff;"> | 
|               {{ $refs[dataListRef].translateText(col.prop, row[col.prop], col.dropdown_Id) }} | 
|             </el-tag> | 
|             <span v-else> | 
|               {{ row[col.prop] }} | 
|             </span> | 
|           </template> | 
|         </template> | 
|         <!-- 自定义地址显示 --> | 
|         <template v-else-if="col.prop === 'type ','stats'"> | 
|           <template> | 
|             <el-tag v-if="row[col.prop]=='提货单'" color="#00cc00" style="color:white;border:0"> | 
|               {{ row[col.prop] }} | 
|             </el-tag> | 
|             <el-tag v-else-if="row[col.prop]=='待接单'" color="#00cc00" style="color:white;border:0"> | 
|               {{ row[col.prop] }} | 
|             </el-tag> | 
|             <span v-else> | 
|               {{ row[col.prop] }} | 
|             </span> | 
|           </template> | 
|         </template> | 
|         <template v-else> | 
|           <template v-if="['date', 'datetime'].indexOf(col.dataType)>=0 && col.formatter"> | 
|             {{ common.formatDate(row[col.prop], col.formatter) }} | 
|           </template> | 
|           <template v-else-if="['byte', 'int32', 'int64', 'decimal', 'double'].indexOf(col.dataType)>=0 && col.formatter"> | 
|             {{ common.formatNumber(row[col.prop], col.formatter) }} | 
|           </template> | 
|           <template v-else> | 
|             <template v-if="['date', 'datetime'].indexOf(col.dataType)>=0 && col.formatter"> | 
|               {{ common.formatDate(row[col.prop], col.formatter) }} | 
|             </template> | 
|             <template v-else-if="['byte', 'int32', 'int64', 'decimal', 'double'].indexOf(col.dataType)>=0 && col.formatter"> | 
|               {{ common.formatNumber(row[col.prop], col.formatter) }} | 
|             </template> | 
|             <template v-else> | 
|               {{ row[col.prop] }} | 
|             </template> | 
|           </template> | 
|         </template> | 
|       </template> | 
|     </yrt-data-list> | 
|     <!--数据编辑器Editor--> | 
|     <yrt-editor :ref="editorRef" :use-detail-slot="['stats']" :edit-button-click="editButtonClick" :data-list-ref="dataListRef" v-bind="editorOptions" :data-options="dataOptions" :action.sync="editorOptions.action" :top.sync="editorOptions.top" :visible.sync="editorOptions.config.visible" :detail-button-click="detailButtonClick" :auth-nodes="authNodes" :btn-read-only="btnReadOnly" @on-edit-load-after="onEditLoadAfter"> | 
|       <template slot="detail-column-slot" slot-scope="{ row, col }"> | 
|         <template v-if="col.prop == 'stats'"> | 
|           <el-tag v-if="row[col.prop]=='提货中'" color="#00cc00" style="color:black;border:0"> | 
|             {{ row[col.prop] }} | 
|           </el-tag> | 
|         </template> | 
|       </template> | 
|     </yrt-editor> | 
|   </div> | 
| </template> | 
| <script> | 
| import baseLayout from "@/components/common/base-layout.vue"; | 
| export default { | 
|   name: "tms-biz-tms-pickup", | 
|   components: {}, | 
|   mixins: [baseLayout], | 
|   data() { | 
|     return {}; | 
|   }, | 
|   methods: { | 
|     editButtonClick() {}, | 
|     onEditLoadAfter() {}, | 
|     buttonClick(authNode) { | 
|       switch (authNode) { | 
|         case "start": | 
|           // 发车 | 
|           // this.$alert("发车"); | 
|           return true; | 
|         case "receiving": | 
|           // 接单 | 
|           // this.$alert("接单"); | 
|           return true; | 
|         case "unloading": | 
|           // 卸车入库 | 
|           // this.$alert("卸车入库"); | 
|           return true; | 
|       } | 
|     } | 
|   } | 
| }; | 
| </script> |