|
@@ -135,6 +135,21 @@
|
|
|
</div>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
+ <br>
|
|
|
+ <Row class="row_item">
|
|
|
+ <Col span="24" class="item">
|
|
|
+ <div>
|
|
|
+ <div style='display:flex'>
|
|
|
+ <label style="margin-left:0px;width:112px">付款记录:</label>
|
|
|
+ </div>
|
|
|
+ <Table :data='payTableData' :columns='payTableColumns' width='800' border style="margin-left:5.8vw">
|
|
|
+ <template slot="set" slot-scope="{row,index}">
|
|
|
+ <a style="margin-right:10px" @click="handleFile(row,1,index)">查看附件</a>
|
|
|
+ </template>
|
|
|
+ </Table>
|
|
|
+ </div>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
<br>
|
|
|
<Row class="row_item" v-if="type==3">
|
|
|
<Col span="6" class="item">
|
|
@@ -203,6 +218,20 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</Modal>
|
|
|
+ <Modal v-model="show_tableFile" width='35' :mask-closable='false' :closable='false'>
|
|
|
+ <div slot="header" style="text-align:center">
|
|
|
+ 查看附件
|
|
|
+ </div>
|
|
|
+ <div slot="footer" style="text-align:center">
|
|
|
+ <Button @click="show_tableFile=false" style="width:4vw">取消</Button>
|
|
|
+ </div>
|
|
|
+ <div class="total_img" style="max-height:400px;overflow:auto">
|
|
|
+ <div v-for="(_item,_index) in tableUrl" :key="_index" class="img_item">
|
|
|
+ <img @click="looks(_item.url,_item.is_pic)" :src="_item.is_pic?$store.state.ip + _item.url:require('./../../assets/imgs/file.jpg')" alt="" class="img_content"/>
|
|
|
+ <div class="img_title"><a @click="exportData(`${$store.state.ip}${_item.url}`,_item.is_pic,_item.name)">{{_item.name}}</a></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </Modal>
|
|
|
<Modal title="提交审批" v-model="show_submit">
|
|
|
<Form :label-width='100'>
|
|
|
<FormItem label="审批人:">
|
|
@@ -223,6 +252,19 @@
|
|
|
export default {
|
|
|
data(){
|
|
|
return{
|
|
|
+ tableUrl:[],
|
|
|
+ show_tableFile:false,
|
|
|
+ payTableData:[],
|
|
|
+ payTableColumns:[
|
|
|
+ {title:'序号',type:'index',align:'center',minWidth:80},
|
|
|
+ {title:'付款时间',key:'pay_time',minWidth:120,align:'center',render:(h,params)=>{
|
|
|
+ const {row} = params;
|
|
|
+ return h('span',{},this.func.replaceDateNoHMS(row.pay_time))
|
|
|
+ }},
|
|
|
+ {title:'付款金额',key:'price',minWidth:120,align:'center'},
|
|
|
+ {title:'未付金额',key:'un_price',minWidth:120,align:'center'},
|
|
|
+ {title:'操作',key:'set',minWidth:200,align:'center',slot:'set'},
|
|
|
+ ],
|
|
|
show_submit:false,
|
|
|
check_id:'',
|
|
|
state:'',
|
|
@@ -360,6 +402,17 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods:{
|
|
|
+ handleFile(row,index){
|
|
|
+ //type 1 check 2edit
|
|
|
+ if(row.url.length==0){
|
|
|
+ return this.$Message.warning('无附件!')
|
|
|
+ }
|
|
|
+ this.tableState = type;
|
|
|
+ this.tableUrl = row.url;
|
|
|
+ this.tableIndex = index;
|
|
|
+ this.show_tableFile = true;
|
|
|
+
|
|
|
+ },
|
|
|
showSubmit(){
|
|
|
if(this.state==0||this.state==2){
|
|
|
this.show_submit = true;
|
|
@@ -425,6 +478,7 @@ initData(){
|
|
|
this.formData.crt_time =Number(this.formData.crt_time)? this.func.replaceDate(this.formData.crt_time):'';
|
|
|
this.formData.upd_time =Number(this.formData.upd_time)? this.func.replaceDate(this.formData.upd_time):'';
|
|
|
// this.formData.invoice_type = [this.formData.invoice_type];
|
|
|
+ this.payTableData = res.data.payData||[];
|
|
|
this.digitUppercase(this.formData.apply_price);
|
|
|
delete this.formData.children;
|
|
|
})
|