diff --git a/common/js/api.js b/common/js/api.js index 02ac0c7..8de6085 100644 --- a/common/js/api.js +++ b/common/js/api.js @@ -46,5 +46,11 @@ export default { }, invoicingrecordsthatneeddetailstore(data) { //开票详情 return uni.api.post("store/invoicingrecordsthatneeddetail", data); - } + }, + storedigitalinvoice(data) { // + return uni.api.post("store/digitalinvoice", data); + }, + szzpyissuedby(data) { //开票人列表 + return uni.api.post("szzpy/issuedby", data); + }, } \ No newline at end of file diff --git a/pages/index/Invoicing.vue b/pages/index/Invoicing.vue index 97ded76..b7bbcbf 100644 --- a/pages/index/Invoicing.vue +++ b/pages/index/Invoicing.vue @@ -4,17 +4,17 @@ *项目名称 {{ form.article || '选择项目名称' }} + style="width: 60%; overflow:hidden; font-size:32rpx;text-overflow: ellipsis;white-space: nowrap; " + v-model="form.article">{{ form.article}} 选择项目名称 *金额 - + - - *数量: + *数量 @@ -25,15 +25,21 @@ - *税额: + *税额 - *单价: + *单价 + + *开票人 + + {{ form.dlzhid || '请选择开票人' }} + + 备注: @@ -53,24 +59,28 @@ 搜索其他项目名称 - + +
\ No newline at end of file + document.write('')
\ No newline at end of file diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..a7fda56 --- /dev/null +++ b/vue.config.js @@ -0,0 +1,22 @@ +if (process.env.UNI_PLATFORM === 'h5') { + // 由于这种方式的打包,会导致编译生成微信小程序(只验证了微信小程序)无法正常使用,所以必须分开 + let filePath = '' + let Timestamp = new Date().getTime() + module.exports = { + // ... webpack 相关配置 + filenameHashing: false, + configureWebpack: { // webpack 配置 解决js缓存的问题,目前只适配H5端打包 + output: { // 输出重构 打包编译后的 文件目录 文件名称 【模块名称.时间戳】 + filename: `${filePath}[name].js?v=${Timestamp}`, + chunkFilename: `${filePath}[name].js?v=${Timestamp}` + }, + } + } +} else { + // 其他打包需要的相关配置 + //由于vue-cli打包vue文件的时候静态文件会默认会带有hash值,我们首先要去掉hash值。 + module.exports = { + // ... webpack 相关配置 + filenameHashing: false + } +} \ No newline at end of file