diff --git a/components/filePreview.vue b/components/filePreview.vue
new file mode 100644
index 0000000..4c06498
--- /dev/null
+++ b/components/filePreview.vue
@@ -0,0 +1,50 @@
+
+
+ {{fileName}}
+
+
+
+
diff --git a/pages/hrm/resignation_form.vue b/pages/hrm/resignation_form.vue
index 7a0ea48..dbe349c 100644
--- a/pages/hrm/resignation_form.vue
+++ b/pages/hrm/resignation_form.vue
@@ -2,41 +2,37 @@
-
+
-
+
+ {{form.employee_name}}
-
+
+ {{form.belong_dept_name}}
-
+
+ {{form.post_name}}
{{form.end_date}}
-
+
+
+ {{form.reason}}
-
-
-
-
+
{{form.handle_date}}
@@ -108,20 +104,16 @@ import {actStateEnum} from "@/utils/enum.js"
this.form.employee = res.id;
this.mode = "add";
},
- async handleDel(){
+ async submit_b_func(id){
let that = this;
- 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()
+ 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;
+ }
+ }
},
}
}
diff --git a/pages/ofm/borrowfile_form.vue b/pages/ofm/borrowfile_form.vue
index be59d68..989fdec 100644
--- a/pages/ofm/borrowfile_form.vue
+++ b/pages/ofm/borrowfile_form.vue
@@ -6,26 +6,36 @@
+
+ {{item}}
+ 、
+
+
-
+
+ {{form.contacts}}
-
+
{{form.borrow_date}}
-
-
+
+
+ {{form.count}}
-
-
+
+
+
+
+
{{form.ticket_.ticket_data.return_date}}
diff --git a/pages/ofm/publicity_form.vue b/pages/ofm/publicity_form.vue
index 78a9a99..da505cb 100644
--- a/pages/ofm/publicity_form.vue
+++ b/pages/ofm/publicity_form.vue
@@ -2,41 +2,75 @@
-
+
-
+
+ {{form.title}}
-
+
+ {{ form.pfile}}
-
+
+ {{form.participants}}
-
+
+ {{form.pub_dept}}
-
+
-
+
-
+
+ {{form.other_content}}
-
+
+ {{form.report_purpose}}
-
+
-
-
+
+
+ {{form.other_content}}
-
+
+
+
+
+
+
+ 应做
+
+ 处理。
+
+
+ 涉密等级为:
+
+
+
+ ,保密期限(解密时间或解密条件)为:
+
+ ,请按总院管理要求做好保密管理。
+
+
+
+
+
+
+
+
+
+
@@ -60,18 +93,75 @@ import {actStateEnum} from "@/utils/enum.js"
form:{
id:null,
via:"",
+ vdate:"",
+ vehreg:"",
reason:"",
is_city:"",
location:"",
+ reception:"",
destination:"",
start_km:"",
- start_time:"",
+ slots:[],
},
ticket_data:{
- end_km:"",
- end_time:"",
+ end_km:0,
},
- vehicle_list:[{text: '市内', value: true},{text: '市外', value: false}],
+ showAm:false,
+ vehRegList:[],
+ hobby:[{text: '市内', value: true},{text: '市外', value: false}],
+ //凌晨0-6点
+ timesListAm:[
+ {value:0,label:'00:00-00:30',isSelect:false,sloted:false},
+ {value:1,label:'00:30-01:00',isSelect:false,sloted:false},
+ {value:2,label:'01:00-01:30',isSelect:false,sloted:false},
+ {value:3,label:'01:30-02:00',isSelect:false,sloted:false},
+ {value:4,label:'02:00-02:30',isSelect:false,sloted:false},
+ {value:5,label:'02:30-03:00',isSelect:false,sloted:false},
+ {value:6,label:'03:00-03:30',isSelect:false,sloted:false},
+ {value:7,label:'03:30-04:00',isSelect:false,sloted:false},
+ {value:8,label:'04:00-04:30',isSelect:false,sloted:false},
+ {value:9,label:'04:30-05:00',isSelect:false,sloted:false},
+ {value:10,label:'05:00-05:30',isSelect:false,sloted:false},
+ {value:11,label:'05:30-06:00',isSelect:false,sloted:false}
+ ],
+ timesListPm:[
+ {value:12,label:'06:00-06:30',isSelect:false,sloted:false},
+ {value:13,label:'06:30-07:00',isSelect:false,sloted:false},
+ {value:14,label:'07:00-07:30',isSelect:false,sloted:false},
+ {value:15,label:'07:30-08:00',isSelect:false,sloted:false},
+ {value:16,label:'08:00-08:30',isSelect:false,sloted:false},
+ {value:17,label:'08:30-09:00',isSelect:false,sloted:false},
+ {value:18,label:'09:00-09:30',isSelect:false,sloted:false},
+ {value:19,label:'09:30-10:00',isSelect:false,sloted:false},
+ {value:20,label:'10:00-10:30',isSelect:false,sloted:false},
+ {value:21,label:'10:30-11:00',isSelect:false,sloted:false},
+ {value:22,label:'11:00-11:30',isSelect:false,sloted:false},
+ {value:23,label:'11:30-12:00',isSelect:false,sloted:false},
+ {value:24,label:'12:00-12:30',isSelect:false,sloted:false},
+ {value:25,label:'12:30-13:00',isSelect:false,sloted:false},
+ {value:26,label:'13:00-13:30',isSelect:false,sloted:false},
+ {value:27,label:'13:30-14:00',isSelect:false,sloted:false},
+ {value:28,label:'14:00-14:30',isSelect:false,sloted:false},
+ {value:29,label:'14:30-15:00',isSelect:false,sloted:false},
+ {value:30,label:'15:00-15:30',isSelect:false,sloted:false},
+ {value:31,label:'15:30-16:00',isSelect:false,sloted:false},
+ {value:32,label:'16:00-16:30',isSelect:false,sloted:false},
+ {value:33,label:'16:30-17:00',isSelect:false,sloted:false},
+ {value:34,label:'17:00-17:30',isSelect:false,sloted:false},
+ {value:35,label:'17:30-18:00',isSelect:false,sloted:false},
+ {value:36,label:'18:00-18:30',isSelect:false,sloted:false},
+ {value:37,label:'18:30-19:00',isSelect:false,sloted:false},
+ {value:38,label:'19:00-19:30',isSelect:false,sloted:false},
+ {value:39,label:'19:30-20:00',isSelect:false,sloted:false},
+ {value:40,label:'20:00-20:30',isSelect:false,sloted:false},
+ {value:41,label:'20:30-21:00',isSelect:false,sloted:false},
+ {value:42,label:'21:00-21:30',isSelect:false,sloted:false},
+ {value:43,label:'21:30-22:00',isSelect:false,sloted:false},
+ {value:44,label:'22:00-22:30',isSelect:false,sloted:false},
+ {value:45,label:'22:30-23:00',isSelect:false,sloted:false},
+ {value:46,label:'23:00-23:30',isSelect:false,sloted:false},
+ {value:47,label:'23:30-24:00',isSelect:false,sloted:false}
+ ]
}
},
async onLoad(options) {
@@ -82,6 +172,13 @@ import {actStateEnum} from "@/utils/enum.js"
if(that.mode != "add"){
if(that.t_id) {
that.form = await that.$api.vehicleItem(that.t_id);
+ that.form.slots.forEach(slot=>{
+ if(slot<12){
+ that.timesListAm[slot].sloted = true;
+ }else{
+ that.timesListPm[slot].sloted = true;
+ }
+ })
if(that.form.ticket_.state_.type == 1 && that.form.create_by == uni.getStorageSync("userInfo").id ) {
that.mode = "edit";
}else{
@@ -91,7 +188,111 @@ import {actStateEnum} from "@/utils/enum.js"
}
}
},
+ mounted() {
+ this.form.belong_dept = uni.getStorageSync("userInfo").belong_dept;
+ this.getVehRegList();
+ },
methods:{
+ showAmChange(){
+ this.showAm = !this.showAm;
+ },
+ getVehRegList(){
+ let that = this;
+ that.$api.vehRegList({page:0}).then(res=>{
+ res.forEach(item=>{
+ item.text = item.name;
+ item.value = item.id;
+ })
+ that.vehRegList = res;
+ })
+ },
+ vehregChange(){
+ let that = this;
+ that.vehRegList.forEach(item=>{
+ if(item.id == that.form.vehreg){
+ that.mroomName = item.name;
+ that.bookingTitle = item.name+"预定";
+ if(that.form.vdate!==''&&that.form.vdate!==null){
+ that.getmVehicleSlot();
+ }
+ }
+ })
+ },
+ vdateChange(){
+ let that = this;
+ if(that.form.vehreg!==''&&that.form.vehreg!==null){
+ that.getmVehicleSlot();
+ }
+ },
+ getmVehicleSlot(){
+ let that = this;
+ let form = {};
+ form.page = 0;
+ form.vehreg = that.form.vehreg;
+ form.vdate = that.form.vdate;
+ console.log('that.form',that.form)
+ that.timesListAm.forEach(slot=>{
+ slot.sloted = false;
+ })
+ that.timesListPm.forEach(slot=>{
+ slot.sloted = false;
+ })
+ that.$api.vehicleSlot(form).then(res=>{
+ res.forEach(item=>{
+ if(item.slot<12){
+ if(item.booking == that.form.id) {
+ that.timesListAm[item.slot].isSelect = true;
+ }else{
+ that.timesListAm[item.slot].sloted = true;
+ }
+ }else{
+ if(item.booking == that.form.id) {
+ that.timesListPm[item.slot-12].isSelect = true;
+ }else{
+ that.timesListPm[item.slot-12].sloted = true;
+ }
+ }
+ })
+ })
+ },
+ timeItemClickAm(index){
+ if(this.timesListPm[index].sloted){
+
+ }else{
+ this.timesListAm[index].isSelect = !this.timesListAm[index].isSelect;
+ this.clickItems();
+ }
+ },
+ timeItemClickPm(index){
+ if(this.timesListPm[index].sloted){
+
+ }else{
+ this.timesListPm[index].isSelect = !this.timesListPm[index].isSelect;
+ this.clickItems();
+ }
+ },
+ clickItems(){
+ let that = this;
+ that.selectList = [];
+ let lists = [],slots=[];
+ that.timesListAm.forEach(item=>{
+ if(item.isSelect){
+ lists.push(item)
+ slots.push(item.value);
+ }
+ })
+ that.timesListPm.forEach(item2=>{
+ if(item2.isSelect){
+ lists.push(item2)
+ slots.push(item2.value);
+ }
+ })
+ setTimeout(()=>{
+ that.totalCount = slots.length*0.5;
+ that.selectList = lists;
+ that.form.slots = slots;
+ },500)
+ },
//选择会议室和日期后查询有无预定
async submit_b_func(id){
let that = this;
@@ -114,5 +315,50 @@ import {actStateEnum} from "@/utils/enum.js"
\ No newline at end of file
diff --git a/pages/pum/supplieraudit_form.vue b/pages/pum/supplieraudit_form.vue
index cb4af88..07deb3f 100644
--- a/pages/pum/supplieraudit_form.vue
+++ b/pages/pum/supplieraudit_form.vue
@@ -5,31 +5,38 @@
-
+
+ {{form.name}}
-
+
+ {{form.material_cate}}
-
+
+ {{form.material_name}}
-
-
+
+
+
+
+ 无
+
+
-
-
+
+
+
-
-
+
+
+
@@ -39,8 +46,9 @@ 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 },
+ components: { ticketd_b, ticketd, xtUpload,filePreview },
data(){
return{
saveLoading: false,
@@ -48,10 +56,16 @@ import xtUpload from "@/components/xtUpload.vue"
t_id: null,
form:{
name:"",
- material_type:"",
+ material_cate:"",
material_name:"",
+ survery_form:"",
+ business_license:"",
+ quality_certificate:"",
},
userInfo:{},
+ survery_form:{},
+ business_license:{},
+ quality_certificate:{},
type:0,
header:"",
customRules: {
@@ -86,24 +100,20 @@ import xtUpload from "@/components/xtUpload.vue"
}
},
methods:{
- handleSave(){
+ async submit_b_func(id){
let that = this;
- that.$refs.customForm.validate().then(res => {
- that.saveLoading = true;
- that.$api.supplierauditCreate(that.form).then(res => {
- that.saveLoading = false;
- uni.showToast({
- title: '提交成功',
- icon: 'success'
- });
- uni.navigateBack()
- }).catch(e=>{
- that.saveLoading = false;
- console.log('err', err);
- })
-
- }).catch(err => {
- console.log('err', err);
+ if (that.mode != 'show') {
+ if(that.form.id) {
+ await that.$api.supplierauditUpdate(that.form.id, that.form);
+ }else{
+ let res = await that.$api.supplierauditCreate(that.form);
+ that.form.id = res.id;
+ }
+ }
+ },
+ submitSuccess(){
+ uni.navigateTo({
+ url: "/pages/index/index"
})
},
}
diff --git a/pages/srm/paperse_form.vue b/pages/srm/paperse_form.vue
index 5ddfe4a..016b270 100644
--- a/pages/srm/paperse_form.vue
+++ b/pages/srm/paperse_form.vue
@@ -2,47 +2,52 @@
-
+
-
-
+
+
+ {{form.paper_name}}
-
-
+
+
+ {{form.organization}}
+
+
+
+ {{form.publication_name}}
-
+
+ {{form.author}}
-
-
+
+
-
-
+
+
-
-
-
-
-
+
+
-
+
-
+
+
-
+
@@ -54,20 +59,21 @@ import ticketd from "../wf/ticketd.vue"
import config from '/utils/config';
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 },
+ components: { ticketd_b, ticketd,xtUpload,filePreview },
data(){
return{
mode:"add",
t_id: null,
form:{
- name:"",
+ paper_name:"",
author:"",
- type:"",
- is_public:false,
- area:"",
- other_area:"",
- belong_dept:"",
+ organization:"",
+ publication_name:"",
+ paper_type:"",
+ is_chinese_core:false,
+ is_sci:false,
tech_status:[],
tech_file:[],
},
@@ -131,12 +137,9 @@ import xtUpload from "@/components/xtUpload.vue"
else if(item.name=='是否参与应用于生产/销售'){index=3}
else if(item.name=='是否参与过技术交流'){index=4}
that.hobby4[index][0].file = item.file;
- that.hobby4[index][0].checked = item.checked;
- that.hobby4[index][0].status = [];
if(item.status=='是'){
that.hobby4[index][0].status.push(item.status)
let obj = {name:item.file,path:item.file};
- that.hobby4[index][0].file =obj;
that.hobby4[index][0].files.push(obj)
}
})
@@ -151,7 +154,7 @@ import xtUpload from "@/components/xtUpload.vue"
that.hobby5[index2][0].name.push(item2.name);
}
})
- if(that.form.ticket_.state_.type == 1 && that.form.create_by == uni.getStorageSync("userInfo").id ) {
+ if(that.form.ticket_&&that.form.ticket_.state_&&that.form.ticket_.state_.type == 1 && that.form.create_by == uni.getStorageSync("userInfo").id ) {
that.mode = "edit";
}else{
that.mode = "show";
@@ -159,75 +162,25 @@ import xtUpload from "@/components/xtUpload.vue"
}
}
},
+ // mounted() {
+ // this.form.belong_dept = uni.getStorageSync("userInfo").belong_dept;
+ // },
methods:{
- checkChange(e){
- console.log('e',e)
- },
- sealChange(){
- console.log('seal1',this.seal1)
- },
- fileSelect(e,index){
- console.log('fileSelect',e)
- console.log('fileSelectindex',index)
- this.uploadFile(e,index)
- },
- fileSuccess(e){
- console.log('fileSuccess',e)
- },
- uploadFile(e,index) {
- let that = this;
- if (e.tempFiles.length === 0) {
- uni.showToast({
- title: '请先选择文件',
- icon: 'none',
- });
- return;
- }
- // 获取第一个选择的文件
- const file = e.tempFiles[0];
- let fieldName = 'file';
- let filePath = file.url;
- // 上传文件
- uni.uploadFile({
- url: `${config.baseUrl}/file/`,
- filePath: filePath,
- name: fieldName,
- formData: {},
- header: that.header,
- success: (uploadRes) => {
- // 上传成功后的回调
- const data = JSON.parse(uploadRes.data);
- if(data){
- that.hobby4[index][0].file ={name:data.name,path:data.path} ;
- uni.showToast({
- title: '上传成功',
- icon: 'success',
- });
- }
- },
- });
- },
async submit_b_func(id){
let that = this;
console.log('that.form',that.form)
let tech_file = [],tech_status=[];
that.hobby4.forEach(item4=>{
let obj4 = {};
- if(item4[0].status.length>0){
- obj4.name = item4[0].text;
- obj4.status = '是';
- obj4.file = item4[0].file.path;
- }else{
- obj4.name = item4[0].text;
- obj4.status = '否';
- obj4.file = "";
- }
+ obj4.name = item4[0].text;
+ obj4.file = item4[0].file?item4[0].file:"";
+ obj4.status = item4[0].status.length>0?"是":"";
tech_status.push(obj4)
})
that.hobby5.forEach(item5=>{
let obj5 = {};
obj5.name = item5[0].text;
- obj5.pages = item5[0].pages;
+ obj5.pages = item5[0].name.length>0?item5[0].pages:"";
obj5.checked = item5[0].name.length>0?true:false;
tech_file.push(obj5)
})
diff --git a/pages/srm/patent_form.vue b/pages/srm/patent_form.vue
index 745995d..faf0a67 100644
--- a/pages/srm/patent_form.vue
+++ b/pages/srm/patent_form.vue
@@ -5,34 +5,42 @@
-
+
+ {{form.name}}
+
+
+
+ {{form.organization}}
-
+
+ {{form.author}}
-
+
-
+
-
+
-
-
+
+
+ {{form.other_area}}
-
+
-
+
+
-
+
@@ -51,8 +59,9 @@ import ticketd from "../wf/ticketd.vue"
import config from '/utils/config';
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 },
+ components: { ticketd_b, ticketd,xtUpload,filePreview },
data(){
return{
mode:"add",
@@ -159,6 +168,9 @@ import xtUpload from "@/components/xtUpload.vue"
}
}
},
+ mounted() {
+ this.form.belong_dept = uni.getStorageSync("userInfo").belong_dept;
+ },
methods:{
checkChange(e){
console.log('e',e)
@@ -166,68 +178,21 @@ import xtUpload from "@/components/xtUpload.vue"
sealChange(){
console.log('seal1',this.seal1)
},
- fileSelect(e,index){
- console.log('fileSelect',e)
- console.log('fileSelectindex',index)
- this.uploadFile(e,index)
- },
- fileSuccess(e){
- console.log('fileSuccess',e)
- },
- uploadFile(e,index) {
- let that = this;
- if (e.tempFiles.length === 0) {
- uni.showToast({
- title: '请先选择文件',
- icon: 'none',
- });
- return;
- }
- // 获取第一个选择的文件
- const file = e.tempFiles[0];
- let fieldName = 'file';
- let filePath = file.url;
- // 上传文件
- uni.uploadFile({
- url: `${config.baseUrl}/file/`,
- filePath: filePath,
- name: fieldName,
- formData: {},
- header: that.header,
- success: (uploadRes) => {
- // 上传成功后的回调
- const data = JSON.parse(uploadRes.data);
- if(data){
- that.hobby4[index][0].file ={name:data.name,path:data.path} ;
- uni.showToast({
- title: '上传成功',
- icon: 'success',
- });
- }
- },
- });
- },
async submit_b_func(id){
let that = this;
console.log('that.form',that.form)
let tech_file = [],tech_status=[];
that.hobby4.forEach(item4=>{
let obj4 = {};
- if(item4[0].status.length>0){
- obj4.name = item4[0].text;
- obj4.status = '是';
- obj4.file = item4[0].file.path;
- }else{
- obj4.name = item4[0].text;
- obj4.status = '否';
- obj4.file = "";
- }
+ obj4.name = item4[0].text;
+ obj4.file = item4[0].file?item4[0].file:"";
+ obj4.status = item4[0].status.length>0?"是":"";
tech_status.push(obj4)
})
that.hobby5.forEach(item5=>{
let obj5 = {};
obj5.name = item5[0].text;
- obj5.pages = item5[0].pages;
+ obj5.pages = item5[0].name.length>0?item5[0].pages:"";
obj5.checked = item5[0].name.length>0?true:false;
tech_file.push(obj5)
})
diff --git a/pages/srm/plat_form.vue b/pages/srm/plat_form.vue
index 2f7fec9..1740d45 100644
--- a/pages/srm/plat_form.vue
+++ b/pages/srm/plat_form.vue
@@ -4,38 +4,42 @@
+
+
+ {{form.name}}
+
-
+
+ {{form.p_date}}
-
-
-
-
+
+ {{form.p_dept}}
-
+
+ {{form.const}}
-
+
-
+
+
+
+
+ {{form.charge}}
-
+
+ {{form.condition}}
@@ -52,19 +56,19 @@ import {actStateEnum} from "@/utils/enum.js"
mode:"add",
t_id: null,
form:{
- id:null,
- file:"",
- filename:"",
- file_count:"",
- is_lending:false,
- contacts:"",
- belong_dept:"",
- ticket_:null,
+ name:"",
+ p_date:"",
+ condition:"",
+ p_dept:"",
+ const:"",
+ charge:"",
+ city_p:false,
+ province_p:false,
},
type:0,
hobby: [
- {text: '是',value: 'true'},
- {text: '否',value: 'false'},
+ {text: '是',value:true},
+ {text: '否',value: false},
],
deptList:[],
header:"",
@@ -91,7 +95,7 @@ import {actStateEnum} from "@/utils/enum.js"
that.t_id = options.t_id?options.t_id:null;
if(that.mode != "add"){
if(that.t_id) {
- that.form = await that.$api.sealItem(that.t_id);
+ that.form = await that.$api.pfItem(that.t_id);
if(that.form.ticket_.state_.type == 1 && that.form.create_by == uni.getStorageSync("userInfo").id ) {
that.mode = "edit";
}else{
@@ -118,9 +122,9 @@ import {actStateEnum} from "@/utils/enum.js"
})
if (that.mode != 'show') {
if(that.form.id) {
- await that.$api.patentUpdate(that.form.id, that.form)
+ await that.$api.pfUpdate(that.form.id, that.form)
}else{
- let res = await that.$api.patentCreate(that.form)
+ let res = await that.$api.pfCreate(that.form)
that.form.id = res.id;
}
}
diff --git a/utils/api.js b/utils/api.js
index 462e787..a1a507c 100644
--- a/utils/api.js
+++ b/utils/api.js
@@ -53,9 +53,10 @@ export default {
publicItem:(id,data) => http(`/ofm/publicity/${id}/`, 'GET', data),
publicDelete:(id) => http(`/ofm/publicity/${id}/`, 'DELETE'),
//用车申请
- vehicleList:(data) => http(`/ofm/vehicle/`, 'GET' , data),
- vehicleCreate:(data) => http(`/ofm/vehicle/`, 'POST' , data),
- vehicleItem:(id,data) => http(`/ofm/vehicle/${id}/`, 'GET', data),
+ vehicleSlot:(data) => http(`/ofm/vsolt/`, 'GET' , data),
+ vehRegList:(data) => http(`/ofm/vehicle/`, 'GET' , data),
+ vehicleCreate:(data) => http(`/ofm/vehicle-use/`, 'POST' , data),
+ vehicleItem:(id,data) => http(`/ofm/vehicle-use/${id}/`, 'GET', data),
vehicleDelete:(id) => http(`/ofm/vehicle/${id}/`, 'DELETE'),
//专利审批
patentList:(data) => http(`/srm/patentinfo/`, 'GET' , data),
@@ -70,6 +71,7 @@ export default {
//平台审批
pfList:(data) => http(`/srm/pf/`, 'GET' , data),
pfCreate:(data) => http(`/srm/pf/`, 'POST' , data),
+ pfUpdate:(id,data) => http(`/srm/pf/${id}/`, 'PUT', data),
pfItem:(id,data) => http(`/srm/pf/${id}/`, 'GET', data),
pfDelete:(id) => http(`/srm/pf/${id}/`, 'DELETE'),
//离职申请
@@ -77,12 +79,8 @@ export default {
resignationCreate:(data) => http(`/hrm/resignation/`, 'POST' , data),
resignationItem:(id,data) => http(`/hrm/resignation/${id}/`, 'GET', data),
resignationDelete:(id) => http(`/hrm/resignation/${id}/`, 'DELETE'),
- //供应商申请
- resignationList:(data) => http(`/hrm/resignation/`, 'GET' , data),
- resignationCreate:(data) => http(`/hrm/resignation/`, 'POST' , data),
- resignationItem:(id,data) => http(`/hrm/resignation/${id}/`, 'GET', data),
- resignationDelete:(id) => http(`/hrm/resignation/${id}/`, 'DELETE'),
//供应商审核
supplierauditCreate:(data) => http(`/pum/supplieraudit/`, 'POST' , data),
supplierauditItem:(id,data) => http(`/pum/supplieraudit/${id}/`, 'GET', data),
+ supplierauditUpdate:(id,data) => http(`/pum/supplieraudit/${id}/`, 'PUT', data),
}
\ No newline at end of file