diff --git a/pages/hrm/resignation_form.vue b/pages/hrm/resignation_form.vue
index dbe349c..fe538f9 100644
--- a/pages/hrm/resignation_form.vue
+++ b/pages/hrm/resignation_form.vue
@@ -2,37 +2,41 @@
-
+
-
- {{form.employee_name}}
+
-
- {{form.belong_dept_name}}
+
-
- {{form.post_name}}
+
{{form.end_date}}
-
-
- {{form.reason}}
+
-
+
+
+
+
{{form.handle_date}}
@@ -104,16 +108,20 @@ import {actStateEnum} from "@/utils/enum.js"
this.form.employee = res.id;
this.mode = "add";
},
- async submit_b_func(id){
+ async handleDel(){
let that = this;
- if (that.mode != 'show') {
- if(that.form.id) {
- await that.$api.resignationUpdate(that.form.id, that.form);
- }else{
- let res = await that.$api.resignationCreate(that.form);
- that.form.id = res.id;
- }
- }
+ await that.$api.resignationDelete(that.form.id)
+ uni.navigateBack()
+ },
+ async handleSave(){
+ let that = this;
+ that.$refs.customForm.validate().then(res => {
+
+ }).catch(err => {
+ console.log('err', err);
+ })
+ await that.$api.resignationCreate(that.form)
+ uni.navigateBack()
},
}
}
diff --git a/pages/pum/supplieraudit_form.vue b/pages/pum/supplieraudit_form.vue
index 07deb3f..c2ee39d 100644
--- a/pages/pum/supplieraudit_form.vue
+++ b/pages/pum/supplieraudit_form.vue
@@ -5,38 +5,34 @@
-
- {{form.name}}
+
-
- {{form.material_cate}}
+
-
- {{form.material_name}}
+
-
-
-
-
- 无
-
-
+
+
-
-
-
+
+
-
-
-
+
+
@@ -46,9 +42,8 @@ import ticketd_b from "../wf/ticketd_b.vue"
import ticketd from "../wf/ticketd.vue"
import {actStateEnum} from "@/utils/enum.js"
import xtUpload from "@/components/xtUpload.vue"
-import filePreview from "@/components/filePreview.vue"
export default {
- components: { ticketd_b, ticketd, xtUpload,filePreview },
+ components: { ticketd_b, ticketd, xtUpload },
data(){
return{
saveLoading: false,
@@ -56,16 +51,10 @@ import filePreview from "@/components/filePreview.vue"
t_id: null,
form:{
name:"",
- material_cate:"",
+ material_type:"",
material_name:"",
- survery_form:"",
- business_license:"",
- quality_certificate:"",
},
userInfo:{},
- survery_form:{},
- business_license:{},
- quality_certificate:{},
type:0,
header:"",
customRules: {
@@ -100,21 +89,143 @@ import filePreview from "@/components/filePreview.vue"
}
},
methods:{
- async submit_b_func(id){
+ uploadSuccess(type, e){
+ console.log('type', type, e);
+ console.log('form.material_type',this.form.material_type)
+ },
+ progress(e){
+ console.log(e)
+ },
+ async handleSave(id){
let that = this;
- if (that.mode != 'show') {
- if(that.form.id) {
- await that.$api.supplierauditUpdate(that.form.id, that.form);
+ that.$refs.customForm.validate().then(res => {
+
+ }).catch(err => {
+ console.log('err', err);
+ })
+ let res = await that.$api.supplierauditCreate(that.form)
+ },
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+