This commit is contained in:
parent
4c61e8667a
commit
6175211aaa
14
pages.json
14
pages.json
|
|
@ -415,6 +415,20 @@
|
|||
{
|
||||
"navigationBarTitleText" : ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/supplierindex/material",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/supplierindex/mtdetails",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : ""
|
||||
}
|
||||
}
|
||||
],
|
||||
"globalStyle": {
|
||||
|
|
|
|||
|
|
@ -386,6 +386,7 @@
|
|||
textArray[6] = father.issueAuthority;
|
||||
textArray[7] = father.validPeriod;
|
||||
backImge.value = filePath;
|
||||
savephoto(filePath, 1);
|
||||
}else{
|
||||
textArray[7] = "";
|
||||
uni.showToast({
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
|
||||
<view :style="{height:`${uni.getStorageSync('moveHeight') + 30}px`}"></view>
|
||||
<view class="shzt" v-if="(alldata.applyStatus==3||alldata.applyStatus==5)&&dexcard==0">
|
||||
<view class="shzt" v-if="(alldata.applyStatus==3||alldata.applyStatus==5)&&dexcard==0&&alldata.auditContent">
|
||||
<view class="icoi">i</view>
|
||||
<text style="color: rgba(102, 102, 102, 1); width: 70%;word-break: break-all;">
|
||||
驳回原因:{{alldata.auditContent}}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
</view>
|
||||
|
||||
<view class="small-title">
|
||||
{{ uni.getStorageSync('isstaffchange') ? '尊敬的用户,您好!您的个人信息已提交' : '尊敬的用户,您的员工入驻申请已提交成功' }},
|
||||
{{ uni.getStorageSync('isstaffchange') ? '尊敬的用户,您好!您的个人信息变更已提交' : '尊敬的用户,您的员工入驻申请已提交成功' }},
|
||||
{{ uni.getStorageSync('isstaffchange')?`请等待机构审核`:`欢迎加入护理单元大家庭` }} !
|
||||
</view>
|
||||
<view class="normal">
|
||||
|
|
|
|||
|
|
@ -6,28 +6,12 @@
|
|||
<view class="title-back" :style="{height:`${uni.getStorageSync('moveHeight')+40}px`}">
|
||||
<view class="left-father" @click="goBack">
|
||||
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
|
||||
<view style="font-size: 30rpx;">{{targetpage.value==0?"监护人信息":'长者信息'}}</view>
|
||||
<view style="font-size: 30rpx;">{{targetpage==0?"监护人信息":'长者信息'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view :style="{height:`${uni.getStorageSync('moveHeight') + 30}px`}"></view>
|
||||
<!-- <view style="width: 638rpx;
|
||||
min-height: 80rpx;
|
||||
border-radius: 10rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 30rpx auto 0;
|
||||
padding:20rpx;
|
||||
background: RGBA(255, 240, 240, 1);
|
||||
border: 1px solid RGBA(247, 175, 174, 1);"
|
||||
v-if="alldata.elderModifyStatus==3||alldata.elderModifyStatus==5">
|
||||
<view style="width: 35rpx;height: 35rpx;border-radius: 50%;background: RGBA(237, 72, 69, 1);color: #fff;text-align: center;line-height: 35rpx;margin-right: 10rpx;">i</view>
|
||||
<text style="color: rgba(102, 102, 102, 1); width: 70%;word-break: break-all;">
|
||||
驳回原因:{{alldata.elderModifyContent}}
|
||||
</text>
|
||||
<text style=" color:rgba(237, 72, 69, 1);white-space: nowrap;">审核驳回</text>
|
||||
</view> -->
|
||||
<view class="shzt" v-if="alldata.modifyStatus==3||alldata.modifyStatus==5">
|
||||
<view class="icoi">i</view>
|
||||
<text style="color: rgba(102, 102, 102, 1); width: 70%;word-break: break-all;">
|
||||
|
|
@ -46,7 +30,7 @@
|
|||
</view>
|
||||
<!-- <image class="shu-img"
|
||||
:src="alldata.modifyStatus? `https://www.focusnu.com/media/directive/index/${statusarray[alldata.modifyStatus-1]}.png`:``" /> -->
|
||||
<view class="white-photo" @click="getMessage(headImge0)">
|
||||
<view class="white-photo" @click="getMessage(headImge1)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">人像面</view>
|
||||
<!-- <view class="photo-font">请上传营业执照</view> -->
|
||||
|
|
@ -63,9 +47,9 @@
|
|||
<view class="white-message">
|
||||
<view>
|
||||
<view v-for="(item,index) in nameArray1" :key="index" class="one"
|
||||
@click="openLook(textArray[index])">
|
||||
@click="openLook(textArray1[index])">
|
||||
<view class="one-left">{{item}}</view>
|
||||
<view class="one-right">{{textArray[index] ? textArray[index] : "无" }}</view>
|
||||
<view class="one-right">{{textArray1[index] ? textArray1[index] : "无" }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -79,33 +63,10 @@
|
|||
</view> -->
|
||||
</view>
|
||||
<view class="white-content" v-show="targetpage">
|
||||
<!-- <view style="width: 638rpx;
|
||||
min-height: 80rpx;
|
||||
border-radius: 10rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 30rpx auto 0;
|
||||
padding:20rpx;
|
||||
background: RGBA(255, 240, 240, 1);
|
||||
border: 1px solid RGBA(247, 175, 174, 1);"
|
||||
v-if="alldata.modifyStatus==3||alldata.modifyStatus==5">
|
||||
<view style="width: 35rpx;height: 35rpx;border-radius: 50%;background: RGBA(237, 72, 69, 1);color: #fff;text-align: center;line-height: 35rpx;margin-right: 10rpx;">i</view>
|
||||
<text style="color: rgba(102, 102, 102, 1); width: 70%;word-break: break-all;">
|
||||
驳回原因:{{alldata.auditContent}}
|
||||
</text>
|
||||
<text style=" color:rgba(237, 72, 69, 1);white-space: nowrap;">审核驳回</text>
|
||||
</view> -->
|
||||
<view class="content-title" style="margin: 20rpx 0;justify-content: space-between;">
|
||||
<view style="display: flex;">
|
||||
<view class="shu"></view>
|
||||
<view class="content-weight" style="margin-top: -2rpx;">长者信息</view>
|
||||
<!-- <image class="shu-img"
|
||||
:src="alldata.modifyStatus? `https://www.focusnu.com/media/directive/index/${statusarray[alldata.modifyStatus-1]}.png`:``" /> -->
|
||||
<!-- <view class="content-img" style="display: flex;align-items: center;justify-content: flex-end;color: red;">
|
||||
<text v-if="alldata.modifyStatus==1" >待审核</text>
|
||||
<text v-if="alldata.modifyStatus==2" style="color: #0089FE;">审核通过</text>
|
||||
<text v-if="alldata.modifyStatus==3">审核驳回</text>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
|
@ -274,6 +235,8 @@
|
|||
if (data.content) {
|
||||
contentred.value = data.content
|
||||
}
|
||||
console.log(targetpage.value)
|
||||
if(targetpage.value==1){
|
||||
textArray[0] = data.name;
|
||||
textArray[1] = data.sex;
|
||||
textArray[2] = data.idCard;
|
||||
|
|
@ -282,18 +245,19 @@
|
|||
textArray[5] = data.houseAddress;
|
||||
textArray[6] = data.issuingAuthority;
|
||||
textArray[7] = `${data.startTime}-${swapLongTerm(data.endTime)}`;
|
||||
|
||||
fontphoto.value = data.idCardPositive
|
||||
endphoto.value = data.idCardNegative
|
||||
specialImge.value = data.idCardPositive
|
||||
}else{
|
||||
console.log(123)
|
||||
textArray1[0] = data.guardianName;
|
||||
textArray1[1] = data.guardianPhone;
|
||||
textArray1[2] = data.guardianIdCard;
|
||||
textArray1[3] = data.guardianHomeAddress;
|
||||
textArray1[4] = data.guardianWorkUnit;
|
||||
headImge1.value = `${media_base_url}${data.guardianIdCardPositive}`;
|
||||
console.log(data)
|
||||
|
||||
fontphoto.value = data.idCardPositive
|
||||
endphoto.value = data.idCardNegative
|
||||
specialImge.value = data.idCardPositive
|
||||
}
|
||||
console.log(textArray1,11111111111)
|
||||
getManyDictItems(
|
||||
`medical_insurance_type&dictCodeList=syb_reimbursement_type&dictCodeList=zgyb_reimbursement_type&dictCodeList=jmyb_reimbursement_type`
|
||||
).then((res => {
|
||||
|
|
|
|||
|
|
@ -99,3 +99,17 @@ export function upRead(data){
|
|||
data,
|
||||
})
|
||||
}
|
||||
export function getSuppliersWlInfo(data){
|
||||
return request({
|
||||
url: `/api/suppliers/getSuppliersWlInfo`,
|
||||
method: 'get',
|
||||
data,
|
||||
})
|
||||
}
|
||||
export function editSuppliersWlInfo(data){
|
||||
return request({
|
||||
url: `/api/suppliers/editSuppliersWlInfo`,
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
|
@ -196,9 +196,9 @@
|
|||
</view>
|
||||
</swiper> -->
|
||||
|
||||
<!-- <view
|
||||
<view
|
||||
style="z-index:9;position: fixed;bottom: 150rpx; width: 100%;display: flex;align-items: center;flex-direction: column;margin-top: -25rpx;height: 100rpx;">
|
||||
<view class="jia-box">
|
||||
<!-- <view class="jia-box">
|
||||
<view v-for="(item,index) in menuArray" :key="index" @click="changecard(index)">
|
||||
<view :class="whichMenu==index? `black-box` :`gray-box`" v-if="index != menuArray.length - 1">
|
||||
</view>
|
||||
|
|
@ -206,11 +206,12 @@
|
|||
<image class="jia-img" :src="`https://www.focusnu.com/media/directive/index/bluejia.png`" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="font-size: 32rpx;margin-top: 50rpx;">
|
||||
{{menuArray[which]?.departName}}
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="btnname"
|
||||
@click="jumpt(item.suppliersName)">
|
||||
{{item.suppliersName}}
|
||||
</view>
|
||||
</view>
|
||||
<downMenu :itemTarget="0" />
|
||||
<u-popup v-model="popupshow" mode="bottom" border-radius="40">
|
||||
<view class="popop-father">
|
||||
|
|
@ -487,6 +488,9 @@
|
|||
}
|
||||
const clickButton = (item, index) => {
|
||||
if (index === 0) {
|
||||
uni.navigateTo({
|
||||
url:'/pages/supplierindex/material?id='+item.suppliersId
|
||||
})
|
||||
// getSupInfoByOpenId(item.orgCode).then(res => {
|
||||
// if (res.success) {
|
||||
// uni.navigateTo({
|
||||
|
|
@ -502,6 +506,12 @@
|
|||
show.value = true
|
||||
}
|
||||
}
|
||||
const jumpt = (res) => {
|
||||
if (res.length>20) {
|
||||
content.value = res;
|
||||
show.value = true
|
||||
}
|
||||
}
|
||||
onShow(() => {
|
||||
loadingData();
|
||||
isRead().then(res => {
|
||||
|
|
@ -529,6 +539,17 @@
|
|||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.btnname {
|
||||
font-size: 32rpx;
|
||||
margin-top: 50rpx;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
width: 90%;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
z-index: 20;
|
||||
}
|
||||
.login-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
|
|||
|
|
@ -205,7 +205,8 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="font-size: 32rpx;margin-top: 50rpx;">
|
||||
<view class="btnname"
|
||||
@click="jumpt(menuArray[which]?.departName)">
|
||||
{{menuArray[which]?.departName}}
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -267,7 +268,12 @@
|
|||
url: "/pages/yuangongindex/procurement?serverUrl="+e.serverUrl
|
||||
})
|
||||
}
|
||||
|
||||
const jumpt = (res) => {
|
||||
if (res.length>20) {
|
||||
content.value = res;
|
||||
show.value = true
|
||||
}
|
||||
}
|
||||
const buttonArray = ref(["供应商", "敬请期待", "敬请期待"])
|
||||
const statusarray = ["loading", "success", "fail"]
|
||||
const which = ref(0);
|
||||
|
|
@ -510,6 +516,17 @@
|
|||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.btnname {
|
||||
font-size: 32rpx;
|
||||
margin-top: 50rpx;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
width: 90%;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
z-index: 20;
|
||||
}
|
||||
.login-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,258 @@
|
|||
<template>
|
||||
<view>
|
||||
<view class="title-back" :style="{height:`${uni.getStorageSync('moveHeight')+40}px`}">
|
||||
<view class="left-father" @click="uni.navigateBack()">
|
||||
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
|
||||
<view style="font-size: 30rpx;">物料信息</view>
|
||||
</view>
|
||||
</view>
|
||||
<view :style="{height:`${uni.getStorageSync('moveHeight') + 40}px`}"></view>
|
||||
<view class="scr"></view>
|
||||
<view class="scr" :style="{top:`${uni.getStorageSync('moveHeight')+40}px`}" style="position: fixed; left: 0;">
|
||||
<view class="serch">
|
||||
<image class="bacimg" src="https://www.focusnu.com/media/directive/index/search.png" />
|
||||
<input type="text" v-model="value" @confirm="sousuo" placeholder="请输入货品名称"/>
|
||||
<view class="right-img" v-if="value" @click="value='';sousuo()">
|
||||
<image src="https://www.focusnu.com/media/directive/index/x.png" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="box" v-for="(v,i) in list" :key='i' :class="act==i?'act':''" @click="act=i">
|
||||
<view class="cont">
|
||||
<text class="tit">{{v.materialName}}</text>
|
||||
<view class="bianj" @click.stop="uni.navigateTo({ url:`/pages/supplierindex/mtdetails?obj=${JSON.stringify(v)}&index=${i}`});act=i">
|
||||
编辑
|
||||
</view>
|
||||
</view>
|
||||
<view class="cont" style="margin-top: 63rpx;">
|
||||
<text class="hui">品牌型号</text>
|
||||
<text class="hui">规格型号</text>
|
||||
</view>
|
||||
<view class="cont" style="margin-top: 13rpx;">
|
||||
<text class="hei">{{v.brandType}}</text>
|
||||
<text class="hei">{{v.specificationModel}}</text>
|
||||
</view>
|
||||
<view class="xian"></view>
|
||||
<view class="cont" >
|
||||
<text class="hui">销售单位</text>
|
||||
<text class="hui">销售单价</text>
|
||||
</view>
|
||||
<view class="cont" style="margin-top: 13rpx;">
|
||||
<text class="hei" style="font-size: 30rpx;">{{v.salesUnit}}</text>
|
||||
<text class="hei" style="font-size: 30rpx;">¥{{v.salesUnitPrice}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height:3vw;width: 100%;display: flex;align-items: center;justify-content: center;margin: 30rpx 0;">
|
||||
<u-loadmore :status="status" :loadText="{nomore:'暂无更多数据'}" v-if="list.length>0" />
|
||||
<view style="height: 30rpx;"></view>
|
||||
</view>
|
||||
<view class="none" v-if="!list.length&&status=='nomore'">
|
||||
<image style="width: 300rpx;height: 300rpx;"
|
||||
src="https://www.focusnu.com/media/directive/index/none.png" mode="widthFix" lazy-load="false" />
|
||||
<view class="">暂无物料信息</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
reactive,
|
||||
ref,
|
||||
onMounted,
|
||||
onUnmounted,
|
||||
defineExpose
|
||||
} from 'vue';
|
||||
import {
|
||||
onLoad,
|
||||
onShow,
|
||||
onPullDownRefresh,
|
||||
onReachBottom
|
||||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
getSuppliersWlInfo,
|
||||
} from './api.js'
|
||||
const status = ref('loadmore')
|
||||
const list = ref([])
|
||||
const value = ref('')
|
||||
const id = ref('')
|
||||
const pageNo = ref(1)
|
||||
const act = ref(-1)
|
||||
onLoad((e)=>{
|
||||
id.value = e.id;
|
||||
search()
|
||||
})
|
||||
const sousuo = ()=>{
|
||||
act.value = -1;
|
||||
list.value = [];
|
||||
pageNo.value = 1;
|
||||
search()
|
||||
}
|
||||
|
||||
const search = ()=>{
|
||||
let obj = {
|
||||
pageSize:10,
|
||||
pageNo:pageNo.value,
|
||||
title:value.value,
|
||||
suppliersId:id.value
|
||||
}
|
||||
getSuppliersWlInfo(obj).then(res=>{
|
||||
list.value.push(...res.result.records)
|
||||
status.value = (res.result.total == list.value.length ? 'nomore' : 'loadmore')
|
||||
})
|
||||
}
|
||||
onReachBottom(()=>{
|
||||
if(status.value=='loading'|| status.value=='nomore'){return}
|
||||
status.value = 'loading';
|
||||
pageNo.value++;
|
||||
search()
|
||||
})
|
||||
const swih = (e,i)=>{
|
||||
console.log(e.salesUnitPrice,i,111111111111)
|
||||
list.value[i] = e;
|
||||
console.log(list.value[i])
|
||||
}
|
||||
defineExpose({swih})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.act{
|
||||
border: 2rpx dashed #0083FA !important;
|
||||
}
|
||||
.box{
|
||||
width: 700rpx;
|
||||
min-height: 398rpx;
|
||||
padding: 40rpx 35rpx;
|
||||
background: #fff;
|
||||
border-radius: 25rpx;
|
||||
overflow: hidden;
|
||||
margin: 24rpx auto ;
|
||||
border: 2rpx solid #fff;
|
||||
.xian{
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #E5E5E5;
|
||||
margin: 36rpx auto;
|
||||
}
|
||||
.cont{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.bianj{
|
||||
width: 120rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 28rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: linear-gradient(90deg, #E6F4FE,#CCE8FE,#CAE6FE);
|
||||
color: #0083FA;
|
||||
font-size: 31rpx;
|
||||
}
|
||||
.hei{
|
||||
font-size: 26rpx;
|
||||
color: #222;
|
||||
font-weight: 500;
|
||||
}
|
||||
.hui{
|
||||
font-size: 26rpx;
|
||||
color: #646464;
|
||||
}
|
||||
}
|
||||
.tit{
|
||||
font-size: 36rpx;
|
||||
color: #222222;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
.scr{
|
||||
width: 100%;
|
||||
height: 110rpx;
|
||||
background: RGBA(247, 247, 247, 1);
|
||||
z-index: 10;
|
||||
padding-bottom: 10rpx;
|
||||
}
|
||||
.serch{
|
||||
width: 700rpx;
|
||||
height: 80rpx;
|
||||
margin: 30rpx auto 0;
|
||||
border: 1px solid rgba(229, 229, 229, 1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 40rpx;
|
||||
position: relative;
|
||||
.right-img {
|
||||
width: 50rpx;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 19rpx;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
image{
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.bacimg{
|
||||
width: 42rpx;
|
||||
height: 42rpx;
|
||||
margin: 0 38rpx;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.gray-font {
|
||||
padding: 20rpx 60rpx;
|
||||
padding-bottom: 35rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.title-back {
|
||||
background-color: #F7F7F7;
|
||||
width: 100%;
|
||||
height: 70rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-end;
|
||||
padding-bottom: 20rpx;
|
||||
border-bottom: 1rpx solid #cbd1d2;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.left-father {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
z-index: 1;
|
||||
|
||||
.back-img {
|
||||
width: 45rpx;
|
||||
height: 40rpx;
|
||||
margin-left: 40rpx;
|
||||
margin-right: 15rpx;
|
||||
}
|
||||
}
|
||||
.none {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
color: #999;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
page{
|
||||
background: RGBA(247, 247, 247, 1);
|
||||
}
|
||||
</style>
|
||||
|
|
@ -0,0 +1,190 @@
|
|||
<template>
|
||||
<view>
|
||||
<view class="title-back" :style="{height:`${uni.getStorageSync('moveHeight')+40}px`}">
|
||||
<view class="left-father" @click="uni.navigateBack()">
|
||||
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
|
||||
<view style="font-size: 30rpx;">物料编辑</view>
|
||||
</view>
|
||||
</view>
|
||||
<view :style="{height:`${uni.getStorageSync('moveHeight') + 40}px`}"></view>
|
||||
<view class="box">
|
||||
<view class="cont">
|
||||
<view class="left">货品名称</view>
|
||||
<view class="cot">{{obj.materialName}}</view>
|
||||
</view>
|
||||
<view class="cont">
|
||||
<view class="left">规格型号</view>
|
||||
<view class="cot">{{obj.specificationModel}}</view>
|
||||
</view>
|
||||
<view class="cont">
|
||||
<view class="left">品牌型号</view>
|
||||
<view class="cot">{{obj.brandType}}</view>
|
||||
</view>
|
||||
<view class="cont">
|
||||
<view class="left">销售单价</view>
|
||||
<view class="cot"><input type="digit" maxlength="8" placeholder="请输入销售单价" v-model="obj.salesUnitPrice"></view>
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" />
|
||||
</view>
|
||||
<view class="cont">
|
||||
<view class="left">销售单位</view>
|
||||
<view class="cot"><input type="text" maxlength="5" placeholder="请输入销售单位" v-model="obj.salesUnit"></view>
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" />
|
||||
</view>
|
||||
<view class="queding" @click="config">
|
||||
确定
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
reactive,
|
||||
ref,
|
||||
onMounted,
|
||||
onUnmounted,
|
||||
} from 'vue';
|
||||
import {
|
||||
onLoad,
|
||||
onShow,
|
||||
onPullDownRefresh,
|
||||
onReachBottom
|
||||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
editSuppliersWlInfo,
|
||||
} from './api.js'
|
||||
const obj = ref({})
|
||||
const dex = ref(0)
|
||||
onLoad((e)=>{
|
||||
obj.value = JSON.parse(e.obj);
|
||||
dex.value = e.index
|
||||
})
|
||||
const config =()=>{
|
||||
if(obj.value.salesUnitPrice==''){
|
||||
uni.showToast({
|
||||
title:"请输入销售单价",
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(obj.value.salesUnit==''){
|
||||
uni.showToast({
|
||||
title:"请输入销售单位",
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
let hom = {
|
||||
id:obj.value.id,
|
||||
salesUnitPrice:obj.value.salesUnitPrice,
|
||||
salesUnit:obj.value.salesUnit
|
||||
}
|
||||
editSuppliersWlInfo(hom).then(res=>{
|
||||
if(res.success){
|
||||
let pages = getCurrentPages(); // 当前页面
|
||||
let currentPage = pages[pages.length - 2]; // 上一页
|
||||
if (currentPage ) {
|
||||
currentPage.$vm.swih(obj.value, dex.value)
|
||||
}
|
||||
uni.showToast({
|
||||
title:"修改成功",
|
||||
icon:'none'
|
||||
})
|
||||
setTimeout(()=>{
|
||||
uni.navigateBack()
|
||||
},800)
|
||||
}else{
|
||||
uni.showToast({
|
||||
title:res.message,
|
||||
icon:'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.queding{
|
||||
width: 320rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 28rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: linear-gradient(180deg, #E6F4FE,#CCE8FE,#CAE6FE);
|
||||
color: #0083FA;
|
||||
font-size: 36rpx;
|
||||
font-weight: 900;
|
||||
margin: 80rpx auto 30rpx;
|
||||
}
|
||||
.box{
|
||||
width: 700rpx;
|
||||
padding: 15rpx;
|
||||
margin: 40rpx auto;
|
||||
background: #fff;
|
||||
border-radius: 30rpx;
|
||||
.cont{
|
||||
width: 100%;
|
||||
height: 110rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 1rpx solid #E5E5E5;
|
||||
font-size: 28rpx;
|
||||
position: relative;
|
||||
.one-left-imge {
|
||||
width: 35rpx;
|
||||
height: 35rpx;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 8rpx;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.left{
|
||||
width: 200rpx;
|
||||
color: #646464;
|
||||
padding-left: 15rpx;
|
||||
}
|
||||
.cot{
|
||||
color: #9E9E9E;
|
||||
max-width: 400rpx;
|
||||
input{
|
||||
max-width: 400rpx;
|
||||
color: #9E9E9E;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.title-back {
|
||||
background-color: #F7F7F7;
|
||||
width: 100%;
|
||||
height: 70rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-end;
|
||||
padding-bottom: 20rpx;
|
||||
border-bottom: 1rpx solid #cbd1d2;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.left-father {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
z-index: 1;
|
||||
|
||||
.back-img {
|
||||
width: 45rpx;
|
||||
height: 40rpx;
|
||||
margin-left: 40rpx;
|
||||
margin-right: 15rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
page{
|
||||
background: RGBA(247, 247, 247, 1);
|
||||
}
|
||||
</style>
|
||||
|
|
@ -33,15 +33,15 @@
|
|||
<view class="white-small" @click="jumpToAll(item)">
|
||||
<view class="card-font">
|
||||
|
||||
{{item.departName}}
|
||||
{{item.suppliersName}}
|
||||
</view>
|
||||
<view class="gray-font">
|
||||
<image style="margin-left: 10rpx;height: 25rpx;width: 25rpx;margin-right: 10rpx;"
|
||||
src="https://www.focusnu.com/media/directive/index/ruzhu/man.png" />
|
||||
{{ item.orgLeader }} |
|
||||
{{ item.personInCharge }} |
|
||||
<image style="margin-left: 10rpx;height: 25rpx;width: 25rpx;margin-right: 10rpx;"
|
||||
src="https://www.focusnu.com/media/directive/index/ruzhu/phone.png" />
|
||||
{{ item.orgLeaderPhone }}
|
||||
{{ item.contactNumber }}
|
||||
|
||||
</view>
|
||||
<view class="gray-font">
|
||||
|
|
@ -49,19 +49,19 @@
|
|||
src="https://www.focusnu.com/media/directive/index/ruzhu/time.png" />
|
||||
{{item.createTime}}
|
||||
</view>
|
||||
<view class="applying" v-if="item.suppliersStatus===`1`">
|
||||
待审核
|
||||
<view class="applying" v-if="item.applyStatus===`1`">
|
||||
审核中
|
||||
</view>
|
||||
<view class="applysuccess" v-if="item.suppliersStatus===`2`">
|
||||
<view class="applysuccess" v-if="item.applyStatus===`2`">
|
||||
审核通过
|
||||
</view>
|
||||
<view class="applyfail" v-if="item.suppliersStatus===`3`">
|
||||
<view class="applyfail" v-if="item.applyStatus===`3`">
|
||||
审核驳回
|
||||
</view>
|
||||
<view class="applyfail" v-if="item.suppliersStatus===`4`">
|
||||
待审核
|
||||
<view class="applyfail" v-if="item.applyStatus===`4`">
|
||||
审核中
|
||||
</view>
|
||||
<view class="applyfail" v-if="item.suppliersStatus===`5`">
|
||||
<view class="applyfail" v-if="item.applyStatus===`5`">
|
||||
审核驳回
|
||||
</view>
|
||||
<!-- <view class="applying" v-if="item.applyStatus===`1`&&item.applyType==`2`">
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
<image
|
||||
style="margin-left: 10rpx;height: 30rpx;width: 25rpx;margin-right: 10rpx;z-index: 1;"
|
||||
src="https://www.focusnu.com/media/directive/index/ditu/mark.png" />
|
||||
{{item.orgAddress}}
|
||||
{{item.suppliersAddress}}
|
||||
</view>
|
||||
</view>
|
||||
<view style="width: 100%;display: flex;justify-content: center;">
|
||||
|
|
@ -163,7 +163,7 @@
|
|||
}
|
||||
|
||||
const jumpToAll = (element) => {
|
||||
getSupInfoByOpenId(element.orgCode,element.id).then(res => {
|
||||
getSupInfoByOpenId( element.suppliersId).then(res => {
|
||||
if (res.success) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/addsupplier/all?element=${JSON.stringify(res.result)}`
|
||||
|
|
|
|||
|
|
@ -16,10 +16,10 @@
|
|||
|
||||
<view v-for="(item,index) in menuArray" :key="index">
|
||||
<swiper-item>
|
||||
<view style="height: 10vh;" v-if="!(item.applyStatus == '2' || item.applyType == '2')"></view>
|
||||
<view style="height: 10vh;" v-if="!(item.applyStatus == '2' || item.modifyStatus )"></view>
|
||||
<view class="white-content-father">
|
||||
<view class="chuo-ball" @click="loadingData"
|
||||
v-if="item.applyType =='1' && item.applyStatus==`1`">
|
||||
v-if="!item.modifyStatus && item.applyStatus==`1`">
|
||||
<image class="ball-img"
|
||||
:src=" `https://www.focusnu.com/media/directive/index/refresh.png`" />
|
||||
</view>
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="white-content" v-if="item.applyType =='1' && item.applyStatus==`1`">
|
||||
<view class="white-content" v-if="!item.modifyStatus && item.applyStatus==`1`&&item.applyType==1">
|
||||
<image class="white-content-img"
|
||||
:src="`https://www.focusnu.com/media/directive/index/${statusarray[Number(item.applyStatus) - 1]}.png`"
|
||||
lazy-load="false" />
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
</view>
|
||||
</view>
|
||||
|
||||
<view class="white-content" v-if="item.applyType =='1' && item.applyStatus==`3`">
|
||||
<view class="white-content" v-if="!item.modifyStatus && item.applyStatus==`3`">
|
||||
<image class="white-content-img"
|
||||
:src="`https://www.focusnu.com/media/directive/index/${statusarray[Number(item.applyStatus) - 1]}.png`"
|
||||
lazy-load="false" />
|
||||
|
|
@ -96,7 +96,7 @@
|
|||
</view>
|
||||
|
||||
<view style="z-index: 1;width: 100%;margin-top: 100rpx;"
|
||||
v-if=" item.applyStatus==`2` || item.applyType == `2`">
|
||||
v-if=" item.applyStatus==`2`||item.modifyStatus ">
|
||||
<view class="fuwu-button">
|
||||
<view class="fuwu-button-top">
|
||||
<view style="display: flex;">
|
||||
|
|
@ -189,7 +189,7 @@
|
|||
|
||||
</view>
|
||||
|
||||
<view class="zhiling-box" v-if="item.applyType =='1' && item.applyStatus==`-1`">
|
||||
<!-- <view class="zhiling-box" v-if=" item.applyStatus==`-1`">
|
||||
<view class="zhiling-box">
|
||||
<view class="">
|
||||
暂无信息
|
||||
|
|
@ -198,7 +198,7 @@
|
|||
src="https://www.focusnu.com/media/directive/index/mine/more.png" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="white-content" style="margin: 0 auto;margin-top: 0rpx;height: 740rpx;"
|
||||
v-if="item.applyStatus==`-1`">
|
||||
|
|
@ -576,6 +576,7 @@
|
|||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
.btnname {
|
||||
font-size: 32rpx;
|
||||
margin-top: 50rpx;
|
||||
|
|
|
|||
Loading…
Reference in New Issue