feat: 更新签收
This commit is contained in:
@ -30,6 +30,7 @@
|
|||||||
<el-link size="small" type="primary" @click="getDataById('edit', row)">修改</el-link>
|
<el-link size="small" type="primary" @click="getDataById('edit', row)">修改</el-link>
|
||||||
<el-link size="small" type="primary" @click="getDataById('detail', row)">详情</el-link>
|
<el-link size="small" type="primary" @click="getDataById('detail', row)">详情</el-link>
|
||||||
<el-link size="small" type="danger" @click="deleteFile(row)">删除</el-link>
|
<el-link size="small" type="danger" @click="deleteFile(row)">删除</el-link>
|
||||||
|
<el-link size="small" type="success" @click="sign(row)">签收</el-link>
|
||||||
</template>
|
</template>
|
||||||
</MyTable>
|
</MyTable>
|
||||||
<Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight" :pageConfiger="{
|
<Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight" :pageConfiger="{
|
||||||
@ -47,7 +48,7 @@ import MyTable from "@/components/aboutTable/MyTable.vue";
|
|||||||
import Pages from "@/components/aboutTable/Pages.vue";
|
import Pages from "@/components/aboutTable/Pages.vue";
|
||||||
import Search from "@/components/aboutTable/Search.vue";
|
import Search from "@/components/aboutTable/Search.vue";
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { getJudgmentCommandList, deleteJudgmentCommand } from "@/api/huiShangyp/judgmentCommand.js";
|
import { getJudgmentCommandList, deleteJudgmentCommand, signCommand,feedbackCommand } from "@/api/huiShangyp/judgmentCommand.js";
|
||||||
import { reactive, ref, onMounted, getCurrentInstance, watch, computed } from "vue";
|
import { reactive, ref, onMounted, getCurrentInstance, watch, computed } from "vue";
|
||||||
import AddForm from "./addForm.vue";
|
import AddForm from "./addForm.vue";
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
@ -155,6 +156,22 @@ const deleteFile = (row) => {
|
|||||||
proxy.$message.info('已取消删除');
|
proxy.$message.info('已取消删除');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
const sign = (row) => {
|
||||||
|
proxy.$confirm('确定签收吗?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
signCommand({ zlid: row.id }).then(res => {
|
||||||
|
proxy.$message.success('签收成功');
|
||||||
|
getList();
|
||||||
|
}).catch(() => {
|
||||||
|
proxy.$message.error('签收失败');
|
||||||
|
});
|
||||||
|
}).catch(() => {
|
||||||
|
proxy.$message.info('已取消签收');
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user