Commit 52b64471 authored by 罗超's avatar 罗超

1

parent b313f725
...@@ -181,42 +181,43 @@ ...@@ -181,42 +181,43 @@
</template> </template>
<template v-slot:body-cell-ClassName="props"> <template v-slot:body-cell-ClassName="props">
<q-td :props="props"> <q-td :props="props">
<div v-for="item in props.row.DetailList" :key="item.Id"> <div v-for="item in props.row.DetailList" :key="item.Id" class="td_height">
{{item.ClassName}} {{item.ClassName}}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-CourseName="props"> <template v-slot:body-cell-CourseName="props">
<q-td :props="props"> <q-td :props="props">
<div v-for="item in props.row.DetailList" :key="item.Id"> <div v-for="item in props.row.DetailList" :key="item.Id" class="td_height">
{{item.CourseName}} {{item.CourseName}}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-SuppliesName="props"> <template v-slot:body-cell-SuppliesName="props">
<q-td :props="props"> <q-td :props="props">
<div v-for="item in props.row.DetailList" :key="item.Id"> <div v-for="item in props.row.DetailList" :key="item.Id" class="td_height">
{{item.SuppliesName}} {{item.SuppliesName}}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-BrandName="props"> <template v-slot:body-cell-BrandName="props">
<q-td :props="props"> <q-td :props="props">
<div v-for="item in props.row.DetailList" :key="item.Id"> <div v-for="item in props.row.DetailList" :key="item.Id" class="td_height">
{{item.BrandName}} {{item.BrandName}}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-Number="props"> <template v-slot:body-cell-Number="props">
<q-td :props="props"> <q-td :props="props">
<div v-for="item in props.row.DetailList" :key="item.Id"> <div v-for="item in props.row.DetailList" :key="item.Id" class="td_height">
{{item.Number}} {{item.Number}}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<q-btn color="primary" size="11px" @click="goDetail(props.row)">查看详情</q-btn> <q-btn flat size="xs" icon="edit" color="accent" @click="goDetail(props.row)">详情</q-btn>
<q-btn flat size="xs" icon="edit" color="accent" style="color:#f00" @click="quxiao(props.row)" v-if="props.row.CreateBy==loginId&&props.row.AuditStatus!=2">取消</q-btn>
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
...@@ -231,24 +232,13 @@ ...@@ -231,24 +232,13 @@
</div> </div>
</template> </template>
<script> <script>
import edittransorderForm from '../../components/sale/edittransorder-form'
import viewquotationForm from '../../components/sale/viewquotation-form'
import SuppliesStockOutFrom from '../../components/sale/addSuppliesStockOut-from' import SuppliesStockOutFrom from '../../components/sale/addSuppliesStockOut-from'
//员工 import {GetSuppliesStockOutApplyForPageList,SetSuppliesStockOutApplyForState} from '../../api/sale/StockOutApplyFor'
import {
queryEmployee
} from '../../api/users/user'
import {
mapState
} from "vuex";
import {GetSuppliesStockOutApplyForPageList} from '../../api/sale/StockOutApplyFor'
export default { export default {
meta: { meta: {
title: "出库管理" title: "出库管理"
}, },
components: { components: {
edittransorderForm,
viewquotationForm,
SuppliesStockOutFrom SuppliesStockOutFrom
}, },
data() { data() {
...@@ -365,15 +355,16 @@ ...@@ -365,15 +355,16 @@
align: "left", align: "left",
} }
], ],
showaddStockOut:false showaddStockOut:false,
loginId:0,
} }
}, },
mounted() { mounted() {
this.getSuppliesStockOutApplyForPageList(); this.getSuppliesStockOutApplyForPageList();
this.loginId= JSON.parse(localStorage.getItem('loginUserInfo')).data.Id
}, },
methods: { methods: {
//跳转详情 //跳转详情
goDetail(item) { goDetail(item) {
this.$router.push({ this.$router.push({
...@@ -425,12 +416,48 @@ ...@@ -425,12 +416,48 @@
}, },
closePop(){ closePop(){
this.showaddStockOut=false this.showaddStockOut=false
},
//取消
quxiao(row){
console.log(row)
this.$q.dialog({
title: '提示信息',
message: '是否确定取消?',
cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
}).onOk(() => {
let obj={
ApplyForId:row.Id,
Type:1,
Remark:""
}
SetSuppliesStockOutApplyForState(obj).then(res=>{
if(res.data.resultCode===1){
this.Success(res.data.message)
this.getSuppliesStockOutApplyForPageList();
}else{
this.Error(res.data.message)
} }
})
}).onCancel(() => {
});
},
} }
} }
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
<style >
.td_height{
height: 40px;
line-height: 40px;
}
</style>
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