add:物流发货针对散户更改微信发货方式,保存物流单号,未发送之前可更改
| | |
| | | { label: '库区:', id: 'warehouseName', type: 'input' }, |
| | | { label: '库位:', id: 'warehouseLocationCode', type: 'input' }, |
| | | { label: '特殊需求:', id: 'specialNeedsStr', type: 'input' }, |
| | | { label: '快递单号:', id: 'deliveryNo', type: 'input' }, |
| | | { |
| | | label: '备注:', |
| | | id: 'remarks', |
| | |
| | | ], |
| | | extraButtons: [ |
| | | { |
| | | text: '快递单号', |
| | | show: (row) => !row.partnerName && row.statusBackend === 'SEND', |
| | | atClick: (row) => { |
| | | this.$refs.crud.$refs.extraDialog[1].show(row) |
| | | return false |
| | | }, |
| | | }, |
| | | { |
| | | text: '发货', |
| | | show: (row) => !row.partnerName && row.statusBackend === 'SEND', |
| | | atClick: (row) => { |
| | |
| | | { |
| | | label: '快递号:', |
| | | id: 'deliveryNo', |
| | | type: 'input', |
| | | type: 'text', |
| | | readonly: true, |
| | | rules: { |
| | | required: true, |
| | | message: '请输入快递号', |
| | |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | title: '快递单号录入', |
| | | hiddenReverseItems: [], |
| | | form: [ |
| | | { |
| | | label: '快递号:', |
| | | id: 'deliveryNo', |
| | | type: 'input', |
| | | rules: { |
| | | required: true, |
| | | message: '请输入快递号', |
| | | trigger: 'blur', |
| | | }, |
| | | }, |
| | | ], |
| | | atConfirm: async (val) => { |
| | | const { code } = await this.$elBusHttp.request( |
| | | 'flower/api/order/list/saveDeliveryNo', |
| | | { method: 'post', data: val } |
| | | ) |
| | | if (code === 0) { |
| | | this.$message.success('快递单号录入成功') |
| | | } |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | } |