cloudroam
2025-01-09 bf6b7af0fb6c230eb15dd09ceda3a04abf958141
pages/order/list/index.vue
@@ -108,6 +108,7 @@
            ),
            minWidth: 200,
          },
          { label: '快递号', prop: 'deliveryNo', minWidth: 120 },
        ],
        searchFormAttrs: {
          labelWidth: 'auto',
@@ -360,7 +361,7 @@
        ],
        extraButtons: [
          {
            text: '快递单号',
            text: '快递号',
            show: (row) => !row.partnerName && row.statusBackend === 'SEND',
            atClick: (row) => {
              this.$refs.crud.$refs.extraDialog[1].show(row)
@@ -404,6 +405,18 @@
            hiddenReverseItems: [],
            form: [
              {
                label: '物流公司:',
                id: 'logisticsCompanyCode',
                type: 'bus-select-dict',
                readonly: true,
                el: {
                  code: 'LOGISTICS_COMPANY_CODE',
                  style: 'width:100%',
                },
                str: true,
                rules: {required: true, message: '物流公司'},
              },
              {
                label: '快递号:',
                id: 'deliveryNo',
                type: 'text',
@@ -426,9 +439,20 @@
            },
          },
          {
            title: '快递单号录入',
            title: '快递号录入',
            hiddenReverseItems: [],
            form: [
              {
                label: '物流公司:',
                id: 'logisticsCompanyCode',
                type: 'bus-select-dict',
                el: {
                  code: 'LOGISTICS_COMPANY_CODE',
                  style: 'width:100%',
                },
                str: true,
                rules: {required: true, message: '物流公司'},
              },
              {
                label: '快递号:',
                id: 'deliveryNo',
@@ -446,7 +470,7 @@
                { method: 'post', data: val }
              )
              if (code === 0) {
                this.$message.success('快递单号录入成功')
                this.$message.success('快递号录入成功')
              }
            },
          },