| | |
| | | |
| | | Vue.config.productionTip = false; |
| | | |
| | | let lastVersion = localStorage.getItem('appVersion'); |
| | | const checkVersion = async () => { |
| | | const res = await axios.get('/api/version'); // 返回当前版本号 |
| | | if (res.data.version !== lastVersion) { |
| | | localStorage.setItem('appVersion', res.data.version); |
| | | // ElMessageBox.confirm('检测到新版本,是否刷新?', '提示', { |
| | | // confirmButtonText: '刷新', |
| | | // }).then(() => { |
| | | window.location.reload(true); // 强制刷新 |
| | | // }); |
| | | } |
| | | }; |
| | | |
| | | // 定时检查(如每小时一次) |
| | | setInterval(checkVersion, 60 * 60 * 1000); |
| | | |
| | | new Vue({ |
| | | el: "#app", |
| | | router, |
| | |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport" :disabled="single" |
| | | <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport" :disabled="singles" |
| | | v-hasPermi="['hosp:order:export']">导出</el-button> |
| | | </el-col> |
| | | |
| | |
| | | dataObj: {}, |
| | | // 非单个禁用 |
| | | single: true, |
| | | singles: false, |
| | | activeNames: "first", |
| | | // 非多个禁用 |
| | | multiple: true, |
| | |
| | | |
| | | this.ids = selection.map((item) => item.orderId); |
| | | this.single = selection.length !== 1; |
| | | this.singles= selection.length !== 1; |
| | | this.multiple = !selection.length; |
| | | if (tjNUms.length > 0) { |
| | | shijianzhou(tjNUms).then((res) => { |
| | |
| | | if (this.tableData1) { |
| | | this.tableData1.forEach((item) => { |
| | | if (typeof item.nowPrice === 'number') { |
| | | item.nowPrice = Number(item.nowPrice.toFixed(2)); |
| | | item.nowPrice = Number(item.nowPrice.toFixed(3)); |
| | | } |
| | | if (item.tjCategory != null) { |
| | | this.tjCategory = item.tjCategory; |