Commit c63a00af authored by zhengke's avatar zhengke

修改

parent 3f0b3215
......@@ -62,7 +62,7 @@
</backinfoForm>
</div>
<div v-if="tabCheck=='second'">
 <backflowForm :seting-obj="setingObj" :showType="showType" @close="closeShenheForm" @success="refreshPage">
 <backflowForm :seting-obj="setingObj" :showType="showType" :Id="Id" @close="closeShenheForm" @success="refreshPage">
</backflowForm>
</div>
</q-card>
......@@ -85,6 +85,10 @@
showType: {
type: Number,
default: 1
},
Id:{
type: Number,
default: null
}
},
components: {
......
......@@ -148,12 +148,12 @@
<script>
import {
queryBackBillAduitInfo
} from '../../api/sale/bill'
GetEduReceiptInfo
} from '../../api/teacher/index'
export default {
props: {
setingObj: {
type: Object,
Id: {
type: Number,
default: null
}
},
......@@ -164,24 +164,25 @@
return {
persistent: true,
qMsg: {
BackId: 0
Id: 0
},
DataList: []
}
},
created() {
this.qMsg.BackId = this.setingObj.BackId;
this.qMsg.Id = this.Id;
},
mounted() {
this.getStuBaclFlow();
},
methods: {
getStuBaclFlow() {
queryBackBillAduitInfo(this.qMsg).then(res => {
GetEduReceiptInfo (this.qMsg).then(res => {
if (res.Code == 1) {
this.DataList = res.Data;
console.log(res,'数据');
this.DataList = res.Data
}
})
}).catch(() => {})
}
},
}
......
......@@ -25,11 +25,11 @@
</div>
<div class="col-3">
<q-select @input="resetSearch" filled v-model="msg.AuditStatus" :options="ShowOpts"
emit-value map-options label="流程状态" />
emit-value map-options label="审核状态" />
</div>
<div class="col-3">
<q-select @input="resetSearch" option-value="Id" option-label="Name" filled v-model="aa" :options="OrderTypeList"
emit-value map-options label="订单类型" />
<q-select @input="resetSearch" option-value="Id" option-label="Name" filled v-model="msg.ReceiptType" :options="OrderTypeList"
emit-value map-options label="单据类型" />
</div>
<div class="col-3 Sysuser_Date">
<q-field filled>
......@@ -39,7 +39,6 @@
 </el-date-picker>       
</template>
</q-field>
<span @click="goDetail()">跳转</span>
</div>
</div>
</div>
......@@ -82,7 +81,7 @@
</q-td>
</template>
</q-table>
<backbill-form v-if="isShowBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
<backbill-form v-if="isShowBillForm" :seting-obj="billObj" :Id="Id" :showType="showType" @close="closeBillForm"
@success="refreshPage">
</backbill-form>
<createbackbill-form v-if="isShowCreateBillForm" :seting-obj="billObj" @close="closeBillForm"
......@@ -94,8 +93,7 @@
<script>
import {
GetEducationReceiptPage,
GetEducationReceiptType,
GetEduReceiptInfo
GetEducationReceiptType
} from '../../api/teacher/index'
import backbillForm from '../../components/sale/backbill-form';
......@@ -112,6 +110,11 @@
return {
currentUrl: "",
columns: [{
name: 'Id',
label: '单号',
field: 'Id',
align: 'left'
},{
name: 'Title',
label: '标题',
field: 'Title',
......@@ -150,10 +153,7 @@
data: [],
loading: true,
applyDateList: [], //申请日期
ShowOpts: [{
label: '全部',
value: '0'
},
ShowOpts: [
{
label: '审核中',
value: '1'
......@@ -176,10 +176,11 @@
pageSize: 12,
rowsPerPage: 12,
ClassName: "", //学员、班级、老师名称
AuditStatus: "0", //审核状态
QStartTime: "", //开始时间
QEndTime: "", //结束时间
AuditStatus: "", //审核状态
StartTime: "", //开始时间
EndTime: "", //结束时间
Conditon: 1,
ReceiptType:'' //单据类型
},
tabCheck: "1",
pageCount: 0,
......@@ -188,7 +189,7 @@
billObj: {}, //单据信息
showType: 1, //1-查看,2-审核
OrderTypeList: [],
aa:1
Id:0
}
},
created() {
......@@ -227,6 +228,7 @@
this.isShowBillForm = true;
this.showType = type;
this.billObj = item.DataObj;
this.Id = item.Id;
},
//重新查询
resetSearch() {
......@@ -245,11 +247,11 @@
this.pageCount = 0;
this.msg.Conditon = this.tabCheck;
if (this.applyDateList && this.applyDateList.length > 0) {
this.msg.QStartTime = this.applyDateList[0];
this.msg.QEndTime = this.applyDateList[1];
this.msg.StartTime = this.applyDateList[0];
this.msg.EndTime = this.applyDateList[1];
} else {
this.msg.QStartTime = '';
this.msg.QEndTime = '';
this.msg.StartTime = '';
this.msg.EndTime = '';
}
GetEducationReceiptPage(this.msg).then(res => {
this.loading = false;
......@@ -272,17 +274,6 @@
this.OrderTypeList = res.Data;
}
}).catch(() => {})
},
//详情
goDetail(){
let msg={
Id:1
}
GetEduReceiptInfo (msg).then(res => {
if (res.Code == 1) {
console.log(res,'数据');
}
}).catch(() => {})
}
},
watch: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment