|
|
@@ -62,6 +62,21 @@
|
|
|
<el-button size="small" @click="dialogVisible = false">取消</el-button>
|
|
|
<el-button size="small" type="primary" @click="onSubmit">保存</el-button>
|
|
|
</span>
|
|
|
+</el-dialog>
|
|
|
+<el-dialog
|
|
|
+ :visible.sync="dialogVisibleBatch"
|
|
|
+ width="30%"
|
|
|
+ :before-close="handleCloseBatch">
|
|
|
+ <span v-if="batchData.totalAmount">总手续费 :{{ batchData.totalAmount }}</span>
|
|
|
+ <el-upload style="margin-top:20px" action="#" class="upload-demo" :limit="1" :auto-upload="false"
|
|
|
+ :on-change="drivingupload" ref="upload3" :file-list="fileList">
|
|
|
+ <el-button size="small" type="primary">点击上传</el-button>
|
|
|
+ <!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div> -->
|
|
|
+ </el-upload>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="dialogVisibleBatch = false">取 消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="handleSumbit()">确 定</el-button>
|
|
|
+ </span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -82,9 +97,12 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ dialogVisibleBatch:false,
|
|
|
+ fileList:[],
|
|
|
formDataList:{},
|
|
|
dialogVisible:false,
|
|
|
formDataId:'',
|
|
|
+ batchData:{},
|
|
|
moneyList:{},
|
|
|
searchData:{},
|
|
|
formList:[
|
|
|
@@ -334,6 +352,42 @@ export default {
|
|
|
this.findPage();
|
|
|
},
|
|
|
methods: {
|
|
|
+ drivingupload(file, fileList){
|
|
|
+ this.fileList=[]
|
|
|
+ const params = new FormData(); // 声明formData数据类型
|
|
|
+ params.append("multipartFile", file.raw);
|
|
|
+ params.append("type", "image");
|
|
|
+ this.$api.task.bxImportData(params).then(res => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ this.batchData =res.data
|
|
|
+ this.fileList = fileList
|
|
|
+ this.fileList = fileList
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.fileList=[]
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleSumbit(){
|
|
|
+ this.$api.task.batchInvoicing( {ids:this.batchData.ids})
|
|
|
+ .then(res => {
|
|
|
+ if (res.code==200) {
|
|
|
+ this.$message({
|
|
|
+ message: '批量开票成功' || res.msg,
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ this.findPage()
|
|
|
+ this.dialogVisibleBatch=false
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleCloseBatch(){
|
|
|
+ this.dialogVisibleBatch=false
|
|
|
+ },
|
|
|
// 查询
|
|
|
handleSearchList(data) {
|
|
|
let signDateStart=''
|
|
|
@@ -441,7 +495,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
balanceFunPro(){
|
|
|
- this.assembly('batchInvoicing',2)
|
|
|
+ // this.assembly('batchInvoicing',2)
|
|
|
+ this.fileList=[]
|
|
|
+ this.dialogVisibleBatch=true
|
|
|
+
|
|
|
},
|
|
|
haldUpload(row){
|
|
|
this.formDataId=row.id
|