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

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

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

Loading…
Cancel
Save