供应商-随行单模块完毕
This commit is contained in:
parent
b6ca8d0b5f
commit
ae6f0edb34
|
|
@ -393,14 +393,16 @@
|
||||||
"path" : "pages/yuangongindex/purchaseorder",
|
"path" : "pages/yuangongindex/purchaseorder",
|
||||||
"style" :
|
"style" :
|
||||||
{
|
{
|
||||||
"navigationBarTitleText" : ""
|
"navigationBarTitleText" : "",
|
||||||
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path" : "pages/yuangongindex/purchaseorderdetail",
|
"path" : "pages/yuangongindex/purchaseorderdetail",
|
||||||
"style" :
|
"style" :
|
||||||
{
|
{
|
||||||
"navigationBarTitleText" : ""
|
"navigationBarTitleText" : "",
|
||||||
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -266,12 +266,13 @@
|
||||||
// uni.showLoading()
|
// uni.showLoading()
|
||||||
}
|
}
|
||||||
const jumpother = (e) => {
|
const jumpother = (e) => {
|
||||||
|
// console.log("e",e.suppliersId)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/yuangongindex/purchaseorder?serverUrl="+e.serverUrl
|
url: "/pages/yuangongindex/purchaseorder?id="+e.suppliersId
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const buttonArray = ref(["物料信息", "敬请期待", "敬请期待"])
|
const buttonArray = ref(["物料信息", "完结单", "敬请期待"])
|
||||||
const statusarray = ["loading", "success", "fail"]
|
const statusarray = ["loading", "success", "fail"]
|
||||||
const which = ref(0);
|
const which = ref(0);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -94,3 +94,36 @@ export function getDictItems(data){
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 采购单列表
|
||||||
|
export function queryCgdList(data){
|
||||||
|
return request({
|
||||||
|
url: `/api/suppliers/queryCgdList?gysId=${data.gysId}&pageNo=${data.pageNo}&pageSize=10&status=${data.status}`,
|
||||||
|
method: 'get',
|
||||||
|
data,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 采购单详情列表
|
||||||
|
export function queryCgdInfoList(data){
|
||||||
|
return request({
|
||||||
|
url: `/api/suppliers/queryCgdInfoList?cgdId=${data.cgdId}&pageNo=${data.pageNo}&pageSize=10`,
|
||||||
|
method: 'get',
|
||||||
|
data,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//采购单详情改价
|
||||||
|
export function editArrivalPrice(data){
|
||||||
|
return request({
|
||||||
|
url: `/api/suppliers/editArrivalPrice`,
|
||||||
|
method: 'post',
|
||||||
|
data,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//单据确认
|
||||||
|
export function cgdQueren(data){
|
||||||
|
return request({
|
||||||
|
url: `/api/suppliers/cgdQueren`,
|
||||||
|
method: 'post',
|
||||||
|
data,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -11,21 +11,21 @@
|
||||||
v-for="(item,index) in tabarray" :key="index" @click="changeTab(index)">
|
v-for="(item,index) in tabarray" :key="index" @click="changeTab(index)">
|
||||||
{{ item }}
|
{{ item }}
|
||||||
</view>
|
</view>
|
||||||
<view class="tab-view-target" :style="{left:`${13.5 + tabtargetindex * 23}%` }">
|
<view class="tab-view-target" :style="{left:`${11 + tabtargetindex * 18.4}%` }">
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view :style="{height:`${uni.getStorageSync('moveHeight') + 98}px`}"></view>
|
<view :style="{height:`${uni.getStorageSync('moveHeight') + 98}px`}"></view>
|
||||||
<view class="card-view" v-for="(item,index) in cardlist" :key="index" @click="gotoDeatil(item.id)">
|
<view class="card-view" v-for="(item,index) in cardlist" :key="index" @click="gotoDeatil(item)">
|
||||||
<view class="card-top">
|
<view class="card-top">
|
||||||
<view class="card-top-left">
|
<view class="card-top-left">
|
||||||
<image class="card-mark" src="https://www.focusnu.com/media/directive/index/buylist.png" />
|
<image class="card-mark" src="https://www.focusnu.com/media/directive/index/buylist.png" />
|
||||||
<view>
|
<view>
|
||||||
<view class="card-id">
|
<view class="card-id">
|
||||||
{{ item.id }}
|
{{ item.cgdNo }}
|
||||||
</view>
|
</view>
|
||||||
<view class="card-time">
|
<view class="card-time">
|
||||||
采购日期:{{ item.time }}
|
采购日期:{{ item.qgDate }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
<text class="card-price">
|
<text class="card-price">
|
||||||
{{ item.price }}
|
{{ item.totalPrice }}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -50,14 +50,23 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="card-end">
|
<view class="card-end">
|
||||||
<view class="card-name">
|
<view class="card-name">
|
||||||
机构名称:{{ item.address }}
|
机构名称:{{ item.departName }}
|
||||||
</view>
|
</view>
|
||||||
<view class="card-tags"
|
<view class="card-tags"
|
||||||
:style="{borderColor:`${tagstype[item.type].color}`,color:`${tagstype[item.type].color}`}">
|
:style="{borderColor:`${tagstype[item.status].color}`,color:`${tagstype[item.status].color}`}">
|
||||||
{{ tagstype[item.type].name }}
|
{{ tagstype[item.status].name }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view
|
||||||
|
style="position: fixed;left:0;top: 50%;transform: translateY(-50%);width: 100%;display: flex;flex-direction: column;justify-content: center;align-items: center;z-index: 999;"
|
||||||
|
v-if="!cardlist.length">
|
||||||
|
<image style="height: 220rpx;width: 350rpx;"
|
||||||
|
src="https://www.focusnu.com/media/directive/index/jigouyaoqing.png" />
|
||||||
|
<view style="color: #8E96AD;margin-top: 20rpx;">
|
||||||
|
暂无采购单
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="card-view-finally">
|
<view class="card-view-finally">
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -68,101 +77,139 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, ref, nextTick } from 'vue';
|
import { reactive, ref, nextTick } from 'vue';
|
||||||
import { onLoad, onPullDownRefresh, onReachBottom } from '@dcloudio/uni-app'
|
import { onLoad, onPullDownRefresh, onReachBottom } from '@dcloudio/uni-app'
|
||||||
import { getEmployeesOrgRela, getCgdListByGysId } from './api.js'
|
import { getEmployeesOrgRela, getCgdListByGysId, queryCgdList } from './api.js'
|
||||||
|
|
||||||
|
|
||||||
|
const gysId = ref("")
|
||||||
|
onLoad((options : Record<string, string | undefined>) => {
|
||||||
|
gysId.value = options?.id;
|
||||||
|
getChdList()
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
const pageNo = ref(1);
|
||||||
|
const status = ref<string | number>("");
|
||||||
|
const getChdList = () => {
|
||||||
|
stopget.value = false;
|
||||||
|
let data = {
|
||||||
|
gysId: gysId.value,
|
||||||
|
pageNo: pageNo.value,
|
||||||
|
status: status.value
|
||||||
|
}
|
||||||
|
|
||||||
|
queryCgdList(data).then((res : any) => {
|
||||||
|
if (res.success) {
|
||||||
|
res.result.records.forEach((element:any)=>{
|
||||||
|
if(element.status==9){
|
||||||
|
element.status = 3
|
||||||
|
}
|
||||||
|
})
|
||||||
|
cardlist.value = res.result.records
|
||||||
|
|
||||||
|
} else {
|
||||||
|
cardlist.value = [];
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none', // 必须写 none 才是文字提示
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
const tagstype = ref([
|
const tagstype = ref([
|
||||||
{
|
{
|
||||||
name: `采购中`,
|
name: `待确认`,
|
||||||
color: `#0074E1`
|
color: `#0074E1`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: `挂账中`,
|
name: `拣货中`,
|
||||||
color: `#F03232`
|
color: `#F03232`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: `已完成`,
|
name: `已完成`,
|
||||||
color: `#222222`
|
color: `#222222`
|
||||||
}])
|
|
||||||
const cardlist = ref([
|
|
||||||
{
|
|
||||||
id: `101C20251121006`,
|
|
||||||
price: `126`,
|
|
||||||
time: `2026.01.19`,
|
|
||||||
address: `吉林省久泰健康产业有限公司`,
|
|
||||||
type: 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: `101C20251121007`,
|
name: `已作废`,
|
||||||
price: `189`,
|
color: `red`
|
||||||
time: `2026.01.19`,
|
|
||||||
address: `吉林省久泰健康产业有限公司`,
|
|
||||||
type: 1
|
|
||||||
},
|
},
|
||||||
{
|
])
|
||||||
id: ` 101C20251121011`,
|
const cardlist = ref([])
|
||||||
price: `38`,
|
const tabarray = [`全部`, `待确认`, `拣货中`, `已完成`,`已作废`]
|
||||||
time: `2026.01.19`,
|
|
||||||
address: `吉林省久泰健康产业有限公司`,
|
|
||||||
type: 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: `101C20251121006`,
|
|
||||||
price: `126`,
|
|
||||||
time: `2026.01.19`,
|
|
||||||
address: `吉林省久泰健康产业有限公司`,
|
|
||||||
type: 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: `101C20251121007`,
|
|
||||||
price: `189`,
|
|
||||||
time: `2026.01.19`,
|
|
||||||
address: `吉林省久泰健康产业有限公司`,
|
|
||||||
type: 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: ` 101C20251121011`,
|
|
||||||
price: `38`,
|
|
||||||
time: `2026.01.19`,
|
|
||||||
address: `吉林省久泰健康产业有限公司`,
|
|
||||||
type: 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: `101C20251121006`,
|
|
||||||
price: `126`,
|
|
||||||
time: `2026.01.19`,
|
|
||||||
address: `吉林省久泰健康产业有限公司`,
|
|
||||||
type: 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: `101C20251121007`,
|
|
||||||
price: `189`,
|
|
||||||
time: `2026.01.19`,
|
|
||||||
address: `吉林省久泰健康产业有限公司`,
|
|
||||||
type: 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: ` 101C20251121011`,
|
|
||||||
price: `38`,
|
|
||||||
time: `2026.01.19`,
|
|
||||||
address: `吉林省久泰健康产业有限公司`,
|
|
||||||
type: 2
|
|
||||||
},
|
|
||||||
])
|
|
||||||
const tabarray = [`全部`, `采购中`, `挂账中`, `已完成`]
|
|
||||||
// 选中的序列号
|
// 选中的序列号
|
||||||
const tabtargetindex = ref(0)
|
const tabtargetindex = ref(0)
|
||||||
// 切换标签
|
// 切换标签
|
||||||
const changeTab = (index : number) => {
|
const changeTab = (index : number) => {
|
||||||
tabtargetindex.value = index
|
tabtargetindex.value = index;
|
||||||
|
changeArray()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onPullDownRefresh(() => {
|
||||||
|
try {
|
||||||
|
changeArray()
|
||||||
|
} finally {
|
||||||
|
uni.stopPullDownRefresh() // 👈 必须手动关闭
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
const stopget = ref(false)
|
||||||
|
|
||||||
|
onReachBottom(() => {
|
||||||
|
|
||||||
|
if (!stopget.value) {
|
||||||
|
pageNo.value++
|
||||||
|
let data = {
|
||||||
|
gysId: gysId.value,
|
||||||
|
pageNo: pageNo.value,
|
||||||
|
status: status.value
|
||||||
|
}
|
||||||
|
|
||||||
|
queryCgdList(data).then((res : any) => {
|
||||||
|
if (res.success) {
|
||||||
|
res.result.records.forEach((element:any)=>{
|
||||||
|
if(element.status==9){
|
||||||
|
element.status = 3
|
||||||
|
}
|
||||||
|
})
|
||||||
|
cardlist.value.push(...res.result.records)
|
||||||
|
if (res.result.records.length != 10) {
|
||||||
|
stopget.value = true
|
||||||
|
}
|
||||||
|
// cardlist.value = res.result.records
|
||||||
|
} else {
|
||||||
|
cardlist.value = [];
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none', // 必须写 none 才是文字提示
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
})
|
||||||
|
const changeArray = () => {
|
||||||
|
if(tabtargetindex.value==4){
|
||||||
|
status.value = 9
|
||||||
|
}else if (tabtargetindex.value) {
|
||||||
|
status.value = Number(tabtargetindex.value) - 1
|
||||||
|
} else {
|
||||||
|
status.value = ""
|
||||||
|
}
|
||||||
|
pageNo.value = 1;
|
||||||
|
getChdList()
|
||||||
|
}
|
||||||
const goBack = () => {
|
const goBack = () => {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}
|
}
|
||||||
|
|
||||||
const gotoDeatil = (id:string) => {
|
const gotoDeatil = (item : any) => {
|
||||||
|
// item.gysId = gysId.value
|
||||||
|
const str = encodeURIComponent(JSON.stringify(item))
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/yuangongindex/purchaseorderdetail?id=${id}`
|
url: `/pages/yuangongindex/purchaseorderdetail?item=${str}`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -212,7 +259,7 @@
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
|
||||||
.tab {
|
.tab {
|
||||||
width: 25%;
|
width: 20%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -343,5 +390,6 @@
|
||||||
|
|
||||||
.card-view-finally {
|
.card-view-finally {
|
||||||
height: 25rpx;
|
height: 25rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -16,8 +16,9 @@
|
||||||
采购单
|
采购单
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="buylist-tags">
|
<view class="buylist-tags"
|
||||||
采购中
|
:style="{borderColor:`${tagstype[transobject?.status].color}`,color:`${tagstype[transobject?.status].color}`}">
|
||||||
|
{{ tagstype[transobject?.status].name }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="card-middle">
|
<view class="card-middle">
|
||||||
|
|
@ -30,7 +31,7 @@
|
||||||
<view class="buylist-number-text">
|
<view class="buylist-number-text">
|
||||||
采购单号:
|
采购单号:
|
||||||
<text>
|
<text>
|
||||||
101C20251121006
|
{{ transobject?.cgdNo }}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -39,7 +40,7 @@
|
||||||
<view class="buylist-number-text">
|
<view class="buylist-number-text">
|
||||||
采购日期:
|
采购日期:
|
||||||
<text>
|
<text>
|
||||||
2025-10-12
|
{{ transobject?.qgDate}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -51,7 +52,7 @@
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
<text class="card-price">
|
<text class="card-price">
|
||||||
25
|
{{ transobject?.totalPrice}}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -78,7 +79,7 @@
|
||||||
<view class="buylist-show">
|
<view class="buylist-show">
|
||||||
机构名称:
|
机构名称:
|
||||||
<text>
|
<text>
|
||||||
吉林省久泰健康产业有限公司
|
{{ transobject?.departName}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -87,7 +88,8 @@
|
||||||
<view class="buylist-show-two">
|
<view class="buylist-show-two">
|
||||||
收货地址:
|
收货地址:
|
||||||
<view class="buylist-show-relative">
|
<view class="buylist-show-relative">
|
||||||
吉林省长春市朝阳区开运街41号吉 省长春市朝阳区开运街41号
|
|
||||||
|
{{ transobject?.comRegisterAddress}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -99,7 +101,7 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<text>
|
<text>
|
||||||
张某
|
{{ transobject?.qgBy}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -111,7 +113,8 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<text>
|
<text>
|
||||||
13845337753
|
|
||||||
|
{{ transobject?.qgTel}}
|
||||||
</text>
|
</text>
|
||||||
<image class="company-img" style="margin-left: 20rpx;"
|
<image class="company-img" style="margin-left: 20rpx;"
|
||||||
src="https://www.focusnu.com/media/directive/index/buylisticon/takephone.png" />
|
src="https://www.focusnu.com/media/directive/index/buylisticon/takephone.png" />
|
||||||
|
|
@ -137,7 +140,7 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<text>
|
<text>
|
||||||
吉林天林商贸有限公司
|
{{ transobject?.gysName}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -149,7 +152,7 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<text>
|
<text>
|
||||||
吕婧文
|
{{ transobject?.gysLxr}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -161,16 +164,16 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<text>
|
<text>
|
||||||
13356856633
|
{{ transobject?.gysLxrdh}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="card-view" v-for="(item,index) in [0,0,0,0,0]" :key="index">
|
<view class="card-view" v-for="(item,index) in cardlist" :key="index">
|
||||||
<view class="card-text">
|
<view class="card-text">
|
||||||
<view class="card-title">
|
<view class="card-title">
|
||||||
纸尿裤-拉拉裤纸尿裤
|
{{ item.wlName }}
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="card-number">
|
<view class="card-number">
|
||||||
|
|
@ -178,7 +181,7 @@
|
||||||
采购数量
|
采购数量
|
||||||
</view>
|
</view>
|
||||||
<view class="number">
|
<view class="number">
|
||||||
168
|
{{ item.purchaseQuantity }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -189,7 +192,7 @@
|
||||||
<view class="buylist-show">
|
<view class="buylist-show">
|
||||||
规格型号:
|
规格型号:
|
||||||
<text>
|
<text>
|
||||||
800mm*680mm
|
{{ item.wlSpecificationModel }}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -197,7 +200,7 @@
|
||||||
<view class="buylist-show">
|
<view class="buylist-show">
|
||||||
品牌型号:
|
品牌型号:
|
||||||
<text>
|
<text>
|
||||||
品牌型号名称
|
{{ item.brandType }}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -205,7 +208,7 @@
|
||||||
<view class="buylist-show-two">
|
<view class="buylist-show-two">
|
||||||
生产厂家:
|
生产厂家:
|
||||||
<view class="buylist-show-relative" style="width: 440rpx;">
|
<view class="buylist-show-relative" style="width: 440rpx;">
|
||||||
吉林省长春市朝阳区开运街41号吉 省长春市朝阳区开运街41号
|
{{ item.manufacturer }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -220,7 +223,7 @@
|
||||||
¥
|
¥
|
||||||
</text>
|
</text>
|
||||||
<text class="one-up-money">
|
<text class="one-up-money">
|
||||||
0.32
|
{{ item.procurementPrice }}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="one-down">
|
<view class="one-down">
|
||||||
|
|
@ -230,35 +233,35 @@
|
||||||
<view class="cardruler-one">
|
<view class="cardruler-one">
|
||||||
<view class="one-up">
|
<view class="one-up">
|
||||||
<view class="one-up-pian">
|
<view class="one-up-pian">
|
||||||
片
|
{{ item.wlUnits }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="one-down">
|
<view class="one-down">
|
||||||
采购单位
|
采购单位
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cardruler-one">
|
<view class="cardruler-one" @click="djflagclick(item)">
|
||||||
<view class="one-up">
|
<view class="one-up">
|
||||||
<text class="one-up-mark">
|
<text class="one-up-mark">
|
||||||
¥
|
¥
|
||||||
</text>
|
</text>
|
||||||
<text class="one-up-money">
|
<text class="one-up-money">
|
||||||
{{ djflagnumber }}
|
{{ item.arrivalPrice }}
|
||||||
</text>
|
</text>
|
||||||
<image class="phone-img" @click="djflagclick()"
|
<image class="phone-img"
|
||||||
src="https://www.focusnu.com/media/directive/index/buylisticon/edit.png" />
|
src="https://www.focusnu.com/media/directive/index/buylisticon/edit.png" />
|
||||||
</view>
|
</view>
|
||||||
<view class="one-down">
|
<view class="one-down">
|
||||||
销售价格
|
销售价格
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cardruler-one">
|
<view class="cardruler-one" @click="dwflagclick()">
|
||||||
<view class="one-up">
|
<view class="one-up">
|
||||||
<view class="one-up-pian">
|
<view class="one-up-pian">
|
||||||
{{ relqita }}
|
{{ item.wlUnits }}
|
||||||
</view>
|
</view>
|
||||||
<image class="phone-img" @click=" dwflagclick()"
|
<!-- <image class="phone-img"
|
||||||
src="https://www.focusnu.com/media/directive/index/buylisticon/edit.png" />
|
src="https://www.focusnu.com/media/directive/index/buylisticon/edit.png" /> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="one-down">
|
<view class="one-down">
|
||||||
销售单位
|
销售单位
|
||||||
|
|
@ -272,7 +275,7 @@
|
||||||
<view class="cardruler-one">
|
<view class="cardruler-one">
|
||||||
<view class="one-up">
|
<view class="one-up">
|
||||||
<text class="one-up-number">
|
<text class="one-up-number">
|
||||||
350
|
{{ item.rksl }}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="one-down">
|
<view class="one-down">
|
||||||
|
|
@ -282,7 +285,7 @@
|
||||||
<view class="cardruler-one">
|
<view class="cardruler-one">
|
||||||
<view class="one-up">
|
<view class="one-up">
|
||||||
<text class="one-up-number">
|
<text class="one-up-number">
|
||||||
10
|
{{ item.wrksl }}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="one-down">
|
<view class="one-down">
|
||||||
|
|
@ -292,7 +295,7 @@
|
||||||
<view class="cardruler-one">
|
<view class="cardruler-one">
|
||||||
<view class="one-up">
|
<view class="one-up">
|
||||||
<text class="one-up-number">
|
<text class="one-up-number">
|
||||||
40
|
{{ item.xzsl }}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="one-down">
|
<view class="one-down">
|
||||||
|
|
@ -305,7 +308,7 @@
|
||||||
¥
|
¥
|
||||||
</text>
|
</text>
|
||||||
<text class="one-up-money">
|
<text class="one-up-money">
|
||||||
0.56
|
{{ (item.purchaseQuantity * item.arrivalPrice).toFixed(2) }}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="one-down">
|
<view class="one-down">
|
||||||
|
|
@ -322,7 +325,10 @@
|
||||||
<view class="button-back" @click="goBack">
|
<view class="button-back" @click="goBack">
|
||||||
返回
|
返回
|
||||||
</view>
|
</view>
|
||||||
<view class="button-right" @click="listisok">
|
<view class="button-right" @click="listisok" v-if="transobject.izGysConfirmed==`N`&&transobject.cgdType==0" >
|
||||||
|
确认
|
||||||
|
</view>
|
||||||
|
<view class="button-bad" v-else >
|
||||||
确认
|
确认
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -349,7 +355,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="botrn" style="position: relative;">
|
<view class="botrn" style="position: relative;">
|
||||||
<view @click="dwflag = false">取消</view>
|
<view @click="dwflag = false">取消</view>
|
||||||
<view @click="queding('dw')">确定</view>
|
<view class="botrn-right" @click="queding('dw')">确定</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tanchuc guodu" :style="{height:djflag?'962rpx !important':'0 !important'}">
|
<view class="tanchuc guodu" :style="{height:djflag?'962rpx !important':'0 !important'}">
|
||||||
|
|
@ -380,7 +386,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<tanchuang :show="tanchuangopne" @back="tanchuangopne=false" @right="tanchuangopne=false">
|
<tanchuang :show="tanchuangopne" @back="tanchuangopne=false" @right="clickright">
|
||||||
<template #font>
|
<template #font>
|
||||||
<view class="right-font">请仔细确认随货同行单内容,一经确认将无法更改,届时平台将自动发送随货同行单至护理机构,确认生成随货同行单吗?</view>
|
<view class="right-font">请仔细确认随货同行单内容,一经确认将无法更改,届时平台将自动发送随货同行单至护理机构,确认生成随货同行单吗?</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -390,13 +396,41 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, ref, nextTick } from 'vue';
|
import { reactive, ref, nextTick } from 'vue';
|
||||||
import { onLoad, onPullDownRefresh, onReachBottom } from '@dcloudio/uni-app'
|
import { onLoad, onPullDownRefresh, onReachBottom } from '@dcloudio/uni-app'
|
||||||
import { getDictItems } from './api.js'
|
import { getDictItems, queryCgdInfoList,editArrivalPrice,cgdQueren } from './api.js'
|
||||||
import tanchuang from '@/compontent/public/tanchuang.vue'
|
import tanchuang from '@/compontent/public/tanchuang.vue'
|
||||||
|
|
||||||
onLoad((options : Record<string, string | undefined>) => {
|
onLoad((options : Record<string, string | undefined>) => {
|
||||||
const id = options?.id
|
const item = JSON.parse(decodeURIComponent(options.item))
|
||||||
console.log('接收到的id', id)
|
// console.log(item)
|
||||||
|
transobject.value = item;
|
||||||
gettimearr()
|
gettimearr()
|
||||||
|
getDetailList()
|
||||||
|
})
|
||||||
|
|
||||||
|
const tagstype = ref([
|
||||||
|
{
|
||||||
|
name: `待确认`,
|
||||||
|
color: `#0074E1`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: `采购中`,
|
||||||
|
color: `#F03232`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: `已完成`,
|
||||||
|
color: `#222222`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: `已作废`,
|
||||||
|
color: `red`
|
||||||
|
},
|
||||||
|
])
|
||||||
|
|
||||||
|
const transobject = ref({
|
||||||
|
status: 0,
|
||||||
|
cgdNo: "",
|
||||||
|
qgDate: "",
|
||||||
|
totalPrice: ""
|
||||||
})
|
})
|
||||||
const list = ref([])
|
const list = ref([])
|
||||||
const dwflag = ref(false);
|
const dwflag = ref(false);
|
||||||
|
|
@ -406,7 +440,63 @@
|
||||||
const gettimearr = () => {
|
const gettimearr = () => {
|
||||||
getDictItems({ dictCode: 'xcx_gys_wldw' }).then(res => {
|
getDictItems({ dictCode: 'xcx_gys_wldw' }).then(res => {
|
||||||
list.value = res
|
list.value = res
|
||||||
// console.log("看看", list.value)
|
})
|
||||||
|
}
|
||||||
|
const pageNo = ref(1);
|
||||||
|
const cardlist = ref([])
|
||||||
|
onPullDownRefresh(() => {
|
||||||
|
try {
|
||||||
|
|
||||||
|
getDetailList()
|
||||||
|
} finally {
|
||||||
|
uni.stopPullDownRefresh() // 👈 必须手动关闭
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const stopget = ref(false)
|
||||||
|
onReachBottom(() => {
|
||||||
|
if (!stopget.value) {
|
||||||
|
pageNo.value++
|
||||||
|
let data = {
|
||||||
|
cgdId: transobject.value?.id,
|
||||||
|
pageNo: pageNo.value,
|
||||||
|
}
|
||||||
|
queryCgdInfoList(data).then((res : any) => {
|
||||||
|
if (res.success) {
|
||||||
|
cardlist.value.push(...res.result.records)
|
||||||
|
if (res.result.records.length != 10) {
|
||||||
|
stopget.value = true
|
||||||
|
}
|
||||||
|
// cardlist.value = res.result.records
|
||||||
|
} else {
|
||||||
|
cardlist.value = [];
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none', // 必须写 none 才是文字提示
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
const getDetailList = () => {
|
||||||
|
pageNo.value = 1
|
||||||
|
stopget.value = false;
|
||||||
|
let data = {
|
||||||
|
cgdId: transobject.value?.id,
|
||||||
|
pageNo: pageNo.value,
|
||||||
|
}
|
||||||
|
queryCgdInfoList(data).then((res : any) => {
|
||||||
|
if (res.success) {
|
||||||
|
cardlist.value = res.result.records
|
||||||
|
} else {
|
||||||
|
cardlist.value = [];
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none', // 必须写 none 才是文字提示
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -429,12 +519,30 @@
|
||||||
const djflagnumber = ref(`0.56`)
|
const djflagnumber = ref(`0.56`)
|
||||||
const queding = (e) => {
|
const queding = (e) => {
|
||||||
console.log("e", e)
|
console.log("e", e)
|
||||||
if(e===`dw`){
|
if (e === `dw`) {
|
||||||
relqita.value = qita.value;
|
relqita.value = qita.value;
|
||||||
dwflag.value = false
|
dwflag.value = false
|
||||||
}else{
|
} else {
|
||||||
djflagnumber.value = stringShow.value
|
|
||||||
djflag.value = false
|
let data = {
|
||||||
|
id:saveid.value,
|
||||||
|
arrivalPrice:stringShow.value
|
||||||
|
}
|
||||||
|
editArrivalPrice(data).then((res:any)=>{
|
||||||
|
if(res.success){
|
||||||
|
getDetailList()
|
||||||
|
djflag.value = false
|
||||||
|
}else {
|
||||||
|
cardlist.value = [];
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none', // 必须写 none 才是文字提示
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// // djflagnumber.value = stringShow.value
|
||||||
|
// djflag.value = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const stringShow = ref("");
|
const stringShow = ref("");
|
||||||
|
|
@ -472,15 +580,20 @@
|
||||||
}
|
}
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
const djflagclick = () => {
|
|
||||||
stringShow.value = djflagnumber.value
|
const saveid = ref("")
|
||||||
djflag.value=true
|
|
||||||
|
const djflagclick = (item:any) => {
|
||||||
|
saveid.value = item.id
|
||||||
|
stringShow.value = item.arrivalPrice.toString();
|
||||||
|
djflag.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
const dwflagclick = () => {
|
const dwflagclick = () => {
|
||||||
qita.value = relqita.value;
|
// 暂时注释
|
||||||
dwact.value = -1
|
// qita.value = relqita.value;
|
||||||
dwflag.value=true
|
// dwact.value = -1
|
||||||
|
// dwflag.value = true
|
||||||
}
|
}
|
||||||
const goBack = () => {
|
const goBack = () => {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
|
|
@ -489,6 +602,27 @@
|
||||||
const listisok = () => {
|
const listisok = () => {
|
||||||
tanchuangopne.value = true
|
tanchuangopne.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const clickright = () => {
|
||||||
|
let data = {
|
||||||
|
id:transobject.value.id,
|
||||||
|
izGysConfirmed:'Y'
|
||||||
|
}
|
||||||
|
cgdQueren(data).then((res:any)=>{
|
||||||
|
if(res.success){
|
||||||
|
// console.log("看看",res)
|
||||||
|
uni.navigateBack()
|
||||||
|
}else {
|
||||||
|
cardlist.value = [];
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none', // 必须写 none 才是文字提示
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
|
@ -682,7 +816,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-view-finally {
|
.card-view-finally {
|
||||||
height: 150rpx;
|
height: 180rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-text {
|
.card-text {
|
||||||
|
|
@ -759,6 +893,19 @@
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #57A8FA;
|
background-color: #57A8FA;
|
||||||
}
|
}
|
||||||
|
.button-bad {
|
||||||
|
margin-top: -30rpx;
|
||||||
|
margin-left: 30rpx;
|
||||||
|
height: 53%;
|
||||||
|
width: 200rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
background: #f5f5f5;
|
||||||
|
color: #999999;
|
||||||
|
border: 1px solid #e5e5e5;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.special-middle {
|
.special-middle {
|
||||||
|
|
@ -786,6 +933,8 @@
|
||||||
.one-up {
|
.one-up {
|
||||||
height: 53rpx;
|
height: 53rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
overflow: visible;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
.one-up-mark {
|
.one-up-mark {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
|
|
@ -981,20 +1130,19 @@
|
||||||
border: 1px solid rgba(36, 155, 251, 0.51);
|
border: 1px solid rgba(36, 155, 251, 0.51);
|
||||||
color: #222222;
|
color: #222222;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:nth-child(2) {
|
|
||||||
background: linear-gradient(-90deg, #288DFD, #21A4FA);
|
|
||||||
color: #FFFFFF;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.botrn-right{
|
||||||
|
background: linear-gradient(-90deg, #288DFD, #21A4FA);
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
.guodu {
|
.guodu {
|
||||||
transition: .4s;
|
transition: .4s;
|
||||||
-webkit-transform-style: preserve-3d;
|
-webkit-transform-style: preserve-3d;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
.right-font{
|
|
||||||
|
.right-font {
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
text-indent: 2em;
|
text-indent: 2em;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue