modified: src/views/common/ztt-table.vue
modified: src/views/plan/customerorder/index.vue
modified: src/views/plan/productionschedul/index.vue
| | |
| | | :show-overflow-tooltip="!item.noShowTip" |
| | | :width="inMemoryColWidth[item.prop] || item.width" |
| | | :prop="item.prop" |
| | | align="center" |
| | | > |
| | | <template slot="header" slot-scope="scope"> |
| | | <template v-if="item.isSearch"> |
| | |
| | | <template v-if="!item.render"> |
| | | <template v-if="item.formatter"> |
| | | <span v-if="item.isTag" style="text-align: center;"> |
| | | <el-tag style="width:50px;margin: 3px;" :type="scope.row[item.prop] == 0 ? 'success' : 'info'"> |
| | | <el-tag style="width:60px;margin: 3px;" :type="scope.row[item.prop] == 0 ? 'success' : 'info'"> |
| | | <span v-html="item.formatter(scope.row, item, scope.row[item.prop])"></span> |
| | | </el-tag> |
| | | </span> |
| | |
| | | ref="customerOrderTable" |
| | | > |
| | | <template #toolbar> |
| | | <!-- <el-dropdown |
| | | v-if="permissions.customerorder_state_change" |
| | | @command="handleCommand" |
| | | > |
| | | <el-button> |
| | | 状态改变<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item |
| | | :command="item.command" |
| | | v-for="item in stateTagArr" |
| | | :disabled="item.disabled"> |
| | | {{ item.label }} |
| | | </el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> --> |
| | | <el-dropdown |
| | | v-if="permissions.customerorder_doc_relate" |
| | | @command="documentHandle" |
| | |
| | | > |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | <!-- <el-button |
| | | v-if="permissions.customerorder_push_otc" |
| | | style="margin-left:10px;" |
| | | type="primary" |
| | | @click="pushOtc" |
| | | >推送ERP</el-button |
| | | > --> |
| | | <!-- <el-button |
| | | style="margin-left:10px;" |
| | | type="primary" |
| | | @click="importOutPutBatch" |
| | | >导入产出批次</el-button |
| | | > --> |
| | | <el-button |
| | | style="margin-left:10px;" |
| | | type="primary" |
| | | @click="()=>exportDialogVisible=true" |
| | | >导出台账</el-button |
| | | > |
| | | <!-- <el-button |
| | | v-if="permissions.plan_customerorder_return" |
| | | style="margin-left:10px;" |
| | | type="primary" |
| | | @click="returnOrder" |
| | | >订单退回</el-button |
| | | > --> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 日期选择 --> |
| | |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | minWidth: '100', |
| | | prop: 'sourceId', |
| | | label: '添加来源', |
| | | isTag: true, |
| | |
| | | ], |
| | | sourceIdList: [{ |
| | | label: '同步', |
| | | value: '0' |
| | | value: "0" |
| | | },{ |
| | | label: '手动', |
| | | value: '1' |
| | | value: "1" |
| | | }], |
| | | stockVisible: false, |
| | | partName: null, |
| | |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | <style scoped> |
| | | .el-tag--small{ |
| | | display: none; |
| | | } |