mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-01 02:38:44 +08:00 
			
		
		
		
	订单列表:列表重构: 完善订单发货、修改地址、订单调价、订单备注
This commit is contained in:
		| @@ -66,6 +66,7 @@ const submitForm = async () => { | |||||||
|     const data = unref(formData) |     const data = unref(formData) | ||||||
|     if (radio.value === '2') { |     if (radio.value === '2') { | ||||||
|       data.logisticsId = 0 |       data.logisticsId = 0 | ||||||
|  |       data.logisticsNo = '' | ||||||
|     } |     } | ||||||
|     await TradeOrderApi.delivery(data) |     await TradeOrderApi.delivery(data) | ||||||
|     message.success(t('common.updateSuccess')) |     message.success(t('common.updateSuccess')) | ||||||
|   | |||||||
| @@ -164,7 +164,7 @@ | |||||||
|             </el-table-column> |             </el-table-column> | ||||||
|             <el-table-column align="center" label="配送方式" width="120"> |             <el-table-column align="center" label="配送方式" width="120"> | ||||||
|               <template #default> |               <template #default> | ||||||
|                 <span>{{ scope.row.deliveryType || '快递' }}</span> |                 <dict-tag :type="DICT_TYPE.DELIVERY_TYPE" :value="scope.row.deliveryType" /> | ||||||
|               </template> |               </template> | ||||||
|             </el-table-column> |             </el-table-column> | ||||||
|             <el-table-column align="center" fixed="right" label="操作" width="160"> |             <el-table-column align="center" fixed="right" label="操作" width="160"> | ||||||
| @@ -189,10 +189,6 @@ | |||||||
|                           <Icon icon="ep:chat-line-square" /> |                           <Icon icon="ep:chat-line-square" /> | ||||||
|                           订单备注 |                           订单备注 | ||||||
|                         </el-dropdown-item> |                         </el-dropdown-item> | ||||||
|                         <el-dropdown-item command="refund"> |  | ||||||
|                           <Icon icon="ep:credit-card" /> |  | ||||||
|                           立即退款 |  | ||||||
|                         </el-dropdown-item> |  | ||||||
|                       </el-dropdown-menu> |                       </el-dropdown-menu> | ||||||
|                     </template> |                     </template> | ||||||
|                   </el-dropdown> |                   </el-dropdown> | ||||||
| @@ -221,7 +217,7 @@ | |||||||
|         min-width="180" |         min-width="180" | ||||||
|         prop="payTime" |         prop="payTime" | ||||||
|       /> |       /> | ||||||
|       <el-table-column align="center" label="支付类型" min-width="100" prop="payChannelCode"> |       <el-table-column align="center" label="支付类型" min-width="120" prop="payChannelCode"> | ||||||
|         <template #default="{ row }"> |         <template #default="{ row }"> | ||||||
|           <dict-tag |           <dict-tag | ||||||
|             v-if="row.payChannelCode" |             v-if="row.payChannelCode" | ||||||
| @@ -314,13 +310,10 @@ const spanMethod = ({ rowIndex, columnIndex }: SpanMethodProps) => { | |||||||
| } | } | ||||||
| /** 操作分发 */ | /** 操作分发 */ | ||||||
| const handleCommand = (command: string, row: OrderVO) => { | const handleCommand = (command: string, row: OrderVO) => { | ||||||
|   console.log(row) |  | ||||||
|   switch (command) { |   switch (command) { | ||||||
|     case 'orderRemarks': |     case 'orderRemarks': | ||||||
|       orderRemarksFormRef.value?.open(row) |       orderRemarksFormRef.value?.open(row) | ||||||
|       break |       break | ||||||
|     case 'refund': |  | ||||||
|       break |  | ||||||
|     case 'delivery': |     case 'delivery': | ||||||
|       deliveryOrderFormRef.value?.open(row.id) |       deliveryOrderFormRef.value?.open(row.id) | ||||||
|       break |       break | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 puhui999
					puhui999