0cb70e4f by xukangle

fix

1 parent 2ee7a970
......@@ -363,6 +363,7 @@ const formItems = ref([{
visible: true,
default: [],
field: 'qualityEvaluationFile',
limit: 1,
}]);
const formRules = ref({
......
......@@ -338,7 +338,7 @@ const tableBtnClick = (scope, btn) => {
// dialogInfo.value.type = 'reSubmit';
// dialogInfo.value.visible = true;
// }
if (row.qualityScore || (!row.qualityScore && !row.qualityEvaluationGuid)) {
if (row.qualityEvaluationGuid) {
formItems.value[2].visible = false;
formItems.value[3].visible = false;
formItems.value[4].visible = false;
......@@ -353,7 +353,7 @@ const tableBtnClick = (scope, btn) => {
dialogInfo.value.type = 'reSubmit';
dialogInfo.value.visible = true;
}
if (!row.qualityScore && row.qualityEvaluationGuid) {
if (!row.qualityEvaluationGuid) {
formItems.value[2].visible = true;
formItems.value[3].visible = true;
formItems.value[4].visible = true;
......@@ -558,6 +558,7 @@ const formItems = ref<any>([
},
block: true,
visible: true,
limit: 1,
},
// 质量评分 type: input
{
......
......@@ -152,7 +152,7 @@ const tableInfo = ref({
if (approveVO && approveVO.approveState == 'A' && staffGuid == currentStaffGuid) {
isShowCancel = true;
}
if (approveState === 'Y') {
if (bizApproveState === 'Y') {
if (row.listingStatus === 'Y') {
list.push({ label: "下架", value: "down" });
}
......@@ -186,13 +186,14 @@ const tableInfo = ref({
const getTableData = () => {
const getTableData = (exchangeGuid = '') => {
tableInfo.value.loading = true;
// flowDetailLoading.value = true;
getListingList(
Object.assign({}, searchItemValue.value, {
pageIndex: page.value.curr,
pageSize: page.value.limit,
exchangeGuid: exchangeGuid
})
)
.then((res: any) => {
......@@ -788,6 +789,11 @@ const btnClick = (item) => {
}
}
const cardBtnClick = (item) => {
console.log(item, '------------------')
getTableData(item.exchangeGuid);
}
const formInfo = ref<any>({
id: 'check-form',
col: 'col2',
......@@ -913,7 +919,7 @@ const formInfo = ref<any>({
</div>
<div v-loading="flowDetailLoading">
<div class="list-content" v-if="demandListData.length > 0">
<div class="card-content" v-for="item in demandListData" :key="item.guid">
<div class="card-content" v-for="item in demandListData" :key="item.guid" @click="cardBtnClick(item)">
<div class="header">
<div class="header-top">
<img class="left-img"
......@@ -933,7 +939,7 @@ const formInfo = ref<any>({
</div>
</div>
</div>
<div class="operator-btn" @click="btnClick(item)">
<div class="operator-btn" @click.stop="btnClick(item)">
<!-- <div class="left-btn">更新模板</div> -->
<div class="right-btn">产品上架</div>
</div>
......
......@@ -49,9 +49,32 @@ const tableInfo = ref({
}
},
{
label: "状态", field: "updateTime", width: 100, getName: (scope) => {
label: "状态", field: "updateTime", width: TableColumnWidth.STATE, align: 'center', type: "tag", getName: (scope) => {
//状态(1:待上传 2:部分上传 3:全部上传 )
return statusList.find((item) => item.value == scope.row.state)?.label || '待上传';
// return statusList.find((item) => item.value == scope.row.state)?.label || '待上传';
const state = statusList.find((item) => item.value == scope.row.state)?.label || '待上传';
switch (state) {
case '待上传':
return '待上传';
case '部分上传':
return '部分上传';
case '全部上传':
return '全部上传';
default:
return '待上传';
}
}, tagType: (scope) => {
const state1 = scope.row.state;
switch (state1) {
case '1':
return 'warning';
case '2':
return 'warning';
case '3':
return 'success';
default:
return 'info';
}
}
},
{
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!