pangdongxu 3 lat temu
rodzic
commit
48c72c2657
4 zmienionych plików z 116 dodań i 118 usunięć
  1. +113
    -113
      pages/apply/paymentTemplate/add/add.js
  2. +0
    -2
      pages/bankDraft/add/add.js
  3. +2
    -2
      pages/bankDraft/add/add.wxml
  4. +1
    -1
      project.private.config.json

+ 113
- 113
pages/apply/paymentTemplate/add/add.js Wyświetl plik

@@ -311,124 +311,124 @@ Page({
let fileForm = [];

UTIL.httpRequest(
API.URL_GET_FINDLIST,
{
method:'GET',
tableName:'t_yinnong_transfer',
tableId:list.applyData.transfers[i].id,
fileType:1
},
{
success: (res) => {
// UTIL.httpRequest(
// API.URL_GET_FINDLIST,
// {
// method:'GET',
// tableName:'t_yinnong_transfer',
// tableId:list.applyData.transfers[i].id,
// fileType:1
// },
// {
// success: (res) => {
let list2 = [];
res.data.forEach((item2,index2)=>{
wx.downloadFile({
url: URL_PREFIX+item2.fileUrl, //仅为示例,并非真实的资源
success (response) {
if (response.statusCode === 200) {
fileForm.push({
file: response.tempFilePath,
fileType:'1',
bizPath:'transfer',
tableName:'t_yinnong_transfer',
tableId:''
})
console.log("--------------fileForm2 start----------------");
console.log(fileForm);
console.log("--------------fileForm2 end----------------");
list2.push({
tempFilePath:response.tempFilePath,
id:item2.id
})
list.applyData.transfers[i].SJimage = list2;
}
}
})
})
// let list2 = [];
// res.data.forEach((item2,index2)=>{
// wx.downloadFile({
// url: URL_PREFIX+item2.fileUrl, //仅为示例,并非真实的资源
// success (response) {
// if (response.statusCode === 200) {
// fileForm.push({
// file: response.tempFilePath,
// fileType:'1',
// bizPath:'transfer',
// tableName:'t_yinnong_transfer',
// tableId:''
// })
// console.log("--------------fileForm2 start----------------");
// console.log(fileForm);
// console.log("--------------fileForm2 end----------------");
// list2.push({
// tempFilePath:response.tempFilePath,
// id:item2.id
// })
// list.applyData.transfers[i].SJimage = list2;
// }
// }
// })
// })
}
})
//发票
UTIL.httpRequest(
API.URL_GET_FINDLIST,
{
method:'GET',
tableName:'t_yinnong_transfer',
tableId:list.applyData.transfers[i].id,
fileType:2
},
{
success: (res) => {
let list2 = [];
res.data.forEach((item2,index2)=>{
// }
// })
// //发票
// UTIL.httpRequest(
// API.URL_GET_FINDLIST,
// {
// method:'GET',
// tableName:'t_yinnong_transfer',
// tableId:list.applyData.transfers[i].id,
// fileType:2
// },
// {
// success: (res) => {
// let list2 = [];
// res.data.forEach((item2,index2)=>{
wx.downloadFile({
url: URL_PREFIX+item2.fileUrl, //仅为示例,并非真实的资源
success (response) {
if (response.statusCode === 200) {
fileForm.push({
file: response.tempFilePath,
fileType:'2',
bizPath:'transfer',
tableName:'t_yinnong_transfer',
tableId:''
})
console.log("--------------fileForm2 start----------------");
console.log(fileForm);
console.log("--------------fileForm2 end----------------");
list2.push({
tempFilePath:response.tempFilePath,
id:item2.id
})
list.applyData.transfers[i].FPimage = list2;
}
}
})
})
}
})
//其他
UTIL.httpRequest(
API.URL_GET_FINDLIST,
{
method:'GET',
tableName:'t_yinnong_transfer',
tableId:list.applyData.transfers[i].id,
fileType:3
},
{
success: (res) => {
let list2 = [];
res.data.forEach((item2,index2)=>{
// wx.downloadFile({
// url: URL_PREFIX+item2.fileUrl, //仅为示例,并非真实的资源
// success (response) {
// if (response.statusCode === 200) {
// fileForm.push({
// file: response.tempFilePath,
// fileType:'2',
// bizPath:'transfer',
// tableName:'t_yinnong_transfer',
// tableId:''
// })
// console.log("--------------fileForm2 start----------------");
// console.log(fileForm);
// console.log("--------------fileForm2 end----------------");
// list2.push({
// tempFilePath:response.tempFilePath,
// id:item2.id
// })
// list.applyData.transfers[i].FPimage = list2;
// }
// }
// })
// })
// }
// })
// //其他
// UTIL.httpRequest(
// API.URL_GET_FINDLIST,
// {
// method:'GET',
// tableName:'t_yinnong_transfer',
// tableId:list.applyData.transfers[i].id,
// fileType:3
// },
// {
// success: (res) => {
// let list2 = [];
// res.data.forEach((item2,index2)=>{
wx.downloadFile({
url: URL_PREFIX+item2.fileUrl, //仅为示例,并非真实的资源
success (response) {
if (response.statusCode === 200) {
fileForm.push({
file: response.tempFilePath,
fileType:'3',
bizPath:'transfer',
tableName:'t_yinnong_transfer',
tableId:''
})
console.log("--------------fileForm2 start----------------");
console.log(fileForm);
console.log("--------------fileForm2 end----------------");
list2.push({
tempFilePath:response.tempFilePath,
id:item2.id
})
list.applyData.transfers[i].QTimage = list2;
// wx.downloadFile({
// url: URL_PREFIX+item2.fileUrl, //仅为示例,并非真实的资源
// success (response) {
// if (response.statusCode === 200) {
// fileForm.push({
// file: response.tempFilePath,
// fileType:'3',
// bizPath:'transfer',
// tableName:'t_yinnong_transfer',
// tableId:''
// })
// console.log("--------------fileForm2 start----------------");
// console.log(fileForm);
// console.log("--------------fileForm2 end----------------");
// list2.push({
// tempFilePath:response.tempFilePath,
// id:item2.id
// })
// list.applyData.transfers[i].QTimage = list2;
}
}
})
})
}
})
// }
// }
// })
// })
// }
// })
list.applyData.transfers[i].id = "";
list.applyData.transfers[i].fileForm = fileForm;
}


+ 0
- 2
pages/bankDraft/add/add.js Wyświetl plik

@@ -22,8 +22,6 @@ Page({
orderStatus: "", //汇票状态 必填 1在库 2转付中 3转付 4承兑
remark: "",
},
minDate: new Date(2008, 5, 1).getTime(),
maxDate: new Date(2040, 0, 31).getTime(),
orderStatusOptions:[],
orderTypeOptions:[],
showBtn:true


+ 2
- 2
pages/bankDraft/add/add.wxml Wyświetl plik

@@ -27,10 +27,10 @@


<van-field readonly label="开票日期" value="{{ form.startTime }}" placeholder="开票日期" border="{{ false }}" bind:change="onChange" input-align="right" required data-value="form.startTime" bindtap="openBox" data-name="showStartTime"/>
<van-calendar show="{{ showStartTime }}" min-date="{{minDate}}" max-date="{{maxDate}}" bind:close="closeBox" data-name="showStartTime" bind:confirm="onConfirmTime" data-value="form.startTime" show-confirm="{{ false }}" />
<van-calendar show="{{ showStartTime }}" bind:close="closeBox" data-name="showStartTime" bind:confirm="onConfirmTime" data-value="form.startTime" show-confirm="{{ false }}" />

<van-field readonly label="到期日期" value="{{ form.endTime }}" placeholder="到期日期" border="{{ false }}" bind:change="onChange" input-align="right" required data-value="form.endTime" bindtap="openBox" data-name="showEndTime"/>
<van-calendar show="{{ showEndTime }}" min-date="{{minDate}}" max-date="{{maxDate}}" bind:close="closeBox" data-name="showEndTime" bind:confirm="onConfirmTime" data-value="form.endTime" show-confirm="{{ false }}" />
<van-calendar show="{{ showEndTime }}" bind:close="closeBox" data-name="showEndTime" bind:confirm="onConfirmTime" data-value="form.endTime" show-confirm="{{ false }}" />

<van-popup show="{{showOrderStatus}}" round position="bottom" bind:close="closeBox" data-name="showOrderStatus">
<van-picker


+ 1
- 1
project.private.config.json Wyświetl plik

@@ -149,5 +149,5 @@
},
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "WXMB",
"libVersion": "2.21.4"
"libVersion": "2.11.2"
}

Ładowanie…
Anuluj
Zapisz