提交部署

This commit is contained in:
磷叶 2024-11-21 16:02:28 +08:00
parent 30a332a9a6
commit 7794316e1e
3 changed files with 42 additions and 24 deletions

View File

@ -262,11 +262,17 @@ export default {
}, },
methods: { methods: {
handleSync() { handleSync() {
syncMaterial().then(res => { this.$confirm('确定同步物料吗?', '提示', {
if (res.code === 200) { confirmButtonText: '确定',
this.$message.success("同步成功"); cancelButtonText: '取消',
} type: 'warning'
}) }).then(() => {
syncMaterial().then(res => {
if (res.code === 200) {
this.$message.success("同步成功");
}
})
});
}, },
/** 当排序按钮被点击时触发 **/ /** 当排序按钮被点击时触发 **/
onSortChange(column) { onSortChange(column) {

View File

@ -58,16 +58,16 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <!-- <el-col :span="1.5">-->
<el-button <!-- <el-button-->
type="primary" <!-- type="primary"-->
plain <!-- plain-->
icon="el-icon-plus" <!-- icon="el-icon-plus"-->
size="mini" <!-- size="mini"-->
@click="handleAdd" <!-- @click="handleAdd"-->
v-has-permi="['yh:prodOrder:add']" <!-- v-has-permi="['yh:prodOrder:add']"-->
>新增</el-button> <!-- >新增</el-button>-->
</el-col> <!-- </el-col>-->
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="danger" type="danger"
@ -363,10 +363,16 @@ export default {
methods: { methods: {
isEmpty, isEmpty,
handleSync(query = {}) { handleSync(query = {}) {
syncProdOrder(query).then(res => { this.$confirm('确定同步生产订单吗?', '提示', {
if (res.code === 200) { confirmButtonText: '确定',
this.$message.success("同步成功"); cancelButtonText: '取消',
} type: 'warning'
}).then(() => {
syncProdOrder(query).then(res => {
if (res.code === 200) {
this.$message.success("同步成功");
}
})
}) })
}, },
/** 当排序按钮被点击时触发 **/ /** 当排序按钮被点击时触发 **/

View File

@ -242,11 +242,17 @@ export default {
}, },
methods: { methods: {
handleSync() { handleSync() {
syncUnit().then(res => { this.$confirm('确定同步单位吗?', '提示', {
if (res.code === 200) { confirmButtonText: '确定',
this.$message.success("同步成功"); cancelButtonText: '取消',
} type: 'warning'
}) }).then(() => {
syncUnit().then(res => {
if (res.code === 200) {
this.$message.success("同步成功");
}
})
});
}, },
/** 当排序按钮被点击时触发 **/ /** 当排序按钮被点击时触发 **/
onSortChange(column) { onSortChange(column) {