Compare commits
No commits in common. "7d9f86a8ab804b0525c68ee8f04eff1e892c0450" and "f44e1c65fe7b6631275d47812e745647d0347dd1" have entirely different histories.
7d9f86a8ab
...
f44e1c65fe
|
|
@ -279,39 +279,5 @@ export default {
|
||||||
`${config.API_URL}/pum/supplier/${id}/`)
|
`${config.API_URL}/pum/supplier/${id}/`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
supplieraudit: {
|
|
||||||
list: {
|
|
||||||
name: "供应商审核",
|
|
||||||
req: async function(data){
|
|
||||||
return await http.get(
|
|
||||||
`${config.API_URL}/pum/supplieraudit/`,
|
|
||||||
data
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
item: {
|
|
||||||
req: async function(id){
|
|
||||||
return await http.get(
|
|
||||||
`${config.API_URL}/pum/supplieraudit/${id}/`,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
create: {
|
|
||||||
name: "新增",
|
|
||||||
req: async function(data){
|
|
||||||
return await http.post(
|
|
||||||
`${config.API_URL}/pum/supplieraudit/`,
|
|
||||||
data);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
delete: {
|
|
||||||
name: "删除",
|
|
||||||
req: async function(id){
|
|
||||||
return await http.delete(
|
|
||||||
`${config.API_URL}/pum/supplieraudit/${id}/`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,53 +0,0 @@
|
||||||
<template>
|
|
||||||
<el-container>
|
|
||||||
<el-header>
|
|
||||||
<div class="left-panel">
|
|
||||||
<el-button type="primary" @click="handleAdd">新增</el-button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</el-header>
|
|
||||||
<el-main class="nopadding">
|
|
||||||
<scTable
|
|
||||||
ref="table"
|
|
||||||
:apiObj="API.hrm.resignation.list"
|
|
||||||
row-key="id"
|
|
||||||
stripe
|
|
||||||
:query="query"
|
|
||||||
@row-click="(row)=>{t_id=row.id;mode='show';drawerVisible=true;}"
|
|
||||||
>
|
|
||||||
<el-table-column label="姓名" prop="employee_name" width="100" show-overflow-tooltip></el-table-column>
|
|
||||||
<el-table-column label="审批状态" width="200" show-overflow-tooltip>
|
|
||||||
<template #default="scope">
|
|
||||||
<el-tag :type="actStateEnum[scope.row.ticket_?.act_state]?.type">
|
|
||||||
{{ actStateEnum[scope.row.ticket_?.act_state]?.text }}
|
|
||||||
</el-tag>
|
|
||||||
<el-tag type="info" effect="plain">{{ scope.row.ticket_?.state_.name }}</el-tag>
|
|
||||||
|
|
||||||
</template>
|
|
||||||
</el-table-column>`
|
|
||||||
<el-table-column label="部门" prop="belong_dept_name" width="120" show-overflow-tooltip></el-table-column>`
|
|
||||||
<el-table-column label="岗位" prop="post_name" width="120" show-overflow-tooltip></el-table-column>
|
|
||||||
<el-table-column label="身份证号" prop="employee_id_number" width="200" show-overflow-tooltip></el-table-column>
|
|
||||||
<el-table-column label="离职日期" prop="end_date" width="100" show-overflow-tooltip></el-table-column>
|
|
||||||
<el-table-column label="原因" prop="reason" show-overflow-tooltip></el-table-column>
|
|
||||||
</scTable>
|
|
||||||
</el-main>
|
|
||||||
</el-container>
|
|
||||||
<el-drawer title="新供应商审核" v-model="drawerVisible" :size="'80%'" destroy-on-close>
|
|
||||||
<supplieraudit_form :mode="mode" :t_id="t_id"></supplieraudit_form>
|
|
||||||
</el-drawer>
|
|
||||||
</template>
|
|
||||||
<script setup>
|
|
||||||
import { ref } from 'vue'
|
|
||||||
import API from '@/api'
|
|
||||||
import supplieraudit_form from './supplieraudit_form.vue'
|
|
||||||
import { actStateEnum, interveneTypeEnum } from "@/utils/enum.js";
|
|
||||||
const query = ref({});
|
|
||||||
const drawerVisible = ref(false);
|
|
||||||
const mode = ref('add');
|
|
||||||
const t_id = ref(null);
|
|
||||||
const handleAdd = () => {
|
|
||||||
mode.value = 'add';
|
|
||||||
drawerVisible.value = true;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
@ -1,141 +0,0 @@
|
||||||
<template>
|
|
||||||
<el-container>
|
|
||||||
<el-main class="nopadding">
|
|
||||||
<el-form label-width="100px" :model="formData" style="padding: 20px;">
|
|
||||||
<el-form-item label="供应商名称" required>
|
|
||||||
<el-input v-model="formData.name" placeholder="请输入供应商名称" :readonly="localMode === 'show'"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="物料分类" required>
|
|
||||||
<el-input v-model="formData.material_cate" :readonly="localMode === 'show'"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="物料名称" required>
|
|
||||||
<el-input v-model="formData.material_name" :readonly="localMode === 'show'"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="调查表" required>
|
|
||||||
<sc-upload-filed
|
|
||||||
v-model="formData.survery_form"
|
|
||||||
:file_ = "formData.survery_form_"
|
|
||||||
:multiple="false"
|
|
||||||
:limit="1"
|
|
||||||
accept=".pdf,.jpg,.png,.jpeg"
|
|
||||||
:disabled="localMode ==='show'"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="营业执照" required>
|
|
||||||
<sc-upload-filed
|
|
||||||
v-model="formData.business_license"
|
|
||||||
:file_ = "formData.business_license_"
|
|
||||||
:multiple="false"
|
|
||||||
:limit="1"
|
|
||||||
accept=".pdf,.jpg,.png,.jpeg"
|
|
||||||
:disabled="localMode ==='show'"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="质量证书" required>
|
|
||||||
<sc-upload-filed
|
|
||||||
v-model="formData.quality_certificate"
|
|
||||||
:file_ = "formData.quality_certificate_"
|
|
||||||
:multiple="false"
|
|
||||||
:limit="1"
|
|
||||||
accept=".pdf,.jpg,.png,.jpeg"
|
|
||||||
:disabled="localMode ==='show'"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<el-footer>
|
|
||||||
<el-button type="danger"
|
|
||||||
v-if="localMode=='edit'"
|
|
||||||
style="margin-right: 4px;"
|
|
||||||
@click="handleDel"
|
|
||||||
>删除</el-button>
|
|
||||||
<ticketd_b
|
|
||||||
:workflow_key="'wf_supplieraudit'"
|
|
||||||
:title="ticketTitle"
|
|
||||||
:t_id="formData.id"
|
|
||||||
:ticket_="formData.ticket_"
|
|
||||||
@success="$emit('success', localMode)"
|
|
||||||
:submit_b_func="submit_b_func"
|
|
||||||
ref="ticketd_b"
|
|
||||||
></ticketd_b>
|
|
||||||
</el-footer>
|
|
||||||
</el-main>
|
|
||||||
<el-aside width="20%" v-if="formData.ticket_">
|
|
||||||
<ticketd :ticket_="formData.ticket_" @success="$emit('success')"></ticketd>
|
|
||||||
</el-aside>
|
|
||||||
</el-container>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import ticketd_b from "@/views/wf/ticketd_b.vue";
|
|
||||||
import ticketd from '@/views/wf/ticketd.vue'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
ticketd_b,
|
|
||||||
ticketd
|
|
||||||
},
|
|
||||||
props: {
|
|
||||||
mode: {
|
|
||||||
type: String,
|
|
||||||
default: 'show'
|
|
||||||
},
|
|
||||||
t_id: {
|
|
||||||
type: String,
|
|
||||||
default: ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
formData: {
|
|
||||||
survery_form_: null
|
|
||||||
},
|
|
||||||
localMode: this.mode,
|
|
||||||
ticketTitle: "供应商审核"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
watch: {
|
|
||||||
mode(newVal) {
|
|
||||||
this.localMode = newVal;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
if (this.t_id) {
|
|
||||||
this.getTid();
|
|
||||||
} else {
|
|
||||||
this.localMode = "add";
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
async getTid() {
|
|
||||||
let res = await this.$API.pum.supplieraudit.item.req(this.t_id);
|
|
||||||
this.formData = res;
|
|
||||||
if (res.ticket_ && res.ticket_.state_.type == 1 && res.create_by == this.$TOOL.data.get("USER_INFO").id) {
|
|
||||||
this.localMode = "edit";
|
|
||||||
}
|
|
||||||
},
|
|
||||||
handleDel() {
|
|
||||||
this.$confirm(`确定删除吗?`, "提示", {
|
|
||||||
type: "warning",
|
|
||||||
})
|
|
||||||
.then(()=>{
|
|
||||||
this.$API.pum.supplieraudit.delete.req(this.formData.id).then(res=>{
|
|
||||||
this.$message.success("删除成功");
|
|
||||||
this.$emit('success');
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
async submit_b_func() {
|
|
||||||
if (this.localMode == "add") {
|
|
||||||
let res = await this.$API.pum.supplieraudit.create.req(this.formData);
|
|
||||||
this.ticketTitle = this.formData.name + "的供应商审核";
|
|
||||||
this.formData.id = res.id;
|
|
||||||
return res.id;
|
|
||||||
} else if (this.localMode == "edit") {
|
|
||||||
console.log(this.formData);
|
|
||||||
this.$message.error("不支持编辑");
|
|
||||||
throw new Error("不支持编辑");
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
@ -114,7 +114,7 @@
|
||||||
<el-switch v-model="addForm.field_require_check"></el-switch>
|
<el-switch v-model="addForm.field_require_check"></el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="提交时调用" prop="on_submit_func">
|
<el-form-item label="提交时调用" prop="on_submit_func">
|
||||||
<el-input v-model="addForm.on_submit_func" placeholder="提交时调用" clearable/>
|
<el-input v-model="addForm.on_submit_func" placeholder="提交时调用"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div style="text-align: right">
|
<div style="text-align: right">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue