|
@@ -177,14 +177,14 @@
|
|
|
return;
|
|
|
}
|
|
|
let requisitionType=this.$util.getQuery("type")-0;
|
|
|
- var dto={id:0,title:this.title,projectCode:this.projectCode,supplierCode:this.supplierCode,reason:this.reason,state:0,checkPerson:'',checkDate:null,createDate:null};
|
|
|
+ var dto={title:this.title,projectCode:this.projectCode,supplierCode:this.supplierCode,reason:this.reason,checkPerson:''};
|
|
|
|
|
|
console.info('dto',dto);
|
|
|
//return;
|
|
|
- var data={dto:dto};
|
|
|
+ //var data={dto:dto};
|
|
|
//var strList=JSON.stringify(list);
|
|
|
//var strData=JSON.stringify(data);
|
|
|
- InsertzzSupplierEx(data).then((res)=>{
|
|
|
+ InsertzzSupplierEx(dto).then((res)=>{
|
|
|
console.info("插入结果",res);
|
|
|
|
|
|
if(res){
|
|
@@ -192,7 +192,7 @@
|
|
|
_this.uploadFileToServe(res) ;
|
|
|
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages/template/supplierlist/supplierlist'
|
|
|
+ url:'/pages/template/SupplierList/SupplierList'
|
|
|
})
|
|
|
}
|
|
|
else{
|
|
@@ -236,33 +236,7 @@
|
|
|
},
|
|
|
|
|
|
openWindow:function(){
|
|
|
- let _this=this;
|
|
|
- console.info('监听事件外部this');
|
|
|
- console.info(this);
|
|
|
- this.saveTemp(_this);
|
|
|
-
|
|
|
- //创建名字为fire的监听器,监听子页面传值事件
|
|
|
- uni.$once('fire', function(data) {
|
|
|
- console.info("监听fire子页面的传值",data);
|
|
|
- //修改数据
|
|
|
- _this.contractList=[];
|
|
|
- data.forEach(function(item,index,array){
|
|
|
- //console.info("foreach");
|
|
|
- _this.$set(_this.contractList,index,item);
|
|
|
- });
|
|
|
- uni.setStorage({
|
|
|
- key:'contractList',
|
|
|
- data:_this.contractList
|
|
|
- });
|
|
|
- //dom还没更新
|
|
|
- _this.getTemp(_this);
|
|
|
- _this.needFormCach=true;
|
|
|
- console.info("监听子页面的传值结束");
|
|
|
- });
|
|
|
- //打开子页面
|
|
|
- uni.navigateTo({
|
|
|
- url:"/pages/template/GetRelationContract/GetRelationContract"
|
|
|
- })
|
|
|
+
|
|
|
},
|
|
|
|
|
|
|
|
@@ -333,7 +307,7 @@
|
|
|
|
|
|
//return;
|
|
|
for (let i = 0; i < urlList.length; i++) {
|
|
|
-
|
|
|
+ console.info('x-token',_this.$store.state.token.tokenStr);
|
|
|
uni.uploadFile({
|
|
|
url: '/api/Common/UploadImage',
|
|
|
filePath: urlList[i],
|
|
@@ -344,7 +318,8 @@
|
|
|
attachMentType:'zzSupplierExAttach'
|
|
|
},
|
|
|
headers: {
|
|
|
- 'Content-Type': 'multipart/form-data; boundary = ' + new Date().getTime()
|
|
|
+ 'Content-Type': 'multipart/form-data; boundary = ' + new Date().getTime(),
|
|
|
+ 'X-Token':_this.$store.state.token.tokenStr
|
|
|
//这里要把content-type设置为multipard/form-data,同时还要设置boundary
|
|
|
},
|
|
|
success: (uploadFileRes) => {
|