| | |
| | | <template slot-scope="scope" slot="settlementTimes"> |
| | | <span>{{ formatTimestamp(scope.row.settlementTime) }}</span> |
| | | </template> |
| | | <template slot-scope="scope" |
| | | slot="menu"> |
| | | <el-button type="primary" |
| | | <template slot-scope="scope" slot="menu"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | | size="small" |
| | | v-if="scope.row.state !=='created'&&isAuth('union-spots:operate')" |
| | | <!-- @click.stop="pickHandle(scope.row.orderNo)">电控</el-button> --> |
| | | |
| | | v-if="scope.row.state !== 'created'" |
| | | @click.stop="manualProfitHandle(scope.row)" |
| | | >场控</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <pickUpdate v-if="pickUpdateVisible" |
| | | ref="pickUpdate" |
| | | @refreshDataList="getDataList"></pickUpdate> |
| | | <manualProfitUpdate |
| | | v-if="manualProfitUpdateVisible" |
| | | ref="manualProfitUpdate" |
| | | @refreshDataList="getDataList" |
| | | ></manualProfitUpdate> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <!-- <add-or-update v-if="addOrUpdateVisible" |
| | | ref="addOrUpdate" |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { tableOption } from "@/crud/shop/pickAddr"; |
| | | import pickUpdate from "./pick-update"; |
| | | import { tableOption } from "@/crud/us-spots/us-pickAddr"; |
| | | import manualProfitUpdate from "../shop/manual-profit-update"; |
| | | import { getStockName } from "./config"; |
| | | import { isAuth } from '@/utils' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | ], |
| | | dataListLoading: false, |
| | | pickUpdateVisible:false, |
| | | manualProfitUpdateVisible: false, |
| | | dataListSelections: [], |
| | | tableOption: tableOption, |
| | | page: { |
| | |
| | | ], |
| | | }, |
| | | symbol:"", |
| | | stockName: "", |
| | | stocksMap:{} |
| | | }; |
| | | }, |
| | | components: { |
| | | pickUpdate |
| | | // AddOrUpdate, |
| | | // AddOrGogle |
| | | manualProfitUpdate |
| | | }, |
| | | created() { |
| | | this.stockName = getStockName(); |
| | |
| | | const seconds = String(date.getSeconds()).padStart(2, "0"); |
| | | return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; |
| | | }, |
| | | // 场控 |
| | | pickHandle(id) { |
| | | this.pickUpdateVisible = true; |
| | | manualProfitHandle(row) { |
| | | this.manualProfitUpdateVisible = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.pickUpdate.init(id); |
| | | this.$refs.manualProfitUpdate.init(row); |
| | | }); |
| | | }, |
| | | // tab切换 |