Browse Source

完善收货单

master
guoxing 10 months ago
parent
commit
c152450566
  1. 24
      yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue
  2. 21
      yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue

24
yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue

@ -261,16 +261,21 @@
} }
}, },
created() { created() {
getOrgSidByPath({
orgPath: window.sessionStorage.getItem('defaultOrgPath')
}).then((res) => {
if (res.success) {
this.formobj.createOrgSid = res.data
this.formobj.useOrgSid = res.data
}
})
}, },
methods: { methods: {
init() {
getOrgSidByPath({
orgPath: window.sessionStorage.getItem('defaultOrgPath')
}).then((res) => {
if (res.success) {
this.formobj.createOrgSid = res.data
this.formobj.useOrgSid = res.data
}
})
},
// getOrgPathSid() { // getOrgPathSid() {
// getOrgSidByPath({ // getOrgSidByPath({
// orgPath: window.sessionStorage.getItem('defaultOrgPath') // orgPath: window.sessionStorage.getItem('defaultOrgPath')
@ -653,13 +658,14 @@
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['form_obj'].clearValidate() this.$refs['form_obj'].clearValidate()
}) })
this.init()
}, },
showEdit(row) { showEdit(row) {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['form_obj'].clearValidate() this.$refs['form_obj'].clearValidate()
}) })
this.init()
// this.getWarehouseList() // this.getWarehouseList()
this.getsupplierLust() this.getsupplierLust()
// this.getOrgPathSid() // this.getOrgPathSid()

21
yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue

@ -371,17 +371,20 @@
} }
}, },
created() { created() {
getOrgSidByPath({
orgPath: window.sessionStorage.getItem('defaultOrgPath')
}).then((res) => {
if (res.success) {
this.formobj.createOrgSid = res.data
this.formobj.useOrgSid = res.data
}
})
}, },
methods: { methods: {
init(){
getOrgSidByPath({
orgPath: window.sessionStorage.getItem('defaultOrgPath')
}).then((res) => {
if (res.success) {
this.formobj.createOrgSid = res.data
this.formobj.useOrgSid = res.data
}
})
},
// commodityInput(value) { // commodityInput(value) {
// this.commodityQuery.params.name = value // this.commodityQuery.params.name = value
// this.commodityLoading = true // this.commodityLoading = true
@ -674,6 +677,7 @@
this.isUpdata = false this.isUpdata = false
console.log("showAdd", this.isUpdata); console.log("showAdd", this.isUpdata);
this.init()
this.getsupplierLust() this.getsupplierLust()
this.getWarehouseList() this.getWarehouseList()
@ -692,6 +696,7 @@
showEdit(row) { showEdit(row) {
this.title = "【修改】" this.title = "【修改】"
this.isUpdata = true this.isUpdata = true
this.init()
this.getsupplierLust() this.getsupplierLust()
this.getWarehouseList() this.getWarehouseList()
console.log("showEdit", this.isUpdata); console.log("showEdit", this.isUpdata);

Loading…
Cancel
Save