0cb70e4f by xukangle

fix

1 parent 2ee7a970
...@@ -363,6 +363,7 @@ const formItems = ref([{ ...@@ -363,6 +363,7 @@ const formItems = ref([{
363 visible: true, 363 visible: true,
364 default: [], 364 default: [],
365 field: 'qualityEvaluationFile', 365 field: 'qualityEvaluationFile',
366 limit: 1,
366 }]); 367 }]);
367 368
368 const formRules = ref({ 369 const formRules = ref({
......
...@@ -338,7 +338,7 @@ const tableBtnClick = (scope, btn) => { ...@@ -338,7 +338,7 @@ const tableBtnClick = (scope, btn) => {
338 // dialogInfo.value.type = 'reSubmit'; 338 // dialogInfo.value.type = 'reSubmit';
339 // dialogInfo.value.visible = true; 339 // dialogInfo.value.visible = true;
340 // } 340 // }
341 if (row.qualityScore || (!row.qualityScore && !row.qualityEvaluationGuid)) { 341 if (row.qualityEvaluationGuid) {
342 formItems.value[2].visible = false; 342 formItems.value[2].visible = false;
343 formItems.value[3].visible = false; 343 formItems.value[3].visible = false;
344 formItems.value[4].visible = false; 344 formItems.value[4].visible = false;
...@@ -353,7 +353,7 @@ const tableBtnClick = (scope, btn) => { ...@@ -353,7 +353,7 @@ const tableBtnClick = (scope, btn) => {
353 dialogInfo.value.type = 'reSubmit'; 353 dialogInfo.value.type = 'reSubmit';
354 dialogInfo.value.visible = true; 354 dialogInfo.value.visible = true;
355 } 355 }
356 if (!row.qualityScore && row.qualityEvaluationGuid) { 356 if (!row.qualityEvaluationGuid) {
357 formItems.value[2].visible = true; 357 formItems.value[2].visible = true;
358 formItems.value[3].visible = true; 358 formItems.value[3].visible = true;
359 formItems.value[4].visible = true; 359 formItems.value[4].visible = true;
...@@ -558,6 +558,7 @@ const formItems = ref<any>([ ...@@ -558,6 +558,7 @@ const formItems = ref<any>([
558 }, 558 },
559 block: true, 559 block: true,
560 visible: true, 560 visible: true,
561 limit: 1,
561 }, 562 },
562 // 质量评分 type: input 563 // 质量评分 type: input
563 { 564 {
......
...@@ -152,7 +152,7 @@ const tableInfo = ref({ ...@@ -152,7 +152,7 @@ const tableInfo = ref({
152 if (approveVO && approveVO.approveState == 'A' && staffGuid == currentStaffGuid) { 152 if (approveVO && approveVO.approveState == 'A' && staffGuid == currentStaffGuid) {
153 isShowCancel = true; 153 isShowCancel = true;
154 } 154 }
155 if (approveState === 'Y') { 155 if (bizApproveState === 'Y') {
156 if (row.listingStatus === 'Y') { 156 if (row.listingStatus === 'Y') {
157 list.push({ label: "下架", value: "down" }); 157 list.push({ label: "下架", value: "down" });
158 } 158 }
...@@ -186,13 +186,14 @@ const tableInfo = ref({ ...@@ -186,13 +186,14 @@ const tableInfo = ref({
186 186
187 187
188 188
189 const getTableData = () => { 189 const getTableData = (exchangeGuid = '') => {
190 tableInfo.value.loading = true; 190 tableInfo.value.loading = true;
191 // flowDetailLoading.value = true; 191 // flowDetailLoading.value = true;
192 getListingList( 192 getListingList(
193 Object.assign({}, searchItemValue.value, { 193 Object.assign({}, searchItemValue.value, {
194 pageIndex: page.value.curr, 194 pageIndex: page.value.curr,
195 pageSize: page.value.limit, 195 pageSize: page.value.limit,
196 exchangeGuid: exchangeGuid
196 }) 197 })
197 ) 198 )
198 .then((res: any) => { 199 .then((res: any) => {
...@@ -788,6 +789,11 @@ const btnClick = (item) => { ...@@ -788,6 +789,11 @@ const btnClick = (item) => {
788 } 789 }
789 } 790 }
790 791
792 const cardBtnClick = (item) => {
793 console.log(item, '------------------')
794 getTableData(item.exchangeGuid);
795 }
796
791 const formInfo = ref<any>({ 797 const formInfo = ref<any>({
792 id: 'check-form', 798 id: 'check-form',
793 col: 'col2', 799 col: 'col2',
...@@ -913,7 +919,7 @@ const formInfo = ref<any>({ ...@@ -913,7 +919,7 @@ const formInfo = ref<any>({
913 </div> 919 </div>
914 <div v-loading="flowDetailLoading"> 920 <div v-loading="flowDetailLoading">
915 <div class="list-content" v-if="demandListData.length > 0"> 921 <div class="list-content" v-if="demandListData.length > 0">
916 <div class="card-content" v-for="item in demandListData" :key="item.guid"> 922 <div class="card-content" v-for="item in demandListData" :key="item.guid" @click="cardBtnClick(item)">
917 <div class="header"> 923 <div class="header">
918 <div class="header-top"> 924 <div class="header-top">
919 <img class="left-img" 925 <img class="left-img"
...@@ -933,7 +939,7 @@ const formInfo = ref<any>({ ...@@ -933,7 +939,7 @@ const formInfo = ref<any>({
933 </div> 939 </div>
934 </div> 940 </div>
935 </div> 941 </div>
936 <div class="operator-btn" @click="btnClick(item)"> 942 <div class="operator-btn" @click.stop="btnClick(item)">
937 <!-- <div class="left-btn">更新模板</div> --> 943 <!-- <div class="left-btn">更新模板</div> -->
938 <div class="right-btn">产品上架</div> 944 <div class="right-btn">产品上架</div>
939 </div> 945 </div>
......
...@@ -49,9 +49,32 @@ const tableInfo = ref({ ...@@ -49,9 +49,32 @@ const tableInfo = ref({
49 } 49 }
50 }, 50 },
51 { 51 {
52 label: "状态", field: "updateTime", width: 100, getName: (scope) => { 52 label: "状态", field: "updateTime", width: TableColumnWidth.STATE, align: 'center', type: "tag", getName: (scope) => {
53 //状态(1:待上传 2:部分上传 3:全部上传 ) 53 //状态(1:待上传 2:部分上传 3:全部上传 )
54 return statusList.find((item) => item.value == scope.row.state)?.label || '待上传'; 54 // return statusList.find((item) => item.value == scope.row.state)?.label || '待上传';
55 const state = statusList.find((item) => item.value == scope.row.state)?.label || '待上传';
56 switch (state) {
57 case '待上传':
58 return '待上传';
59 case '部分上传':
60 return '部分上传';
61 case '全部上传':
62 return '全部上传';
63 default:
64 return '待上传';
65 }
66 }, tagType: (scope) => {
67 const state1 = scope.row.state;
68 switch (state1) {
69 case '1':
70 return 'warning';
71 case '2':
72 return 'warning';
73 case '3':
74 return 'success';
75 default:
76 return 'info';
77 }
55 } 78 }
56 }, 79 },
57 { 80 {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!