|
@@ -11,7 +11,7 @@
|
|
|
<view class="content-item">
|
|
|
<view class="left">收购信息</view>
|
|
|
<view class='row'>
|
|
|
- <textarea placeholder="请输入仓库信息" class="textarea" maxlength="2000" v-model="textareaValue"></textarea>
|
|
|
+ <textarea placeholder="输入收购信息,不超过2000个字" class="textarea" maxlength="2000" v-model="textareaValue"></textarea>
|
|
|
<view class="textarea-bottom">{{textareaValue?textareaValue.length:'0'}}/2000字</view>
|
|
|
</view>
|
|
|
<view class='row row_css'>
|
|
@@ -123,39 +123,13 @@
|
|
|
methods: {
|
|
|
init() {
|
|
|
let _obj = {
|
|
|
- commonId: this.sgId,
|
|
|
+ commonId: uni.getStorageSync("userInfo").id,
|
|
|
warehouseName:uni.getStorageSync("depotAcquisition_warehouseName")
|
|
|
}
|
|
|
- this.$api.doRequest('get', '/acquisitionInfo/getInfo', _obj).then(res => {
|
|
|
- if (res.data.code == 200) {
|
|
|
- if (res.data.data) {
|
|
|
- this.isEdit = true
|
|
|
- this.value = res.data.data.checkFlag == '0' ? false : true
|
|
|
- console.log(this.value)
|
|
|
- this.warehouseName = res.data.data.warehouseName
|
|
|
- this.textareaValue = res.data.data.acquisitionInformation
|
|
|
- this.id = res.data.data.id
|
|
|
- } else {
|
|
|
- this.textareaValue = ''
|
|
|
- this.isEdit = false
|
|
|
- this.value = false
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- switch (this.status) {
|
|
|
- case '已隐藏':
|
|
|
- break;
|
|
|
- case '显示中':
|
|
|
-
|
|
|
- break;
|
|
|
- }
|
|
|
this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouseSelfApp', {
|
|
|
compId: uni.getStorageSync('pcUserInfo').compId,
|
|
|
}).then(res => {
|
|
|
- if (res.data.data.length != 0) {
|
|
|
+ if (res.data.data.length > 0) {
|
|
|
uni.hideLoading()
|
|
|
// let _showData = uni.getStorageSync("erpSelectWarehous")
|
|
|
// let _showCWData = uni.getStorageSync("erpSelectWarehousCW")
|
|
@@ -165,12 +139,36 @@
|
|
|
this.warehouseName = _storangewarehouseName
|
|
|
} else {
|
|
|
this.warehouseName = res.data.data[0].warehouseName
|
|
|
+ uni.setStorageSync("depotAcquisition_warehouseName", this.warehouseName)
|
|
|
}
|
|
|
} else {
|
|
|
this.warehouseList = []
|
|
|
this.warehouseName = '暂无仓库'
|
|
|
}
|
|
|
})
|
|
|
+ this.$api.doRequest('get', '/acquisitionInfo/getInfo', _obj).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ if (res.data.data) {
|
|
|
+ this.isEdit = true
|
|
|
+ this.value = res.data.data.checkFlag == '0' ? false : true
|
|
|
+ console.log(this.value)
|
|
|
+ this.warehouseName = res.data.data.warehouseName
|
|
|
+ this.textareaValue = res.data.data.acquisitionInformation
|
|
|
+ this.id = res.data.data.id
|
|
|
+ } else {
|
|
|
+ this.textareaValue = ''
|
|
|
+ this.isEdit = false
|
|
|
+ this.value = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // switch (this.status) {
|
|
|
+ // case '已隐藏':
|
|
|
+ // break;
|
|
|
+ // case '显示中':
|
|
|
+
|
|
|
+ // break;
|
|
|
+ // }
|
|
|
},
|
|
|
warehousechange(e) {
|
|
|
this.warehouseName = this.warehouseList[e[0]].warehouseName
|