|
@ -5,9 +5,9 @@ |
|
|
<u-search :show-action="true" v-model="searchValue" action-text="搜索" input-align="left" height="65" |
|
|
<u-search :show-action="true" v-model="searchValue" action-text="搜索" input-align="left" height="65" |
|
|
border-color=#5599FF @search="searchTable()"> |
|
|
border-color=#5599FF @search="searchTable()"> |
|
|
</u-search> |
|
|
</u-search> |
|
|
<u-subsection :animation="true" active-color="#5599FF" ref="tabs1" :list="list1" :current="current" |
|
|
<u-tabs :animation="true" active-color="#5599FF" ref="tabs1" :list="list1" :current="current" |
|
|
@change="tabsChange" :is-scroll="false"> |
|
|
@change="tabsChange" :is-scroll="false"> |
|
|
</u-subsection> |
|
|
</u-tabs> |
|
|
</view> |
|
|
</view> |
|
|
<view class="item" v-for="(item, index) in list" :key="index" @click="openDetail(item)"> |
|
|
<view class="item" v-for="(item, index) in list" :key="index" @click="openDetail(item)"> |
|
|
<view class="title"> |
|
|
<view class="title"> |
|
@ -31,14 +31,16 @@ |
|
|
<view class="dec"> |
|
|
<view class="dec"> |
|
|
<view>状态:</view> |
|
|
<view>状态:</view> |
|
|
<view> |
|
|
<view> |
|
|
<u-tag text="待齐套" v-if="item.status==-1" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
<!-- <u-tag text="待齐套" v-if="item.status==-1" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
border-color='#fe8463' type="primary" shape='circle'/> |
|
|
border-color='#fe8463' type="primary" shape='circle'/> --> |
|
|
<u-tag text="待排产" v-if="item.status==1" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
<u-tag text="待排产" v-if="item.status==1" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
border-color='#fe8463' type="primary" shape='circle'/> |
|
|
border-color='#fe8463' type="primary" shape='circle'/> |
|
|
<u-tag text="已发布" v-if="item.status==2" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
<u-tag text="已排产" v-if="item.status==2" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
border-color='#fe8463' type="primary" shape='circle'/> |
|
|
border-color='#fe8463' type="primary" shape='circle'/> |
|
|
<u-tag text="生产中" v-if="item.status==3" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
<u-tag text="生产中" v-if="item.status==3" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
border-color='#fe8463' type="primary" shape='circle'/> |
|
|
border-color='#fe8463' type="primary" shape='circle'/> |
|
|
|
|
|
<u-tag text="已完成" v-if="item.status==9" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
|
|
|
border-color='#fe8463' type="primary" shape='circle'/> |
|
|
<u-tag text="已终止" v-if="item.status==4" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
<u-tag text="已终止" v-if="item.status==4" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
border-color='#fe8463' type="primary" shape='circle'/> |
|
|
border-color='#fe8463' type="primary" shape='circle'/> |
|
|
</view> |
|
|
</view> |
|
@ -77,11 +79,14 @@ const list1 = ref([ |
|
|
name: '待排产', |
|
|
name: '待排产', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '已发布', |
|
|
name: '已排产', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '生产中', |
|
|
name: '生产中', |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: '已完成', |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '已终止', |
|
|
name: '已终止', |
|
|
} |
|
|
} |
|
@ -129,11 +134,11 @@ const tabParams = ref({ |
|
|
flag: null |
|
|
flag: null |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
async function getTabsList() { |
|
|
function getTabsList() { |
|
|
if (status.value == 'nomore') return |
|
|
if (status.value == 'nomore') return |
|
|
status.value = 'loading' |
|
|
status.value = 'loading' |
|
|
proxy.$modal.loading('加载中') |
|
|
proxy.$modal.loading('加载中') |
|
|
await orderDayPlanListApi.getOrderDayPage(tabParams.value).then((res) => { |
|
|
orderDayPlanListApi.getOrderDayPage(tabParams.value).then((res) => { |
|
|
proxy.$modal.closeLoading() |
|
|
proxy.$modal.closeLoading() |
|
|
if (res.data.list.length > 0) { |
|
|
if (res.data.list.length > 0) { |
|
|
list.value = list.value.concat(res.data.list) |
|
|
list.value = list.value.concat(res.data.list) |
|
@ -151,6 +156,7 @@ async function getTabsList() { |
|
|
|
|
|
|
|
|
//首次进页面触发 |
|
|
//首次进页面触发 |
|
|
onShow(() => { |
|
|
onShow(() => { |
|
|
|
|
|
current.value = 0 |
|
|
tabParams.value.pageNo = 1 |
|
|
tabParams.value.pageNo = 1 |
|
|
tabParams.value.status = '' |
|
|
tabParams.value.status = '' |
|
|
list.value = [] |
|
|
list.value = [] |
|
@ -187,13 +193,32 @@ function openInspectItem(item, index) { |
|
|
|
|
|
|
|
|
//切换标签页 |
|
|
//切换标签页 |
|
|
function tabsChange(index) { |
|
|
function tabsChange(index) { |
|
|
|
|
|
switch (index) { |
|
|
|
|
|
case 0: |
|
|
|
|
|
tabParams.value.status = ''; |
|
|
|
|
|
break; |
|
|
|
|
|
case 1: |
|
|
|
|
|
tabParams.value.status = '1'; |
|
|
|
|
|
break; |
|
|
|
|
|
case 2: |
|
|
|
|
|
tabParams.value.status = '2'; |
|
|
|
|
|
break; |
|
|
|
|
|
case 3: |
|
|
|
|
|
tabParams.value.status = '3'; |
|
|
|
|
|
break; |
|
|
|
|
|
case 4: |
|
|
|
|
|
tabParams.value.status = '9'; |
|
|
|
|
|
break; |
|
|
|
|
|
case 5: |
|
|
|
|
|
tabParams.value.status = '-2'; |
|
|
|
|
|
break; |
|
|
|
|
|
default: |
|
|
|
|
|
tabParams.value.status = index; |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
current.value = index |
|
|
current.value = index |
|
|
tabParams.value.pageNo = 1 |
|
|
tabParams.value.pageNo = 1 |
|
|
if (index == '0') { |
|
|
|
|
|
tabParams.value.status = '' |
|
|
|
|
|
} else { |
|
|
|
|
|
tabParams.value.status = index |
|
|
|
|
|
} |
|
|
|
|
|
list.value = [] |
|
|
list.value = [] |
|
|
status.value = 'loading' |
|
|
status.value = 'loading' |
|
|
getTabsList() |
|
|
getTabsList() |
|
|