|
@@ -123,17 +123,20 @@
|
|
methods: {
|
|
methods: {
|
|
init() {
|
|
init() {
|
|
let _obj = {
|
|
let _obj = {
|
|
- commonId: this.sgId
|
|
|
|
|
|
+ commonId: this.sgId,
|
|
|
|
+ warehouseName:uni.getStorageSync("depotAcquisition_warehouseName")
|
|
}
|
|
}
|
|
this.$api.doRequest('get', '/acquisitionInfo/getInfo', _obj).then(res => {
|
|
this.$api.doRequest('get', '/acquisitionInfo/getInfo', _obj).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
if (res.data.data) {
|
|
if (res.data.data) {
|
|
this.isEdit = true
|
|
this.isEdit = true
|
|
this.value = res.data.data.checkFlag == '0' ? false : true
|
|
this.value = res.data.data.checkFlag == '0' ? false : true
|
|
|
|
+ console.log(this.value)
|
|
this.warehouseName = res.data.data.warehouseName
|
|
this.warehouseName = res.data.data.warehouseName
|
|
this.textareaValue = res.data.data.acquisitionInformation
|
|
this.textareaValue = res.data.data.acquisitionInformation
|
|
this.id = res.data.data.id
|
|
this.id = res.data.data.id
|
|
} else {
|
|
} else {
|
|
|
|
+ this.textareaValue = ''
|
|
this.isEdit = false
|
|
this.isEdit = false
|
|
this.value = false
|
|
this.value = false
|
|
}
|
|
}
|
|
@@ -173,6 +176,8 @@
|
|
this.warehouseName = this.warehouseList[e[0]].warehouseName
|
|
this.warehouseName = this.warehouseList[e[0]].warehouseName
|
|
this.warehouseId = this.warehouseList[e[0]].id
|
|
this.warehouseId = this.warehouseList[e[0]].id
|
|
uni.setStorageSync("depotAcquisition_warehouseName", this.warehouseName)
|
|
uni.setStorageSync("depotAcquisition_warehouseName", this.warehouseName)
|
|
|
|
+ this.init()
|
|
|
|
+
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
* 统一跳转接口,拦截未登录路由
|
|
* 统一跳转接口,拦截未登录路由
|
|
@@ -197,6 +202,7 @@
|
|
mask: true
|
|
mask: true
|
|
})
|
|
})
|
|
let _flag = ''
|
|
let _flag = ''
|
|
|
|
+ console.log(this.value)
|
|
if (this.value) {
|
|
if (this.value) {
|
|
_flag = 1
|
|
_flag = 1
|
|
} else {
|
|
} else {
|
|
@@ -225,13 +231,13 @@
|
|
this.isShowAlert = false
|
|
this.isShowAlert = false
|
|
},
|
|
},
|
|
checkBoxChange(e) {
|
|
checkBoxChange(e) {
|
|
- // console.log("e-----", e)
|
|
|
|
- this.value = !this.value
|
|
|
|
|
|
+ this.value = e
|
|
|
|
+ // this.alertBtn1()
|
|
// console.log("value----", this.value)
|
|
// console.log("value----", this.value)
|
|
},
|
|
},
|
|
submit() {
|
|
submit() {
|
|
this.isShowAlert1 = true
|
|
this.isShowAlert1 = true
|
|
-
|
|
|
|
|
|
+
|
|
// this.$api.msg('提交成功')
|
|
// this.$api.msg('提交成功')
|
|
// this.$api.msg('提交失败')
|
|
// this.$api.msg('提交失败')
|
|
}
|
|
}
|