|
@ -43,7 +43,7 @@ |
|
|
:drawer="displayDialog.detailsDialog" |
|
|
:drawer="displayDialog.detailsDialog" |
|
|
:propsData="propsData" |
|
|
:propsData="propsData" |
|
|
:tabsDesTions="tabsDesTions" |
|
|
:tabsDesTions="tabsDesTions" |
|
|
:Butttondata="[]" |
|
|
:Butttondata="DrawerButtonData" |
|
|
@drawerShut="(val) => (displayDialog.detailsDialog = val)" |
|
|
@drawerShut="(val) => (displayDialog.detailsDialog = val)" |
|
|
@drawerbutton="drawerbutton" |
|
|
@drawerbutton="drawerbutton" |
|
|
@handleCommand="drawerHandle" |
|
|
@handleCommand="drawerHandle" |
|
@ -65,6 +65,7 @@ import { LoadingMixins } from "@/mixins/LoadingMixins" |
|
|
import { drawerMixins } from "@/mixins/drawerMixins" |
|
|
import { drawerMixins } from "@/mixins/drawerMixins" |
|
|
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins" |
|
|
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins" |
|
|
import { mixins } from "@/mixins/mixins" |
|
|
import { mixins } from "@/mixins/mixins" |
|
|
|
|
|
import { processRequest, getDetailed } from '@/api/wms-api' |
|
|
export default { |
|
|
export default { |
|
|
name: "PurchaseOrder", |
|
|
name: "PurchaseOrder", |
|
|
mixins: [ |
|
|
mixins: [ |
|
@ -77,6 +78,16 @@ export default { |
|
|
data () { |
|
|
data () { |
|
|
return { |
|
|
return { |
|
|
URL: 'wms/store/purchase-order', |
|
|
URL: 'wms/store/purchase-order', |
|
|
|
|
|
DrawerButtonData: [ |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'danger', |
|
|
|
|
|
icon: 'el-icon-delete-solid', |
|
|
|
|
|
label: '作废', |
|
|
|
|
|
hide: false, |
|
|
|
|
|
name: "delete", |
|
|
|
|
|
size: 'mini' |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
//常用按钮数据 |
|
|
//常用按钮数据 |
|
|
currenButtonData: [ |
|
|
currenButtonData: [ |
|
|
this.defaultImportBtn(),//导入 |
|
|
this.defaultImportBtn(),//导入 |
|
@ -90,6 +101,27 @@ export default { |
|
|
mounted () { |
|
|
mounted () { |
|
|
this.paging(); |
|
|
this.paging(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
methods: { |
|
|
|
|
|
//抽屉内常用按钮 |
|
|
|
|
|
drawerbutton (val) { |
|
|
|
|
|
// 作废 |
|
|
|
|
|
if (val == 'delete') { |
|
|
|
|
|
let that = this |
|
|
|
|
|
that.Loading.appMainLoading = true |
|
|
|
|
|
processRequest(that.propsData.id, that.URL + '/cancel/').then(res => { |
|
|
|
|
|
that.$successMsg('已作废') |
|
|
|
|
|
getDetailed(that.propsData.id, that.URL).then(res => { |
|
|
|
|
|
that.propsData = res |
|
|
|
|
|
}) |
|
|
|
|
|
that.paging() |
|
|
|
|
|
that.Loading.appMainLoading = false |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
that.Loading.appMainLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|