|
@@ -304,8 +304,8 @@
|
|
|
<span class="liName">
|
|
|
招商经理
|
|
|
</span>
|
|
|
- <div class="inputBox">
|
|
|
- <input placeholder="" v-model="form.investmentManagerName" disabled class="myIpt">
|
|
|
+ <div class="inputBox" @tap="toChoose('招商经理')">
|
|
|
+ <input placeholder="" v-model="investmentManagerName" disabled class="myIpt">
|
|
|
<van-icon name="arrow" />
|
|
|
</div>
|
|
|
</li>
|
|
@@ -313,8 +313,8 @@
|
|
|
<span class="liName">
|
|
|
关联企业
|
|
|
</span>
|
|
|
- <div class="inputBox" style="border-bottom: none" @tap="toChoose">
|
|
|
- <input placeholder="" v-model="form.associationCompanyName" disabled class="myIpt">
|
|
|
+ <div class="inputBox" style="border-bottom: none" @tap="toChoose('关联企业')">
|
|
|
+ <input placeholder="" v-model="associationCompanyName" disabled class="myIpt">
|
|
|
<van-icon name="arrow" />
|
|
|
</div>
|
|
|
</li>
|
|
@@ -372,21 +372,42 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getUserLocalStorageInfo,getByCodes,companyExamineGetById,companyExamineExamine } from "@/js_sdk/http";
|
|
|
+import { getUserLocalStorageInfo,getByCodes,companyExamineGetById,companyExamineExamine,findUserList } from "@/js_sdk/http";
|
|
|
|
|
|
export default {
|
|
|
name: "inventoryReview",
|
|
|
onLoad(options){
|
|
|
uni.$on('selectInfo',e=>{
|
|
|
- console.log('eeeeeeeeeee',JSON.parse(e))
|
|
|
+ const companyList = JSON.parse(e)
|
|
|
+ let associationCompanyName = companyList.map((obj,index)=>{
|
|
|
+ return obj.qymc
|
|
|
+ }).join(',')
|
|
|
+ let associationCompany = companyList.map((obj,index)=>{
|
|
|
+ return obj.id
|
|
|
+ }).join(',')
|
|
|
+ this.associationCompanyName = associationCompanyName
|
|
|
+ this.form.associationCompany = associationCompany
|
|
|
+ })
|
|
|
+ uni.$on('selectUserInfo',e=>{
|
|
|
+ const userList = JSON.parse(e)
|
|
|
+ let investmentManagerName = userList.map((obj,index)=>{
|
|
|
+ return obj.truename
|
|
|
+ }).join(',')
|
|
|
+ let investmentManager = userList.map((obj,index)=>{
|
|
|
+ return obj.id
|
|
|
+ }).join(',')
|
|
|
+ this.investmentManagerName = investmentManagerName
|
|
|
+ this.form.investmentManager = investmentManager
|
|
|
})
|
|
|
this.id = options.id
|
|
|
this.proveType = options.proveType
|
|
|
- // this.getCompanyList()
|
|
|
- },
|
|
|
- onShow(){
|
|
|
this.getById()
|
|
|
this.getByCodes()
|
|
|
+ this.getInvestmentManagerList()
|
|
|
+ },
|
|
|
+ onShow(){
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
data(){
|
|
|
return{
|
|
@@ -408,7 +429,8 @@ export default {
|
|
|
popType:'',
|
|
|
timeShow: '',
|
|
|
currentDate: new Date().getTime(),
|
|
|
- companyOptions: []
|
|
|
+ investmentManagerName: '',
|
|
|
+ associationCompanyName: ''
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -420,6 +442,8 @@ export default {
|
|
|
if(res){
|
|
|
this.form = res
|
|
|
this.form.currencyStr = this.form.currency == null ? ' ' : this.getDicType("bizhong", this.form.currency)
|
|
|
+ this.associationCompanyName = res.associationCompanyName
|
|
|
+ this.investmentManagerName = res.investmentManagerName
|
|
|
this.settleInType = res.settleInType
|
|
|
if (res.yyzzfbzp) {
|
|
|
res.yyzzfbzp.split(',').forEach(id=>{
|
|
@@ -653,9 +677,17 @@ export default {
|
|
|
// console.log(e)
|
|
|
switch (this.popType) {
|
|
|
case "币种":
|
|
|
- this.form.currency = e.detail.value.label
|
|
|
+ this.form.currency = e.detail.value.value
|
|
|
this.form.currencyStr = e.detail.value.label
|
|
|
break;
|
|
|
+ case "招商经理":
|
|
|
+ this.form.investmentManager = this.selectedItems.map((obj,index)=>{
|
|
|
+ return obj.id
|
|
|
+ }).join(',')
|
|
|
+ this.form.investmentManagerName = this.selectedItems.map((obj,index)=>{
|
|
|
+ return obj.truename
|
|
|
+ }).join(',')
|
|
|
+ break;
|
|
|
}
|
|
|
this.show = false
|
|
|
},
|
|
@@ -694,11 +726,40 @@ export default {
|
|
|
this.timeShow = false
|
|
|
// this.getRoomTime(this.startTime)
|
|
|
},
|
|
|
- toChoose(){
|
|
|
- uni.navigateTo({
|
|
|
- url: "/pages/subPackages/todo/associated"
|
|
|
- });
|
|
|
+ toChoose(type){
|
|
|
+ if(type === '关联企业'){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/subPackages/todo/associated"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if(type === '招商经理'){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/subPackages/todo/addInvestmentManager"
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
+ getInvestmentManagerList(){
|
|
|
+ findUserList({}).then(res=>{
|
|
|
+ this.investmentManagerOptions = res
|
|
|
+ // if(res){
|
|
|
+ // res.forEach(item=>{
|
|
|
+ // const data = {
|
|
|
+ // value:item.id,
|
|
|
+ // label:item.truename
|
|
|
+ // }
|
|
|
+ // this.investmentManagerOptions.push(data)
|
|
|
+ // })
|
|
|
+ //
|
|
|
+ // }
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+ investmentManagerChange(e){
|
|
|
+ this.investmentManager = e.detail
|
|
|
+ this.selectedItems = this.list.filter(item => e.detail.includes(item.truename));
|
|
|
+ // 现在你有了一个包含完整 item 对象的数组
|
|
|
+ console.log(this.selectedItems);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|